/* ============================================================
   paisaJankari CMS — Main Stylesheet
   Brand: Navy (#0a2342) · Gold (#c8922a) · Mid-blue (#1a3a5c)
   ============================================================ */

/* ── Reset & Base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: #1a1a2e;
    background: #fff;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--primary, #c8922a); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--secondary, #1a3a5c); }
ul { list-style: none; }
.urdu { font-family: 'Noto Nastaliq Urdu', serif; direction: rtl; }

/* ── CSS Variables ───────────────────────────────────────────── */
:root {
    --primary: #c8922a;
    --primary-dark: #a87420;
    --secondary: #1a3a5c;
    --header-bg: #0a2342;
    --navy: #0a2342;
    --gold: #c8922a;
    --gold-light: #f0c96a;
    --mid-blue: #1a3a5c;
    --light-bg: #f7f9fc;
    --border: #e2e8f0;
    --text-muted: #6b7280;
    --success: #059669;
    --error: #dc2626;
    --radius: 8px;
    --radius-lg: 16px;
    --shadow: 0 2px 12px rgba(10,35,66,0.10);
    --shadow-lg: 0 8px 40px rgba(10,35,66,0.15);
    --transition: all 0.3s ease;
    --container: 1240px;
}

/* ── Utility ─────────────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; top:-40px; left:0; background:var(--primary); color:#fff; padding:8px 16px; z-index:9999; }
.skip-link:focus { top:0; }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }
.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 50px 0; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 1rem; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

/* ── Section Titles ──────────────────────────────────────────── */
.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}
.section-title .accent { color: var(--gold); }
.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 3rem;
}
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(200,146,42,0.1);
    padding: 4px 14px;
    border-radius: 40px;
    margin-bottom: 1rem;
    border: 1px solid rgba(200,146,42,0.25);
}
.divider {
    width: 60px; height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
    margin: 1rem auto 1.5rem;
}
.divider-left { margin-left: 0; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}
.btn i {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn:hover i {
    transform: translateX(4px);
}
.btn-primary {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200,146,42,0.4);
}
.btn-outline {
    background: transparent;
    color: var(--gold);
    border-color: var(--gold);
}
.btn-outline:hover {
    background: var(--gold);
    color: #fff;
}
.btn-white {
    background: #fff;
    color: var(--navy);
    border-color: #fff;
}
.btn-white:hover {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
}
.btn-navy {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}
.btn-navy:hover { background: var(--secondary); }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ── Top Bar ─────────────────────────────────────────────────── */
.top-bar {
    background: var(--navy);
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(200,146,42,0.3);
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-bar-left { display: flex; gap: 20px; flex-wrap: wrap; }
.top-bar-left span { display: flex; align-items: center; gap: 6px; }
.top-bar-left a { color: rgba(255,255,255,0.8); }
.top-bar-left a:hover { color: var(--gold); }
.top-bar-left i { color: var(--gold); }
.top-bar-right { display: flex; gap: 12px; }
.top-bar-right a {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    transition: var(--transition);
}
.top-bar-right a:hover { color: var(--navy); background: var(--gold); border-color: var(--gold); }

/* Top Bar Menu Styling */
.top-bar-menu {
    gap: 18px;
}
.top-bar-menu a {
    color: rgba(255,255,255,0.8) !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    border: none !important;
    padding: 0 !important;
    display: block !important;
    transition: var(--transition);
}
.top-bar-menu a:hover, .top-bar-menu a.active {
    color: var(--gold) !important;
    background: transparent !important;
}

/* ── Site Header ─────────────────────────────────────────────── */
.site-header {
    background: var(--header-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 12px rgba(0,0,0,0.06);
    transition: var(--transition);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 20px; }

/* Logo */
.site-logo { text-decoration: none; flex-shrink: 0; display: inline-flex; align-items: center; }

/* Brand SVG Logo Styling & Animations */
.header-logo-svg, .footer-logo-svg {
    height: 90px;
    width: auto;
    display: block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.header-logo-svg:hover, .footer-logo-svg:hover {
    transform: scale(1.06);
}
.footer-logo-svg {
    height: 120px;
    margin-bottom: 1.2rem;
}

/* Path Drawing Animation */


/* Nav */
.main-nav ul { display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
    color: var(--navy);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: var(--transition);
    display: block;
    white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
    color: var(--gold);
    background: rgba(200,146,42,0.08);
}
.main-nav a.active { font-weight: 600; }
.header-cta { margin-left: 8px; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: var(--transition);
}
.hamburger span {
    width: 24px; height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: var(--transition);
    display: block;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero Sections ───────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--secondary) 100%);
    color: #fff;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 580px;
    display: flex;
    align-items: center;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.hero-gold-bar {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, var(--gold), transparent);
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-label { font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; font-weight: 600; }
.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.2rem;
    color: #fff;
}
.hero h1 .gold { color: var(--gold); }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,0.8); margin-bottom: 2rem; max-width: 560px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image {
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 50%;
    overflow: hidden;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--navy) 0%, rgba(10,35,66,0.5) 40%, transparent 100%);
}
.hero-stats { display: flex; gap: 40px; margin-top: 3rem; flex-wrap: wrap; }
.hero-stat { border-left: 2px solid var(--gold); padding-left: 16px; }
.hero-stat strong { display: block; font-size: 1.8rem; font-weight: 800; color: var(--gold); }
.hero-stat span { font-size: 0.8rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.1em; }

/* Page Hero (smaller) */
.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--secondary) 100%);
    color: #fff;
    padding: 60px 0 50px;
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}
.page-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1.05rem; max-width: 580px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.82rem; color: rgba(255,255,255,0.5); margin-bottom: 1rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--gold); }
.breadcrumb span { color: rgba(255,255,255,0.4); }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.card-body { padding: 28px; }
.card-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, rgba(200,146,42,0.1), rgba(200,146,42,0.2));
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold);
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(200,146,42,0.2);
    transition: var(--transition);
}
.card:hover .card-icon {
    transform: scale(1.12) translateY(-2px);
    color: #fff;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    box-shadow: 0 4px 12px rgba(200,146,42,0.3);
    border-color: var(--gold);
}
.pillar-card:hover, .portfolio-card:hover, .blog-card:hover, .scheme-card:hover {
    border-color: rgba(200,146,42,0.5) !important;
}
.card h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: 0.6rem; }
.card p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.6; }

/* Service Pillars Grid */
.pillars-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.pillar-card { display: flex; flex-direction: column; }
@media(min-width: 1024px) {
    .pillars-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.pillar-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}
.pillar-media {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--navy);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.pillar-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.pillar-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10,35,66,0) 50%, rgba(10,35,66,0.5) 100%);
    pointer-events: none;
}
.pillar-icon-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    background: var(--gold);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: var(--transition);
    z-index: 2;
}
.pillar-card:hover .pillar-media img {
    transform: scale(1.06);
}
.pillar-card:hover .pillar-icon-badge {
    transform: scale(1.1) rotate(10deg);
    background: var(--secondary);
    box-shadow: 0 4px 15px rgba(26,58,92,0.4);
}

/* ── Team Grid ───────────────────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.team-card { text-align: center; }
.team-photo {
    width: 120px; height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.2rem;
    background: linear-gradient(135deg, var(--secondary), var(--navy));
    display: flex; align-items: center; justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold);
    border: 4px solid rgba(200,146,42,0.25);
    overflow: hidden;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.team-card h3 { color: var(--navy); font-family: 'Playfair Display', serif; font-size: 1.15rem; margin-bottom: 4px; }
.team-card .designation { color: var(--gold); font-size: 0.82rem; font-weight: 600; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em; }
.team-card .domain { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 1rem; }
.team-card p { font-size: 0.88rem; color: var(--text-muted); }

/* ── Portfolio ───────────────────────────────────────────────── */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.portfolio-card { }
.portfolio-media {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--navy), var(--secondary));
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.4);
    font-size: 3rem;
}
.portfolio-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portfolio-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portfolio-badge {
    position: absolute;
    top: 12px; right: 12px;
    background: var(--success);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}
.portfolio-card .card-body { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.portfolio-card h3 { font-size: 1.1rem; }
.portfolio-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 1rem; }
.portfolio-meta span { font-size: 0.8rem; color: var(--text-muted); }
.portfolio-amount { font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.portfolio-inst { font-size: 0.78rem; color: var(--gold); margin-top: 4px; }

/* ── Partners ────────────────────────────────────────────────── */
.partners-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.partner-card { display: flex; gap: 20px; padding: 28px; align-items: flex-start; }
.partner-icon {
    width: 56px; height: 56px; flex-shrink: 0;
    background: linear-gradient(135deg, rgba(10,35,66,0.08), rgba(26,58,92,0.1));
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--navy);
    overflow: hidden;
}
.partner-icon img { width: 100%; height: 100%; object-fit: contain; }
.partner-card h3 { font-size: 1rem; color: var(--navy); margin-bottom: 4px; }
.partner-card .sector { font-size: 0.78rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin-bottom: 8px; }
.partner-card p { font-size: 0.88rem; color: var(--text-muted); }

/* ── Data Tables ─────────────────────────────────────────────── */
.data-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 0.92rem;
}
.data-table thead { background: var(--navy); color: #fff; }
.data-table th { padding: 16px 20px; text-align: left; font-weight: 600; font-size: 0.82rem; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 14px 20px; border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table tbody tr:hover { background: rgba(200,146,42,0.04); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table .highlight-col { color: var(--navy); font-weight: 600; }
.data-table .gold-text { color: var(--gold); font-weight: 600; }
.table-tag {
    display: inline-block;
    background: rgba(200,146,42,0.1);
    color: var(--gold);
    border: 1px solid rgba(200,146,42,0.3);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
}

/* ── Scheme Cards ────────────────────────────────────────────── */
.scheme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 28px; }
.scheme-card { border-top: 4px solid var(--gold); }
.scheme-card .card-body { padding: 28px; }
.scheme-card h3 { color: var(--navy); font-size: 1.05rem; }
.scheme-detail { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.scheme-row { display: flex; gap: 12px; font-size: 0.88rem; }
.scheme-row .label { color: var(--text-muted); min-width: 90px; flex-shrink: 0; }
.scheme-row .val { color: var(--navy); font-weight: 500; }

/* ── Blog ────────────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.blog-card .blog-thumb {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--secondary), var(--navy));
    position: relative; overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.blog-card .blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-cat {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold);
    margin-bottom: 8px;
}
.blog-card h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--navy); margin-bottom: 8px; line-height: 1.3; }
.blog-card p { font-size: 0.9rem; color: var(--text-muted); }
.blog-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--text-muted); }
.blog-meta .author { display: flex; align-items: center; gap: 6px; }
.read-more { color: var(--gold); font-weight: 600; font-size: 0.88rem; display: inline-flex; align-items: center; gap: 4px; margin-top: 1rem; }
.read-more:hover { gap: 8px; }

/* Blog Single */
.blog-single-content { max-width: 760px; margin: 0 auto; }
.blog-single-content h2, .blog-single-content h3 { font-family: 'Playfair Display', serif; color: var(--navy); margin: 2rem 0 1rem; }
.blog-single-content p { margin-bottom: 1.2rem; line-height: 1.8; }
.blog-single-content ul, .blog-single-content ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
.blog-single-content li { margin-bottom: 0.4rem; }
.blog-single-content blockquote { border-left: 4px solid var(--gold); padding: 1rem 1.5rem; background: var(--light-bg); margin: 2rem 0; font-style: italic; border-radius: 0 var(--radius) var(--radius) 0; }
.blog-featured-image { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 2.5rem; aspect-ratio: 16/9; }
.blog-featured-image img { width: 100%; height: 100%; object-fit: cover; }

/* ── Knowledge Base ──────────────────────────────────────────── */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.video-card { cursor: pointer; }
.video-thumb {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--navy), var(--secondary));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.video-play { width: 60px; height: 60px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.4rem; padding-left: 4px; transition: var(--transition); box-shadow: 0 4px 20px rgba(200,146,42,0.5); }
.video-card:hover .video-play { transform: scale(1.1); }
.video-duration {
    position: absolute; bottom: 10px; right: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff; font-size: 0.75rem;
    padding: 2px 8px; border-radius: 4px;
}
.video-code { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 6px; font-family: monospace; }

/* ── Contact ─────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: start; }
.contact-offices { display: flex; flex-direction: column; gap: 20px; }
.office-card { padding: 24px; border-left: 4px solid var(--gold); background: var(--light-bg); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.office-card h4 { color: var(--navy); font-family: 'Playfair Display', serif; margin-bottom: 12px; font-size: 1rem; }
.office-card ul { display: flex; flex-direction: column; gap: 8px; }
.office-card li { display: flex; gap: 10px; font-size: 0.88rem; color: #374151; align-items: flex-start; }
.office-card li i { color: var(--gold); margin-top: 2px; flex-shrink: 0; width: 16px; }
.office-card a { color: inherit; }
.office-card a:hover { color: var(--gold); }

/* Forms */
.form-wrap { background: #fff; border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
.form-wrap h2 { font-family: 'Playfair Display', serif; color: var(--navy); margin-bottom: 0.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.form-group label .req { color: var(--error); }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.93rem;
    font-family: inherit;
    color: #1a1a2e;
    background: #fff;
    transition: var(--transition);
    appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200,146,42,0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { cursor: pointer; }
.checkbox-group { display: flex; flex-direction: column; gap: 10px; }
.checkbox-group label { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: #374151; cursor: pointer; font-weight: 400; }
.checkbox-group input[type="checkbox"],
.checkbox-group input[type="radio"] { width: auto; accent-color: var(--gold); cursor: pointer; }
.form-section-title { font-size: 1rem; font-weight: 700; color: var(--navy); border-bottom: 2px solid var(--border); padding-bottom: 8px; margin: 24px 0 16px; grid-column: 1 / -1; }
.form-note { font-size: 0.8rem; color: var(--text-muted); }
.form-success { background: rgba(5,150,105,0.08); border: 1px solid rgba(5,150,105,0.3); color: var(--success); padding: 16px; border-radius: var(--radius); margin-bottom: 20px; display: none; }
.form-success.show { display: block; }
.form-error { background: rgba(220,38,38,0.08); border: 1px solid rgba(220,38,38,0.3); color: var(--error); padding: 16px; border-radius: var(--radius); margin-bottom: 20px; display: none; }
.form-error.show { display: block; }

/* ── CTA Banner ──────────────────────────────────────────────── */
.cta-banner {
    background: linear-gradient(135deg, var(--navy) 0%, var(--secondary) 100%);
    color: #fff;
    padding: 70px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 70% 50%, rgba(200,146,42,0.15) 0%, transparent 60%); pointer-events: none; }
.cta-banner h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: #fff; margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,0.75); font-size: 1.05rem; margin-bottom: 2rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Stats Bar ───────────────────────────────────────────────── */
.stats-bar { background: var(--navy); padding: 50px 0; }
.stats-bar .container { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 32px; text-align: center; }
.stat-item strong { font-family: 'Playfair Display', serif; font-size: 2.4rem; font-weight: 800; color: var(--gold); display: block; }
.stat-item span { font-size: 0.82rem; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.1em; }

/* ── Light Section ───────────────────────────────────────────── */
.section-light { background: var(--light-bg); }
.section-dark { background: var(--navy); color: #fff; }
.section-dark .section-title { color: #fff; }
.section-dark .section-subtitle { color: rgba(255,255,255,0.65); }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.7); }
.footer-top { padding: 70px 0 50px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; }
.footer-logo { max-height: 55px; }
.footer-logo-text { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 800; color: var(--gold); margin-bottom: 8px; }
.footer-tagline { color: rgba(255,255,255,0.5); font-size: 0.88rem; margin: 4px 0; }
.footer-col p { font-size: 0.88rem; line-height: 1.7; color: rgba(255,255,255,0.55); margin-top: 1rem; }
.footer-col h4 { color: #fff; font-size: 0.92rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.2rem; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: rgba(255,255,255,0.6); font-size: 0.88rem; transition: var(--transition); display: flex; align-items: center; gap: 6px; }
.footer-col ul a:hover { color: var(--gold); padding-left: 4px; }
.footer-contact-list li { display: flex; gap: 12px; margin-bottom: 14px; font-size: 0.88rem; color: rgba(255,255,255,0.6); align-items: flex-start; }
.footer-contact-list li i { color: var(--gold); margin-top: 3px; flex-shrink: 0; width: 14px; }
.footer-contact-list a { color: rgba(255,255,255,0.6); }
.footer-contact-list a:hover { color: var(--gold); }
.footer-socials { display: flex; gap: 10px; margin-top: 1.5rem; flex-wrap: wrap; }
.footer-socials a {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    transition: var(--transition);
}
.footer-socials a:hover { background: var(--gold); border-color: var(--gold); color: #fff; transform: translateY(-3px); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    display: flex;
    justify-content: center;
    text-align: center;
}
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.35); }

/* ── Back to top ─────────────────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 44px; height: 44px;
    background: var(--gold);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 16px rgba(200,146,42,0.4);
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { background: var(--navy); transform: translateY(-3px); }

/* ── Alerts / Notices ────────────────────────────────────────── */
.alert { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 20px; font-size: 0.9rem; display: flex; gap: 12px; align-items: flex-start; }
.alert i { margin-top: 2px; flex-shrink: 0; }
.alert-success { background: rgba(5,150,105,0.1); border: 1px solid rgba(5,150,105,0.3); color: #065f46; }
.alert-error { background: rgba(220,38,38,0.1); border: 1px solid rgba(220,38,38,0.3); color: #991b1b; }
.alert-info { background: rgba(26,58,92,0.08); border: 1px solid rgba(26,58,92,0.2); color: var(--navy); }

/* ── Pagination ──────────────────────────────────────────────── */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 3rem; flex-wrap: wrap; }
.pagination a, .pagination span {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--navy);
    transition: var(--transition);
}
.pagination a:hover { border-color: var(--gold); color: var(--gold); }
.pagination .current { background: var(--gold); border-color: var(--gold); color: #fff; }

/* ── Media Embed ─────────────────────────────────────────────── */
.media-embed { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/9; background: var(--navy); }
.media-embed iframe, .media-embed video { width: 100%; height: 100%; border: none; }
.media-embed img { width: 100%; height: 100%; object-fit: cover; }

/* ── Feature List (home pillars) ─────────────────────────────── */
.feature-list { display: flex; flex-direction: column; gap: 20px; }
.feature-item { display: flex; gap: 20px; padding: 20px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); transition: var(--transition); border: 1px solid var(--border); }
.feature-item:hover { box-shadow: var(--shadow-lg); transform: translateX(4px); }
.feature-num { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 800; color: rgba(200,146,42,0.2); line-height: 1; flex-shrink: 0; width: 48px; }
.feature-text h4 { color: var(--navy); font-weight: 700; margin-bottom: 4px; }
.feature-text p { color: var(--text-muted); font-size: 0.88rem; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .header-logo-svg { height: 72px; }
    .top-bar-menu { display: none !important; }
    .top-bar-left .hide-mobile { display: none; }
    .hamburger { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--navy);
        border-top: 2px solid var(--gold);
        padding: 16px 20px 20px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.3);
        z-index: 100;
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 2px; }
    .main-nav a { padding: 12px 16px; border-radius: var(--radius); font-size: 0.95rem; }
    .header-cta { display: none; }
    .site-header { position: sticky; }
    .hero { padding: 70px 0 60px; min-height: auto; }
    .hero-image { display: none; }
    .hero-stats { gap: 24px; }
    .pillars-grid, .team-grid, .portfolio-grid, .partners-grid, .scheme-grid, .blog-grid, .video-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .form-grid { grid-template-columns: 1fr; }
    .stats-bar .container { grid-template-columns: 1fr 1fr; }
    .section-pad { padding: 56px 0; }
    .data-table th, .data-table td { padding: 10px 14px; font-size: 0.82rem; }
}

@media (max-width: 480px) {
    .header-logo-svg { height: 60px; }
    .top-bar-left { display: none; }
    .hero h1 { font-size: 1.8rem; }
    .hero-actions { flex-direction: column; align-items: flex-start; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .cta-actions { flex-direction: column; align-items: center; }
    .stats-bar .container { grid-template-columns: 1fr; }
    .section-pad { padding: 40px 0; }
    .form-wrap { padding: 24px 20px; }
}

@media (min-width: 769px) {
    .main-nav .top-bar-item-desktop {
        display: none;
    }
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── Print ───────────────────────────────────────────────────── */
@media print {
    .site-header, .top-bar, .site-footer, .back-to-top, .cta-banner { display: none; }
    body { color: #000; }
    a { color: #000; }
}
