/* Override FontAwesome @font-face to add font-display: swap */
@font-face {
    font-family: "Font Awesome 6 Free";
    font-display: swap;
    font-style: normal;
    font-weight: 900;
    src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/webfonts/fa-solid-900.woff2") format("woff2");
}
@font-face {
    font-family: "Font Awesome 6 Free";
    font-display: swap;
    font-style: normal;
    font-weight: 400;
    src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/webfonts/fa-regular-400.woff2") format("woff2");
}
@font-face {
    font-family: "Font Awesome 6 Brands";
    font-display: swap;
    font-style: normal;
    font-weight: 400;
    src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/webfonts/fa-brands-400.woff2") format("woff2");
}

/* --- Modern Departments Page Redesign --- */
.hero-dept {
    background: linear-gradient(120deg, var(--primary-dark) 0%, var(--primary) 60%, var(--accent) 100%);
    color: var(--white);
    padding: 110px 0 120px;
    position: relative;
    overflow: hidden;
}
.hero-dept .hero-badge {
    background: rgba(11,46,40,0.85);
    color: #d2e5e2;
    border: 1px solid rgba(11,75,64,0.25);
    border-radius: 30px;
    font-size: 0.92rem;
    padding: 8px 28px;
    margin-bottom: 28px;
    letter-spacing: 0.5px;
}
.hero-dept h1 {
    font-size: 3.1rem;
    color: var(--white);
    margin-bottom: 18px;
    font-weight: 800;
    letter-spacing: -1px;
}
.hero-dept .hero-text {
    color: rgba(255,255,255,0.92);
    font-size: 1.18rem;
    margin-bottom: 38px;
    line-height: 1.85;
}
.hero-dept .hero-buttons .btn {
    min-width: 180px;
    font-size: 1.05rem;
}

/* Modern Stats Bar */
.dept-stats-bar-modern {
    background: var(--primary);
    padding: 38px 0 32px;
    box-shadow: 0 2px 18px rgba(11,46,40,0.08);
}
.dept-stats-grid-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}
.dept-stat-modern {
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.dept-stat-modern i {
    font-size: 2.1rem;
    color: var(--accent);
    margin-bottom: 8px;
}
.dept-stat-modern .dept-stat-num {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 2px;
}
.dept-stat-modern .dept-stat-label {
    font-size: 0.93rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Departments Modern Grid */
.departments-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 36px;
    margin-top: 32px;
}
.dept-card-modern {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 40px 32px 32px 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: var(--transition);
    position: relative;
    min-height: 420px;
}
.dept-card-modern:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px) scale(1.02);
    border-bottom: 4px solid var(--accent);
}
.dept-card-modern .dept-card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--accent-light), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 18px;
    box-shadow: 0 2px 12px rgba(138,225,211,0.10);
}
.dept-card-modern h3 {
    font-size: 1.35rem;
    font-family: var(--font-heading);
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-weight: 700;
}
.dept-card-modern p {
    color: var(--text-light);
    font-size: 1.01rem;
    margin-bottom: 18px;
    line-height: 1.7;
}
.dept-card-list {
    margin-bottom: 18px;
    padding-left: 18px;
}
.dept-card-list li {
    font-size: 0.97rem;
    color: var(--text);
    margin-bottom: 4px;
    list-style: disc;
}
.dept-card-modern .btn-sm {
    margin-top: auto;
    align-self: flex-start;
}

/* Modern Research Grid */
.research-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    margin-top: 24px;
}
.research-card-modern {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}
.research-card-modern:hover {
    background: rgba(255,255,255,0.13);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
    transform: translateY(-4px) scale(1.03);
}
.research-card-modern .research-card-icon {
    width: 54px;
    height: 54px;
    background: rgba(138,225,211,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    margin: 0 auto 14px;
    transition: var(--transition);
}
.research-card-modern h4 {
    color: var(--white);
    font-family: var(--font-heading);
    margin-bottom: 8px;
    font-size: 1.08rem;
}
.research-card-modern p {
    color: rgba(255,255,255,0.7);
    font-size: 0.92rem;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .dept-stats-grid-modern { grid-template-columns: 1fr 1fr; gap: 24px; }
    .departments-grid-modern { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .hero-dept { padding: 60px 0 70px; }
    .hero-dept h1 { font-size: 2.1rem; }
    .dept-stats-bar-modern { padding: 24px 0 18px; }
    .dept-stats-grid-modern { grid-template-columns: 1fr 1fr; gap: 14px; }
    .departments-grid-modern { gap: 18px; }
    .dept-card-modern { padding: 24px 12px; min-height: 0; }
    .research-grid-modern { grid-template-columns: 1fr; gap: 14px; }
}
/* ============================================
   CRC Website – Main Stylesheet (CORRECTED)
   ============================================ */

/* --- CSS Variables --- */
:root {
    --primary: rgb(11 46 40);
    --primary-dark: rgb(11 78 66);
    --primary-light: rgb(11 46 40);
    --accent: #8ae1d3;
    --accent-dark: #79a9a1;
    --accent-light: #79a9a1;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --white: #ffffff;
    --off-white: #f8f6f2;
    --light-bg: #f5f3ef;
    --dark-bg: #1a2332;
    --darker-bg: #111821;
    --border: #e0dcd5;
    --shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Language section colors - defined for use in language pages */
    --lang-color: #1e40af;
    --era-color: var(--primary);
    --pill-color: var(--primary); /* Added missing variable */
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

img {
    content-visibility: auto;
    max-width: 100%;
    height: auto;
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.8;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { 
    text-decoration: none; 
    color: var(--primary); 
    transition: var(--transition); 
}

a:hover { 
    color: var(--accent); 
}

ul { 
    list-style: none; 
}

/* --- Urdu / RTL --- */
.urdu, .rtl, [lang="ur"] {
    direction: rtl;
    text-align: right;
    font-family: 'Noto Nastaliq Urdu', serif;
    line-height: 2.2;
}

/* --- Skip to Content (Accessibility) --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 10px 24px;
    border-radius: 0 0 var(--radius) var(--radius);
    z-index: 100000;
    font-weight: 600;
    font-size: 0.9rem;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    color: #fff;
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.8rem; font-weight: 700; }
h2 { font-size: 2.2rem; font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }

p { margin-bottom: 1.15rem; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--accent);
    color: #000000;
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--white);
}

.btn-outline {
    background: rgba(138, 225, 211, 0.19); /* Fixed: #8ae1d330 is invalid */
    color: rgb(255 255 255);
    border-color: rgba(138, 225, 211, 0.02); /* Fixed: #8ae1d303 is invalid */
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.88rem;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-full { width: 100%; }

/* --- Top Bar --- */
.top-bar {
    background: rgb(9 42 36);
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    padding: 8px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-left, .top-bar-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-bar span i {
    margin-right: 6px;
    color: var(--accent);
}

/* --- Navbar --- */
.navbar {
    background: var(--white);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 1.2rem;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-text { display: flex; flex-direction: column; }

.logo-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--primary-dark);
    line-height: 1.2;
}

.logo-tagline {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 4px;
    align-items: center;
}

.nav-menu a {
    display: block;
    padding: 8px 16px;
    color: var(--text);
    font-weight: 500;
    font-size: 0.92rem;
    border-radius: 6px;
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #023b31;
    background: rgba(102, 187, 173, 0.25); /* Fixed: rgb(102 187 173 / 25%) is invalid */
}

/* --- Dropdown Menu --- */
.has-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-toggle i {
    font-size: 0.65rem;
    transition: var(--transition);
}

.has-dropdown:hover .dropdown-toggle i,
.has-dropdown.open .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--white);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
    z-index: 100;
    list-style: none;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    padding: 10px 20px !important;
    border-radius: 0 !important;
    font-size: 0.9rem !important;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: rgba(102, 187, 173, 0.12) !important; /* Fixed: invalid rgba value */
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 26px;
    height: 2.5px;
    background: var(--primary-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile Nav Overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.nav-open {
    overflow: hidden;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: var(--white);
    padding: 100px 0 120px;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; }

.hero-badge {
    display: inline-block;
    padding: 6px 20px;
    background: rgb(11, 46, 40); /* Fixed: rgb(11 46 40) is invalid */
    border: 1px solid rgb(11, 75, 64); /* Fixed: rgb(11 75 64) is invalid */
    border-radius: 30px;
    font-size: 0.85rem;
    color: #d2e5e2;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: 3.2rem;
    color: var(--white);
    margin-bottom: 16px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--accent-light);
    margin-bottom: 16px;
    font-weight: 500;
    letter-spacing: 1px;
}

.hero-text {
    font-size: 1.12rem;
    color: rgba(255,255,255,0.85);
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.9;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Page Banner --- */
.page-banner {
    background: linear-gradient(160deg, #041f1a 0%, #0b2e28 40%, #0f766e 100%);
    color: var(--white);
    padding: 80px 0 65px;
    text-align: center;
}

.page-banner h1 {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 2.6rem;  
    text-align: center;
}

.page-banner p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Sections --- */
.section { padding: 90px 0; }
.section-light { background: var(--off-white); }
.section-dark { background: var(--dark-bg); color: rgba(255,255,255,0.9); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-accent { background: var(--primary); color: var(--white); }
.section-accent h2, .section-accent h3, .section-accent h4 { color: var(--white); }

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 16px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-top: 12px;
}

.section-dark .section-header p { color: rgba(255,255,255,0.7); }

/* --- Section Label --- */
.section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 12px;
}
.section-label-light { color: rgba(255,255,255,0.6); }

/* --- About Intro (split layout) --- */
.about-intro {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
.about-intro-text {
    max-width: 100%;
}
.about-intro-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    line-height: 1.3;
}
.about-intro-text p {
    color: var(--text-light);
    margin-bottom: 16px;
    font-size: 1.02rem;
    line-height: 1.75;
}
.about-intro-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.stat-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    text-align: center;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--accent);
}
.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 6px;
}
.stat-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- VM Cards Row (About page) --- */
.vm-cards-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.vm-card-new {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}
.vm-card-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--accent), transparent);
}
.vm-card-body {
    padding: 36px;
}
.vm-card-body h3 { color: var(--white); margin-bottom: 16px; }
.vm-card-body p { color: rgba(255,255,255,0.8); line-height: 1.8; }

/* --- Values Grid (About page) --- */
.values-grid-about {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.value-card-about {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}
.value-card-about:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.value-card-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent);
}
.value-card-about h4 { margin-bottom: 10px; font-size: 1.05rem; }
.value-card-about p { font-size: 0.9rem; color: var(--text-light); line-height: 1.7; }

/* --- Founder Profile (About page) --- */
.founder-profile {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 48px;
    align-items: stretch;
}
.founder-profile-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    border: 4px solid rgba(255,255,255,0.15);
}
.founder-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.founder-profile-info h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 4px;
}
.founder-role {
    color: var(--accent) !important;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 20px !important;
}
.founder-profile-info p {
    color: rgba(255,255,255,0.85);
    margin-bottom: 14px;
}
.credentials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
}
.credential-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    color: rgba(255,255,255,0.9);
    font-size: 0.88rem;
}
.credential-item i {
    color: var(--accent);
    flex-shrink: 0;
}

/* --- Faith Grid (About page) --- */
.faith-grid-about {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}
.faith-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.faith-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.faith-card-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: rgba(121, 169, 161, 0.13); /* Fixed: rgb(121 169 161 / 13%) is invalid */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--accent);
}
.faith-card h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--primary);
}
.faith-card p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

/* --- Vision & Mission Grid --- */
.vision-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.vm-card {
    background: var(--white);
    padding: 44px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.section-dark .vm-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
}

.vm-icon {
    width: 60px;
    height: 60px;
    background: rgba(121, 169, 161, 0.13); /* Fixed */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.vm-card h3 { margin-bottom: 16px; }

.mission-list {
    list-style: none;
    padding: 0;
}

.mission-list li {
    padding: 10px 0 10px 28px;
    position: relative;
    font-size: 0.95rem;
}

.mission-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.85rem;
}

/* --- Values Grid --- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.value-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
}

.value-card:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-4px);
}

.value-icon {
    width: 56px;
    height: 56px;
    background: rgba(121, 169, 161, 0.13); /* Fixed */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent);
    margin: 0 auto 16px;
}

.value-card p { font-size: 0.9rem; color: rgba(255,255,255,0.7); }

/* --- Values Detail (About page) --- */
.values-detail { max-width: 800px; margin: 0 auto; }

.value-detail-card {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.value-detail-card .value-icon { flex-shrink: 0; }

/* --- Departments Preview --- */
.departments-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.dept-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dept-card:hover {
    transform: translateY(-4px);
    border-bottom-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.dept-card i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 16px;
}

.dept-card p { font-size: 0.9rem; color: var(--text-light); }

/* --- Departments Full --- */
/* --- Departments Page Redesign --- */
.dept-stats-bar {
    background: var(--primary);
    padding: 32px 0;
}
.dept-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.dept-stat { color: var(--white); }
.dept-stat-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
}
.dept-stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

/* Department Cards - Alternating Layout */
.dept-page-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: center;
    padding: 48px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-align: left;
}
.dept-page-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent), var(--primary));
    border-radius: 5px 0 0 5px;
}
.dept-page-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}
.dept-page-card--left {
    grid-template-columns: 1fr 280px;
}
.dept-page-card--left::before {
    left: auto;
    right: 0;
    border-radius: 0 5px 5px 0;
}

.dept-card-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: relative;
}
.dept-card-icon-wrap {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(138,225,211,0.15), rgba(11,46,40,0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    color: var(--accent-dark);
    border: 3px solid rgba(138,225,211,0.25);
    transition: var(--transition);
}
.dept-page-card:hover .dept-card-icon-wrap {
    background: linear-gradient(135deg, rgba(138,225,211,0.25), rgba(11,46,40,0.12));
    transform: scale(1.05);
}
.dept-card-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: rgba(11,46,40,0.06);
    line-height: 1;
}

.dept-card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    color: var(--primary);
    margin-bottom: 12px;
}
.dept-card-body > p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.75;
}
.dept-card-topics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    margin-bottom: 20px;
}
.dept-card-topics span {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
    line-height: 1.6;
    padding: 2px 0;
}
.dept-card-topics span i.fas {
    color: var(--accent-dark);
    font-size: 0.85rem;
    margin-right: 6px;
    display: inline-block;
    vertical-align: -0.125em;
}
.dept-card-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: var(--transition);
}
.dept-card-link i.fas {
    margin-left: 6px;
    font-size: 0.85rem;
    display: inline-block;
    vertical-align: -0.125em;
    transition: margin-left 0.3s ease;
}
.dept-card-link:hover {
    color: var(--accent-dark);
}
.dept-card-link:hover i {
    margin-left: 12px;
}

/* Research Cards */
.research-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.research-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    text-align: center;
    transition: var(--transition);
}
.research-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-4px);
    border-color: rgba(138,225,211,0.3);
}
.research-card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: rgba(138,225,211,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--accent);
    transition: var(--transition);
}
.research-card:hover .research-card-icon {
    background: rgba(138,225,211,0.2);
    transform: scale(1.1);
}
.research-card h4 {
    color: var(--white);
    font-family: var(--font-heading);
    margin-bottom: 8px;
    font-size: 1.08rem;
}
.research-card p {
    color: rgba(255,255,255,0.6);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* Departments CTA */
.dept-cta {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}
.dept-cta h2 {
    font-family: var(--font-heading);
    margin-bottom: 12px;
}
.dept-cta p { margin-bottom: 28px; opacity: 0.9; }
.dept-cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-outline-light {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: 2px solid rgba(255,255,255,0.5);
    color: var(--white);
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
}

/* --- Founder Highlight --- */
.founder-highlight {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.founder-icon {
    width: 180px;
    height: 180px;
    min-width: 180px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(201,168,76,0.3);
}

.founder-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.founder-info h3 { color: var(--white); font-size: 1.8rem; }

.founder-title {
    color: var(--accent-light) !important;
    font-weight: 500;
    font-size: 1.05rem;
    margin-bottom: 16px !important;
}

.founder-info p { color: rgba(255,255,255,0.85); }

/* --- Founder Detail (About page) --- */
.founder-detail {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto;
}

.founder-avatar {
    width: 160px;
    height: 160px;
    min-width: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(201,168,76,0.3);
}

.founder-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.founder-bio h3 { color: var(--white); font-size: 1.8rem; }
.founder-bio h4 { color: var(--accent-light); margin-top: 20px; }
.founder-bio p { color: rgba(255,255,255,0.85); }

.credentials-list {
    margin-top: 10px;
}

.credentials-list li {
    padding: 6px 0;
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
}

.credentials-list li i {
    color: var(--accent);
    margin-right: 10px;
}

/* --- Faith Grid (Home) --- */
.faith-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.faith-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.faith-item i {
    color: var(--accent);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.faith-item span { font-size: 0.95rem; }

/* --- Faith List (About page) --- */
.faith-list {
    max-width: 700px;
    margin: 0 auto;
}

.faith-item-full {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}

.faith-item-full i {
    color: var(--accent);
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* --- Faculty Featured (Founder) --- */
.faculty-featured {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 48px;
    align-items: stretch;
}
.faculty-featured-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.faculty-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.faculty-featured-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.faculty-featured-info h2 {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--primary);
}
.faculty-featured-info > p {
    color: var(--text-light);
    margin-bottom: 16px;
    font-size: 1.02rem;
    line-height: 1.75;
}
.faculty-credentials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}
.faculty-credential {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--light-bg);
    border-radius: var(--radius);
    border-left: 3px solid var(--accent);
}
.faculty-credential i {
    color: var(--accent);
    font-size: 1.1rem;
    flex-shrink: 0;
}
.faculty-credential div {
    display: flex;
    flex-direction: column;
}
.faculty-credential strong {
    font-size: 0.88rem;
    color: var(--primary);
    line-height: 1.3;
}
.faculty-credential span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* --- Faculty Grid --- */
.faculty-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.faculty-member-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}
.faculty-member-card:hover {
    background: rgba(255,255,255,0.09);
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(0,0,0,0.22);
    border-color: rgba(138,225,211,0.25);
}
.faculty-member-avatar {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent), rgba(121,169,161,0.6));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
    overflow: hidden;
    border: 2px solid rgba(138,225,211,0.3);
}
.faculty-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.faculty-member-info {
    flex: 1;
    min-width: 0;
    text-align: left;
}
.faculty-member-card h3 {
    color: var(--white);
    font-size: 1.08rem;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.faculty-member-role {
    color: var(--accent) !important;
    font-weight: 600;
    font-size: 0.82rem;
    margin-bottom: 10px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.faculty-member-bio {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: rgba(255,255,255,0.65);
    font-size: 0.82rem;
    line-height: 1.6;
    margin: 6px 0 10px;
}
.faculty-member-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: flex-start;
}
.faculty-tag {
    padding: 3px 10px;
    background: rgba(121,169,161,0.14);
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(121,169,161,0.22);
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 500;
    white-space: nowrap;
}
.faculty-member-card .faculty-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    grid-template-columns: unset;
}
.faculty-member-card .faculty-credential {
    padding: 4px 10px;
    background: rgba(255,255,255,0.06);
    border-radius: 6px;
    border-left: 2px solid var(--accent);
    display: flex;
    align-items: center;
    gap: 6px;
}
.faculty-member-card .faculty-credential i {
    font-size: 0.7rem;
    color: var(--accent);
}
.faculty-member-card .faculty-credential div {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 4px;
}
.faculty-member-card .faculty-credential strong {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.85);
}
.faculty-member-card .faculty-credential span {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.45);
}

/* --- Programs Grid --- */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.program-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 3px solid var(--accent);
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.program-card.featured {
    border-top-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.program-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.program-icon {
    width: 50px;
    height: 50px;
    background: rgba(201,168,76,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent);
}

.program-badge {
    padding: 4px 14px;
    background: rgba(26,58,92,0.08);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-featured {
    background: var(--primary);
    color: var(--white);
}

.program-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.program-card p { color: var(--text-light); font-size: 0.95rem; }

.program-highlights {
    margin: 16px 0 24px;
    flex-grow: 1;
}

.program-highlights li {
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--text);
}

.program-highlights li i {
    color: var(--accent);
    margin-right: 8px;
    font-size: 0.8rem;
}

/* --- Books Grid --- */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.book-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.book-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.book-cover {
    height: 320px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--accent);
    position: relative;
    padding: 24px;
}

.book-info {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-title-urdu {
    font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif;
    font-size: 1.4rem;
    direction: rtl;
    text-align: right;
    color: var(--primary-dark);
    margin-bottom: 6px;
    line-height: 1.8;
}

.book-author {
    color: var(--accent-dark) !important;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px !important;
}

.book-info p:last-child { color: var(--text-light); font-size: 0.9rem; }

.book-title-en {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
}

.book-year {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.book-cover img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.4));
}

.book-actions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.book-actions .btn-sm {
    padding: 6px 16px;
    font-size: 0.8rem;
}

.btn-sm.btn-accent {
    background: var(--accent);
    color: var(--primary);
}
.btn-sm.btn-accent:hover { background: var(--accent-dark); color: #fff; }

.btn-sm.btn-outline-dark {
    border: 1px solid var(--border);
    color: var(--text);
    background: transparent;
}
.btn-sm.btn-outline-dark:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Book type badge & meta */
.book-type-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent);
    color: var(--primary-dark);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.book-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.book-meta-row .book-year {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0;
}
.book-category-badge {
    font-size: 0.72rem;
    padding: 2px 10px;
    border-radius: 20px;
    background: var(--off-white);
    color: var(--primary);
    font-weight: 600;
    border: 1px solid var(--border);
}
.book-description {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 3;
}
.book-info .book-actions {
    margin-top: auto;
    padding-top: 14px;
}

/* --- Publication Detail Modal --- */
.pub-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.pub-modal-overlay.active { opacity: 1; }
.pub-modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 720px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0,0,0,0.3);
    position: relative;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s ease;
}
.pub-modal-overlay.active .pub-modal {
    transform: translateY(0) scale(1);
}
.pub-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.pub-modal-close:hover { background: rgba(0,0,0,0.8); }
.pub-modal-cover {
    width: 100%;
    height: 320px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.pub-modal-cover img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.4));
}
.pub-modal-content {
    padding: 28px 32px 32px;
}
.pub-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.pub-modal-meta span { display: flex; align-items: center; gap: 5px; }
.pub-modal-description {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text);
    white-space: pre-line;
}
@media (max-width: 600px) {
    .pub-modal-overlay { padding: 12px; }
    .pub-modal { max-height: 90vh; }
    .pub-modal-cover { height: 220px; padding: 16px; }
    .pub-modal-content { padding: 20px; }
}

.faculty-card-hint {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--accent);
    opacity: 0.7;
    margin-bottom: 8px;
    transition: opacity 0.2s;
    user-select: none;
}
.faculty-member-card:hover .faculty-card-hint {
    opacity: 1;
}
.faculty-member-card:hover .faculty-card-hint i {
    animation: pulse-icon 0.6s ease infinite alternate;
}
@keyframes pulse-icon {
    from { transform: scale(1); }
    to   { transform: scale(1.25); }
}

/* --- Faculty Member Modal --- */
.faculty-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.faculty-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.faculty-modal {
    background: var(--darker-bg);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 32px 80px rgba(0,0,0,0.5);
    position: relative;
    transform: translateY(24px) scale(0.97);
    transition: transform 0.3s ease;
}
.faculty-modal-overlay.active .faculty-modal {
    transform: translateY(0) scale(1);
}
.faculty-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.faculty-modal-close:hover { background: rgba(255,255,255,0.2); }
.faculty-modal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 28px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.faculty-modal-avatar {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent), rgba(121,169,161,0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
    border: 2px solid rgba(138,225,211,0.35);
}
.faculty-modal-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.faculty-modal-header h2 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 4px;
}
.faculty-modal-header p {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.88rem;
    margin: 0;
}
.faculty-modal-body {
    padding: 22px 28px 28px;
}
.faculty-modal-body > p {
    color: rgba(255,255,255,0.78);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 18px;
}
.faculty-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}
.faculty-modal-creds {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.faculty-modal-cred {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    border-left: 2px solid var(--accent);
}
.faculty-modal-cred i {
    color: var(--accent);
    font-size: 0.8rem;
    flex-shrink: 0;
}
.faculty-modal-cred div {
    display: flex;
    flex-direction: column;
}
.faculty-modal-cred strong {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.3;
}
.faculty-modal-cred span {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.45);
}
@media (max-width: 600px) {
    .faculty-modal-overlay { padding: 12px; }
    .faculty-modal-header { padding: 20px 18px 16px; gap: 14px; }
    .faculty-modal-body { padding: 16px 18px 22px; }
    .faculty-modal-avatar { width: 60px; height: 60px; font-size: 1.4rem; }
}

/* --- Publication List Cards (Articles / Papers / Materials) --- */
.pub-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.pub-list-card {
    display: flex;
    gap: 20px;
    padding: 24px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.section-light .pub-list-card {
    background: var(--white);
    box-shadow: var(--shadow);
}
.section-light .pub-list-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.section-dark .pub-list-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
}
.section-dark .pub-list-card:hover { background: rgba(255,255,255,0.08); }

.pub-list-cover {
    width: 80px;
    min-height: 100px;
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
}
.pub-list-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pub-list-body h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.section-dark .pub-list-body h4 { color: #fff; }

.pub-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.pub-list-meta span { display: flex; align-items: center; gap: 4px; }
.section-dark .pub-list-meta { color: rgba(255,255,255,0.6); }
.pub-list-meta .badge {
    font-size: 0.75rem;
    padding: 2px 10px;
    border-radius: 20px;
    background: var(--accent);
    color: var(--primary);
    font-weight: 600;
}

.pub-list-body p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}
.section-dark .pub-list-body p { color: rgba(255,255,255,0.7); }

/* --- Other Publications (legacy) --- */
.other-publications {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.pub-item {
    text-align: center;
    padding: 32px 24px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.pub-item:hover { background: rgba(255,255,255,0.08); }
.pub-item i { font-size: 2rem; color: var(--accent); margin-bottom: 16px; }
.pub-item p { font-size: 0.9rem; color: rgba(255,255,255,0.7); }

/* --- Testimonials Page --- */

/* Hero Testimonial */
.testi-hero {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 48px;
    align-items: center;
    padding: 48px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border-left: 5px solid var(--accent);
}

.testi-hero-icon {
    font-size: 2.5rem;
    color: var(--accent);
    opacity: 0.5;
    margin-bottom: 16px;
}

.testi-hero-quote blockquote {
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--text);
    font-style: italic;
    font-family: var(--font-heading);
}

.testi-hero-author {
    text-align: center;
}

.testi-avatar-lg {
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
    border: 3px solid var(--accent);
}

.testi-hero-author strong {
    display: block;
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.testi-hero-role {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.testi-hero-author .testi-stars {
    justify-content: center;
    display: flex;
    gap: 2px;
}

/* Featured Grid */
.testi-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 28px;
}

/* Masonry Grid */
.testi-masonry {
    columns: 3;
    column-gap: 24px;
}

.testi-masonry .testi-card {
    break-inside: avoid;
    margin-bottom: 24px;
    display: inline-block;
    width: 100%;
}

/* Card Base */
.testi-card {
    position: relative;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    overflow: hidden;
}

.testi-card:hover { transform: translateY(-4px); }

.testi-card-inner {
    padding: 32px;
}

/* Card Variants */
.testi-card-accent {
    background: var(--primary);
    color: #fff;
}
.testi-card-accent .testi-quote-icon { color: var(--accent); }
.testi-card-accent .testi-text { color: rgba(255,255,255,0.9); }
.testi-card-accent .testi-author-info strong { color: #fff; }
.testi-card-accent .testi-author-info span { color: rgba(255,255,255,0.6); }
.testi-card-accent .testi-divider { background: rgba(255,255,255,0.15); }
.testi-card-accent:hover { box-shadow: 0 12px 40px rgba(11,46,40,0.3); }

.testi-card-light {
    background: var(--white);
    box-shadow: var(--shadow);
}
.testi-card-light:hover { box-shadow: var(--shadow-lg); }

.testi-card-outline {
    background: var(--off-white);
    border: 2px solid var(--border);
}
.testi-card-outline:hover { border-color: var(--accent); box-shadow: var(--shadow); }

/* Featured specific */
.testi-featured .testi-card-inner {
    padding: 36px;
}

.section-dark .testi-featured {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
}
.section-dark .testi-featured:hover { background: rgba(255,255,255,0.1); }

.section-dark .testi-featured .testi-text { color: rgba(255,255,255,0.85); }
.section-dark .testi-featured .testi-author-info strong { color: #fff; }
.section-dark .testi-featured .testi-author-info span { color: rgba(255,255,255,0.6); }

/* Shared Elements */
.testi-quote-icon {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 14px;
    opacity: 0.6;
}

.testi-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 20px;
    font-style: italic;
}

.testi-featured .testi-text {
    font-size: 1.05rem;
}

.testi-divider {
    height: 1px;
    background: var(--border);
    margin-bottom: 20px;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testi-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.testi-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testi-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--accent);
    font-size: 1.1rem;
}

.testi-card-accent .testi-avatar-placeholder {
    background: rgba(255,255,255,0.15);
}

.testi-author-info strong {
    display: block;
    font-size: 0.9rem;
    color: var(--primary);
    line-height: 1.3;
}

.testi-author-info span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.testi-stars {
    margin-top: 4px;
}
.testi-stars i {
    font-size: 0.65rem;
    color: #f5a623;
}
.testi-stars i.testi-star-empty { color: #ddd; }
.section-dark .testi-stars i.testi-star-empty { color: rgba(255,255,255,0.2); }

/* --- Events Page --- */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 28px;
}

.event-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    background: var(--white);
    box-shadow: var(--shadow);
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.event-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.event-card:hover .event-card-image img {
    transform: scale(1.05);
}

.event-card-placeholder {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 3rem;
    opacity: 0.6;
}

.event-category-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--accent);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-past-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
}

.event-card-body {
    padding: 24px;
}

.event-card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 14px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-meta i {
    color: var(--accent-dark);
    font-size: 0.8rem;
}

.event-description {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 3;
}

.event-card-body .btn {
    margin-top: 4px;
}

/* Past events in dark section */
.section-dark .event-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: none;
}

.section-dark .event-card:hover {
    background: rgba(255,255,255,0.1);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.section-dark .event-card-body h3 {
    color: var(--white);
}

.section-dark .event-description {
    color: rgba(255,255,255,0.7);
}

.section-dark .event-meta {
    color: rgba(255,255,255,0.5);
}

.section-dark .event-meta i {
    color: var(--accent);
}

/* Empty state */
.events-empty {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-muted);
}

.events-empty i {
    font-size: 3rem;
    color: var(--accent);
    opacity: 0.5;
    margin-bottom: 20px;
}

.events-empty h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.events-empty p {
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
    }

    .event-card-image {
        height: 180px;
    }
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    text-align: center;
    padding: 80px 24px;
}

.cta-content { max-width: 650px; margin: 0 auto; }
.cta-content h2 { color: var(--white); margin-bottom: 18px; }
.cta-content p { color: rgba(255,255,255,0.85); margin-bottom: 32px; font-size: 1.08rem; line-height: 1.9; }

/* --- Contact Cards Row --- */
.contact-cards-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.contact-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.contact-card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: rgba(11,46,40,0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

.contact-card h4 { margin-bottom: 6px; font-size: 1rem; }
.contact-card p { margin-bottom: 0; color: var(--text-light); font-size: 0.92rem; }
.contact-card a { color: var(--primary); text-decoration: none; }
.contact-card a:hover { color: var(--accent); }

/* --- Contact Layout (Form + Sidebar) --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: start;
}

.contact-form-panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
}

.contact-form-panel h2 {
    margin-bottom: 8px;
}

.contact-form-subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 28px;
    line-height: 1.7;
}

.contact-fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-fields-row .form-group { margin-bottom: 20px; }

.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    transition: var(--transition);
    background: var(--white);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

.required { color: #c62828; }

.char-count {
    display: block;
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 6px;
}

.btn-contact-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
}

.btn-contact-submit:hover {
    background: var(--accent);
    color: var(--primary);
}

.btn-contact-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* --- Contact Success --- */
.contact-success {
    text-align: center;
    padding: 48px 24px;
}

.contact-success-icon {
    font-size: 3.5rem;
    color: #2e7d32;
    margin-bottom: 16px;
    animation: contactPop 0.5s ease;
}

@keyframes contactPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.contact-success h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text);
}

.contact-success p {
    color: var(--text-light);
    max-width: 380px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- Contact Sidebar --- */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-sidebar-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

.contact-sidebar-card h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 1rem;
    color: var(--primary);
}

.contact-sidebar-card h4 i { color: var(--accent); }

.contact-quick-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-quick-info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.92rem;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
    line-height: 1.5;
}

.contact-quick-info li:last-child { border-bottom: none; }
.contact-quick-info li i {
    color: var(--accent);
    margin-top: 3px;
    min-width: 16px;
}

/* --- Contact FAQ --- */
.contact-faq { display: flex; flex-direction: column; gap: 0; }

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item:last-child { border-bottom: none; }

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.faq-question:hover { color: var(--accent); }
.faq-question i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    color: var(--text-light);
}

.faq-item.open .faq-question i { transform: rotate(180deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 200px;
    padding-bottom: 14px;
}

.faq-answer p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 0;
}

.faq-answer a { color: var(--accent); }

.contact-sidebar-cta {
    text-align: center;
    background: rgba(11,46,40,0.03);
    border-color: rgba(11,46,40,0.1);
}

.contact-sidebar-cta p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.65;
}

/* --- Contact Map --- */
.contact-map-section {
    position: relative;
    width: 100%;
}

.contact-map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    background: linear-gradient(to bottom, rgba(11,46,40,0.85), transparent);
    padding: 32px 0;
}

.contact-map-info {
    color: var(--white);
}

.contact-map-info h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 4px;
    color: var(--white);
}

.contact-map-info h3 i {
    color: var(--accent);
    margin-right: 8px;
}

.contact-map-info p {
    font-size: 0.92rem;
    margin-bottom: 0;
    opacity: 0.85;
}

.contact-map-section iframe {
    display: block;
    width: 100%;
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

.form-group textarea { resize: vertical; }

/* --- Alerts --- */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.alert-error {
    background: #fbe9e7;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* --- Content Block --- */
.content-block {
    max-width: 1280px;
    margin: 0 auto;
}

.content-block h2 {
    position: relative;
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.content-block h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.content-block p { font-size: 1.08rem; color: var(--text-light); line-height: 1.9; }

/* --- Donate Nav Button --- */
.btn-nav {
    padding: 8px 22px !important;
    border-radius: 6px !important;
    font-size: 0.88rem !important;
    margin-left: 4px;
}

/* --- Donate Page --- */
.donate-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

.donate-form-panel {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}
.donate-form-panel h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}
.donate-form-subtitle {
    color: var(--text-light);
    margin-bottom: 28px;
    font-size: 0.95rem;
}

.donate-alert {
    padding: 12px 18px;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Amount Selection */
.donate-amount-section { margin-bottom: 28px; }
.donate-amount-section > label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 10px;
}
.donate-amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}
.donate-amount-btn {
    padding: 14px;
    background: var(--light-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
}
.donate-amount-btn:hover {
    border-color: var(--accent);
    color: var(--primary);
}
.donate-amount-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}
.donate-custom-amount {
    position: relative;
}
.donate-currency {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    color: var(--text-muted);
    font-size: 1.1rem;
}
.donate-custom-amount input {
    width: 100%;
    padding: 14px 14px 14px 32px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 600;
    transition: border-color 0.2s;
}
.donate-custom-amount input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11,46,40,0.1);
}

/* Fields */
.donate-fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}
.donate-field label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text);
    margin-bottom: 6px;
}
.donate-field input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}
.donate-field input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11,46,40,0.1);
}

/* Card Details Box */
.donate-card-section { margin-bottom: 24px; }
.donate-card-section > label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text);
    margin-bottom: 6px;
}
.donate-card-box {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s;
}
.donate-card-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11,46,40,0.1);
}
.donate-card-number-row {
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-bottom: 1px solid var(--border);
}
.donate-card-icons {
    display: flex;
    gap: 6px;
    margin-right: 10px;
    font-size: 1.4rem;
}
.donate-card-icons i {
    opacity: 0.3;
    transition: opacity 0.2s;
}
.donate-card-number-row input {
    flex: 1;
    border: none;
    padding: 14px 0;
    font-size: 1rem;
    letter-spacing: 1px;
    outline: none;
}
.donate-card-bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.donate-card-bottom-row input {
    border: none;
    padding: 14px;
    font-size: 0.95rem;
    outline: none;
}
.donate-card-bottom-row input:first-child {
    border-right: 1px solid var(--border);
}

/* Submit */
.btn-donate-submit {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    justify-content: center;
    border-radius: var(--radius);
    margin-bottom: 12px;
}
.donate-secure-note {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.donate-secure-note i { color: #059669; }

/* Success State */
.donate-success {
    text-align: center;
    padding: 20px 0;
}
.donate-success-icon {
    font-size: 4rem;
    color: #059669;
    margin-bottom: 16px;
}
.donate-success h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--primary);
}
.donate-success p { color: var(--text-light); margin-bottom: 12px; }
.donate-success-note { font-style: italic; color: var(--text-muted) !important; }

/* Sidebar */
.donate-sidebar { display: flex; flex-direction: column; gap: 20px; }
.donate-sidebar-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
}
.donate-sidebar-card h3 {
    font-size: 1.15rem;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--light-bg);
    display: flex;
    align-items: center;
    gap: 8px;
}
.donate-sidebar-card h3 i { color: var(--accent); }

.donate-impact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.donate-impact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.donate-impact-amt {
    min-width: 52px;
    padding: 6px 0;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary);
    background: rgba(121,169,161,0.12);
    border-radius: var(--radius);
}
.donate-impact-item p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.5;
    padding-top: 4px;
}

/* Other Methods Sidebar */
.donate-sidebar-other h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--text);
}
.donate-other-method {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.donate-other-method:last-child { border-bottom: none; }
.donate-other-method > i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(121,169,161,0.12);
    color: var(--accent);
    border-radius: 50%;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.donate-other-method div {
    display: flex;
    flex-direction: column;
}
.donate-other-method strong {
    font-size: 0.88rem;
    color: var(--text);
}
.donate-other-method span {
    font-size: 0.82rem;
    color: var(--text-muted);
}
.donate-other-method a { color: var(--primary); }

.scripture-quote {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.scripture-quote .fa-quote-left {
    font-size: 2rem;
    color: var(--accent-light);
    margin-bottom: 20px;
    opacity: 0.5;
}

.scripture-quote blockquote {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--white);
    line-height: 1.7;
    margin-bottom: 16px;
}

.scripture-quote cite {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    font-style: normal;
}

/* --- Media Page --- */
.media-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
    justify-content: center;
}
.media-filter-btn {
    padding: 8px 20px;
    border-radius: 24px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-light);
    background: var(--light-bg);
    border: 1px solid transparent;
    transition: var(--transition);
    text-decoration: none;
}
.media-filter-btn:hover {
    color: var(--primary);
    border-color: var(--accent);
}
.media-filter-btn.active {
    background: var(--primary);
    color: var(--white);
}
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
}

.media-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.media-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.media-thumbnail {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.media-play-btn {
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.55);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.media-play-btn i {
    font-size: 1.5rem;
    color: var(--white);
    margin-left: 4px;
}
.media-card:hover .media-play-btn {
    background: var(--accent);
    transform: scale(1.1);
}

.media-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 4px 12px;
    background: rgba(0,0,0,0.55);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.media-info { padding: 24px; }
.media-info h4 { margin-bottom: 6px; font-size: 1.1rem; }

.media-meta {
    font-size: 0.82rem !important;
    color: var(--text-muted) !important;
    margin-bottom: 10px !important;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.media-meta i { margin-right: 2px; }
.media-date { margin-left: 12px; }
.media-info p:last-child { color: var(--text-light); font-size: 0.92rem; }

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}
.empty-state i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: block;
}
.empty-state h3 { margin-bottom: 8px; color: var(--text); }
.empty-state p { color: var(--text-light); margin-bottom: 16px; }
.empty-state-dark i { color: rgba(255,255,255,0.3); }
.empty-state-dark h3 { color: var(--white); }
.empty-state-dark p { color: rgba(255,255,255,0.5); }

/* --- Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}
.gallery-item:hover img { transform: scale(1.05); }

@media (max-width: 768px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--white);
    opacity: 0;
    transition: opacity 0.3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-cat {
    display: inline-block;
    padding: 2px 10px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.gallery-overlay h4 { font-size: 0.95rem; font-weight: 600; }

.gallery-placeholder {
    height: 100%;
    min-height: 200px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255,255,255,0.4);
    transition: var(--transition);
}

.gallery-placeholder:hover {
    background: rgba(255,255,255,0.08);
    color: var(--accent);
}

.gallery-placeholder i { font-size: 2rem; }
.gallery-placeholder span { font-size: 0.85rem; }

/* --- Video Lightbox --- */
.video-lightbox,
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
.video-lightbox.active,
.gallery-lightbox.active {
    opacity: 1;
    visibility: visible;
}
.video-lightbox-backdrop,
.gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
}
.video-lightbox-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    z-index: 1;
}
.video-lightbox-close,
.gallery-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.video-lightbox-close:hover,
.gallery-lightbox-close:hover { opacity: 1; }
.video-lightbox-title {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.video-lightbox-player {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.video-lightbox-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Gallery Lightbox */
.gallery-lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    text-align: center;
}
.gallery-lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius-lg);
    object-fit: contain;
}
.gallery-lightbox-title {
    color: var(--white);
    font-size: 1rem;
    margin-top: 12px;
}

/* ─── Photo Album Folders ─────────────────────────────── */
.album-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 8px;
}
@media (max-width: 900px) { .album-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px)  { .album-grid { grid-template-columns: 1fr; gap: 14px; } }

.album-folder {
    cursor: pointer;
    border-radius: var(--radius);
    overflow: hidden;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    transition: transform .2s, box-shadow .2s, border-color .2s;
    outline: none;
}
.album-folder:hover,
.album-folder:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,.4);
    border-color: var(--accent);
}
.album-folder-cover {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}
.album-folder-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}
.album-folder:hover .album-folder-cover img { transform: scale(1.06); }
.album-folder-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.2);
    font-size: 3rem;
}
.album-folder-count {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: .7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}
.album-folder-info {
    padding: 12px 14px 14px;
}
.album-folder-info h4 {
    font-size: .95rem;
    font-weight: 600;
    color: rgba(255,255,255,.9);
    margin: 0 0 4px;
    line-height: 1.3;
}
.album-folder-desc {
    font-size: .77rem;
    color: rgba(255,255,255,.45);
    margin: 0 0 5px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.album-folder-date {
    font-size: .75rem;
    color: rgba(255,255,255,.4);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Album detail panel back bar */
.album-detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    flex-wrap: wrap;
}
.album-detail-header h3 { font-size: 1.3rem; margin: 0; }

/* Album Lightbox (with prev/next navigation) */
.album-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}
.album-lightbox.active { opacity: 1; visibility: visible; }
.album-lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    text-align: center;
}
.album-lightbox-content img {
    max-width: 88vw;
    max-height: 76vh;
    border-radius: var(--radius-lg);
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
.album-lb-top {
    position: absolute;
    top: -42px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(255,255,255,.65);
    font-size: .82rem;
}
.album-lightbox-close {
    background: none;
    border: none;
    color: rgba(255,255,255,.7);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color .15s;
}
.album-lightbox-close:hover { color: #fff; }
.album-lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,.15);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: background .2s, border-color .2s;
    z-index: 2;
}
.album-lb-nav:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: var(--primary-dark); }
.album-lb-nav:disabled { opacity: .2; cursor: default; }
.album-lb-nav-prev { left: -60px; }
.album-lb-nav-next { right: -60px; }
.album-lb-title {
    color: rgba(255,255,255,.65);
    font-size: .9rem;
    margin-top: 12px;
    min-height: 1.2em;
}
@media (max-width: 640px) {
    .album-lb-nav { display: none; }
    .album-lightbox-content img { max-height: 70vh; }
}

/* --- Blog Page --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.blog-thumbnail {
    height: 180px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.blog-thumbnail i {
    font-size: 2.5rem;
    color: rgba(255,255,255,0.25);
}

.blog-category {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 14px;
    background: var(--accent);
    color: var(--primary-dark);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.blog-meta i { margin-right: 4px; }

.blog-content h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
}
.blog-content h3.urdu {
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    line-height: 1.8;
    min-height: calc(1.8em * 2);
}

.blog-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 3;
    flex: 1;
}
.blog-content p.urdu {
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    line-height: 1.8;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    margin-top: 14px;
    transition: var(--transition);
}

.blog-read-more:hover {
    color: var(--accent);
    gap: 10px;
}

/* Blog Card Link */
.blog-card-link { text-decoration: none; display: block; }

/* Blog Filter Bar */
.blog-filter-bar {
    background: var(--off-white);
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.blog-filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.blog-search {
    display: flex;
    position: relative;
    min-width: 220px;
}
.blog-search input {
    width: 100%;
    padding: 9px 42px 9px 16px;
    border: 1px solid var(--border);
    border-radius: 30px;
    font-size: 0.88rem;
    font-family: inherit;
    background: var(--white);
    color: var(--text);
    outline: none;
    transition: var(--transition);
}
.blog-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,54,93,0.1);
}
.blog-search button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: none;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: var(--transition);
}
.blog-search button:hover {
    background: var(--primary-dark);
}
.filter-btn {
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    background: var(--white);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Blog Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}
.page-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--off-white);
}
.page-link.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    pointer-events: none;
}
.page-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 40px;
    color: var(--text-muted);
    font-size: 1rem;
}

/* Blog Thumbnail Images */
.blog-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Blog Content Links */
.blog-content h3 a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}
.blog-content h3 a:hover { color: var(--accent-dark); }

/* --- Single Blog Post --- */
.blog-post-banner { text-align: center; }
.blog-category-tag {
    display: inline-block;
    padding: 4px 16px;
    background: var(--accent);
    color: var(--primary-dark);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}
.blog-post-meta {
    display: flex;
    gap: 24px;
    justify-content: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    margin-top: 12px;
}
.blog-post-meta i { margin-right: 6px; }

.blog-post-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 50px;
    align-items: start;
}
.blog-post-content { min-width: 0; }
.blog-post-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 32px;
}
.blog-post-image img { width: 100%; display: block; }

.blog-post-body {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text);
}
.blog-post-body h2,
.blog-post-body h3 {
    font-family: var(--font-heading);
    margin: 32px 0 16px;
    color: var(--primary);
}
.blog-post-body h2 { font-size: 1.6rem; }
.blog-post-body h3 { font-size: 1.3rem; }
.blog-post-body p { margin-bottom: 18px; }
.blog-post-body ul,
.blog-post-body ol {
    margin: 0 0 18px 28px;
    line-height: 1.9;
}
.blog-post-body li { margin-bottom: 6px; }
.blog-post-body blockquote {
    border-left: 4px solid var(--accent);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--off-white);
    font-style: italic;
    border-radius: 0 var(--radius) var(--radius) 0;
}
.blog-post-body em { color: var(--text-light); }

/* Share Buttons */
.blog-post-share {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 0;
    margin-top: 32px;
    border-top: 1px solid var(--border);
}
.blog-post-share span { font-weight: 600; font-size: 0.9rem; }
.share-buttons { display: flex; gap: 10px; }
.share-btn {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: var(--white);
    font-size: 0.9rem;
    transition: var(--transition);
    text-decoration: none;
}
.share-facebook { background: #1877F2; }
.share-twitter { background: #1DA1F2; }
.share-whatsapp { background: #25D366; }
.share-btn:hover { opacity: 0.85; transform: scale(1.1); }

/* Post Navigation */
.blog-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 32px 0;
    margin-top: 16px;
    border-top: 1px solid var(--border);
}
.post-nav-link {
    text-decoration: none;
    padding: 16px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.post-nav-link:hover {
    border-color: var(--primary);
    background: var(--off-white);
}
.post-nav-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.post-nav-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
    line-height: 1.4;
}
.post-nav-next { text-align: right; }

/* Sidebar */
.blog-sidebar { position: sticky; top: 100px; }
.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}
.sidebar-widget h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
}
.sidebar-categories,
.sidebar-recent {
    list-style: none;
}
.sidebar-categories li a,
.sidebar-recent li a {
    display: block;
    padding: 8px 0;
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.sidebar-categories li:last-child a,
.sidebar-recent li:last-child a { border-bottom: none; }
.sidebar-categories li a:hover,
.sidebar-recent li a:hover { color: var(--accent-dark); padding-left: 6px; }
.sidebar-categories li a i { margin-right: 8px; color: var(--accent); }
.recent-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
    font-weight: 500;
    line-height: 1.4;
}
.recent-date { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.sidebar-cta {
    background: var(--primary);
    color: var(--white);
}
.sidebar-cta h4 { color: var(--white); border-color: rgba(255,255,255,0.3); }
.sidebar-cta p { font-size: 0.9rem; opacity: 0.85; margin-bottom: 16px; }
.sidebar-cta .btn-primary {
    background: var(--accent);
    color: var(--primary-dark);
}
.btn-sm { padding: 8px 20px; font-size: 0.85rem; }

/* Blog Grid Responsive */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .blog-thumbnail { height: 160px; }
    .blog-content { padding: 20px; }
    .blog-filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    .blog-filters { justify-content: flex-start; }
    .blog-search { min-width: 0; }
}

@media (max-width: 992px) {
    .blog-post-layout {
        grid-template-columns: 1fr;
    }
    .blog-sidebar { position: static; }
}
@media (max-width: 768px) {
    .blog-post-nav { grid-template-columns: 1fr; }
    .blog-post-share { flex-direction: column; align-items: flex-start; }
}

/* --- Footer --- */
.footer {
    background: var(--darker-bg);
    color: rgba(255,255,255,0.65);
    padding: 0;
}
.footer-top-bar {
    height: 3px;
    background: linear-gradient(90deg, var(--primary-dark), var(--accent), var(--primary-dark));
}

/* Main row: brand | nav groups | contact */
.footer-main {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    padding: 32px 0 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Brand zone */
.footer-brand {
    flex: 0 0 200px;
}
.footer-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    margin-bottom: 10px;
    display: block;
}
.footer-tagline {
    font-size: 0.78rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.5);
    margin-bottom: 12px;
}

/* Nav groups */
.footer-nav {
    flex: 1;
    display: flex;
    gap: 0;
}
.footer-nav-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 24px;
}
.footer-nav-group:first-child { padding-left: 0; }
.footer-nav-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(138,225,211,0.25);
}
.footer-nav a {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.58);
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}
.footer-nav a:hover { color: var(--accent); }

/* Contact zone */
.footer-contact-block {
    flex: 0 0 auto;
}
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-contact li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    white-space: nowrap;
}
.footer-contact li i {
    color: var(--accent);
    font-size: 0.75rem;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}
.footer-contact a {
    color: rgba(255,255,255,0.58);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-contact a:hover { color: var(--accent); }

/* Social icons */
.footer-social {
    display: flex;
    gap: 7px;
    margin-top: 10px;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 0.78rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.footer-social a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary-dark);
}

/* Bottom bar */
.footer-bottom {
    padding: 12px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.35);
}
.footer-legal {
    display: flex;
    gap: 18px;
}
.footer-legal a {
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    font-size: 0.78rem;
    transition: color 0.2s;
}
.footer-legal a:hover { color: var(--accent); }

/* Footer responsive */
@media (max-width: 1024px) {
    .footer-main { gap: 28px; }
    .footer-brand { flex: 0 0 160px; }
    .footer-nav-group { padding: 0 16px; }
}
@media (max-width: 768px) {
    .footer-main { flex-direction: column; gap: 20px; padding: 24px 0 20px; }
    .footer-brand { flex: none; }
    .footer-nav { flex-wrap: wrap; gap: 16px; }
    .footer-nav-group { min-width: 130px; padding: 0; }
    .footer-contact-block { width: 100%; }
    .footer-contact { flex-direction: row; flex-wrap: wrap; gap: 10px 20px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-legal { justify-content: center; }
}
@media (max-width: 480px) {
    .footer-main { gap: 24px; padding: 20px 0 16px; }
    .footer-brand { text-align: center; }
    .footer-logo-img { margin-left: auto; margin-right: auto; }
    .footer-social { justify-content: center; }
    .footer-nav { flex-direction: column; gap: 20px; }
    .footer-nav-group { min-width: 0; width: 100%; padding: 0; }
    .footer-nav a { white-space: normal; }
    .footer-contact-block { text-align: center; }
    .footer-contact-block .footer-nav-label { text-align: center; }
    .footer-contact { flex-direction: column; align-items: center; gap: 10px; }
    .footer-contact li { white-space: normal; justify-content: center; }
    .footer-bottom { gap: 6px; padding: 14px 0; }
    .footer-legal { gap: 12px; }
}

/* ============================================
   Legal Pages (Terms & Privacy)
   ============================================ */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}
.legal-content h2 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
    color: var(--primary);
}
.legal-content h3 {
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}
.legal-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.legal-content ul li {
    margin-bottom: 0.4rem;
}
.legal-content a {
    color: var(--accent);
    text-decoration: underline;
}
.legal-updated {
    color: #888;
    font-style: italic;
    margin-bottom: 2rem;
}

/* ============================================
   404 Error Page
   ============================================ */
.error-page { min-height: 50vh; display: flex; align-items: center; }
.error-content { text-align: center; max-width: 600px; margin: 0 auto; }
.error-code {
    font-size: 8rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.error-content h1 { margin-bottom: 0.75rem; }
.error-content p { color: #666; margin-bottom: 2rem; font-size: 1.1rem; }
.error-actions { display: flex; gap: 15px; justify-content: center; margin-bottom: 2rem; }
.error-links { border-top: 1px solid #eee; padding-top: 1.5rem; }
.error-links p { font-weight: 600; margin-bottom: 0.75rem; font-size: 0.95rem; }
.error-links ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 25px; justify-content: center; }
.error-links a { color: var(--accent); text-decoration: none; font-weight: 500; }
.error-links a:hover { text-decoration: underline; }

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 992px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .hero h1 { font-size: 2.6rem; }
    .section { padding: 60px 0; }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .departments-preview { grid-template-columns: repeat(2, 1fr); }

    .dept-page-card { grid-template-columns: 1fr !important; gap: 28px; padding: 36px; }
    .dept-page-card--left .dept-card-visual { order: -1; }
    .dept-card-topics { grid-template-columns: 1fr 1fr; }
    .dept-stats-grid { grid-template-columns: repeat(4, 1fr); }
    .faith-grid { grid-template-columns: repeat(2, 1fr); }

    .contact-cards-row { grid-template-columns: repeat(2, 1fr); }
    .contact-layout { grid-template-columns: 1fr; }
    .contact-sidebar { flex-direction: row; }
    .contact-sidebar-card { flex: 1; }
    .founder-highlight { flex-direction: column; text-align: center; }
    .founder-detail { flex-direction: column; align-items: center; text-align: center; }
    .faculty-featured { grid-template-columns: 1fr; justify-items: center; }
    .faculty-featured-image { max-height: 350px; width: 100%; }
    .faculty-featured-info { text-align: center; align-items: center; }
    .faculty-credentials { grid-template-columns: 1fr 1fr; }
    .faculty-grid { grid-template-columns: 1fr; }

    .about-intro-stats { grid-template-columns: repeat(4, 1fr); }
    .vm-cards-row { grid-template-columns: 1fr; }
    .values-grid-about { grid-template-columns: repeat(2, 1fr); }
    .founder-profile { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .founder-profile-image { width: 250px; height: 300px; }
    .credentials-grid { grid-template-columns: 1fr; }
    .credential-item { justify-content: center; }
    .donate-layout { grid-template-columns: 1fr; }
    .donate-sidebar { flex-direction: row; }
    .donate-sidebar-card { flex: 1; }
}

@media (max-width: 768px) {
    .top-bar-content { justify-content: center; }
    .top-bar-left, .top-bar-right { gap: 12px; }
    .top-bar span { font-size: 0.8rem; }
    .testi-masonry { columns: 2; }
    .testi-hero { grid-template-columns: 1fr; gap: 24px; padding: 32px; }

    .nav-toggle { display: flex; }

    .nav-menu {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 300px;
        max-width: 85vw;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 72px 0 0;
        box-shadow: -4px 0 30px rgba(0,0,0,0.15);
        gap: 0;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                    visibility 0.35s;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        z-index: 1001;
    }

    .nav-menu.open {
        transform: translateX(0);
        visibility: visible;
    }

    .nav-menu > li {
        display: block;
        width: 100%;
        border-bottom: 1px solid rgba(0,0,0,0.06);
    }

    .nav-menu > li:last-child {
        border-bottom: none;
        margin-top: auto;
        padding: 20px 16px;
    }

    .nav-menu a {
        display: block;
        width: 100%;
        padding: 15px 20px;
        font-size: 0.95rem;
        border-bottom: none;
        border-radius: 0 !important;
        position: relative;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        background: rgba(102,187,173,0.1) !important;
    }

    .nav-menu > li > a.active::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 3px;
        background: var(--accent);
        border-radius: 0 3px 3px 0;
    }

    .nav-menu .btn-nav {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        margin: 0 !important;
        border-radius: var(--radius) !important;
        padding: 14px 20px !important;
        font-size: 1rem !important;
    }

    .nav-menu .btn-nav.active::before {
        display: none;
    }

    .has-dropdown {
        position: relative;
    }

    .has-dropdown .dropdown-toggle {
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }

    .has-dropdown .dropdown-toggle i {
        margin-left: auto;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(0,0,0,0.04);
        transition: var(--transition);
        font-size: 0.6rem;
        flex-shrink: 0;
    }

    .has-dropdown.open > .dropdown-toggle i {
        background: rgba(102,187,173,0.15);
        color: var(--primary);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background: rgba(0,0,0,0.02);
        border-radius: 0;
        min-width: auto;
        width: 100%;
    }

    .has-dropdown.open .dropdown-menu {
        max-height: 300px;
    }

    .dropdown-menu li {
        display: block;
        width: 100%;
        border-bottom: none;
    }

    .dropdown-menu a {
        display: block;
        width: 100%;
        padding: 13px 20px 13px 44px !important;
        font-size: 0.88rem !important;
    }

    .dropdown-menu a::before {
        content: '';
        position: absolute;
        left: 24px;
        top: 50%;
        transform: translateY(-50%);
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: var(--accent);
        opacity: 0.4;
    }

    .dropdown-menu a:hover::before,
    .dropdown-menu a.active::before {
        opacity: 1;
    }

    .hero { padding: 70px 0 80px; }
    .hero h1 { font-size: 2rem; }
    .hero-text { font-size: 1rem; }

    .page-banner { padding: 50px 0 40px; }
    .page-banner h1 { font-size: 2rem; }

    .vision-mission-grid { grid-template-columns: 1fr; }

    .faculty-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .faculty-featured { grid-template-columns: 1fr; }
    .faculty-featured-image { max-height: 300px; }
    .faculty-credentials { grid-template-columns: 1fr; }

    .dept-page-card { padding: 28px; }
    .dept-page-card--left .dept-card-visual { order: -1; }
    .dept-card-icon-wrap { width: 90px; height: 90px; font-size: 2.2rem; }
    .dept-card-number { font-size: 2.5rem; }
    .dept-card-topics { grid-template-columns: 1fr; }
    .dept-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

    .value-detail-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .programs-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }
    .departments-preview { grid-template-columns: 1fr; }
    .faith-grid { grid-template-columns: 1fr; }
    .values-grid-about { grid-template-columns: 1fr; }
    .faith-grid-about { grid-template-columns: 1fr; }
    .about-intro-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .credentials-grid { grid-template-columns: 1fr; }
    .donate-form-panel { padding: 28px 20px; }
    .donate-fields-row { grid-template-columns: 1fr; }
    .donate-amount-grid { grid-template-columns: repeat(3, 1fr); }
    .donate-sidebar { flex-direction: column; }
    .contact-cards-row { grid-template-columns: 1fr; }
    .contact-form-panel { padding: 28px 20px; }
    .contact-fields-row { grid-template-columns: 1fr; }
    .contact-sidebar { flex-direction: column; }

    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .error-code { font-size: 5rem; }
    .error-actions { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 20px; }
    .hero h1 { font-size: 1.7rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-buttons .btn { width: 100%; max-width: 280px; }
    .section { padding: 50px 0; }
    .books-grid { grid-template-columns: 1fr; }
    .pub-list-grid { grid-template-columns: 1fr; }
    .pub-list-card { flex-direction: column; }
    .pub-list-cover { width: 100%; min-height: 140px; }
    .testi-featured-grid { grid-template-columns: 1fr; }
    .testi-masonry { columns: 1; }
    .testi-hero { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
    .testi-hero-author { text-align: center; }
    .testi-card-inner { padding: 24px; }
    .vm-card { padding: 28px; }
    .faculty-card { padding: 28px; }
    .faculty-member-card { padding: 16px; gap: 14px; }
    .dept-page-card { padding: 24px; }
    .dept-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .dept-stat-num { font-size: 1.8rem; }
    .program-card { padding: 28px 24px; }
}

/* ============================================
   Animations
   ============================================ */
.animate-target {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-target.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Cookie Consent Banner ────────────────────────── */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary);
    color: #fff;
    padding: 0;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}
.cookie-consent.show { transform: translateY(0); }
.cookie-consent-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.cookie-consent p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}
.cookie-consent a { color: var(--accent); text-decoration: underline; }
.cookie-accept {
    white-space: nowrap;
    padding: 8px 24px;
    font-size: 0.85rem;
    flex-shrink: 0;
}
@media (max-width: 600px) {
    .cookie-consent-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ── Print Stylesheet ─────────────────────────────── */
@media print {
    .navbar, .skip-link, .footer, .cookie-consent,
    .hero, .cta-section, .dept-cta, .btn,
    .social-links, .back-to-top {
        display: none !important;
    }
    main#main-content {
        margin: 0;
        padding: 0;
    }
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    a { color: #000; text-decoration: underline; }
    a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
    nav a[href]::after, .footer a[href]::after { content: none; }
    img { max-width: 100% !important; }
    h1, h2, h3 { page-break-after: avoid; }
    .section-padding { padding: 20px 0; }
}

/* ===========================
   STUDY RESOURCES PAGE
   =========================== */

/* Sticky Navigation Bar */
.study-nav-bar {
    background: var(--white);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 14px 0;
    position: sticky;
    top: 70px;
    z-index: 90;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.study-nav-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}
.study-nav-scroll::-webkit-scrollbar { height: 4px; }
.study-nav-scroll::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
.study-nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--primary);
    background: rgba(11, 46, 40, 0.08); /* fallback */
    background: color-mix(in srgb, var(--pill-color, var(--primary)) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--pill-color, var(--primary)) 20%, transparent);
    text-decoration: none;
    transition: all 0.25s ease;
}
.study-nav-pill:hover {
    background: var(--pill-color, var(--primary));
    color: var(--white);
    transform: translateY(-1px);
}

/* Section Header */
.study-section-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 36px;
}
.study-section-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.study-section-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text);
    margin-bottom: 4px;
}
.study-section-header p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* Group Title */
.study-group {
    margin-bottom: 32px;
}
.study-group:last-child {
    margin-bottom: 0;
}
.study-group-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(0,0,0,0.06);
}

/* Items Grid */
.study-items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.study-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--white);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.25s ease;
}
.section-dark .study-item {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.08);
}
.study-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
a.study-item-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
a.study-item-link:hover {
    border-color: var(--primary);
}
.study-item-ext {
    font-size: 0.65rem;
    opacity: 0.35;
    margin-left: 4px;
    vertical-align: middle;
    transition: opacity 0.2s;
}
a.study-item-link:hover .study-item-ext {
    opacity: 0.8;
}
.section-dark .study-item:hover {
    background: rgba(255,255,255,0.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.study-item-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    padding-top: 2px;
}
.study-item-body h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 2px;
}
.section-dark .study-item-body h4 {
    color: var(--white);
}
.study-item-body p {
    font-size: 0.82rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.4;
}
.section-dark .study-item-body p {
    color: rgba(255,255,255,0.6);
}
.section-dark .study-group-title {
    color: var(--white);
    border-bottom-color: rgba(255,255,255,0.1);
}
.section-dark .study-section-header h2 {
    color: var(--white);
}
.section-dark .study-section-header p {
    color: rgba(255,255,255,0.6);
}

/* Responsive */
@media (max-width: 992px) {
    .study-items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .study-items-grid {
        grid-template-columns: 1fr;
    }
    .study-section-header {
        flex-direction: column;
        text-align: center;
    }
    .study-section-header h2 {
        font-size: 1.4rem;
    }
    .study-nav-pill {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* ===========================
   BIBLE READER
   =========================== */
.bible-app {
    display: flex;
    min-height: calc(100vh - 240px);
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.06);
}

/* Overlay (mobile) */
.bible-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 199;
}
.bible-overlay.open { display: block; }

/* Sidebar */
.bible-sidebar {
    width: 260px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    border-right: 1px solid rgba(0,0,0,0.06);
}
.bible-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.bible-sidebar-head i { margin-right: 6px; }
.bible-sidebar-close {
    display: none;
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--text-light);
    cursor: pointer;
}
.bible-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

/* Testament groups */
.bible-tg { margin-bottom: 4px; }
.bible-tg-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    cursor: pointer;
    user-select: none;
}
.bible-tg-title:hover { color: var(--primary); }
.bible-tg-title i { font-size: 0.6rem; transition: transform 0.2s; }

/* Book items */
.bible-bk { padding: 0 8px; }
.bible-bk-name {
    display: block;
    width: 100%;
    text-align: left;
    padding: 6px 12px;
    border: none;
    background: none;
    font-size: 0.88rem;
    color: var(--text);
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s;
}
.bible-bk-name:hover { background: rgba(0,0,0,0.04); }
.bible-bk.active > .bible-bk-name {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
}

/* Chapter grid */
.bible-chs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px 12px 10px;
}
.bible-ch {
    width: 32px;
    height: 30px;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 6px;
    background: var(--white);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all 0.15s;
}
.bible-ch:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.bible-ch.ch-on { background: var(--accent); color: var(--white); border-color: var(--accent); }

/* Main area */
.bible-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Toolbar */
.bible-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    background: #fafbfc;
    flex-wrap: wrap;
}
.bible-menu-btn {
    display: none;
    background: none;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 1rem;
    color: var(--text);
    cursor: pointer;
}
.bible-select {
    padding: 6px 10px;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 8px;
    font-size: 0.85rem;
    background: var(--white);
    color: var(--text);
    cursor: pointer;
    max-width: 200px;
}
.bible-nav-group {
    display: flex;
    align-items: center;
    gap: 6px;
}
.bible-nav-btn {
    background: none;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    color: var(--text);
    font-size: 0.85rem;
    transition: all 0.15s;
}
.bible-nav-btn:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.bible-ref {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
    white-space: nowrap;
}
.bible-toolbar-actions {
    margin-left: auto;
    display: flex;
    gap: 6px;
}
.bible-action-btn {
    background: none;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    color: var(--text);
    font-size: 0.9rem;
    transition: all 0.15s;
}
.bible-action-btn:hover,
.bible-action-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Search bar */
.bible-search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f0f4ff;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.bible-search-bar input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
}
.bible-search-bar input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,54,93,0.1); }
.bible-search-bar button {
    background: none;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    color: var(--text);
    transition: all 0.15s;
}
.bible-search-bar button:hover { background: var(--primary); color: var(--white); }
.bible-search-msg {
    padding: 10px 16px;
    background: #fff3cd;
    color: #856404;
    border-radius: 8px;
    font-size: 0.88rem;
    margin-bottom: 16px;
}
.bible-search-msg i { margin-right: 6px; }

/* Content area */
.bible-content {
    flex: 1;
    overflow-y: auto;
    padding: 28px 32px;
}
.bible-chapter-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(0,0,0,0.06);
}
.bible-chapter-title small {
    font-size: 0.55em;
    color: var(--text-light);
    font-weight: 400;
}
.bible-verses {
    line-height: 2;
    font-size: 1.05rem;
    color: var(--text);
}
.bv { transition: background 0.2s; }
.bv sup {
    font-size: 0.65em;
    color: var(--primary);
    font-weight: 700;
    margin-right: 2px;
    vertical-align: super;
}
.bv-hl {
    background: rgba(255, 213, 79, 0.45);
    border-radius: 3px;
    padding: 1px 2px;
}

/* Chapter nav footer */
.bible-chapter-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.06);
}
.bible-chapter-nav button {
    padding: 10px 20px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.bible-chapter-nav button:hover { opacity: 0.85; transform: translateY(-1px); }

/* Compare mode */
.bible-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.bible-compare-col {
    padding-right: 16px;
}
.bible-compare-col:first-child {
    border-right: 1px solid rgba(0,0,0,0.06);
}
.bible-compare-sel {
    padding: 4px 8px;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 6px;
    font-size: 0.78rem;
    cursor: pointer;
    margin-left: 4px;
}

/* Loading & error */
.bible-loading, .bible-error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 80px 20px;
    font-size: 1rem;
    color: var(--text-light);
}
.bible-error { color: #dc3545; }

/* Responsive */
@media (max-width: 900px) {
    .bible-sidebar {
        position: fixed;
        top: 0; left: -280px; bottom: 0;
        width: 270px;
        z-index: 200;
        transition: left 0.3s ease;
        box-shadow: none;
    }
    .bible-sidebar.open {
        left: 0;
        box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    }
    .bible-sidebar-close { display: block; }
    .bible-menu-btn { display: block; }
    .bible-compare { grid-template-columns: 1fr; }
    .bible-compare-col:first-child { border-right: none; padding-right: 0; border-bottom: 1px solid rgba(0,0,0,0.06); padding-bottom: 20px; }
}
@media (max-width: 576px) {
    .bible-content { padding: 16px; }
    .bible-chapter-title { font-size: 1.2rem; }
    .bible-verses { font-size: 0.95rem; }
    .bible-toolbar { gap: 6px; padding: 8px 10px; }
    .bible-select { max-width: 140px; font-size: 0.8rem; }
    .bible-ref { font-size: 0.88rem; }
}

/* ===========================
   CONCORDANCE / SEARCH PAGE
   =========================== */
.conc-search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.conc-search-box input {
    flex: 1;
    min-width: 200px;
    padding: 10px 16px;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
}
.conc-search-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,54,93,0.08); }
.conc-search-box select {
    padding: 10px 12px;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 8px;
    font-size: 0.88rem;
    cursor: pointer;
    background: var(--white);
}
.conc-search-box button {
    padding: 10px 20px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
}
.conc-search-box button:hover { opacity: 0.85; }
.conc-info {
    background: #f0f4ff;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 24px;
}
.conc-info i { color: var(--primary); margin-right: 6px; }
.conc-info a { color: var(--primary); font-weight: 600; text-decoration: none; }
.conc-info a:hover { text-decoration: underline; }
.conc-loading, .conc-empty {
    text-align: center;
    padding: 40px 20px;
    font-size: 1rem;
    color: var(--text-light);
}
.conc-header {
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.92rem;
    color: var(--text);
}
.conc-list { display: flex; flex-direction: column; gap: 8px; }
.conc-result {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 10px;
    padding: 14px 18px;
    transition: all 0.2s;
}
.conc-result:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.06); }
.conc-ref {
    display: inline-block;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.88rem;
    text-decoration: none;
    margin-bottom: 4px;
}
.conc-ref:hover { text-decoration: underline; }
.conc-result p {
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.6;
    margin: 0;
}
.conc-result mark {
    background: rgba(255, 213, 79, 0.5);
    border-radius: 2px;
    padding: 1px 2px;
}

/* ===========================
   TOPICAL BIBLE PAGE
   =========================== */
.topic-filter {
    margin-bottom: 24px;
}
.topic-filter input {
    width: 100%;
    max-width: 400px;
    padding: 10px 16px;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 8px;
    font-size: 0.92rem;
    outline: none;
}
.topic-filter input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,54,93,0.08); }
.topic-category { margin-bottom: 32px; }
.topic-cat-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.topic-cat-title i { color: var(--primary); font-size: 0.95rem; }
.topic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.topic-card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.topic-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.06); }
.topic-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    user-select: none;
}
.topic-card-head i:first-child { color: var(--primary); font-size: 0.85rem; width: 18px; text-align: center; }
.topic-card-head span { flex: 1; }
.topic-toggle {
    font-size: 0.7rem;
    color: var(--text-light);
    transition: transform 0.2s;
}
.topic-card.open .topic-toggle { transform: rotate(180deg); }
.topic-card-body {
    display: none;
    padding: 0 16px 14px;
    border-top: 1px solid rgba(0,0,0,0.04);
}
.topic-card.open .topic-card-body { display: block; }
.topic-card-body ul { list-style: none; padding: 0; margin: 10px 0 0; }
.topic-card-body li { padding: 4px 0; }
.topic-card-body a {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
}
.topic-card-body a:hover { text-decoration: underline; }
@media (max-width: 768px) { .topic-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .topic-grid { grid-template-columns: 1fr; } }

/* ===========================
   BIBLICAL MAPS PAGE
   =========================== */
.maps-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.map-card {
    display: flex;
    gap: 20px;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    padding: 24px;
    transition: box-shadow 0.2s;
}
.map-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.07); }
.map-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    color: var(--white);
    font-size: 1.3rem;
}
.map-card-num {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.map-card-body { flex: 1; }
.map-card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--text);
}
.map-card-body p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 12px;
}
.map-places strong {
    font-size: 0.82rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}
.map-places strong i { color: var(--primary); }
.map-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.map-tag {
    padding: 4px 10px;
    background: #f0f4ff;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 50px;
    border: 1px solid rgba(26,54,93,0.1);
}
@media (max-width: 576px) {
    .map-card { flex-direction: column; padding: 16px; }
    .map-card-icon { width: 48px; height: 48px; font-size: 1rem; }
}

/* ===========================
   BIBLICAL TIMELINE PAGE
   =========================== */
.timeline { position: relative; }
.timeline-era { margin-bottom: 40px; }
.timeline-era-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-radius: 10px;
    background: var(--primary);
    color: var(--white);
    margin-bottom: 20px;
}
.timeline-era-head h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--white);
}
.timeline-period {
    font-size: 0.85rem;
    opacity: 0.85;
    font-weight: 500;
}
.timeline-events {
    position: relative;
    padding-left: 32px;
    border-left: 3px solid rgba(0,0,0,0.08);
    margin-left: 16px;
}
.timeline-event {
    position: relative;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.timeline-event:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.timeline-dot {
    position: absolute;
    left: -40px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--primary);
}
.timeline-event-content {}
.timeline-date {
    font-size: 0.78rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}
.timeline-event-content h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 4px;
}
.timeline-event-content p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 6px;
}
.timeline-ref {
    font-size: 0.82rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}
.timeline-ref:hover { text-decoration: underline; }
@media (max-width: 576px) {
    .timeline-era-head { flex-direction: column; gap: 4px; text-align: center; }
    .timeline-era-head h2 { font-size: 1rem; }
    .timeline-events { padding-left: 24px; margin-left: 10px; }
    .timeline-dot { left: -32px; width: 12px; height: 12px; }
}

/* ═══════════════════════════════════════════════════════════════
   HEBREW BIBLE READER
   ═══════════════════════════════════════════════════════════════ */
.hebrew-reader-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-end;
    padding: 16px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    margin-bottom: 24px;
}
.hebrew-ctrl-group { display: flex; flex-direction: column; gap: 4px; }
.hebrew-ctrl-group label { font-size: .75rem; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: .03em; }
.hebrew-ctrl-group select {
    padding: 8px 30px 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: .92rem;
    background: #f8fafc;
    cursor: pointer;
    min-width: 160px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
}
.hebrew-ctrl-group select:focus { border-color: #0d9488; outline: none; box-shadow: 0 0 0 3px rgba(13,148,136,.15); }

/* Display toggles */
.hebrew-display-toggles { display: flex; gap: 0; }
.hebrew-toggle {
    padding: 7px 14px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    cursor: pointer;
    font-size: .85rem;
    font-weight: 500;
    color: #64748b;
    transition: all .2s;
}
.hebrew-toggle:first-child { border-radius: 8px 0 0 8px; }
.hebrew-toggle:last-child { border-radius: 0 8px 8px 0; }
.hebrew-toggle:not(:first-child) { border-left: 0; }
.hebrew-toggle.active { background: #0d9488; color: #fff; border-color: #0d9488; }

/* Font size buttons */
.hebrew-font-ctrl { flex-direction: row; align-items: center; gap: 6px; }
.hebrew-size-btn {
    width: 34px; height: 34px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: .85rem;
    color: #475569;
    display: flex; align-items: center; justify-content: center;
    transition: all .2s;
}
.hebrew-size-btn:hover { background: #0d9488; color: #fff; border-color: #0d9488; }

/* Chapter heading */
.hebrew-chapter-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 12px 0;
    min-height: 0;
}
.hebrew-chapter-heading:empty { display: none; }
.hbh-he { font-family: 'SBL Hebrew', 'Noto Serif Hebrew', 'Frank Ruehl CLM', 'Times New Roman', serif; font-size: 1.7rem; color: #0d9488; font-weight: 700; }
.hbh-en { font-size: 1.15rem; color: #475569; font-weight: 600; }

/* Verses area */
.hebrew-verses {
    --hebrew-font-size: 1.5rem;
    min-height: 200px;
}

/* Welcome / Loading / Error */
.hebrew-reader-welcome {
    text-align: center;
    padding: 48px 20px;
    color: #64748b;
}
.hebrew-reader-welcome i { font-size: 3rem; color: #0d9488; opacity: .5; margin-bottom: 16px; }
.hebrew-reader-welcome h3 { font-size: 1.2rem; color: #334155; margin: 10px 0; }
.hebrew-reader-tip { font-size: .88rem; color: #94a3b8; margin-top: 10px; }
.hebrew-loading { text-align: center; padding: 48px 20px; color: #0d9488; font-size: 1.1rem; }

/* Individual verse */
.hebrew-verse {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0,0,0,.04);
}
.hebrew-verse:last-child { border-bottom: none; }
.hv-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #f0fdfa;
    color: #0d9488;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .82rem;
    margin-top: 2px;
}
.hv-text { flex: 1; }
.hv-he {
    font-family: 'SBL Hebrew', 'Noto Serif Hebrew', 'Frank Ruehl CLM', 'Times New Roman', serif;
    font-size: var(--hebrew-font-size);
    line-height: 2;
    color: #1e293b;
    margin-bottom: 6px;
}
.hv-en {
    font-size: .95rem;
    line-height: 1.6;
    color: #64748b;
}

/* Display modes */
.hebrew-mode-hebrew .hv-en { display: none; }

/* Chapter navigation */
.hebrew-chapter-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    padding: 16px 0;
    border-top: 1px solid rgba(0,0,0,.06);
}
.hebrew-chapter-nav span { font-weight: 600; color: #475569; font-size: .95rem; }
.btn-chapnav {
    padding: 9px 18px;
    background: #0d9488;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: .9rem;
    transition: all .2s;
    display: flex; align-items: center; gap: 6px;
}
.btn-chapnav:hover:not(:disabled) { background: #0f766e; transform: translateY(-1px); }
.btn-chapnav:disabled { opacity: .35; cursor: default; }

/* Responsive: Hebrew reader */
@media (max-width: 768px) {
    .hebrew-reader-controls { gap: 10px; padding: 12px 14px; }
    .hebrew-ctrl-group select { min-width: 120px; font-size: .85rem; padding: 7px 24px 7px 10px; }
    .hebrew-toggle { padding: 6px 10px; font-size: .8rem; }
    .hbh-he { font-size: 1.4rem; }
    .hbh-en { font-size: 1rem; }
    .hv-he { line-height: 1.8; }
    .hv-num { width: 28px; height: 28px; font-size: .75rem; }
    .hebrew-chapter-nav { flex-wrap: wrap; gap: 10px; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════════
   GREEK NEW TESTAMENT READER
   ═══════════════════════════════════════════════════════════════ */
.greek-reader-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-end;
    padding: 16px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    margin-bottom: 24px;
}
.greek-ctrl-group { display: flex; flex-direction: column; gap: 4px; }
.greek-ctrl-group label { font-size: .75rem; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: .03em; }
.greek-ctrl-group select {
    padding: 8px 30px 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: .92rem;
    background: #f8fafc;
    cursor: pointer;
    min-width: 160px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
}
.greek-ctrl-group select:focus { border-color: #0d9488; outline: none; box-shadow: 0 0 0 3px rgba(13,148,136,.15); }

/* Display toggles */
.greek-display-toggles { display: flex; gap: 0; }
.greek-toggle {
    padding: 7px 14px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    cursor: pointer;
    font-size: .85rem;
    font-weight: 500;
    color: #64748b;
    transition: all .2s;
}
.greek-toggle:first-child { border-radius: 8px 0 0 8px; }
.greek-toggle:last-child { border-radius: 0 8px 8px 0; }
.greek-toggle:not(:first-child) { border-left: 0; }
.greek-toggle.active { background: #0d9488; color: #fff; border-color: #0d9488; }

/* Font size buttons */
.greek-font-ctrl { flex-direction: row; align-items: center; gap: 6px; }
.greek-size-btn {
    width: 34px; height: 34px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: .85rem;
    color: #475569;
    display: flex; align-items: center; justify-content: center;
    transition: all .2s;
}
.greek-size-btn:hover { background: #0d9488; color: #fff; border-color: #0d9488; }

/* Chapter heading */
.greek-chapter-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 12px 0;
    min-height: 0;
}
.greek-chapter-heading:empty { display: none; }
.gkh-gk { font-family: 'SBL Greek', 'Noto Serif', 'Georgia', 'Times New Roman', serif; font-size: 1.7rem; color: #0d9488; font-weight: 700; }
.gkh-en { font-size: 1.15rem; color: #475569; font-weight: 600; }

/* Verses area */
.greek-verses {
    --greek-font-size: 1.35rem;
    min-height: 200px;
}

/* Welcome / Loading / Error */
.greek-reader-welcome {
    text-align: center;
    padding: 48px 20px;
    color: #64748b;
}
.greek-reader-welcome i { font-size: 3rem; color: #0d9488; opacity: .5; margin-bottom: 16px; }
.greek-reader-welcome h3 { font-size: 1.2rem; color: #334155; margin: 10px 0; }
.greek-reader-tip { font-size: .88rem; color: #94a3b8; margin-top: 10px; }
.greek-loading { text-align: center; padding: 48px 20px; color: #0d9488; font-size: 1.1rem; }

/* Individual verse */
.greek-verse {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0,0,0,.04);
}
.greek-verse:last-child { border-bottom: none; }
.gv-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #f0fdfa;
    color: #0d9488;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .82rem;
    margin-top: 2px;
}
.gv-text { flex: 1; }
.gv-gk {
    font-family: 'SBL Greek', 'Noto Serif', 'Georgia', 'Times New Roman', serif;
    font-size: var(--greek-font-size);
    line-height: 1.9;
    color: #1e293b;
    margin-bottom: 6px;
}
.gv-en {
    font-size: .95rem;
    line-height: 1.6;
    color: #64748b;
}
.gv-translit {
    font-size: .95rem;
    line-height: 1.7;
    color: #0d9488;
    font-style: italic;
    font-weight: 500;
}

/* Display modes */
.greek-mode-greek .gv-en { display: none; }
.greek-mode-greek .gv-translit { display: none; }
.greek-mode-both .gv-translit { display: none; }
.greek-mode-translit .gv-gk { display: none; }
.greek-mode-translit .gv-en { display: none; }

/* Chapter navigation */
.greek-chapter-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    padding: 16px 0;
    border-top: 1px solid rgba(0,0,0,.06);
}
.greek-chapter-nav span { font-weight: 600; color: #475569; font-size: .95rem; }
.greek-chapter-nav .btn-chapnav { background: #0d9488; }
.greek-chapter-nav .btn-chapnav:hover:not(:disabled) { background: #0f766e; }

/* Vocab Greek text styling */
.vocab-greek { font-family: 'SBL Greek', 'Noto Serif', 'Georgia', 'Times New Roman', serif; font-size: 1.4rem; color: #0d9488; font-weight: 600; }

/* Responsive: Greek reader */
@media (max-width: 768px) {
    .greek-reader-controls { gap: 10px; padding: 12px 14px; }
    .greek-ctrl-group select { min-width: 120px; font-size: .85rem; padding: 7px 24px 7px 10px; }
    .greek-toggle { padding: 6px 10px; font-size: .8rem; }
    .gkh-gk { font-size: 1.4rem; }
    .gkh-en { font-size: 1rem; }
    .gv-gk { line-height: 1.7; }
    .gv-num { width: 28px; height: 28px; font-size: .75rem; }
    .greek-chapter-nav { flex-wrap: wrap; gap: 10px; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════════
   INTERLINEAR BIBLE READER — BibleHub-style word cards
   ═══════════════════════════════════════════════════════════════ */

/* Verses area */
.il-verses {
    --il-font-size: 1.4rem;
    min-height: 200px;
}

/* Verse block (one per verse) */
.il-verse-block {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
}
.il-verse-block:last-child { border-bottom: none; }

.il-verse-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #0d9488, #0f766e);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .85rem;
    margin-top: 6px;
    box-shadow: 0 2px 6px rgba(13,148,136,.25);
}

.il-verse-content { flex: 1; min-width: 0; }

/* Word cards row */
.interlinear-words {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px 0 6px;
    align-items: stretch;
}

/* Hebrew OT — right-to-left flow */
.il-ot .interlinear-words { direction: rtl; }

/* Individual word card — BibleHub stacked layout */
.interlinear-word {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 72px;
    max-width: 160px;
    padding: 8px 8px 7px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    background: #fff;
    gap: 3px;
    cursor: default;
    transition: background .15s, border-color .15s, box-shadow .15s;
}
.interlinear-word:hover {
    background: #f0fdfa;
    border-color: #0d9488;
    box-shadow: 0 2px 8px rgba(13,148,136,.12);
}

/* Strong's number — top, accent colour */
.il-strongs {
    font-size: .62rem;
    font-weight: 700;
    color: #0d9488;
    letter-spacing: .3px;
    text-decoration: none;
    line-height: 1;
    direction: ltr;
    unicode-bidi: embed;
}
a.il-strongs:hover { text-decoration: underline; }

/* Transliteration — small italic */
.il-translit {
    font-size: .67rem;
    color: #64748b;
    font-style: italic;
    line-height: 1.1;
    direction: ltr;
    unicode-bidi: embed;
    word-break: break-word;
}

/* Original text — large, most prominent */
.il-original {
    font-size: var(--il-font-size, 1.4rem);
    color: #1e293b;
    font-weight: 600;
    line-height: 1.3;
}

/* Hebrew font for OT */
.il-ot .il-original { font-family: 'SBL Hebrew', 'Noto Serif Hebrew', 'Frank Ruehl CLM', 'Times New Roman', serif; }
/* Greek font for NT */
.il-nt .il-original { font-family: 'SBL Greek', 'Noto Serif', 'Georgia', 'Times New Roman', serif; }

/* English gloss — bold, below original */
.il-gloss {
    font-size: .72rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.2;
    direction: ltr;
    unicode-bidi: embed;
    word-break: break-word;
}

/* Parsing info — tiny gray, bottom */
.il-parse {
    font-size: .58rem;
    color: #94a3b8;
    line-height: 1.1;
    direction: ltr;
    unicode-bidi: embed;
    text-align: center;
    word-break: break-word;
}

/* English translation line below word cards */
.il-en-line {
    margin-top: 10px;
    padding: 10px 14px;
    background: #f0fdfa;
    border-left: 3px solid #0d9488;
    border-radius: 0 8px 8px 0;
    font-size: .95rem;
    line-height: 1.7;
    color: #334155;
}

/* Display mode: Interlinear (word cards + English) */
.il-mode-interlinear .interlinear-words { display: flex; }
.il-mode-interlinear .il-en-line { display: block; }

/* Display mode: Original only (word cards, no English) */
.il-mode-original .interlinear-words { display: flex; }
.il-mode-original .il-en-line { display: none; }
.il-mode-original .il-translit { display: none; }
.il-mode-original .il-gloss { display: none; }

/* Display mode: English only */
.il-mode-english .interlinear-words { display: none; }
.il-mode-english .il-en-line {
    display: block;
    font-size: var(--il-font-size);
    line-height: 1.8;
    color: #1e293b;
    background: none;
    border-left: none;
    padding: 0;
    margin-top: 0;
}

/* ── Static interlinear page (interlinear.php) passages ── */
.interlinear-passage {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.interlinear-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}
.passage-ref {
    font-weight: 700;
    color: #0d9488;
    font-size: .95rem;
    white-space: nowrap;
}
.passage-ref a { color: inherit; text-decoration: none; }
.passage-ref a:hover { text-decoration: underline; }
.interlinear-translation {
    font-size: .9rem;
    color: #64748b;
    font-style: italic;
    line-height: 1.6;
}

/* Chapter navigation */
.il-chapter-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    padding: 16px 0;
    border-top: 1px solid rgba(0,0,0,.06);
}
.il-chapter-nav span { font-weight: 600; color: #475569; font-size: .95rem; }
.il-chapter-nav .btn-chapnav { background: #0d9488; }
.il-chapter-nav .btn-chapnav:hover:not(:disabled) { background: #0f766e; }

/* Responsive: Interlinear reader */
@media (max-width: 768px) {
    .il-verse-block { gap: 10px; padding: 14px 0; }
    .il-verse-num { width: 28px; height: 28px; font-size: .75rem; margin-top: 4px; }
    .interlinear-words { gap: 3px; }
    .interlinear-word { min-width: 60px; padding: .45rem .35rem .35rem; }
    .il-original { font-size: 1.1rem; }
    .il-en-line { font-size: .88rem; padding: 8px 10px; }
    .il-chapter-nav { flex-wrap: wrap; gap: 10px; justify-content: center; }
}
@media (max-width: 480px) {
    .interlinear-word { min-width: 52px; padding: .4rem .28rem .28rem; }
    .il-gloss { font-size: .65rem; }
    .il-parse { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   Multi-Translation Bible Reader
   ═══════════════════════════════════════════════════════════════════ */

/* Controls */
.mb-reader-app { max-width: 900px; margin: 0 auto; }

.mb-controls {
    background: #f0fdfa;
    border: 1px solid #ccfbf1;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
}
.mb-ctrl-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-end;
}
.mb-ctrl-group { display: flex; flex-direction: column; gap: 4px; }
.mb-ctrl-group label { font-size: .75rem; font-weight: 600; color: #0f766e; text-transform: uppercase; letter-spacing: .04em; }
.mb-select {
    padding: 8px 30px 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: .9rem;
    color: #1e293b;
    background: #fff;
    cursor: pointer;
    min-width: 140px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23475569'%3E%3Cpath d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;
    transition: border-color .2s;
}
.mb-select:focus { outline: none; border-color: #0d9488; box-shadow: 0 0 0 3px rgba(13,148,136,.15); }
.mb-select-wide { min-width: 280px; }
.mb-select-sm { min-width: 70px; }

.mb-ctrl-size { flex-direction: row; align-items: flex-end; gap: 6px; }
.mb-size-btn {
    width: 34px; height: 34px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: .85rem;
    color: #475569;
    display: flex; align-items: center; justify-content: center;
    transition: all .2s;
}
.mb-size-btn:hover { background: #0d9488; color: #fff; border-color: #0d9488; }

/* Chapter heading */
.mb-chapter-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 0 12px;
    border-bottom: 2px solid #ccfbf1;
    margin-bottom: 20px;
}
.mbh-book { font-size: 1.35rem; font-weight: 700; color: #0f766e; }
.mbh-tr { font-size: .85rem; color: #64748b; font-weight: 500; }

/* Welcome */
.mb-welcome {
    text-align: center; padding: 60px 20px; color: #94a3b8;
}
.mb-welcome i { font-size: 3rem; margin-bottom: 14px; display: block; color: #0d9488; opacity: .4; }
.mb-welcome p { font-size: 1rem; margin: 0; }

/* Loading / Error */
.mb-loading { text-align: center; padding: 40px; color: #0d9488; font-size: 1rem; }
.mb-loading i { margin-right: 6px; }
.mb-error { text-align: center; padding: 40px; color: #dc2626; }

/* Verse list */
.mb-verse-list {
    line-height: 1.9;
    color: #1e293b;
    font-size: 17px;
}
.mb-vnum {
    font-size: .7em;
    font-weight: 700;
    color: #0d9488;
    margin-right: 3px;
    vertical-align: super;
}

/* Chapter nav */
.mb-chapter-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}
.mb-chapter-nav button {
    padding: 10px 22px;
    background: #0d9488;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.mb-chapter-nav button:hover { background: #0f766e; }
.mb-chapter-nav button i { margin: 0 4px; }

/* Compare controls */
.mb-cmp-trans-row {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #ccfbf1;
}
.mb-cmp-trans-row > label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: #0f766e;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.mb-cmp-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.mb-cmp-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: .78rem;
    cursor: pointer;
    transition: all .2s;
    color: #475569;
}
.mb-cmp-label:has(input:checked) {
    background: #f0fdfa;
    border-color: #0d9488;
    color: #0f766e;
    font-weight: 600;
}
.mb-cmp-label input { accent-color: #0d9488; }
.mb-cmp-label .mb-cmp-code { font-weight: 600; font-size: .75rem; }

.mb-compare-btn {
    padding: 10px 28px;
    background: #0d9488;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.mb-compare-btn:hover { background: #0f766e; }
.mb-compare-btn i { margin-right: 6px; }

/* Compare grid */
.mb-cmp-verse {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
}
.mb-cmp-verse:last-child { border-bottom: none; }
.mb-cmp-vnum {
    min-width: 32px;
    font-size: .85rem;
    font-weight: 700;
    color: #0d9488;
    text-align: center;
    padding-top: 2px;
    flex-shrink: 0;
}
.mb-cmp-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    flex: 1;
}
.mb-cmp-col {
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #0d9488;
}
.mb-cmp-col .mb-cmp-code {
    font-size: .7rem;
    font-weight: 700;
    color: #0d9488;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 4px;
}
.mb-cmp-col .mb-cmp-text {
    font-size: .9rem;
    line-height: 1.6;
    color: #334155;
}

/* About grid */
.mb-about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
}
.mb-about-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px 24px;
    border-left: 4px solid #0d9488;
}
.mb-about-card h3 {
    font-size: 1.05rem;
    color: #0f766e;
    margin: 0 0 6px;
}
.mb-about-card h3 i { margin-right: 6px; opacity: .7; }
.mb-about-card > p { font-size: .85rem; color: #64748b; margin: 0 0 10px; }
.mb-about-card ul { margin: 0; padding-left: 18px; }
.mb-about-card li { font-size: .85rem; line-height: 1.55; color: #334155; margin-bottom: 4px; }
.mb-about-card li strong { color: #0f766e; }

/* Responsive */
@media (max-width: 768px) {
    .mb-controls { padding: 12px 14px; }
    .mb-ctrl-row { gap: 10px; }
    .mb-select-wide { min-width: 100%; }
    .mb-select { min-width: 0; flex: 1; font-size: .85rem; }
    .mb-ctrl-group { flex: 1; min-width: 0; }
    .mb-chapter-heading { flex-direction: column; gap: 4px; }
    .mbh-book { font-size: 1.15rem; }
    .mb-cmp-verse { flex-direction: column; gap: 6px; }
    .mb-cmp-cols { grid-template-columns: 1fr; }
    .mb-about-grid { grid-template-columns: 1fr; }
}

/* ── Shared BS-style Hero (bible-study, greek, hebrew, etc.) ─ */
.bs-hero {
    position: relative;
    background: linear-gradient(160deg, #041f1a 0%, #0b2e28 40%, #0f766e 100%);
    padding: 3.8rem 0 3rem;
    text-align: center;
    color: #fff;
    overflow: hidden;
}
.bs-hero-pattern {
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(138,225,211,.06) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
}
.bs-hero-badge {
    width: 64px; height: 64px; margin: 0 auto 18px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    border: 2px solid rgba(138,225,211,.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: #8ae1d3;
    backdrop-filter: blur(6px);
}
.bs-hero h1 {
    font-family: var(--font-heading);
    font-size: 2.4rem; font-weight: 800;
    margin: 0 0 10px; letter-spacing: -.01em;
}
.bs-hero-sub {
    font-size: 1rem; color: rgba(255,255,255,.7);
    max-width: 600px; margin: 0 auto 22px; line-height: 1.6;
}
.bs-hero-chips {
    display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
}
.bs-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 20px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(138,225,211,.2);
    font-size: .78rem; font-weight: 600; color: #8ae1d3;
    backdrop-filter: blur(4px);
}
@media (max-width: 768px) {
    .bs-hero { padding: 44px 18px 36px; }
    .bs-hero h1 { font-size: 1.6rem; }
    .bs-hero-chips { gap: 6px; }
    .bs-chip { font-size: .7rem; padding: 4px 10px; }
}
@media (max-width: 480px) {
    .bs-hero-badge { width: 52px; height: 52px; font-size: 1.3rem; }
    .bs-hero h1 { font-size: 1.35rem; }
    .bs-hero-sub { font-size: .88rem; }
}

/* ── Breadcrumb nav inside bs-hero ────────────────── */
.lang-breadcrumb {
    display: flex; align-items: center; justify-content: center;
    gap: 6px; margin-bottom: 18px;
    font-size: .82rem; color: rgba(255,255,255,.55);
}
.lang-breadcrumb a {
    color: rgba(138,225,211,.85); text-decoration: none;
    transition: color .2s;
}
.lang-breadcrumb a:hover { color: #8ae1d3; }
.lang-breadcrumb span { color: rgba(255,255,255,.4); }

/* ── Shared BS-style Tab/Nav Bar ────────────────────────────── */
.bs-tabs {
    position: sticky; top: 70px; z-index: 90;
    background: #0d1f1c;
    border-bottom: 2px solid rgba(138,225,211,.12);
    padding: 10px 0;
}
.bs-tabs-scroll {
    display: flex; gap: 6px; justify-content: center; flex-wrap: wrap;
    max-width: 1100px; margin: 0 auto; padding: 0 16px;
}
.bs-tab {
    padding: 7px 16px; border: none; border-radius: 20px;
    background: transparent; color: rgba(255,255,255,.55);
    font-size: .82rem; font-weight: 600; cursor: pointer;
    transition: all .25s; white-space: nowrap;
    text-decoration: none; display: inline-flex; align-items: center;
}
.bs-tab i { margin-right: 5px; font-size: .78rem; }
.bs-tab:hover { background: rgba(138,225,211,.1); color: #8ae1d3; }
.bs-tab.active,
.bs-tab[aria-current="true"] {
    background: linear-gradient(135deg, #0f766e, #0d9488);
    color: #fff;
    box-shadow: 0 2px 12px rgba(13,148,136,.35);
}
@media (max-width: 768px) {
    .bs-tabs { padding: 0 8px; }
    .bs-tabs-scroll { gap: 4px; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
    .bs-tabs-scroll::-webkit-scrollbar { height: 3px; }
    .bs-tabs-scroll::-webkit-scrollbar-track { background: transparent; }
    .bs-tabs-scroll::-webkit-scrollbar-thumb { background: rgba(138,225,211,.3); border-radius: 2px; }
    .bs-tab { font-size: .78rem; padding: 7px 14px; }
}