* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
}

:root {
    --bg-color: #f0f4f8;
    --snd-bg-color: #f0f9ff;
    --text-color: #1a1a2e;
    --navy: #0e2a45;
    --navy-dark: #0a1f33;
    --text-light: #555;
    --main-color: #0077b6;
    --main-dark: #005f8a;
    --accent: #e8c98a;
    --gradient: linear-gradient(135deg, #0077b6 0%, #00b4d8 100%);
    --accent-hover: #d4b074;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    font-family: 'Noto Kufi Arabic', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.skip-link {
    position: absolute;
    top: -100%;
    right: 0;
    background: var(--main-color);
    color: #fff;
    padding: 1rem 2rem;
    z-index: 10000;
    font-size: 1.4rem;
    font-weight: 600;
    border-radius: 0 0 0 8px;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

section {
    padding: 10rem 8% 4rem;
}

/* Header */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 6%;
    background: rgba(240, 244, 248, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.nav-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
}

.logo {
    font-size: 2.4rem;
    color: var(--main-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    letter-spacing: -0.5px;
}

.logo:hover {
    color: var(--main-dark);
}

.navbar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-item {
    font-size: 1.5rem;
    color: var(--text-color);
    padding: 1rem 1.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    position: relative;
}

.navbar-item:hover {
    color: var(--main-color);
    background: var(--snd-bg-color);
}

.navbar-item::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2.5px;
    background: var(--gradient);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.navbar-item:hover::after {
    width: 60%;
}

#menu-icon {
    font-size: 3.2rem;
    color: var(--main-color);
    cursor: pointer;
    display: none;
}

.navbar-item.active {
    color: var(--main-color);
    background: var(--snd-bg-color);
}

/* ============================= Hero ============================= */
.hero {
    position: relative;
    color: #fff;
    background-color: var(--navy);
    overflow: hidden;
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 12%;
    opacity: 0.8;
}

.hero__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(14,42,69,0.88) 0%, rgba(14,42,69,0.78) 55%, rgba(14,42,69,0.92) 100%);
}

.hero__inner {
    position: relative;
    z-index: 2;
    padding: 6rem 0 5rem;
    max-width: 860px;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 2rem;
    font-weight: 600;
    color: #e8c98a;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    margin-bottom: 1.6rem;
}

.hero h1 {
    font-size: clamp(3.8rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.hero h1, .accent {
    color: #e8c98a;
}

.hero-title--light {
    color: whitesmoke;
    margin-bottom: 3rem;
}

.hero__lede {
    font-size: 1.7rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 700px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* About Section */
.section-divider {
    width: 40%;
    height: 2px;
    background: var(--gradient);
    border: none;
    border-radius: 3px;
    margin: 2rem auto;
    }

.about {
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5rem 8% 4rem;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--main-color);
    margin-bottom: 2.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient);
    border-radius: 3px;
}

.about-text {
    max-width: 750px;
    text-align: center;
    margin-bottom: 1rem;
}

.about-text p {
    font-size: 1.8rem;
    line-height: 2;
    color: var(--text-light);
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin-top: 2.5rem;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 3rem 2rem 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    border-top: 3px solid transparent;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 119, 182, 0.1);
    border-top-color: #e8c98a;
}

.card i {
    font-size: 3.5rem;
    color: var(--main-color);
    margin-bottom: 1.5rem;
    display: block;
}

.card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.2rem;
}

.card p {
    font-size: 1.4rem;
    line-height: 1.8;
    color: var(--text-light);
}

.card ul {
    list-style: none;
    text-align: right;
}

.card li {
    font-size: 1.4rem;
    line-height: 2;
    color: var(--text-light);
    padding-right: 1.5rem;
    position: relative;
}

.card li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 11px;
    width: 6px;
    height: 6px;
    background: var(--main-color);
    border-radius: 50%;
}

.btn-more {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 1rem 2.5rem;
    background: var(--gradient);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 182, 0.25);
    background: var(--accent-hover);
}

.btn-more:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 119, 182, 0.3);
    background: var(--main-dark);
    opacity: 0.9;
}

/* Stats Section */
.stats {
    background: #1a1a2e;
    padding: 3.5rem 8%;
    min-height: 50vh;
    text-align: center;
}

.stats-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3 , 1fr);
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.75);
}

/* Preview Sections */
.preview-section {
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 5rem 8% 4rem;
}

.preview-text {
    font-size: 1.6rem;
    line-height: 1.8;
    color: var(--text-light);
    max-width: 650px;
    margin-bottom: 1.5rem;
}

/* Director Section */
.director {
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.director-content {
    display: flex;
    align-items: center;
    max-width: 1000px;
}

.director-text {
    flex: 1;
}

.director-text p {
    font-size: 1.6rem;
    line-height: 2.2;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.director-text .basmala {
    font-size: 2rem;
    font-weight: 700;
    color: var(--main-color);
    text-align: center;
    margin-bottom: 2rem;
}

.director-text .closing {
    font-weight: 600;
    color: var(--text-color);
}

/* Structure Section */
.structure {
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.structure-content {
    display: flex;
    align-items: center;
    gap: 5rem;
    max-width: 1000px;
}

.structure-img {
    flex-shrink: 0;
}

.structure-img img {
    width: 420px;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.structure-img img:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 50px rgba(0, 119, 182, 0.25);
}

.structure-text {
    flex: 1;
}

.structure-text p {
    font-size: 1.6rem;
    line-height: 2.2;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.structure .text-content p,
.structure .text-content li {
    font-size: 1.7rem;
    line-height: 2.2;
}

.structure .text-content ol {
    padding-right: 2rem;
    margin-top: 1rem;
}

.structure-text ul {
    list-style: none;
    margin-top: 1rem;
}

.structure-text li {
    font-size: 1.6rem;
    line-height: 2.2;
    color: var(--text-light);
    margin-bottom: 1rem;
    padding-right: 2rem;
    position: relative;
}

.structure-text li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    background: var(--main-color);
    border-radius: 50%;
}

.structure-text strong {
    color: var(--text-color);
}

/* Mechanisms Section */
.mechanisms {
    background: var(--snd-bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mechanisms-list {
    max-width: 850px;
    width: 100%;
}

.mechanism-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(0, 119, 182, 0.1);
}

.mechanism-item:last-child {
    border-bottom: none;
}

.mech-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--gradient);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
}

.mechanism-item p {
    font-size: 1.6rem;
    line-height: 2;
    color: var(--text-light);
}

/* About Page */
.about-page {
    min-height: 50vh;
    padding: 12rem 8% 4rem;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--main-color);
    margin-bottom: 4rem;
    position: relative;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient);
    border-radius: 3px;
}

.about-title {
    position: relative;
    padding-bottom: 2rem;
}

.about-title::after{
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 120px;
    height: 4px;
    background: var(--accent);
    border-radius: 3px;
}
.about-hero-par {
font-weight: 600;
}
.about-carousel {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 4rem auto 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.carousel-track {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
    cursor: pointer;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 2rem;
    color: #333;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    line-height: 1;
}

.carousel-btn:hover {
    background: #fff;
}

.carousel-prev {
    right: 12px;
}

.carousel-next {
    left: 12px;
}

.carousel-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-dot.active {
    background: #fff;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 85%;
    max-height: 85vh;
    border-radius: 8px;
    object-fit: contain;
    transform: scale(0.85);
    transition: transform 0.3s ease;
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox .close-btn {
    position: absolute;
    top: 24px;
    left: 24px;
    font-size: 3.5rem;
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
    z-index: 10;
}

.lightbox .close-btn:hover {
    transform: rotate(90deg);
    color: var(--accent, #f39c12);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2.4rem;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.3s;
}

.lightbox-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    right: 24px;
}

.lightbox-next {
    left: 24px;
}

/* Department List */
.dept-list {
    list-style: none;
    margin-top: 1rem;
    text-align: right;
}

.dept-list li {
    font-size: 1.6rem;
    line-height: 2.2;
    color: var(--text-light);
    margin-bottom: 1rem;
    padding-right: 2rem;
    position: relative;
}

.dept-list li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    background: var(--main-color);
    border-radius: 50%;
}

.director-center {
    max-width: 850px;
    text-align: center;
    margin: 0 auto;
}

.director-center .director-text {
    margin: 0 auto;
}

.director-center .basmala::after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    margin: 1.2rem auto 0;
    background: var(--gradient);
    border-radius: 3px;
}

.structure-center {
    justify-content: center;
    text-align: center;
}

.construction-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    padding: 4rem 6rem;
    border-radius: 18px;
    background: #fff;
    border: 2px dashed var(--main-color);
    box-shadow: 0 10px 30px rgba(0, 119, 182, 0.08);
}

.construction-icon {
    font-size: 4.5rem;
    color: var(--main-color);
}

.construction-card p {
    font-size: 2rem;
    font-weight: 600;
    color: var(--main-color);
}

.director-text .dept-list {
    max-width: 850px;
    margin: 2rem auto 0;
    text-align: right;
}

.dept-list li {
    padding-right: 2.6rem;
}

.dept-list li::before {
    top: 15px;
    width: 10px;
    height: 10px;
    background: var(--gradient);
    box-shadow: 0 0 0 4px rgba(0, 119, 182, 0.12);
}

/* ===================== Activities Page ===================== */
/* قسم الإعلانات العام */
.announcements-panel {
    min-height: auto;
    padding: 30px 20px;
    text-align: center;
    overflow: visible;
    background: var(--snd-bg-color);
    border-radius: 12px;
    margin: 0 5%;
}

/* حاوية الصور (بالعرض) */
.announcements-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    overflow: visible;
}

/* عنصر الإعلان الفردي */
.announcement-card {
    flex: 0 0 calc(100% / 7 - 10px);
    max-width: calc(100% / 7 - 10px);
    transition: transform 0.4s ease, filter 0.4s ease;
    cursor: pointer;
    position: relative;
}

.announcement-card img {
    width:150px;

    height: auto;
    border-radius: 8px;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
}

/* تأثير عند التمرير: تكبير خفيف ورفع الصورة للأعلى */
.announcement-card:hover {
    z-index: 999;
    transform: scale(1.12);
    filter: brightness(105%);
}

.announcement-card:hover img {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    transform: scale(1.06);
}

/* الأنشطة العامة */
.activity-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    direction: rtl;
    padding: 40px 20px;
    gap: 40px;
}

/* قسم النص */
.text-content {
    flex: 1;
    text-align: right;
}

.text-content h2 {
    margin-bottom: 10px;
    color: var(--main-color);
    font-weight: 800;
    font-size: 2.2rem;
}

.text-content p {
    color: var(--text-light);
    line-height: 2;
    font-size: 1.5rem;
}

/* حاوية الصور */
.image-stack {
    position: relative;
    width: 460px;
    height: 300px;
    flex-shrink: 0;
}

.image-stack img {
    position: absolute;
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s;
}

/* ترتيب الصور وتوزيعها داخل الحاوية */
.image-stack .img-1 {
    z-index: 4;
    top: 0;
    right: 0;
}

.image-stack .img-2 {
    z-index: 3;
    top: 30px;
    right: 80px;
    transform: rotate(-3deg);
    opacity: 0.95;
}

.image-stack .img-3 {
    z-index: 2;
    top: 60px;
    right: 160px;
    transform: rotate(3deg);
    opacity: 0.85;
}

.image-stack .img-4 {
    z-index: 1;
    top: 90px;
    right: 240px;
    transform: rotate(-2deg);
    opacity: 0.75;
}

/* التمركز عند التمرير: رفع الصورة الممررة فوق البقية */
.image-stack img {
    z-index: 0;
}

.image-stack .img-1,
.image-stack .img-2,
.image-stack .img-3,
.image-stack .img-4 {
    transition: transform 0.3s ease, opacity 0.3s ease, z-index 0s;
}

.image-stack .img-1:hover,
.image-stack .img-2:hover,
.image-stack .img-3:hover,
.image-stack .img-4:hover {
    z-index: 50;
    transform: scale(1.12);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

/* ============================ Footer ============================ */
.site-footer {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    padding: 0 20px;
    margin: 10px auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    color: #fff;
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-brand img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
}

.footer p,
.footer-col li,
.footer-col p {
    font-size: 1.5rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.72);
}

.footer-col h3 {
    color: #fff;
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.5rem;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: #e8c98a;
}

.footer-col li + li {
    margin-top: 0.7rem;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.footer-contact i {
    color: #e8c98a;
}

.footer-social {
    display: flex;
    gap: 0.8rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.6rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
    background: var(--main-color);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1.3rem 0;
    text-align: center;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.55);
}
.footer-in-title{
    font-size: 2.5rem;
}

/* ============================= RESPONSIVE ============================= */

/* ── Tablets & smaller (≤768px) ── */
@media (max-width: 768px) {
    section {
        padding: 8rem 5% 3rem;
        min-height: auto;
    }

    .header {
        padding: 1.5rem 4%;
    }

    .nav-icon {
        width: 56px;
        height: 56px;
    }

    .logo {
        font-size: 2.15rem;
        gap: 10px;
    }

    #menu-icon {
        display: block;
        font-size: 4.4rem;
    }

    .navbar {
        position: fixed;
        top: 86px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(240, 244, 248, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        transition: left 0.4s ease;
        z-index: 999;
        padding: 2rem 0;
    }

    .navbar.active {
        left: 0;
    }

    .navbar-item {
        font-size: 1.5rem;
        padding: 1rem 2rem;
    }

    /* Hero */
    .hero__inner {
        padding: 5rem 0 4rem;
    }

    .hero h1 {
        font-size: clamp(2.2rem, 6vw, 3.2rem);
    }

    .hero__lede {
        font-size: 1.4rem;
        line-height: 1.8;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__actions .btn {
        text-align: center;
    }

    /* About */
    .about {
        padding: 4rem 5%;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 2.5rem;
    }

    .section-title::after {
        bottom: -1.2rem;
    }

    .about-text {
        max-width: 100%;
    }

    .about-text p {
        font-size: 1.4rem;
        line-height: 1.9;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        width: 100%;
    }

    .card {
        padding: 2.5rem 1.8rem;
    }

    .card i {
        font-size: 3rem;
    }

    .card h3 {
        font-size: 1.7rem;
    }

    .card p {
        font-size: 1.3rem;
    }

    .card li {
        font-size: 1.3rem;
    }

    .btn-more {
        padding: 1rem 2.5rem;
        font-size: 1.4rem;
    }

    /* Stats */
    .stats {
        padding: 4rem 5%;
        padding-bottom: 2rem;
        min-height: auto;
    }

    .stats-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .stat-number {
        font-size: 2.6rem;
    }

    .stat-label {
        font-size: 1.2rem;
    }

    /* Preview sections */
    .preview-section {
        padding: 5rem 5%;
    }

    .preview-text {
        font-size: 1.4rem;
    }

    /* Director */
    .director-content {
        flex-direction: column;
        text-align: center;
    }

    .director-text p {
        font-size: 1.4rem;
        line-height: 2;
    }

    .director-text .basmala {
        font-size: 1.7rem;
    }

    /* Structure */
    .structure-content {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .structure-img img {
        width: 100%;
        max-width: 320px;
    }

    .side-image {
        width: 100%;
        max-width: 320px;
        height: auto;
    }

    #hak-img {
        width: 100%;
        max-width: 400px;
    }

    .structure-text p,
    .structure-text li,
    .dept-list li {
        font-size: 1.4rem;
        line-height: 2;
    }

    .structure .text-content p,
    .structure .text-content li {
        font-size: 1.5rem;
        line-height: 2;
    }

    .structure-text {
        padding: 0 1rem;
    }

    /* Mechanisms */
    .mechanisms-list {
        padding: 0 1rem;
    }

    .mechanism-item {
        gap: 1.5rem;
        padding: 1.5rem 0;
    }

    .mechanism-item p {
        font-size: 1.3rem;
        line-height: 1.9;
    }

    .mech-num {
        width: 36px;
        height: 36px;
        font-size: 1.4rem;
    }

    /* About page */
    .about-page {
        padding: 8rem 5% 3rem;
        margin-top :3rem;
    }

    .page-title {
        font-size: 2.2rem;
        margin-bottom: 3rem;
    }

    .about-text p {
        font-size: 1.4rem;
    }

    .about-carousel {
        margin-top: 2.5rem;
    }

    /* Section dividers */
    .section-divider {
        width: 60%;
        margin-top: 3rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
        flex-direction: column;
    }
 .footer-brand img {
       width: 90px;
       height: 90px;
    }

    .footer-contact li {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    /* Activities */
    .announcements-grid {
        flex-wrap: wrap;
        gap: 8px;
    }

    .announcement-card {
        flex: 0 0 calc(33.333% - 8px);
        max-width: calc(33.333% - 8px);
    }

    .cards-container {
        grid-template-columns: 1fr;
    }

    .center-card {
        grid-column: span 1;
        width: 100%;
    }

    .activity-container {
        flex-direction: column;
        gap: 25px;
        padding: 30px 5%;
    }

    .image-stack {
        width: 380px;
        margin: 0 auto;
    }

    .text-content h2 {
        font-size: 1.8rem;
    }

    .text-content p {
        font-size: 1.4rem;
    }
}

/* ── Small phones (≤480px) ── */
@media (max-width: 480px) {
    section {
        padding: 6rem 4% 2rem;
    }

    .header {
        padding: 1.2rem 3%;
    }

    .nav-icon {
        width: 44px;
        height: 44px;
    }

    .logo {
        font-size: 1.75rem;
        gap: 7px;
    }

    .navbar {
        top: 67px;
        height: calc(100vh - 50px);
    }

    .navbar-item {
        font-size: 1.3rem;
        padding: 0.8rem 1.5rem;
    }

    #menu-icon {
        font-size: 3.7rem;
    }

    .hero__inner {
        padding: 4rem 0 3rem;
    }

    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.4;
    }

    .hero__lede {
        font-size: 1.2rem;
        line-height: 1.7;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .about {
        padding: 3rem 4%;
    }

    .about-text p {
        font-size: 1.2rem;
    }

    .card {
        padding: 2rem 1.5rem;
    }

    .card i {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .card h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .card p,
    .card li {
        font-size: 1.2rem;
        line-height: 1.8;
    }

    .btn-more {
        padding: 0.8rem 2rem;
        font-size: 1.2rem;
        margin-top: 1.5rem;
    }

    .stats {
        padding: 3rem 4%;
        padding-bottom: 2rem;
        min-height: auto;
    }

    .stats-title {
        font-size: 1.7rem;
        margin-bottom: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 1rem;
    }

    .preview-section {
        padding: 3rem 4%;
    }

    .preview-text {
        font-size: 1.2rem;
    }

    .director-text p {
        font-size: 1.2rem;
        line-height: 1.9;
    }

    .director-text .basmala {
        font-size: 1.5rem;
    }

    .structure-img img {
        max-width: 250px;
    }

    .side-image {
        max-width: 250px;
    }

    #hak-img {
        max-width: 300px;
    }

    .structure-text p,
    .structure-text li,
    .dept-list li {
        font-size: 1.2rem;
        line-height: 1.9;
    }

    .structure .text-content p,
    .structure .text-content li {
        font-size: 1.3rem;
        line-height: 1.9;
    }

    .mechanism-item {
        gap: 1rem;
        padding: 1.2rem 0;
    }

    .mechanism-item p {
        font-size: 1.2rem;
    }

    .mech-num {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }

    .about-page {
        padding: 6rem 4% 2rem;
    }

    .page-title {
        font-size: 1.8rem;
        margin-bottom: 2.5rem;
    }

    .about-text p {
        font-size: 1.2rem;
    }

    .about-carousel {
        margin-top: 2rem;
    }

    .section-divider {
        width: 50%;
        margin-top: 2rem;
    }

    .footer-grid {
        gap: 2rem;
    }

    .footer-col h3 {
        font-size: 1.3rem;
    }

    .announcement-card {
        flex: 0 0 calc(50% - 8px);
        max-width: calc(50% - 8px);
    }

    .cards-container {
        grid-template-columns: 1fr;
    }

    .center-card {
        grid-column: span 1;
        width: 100%;
    }

    .image-stack {
        width: 300px;
        height: 230px;
        margin: 0 auto;
    }

    .image-stack img {
        width: 140px;
        height: 140px;
    }

    .image-stack .img-2 {
        top: 20px;
        right: 55px;
    }

    .image-stack .img-3 {
        top: 40px;
        right: 110px;
    }

    .image-stack .img-4 {
        top: 60px;
        right: 165px;
    }

    .text-content p {
        font-size: 1.2rem;
        line-height: 1.9;
    }
}

/* ── Very small phones (≤360px) ── */
@media (max-width: 360px) {
    section {
        padding: 5rem 3% 1.5rem;
    }

    .logo {
        font-size: 1.55rem;
    }

    .hero__inner {
        padding: 3.5rem 0 2.5rem;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero__lede {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .about-text p {
        font-size: 1.1rem;
    }

    .card {
        padding: 1.8rem 1.2rem;
    }

    .card h3 {
        font-size: 1.4rem;
    }

    .card p,
    .card li {
        font-size: 1.1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.95rem;
    }

    .preview-text {
        font-size: 1.1rem;
    }

    .director-text p {
        font-size: 1.1rem;
    }

    .structure-text p,
    .structure-text li,
    .dept-list li {
        font-size: 1.1rem;
    }

    .mechanism-item p {
        font-size: 1.1rem;
    }

    .about-carousel {
        margin-top: 1.5rem;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 1.6rem;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
    }

    .image-stack {
        width: 260px;
        height: 200px;
    }

    .image-stack img {
        width: 120px;
        height: 120px;
    }

    .image-stack .img-2 {
        top: 18px;
        right: 48px;
    }

    .image-stack .img-3 {
        top: 36px;
        right: 96px;
    }

    .image-stack .img-4 {
        top: 54px;
        right: 144px;
    }
}

/* ============================= PDF Cards (Regulations & Opinions) ============================= */
.side-image {
    width: 320px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.structure-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#hak-img {
    width: 600px;
    max-width: 100%;
    height: auto;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    direction: rtl;
    width: 100%;
}

.pdf-card {
    background-color: #eaf2fb;
    border-radius: 12px;
    padding: 20px;
    display: flex;
        gap: 10px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.pdf-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 119, 182, 0.12);
}

.pdf-card h3 {
    color: #333;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
}

.btn {
    border: 1px solid var(--main-color);
    color: var(--main-color);
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn:hover {
    background-color: var(--main-color);
    color: #fff;
}

.center-card {
    grid-column: 1 / -1;
    justify-self: center;
    width: 50%;
}

/* PDF Cards Responsive */
@media (max-width: 768px) {
    .cards-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .pdf-card {
        padding: 15px;
    }

    .pdf-card h3 {
        font-size: 1.4rem;
    }

    .btn {
        padding: 6px 12px;
        font-size: 1.2rem;
    }

    .center-card {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .pdf-card {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .pdf-card h3 {
        font-size: 1.3rem;
    }

    .btn {
        padding: 8px 16px;
        font-size: 1.3rem;
    }
}

/* ============================= Registration Page ============================= */
.registration-page {
    background: #f4f6f9;
    min-height: 50vh;
    padding: 12rem 8% 4rem;
}

.registration-container {
    max-width: 800px;
    margin: 0 auto;
}

.registration-page .page-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #2b6cb0;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.registration-page .page-title::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #ecc94b;
    border-radius: 2px;
}

/* Action Cards */
.reg-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.reg-action-card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
}

.reg-action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(43, 108, 176, 0.12);
    border-top-color: #ecc94b;
}

.reg-action-card i.bx {
    font-size: 3.5rem;
    color: #2b6cb0;
    margin-bottom: 1.2rem;
    display: block;
}

.reg-action-card h3 {
    font-size: 1.7rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 1.2rem;
}

.reg-link {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: #ecc94b;
    color: #1a202c;
    font-size: 1.4rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.reg-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 201, 75, 0.4);
    background: #d4a937;
}

.reg-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 2rem;
    background: #fff;
    color: #2b6cb0;
    font-size: 1.4rem;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid #2b6cb0;
    transition: all 0.3s ease;
}

.reg-btn:hover {
    background: #2b6cb0;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(43, 108, 176, 0.25);
}

/* Sections */
.reg-section {
    margin-bottom: 3.5rem;
}

.reg-section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.reg-section-title h2 {
    font-size: 2.6rem;
    font-weight: 700;
    color: #2b6cb0;
    margin-bottom: 1rem;
}

.reg-divider {
    height: 4px;
    width: 80px;
    background: #ecc94b;
    margin: 0 auto;
    border-radius: 2px;
}

.reg-subsection h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #4a5568;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Accordion */
.accordion {
    margin-bottom: 2rem;
}

.accordion-item {
    background: #fff;
    margin-bottom: 1.2rem;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.accordion-header {
    padding: 1.6rem 2rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #d69e2e;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: #f0f9ff;
}

.accordion-header::-webkit-details-marker {
    display: none;
}

.accordion-icon {
    font-size: 1.8rem;
    color: #d69e2e;
    transition: transform 0.3s ease;
}

details[open] .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 2rem 2rem;
    color: #4a5568;
    font-size: 1.45rem;
    line-height: 2;
    border-top: 1px solid #edf2f7;
}

.accordion-content ol {
    padding-right: 2rem;
    margin-top: 1.5rem;
}

.accordion-content li {
    margin-bottom: 1rem;
    padding-right: 0.5rem;
}

.accordion-content li::marker {
    color: #2b6cb0;
    font-weight: 600;
}

/* Content Card */
.reg-content-card {
    background: #fff;
    padding: 2.5rem 3rem;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    line-height: 1.9;
}

.reg-content-card p {
    font-size: 1.55rem;
    line-height: 2.1;
    color: #2d3748;
    margin-bottom: 1.5rem;
}

.reg-content-card p:last-child {
    margin-bottom: 0;
}

/* Office Card */
.reg-office-card {
    background: #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.reg-office-image {
    width: 100%;
    text-align: center;
}

.reg-office-image img {
    width: 50%;
    min-width: 250px;
    max-width: 400px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    transition: transform 0.4s ease;
}

.reg-office-card:hover .reg-office-image img {
    transform: scale(1.03);
}

.reg-office-content {
    padding: 2.5rem 3rem;
    text-align: center;
}

.reg-office-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 1rem;
}

.reg-office-content > p {
    font-size: 1.5rem;
    line-height: 2;
    color: #2d3748;
    margin-bottom: 2rem;
}

.reg-duties h4 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 1.2rem;
}

.reg-duties ul {
    list-style: none;
    text-align: right;
}

.reg-duties li {
    font-size: 1.45rem;
    line-height: 2;
    color: #4a5568;
    padding-right: 2rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.reg-duties li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    background: #ecc94b;
    border-radius: 50%;
}

/* Registration Page Responsive */
@media (max-width: 768px) {
    .registration-page {
        padding: 8rem 5% 3rem;
    }

    .registration-page .page-title {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }

    .reg-actions {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .reg-section-title h2 {
        font-size: 2rem;
    }

    .accordion-header {
        font-size: 1.4rem;
        padding: 1.4rem 1.5rem;
    }

    .accordion-content {
        padding: 0 1.5rem 1.5rem;
        font-size: 1.35rem;
    }

    .reg-content-card {
        padding: 2rem;
    }

    .reg-office-content {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .registration-page .page-title {
        font-size: 2rem;
    }

    .reg-section-title h2 {
        font-size: 1.8rem;
    }

    .accordion-header {
        font-size: 1.3rem;
    }
}

/* ============================= Error Page ============================= */
.error-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bg-color);
}

.error-inner {
    max-width: 600px;
    padding: 2rem;
}

.error-code {
    display: block;
    font-size: clamp(6rem, 12vw, 10rem);
    font-weight: 800;
    line-height: 1;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--navy);
    margin: 1rem 0 1.5rem;
}

.error-text {
    font-size: 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.error-btn {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 6px;
    background: var(--gradient);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.error-btn:hover {
    opacity: 0.85;
}

@media (max-width: 768px) {
    .error-page {
        padding: 8rem 5% 4rem;
    }

    .error-title {
        font-size: 1.8rem;
    }

    .error-text {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .error-code {
        font-size: 6rem;
    }

    .error-title {
        font-size: 1.6rem;
    }

    .error-text {
        font-size: 1.3rem;
    }
}
