/* ------------------------------------------------
   BASE
--------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    background-color: #f7f8fb;
    color: #111827;
    line-height: 1.6;
}

/* Wrapper */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ------------------------------------------------
   SOCIAL MEDIA SECTION
--------------------------------------------------- */

.section-social .social-inner {
    max-width: 1120px;
    margin: 0 auto;
}

/* ------------------------------------------------
   ANNOUNCEMENT BANNER
--------------------------------------------------- */
.announcement-banner {
    width: 100%;
    background-color: #055296;      /* Mawqif Blue */
    color: #ffffff;                 /* White text */
    text-align: center;             /* Center everything */
    padding: 1rem 1.25rem;          /* Bigger + cleaner */
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Strong text stays white */
.announcement-banner strong {
    color: #ffffff;
}

/* Link styling */
.announcement-banner a {
    color: #ffffff;                 /* White link text */
    text-decoration: underline;
    font-weight: 600;
}

.announcement-banner a:hover {
    opacity: 0.85;
}

/* ------------------------------------------------
   LINKS & BUTTONS
--------------------------------------------------- */

/* All hyperlink text: blue + underlined */
a {
    color: #055296;
    text-decoration: underline;
}

/* Keep hover/active still underlined but slightly darker */
a:hover {
    color: #033767;
}

/* Button-style links override underline visually */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none; /* buttons are visually buttons, not text links */
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background-color 0.12s ease-out, border-color 0.12s ease-out;
    outline: none;
    white-space: nowrap;
}

/* Hover + click animations */
.btn:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 12px 25px rgba(5, 82, 150, 0.18);
}

.btn:active {
    transform: translateY(0) scale(0.97);
    box-shadow: 0 4px 10px rgba(5, 82, 150, 0.2);
}

/* Focus ring */
.btn:focus-visible {
    outline: 2px solid #055296;
    outline-offset: 2px;
}

/* Primary button */
.btn-primary {
    background-color: #055296;
    color: #ffffff;
    border-color: #055296;
}

/* Outline button */
.btn-outline {
    background-color: #ffffff;
    color: #055296;
    border-color: #055296;
}

/* ------------------------------------------------
   HEADER / NAV
--------------------------------------------------- */

.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

/* Logo size restraint */
.site-logo {
    height: 48px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.site-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.site-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
}

.site-subtitle {
    font-size: 0.85rem;
    color: #6b7280;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

/* Nav links: still blue and underlined because they're hyperlinks */
.nav-link {
    text-decoration: underline;
}

/* ------------------------------------------------
   HERO
--------------------------------------------------- */

.hero-section {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.hero-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 2.75rem;
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.3fr);
    gap: 2.5rem;
    align-items: flex-start;
}

.hero-heading {
    font-size: clamp(1.8rem, 2.4vw + 1rem, 2.4rem);
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #111827;
}

.hero-lead {
    font-size: 0.98rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.hero-note {
    font-size: 0.82rem;
    color: #6b7280;
}

.hero-highlight {
    display: flex;
    justify-content: flex-end;
}

.highlight-card {
    background: radial-gradient(circle at top left, rgba(5, 82, 150, 0.08), transparent 55%),
                #f9fafb;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.04);
}

.highlight-title {
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: #055296;
}

.highlight-text {
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 0.55rem;
}

/* ------------------------------------------------
   SECTIONS
--------------------------------------------------- */

.section {
    padding: 2.75rem 1.25rem;
}

.section:nth-of-type(odd) {
    background-color: #f7f8fb;
}

.section:nth-of-type(even) {
    background-color: #ffffff;
}

.section-header {
    max-width: 1120px;
    margin: 0 auto 1.75rem;
}

.section-header h2 {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
    color: #111827;
}

.section-header p {
    font-size: 0.95rem;
    color: #6b7280;
}

/* ------------------------------------------------
   ROLES GRID
--------------------------------------------------- */

.section-roles .roles-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
}

.role-card {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem 1.5rem 1.25rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.role-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
}

.role-tagline {
    font-size: 0.9rem;
    color: #4b5563;
}

.role-list {
    list-style: disc;
    padding-left: 1.25rem;
    font-size: 0.9rem;
    color: #4b5563;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.role-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.role-time {
    font-size: 0.85rem;
    color: #6b7280;
}

/* ------------------------------------------------
   PROCESS / STEPS
--------------------------------------------------- */

.section-process .steps-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.step-card {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background-color: #055296;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.step-card h3 {
    font-size: 0.98rem;
    margin-bottom: 0.35rem;
    color: #111827;
}

.step-card p {
    font-size: 0.9rem;
    color: #4b5563;
}

/* ------------------------------------------------
   ELIGIBILITY
--------------------------------------------------- */

.section-eligibility .eligibility-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.eligibility-card {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}

/* ------------------------------------------------
   TIMELINE
--------------------------------------------------- */

.section-timeline .timeline {
    max-width: 1120px;
    margin: 0 auto;
    border-left: 2px solid #e5e7eb;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timeline-item {
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -1.36rem;
    top: 0.35rem;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background-color: #055296;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 3px rgba(5, 82, 150, 0.15);
}

.timeline-title {
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.timeline-text {
    font-size: 0.9rem;
    color: #4b5563;
}

/* ------------------------------------------------
   FAQ
--------------------------------------------------- */

.section-faq .faq-grid {
    max-width: 1120px;
    margin: 0 auto;
    /* 2 masonry-style columns instead of grid rows */
    column-count: 2;
    column-gap: 1rem;
}

.faq-item {
    background-color: #ffffff;
    border-radius: 0.9rem;
    border: 1px solid #e5e7eb;
    padding: 0.75rem 0.9rem;
    font-size: 0.9rem;
    transition: box-shadow 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
    display: inline-block;      /* required for column layout */
    width: 100%;
    break-inside: avoid;        /* keep each item in one column block */
    margin-bottom: 1rem;
}

.faq-item.open {
    border-color: #05529633;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
    background-color: #ffffff;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 0.2rem 0.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    cursor: pointer;
    font-weight: 600;
    color: #111827;
    font-size: 0.92rem;
}

.faq-question:focus-visible {
    outline: 2px solid #055296;
    outline-offset: 2px;
}

/* Little chevron arrow */
.faq-question::after {
    content: "⌄";
    font-size: 0.9rem;
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.faq-item.open .faq-question::after {
    transform: rotate(180deg);
}

.faq-answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.25s ease;
    will-change: max-height;
}

.faq-answer p {
    color: #4b5563;
    margin-top: 0.4rem;
    font-size: 0.9rem;
}

/* ------------------------------------------------
   FINAL CTA
--------------------------------------------------- */

.section-final-cta {
    background-color: #ffffff;
}

.final-cta-card {
    max-width: 1120px;
    margin: 0 auto;
    padding: 2.25rem 1.25rem 2.5rem;
    background: radial-gradient(circle at top left, rgba(5, 82, 150, 0.12), transparent 55%),
                #f9fafb;
    border-radius: 1.5rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
    text-align: center;
}

.final-cta-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #111827;
}

.final-cta-card p {
    font-size: 0.95rem;
    color: #4b5563;
    margin-bottom: 1.25rem;
}

.final-buttons {
    justify-content: center;
}

.contact-note {
    font-size: 0.85rem;
    color: #6b7280;
}

/* ------------------------------------------------
   FOOTER
--------------------------------------------------- */

.site-footer {
    padding: 1.25rem 1.25rem 1.75rem;
    text-align: center;
    font-size: 0.8rem;
    color: #9ca3af;
    background-color: #f7f8fb;
    margin-top: auto;
}

/* ------------------------------------------------
   RESPONSIVE (GLOBAL)
--------------------------------------------------- */

@media (max-width: 960px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-highlight {
        justify-content: flex-start;
    }

    .section-roles .roles-grid,
    .section-process .steps-grid,
    .section-eligibility .eligibility-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    /* FAQ: single column on smaller screens */
    .section-faq .faq-grid {
        column-count: 1;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .site-nav {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}

@media (max-width: 640px) {
    .hero-inner {
        padding-top: 2rem;
    }

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

    .section {
        padding: 2rem 1rem;
    }

    .final-cta-card {
        padding: 2rem 1.25rem 2.25rem;
    }
}

/* ------------------------------------------------
   LEADERSHIP PAGE
--------------------------------------------------- */

.section-leadership-intro {
    background-color: #f7f8fb;
}

.leadership-hero {
    max-width: 820px;
    margin: 0 auto 1.75rem;
    text-align: center;
}

.leadership-heading {
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
    color: #111827;
}

.leadership-subtitle {
    font-size: 0.95rem;
    color: #4b5563;
}

.leadership-note {
    font-size: 0.9rem;
    color: #4b5563;
    margin-top: 0.6rem;
}

/* Top three cards container */
.leadership-cards {
    max-width: 1100px;
    margin: 1.8rem auto 1.25rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
}

/* Individual leadership cards */
.leadership-card {
    background-color: #ffffff;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
    padding: 1.3rem 1.2rem 1.2rem;
    max-width: 320px;
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
}

.leadership-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
}

.leadership-card-tagline {
    font-size: 0.9rem;
    color: #4b5563;
}

.leadership-snippet {
    font-size: 0.86rem;
    color: #6b7280;
    flex: 1;
}

.leadership-card .btn {
    align-self: flex-start;
    margin-top: 0.25rem;
}

/* Inline CTA under cards */
.leadership-cta-inline {
    max-width: 640px;
    margin: 0.75rem auto 0;
    text-align: center;
    font-size: 0.9rem;
    color: #4b5563;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

/* Detailed role sections */
.section-role-details {
    background-color: #ffffff;
}

.role-detail-section {
    padding: 1.75rem 0;
}

.role-detail-card {
    max-width: 1120px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.03);
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.role-detail-card h3 {
    font-size: 1.25rem;
    color: #111827;
}

.role-detail-intro {
    font-size: 0.95rem;
    color: #4b5563;
}

.role-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.role-detail-grid h4 {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    color: #111827;
}

.role-detail-text {
    font-size: 0.9rem;
    color: #4b5563;
}

/* Responsive tweaks for leadership layout */
@media (max-width: 1024px) {
    .leadership-cards {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 800px) {
    .leadership-cards {
        flex-direction: column;
        align-items: center;
    }

    .leadership-card {
        max-width: 380px;
        flex: 0 0 auto;
        width: 100%;
    }

    .role-detail-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}