/* ============================================
   DISHA FOUNDATION - GLOBAL STYLES
   Modern, Premium Design System
   ============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */
:root {
    /* Primary Color Palette */
    --primary: #436CA4;
    --primary-light: #5A84BC;
    --primary-dark: #2E4A6F;
    --primary-darker: #1F3147;
    --primary-lighter: #E8EEF5;

    /* Gradient Colors */
    --gradient-primary: linear-gradient(135deg, var(--primary-lighter) 0%, #ffffff 100%);
    --gradient-primary-bold: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);

    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* Semantic Colors */
    --success: #10B981;
    --success-light: #D1FAE5;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --error: #EF4444;
    --error-light: #FEE2E2;
    --info: #3B82F6;
    --info-light: #DBEAFE;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    /* Font Sizes */
    --text-xs: 0.75rem;
    /* 12px */
    --text-sm: 0.875rem;
    /* 14px */
    --text-base: 1rem;
    /* 16px */
    --text-lg: 1.125rem;
    /* 18px */
    --text-xl: 1.25rem;
    /* 20px */
    --text-2xl: 1.5rem;
    /* 24px */
    --text-3xl: 1.875rem;
    /* 30px */
    --text-4xl: 2.25rem;
    /* 36px */
    --text-5xl: 3rem;
    /* 48px */
    --text-6xl: 3.75rem;
    /* 60px */

    /* Spacing */
    --space-1: 0.25rem;
    /* 4px */
    --space-2: 0.5rem;
    /* 8px */
    --space-3: 0.75rem;
    /* 12px */
    --space-4: 1rem;
    /* 16px */
    --space-5: 1.25rem;
    /* 20px */
    --space-6: 1.5rem;
    /* 24px */
    --space-8: 2rem;
    /* 32px */
    --space-10: 2.5rem;
    /* 40px */
    --space-12: 3rem;
    /* 48px */
    --space-16: 4rem;
    /* 64px */
    --space-20: 5rem;
    /* 80px */
    --space-24: 6rem;
    /* 96px */

    /* Border Radius */
    --radius-sm: 0.375rem;
    /* 6px */
    --radius-md: 0.5rem;
    /* 8px */
    --radius-lg: 0.75rem;
    /* 12px */
    --radius-xl: 1rem;
    /* 16px */
    --radius-2xl: 1.5rem;
    /* 24px */
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;

    /* Container Max Width */
    --container-max: 1280px;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    height: 100%;
    min-height: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    height: auto;
    min-height: 100%;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

ul,
ol {
    list-style: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: var(--space-4);
}

h1 {
    font-size: var(--text-5xl);
    font-weight: var(--font-weight-extrabold);
}

h2 {
    font-size: var(--text-4xl);
}

h3 {
    font-size: var(--text-3xl);
}

h4 {
    font-size: var(--text-2xl);
}

h5 {
    font-size: var(--text-xl);
}

h6 {
    font-size: var(--text-lg);
}

p {
    margin-bottom: var(--space-4);
    line-height: 1.7;
}

.text-primary {
    color: var(--primary);
}

.text-gray-600 {
    color: var(--gray-600);
}

.text-gray-700 {
    color: var(--gray-700);
}

.text-white {
    color: var(--white);
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

@media (min-width: 640px) {
    .container {
        padding: 0 var(--space-6);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--space-8);
    }
}

.section {
    padding: var(--space-16) 0;
}

@media (min-width: 1024px) {
    .section {
        padding: var(--space-24) 0;
    }
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--space-6);
}

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

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

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

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1023px) {

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

@media (max-width: 767px) {

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

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 767px) {

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

/* Flexbox Utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

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

.justify-between {
    justify-content: space-between;
}

.gap-4 {
    gap: var(--space-4);
}

.gap-6 {
    gap: var(--space-6);
}

.gap-8 {
    gap: var(--space-8);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    background-color: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--gray-100);
}

/* Smoother Tricolor Overlay - Diagonal Sweep */
.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            transparent 0%,
            rgba(255, 153, 51, 0.4) 25%,
            rgba(255, 255, 255, 0.8) 50%,
            rgba(19, 136, 8, 0.4) 75%,
            transparent 100%);
    background-size: 200% 100%;
    background-position: -100% 0;
    opacity: 0;
    z-index: 1;
    animation: navbarBgSweep 7s ease-in-out 4s 1 normal forwards;
    pointer-events: none;
}

@keyframes navbarBgSweep {
    0% {
        opacity: 0;
        background-position: -100% 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        background-position: 100% 0;
    }
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
    height: auto;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-3) var(--space-4);
    position: relative;
    z-index: 10;
}


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

.navbar-logo-box {
    width: 48px;
    height: 48px;
    background-color: var(--primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-logo-text {
    color: var(--white);
    font-weight: var(--font-weight-bold);
    font-size: var(--text-xl);
}

.navbar-title {
    font-size: var(--text-xl);
    font-weight: var(--font-weight-bold);
    color: var(--primary);
    margin-bottom: 0;
    animation: titleTricolorSequence 3s ease-out 0s 1 normal forwards;
}

@keyframes titleTricolorSequence {
    0% {
        color: var(--primary);
        text-shadow: none;
    }

    30% {
        color: #FF9933;
        text-shadow: 0 0 15px rgba(255, 153, 51, 0.5);
    }

    70% {
        color: #138808;
        text-shadow: 0 0 15px rgba(19, 136, 8, 0.5);
    }

    100% {
        color: var(--primary);
        text-shadow: none;
    }
}

.navbar-subtitle {
    font-size: var(--text-xs);
    color: var(--gray-500);
    margin-bottom: 0;
    line-height: normal;
    /* Tighten line height if needed */
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.navbar-link {
    color: var(--gray-600);
    font-weight: var(--font-weight-semibold);
    transition: color var(--transition-fast);
    position: relative;
    animation: linkTricolorSequence 3s ease-out 2s 1 normal forwards;
}

@keyframes linkTricolorSequence {
    0% {
        color: var(--gray-600);
        opacity: 0.7;
    }

    40% {
        color: #FF9933;
        opacity: 1;
    }

    60% {
        color: #138808;
        opacity: 1;
    }

    100% {
        color: var(--gray-600);
        opacity: 0.7;
    }
}

.navbar-link:hover,
.navbar-link.active {
    color: var(--primary);
}

.navbar-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary);
}

.navbar-toggle {
    display: none;
    color: var(--primary);
    font-size: var(--text-2xl);
}

@media (max-width: 767px) {
    .navbar-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--white);
        padding: var(--space-6);
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--gray-100);
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-toggle {
        display: block;
        z-index: 1001;
    }
}

.navbar.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: var(--shadow-md);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    text-align: center;
    line-height: 1;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(90deg, #FF9933, #FFFFFF, #138808);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: inherit;
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2), 0 0 15px rgba(255, 153, 51, 0.4);
    transform: translateY(-2px);
    color: var(--primary);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
    position: relative;
    z-index: 1;
}

.btn-secondary:hover {
    background-color: var(--gray-50);
    border-color: transparent;
    box-shadow: 0 0 10px rgba(255, 153, 51, 0.3), 0 0 20px rgba(19, 136, 8, 0.3);
}

.btn-secondary:hover::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(90deg, #FF9933, #FFFFFF, #138808);
    border-radius: inherit;
    z-index: -1;
}

.btn-lg {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-lg);
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background-color: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: var(--space-8);
    transition: all var(--transition-base);
}

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

/* Animated Tricolor Border for Cards */
.card-tricolor-border {
    position: relative;
    overflow: hidden;
}

.card-tricolor-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
            #FF9933 0%,
            #ffffff 50%,
            #138808 100%);
    background-size: 200% 100%;
    animation: cardTricolorSweep 3s infinite linear;
    z-index: 10;
}

@keyframes cardTricolorSweep {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
}

.card-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(67, 108, 164, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
    transition: all var(--transition-base);
}

.card:hover .card-icon {
    background-color: var(--primary);
    color: var(--white);
}

.card-icon i {
    font-size: var(--text-3xl);
    color: var(--primary);
    transition: color var(--transition-base);
}

.card:hover .card-icon i {
    color: var(--white);
}

.card-title {
    font-size: var(--text-xl);
    font-weight: var(--font-weight-bold);
    color: var(--gray-900);
    margin-bottom: var(--space-4);
}

.card-text {
    color: var(--gray-600);
    line-height: 1.7;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: #E8EEf5;
    padding: var(--space-16) 0;
    position: relative;
    overflow: visible;
}

@media (min-width: 1024px) {
    .hero {
        padding: var(--space-24) 0;
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-badge {
    display: inline-block;
    background-color: rgba(67, 108, 164, 0.1);
    color: var(--primary);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-6);
}

.hero-title {
    font-size: var(--text-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: var(--space-6);
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: var(--text-5xl);
    }
}

@media (min-width: 1280px) {
    .hero-title {
        font-size: var(--text-6xl);
    }
}

.hero-text {
    font-size: var(--text-lg);
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: var(--space-8);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
}

.hero-stat {
    position: absolute;
    bottom: -24px;
    left: -24px;
    background-color: var(--white);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    display: none;
}

@media (min-width: 1024px) {
    .hero-stat {
        display: block;
    }
}

.hero-stat-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(67, 108, 164, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--space-4);
}

.hero-stat-icon i {
    font-size: var(--text-2xl);
    color: var(--primary);
}

.hero-stat-number {
    font-size: var(--text-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--primary);
}

.hero-stat-label {
    font-size: var(--text-sm);
    color: var(--gray-600);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section-title {
    font-size: var(--text-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--gray-900);
    margin-bottom: var(--space-4);
}

@media (min-width: 1024px) {
    .section-title {
        font-size: var(--text-4xl);
    }
}

.section-underline {
    width: 96px;
    height: 4px;
    background-color: var(--primary);
    margin: 0 auto var(--space-6);
}

.section-description {
    font-size: var(--text-lg);
    color: var(--gray-600);
    max-width: 768px;
    margin: 0 auto;
}

/* ============================================
   FOOTER (COMPACT REDESIGN)
   ============================================ */
.footer {
    background-color: var(--gray-900);
    color: var(--white);
    padding: var(--space-8) 0 var(--space-4);
    font-size: 0.875rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-6);
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.5fr 0.8fr 0.8fr 1.2fr;
        /* Custom columns: About, Links, Links, Newsletter */
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.footer-logo-box {
    width: 32px;
    height: 32px;
    background-color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.75rem;
}

.footer-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-text {
    color: var(--gray-400);
    line-height: 1.5;
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
    max-width: 300px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-link {
    color: var(--gray-400);
    transition: color 0.2s;
    font-size: 0.8125rem;
}

.footer-link:hover {
    color: var(--white);
    transform: translateX(2px);
    display: inline-block;
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: var(--space-4);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-copyright {
    color: var(--gray-500);
    font-size: 0.75rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social-link {
    width: 28px;
    height: 28px;
    background-color: var(--gray-800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: all 0.2s;
    font-size: 0.875rem;
}

.footer-social-link:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Footer Newsletter */
.footer-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-newsletter-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    border: 1px solid var(--gray-700);
    background-color: var(--gray-800);
    color: white;
    font-size: 0.8125rem;
}

.footer-newsletter-input:focus {
    outline: none;
    border-color: var(--primary);
}

.footer-newsletter-btn {
    width: 100%;
    padding: 0.5rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.footer-newsletter-btn:hover {
    background-color: var(--primary-dark);
}

/* Team Scroller */
.team-scroller {
    overflow: hidden;
    padding: 2rem 0;
    position: relative;
    background: var(--gray-50);
}

.team-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: scrollTeam 40s linear infinite;
}

.team-track:hover {
    animation-play-state: paused;
}

@keyframes scrollTeam {
    0% {
        transform: translateX(0);
    }

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

.team-card-scroll {
    width: 260px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.team-card-scroll:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--gray-700);
    margin-bottom: var(--space-2);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-family: var(--font-primary);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 108, 164, 0.1);
}

.form-textarea {
    resize: none;
    min-height: 120px;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-weight-semibold);
}

.badge-primary {
    background-color: rgba(67, 108, 164, 0.1);
    color: var(--primary);
}

.badge-success {
    background-color: var(--success-light);
    color: #065F46;
}

.badge-warning {
    background-color: var(--warning-light);
    color: #92400E;
}

.badge-gray {
    background-color: var(--gray-200);
    color: var(--gray-700);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* ============================================
   LATEST NEWS & BLOGS
   ============================================ */
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.news-card {
    background-color: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.news-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.news-content {
    padding: var(--space-6);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    gap: var(--space-4);
    font-size: var(--text-xs);
    color: var(--gray-500);
    margin-bottom: var(--space-2);
}

.news-title {
    font-size: var(--text-lg);
    font-weight: var(--font-weight-bold);
    color: var(--gray-900);
    margin-bottom: var(--space-3);
    line-height: 1.4;
}

.news-read-more {
    color: var(--primary);
    font-weight: var(--font-weight-semibold);
    font-size: var(--text-sm);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: auto;
}

/* ============================================
   NEWSLETTER SUBSCRIPTION
   ============================================ */
.newsletter-section {
    background-color: var(--primary-darker);
    color: var(--white);
    padding: var(--space-12) 0;
    position: relative;
    overflow: hidden;
}

.newsletter-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    align-items: center;
}

@media (min-width: 1024px) {
    .newsletter-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.newsletter-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-2);
    color: var(--white);
}

.newsletter-text {
    color: var(--gray-300);
    margin-bottom: 0;
    font-size: var(--text-base);
}

.newsletter-form {
    display: flex;
    gap: var(--space-4);
}

@media (max-width: 640px) {
    .newsletter-form {
        flex-direction: column;
    }
}

.newsletter-input {
    flex: 1;
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: inherit;
}

.newsletter-input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--white);
}

.newsletter-input::placeholder {
    color: var(--gray-400);
}

/* ============================================
   SPEAKER SLIDER (ANIMATED MARQUEE)
   ============================================ */
.speaker-slider-container {
    overflow-x: auto;
    padding: var(--space-8) 0;
    position: relative;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.speaker-slider-container::-webkit-scrollbar {
    display: none;
}

.speaker-slider-wrapper {
    position: relative;
    padding: 0 50px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    border: none;
}

.slider-btn:hover {
    background: var(--primary);
    color: white;
}

.slider-btn-prev {
    left: 0;
}

.slider-btn-next {
    right: 0;
}

.speaker-slider-track {
    display: flex;
    gap: var(--space-8);
    /* Increased gap for better separation */
    width: max-content;
    padding-right: var(--space-8);
}

.speaker-slider-track:hover {
    animation-play-state: paused;
}

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

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

.speaker-card-slide {
    width: 240px;
    flex-shrink: 0;
    background-color: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform var(--transition-base);
}

.speaker-card-slide:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.speaker-flyer-link {
    display: block;
    height: 360px;
    /* Taller for better poster visibility */
    width: 100%;
    background-color: #fcfcfc;
    overflow: hidden;
    padding: 10px;
    /* Padding for 'contain' effect */
}

.speaker-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Show the WHOLE flyer */
    object-position: center;
    transition: transform var(--transition-base);
}

.speaker-card-slide:hover .speaker-image {
    transform: scale(1.02);
}

.speaker-info {
    padding: var(--space-4);
    text-align: center;
    background-color: var(--white);
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.speaker-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.speaker-role {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.4;
    font-weight: 500;
}

/* Scroll Offset for Sticky Header */
section[id] {
    scroll-margin-top: 100px;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.mb-6 {
    margin-bottom: var(--space-6);
}

.mb-8 {
    margin-bottom: var(--space-8);
}

.mb-12 {
    margin-bottom: var(--space-12);
}

.mt-4 {
    margin-top: var(--space-4);
}

.mt-6 {
    margin-top: var(--space-6);
}

.mt-8 {
    margin-top: var(--space-8);
}

.hidden {
    display: none;
}

@media (max-width: 767px) {
    .hidden-mobile {
        display: none;
    }
}

@media (min-width: 768px) {
    .hidden-desktop {
        display: none;
    }
}

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

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 260px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    border-radius: var(--radius-lg);
    top: 100%;
    left: 0;
    padding: 0.5rem 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Invisible bridge to prevent closing when moving mouse across the gap */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 20px;
    z-index: -1;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.dropdown-content a {
    color: var(--gray-800);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: var(--gray-50);
    color: var(--primary);
}

.hero-buttons {
    overflow: visible;
    /* Fix clipping */
}

/* --- Creative Animations --- */

/* Team 3D Flip Cards */
.team-perspective {
    perspective: 1500px;
}

.team-flip-card {
    background-color: transparent;
    width: 100%;
    height: 380px;
    perspective: 1500px;
}

.team-flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-xl);
}

.team-flip-card:hover .team-flip-card-inner {
    transform: rotateY(180deg);
}

.team-flip-card-front,
.team-flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.team-flip-card-front {
    background-color: #f8f9fa;
}

.team-flip-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-flip-card-back {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.team-social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.team-social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background 0.3s;
}

.team-social-link:hover {
    background: white;
    color: var(--primary);
}

/* Film Strip Creative Scroller */
.film-strip-scroller {
    width: 100%;
    overflow-x: auto;
    position: relative;
    padding: 40px 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.film-strip-scroller::-webkit-scrollbar {
    display: none;
}

.film-strip-track {
    display: flex;
    width: max-content;
    /* animation: filmStripScroll 30s linear infinite; */
}

/* User requested always scrolls, so we don't pause on hover */
/* .film-strip-track:hover {
    animation-play-state: running;
} */

.film-strip-item {
    width: 350px;
    height: 250px;
    padding: 0 15px;
    flex-shrink: 0;
    transition: transform 0.5s ease;
}

.film-strip-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    filter: grayscale(20%);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.film-strip-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.08) translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

@keyframes filmStripScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-350px * 5));
    }
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .film-strip-item {
        width: 280px;
        height: 180px;
    }

    @keyframes filmStripScroll {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-280px * 5));
        }
    }
}

/* Slider Navigation Buttons */
.slider-navigation-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary);
    border: none;
    transition: all 0.3s;
}

.slider-navigation-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-navigation-btn.prev {
    left: 20px;
}

.slider-navigation-btn.next {
    right: 20px;
}