@font-face {
    font-family: 'Minion Pro';
    src: url('../fonts/MinionPro-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Minion Pro';
    src: url('../fonts/MinionPro-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Minion Pro';
    src: url('../fonts/MinionPro-Semibold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Minion Pro';
    src: url('../fonts/MinionPro-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    /* ==========================================================================
       Color Scheme Derived Strictly from the Elaaf Logo & Brand Guide
       Logo Gradient Stops:
         Stop 0: #e5d1a7 (Champagne Gold)
         Stop 1: #8f6d47 (Rich Bronze Camel)
         Logo Text / Motifs: #ab885b (Camel Gold)
         Contrast Deep Shades: #543a22, #332213, #1e140b
       ========================================================================== */
    --gold-light: #e5d1a7;      /* Logo gradient start */
    --gold-bright: #f0debb;     /* Luminous gold highlight */
    --gold-mid: #ab885b;        /* Logo typography & divider */
    --gold-dark: #8f6d47;       /* Logo gradient end */
    --gold-deep: #684c2f;       /* Deep warm bronze */
    --gold-espresso: #2e1f13;   /* Rich deep foundation */

    --primary: #ab885b;
    --primary-strong: #8f6d47;
    --primary-deep: #2e1f13;
    --primary-soft: #fbf7ee;

    --gold: #ab885b;
    --gold-soft: #fbf6ec;
    --accent: #8f6d47;

    --text: #241910;
    --muted: #6e5946;
    --line: rgba(171, 136, 91, 0.28);
    --line-subtle: rgba(171, 136, 91, 0.16);
    --line-gold: rgba(229, 209, 167, 0.45);
    --white: #ffffff;
    --cream: #faf5eb;
    --bg: #fdfbf7;

    /* Typography Stacks */
    --font-arabic: 'Amiri', 'Traditional Arabic', 'Scheherazade New', serif;
    --font-urdu: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Urdu Typesetting', serif;
    --font-serif: 'Minion Pro', 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --shadow: 0 16px 40px rgba(68, 47, 28, 0.08);
    --shadow-hover: 0 22px 50px rgba(143, 109, 71, 0.22);
    --gold-glow: 0 10px 28px rgba(143, 109, 71, 0.35);

    /* ==========================================================================
       Logo Gradient Presets
       ========================================================================== */
    /* Exact 2-stop linear gradient from the SVG logo */
    --grad-logo: linear-gradient(135deg, #e5d1a7 0%, #8f6d47 100%);

    /* Rich 3-stop metallic gold gradient */
    --grad-gold-rich: linear-gradient(135deg, #f2e2c2 0%, #ab885b 52%, #8f6d47 100%);
    --grad-gold-rich-hover: linear-gradient(135deg, #f8ebd2 0%, #b89566 52%, #9c774f 100%);

    /* Primary button gradient with bright champagne shimmer */
    --grad-gold-btn: linear-gradient(135deg, #f0debb 0%, #cfa871 35%, #ab885b 70%, #8f6d47 100%);
    --grad-gold-btn-hover: linear-gradient(135deg, #f7ebd4 0%, #d9b581 35%, #ba9667 70%, #9a764d 100%);

    /* Hero & Banner Luxury Islamic Camel-Gold Gradient (Derived from logo stops) */
    --grad-hero: linear-gradient(135deg, rgba(64, 42, 23, 0.92) 0%, rgba(118, 82, 46, 0.85) 35%, rgba(171, 136, 91, 0.82) 68%, rgba(229, 209, 167, 0.80) 100%);
    --grad-hero-radial: radial-gradient(circle at 75% 25%, rgba(240, 222, 187, 0.3) 0%, transparent 60%);

    /* Inner page hero gradient */
    --grad-page-hero: linear-gradient(135deg, #2b1c11 0%, #543922 42%, #8f6d47 78%, #ab885b 100%);

    /* Dark section banners (Dar-ul-Ifta, CTA) */
    --grad-banner: linear-gradient(135deg, #322114 0%, #5d4025 45%, #8f6d47 80%, #b59263 100%);
    --grad-footer: linear-gradient(180deg, #24170d 0%, #150e08 100%);

    /* Subtle Card & Surface Gradients */
    --grad-card: linear-gradient(180deg, #ffffff 0%, #fbf7ee 100%);
    --grad-card-hover: linear-gradient(180deg, #ffffff 0%, #f6ecd8 100%);
    --grad-muted: linear-gradient(180deg, #fdfbf7 0%, #f6edd9 100%);
    --grad-gold-soft: linear-gradient(135deg, rgba(229, 209, 167, 0.35) 0%, rgba(143, 109, 71, 0.2) 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(180deg, #fdfbf7 0%, #f7f0e0 100%);
    color: var(--text);
    line-height: 1.7;
}

::selection {
    background: var(--gold-mid);
    color: #ffffff;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

/* ==========================================================================
   Topbar & Brand Navigation
   ========================================================================== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1.5px solid var(--line);
    box-shadow: 0 4px 20px rgba(68, 47, 28, 0.04);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 80px;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.brand-logo {
    height: 48px;
    width: auto;
    max-width: 230px;
    object-fit: contain;
    display: block;
    transition: transform 0.25s ease;
}

.brand:hover .brand-logo {
    transform: scale(1.02);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    flex-wrap: nowrap;
    justify-content: center;
}

.main-nav a {
    position: relative;
    padding: 8px 0;
    color: var(--muted);
    transition: color 0.2s ease;
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--gold-dark);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2.5px;
    border-radius: 2px;
    background: var(--grad-logo);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* ==========================================================================
   Buttons with Logo Colors & Gradients
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.72rem 1.35rem;
    border: 1px solid transparent;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1.5px);
}

.btn:active {
    transform: translateY(0);
}

/* Primary Button: Shimmering Gold Gradient */
.btn-primary {
    background: var(--grad-gold-btn);
    color: #24170d;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 8px 24px rgba(143, 109, 71, 0.34);
    letter-spacing: 0.01em;
}

.btn-primary:hover {
    background: var(--grad-gold-btn-hover);
    color: #170d06;
    box-shadow: 0 12px 30px rgba(143, 109, 71, 0.46);
}

/* Secondary Button: Warm Ivory with Logo Camel Border */
.btn-secondary {
    background: linear-gradient(180deg, #ffffff 0%, #fbf6ed 100%);
    border: 1.5px solid var(--gold-mid);
    color: #4b341f;
    box-shadow: 0 4px 14px rgba(68, 47, 28, 0.05);
}

.btn-secondary:hover {
    background: linear-gradient(180deg, #ffffff 0%, #f4e8d0 100%);
    border-color: var(--gold-dark);
    color: var(--gold-dark);
    box-shadow: 0 6px 18px rgba(143, 109, 71, 0.16);
}

/* Ghost Button: Translucent Gold Accent */
.btn-ghost {
    background: linear-gradient(135deg, rgba(229, 209, 167, 0.22) 0%, rgba(143, 109, 71, 0.14) 100%);
    color: var(--gold-dark);
    border: 1.5px solid rgba(171, 136, 91, 0.45);
}

.btn-ghost:hover {
    background: linear-gradient(135deg, rgba(229, 209, 167, 0.38) 0%, rgba(143, 109, 71, 0.26) 100%);
    color: #2b1d12;
    border-color: var(--gold-dark);
}

.hero .btn-ghost {
    background: rgba(229, 209, 167, 0.16);
    color: #fcf4e6;
    border: 1.5px solid rgba(229, 209, 167, 0.55);
}

.hero .btn-ghost:hover {
    background: rgba(229, 209, 167, 0.32);
    color: #ffffff;
    border-color: #f0debb;
}

/* ==========================================================================
   Hero Section with Rich Camel & Gold Gradients (From Logo)
   ========================================================================== */
.hero {
    position: relative;
    overflow: hidden;
    background: 
        var(--grad-hero-radial),
        var(--grad-hero),
        url('https://images.unsplash.com/photo-1564507592333-c60657eea523?auto=format&fit=crop&w=1400&q=85') center/cover no-repeat;
    color: var(--white);
    border-bottom: 2px solid var(--gold-mid);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    align-items: center;
    gap: 36px;
    min-height: 620px;
    padding: 60px 0;
}

.hero-content {
    max-width: 760px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.stat-pill {
    background: linear-gradient(135deg, rgba(229, 209, 167, 0.18) 0%, rgba(143, 109, 71, 0.12) 100%);
    border: 1px solid var(--line-gold);
    border-radius: 999px;
    padding: 0.85rem 1.3rem;
    min-width: 120px;
    display: grid;
    gap: 2px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.stat-pill strong {
    font-size: 1.25rem;
    color: var(--gold-bright);
    font-weight: 700;
}

.stat-pill span {
    font-size: 0.78rem;
    color: #f7eedd;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold-dark);
    margin-bottom: 14px;
}

.hero .eyebrow {
    color: var(--gold-light);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Headings with Minion Pro */
.hero h1, .page-hero h1, .section-header h3, .cta-center h3, h1, h2, h3, h4 {
    font-family: 'Minion Pro', 'Cormorant Garamond', Georgia, serif;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero h1 {
    font-size: clamp(2.8rem, 5.5vw, 4.8rem);
    margin: 0;
    line-height: 0.98;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(33, 22, 13, 0.4);
}

.hero h2,
.hero-arabic {
    font-family: var(--font-arabic) !important;
    margin: 14px 0 18px;
    font-size: clamp(2.2rem, 3.6vw, 3.4rem);
    color: var(--gold-bright);
    font-weight: 700;
    direction: rtl;
    line-height: 1.5;
    letter-spacing: 0 !important;
    text-shadow: 0 2px 14px rgba(43, 28, 17, 0.55);
}

/* ==========================================================================
   Arabic & Urdu Typography Rules
   Arabic: Amiri (Classical Naskh for Islamic Scholarship)
   Urdu: Noto Nastaliq Urdu (Traditional Nastaliq Calligraphic Script)
   ========================================================================== */
.arabic-text,
.font-arabic,
[lang="ar"] {
    font-family: var(--font-arabic) !important;
    direction: rtl;
    line-height: 1.6;
    letter-spacing: 0 !important;
    font-style: normal;
}

.urdu-text,
.font-urdu,
[lang="ur"] {
    font-family: var(--font-urdu) !important;
    direction: rtl;
    line-height: 2.2;
    letter-spacing: 0 !important;
    font-style: normal;
}

.program-title {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.hero-card li.urdu-text,
.academics-list li.urdu-text {
    font-family: var(--font-urdu) !important;
    font-size: 1.15rem;
    line-height: 2.2;
    direction: rtl;
}

.footer-tagline .arabic-text {
    font-family: var(--font-arabic) !important;
    font-size: 1.05rem;
    color: var(--gold-bright);
    direction: rtl;
    margin-right: 6px;
}

.tagline {
    font-size: 1.3rem;
    color: #fcf4e6;
    margin-bottom: 2rem;
    max-width: 620px;
    text-shadow: 0 1px 4px rgba(33, 22, 13, 0.3);
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-card {
    background: linear-gradient(145deg, rgba(46, 32, 20, 0.92) 0%, rgba(28, 19, 12, 0.96) 100%);
    border: 1.5px solid var(--line-gold);
    border-radius: 24px;
    padding: 2.2rem;
    box-shadow: 0 24px 50px rgba(28, 19, 12, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.mini-label {
    display: inline-block;
    margin-bottom: 1.2rem;
    font-size: 0.82rem;
    color: var(--gold-bright);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
}

.hero-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
    font-size: 1.15rem;
}

.hero-card li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f7eedd;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(229, 209, 167, 0.16);
}

.hero-card li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hero-card li::before {
    content: '◆';
    color: var(--gold-mid);
    font-size: 0.75rem;
}

/* ==========================================================================
   Sections & Layout
   ========================================================================== */
.section {
    padding: 96px 0;
}

.muted {
    background: var(--grad-muted);
    border-top: 1.5px solid var(--line);
    border-bottom: 1.5px solid var(--line);
}

.section-header {
    margin-bottom: 40px;
}

.section-header h3 {
    font-size: clamp(2.2rem, 3.8vw, 3rem);
    color: var(--primary-deep);
    margin: 0;
    max-width: 760px;
    position: relative;
    display: inline-block;
    font-weight: 700;
}

/* Section Header Underline Gradient (Exact Logo Stops) */
.section-header h3::after {
    content: '';
    display: block;
    width: 80px;
    height: 3.5px;
    border-radius: 3px;
    background: var(--grad-logo);
    margin-top: 14px;
}

.center { text-align: center; }
.center h3 { margin-left: auto; margin-right: auto; }
.center h3::after { margin-left: auto; margin-right: auto; }

.two-col, .feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.info-box {
    background: var(--grad-card);
    border: 1.5px solid var(--line);
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 22px;
}

.info-box strong {
    color: var(--gold-dark);
    font-size: 1.2rem;
    display: block;
    margin-bottom: 6px;
    font-family: 'Minion Pro', Georgia, serif;
}

.info-box p {
    margin: 0;
    color: var(--muted);
}

/* ==========================================================================
   Cards & Program Grid with Gold Gradient Accents
   ========================================================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.card {
    background: var(--grad-card);
    border: 1.5px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
    background: var(--grad-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--gold-mid);
}

.card-image {
    height: 190px;
    background: linear-gradient(135deg, #74512e 0%, #ab885b 50%, #e5d1a7 100%);
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 75% 25%, rgba(229, 209, 167, 0.4) 0%, transparent 60%),
        linear-gradient(135deg, #3d2918 0%, #75512d 50%, #ab885b 100%);
}

.video-thumb {
    background: 
        linear-gradient(135deg, rgba(54, 36, 21, 0.8) 0%, rgba(171, 136, 91, 0.5) 100%),
        url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=900&q=80') center/cover no-repeat;
}

.card-body {
    padding: 1.5rem 1.4rem 1.7rem;
}

.card-body h4, .card-body h3, .course-title {
    margin: 0 0 6px;
    font-size: clamp(1.4rem, 1.8vw, 1.95rem);
    color: var(--primary-deep);
    font-weight: 700;
    line-height: 1.25;
}

/* Arabic Tag in separate line */
.course-arabic-tag {
    font-family: var(--font-arabic) !important;
    font-size: 1.2rem;
    color: var(--gold-dark);
    direction: rtl;
    line-height: 1.5;
    margin: 4px 0 14px;
    display: block;
    width: 100%;
    clear: both;
    font-style: normal;
    letter-spacing: 0 !important;
}

.course-arabic-tag-hero {
    font-family: var(--font-arabic) !important;
    font-size: clamp(1.5rem, 2.5vw, 2.4rem);
    color: var(--gold-bright);
    direction: rtl;
    display: block;
    margin-top: 8px;
    line-height: 1.5;
    text-shadow: 0 2px 10px rgba(33, 22, 13, 0.4);
}

.card-body p {
    color: var(--muted);
    margin: 0 0 18px;
    font-size: 0.95rem;
}

.meta-list {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: grid;
    gap: 8px;
    color: var(--text);
    font-size: 0.92rem;
}

.meta-list strong {
    color: var(--gold-dark);
}

.meta-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    margin-bottom: 18px;
    font-size: 0.88rem;
}

.academy-grid {
    grid-template-columns: repeat(3, minmax(0,1fr));
}

.mini-card {
    background: var(--grad-card);
    border: 1.5px solid var(--line);
    border-radius: 20px;
    padding: 1.5rem;
    display: grid;
    gap: 0.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.mini-card:hover {
    background: var(--grad-card-hover);
    transform: translateY(-2px);
    border-color: var(--gold-mid);
    box-shadow: var(--shadow-hover);
}

.mini-card strong {
    color: var(--primary-deep);
    font-size: 1.1rem;
    font-family: 'Minion Pro', Georgia, serif;
}

.mini-card span {
    color: var(--muted);
    font-size: 0.92rem;
}

/* ==========================================================================
   Benefit Cards with Logo Gradient Icon Badges
   ========================================================================== */
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.benefit-card {
    padding: 1.8rem;
    min-height: 220px;
}

.benefit-card h4 {
    font-size: 1.85rem;
    margin: 8px 0;
    color: var(--primary-deep);
}

.benefit-card p {
    color: var(--muted);
    margin: 0;
}

.icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--grad-gold-rich);
    color: #24170d;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 12px;
    box-shadow: 0 4px 14px rgba(143, 109, 71, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   Dar-ul-Ifta & CTA Sections with Rich Logo Gradients
   ========================================================================== */
.ifta-banner {
    background: 
        radial-gradient(circle at 80% 50%, rgba(229, 209, 167, 0.2) 0%, transparent 60%),
        var(--grad-banner);
    color: var(--white);
    border-top: 2px solid var(--gold-mid);
    border-bottom: 2px solid var(--gold-mid);
}

.ifta-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 28px 32px;
    border: 1.5px solid var(--line-gold);
    border-radius: 26px;
    background: rgba(229, 209, 167, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ifta-panel h3 {
    margin: 4px 0 8px;
    font-size: clamp(2rem, 3vw, 2.6rem);
    color: #ffffff;
}

.ifta-panel p {
    margin: 0;
    color: #f7eedd;
    max-width: 600px;
}

.faq-boxes, .faq-list {
    display: grid;
    gap: 18px;
}

.faq-item {
    background: var(--grad-card);
    border: 1.5px solid var(--line);
    border-radius: 18px;
    padding: 1.4rem 1.6rem;
    box-shadow: var(--shadow);
}

.faq-item h4, .faq-item h3 {
    margin: 0 0 10px;
    font-size: clamp(1.4rem, 1.8vw, 1.8rem);
    color: var(--primary-deep);
}

.faq-item p {
    margin: 0;
    color: var(--muted);
}

/* Call To Action Strip */
.cta-strip {
    background: 
        radial-gradient(ellipse at center, rgba(229, 209, 167, 0.22) 0%, transparent 65%),
        linear-gradient(135deg, #2b1c11 0%, #563b23 48%, #8f6d47 80%, #b8935e 100%);
    color: var(--white);
    border-top: 2px solid var(--gold-mid);
}

.cta-center {
    text-align: center;
}

.cta-center h3 {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    margin: 0 0 24px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(33, 22, 13, 0.4);
}

.cta-center .cta-row {
    justify-content: center;
}

/* ==========================================================================
   Inner Page Hero
   ========================================================================== */
.page-hero {
    background: 
        radial-gradient(circle at 80% 20%, rgba(229, 209, 167, 0.2) 0%, transparent 60%),
        var(--grad-page-hero);
    color: var(--white);
    padding: 110px 0 90px;
    border-bottom: 2px solid var(--gold-mid);
}

.small-hero h1 {
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    margin-top: 0;
    max-width: 920px;
    color: #ffffff;
}

.text-blocks {
    align-items: start;
}

.text-blocks > div {
    padding: 20px 0;
}

/* ==========================================================================
   Forms & Dashboard
   ========================================================================== */
.form-shell {
    background: var(--white);
    border: 1.5px solid var(--line);
    border-radius: 26px;
    padding: 32px;
    box-shadow: var(--shadow);
}

.styled-form {
    display: grid;
    gap: 22px;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 16px;
}

.single-field {
    display: grid;
    gap: 8px;
}

label {
    font-weight: 600;
    color: var(--primary-deep);
    font-size: 0.92rem;
}

input, textarea, select {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1.5px solid rgba(171, 136, 91, 0.3);
    border-radius: 12px;
    font: inherit;
    color: var(--text);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--gold-mid);
    box-shadow: 0 0 0 3px rgba(171, 136, 91, 0.22);
}

textarea { min-height: 140px; resize: vertical; }

.privacy-note {
    color: var(--muted);
    background: var(--primary-soft);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 0.9rem;
}

.success-box {
    text-align: center;
    background: var(--white);
    border: 1.5px solid var(--line);
    border-radius: 24px;
    padding: 56px 26px;
    box-shadow: var(--shadow);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 28px;
}

.contact-card {
    background: var(--white);
    border: 1.5px solid var(--line);
    border-radius: 22px;
    padding: 28px;
    box-shadow: var(--shadow);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.dash-card {
    background: var(--grad-card);
    border: 1.5px solid var(--line);
    border-radius: 20px;
    padding: 1.4rem;
    display: grid;
    gap: 8px;
    box-shadow: var(--shadow);
}

.dash-card strong {
    font-size: 0.95rem;
    color: var(--gold-dark);
}

.dash-card span {
    font-size: clamp(1.6rem, 2vw, 2.5rem);
    font-weight: 700;
    color: var(--primary-deep);
}

.dash-card.wide { grid-column: span 2; }

/* ==========================================================================
   Footer (Rich Deep Camel & Gold Foundation)
   ========================================================================== */
.site-footer {
    background: var(--grad-footer);
    color: rgba(255, 255, 255, 0.82);
    padding-top: 56px;
    border-top: 2.5px solid var(--gold-mid);
}

.footer-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 32px;
    margin-bottom: 36px;
    border-bottom: 1px solid rgba(229, 209, 167, 0.2);
    flex-wrap: wrap;
}

.footer-logo {
    height: 48px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
}

.footer-tagline {
    margin: 0;
    color: var(--gold-light);
    font-size: 0.95rem;
    font-family: 'Minion Pro', 'Cormorant Garamond', Georgia, serif;
    letter-spacing: 0.04em;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0,1fr));
    gap: 24px;
    padding-bottom: 40px;
}

.site-footer h4 {
    margin-top: 0;
    color: var(--gold-bright);
    font-size: 1.6rem;
    font-weight: 600;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
    font-size: 0.92rem;
}

.site-footer ul a {
    color: rgba(255, 255, 255, 0.76);
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.site-footer ul a:hover {
    color: var(--gold-bright);
    transform: translateX(3px);
}

.footer-bottom {
    border-top: 1px solid rgba(229, 209, 167, 0.16);
    padding: 22px 0 28px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Faculty Members Section & Cards
   ========================================================================== */
.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 36px;
}

.faculty-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
    position: relative;
}

.faculty-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--gold);
}

.faculty-photo-wrap {
    position: relative;
    width: 100%;
    height: 310px;
    overflow: hidden;
    background: #f7efe2;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid var(--line-gold);
}

.faculty-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    transition: transform 0.5s ease;
    display: block;
}

.faculty-card:hover .faculty-photo {
    transform: scale(1.04);
}

.faculty-photo-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gold-soft);
    border: 2px dashed var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold-dark);
}

.faculty-badge {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: var(--grad-gold-rich);
    color: var(--gold-espresso);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 14px rgba(46, 31, 19, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 2;
}

.faculty-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.faculty-name {
    margin: 0 0 6px;
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.faculty-designation {
    margin: 0 0 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-strong);
    line-height: 1.4;
}

.faculty-department {
    margin: 0 0 14px;
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.faculty-qualification-tag {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    background: var(--gold-soft);
    border: 1px solid var(--line-gold);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.84rem;
    color: var(--gold-deep);
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 14px;
}

.faculty-qual-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.faculty-bio {
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.7;
    margin: 0 0 16px;
    flex: 1;
}

.faculty-contact-row {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line-subtle);
}

.faculty-email-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    color: var(--primary-strong);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.faculty-email-link:hover {
    color: var(--gold-deep);
    transform: translateX(3px);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1080px) {
    .main-nav { gap: 12px; font-size: 0.84rem; }
}

@media (max-width: 980px) {
    .main-nav { display: none; }
    .hero-grid, .two-col, .card-grid, .academy-grid, .contact-grid, .dashboard-grid, .footer-grid, .faculty-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero-grid { min-height: 520px; }
}

@media (max-width: 720px) {
    .nav-wrap { min-height: 72px; }
    .brand-logo { height: 40px; max-width: 180px; }
    .nav-actions { display: none; }
    .hero-grid, .two-col, .card-grid, .academy-grid, .contact-grid, .dashboard-grid, .field-grid, .footer-grid, .faculty-grid {
        grid-template-columns: 1fr;
    }
    .section { padding: 72px 0; }
    .hero { padding-top: 20px; }
    .hero-grid { min-height: auto; }
    .cta-row { flex-direction: column; align-items: stretch; }
    .btn { width: 100%; text-align: center; }
    .ifta-panel { flex-direction: column; align-items: flex-start; }
    .footer-brand-row { flex-direction: column; align-items: flex-start; gap: 14px; }
    .faculty-photo-wrap { height: 260px; }
}
