/* ═══════════════════════════════════════════════════════════════
   GPGC Mansehra — Complete Design System
   style.css v1.0
═══════════════════════════════════════════════════════════════ */

/* ── 1. CSS Variables ──────────────────────────────────────── */
:root {
    --green: #0C5C3E;
    --green-dark: #073D29;
    --green-mid: #107A52;
    --green-light: #18A06B;
    --green-tint: #E8F3EE;
    --gold: #C4901C;
    --gold-dark: #9A6E0C;
    --gold-mid: #E0A828;
    --gold-light: #F5C84A;
    --gold-tint: #FDF3DC;
    --ink: #1A2B24;
    --muted: #6B7C73;
    --line: #D6E2DC;
    --bg: #F4F6F5;
    --white: #FFFFFF;

    --font-head: 'Outfit', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --r4: 4px;
    --r8: 8px;
    --r12: 12px;
    --r16: 16px;
    --r24: 24px;
    --r32: 32px;

    --shadow-sm: 0 2px 4px rgba(12, 92, 62, 0.05);
    --shadow-md: 0 10px 30px -10px rgba(12, 92, 62, 0.15);
    --shadow-lg: 0 20px 50px -15px rgba(12, 92, 62, 0.2);
    --shadow-glass: 0 8px 32px 0 rgba(16, 122, 82, 0.1);

    --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --hdr-h: 80px;
    --util-h: 40px;

    --blur: blur(12px);
}

.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.bg-texture {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.02;
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

section {
    position: relative;
    padding: 100px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--green);
    margin-bottom: 16px;
}

.eyebrow span {
    width: 32px;
    height: 2px;
    background: var(--gold);
    display: block;
}

.sh {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--green-dark);
}

/* ── 2. Reset ──────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    background: none;
    border: none;
    font: inherit;
}

input,
textarea,
select {
    font: inherit;
}

/* ── 3. Layout ─────────────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 20px;
    width: min(100%, 1200px);
}

.container-sm {
    max-width: 800px;
    margin-inline: auto;
    padding-inline: 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ── 4. Utility Bar ────────────────────────────────────────── */
.util-bar {
    background: var(--green-dark);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    height: var(--util-h);
}

.util-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.util-left {
    display: flex;
    gap: 20px;
}

.util-item {
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color var(--transition);
}

.util-item:hover {
    color: var(--gold-light);
}

.util-item svg {
    flex-shrink: 0;
}

.btn-apply {
    background: var(--gold);
    color: var(--white);
    padding: 4px 14px;
    border-radius: var(--r4);
    font-size: 0.78rem;
    font-weight: 600;
    transition: background var(--transition);
}

.btn-apply:hover {
    background: var(--gold-dark);
}

/* ── 5. Header ─────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 900;
    height: var(--hdr-h);
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
}

.site-header.scrolled {
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-lg);
}

.site-header .container {
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
}

.hdr-inner {
    display: flex;
    align-items: center;
    height: 100%;
    justify-content: space-between;
    gap: 12px;
}

/* Logo */
.logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}

.logo-name {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--green);
    white-space: nowrap;
}

.logo-name-short {
    display: none;
}

.logo-tagline {
    font-size: 0.6rem;
    color: var(--muted);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* ── 6. Desktop Nav ────────────────────────────────────────── */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    min-width: 0;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: nowrap;
}

.nav-item {
    position: relative;
    flex-shrink: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 5px 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink);
    border-radius: 50px;
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--green);
    background: var(--green-tint);
}

.nav-item.active>.nav-link {
    color: var(--green);
    background: var(--green-tint);
}

.caret {
    transition: transform var(--transition);
    flex-shrink: 0;
    opacity: 0.6;
}

.nav-item.open>.nav-link .caret {
    transform: rotate(180deg);
    opacity: 1;
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r8);
    box-shadow: var(--shadow-md);
    min-width: 220px;
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    z-index: 1000;
}

.nav-item:hover>.dropdown,
.nav-item.open>.dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dd-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 0.875rem;
    color: var(--ink);
    border-radius: var(--r4);
    transition: background var(--transition), color var(--transition);
}

.dd-link:hover {
    background: var(--green-tint);
    color: var(--green);
}

/* Mega Dropdown */
.mega-dropdown {
    min-width: 760px;
    left: 50%;
    transform: translateY(8px) translateX(-50%);
}

.nav-item:hover>.mega-dropdown,
.nav-item.open>.mega-dropdown {
    transform: translateY(0) translateX(-50%);
}

.mega-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 8px;
}

.mega-col {
    padding: 4px;
}

.mega-col:nth-child(1) {
    order: 3;
}

.mega-col:nth-child(2) {
    order: 1;
}

.mega-col:nth-child(3) {
    order: 2;
}

.mega-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    padding: 6px 12px 4px;
}

.mega-footer {
    border-top: 1px solid var(--line);
    padding: 10px 16px;
}

.mega-all-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--green);
}

.dept-icon {
    width: 22px;
    text-align: center;
}

.badge-new {
    background: var(--gold);
    color: var(--white);
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: var(--r4);
    text-transform: uppercase;
}

/* Header actions */
.hdr-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-search {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--r8);
    color: var(--green);
    transition: color var(--transition), background var(--transition);
}

.btn-search:hover {
    color: var(--green);
    background: var(--green-tint);
}

.home-stats-section {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.14), transparent 34%),
        radial-gradient(circle at bottom right, rgba(245, 200, 74, 0.14), transparent 28%),
        linear-gradient(135deg, #073D29 0%, #0C5C3E 52%, #107A52 100%);
    padding: 42px 0 46px;
    overflow: hidden;
}

section.home-stats-section,
section.home-stats-section:nth-child(even) {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.14), transparent 34%),
        radial-gradient(circle at bottom right, rgba(245, 200, 74, 0.14), transparent 28%),
        linear-gradient(135deg, #073D29 0%, #0C5C3E 52%, #107A52 100%);
}

.home-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
}

.home-stat-card {
    position: relative;
    min-height: 120px;
    padding: 18px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.home-stat-card:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 20%;
    right: 0;
    width: 1px;
    height: 60%;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.18) 18%, rgba(255, 255, 255, 0.18) 82%, transparent 100%);
}

.home-stat-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: var(--white);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 16px 32px rgba(3, 31, 21, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.home-stat-icon svg {
    width: 30px;
    height: 30px;
}

.home-stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.86);
    margin-top: 8px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-stat-value {
    font-family: var(--font-head);
    font-size: clamp(2.3rem, 4vw, 3rem);
    line-height: 1;
    font-weight: 800;
    color: var(--gold-light);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--green);
    border-radius: 2px;
    transition: all var(--transition);
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── 7. Mobile Menu ────────────────────────────────────────── */
.mob-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 950;
}

.mob-overlay.open {
    display: block;
}

.mob-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    max-width: 90vw;
    height: 100%;
    background: var(--white);
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mob-menu.open {
    transform: translateX(0);
}

.mob-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--green);
    color: var(--white);
}

.mob-brand {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.05rem;
}

.mob-close {
    color: var(--white);
    font-size: 1.6rem;
    line-height: 1;
}

.mob-list {
    padding: 8px 0;
}

.mob-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    text-align: left;
    border-bottom: 1px solid var(--line);
    transition: color var(--transition);
}

.mob-link:hover {
    color: var(--green);
}

.acc-icon {
    font-size: 1.2rem;
    font-weight: 400;
    transition: transform var(--transition);
}

.mob-accordion.open .acc-icon {
    transform: rotate(45deg);
}

.mob-sub {
    display: none;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.mob-sub.open {
    display: block;
}

.mob-sub-link {
    display: block;
    padding: 10px 20px 10px 32px;
    font-size: 0.85rem;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    transition: color var(--transition);
}

.mob-sub-link:hover {
    color: var(--green);
}

/* ── 8. Search Overlay ─────────────────────────────────────── */
.search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(7, 61, 41, 0.92);
    z-index: 1100;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
}

.search-overlay.open {
    display: flex;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 640px;
}

.search-input {
    width: 100%;
    padding: 18px 60px 18px 24px;
    font-size: 1.2rem;
    border: none;
    border-radius: var(--r8);
    outline: none;
    color: var(--ink);
}

.search-btn {
    position: absolute;
    right: 56px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
}

.search-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    color: var(--muted);
}

/* ── 9. Ticker ─────────────────────────────────────────────── */
.ticker-wrap {
    display: flex;
    align-items: center;
    background: var(--gold-tint);
    border-bottom: 1px solid var(--gold-mid);
    overflow: hidden;
    height: 40px;
    position: relative;
    z-index: 50;
    margin-top: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.ticker-label {
    flex-shrink: 0;
    background: var(--gold);
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.ticker-track {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
}

.ticker-inner {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: ticker-scroll 30s linear infinite;
    height: 100%;
}

.ticker-inner:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 40px;
    font-size: 0.85rem;
    color: var(--ink);
}

.ticker-item a {
    color: var(--green);
    font-weight: 600;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ── 10. Buttons ───────────────────────────────────────────── */
.btn-g {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--r8);
    font-size: 0.9rem;
    font-weight: 600;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-g:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--r8);
    font-size: 0.9rem;
    font-weight: 600;
    transition: background var(--transition), transform var(--transition);
}

.btn-gold:hover {
    background: var(--gold-dark);
    transform: translateY(-1px);
}

.btn-out {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid var(--green);
    color: var(--green);
    padding: 10px 22px;
    border-radius: var(--r8);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition);
}

.btn-out:hover {
    background: var(--green);
    color: var(--white);
}

.btn-out-w {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: var(--white);
    padding: 10px 22px;
    border-radius: var(--r8);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition);
}

.btn-out-w:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--white);
}

.btn-sm {
    padding: 7px 16px;
    font-size: 0.82rem;
}

.btn-lg {
    padding: 15px 32px;
    font-size: 1rem;
}

/* ── 11. Hero Slider ───────────────────────────────────────── */
.hero-slider {
    position: relative;
    overflow: hidden;
    height: 580px;
    background: var(--green-dark);
    /* margin-top: calc(var(--util-h) + var(--hdr-h)); REMOVED: sticky header handles flow naturally */
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.9s ease;
}

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

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(7, 61, 41, 0.85) -10%, rgba(7, 61, 41, 0.35) 100%);
}

.slide-content {
    position: absolute;
    top: 60%;
    left: 68px;
    transform: translateY(-50%);
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding: 0 40px;
    color: var(--white);
}

.slide-tag {
    display: inline-block;
    background: var(--gold);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 12px;
    border-radius: var(--r4);
    margin-bottom: 16px;
}

.slide-title {
    font-family: var(--font-head);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    max-width: 560px;
}

.slide-subtitle {
    font-size: 1.05rem;
    opacity: 0.88;
    max-width: 480px;
    margin-bottom: 28px;
}

.slide-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Slider controls */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

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

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

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

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transition: all var(--transition);
    cursor: pointer;
}

.slider-dot.active {
    background: var(--white);
    width: 24px;
    border-radius: 4px;
}

.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--gold);
    z-index: 10;
    width: 0;
    transition: none;
}

.slider-progress.animate {
    transition: width 5.5s linear;
    width: 100%;
}

/* ── 12. Page Hero ─────────────────────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
    color: var(--white);
    padding: calc(var(--hdr-h) + 40px) 0 56px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 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.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero-inner {
    position: relative;
    max-width: 780px;
}

/* Global inner-hero used by redesigned inner pages */
.inner-hero {
    padding: calc(var(--hdr-h) + 40px) 0 56px;
}

.page-hero-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold-light);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-hero-eyebrow::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gold);
}

.page-hero h1 {
    font-family: var(--font-head);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
}

.page-hero p {
    font-size: 1.05rem;
    opacity: 0.85;
    max-width: 560px;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.82rem;
    opacity: 0.75;
    margin-top: 16px;
}

.breadcrumb a {
    opacity: 0.85;
}

.breadcrumb a:hover {
    opacity: 1;
}

.breadcrumb-sep {
    opacity: 0.5;
}

/* ── 13. Section Typography ────────────────────────────────── */
.sec-hdr {
    text-align: center;
    margin-bottom: 48px;
}

.eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--green);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.eyebrow::before,
.eyebrow::after {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    background: var(--green-light);
}

.sh {
    font-family: var(--font-head);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 12px;
}

.sec-hdr p {
    color: var(--muted);
    max-width: 560px;
    margin-inline: auto;
}

section {
    padding: 80px 0;
}

section:nth-child(even) {
    background: var(--white);
}

/* ── 14. Cards ─────────────────────────────────────────────── */
/* News Card */
.news-card {
    background: var(--white);
    border-radius: var(--r12);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.news-card-img {
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    display: block;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-img img {
    transform: scale(1.04);
}

.news-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-cat {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--green);
    background: var(--green-tint);
    padding: 3px 10px;
    border-radius: var(--r4);
    margin-bottom: 10px;
}

.news-card h3 {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
    color: var(--ink);
}

.news-card h3 a:hover {
    color: var(--green);
}

.news-card p {
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 16px;
    flex: 1;
}

.news-card-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: auto;
    font-size: 0.78rem;
    color: var(--muted);
}

.news-card-meta svg {
    opacity: 0.6;
}

/* Department Card */
.dept-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r12);
    padding: 24px 20px;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.dept-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green), var(--green-light));
    transform: scaleX(0);
    transition: transform var(--transition);
}

.dept-card:hover {
    border-color: var(--green-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.dept-card:hover::before {
    transform: scaleX(1);
}

.dept-icon-lg {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.dept-card h3 {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
}

.dept-card p {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 14px;
}

.dept-seats {
    font-size: 0.78rem;
    color: var(--green);
    font-weight: 600;
    margin-bottom: 14px;
}

.dept-badge-new {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gold);
    color: var(--white);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: var(--r4);
}

/* Event Card */
.event-card {
    display: flex;
    gap: 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r12);
    padding: 20px;
    transition: box-shadow var(--transition);
}

.event-card:hover {
    box-shadow: var(--shadow-md);
}

.event-date-box {
    flex-shrink: 0;
    text-align: center;
    background: var(--green);
    color: var(--white);
    border-radius: var(--r8);
    padding: 12px 16px;
    min-width: 68px;
}

.event-date-day {
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.event-date-mon {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.event-body {
    flex: 1;
}

.event-body h3 {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.event-body h3 a:hover {
    color: var(--green);
}

.event-meta {
    font-size: 0.8rem;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ── 15. Tags & Badges ─────────────────────────────────────── */
.tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--r4);
    font-size: 0.75rem;
    font-weight: 600;
}

.tag-green {
    background: var(--green-tint);
    color: var(--green);
}

.tag-gold {
    background: var(--gold-tint);
    color: var(--gold-dark);
}

/* ── 16. Quick Access Tiles ────────────────────────────────── */
.quick-access {
    background: var(--white);
    padding: 40px 0;
    border-bottom: 1px solid var(--line);
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.quick-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--r12);
    padding: 20px 12px;
    transition: all var(--transition);
    text-align: center;
}

.quick-tile:hover {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.quick-tile-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r16);
    margin-bottom: 12px;
    color: var(--tile-color);
    font-size: 1.5rem;
    transition: transform var(--transition);
}

.quick-tile:hover .quick-tile-icon {
    transform: scale(1.1) rotate(-5deg);
}

.quick-tile span {
    font-size: 0.78rem;
    font-weight: 600;
    /* color: var(--ink); */
    transition: color var(--transition);
}

.quick-tile:hover span {
    color: var(--white);
}

/* ── 17. Tables ────────────────────────────────────────────── */
.tbl-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--r8);
    box-shadow: var(--shadow-sm);
}

.tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    background: var(--white);
}

.tbl th {
    background: var(--green);
    color: var(--white);
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.tbl td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

.tbl tr:last-child td {
    border-bottom: none;
}

.tbl tbody tr:hover {
    background: var(--green-tint);
}

.tbl tbody tr:nth-child(even) {
    background: var(--bg);
}

.tbl tbody tr:nth-child(even):hover {
    background: var(--green-tint);
}

/* ── 18. Forms ─────────────────────────────────────────────── */
.fg {
    margin-bottom: 20px;
}

.fg label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
}

.fg label .req {
    color: #e53e3e;
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: 11px 16px;
    border: 1.5px solid var(--line);
    border-radius: var(--r8);
    font-size: 0.9rem;
    color: var(--ink);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(12, 92, 62, 0.12);
}

.form-control.error {
    border-color: #e53e3e;
}

.form-error {
    font-size: 0.8rem;
    color: #e53e3e;
    margin-top: 4px;
}

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

select.form-control {
    appearance: none;
    cursor: pointer;
}

/* ── 19. Notice Box ────────────────────────────────────────── */
.notice-box {
    padding: 16px 20px;
    border-radius: var(--r8);
    border-left: 4px solid var(--green);
    background: var(--green-tint);
    font-size: 0.9rem;
    color: var(--ink);
    margin-bottom: 20px;
}

.notice-box.warning {
    border-color: var(--gold);
    background: var(--gold-tint);
}

/* ── 20. Tabs ──────────────────────────────────────────────── */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--line);
    margin-bottom: 28px;
    flex-wrap: wrap;
    width: 100%;
}

.tab {
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color var(--transition), border-color var(--transition);
    cursor: pointer;
}

.tbl-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tbl-scroll table {
    min-width: 680px;
}

.tab:hover {
    color: var(--green);
}

.tab.active {
    color: var(--green);
    border-color: var(--green);
}

.pane {
    display: none;
}

.pane.active {
    display: block;
}

/* ── 21. Timeline ──────────────────────────────────────────── */
.timeline {
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--line);
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--green);
    border: 2px solid var(--white);
    box-shadow: 0 0 0 2px var(--green);
}

.timeline-year {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--green);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.timeline-title {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.timeline-desc {
    font-size: 0.875rem;
    color: var(--muted);
}

/* ── 22. Downloads ─────────────────────────────────────────── */
.dl-row {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r8);
    padding: 16px 20px;
    margin-bottom: 8px;
    transition: box-shadow var(--transition);
}

.dl-row:hover {
    box-shadow: var(--shadow-md);
}

.dl-icon {
    width: 44px;
    height: 44px;
    background: var(--green-tint);
    border-radius: var(--r8);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--green);
}

.dl-info {
    flex: 1;
}

.dl-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink);
    margin-bottom: 3px;
}

.dl-meta {
    font-size: 0.78rem;
    color: var(--muted);
}

.dl-count {
    font-size: 0.78rem;
    color: var(--muted);
    white-space: nowrap;
}

/* ── 23. Filter Pills ──────────────────────────────────────── */
.filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.pill {
    padding: 6px 16px;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
    background: var(--white);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    display: inline-block;
}

.pill:hover {
    border-color: var(--green);
    color: var(--green);
}

.pill.active {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
}

/* ── 24. Principal Card ────────────────────────────────────── */
.principal-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    background: var(--white);
    border-radius: var(--r16);
    box-shadow: var(--shadow-md);
    padding: 40px;
    margin-bottom: 48px;
}

.principal-photo {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: var(--r12);
}

.principal-name {
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.principal-title {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.blockquote {
    border-left: 3px solid var(--gold);
    padding-left: 20px;
    font-size: 1.05rem;
    font-style: italic;
    color: var(--muted);
    margin-bottom: 20px;
}

/* ── 25. Admission Steps ───────────────────────────────────── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.step-card {
    text-align: center;
    padding: 32px 20px;
    background: var(--white);
    border-radius: var(--r12);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.step-num {
    width: 48px;
    height: 48px;
    background: var(--green);
    color: var(--white);
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step-card h4 {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.84rem;
    color: var(--muted);
}

/* ── 26. Gallery ───────────────────────────────────────────── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.album-card {
    position: relative;
    border-radius: var(--r12);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.album-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.album-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 61, 41, 0.85) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: var(--white);
}

.album-title {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.album-count {
    font-size: 0.78rem;
    opacity: 0.8;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.93);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox.open {
    display: flex;
}

.lightbox-img-wrap {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--r8);
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 24px;
    color: var(--white);
    font-size: 2.2rem;
    z-index: 2010;
}

.lightbox-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2010;
    transition: background var(--transition);
}

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

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-caption {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    text-align: center;
}

/* ── 27. Scholarship Card ──────────────────────────────────── */
.schol-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r12);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}

.schol-card:hover {
    box-shadow: var(--shadow-md);
}

.schol-provider {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gold-dark);
    margin-bottom: 8px;
}

.schol-card h3 {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.schol-amount {
    display: inline-block;
    background: var(--gold-tint);
    color: var(--gold-dark);
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--r4);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.schol-deadline {
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 16px;
}

/* ── 28. Statistics Bar ────────────────────────────────────── */
.stats-bar {
    background: var(--green);
    padding: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-item {
    color: var(--white);
}

.stat-num {
    font-family: var(--font-head);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--gold-light);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 6px;
}

/* ── 29. Research Banner ───────────────────────────────────── */
.research-banner {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
    padding: 64px 0;
}

.research-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.journal-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--r16);
    padding: 32px;
    color: var(--white);
    transition: background var(--transition);
}

.journal-card:hover {
    background: rgba(255, 255, 255, 0.15);
}

.journal-card h3 {
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.journal-issn {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-bottom: 12px;
}

.journal-card p {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-bottom: 20px;
}

/* ── 30. Footer ────────────────────────────────────────────── */
.site-footer {
    background: var(--green-dark);
    color: rgba(255, 255, 255, 0.8);
}

.footer-top {
    padding: 64px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 2fr;
    gap: 48px;
}

.footer-col {}

.footer-logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-brand {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
}

.footer-urdu {
    font-size: 0.85rem;
    opacity: 0.7;
    direction: rtl;
}

.footer-about {
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
    color: var(--white);
}

.social-link:hover {
    background: var(--green-mid);
}

.footer-heading {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    font-size: 0.875rem;
    opacity: 0.75;
    transition: opacity var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--gold-light);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact li {
    display: flex;
    gap: 10px;
    font-size: 0.875rem;
    align-items: flex-start;
}

.footer-contact li svg {
    flex-shrink: 0;
    margin-top: 2px;
    opacity: 0.6;
}

.footer-contact a {
    opacity: 0.8;
}

.footer-contact a:hover {
    opacity: 1;
    color: var(--gold-light);
}

.btn-wa-footer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--r8);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 20px;
    transition: background var(--transition);
}

.btn-wa-footer:hover {
    background: #20b858;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    opacity: 0.6;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-bottom a {
    opacity: 0.8;
}

.footer-bottom a:hover {
    opacity: 1;
    color: var(--gold-light);
}

/* ── 31. Floating Buttons ──────────────────────────────────── */
.wa-float {
    position: fixed;
    bottom: 80px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 500;
    transition: transform var(--transition), box-shadow var(--transition);
}

.wa-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.back-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--green);
    color: var(--white);
    border-radius: var(--r8);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 500;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition), background var(--transition), transform var(--transition);
}

.back-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-top:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
}

/* ── 32. Flash Messages ────────────────────────────────────── */
.flash {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 800;
    animation: flash-in 0.3s ease;
}

.flash-success {
    background: #d4edda;
    color: #155724;
    border-bottom: 2px solid #c3e6cb;
}

.flash-error {
    background: #f8d7da;
    color: #721c24;
    border-bottom: 2px solid #f5c6cb;
}

.flash-close {
    font-size: 1.4rem;
    line-height: 1;
    color: inherit;
    opacity: 0.6;
}

.flash-close:hover {
    opacity: 1;
}

@keyframes flash-in {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: none;
        opacity: 1;
    }
}

/* ── 33. Pagination ────────────────────────────────────────── */
.pagination {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 40px;
}

.pagination .page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--r8);
    border: 1.5px solid var(--line);
    font-size: 0.9rem;
    color: var(--ink);
    transition: all var(--transition);
}

.pagination .page-item.active .page-link {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
}

.pagination .page-item .page-link:hover {
    border-color: var(--green);
    color: var(--green);
}

/* ── 34. Print styles (Merit List) ────────────────────────── */
@media print {

    .site-header,
    .site-footer,
    .util-bar,
    .ticker-wrap,
    .wa-float,
    .back-top,
    .page-hero .breadcrumb,
    .btn-g,
    .btn-gold,
    .btn-out,
    .filter-pills,
    .no-print {
        display: none !important;
    }

    body {
        background: white;
    }

    .tbl th {
        background: #0C5C3E !important;
        color: white !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .tbl {
        box-shadow: none;
    }
}

/* ── 35. Responsive Breakpoints ────────────────────────────── */
@media (max-width: 1400px) {
    .logo-name-full {
        display: none;
    }
    .logo-name-short {
        display: block;
    }
    .logo-tagline {
        display: none;
    }
    .nav-link {
        padding: 5px 8px;
        font-size: 0.82rem;
    }
}

@media (max-width: 1200px) {
    .nav-link {
        padding: 4px 6px;
        font-size: 0.79rem;
    }

    /* When grid-3 is inside a sidebar layout, drop to 2 columns early */
    .layout-grid-side .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1100px) {
    .util-bar {
        display: none;
    }

    .main-nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .site-header {
        top: 0;
    }

    .site-header .container {
        padding-right: 12px;
    }

    .hdr-inner {
        gap: 14px;
    }

    .logo-wrap {
        flex: 1;
        min-width: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .home-stat-card {
        min-height: 112px;
        padding-inline: 18px;
    }
}

@media (max-width: 768px) {
    :root {
        --hdr-h: 64px;
    }

    .site-header .container {
        padding-right: 12px;
    }

    .hdr-inner {
        gap: 12px;
    }

    .logo-wrap {
        flex: 1;
        min-width: 0;
        gap: 10px;
    }

    .logo-img {
        width: 46px;
        height: 46px;
    }

    .logo-name {
        font-size: 0.94rem;
    }

    .logo-name-full {
        display: none;
    }

    .logo-name-short {
        display: block;
    }

    .hero-slider {
        height: 460px;
        margin-top: 0;
    }

    .slide-content {
        top: auto;
        bottom: 34px;
        left: 0;
        transform: none;
        width: auto;
        max-width: none;
        padding: 0 20px;
    }

    .slide-title {
        font-size: clamp(1.9rem, 7vw, 2.5rem);
        line-height: 1.1;
        margin-bottom: 12px;
        max-width: 11ch;
    }

    .slide-subtitle {
        font-size: 0.98rem;
        line-height: 1.45;
        max-width: 30ch;
        margin-bottom: 18px;
    }

    .slide-tag {
        margin-bottom: 12px;
    }

    .slide-actions {
        gap: 10px;
    }

    .slide-actions .btn-lg {
        padding: 12px 18px;
        font-size: 0.92rem;
    }

    .slider-arrow {
        width: 42px;
        height: 42px;
    }

    .slider-prev {
        left: 12px;
    }

    .slider-next {
        right: 12px;
    }

    .slider-dots {
        bottom: 18px;
    }

    section {
        padding: 48px 0;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-stats-section {
        padding: 28px 0 32px;
    }

    section.home-stats-section,
    section.home-stats-section:nth-child(even) {
        background:
            radial-gradient(circle at top left, rgba(255, 255, 255, 0.14), transparent 38%),
            radial-gradient(circle at bottom right, rgba(245, 200, 74, 0.12), transparent 32%),
            linear-gradient(135deg, #073D29 0%, #0C5C3E 52%, #107A52 100%);
    }

    .home-stats-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .home-stat-card {
        min-height: 0;
        padding: 20px 16px;
        text-align: center;
        align-items: center;
    }

    .home-stat-icon {
        width: 58px;
        height: 58px;
        border-radius: 18px;
        margin-bottom: 12px;
    }

    .home-stat-card:not(:last-child)::after {
        display: none;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .research-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .principal-card {
        grid-template-columns: 1fr;
    }

    .principal-photo {
        width: 200px;
        margin-inline: auto;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .mega-dropdown {
        display: none !important;
    }
}

@media (max-width: 540px) {
    .logo-name {
        font-size: 0.88rem;
    }

    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .hero-slider {
        height: 420px;
    }

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

    .slide-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .slide-content {
        bottom: 28px;
        padding-inline: 16px;
    }

    .slide-title {
        font-size: clamp(1.7rem, 8vw, 2.15rem);
        max-width: 10ch;
    }

    .slide-subtitle {
        font-size: 0.92rem;
        max-width: 24ch;
    }

    .slide-actions .btn-lg {
        width: auto;
        min-width: 0;
        padding: 11px 16px;
        font-size: 0.88rem;
    }

    .slider-arrow {
        display: none;
    }
}

/* ── 34. Custom Layouts & Hubs ────────────────────────────── */
.layout-grid-side {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 48px;
    align-items: start;
}

@media (max-width: 480px) {
    .logo-tagline {
        display: none;
    }
}

.layout-grid-side>* {
    min-width: 0;
}

.side-hub {
    min-width: 0;
}

/* ── Academic Cards (Haripur Style) ───────────────────────── */
.academic-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ac-header {
    background: #0C5C3E;
    color: var(--white);
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ac-header h3 {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ac-body {
    padding: 16px;
    flex-grow: 1;
}

.ac-footer {
    padding: 10px 16px;
    border-top: 1px dashed #e2e8f0;
    text-align: right;
}

.ac-link {
    color: #0C5C3E;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
}

.ac-link:hover {
    text-decoration: underline;
}

@keyframes tickerVertical {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

@media (max-width: 1024px) {
    .container {
        padding-inline: 18px;
    }

    .page-hero {
        padding: calc(var(--hdr-h) + 32px) 0 48px;
    }

    .page-hero h1 {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }

    .page-hero p {
        max-width: 100%;
    }

    .layout-grid-side {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .side-hub {
        position: static;
        top: auto;
    }
}

@media (max-width: 768px) {
    .container {
        padding-inline: 16px;
    }

    .page-hero {
        padding: calc(var(--hdr-h) + 24px) 0 36px;
    }

    .page-hero-eyebrow {
        font-size: 0.72rem;
        letter-spacing: 0.08em;
        flex-wrap: wrap;
    }

    .page-hero h1 {
        font-size: clamp(1.65rem, 7vw, 2.1rem);
        line-height: 1.15;
    }

    .page-hero p {
        font-size: 0.95rem;
    }

    .breadcrumb {
        gap: 6px;
        font-size: 0.78rem;
    }

    .tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 6px;
        scrollbar-width: thin;
    }

    .tab {
        flex: 0 0 auto;
        padding: 10px 16px;
    }

    .tbl-scroll table {
        min-width: 620px;
    }
}

@media (max-width: 540px) {
    .container {
        padding-inline: 14px;
    }

    .page-hero {
        padding: calc(var(--hdr-h) + 18px) 0 30px;
    }

    .page-hero h1 {
        font-size: clamp(1.5rem, 8vw, 1.9rem);
    }

    .page-hero p {
        font-size: 0.9rem;
    }

    .tab {
        padding: 9px 14px;
        font-size: 0.82rem;
    }
}