:root {
    /* Brand & Color Tokens */
    --primary: #0f4c81;
    /* Rich Classic Sapphire Blue */
    --primary-hover: #0a3862;
    --primary-light: rgba(15, 76, 129, 0.08);
    --primary-glow: rgba(15, 76, 129, 0.18);

    --secondary: #d99b26;
    /* Warm Amber Gold */
    --secondary-hover: #b8811b;
    --secondary-light: rgba(217, 155, 38, 0.12);

    /* Surface & Backgrounds */
    --bg-color: #f8fafc;
    --surface: #ffffff;
    --surface-dark: #0f172a;
    --surface-dark-card: #1e293b;

    /* Typography Tokens */
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --text-main: #0f172a;
    /* Slate 900 */
    --text-muted: #475569;
    /* Slate 600 - Contrast Compliant */
    --text-light: #94a3b8;
    /* Slate 400 */
    --text-white: #ffffff;

    /* Borders & Dividers */
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --border-dark: rgba(255, 255, 255, 0.1);

    /* 8px Spatial Grid System Tokens */
    --space-1: 0.25rem;
    /* 4px */
    --space-2: 0.5rem;
    /* 8px */
    --space-3: 0.75rem;
    /* 12px */
    --space-4: 1rem;
    /* 16px */
    --space-5: 1.5rem;
    /* 24px */
    --space-6: 2rem;
    /* 32px */
    --space-8: 3rem;
    /* 48px */
    --space-10: 4rem;
    /* 64px */
    --space-12: 5rem;
    /* 80px */
    --space-16: 6rem;
    /* 96px */

    /* Border Radii */
    --radius-sm: 0.5rem;
    /* 8px */
    --radius-md: 0.75rem;
    /* 12px */
    --radius-lg: 1rem;
    /* 16px */
    --radius-xl: 1.5rem;
    /* 24px */
    --radius-pill: 9999px;

    /* Shadows & Depth Elevation */
    --shadow-subtle: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
    --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08);
    --shadow-card: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.01);
    --shadow-hover: 0 20px 30px -10px rgba(15, 23, 42, 0.12), 0 10px 15px -5px rgba(15, 23, 42, 0.04);
    --shadow-modal: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    letter-spacing: -0.011em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.container {
    width: 90%;
    max-width: 1240px;
    margin: 0 auto;
}

/* Typography Scale & Hierarchy */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    font-weight: 700;
}

h4 {
    font-size: 1.15rem;
    font-weight: 600;
}

p {
    color: var(--text-muted);
    font-size: 0.975rem;
    line-height: 1.65;
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-subtle);
    transition: all 0.3s ease;
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.logo-img {
    height: 44px;
    width: 44px;
    object-fit: cover;
    border-radius: var(--radius-pill);
    border: 2px solid var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.03em;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: var(--space-1);
    align-items: center;
    border-radius: var(--radius-sm);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    font-weight: 600;
    font-size: 0.925rem;
}

.nav-links a:not(.btn) {
    color: var(--text-muted);
    position: relative;
    padding: var(--space-2) 0;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2.5px;
    background-color: var(--secondary);
    border-radius: var(--radius-pill);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover,
.nav-links a.active-link:not(.btn) {
    color: var(--primary);
}

.nav-links a:not(.btn):hover::after,
.nav-links a.active-link:not(.btn)::after {
    width: 100%;
}

/* Buttons */
.btn {
    padding: 0.65rem 1.35rem;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    border: 1.5px solid transparent;
    white-space: nowrap;
    max-width: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:hover {
    color: var(--text-white) !important;
    border-color: #f59e0b !important;
    box-shadow: 0 10px 20px -8px rgba(245, 158, 11, 0.45);
    transform: translateY(-2px);
}

/* Blob Animation Container and Blobs */
.blob-btn__inner {
    z-index: -1;
    overflow: hidden;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: transparent;
}

.blob-btn__blobs {
    position: relative;
    display: block;
    height: 100%;
    filter: url('#goo');
}

.blob-btn__blob {
    position: absolute;
    top: 0;
    width: 28%;
    height: 100%;
    background: #f59e0b;
    border-radius: 100%;
    transform: translate3d(0, 150%, 0) scale(1.7);
    transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@supports(filter: url('#goo')) {
    .blob-btn__blob {
        transform: translate3d(0, 150%, 0) scale(1.4);
    }
}

.blob-btn__blob:nth-child(1) {
    left: 0%;
    transition-delay: 0s;
}

.blob-btn__blob:nth-child(2) {
    left: 28%;
    transition-delay: 0.08s;
}

.blob-btn__blob:nth-child(3) {
    left: 56%;
    transition-delay: 0.16s;
}

.blob-btn__blob:nth-child(4) {
    left: 84%;
    transition-delay: 0.24s;
}

.btn:hover .blob-btn__blob {
    transform: translate3d(0, 0, 0) scale(1.7);
}

@supports(filter: url('#goo')) {
    .btn:hover .blob-btn__blob {
        transform: translate3d(0, 0, 0) scale(1.4);
    }
}

/* Font Awesome Icon Animation */
.btn i {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
    position: relative;
    z-index: 3;
}

.btn:hover i:not(.fa-arrow-left):not(.fa-chevron-left):not(.fa-arrow-rotate-left):not(.fa-reply):not(.fa-backward) {
    transform: translateX(4px);
}

.btn:hover i.fa-arrow-left,
.btn:hover i.fa-chevron-left,
.btn:hover i.fa-arrow-rotate-left,
.btn:hover i.fa-reply,
.btn:hover i.fa-backward {
    transform: translateX(-4px);
}

/* Primary Button */
.btn-primary {
    background-color: var(--primary);
    color: var(--text-white) !important;
    border-color: var(--primary);
    box-shadow: 0 4px 12px -2px var(--primary-glow);
}

/* Outline Button */
.btn-outline {
    background-color: transparent;
    color: var(--primary) !important;
    border: 1.5px solid var(--primary);
}

/* Secondary Button */
.btn-secondary {
    background-color: var(--secondary);
    color: var(--text-white) !important;
    border-color: var(--secondary);
    box-shadow: 0 4px 12px -2px rgba(217, 155, 38, 0.25);
}

.btn-lg {
    padding: 0.875rem 2.25rem;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
}

/* Badges & Pills */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.35rem 1rem;
    background-color: var(--secondary-light);
    color: var(--secondary-hover);
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid rgba(217, 155, 38, 0.25);
}

.badge-primary-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Light Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    padding: var(--space-8) 0 var(--space-12) 0;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.hero::before {
    content: '';
    position: absolute;
    top: -25%;
    left: -10%;
    width: 55%;
    height: 150%;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -35%;
    right: -10%;
    width: 50%;
    height: 140%;
    background: radial-gradient(circle, var(--secondary-light) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

/* 2-Column Hero Grid */
.hero-content-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-8);
    align-items: center;
}

.hero-text-col {
    position: relative;
    z-index: 2;
    text-align: left;
}

.hero-text-col h1 {
    font-size: clamp(2.25rem, 4.5vw, 3.6rem);
    margin: var(--space-3) 0 var(--space-4) 0;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero-text-col h1 span.highlight-batch {
    color: var(--secondary);
    font-style: italic;
    font-weight: 800;
}

.hero-text-col p {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 0 var(--space-6) 0;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    justify-content: flex-start;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* Hero Network Connector Batch Graph */
.hero-network-col {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-network-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    user-select: none;
}

.network-lines-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.main-line {
    stroke: var(--primary);
    stroke-width: 1.8;
    stroke-dasharray: 6 6;
    stroke-opacity: 0.35;
    animation: network-dash-flow 25s linear infinite;
}

.sub-line {
    stroke: var(--text-light);
    stroke-width: 1.4;
    stroke-dasharray: 4 4;
    stroke-opacity: 0.5;
}

.outer-dot {
    fill: var(--surface);
    stroke: var(--text-light);
    stroke-width: 2;
    transition: all 0.3s ease;
}

@keyframes network-dash-flow {
    to {
        stroke-dashoffset: -100;
    }
}

.central-node-wrapper {
    position: absolute;
    width: 84px;
    height: 84px;
    transform: translate(-50%, -50%);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.central-dot {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary) 0%, #f59e0b 100%);
    border: 4px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px -5px rgba(217, 155, 38, 0.45), 0 0 0 1px rgba(217, 155, 38, 0.2);
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.central-dot span {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.85rem;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.central-node-wrapper:hover .central-dot {
    transform: scale(1.12);
    box-shadow: 0 15px 30px -5px rgba(217, 155, 38, 0.65), 0 0 0 6px rgba(217, 155, 38, 0.25);
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(217, 155, 38, 0.35);
    animation: network-pulse 3s cubic-bezier(0, 0, 0.2, 1) infinite;
    z-index: 1;
}

.pulse-ring.delay-1 {
    animation-delay: 1.5s;
}

@keyframes network-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.batch-node-wrapper {
    position: absolute;
    width: 24px;
    height: 24px;
    transform: translate(-50%, -50%);
    z-index: 3;
    text-decoration: none;
    display: block;
}

.node-dot {
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(15, 76, 129, 0.25);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.node-label {
    position: absolute;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    padding: 3px 9px;
    border-radius: 6px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
    white-space: nowrap;
    transition: all 0.25s ease;
    pointer-events: none;
}

.batch-node-wrapper:hover {
    z-index: 10;
}

.batch-node-wrapper:hover .node-dot {
    background-color: var(--secondary);
    transform: scale(1.35);
    box-shadow: 0 0 16px rgba(217, 155, 38, 0.5);
    border-color: #ffffff;
}

.batch-node-wrapper:hover .node-label {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(15, 76, 129, 0.3);
}

/* Label positioning modifiers relative to dot center */
.label-top-right { bottom: 100%; left: 100%; margin-bottom: -6px; margin-left: -6px; }
.label-top-left { bottom: 100%; right: 100%; margin-bottom: -6px; margin-right: -6px; }
.label-bottom-right { top: 100%; left: 100%; margin-top: -6px; margin-left: -6px; }
.label-bottom-left { top: 100%; right: 100%; margin-top: -6px; margin-right: -6px; }
.label-right { left: 100%; top: 50%; transform: translateY(-50%); margin-left: 8px; }
.label-left { right: 100%; top: 50%; transform: translateY(-50%); margin-right: 8px; }

.batch-node-wrapper:hover .label-right { transform: translateY(-50%) scale(1.08); }
.batch-node-wrapper:hover .label-left { transform: translateY(-50%) scale(1.08); }

/* Floating Stats Section */
.stats-section {
    margin-top: -2.5rem;
    position: relative;
    z-index: 10;
    padding: 0 var(--space-4);
}

.stats-card-grid {
    background: var(--surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    padding: var(--space-5);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    text-align: center;
}

.stat-item {
    padding: var(--space-2);
    border-right: 1px solid var(--border-light);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 2.8vw, 2.4rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.2rem;
    line-height: 1.1;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
}

/* Sections */
.section {
    padding: var(--space-8) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-6);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 4px;
    background: var(--secondary);
    border-radius: var(--radius-pill);
}

/* Grid Layouts */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-6);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

/* Card Component */
.card {
    background-color: var(--surface);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-card);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(15, 76, 129, 0.2);
}

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

.feature-card {
    background: var(--surface);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-subtle);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.feature-icon-box {
    width: 52px;
    height: 52px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: var(--space-5);
}

/* Alumni Directory & Committee Member Cards */
.alumni-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    text-align: center;
    box-shadow: var(--shadow-subtle);
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.alumni-avatar {
    width: 84px;
    height: 84px;
    border-radius: var(--radius-pill);
    object-fit: cover;
    margin: 0 auto var(--space-4);
    border: 3px solid var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.alumni-avatar-placeholder {
    width: 84px;
    height: 84px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: var(--text-white);
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    margin: 0 auto var(--space-4);
    box-shadow: var(--shadow-sm);
}

/* Dark Ambient Page Hero Header */
.page-hero-dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 2.5rem 0 2.75rem 0;
    position: relative;
    overflow: hidden;
    color: var(--text-white);
    text-align: center;
}

.page-hero-dark h1 {
    color: var(--text-white);
    margin-bottom: var(--space-2);
}

.page-hero-dark p {
    color: #94a3b8;
    max-width: 650px;
    margin: 0 auto;
}

/* Form Controls & Inputs */
.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.form-input {
    width: 100%;
    padding: 0.8rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-family: var(--font-body);
    background-color: var(--surface);
    color: var(--text-main);
    transition: all 0.25s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

/* Modal Overlay & Card */
.modal-overlay {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-box {
    background: var(--surface);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    max-width: 520px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-modal);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    border: 1px solid var(--border);
}

.modal-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: var(--border-light);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    font-size: 1.2rem;
    font-weight: 700;
    transition: background-color 0.2s ease;
}

.modal-close-btn:hover {
    background: var(--border);
}

/* Footer */
.footer {
    background-color: var(--surface-dark);
    color: var(--text-light);
    padding: var(--space-8) 0;
    text-align: center;
    margin-top: auto;
    border-top: 4px solid var(--primary);
}

.footer p {
    font-size: 0.95rem;
    color: #94a3b8;
}

/* Pagination Styling */
.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    justify-content: center;
    gap: 0.35rem;
}

.page-link {
    position: relative;
    display: block;
    padding: 0.55rem 0.95rem;
    color: var(--primary);
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease-in-out;
    font-weight: 600;
    font-size: 0.9rem;
}

.page-link:hover {
    color: var(--primary-hover);
    background-color: var(--border-light);
    border-color: var(--border);
}

.page-item.active .page-link {
    color: var(--text-white);
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.page-item.disabled .page-link {
    color: var(--text-light);
    pointer-events: none;
    background-color: var(--border-light);
    border-color: var(--border);
}

/* Rich Text Content Formatting (For WYSIWYG / HTML output) */
.rich-text-content {
    word-wrap: break-word;
}

.rich-text-content p {
    margin-bottom: 1rem;
}

.rich-text-content ul {
    list-style-type: disc;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.rich-text-content ol {
    list-style-type: decimal;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.rich-text-content li {
    margin-bottom: 0.5rem;
    display: list-item;
}

.rich-text-content h1,
.rich-text-content h2,
.rich-text-content h3,
.rich-text-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.rich-text-content a {
    color: var(--primary);
    text-decoration: underline;
}

.rich-text-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md, 8px);
    margin: 0.5rem 0;
}

/* Responsive Styles */

html,
body {
    overflow-x: hidden;
    max-width: 100vw;
}

@media (max-width: 992px) {
    .hero-content-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        text-align: center;
    }

    .hero-text-col {
        text-align: center;
    }

    .hero-text-col p {
        margin: 0 auto var(--space-6) auto;
    }

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

    .hero-network-col {
        max-width: 420px;
        margin: 0 auto;
    }

    .stats-card-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: var(--space-3);
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--surface);
        padding: var(--space-5);
        box-shadow: var(--shadow-card);
        border-bottom: 1px solid var(--border);
        gap: var(--space-4);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a,
    .nav-links .btn {
        width: 100%;
        text-align: center;
    }

    .hero {
        padding: var(--space-8) 0 var(--space-10) 0;
    }

    .stats-section {
        margin-top: -1.75rem;
        padding: 0 var(--space-3);
    }

    .stats-card-grid {
        grid-template-columns: 1fr;
        padding: var(--space-4);
        gap: var(--space-3);
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        padding: var(--space-3) 0;
    }

    .stat-item:last-child {
        border-bottom: none;
    }

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

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

    .page-hero-dark {
        padding: 2rem var(--space-4) 2.25rem var(--space-4);
    }

    .page-hero-dark h1 {
        font-size: clamp(1.6rem, 6vw, 2.25rem);
    }

    .btn {
        padding: 0.55rem 0.95rem;
        font-size: 0.88rem;
    }

    .btn-lg {
        padding: 0.75rem 1.4rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .container {
        width: 94%;
    }

    .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.825rem;
    }

    .btn-lg {
        padding: 0.65rem 1rem;
        font-size: 0.88rem;
        white-space: normal;
    }
}

@media (max-width: 1024px) and (min-width: 641px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Header Login Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.dropdown-icon {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    display: block;
    visibility: hidden;
    min-width: 180px;
    padding: 0.5rem 0;
    margin-top: 8px;
    background-color: var(--surface, #ffffff);
    border: 1px solid var(--border);
    border-radius: var(--radius-md, 8px);
    box-shadow: var(--shadow-lg, 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1));
    list-style: none;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.2s;
    pointer-events: none;
}

/* Invisible bridge so moving cursor down doesn't hide dropdown */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
    background: transparent;
}

.dropdown:hover .dropdown-menu,
.dropdown.show .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown:hover .dropdown-icon,
.dropdown.show .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.7rem 1.25rem;
    color: var(--text-muted, #64748b);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 550;
    transition: all 0.25s ease;
    box-sizing: border-box;
    text-align: center;
}

.dropdown-item:hover {
    color: var(--primary);
    background-color: var(--primary-light, #f0f4f9);
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .dropdown {
        width: 100%;
        text-align: center;
    }
    
    .dropdown-toggle {
        width: 100%;
        justify-content: center;
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        background-color: rgba(0, 0, 0, 0.02);
        margin-top: 0.25rem;
        padding: 0;
        visibility: hidden;
        opacity: 0;
        height: 0;
        overflow: hidden;
        transform: none;
        transition: all 0.3s ease;
    }
    
    .dropdown:hover .dropdown-menu {
        visibility: hidden;
        opacity: 0;
        height: 0;
    }
    
    .dropdown.show .dropdown-menu {
        visibility: visible;
        opacity: 1;
        height: auto;
        padding: 0.5rem 0;
    }
    
    .dropdown-item {
        text-align: center;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--border-light);
    }
    
    .dropdown-item:last-child {
        border-bottom: none;
    }
}

/* CTA Banner Section Styles */
.cta-banner-section {
    background: linear-gradient(135deg, var(--surface) 0%, var(--bg-color) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: var(--space-12) 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 12px);
    padding: var(--space-8) var(--space-6);
    text-align: center;
    box-shadow: var(--shadow-md, 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -4px rgba(0,0,0,0.05));
    max-width: 820px;
    margin: 0 auto;
    width: 100%;
}

.cta-card h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 var(--space-3) 0;
    line-height: 1.25;
}

.cta-card p {
    color: var(--text-muted);
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    max-width: 480px;
    margin: 0 auto var(--space-6) auto;
    line-height: 1.6;
}

.cta-btn {
    background-color: #111a30 !important;
    color: #1e293b !important;
    font-weight: 700 !important;
    padding: 0.8rem 2.2rem !important;
    border-radius: var(--radius-md, 6px);
    font-size: 0.95rem;
    border: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(217, 160, 70, 0.15);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.cta-btn:hover {
    background-color: #c98e32 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(217, 160, 70, 0.3);
}

@media (max-width: 768px) {
    .cta-banner-section {
        padding: var(--space-8) 0;
    }
    
    .cta-card {
        padding: var(--space-8) var(--space-4);
    }
}