/* =========================================
   Variables & Theme Defaults
   ========================================= */
:root {
    --primary: #1a75bb;
    /* Blue */
    --primary-dark: #12588c;
    --secondary: #ffffff;
    --accent: #8063a1;
    /* Purple */
    --accent-light: #9a7bc1;
    --text-main: #333333;
    --text-light: #666666;
    --bg-light: #f4f7f6;
    --dark-bg: #0f172a;

    /* Glassmorphism setup */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);

    /* Fonts */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Animations */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    background-color: var(--secondary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
}

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

ul {
    list-style: none;
}

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

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

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

.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

/* Typography Extensions */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Generic fallback */
}

.section-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(26, 117, 187, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-bg);
}

/* =========================================
   Components (Buttons, Cards)
   ========================================= */
.btn-primary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.btn-glow {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(128, 99, 161, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: var(--transition-smooth);
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(26, 117, 187, 0.8), rgba(128, 99, 161, 0.8));
    z-index: -1;
    transition: opacity 0.5s ease;
    opacity: 0;
}

.btn-glow:hover::before {
    opacity: 1;
}

.btn-glow:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(128, 99, 161, 0.6);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    color: white;
    padding: 13px 33px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.5);
    display: inline-block;
    transition: var(--transition-smooth);
}

.btn-outline:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-3px) scale(1.02);
}

.pulse-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(128, 99, 161, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(128, 99, 161, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(128, 99, 161, 0);
    }
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(31, 38, 135, 0.2);
    background: rgba(255, 255, 255, 0.9);
}

/* =========================================
   Navigation
   ========================================= */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 15px 30px;
    z-index: 1000;
    transition: all 0.5s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background: #1a75bbd9;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 10px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 55px;
    transition: var(--transition-smooth);
    image-rendering: auto;
    filter: contrast(1.1) brightness(1.05);
}

.navbar.scrolled .logo img {
    height: 45px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: white;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.navbar.scrolled .nav-link {
    color: var(--bg-light);
    text-shadow: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

.navbar.scrolled .nav-link:hover {
    color: var(--primary);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

.navbar.scrolled .hamburger {
    color: var(--text-main);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--dark-bg);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    image-rendering: auto;
    filter: contrast(1.1) brightness(1.05);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 117, 187, 0.85), rgba(128, 99, 161, 0.85));
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
}

.hero-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

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

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

#particles-js {
    position: absolute;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 800px;
}

.sub-headline {
    font-size: 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.main-headline {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.main-headline .text-gradient {
    background: linear-gradient(to right, #ffffff, #e0eaff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-desc {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

/* Scroll Indicator */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 10px;
    background: white;
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        top: 10px;
        opacity: 1;
    }

    100% {
        top: 30px;
        opacity: 0;
    }
}

/* =========================================
   About Section
   ========================================= */
.about {
    padding: 100px 0;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1250px;
}

.about-text p {
    font-size: 1.15rem;
    line-height: 1.8;
}

.lead-text {
    font-size: 1.35rem !important;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-features {
    margin-top: 35px;
}

.about-features li {
    font-size: 1.15rem;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.about-features li:hover {
    transform: translateX(5px);
    color: var(--primary);
}

.about-features i {
    color: var(--accent);
    font-size: 1.6rem;
}

.about-image {
    position: relative;
}

.about-image .glass-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    padding: 0;
    background: transparent;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: var(--transition-smooth);
}

.campus-img {
    width: 100%;
    border-radius: 20px;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    image-rendering: auto;
    filter: contrast(1.1) brightness(1.05);
}

.about-image:hover .campus-img {
    transform: scale(1.05);
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    left: -20px;
    background: var(--primary);
    color: white;
    padding: 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(26, 117, 187, 0.4);
    animation: floating 3s ease-in-out infinite;
}

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

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

.experience-badge .years {
    font-size: 2.5rem;
    font-weight: 800;
}

.experience-badge .text {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.2;
}

.glass-badge {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    color: var(--primary-dark) !important;
}

/* =========================================
   Courses Section (Bento Grid)
   ========================================= */
.courses-wrapper-container {
    max-width: 1650px !important;
    width: 95% !important;
}

.premium-course-container {
    position: relative;
    margin-top: 50px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 3px;
    /* Space for the border beam */
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* Border Beam Magic UI Style */
.border-beam {
    display: none;
}

@keyframes rotateBeam {
    100% {
        transform: rotate(360deg);
    }
}

.bento-grid {
    position: relative;
    z-index: 1;
    background: var(--secondary);
    border-radius: 18px;
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 30px;
}

.bento-card {
    position: relative;
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
    padding: 2px;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.bento-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(from 0deg, transparent 70%, var(--primary) 80%, var(--accent) 90%, transparent 100%);
    animation: rotateBeam 2.5s linear infinite;
    z-index: 0;
    opacity: 0.2;
    transition: opacity 0.4s ease;
}

.bento-card:hover::before {
    opacity: 1;
}

.bento-card-inner {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    transition: var(--transition-smooth);
}

.bento-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(128, 99, 161, 0.15);
}

.card-image-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(26,117,187,0.1), rgba(128,99,161,0.1));
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(0.9);
}

.bento-card:hover .card-img {
    transform: scale(1.1);
    filter: brightness(1.1) contrast(1.1);
}

.card-tags {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    z-index: 2;
}

.tag {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(5px);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark-bg);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.tag-ug { color: var(--primary); }
.tag-pg { color: var(--accent); }
.tag-research { color: #d97706; }
.tag-duration { font-size: 0.75rem; font-weight: 500; }

.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 5px;
}

.card-icon {
    font-size: 1.5rem;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(26,117,187,0.5);
    transition: var(--transition-smooth);
}

.bento-card:hover .card-icon {
    color: var(--accent);
    text-shadow: 0 0 15px rgba(128,99,161,0.6);
}

.card-header h3 {
    font-size: 1.5rem;
    color: var(--dark-bg);
    margin: 0;
}

.course-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.3;
}

.course-details {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 25px;
    flex-grow: 1;
}

.btn-know-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(26, 117, 187, 0.1);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    text-decoration: none;
    align-self: flex-start;
}

.bento-card:hover .btn-know-more {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.bento-card:hover .btn-know-more i {
    transform: translateX(4px);
}

/* =========================================
   Highlights Section (Bento Grid)
   ========================================= */
.highlights {
    position: relative;
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    overflow: hidden;
}

.relative-section {
    position: relative;
}

#highlights-particles {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.highlights-wrapper-container {
    max-width: 1600px;
    width: 95%;
    position: relative;
    z-index: 10;
    margin: 0 auto;
}

.highlights-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: 25px;
    margin-top: 40px;
}

.highlight-bento-card {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
}

.highlight-bento-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.2), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.highlight-bento-card > * {
    z-index: 1;
    position: relative;
}

.highlight-bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(26, 117, 187, 0.15);
}

.highlight-bento-card:hover::before {
    opacity: 1;
}

/* Card Varieties */
.card-primary {
    background: var(--primary);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-primary h3, .card-primary p {
    color: white;
}

.card-secondary {
    background: rgba(255, 255, 255, 0.85);
    color: var(--text-main);
    border: 1px solid rgba(26, 117, 187, 0.1);
}

.card-secondary h3 {
    color: var(--dark-bg);
}

.card-secondary p {
    color: var(--text-light);
}

/* Base structural classes */
.card-large {
    grid-column: span 2;
    grid-row: span 2;
    justify-content: flex-end;
}
.card-wide {
    grid-column: span 2;
    grid-row: span 1;
    justify-content: center;
}
.card-small {
    grid-column: span 1;
    grid-row: span 1;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Icon Wrappers */
.bento-icon-wrapper {
    width: 75px;
    height: 75px;
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    margin-bottom: 25px;
    transition: var(--transition-smooth);
    /* Soft drop shadow behind icons */
    filter: drop-shadow(0 8px 15px rgba(0,0,0,0.15));
}

.card-primary .bento-icon-wrapper {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-secondary .bento-icon-wrapper {
    background: rgba(26, 117, 187, 0.1);
    color: var(--primary);
}

.card-small .bento-icon-wrapper {
    margin: 0 auto 25px;
}

.card-large .bento-icon-wrapper {
    width: 90px; 
    height: 90px; 
    font-size: 3.2rem;
    margin-bottom: auto; /* Push to top */
}

.highlight-bento-card:hover .bento-icon-wrapper {
    transform: scale(1.1);
}

.card-primary:hover .bento-icon-wrapper {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.card-secondary:hover .bento-icon-wrapper {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px rgba(26, 117, 187, 0.4);
}

/* Typography elements within card-content-wrapper */
.card-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.highlight-bento-card h3 {
    font-size: 1.4rem;
    line-height: 1.3;
    margin: 0;
}
.card-large h3 {
    font-size: 2.4rem;
    margin-bottom: 5px;
}
.card-wide h3 {
    font-size: 1.6rem;
}

.highlight-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}
.card-large .highlight-subtitle {
    font-size: 1.3rem;
}

.highlight-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    opacity: 0.9;
}
.card-large .highlight-desc {
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Capitation No Donation Pulse */
@keyframes borderPulse {
    0% { box-shadow: 0 0 0 0 rgba(26, 117, 187, 0.8); }
    70% { box-shadow: 0 0 0 25px rgba(26, 117, 187, 0); }
    100% { box-shadow: 0 0 0 0 rgba(26, 117, 187, 0); }
}

.card-pulse {
    animation: borderPulse 2.5s infinite;
    /* Added to ensure it acts gracefully with other shadow styles */
    border: 2px solid rgba(255, 255, 255, 0.6);
}

/* =========================================
   Clubs Section
   ========================================= */
.clubs-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 10px 40px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.clubs-slider::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.club-card {
    min-width: 200px;
    height: 200px;
    background: white;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    scroll-snap-align: start;
    cursor: grab;
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.club-content {
    transform: translateZ(30px);
}

.club-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
    transition: var(--transition-smooth);
}

.club-card h4 {
    font-size: 1.1rem;
    color: var(--dark-bg);
}

.club-card:hover i {
    color: var(--accent);
    transform: scale(1.2);
}

/* =========================================
   Why Choose Us (Parallax)
   ========================================= */
.parallax-section {
    position: relative;
    padding: 100px 0;
    min-height: 400px;
    background-color: var(--dark-bg);
    background-image: url('../src/img/campus.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: white;
    text-align: center;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
}

.parallax-content h2 {
    font-size: 2.8rem;
    margin-bottom: 50px;
}

.benefits-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 43px;
}



@keyframes spin-border {
    to { --border-angle: 360deg; }
}

/* 1. This block is CRITICAL. It tells the browser that --border-angle is a number that can rotate */

@property --border-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.benefit-item {
    /* KEY CHANGE: Make the width exactly fit the text */
    width: fit-content; 
    
    /* Minimal Padding: Top/Bottom 6px, Left/Right 15px */
  padding: 12px 26px;
    
    border-radius: 30px; /* Reduced radius for the smaller size */
    font-size: 15px;    /* Slightly smaller font for the minimal aesthetic */
    display: inline-flex; /* Use inline-flex to prevent full-width stretching */
    align-items: center;
    gap: 8px;            /* Tightened gap between icon and text */
    cursor: default;
    color: white;
    position: relative;
    transition: transform 0.2s ease;
    
    /* Subtle Glassmorphism */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    /* BORDER BEAM LOGIC */
    background: 
        linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)) padding-box, 
        conic-gradient(
            from var(--border-angle), 
            transparent 80%, 
            #1a75bb 90%, 
            #8063a1 95%, 
            transparent 100%
        ) border-box;
    
    border: 1.5px solid transparent; /* Slightly thinner beam for a smaller div */
    animation: spin-border 3s linear infinite;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.benefit-item:hover {
    transform: scale(1.05); /* Slight "pop" instead of moving up */
    box-shadow: 0 5px 15px rgba(26, 117, 187, 0.4);
}

@keyframes spin-border {
    to {
        --border-angle: 360deg;
    }
}

.benefit-item i {
    font-size: 0.85rem; /* Icon scales with the text */
    color: #1a75bb;
}

/* =========================================
   CTA Section
   ========================================= */
.cta-section {
    background: radial-gradient(circle at 50% 10%, rgba(240, 247, 255, 1) 0%, rgba(255,255,255,1) 50%, rgba(128, 99, 161, 0.08) 100%);
}

.cta-box {
    max-width: 1000px;
    margin: 0 auto;
    padding: 70px 50px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 1));
    border: 1px solid rgba(26, 117, 187, 0.1);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.4s ease;
}

.cta-box:hover {
    box-shadow: 0 30px 60px rgba(0,0,0,0.08); /* slightly deeper on hover */
}

.cta-box h2 {
    font-size: 3.5rem;
    color: var(--dark-bg); /* bold, dark navy color */
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.cta-box p {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 30px;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.trust-badges span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-badges span i {
    color: var(--primary);
    font-size: 1.1rem;
}

/* Hidden Button Logic */
.cta-btn-wrapper {
    height: 55px; /* reserve space so overall layout is stable */
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-cta-submit {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 16px 45px;
    border-radius: 50px;
    text-decoration: none;
    
    transform: translateY(20px); /* Pushed down */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(26, 117, 187, 0.3);
}

.cta-box:hover .btn-cta-submit {
    opacity: 1; /* Fade in */
    transform: translateY(0); /* Slide up into position */
}

.btn-cta-submit i {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.btn-cta-submit:hover {
    background-color: #155a8a; /* darker blue */
    box-shadow: 0 12px 25px rgba(26, 117, 187, 0.5);
    color: white;
}

.btn-cta-submit:hover i {
    opacity: 1;
    transform: translateX(0);
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
    .cta-box h2 {
        font-size: 2.2rem;
    }
    .cta-box {
        padding: 40px 20px;
    }
    /* Make button always visible on mobile since hover doesn't exist natively */
    .btn-cta-submit {
        opacity: 1;
        transform: translateY(0);
    }
}
\n/* =========================================
   Footer
   ========================================= */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-brand h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.footer-brand p {
    color: #cbd5e1;
    font-size: 17px;
    text-align: justify;
    line-height: 33px;
}

.footer h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    color: white;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #cbd5e1;
    transition: var(--transition-smooth);
}

.footer .social-icons a i {
    color: white;
}

.footer-links ul li a:hover {
    color: var(--bg-light);
    padding-left: 5px;
}

.footer-contact p {
    color: #cbd5e1;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--primary);
    margin-top: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.social-icon:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: white;
}

.footer-bottom a:hover {
    color: var(--primary);
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 992px) {
    .highlights-bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .card-large { grid-column: span 2; grid-row: span 1; }
    .card-wide { grid-column: span 2; }
    .main-headline {
        font-size: 3.5rem;
    }

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

    .experience-badge {
        left: 20px;
    }

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

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

@media (max-width: 768px) {
    .highlights-bento-grid {
        grid-template-columns: 1fr;
    }
    .card-large, .card-wide, .card-small {
        grid-column: span 1;
        grid-row: span 1;
        text-align: center;
        align-items: center;
    }
    .card-large .bento-icon-wrapper {
        margin: 0 auto 20px;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--secondary);
        flex-direction: column;
        justify-content: center;
        transition: 0.5s ease-in-out;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links .nav-link {
        color: var(--dark-bg);
        font-size: 1.2rem;
    }

    .navbar.scrolled .nav-links .nav-link {
        color: var(--dark-bg);
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .main-headline {
        font-size: 2.8rem;
    }

    .sub-headline {
        font-size: 1.2rem;
    }

    .hero-btns {
        flex-direction: column;
    }

    .hero-btns a {
        width: 100%;
        text-align: center;
    }

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

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

    .section-title {
        font-size: 2rem;
    }
}

.logo-text {
    color: white;
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif;
}
/* =========================================
   Student Life & Clubs Marquee
   ========================================= */
.marquee-section {
    width: 100%;
    background-color: transparent;
    padding: 60px 0;
    overflow: hidden;
    position: relative;
    z-index: 5;
}

.marquee-wrapper {
    padding: 5px 2px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.marquee-row {
    width: 100%;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    display: flex;
}

.marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    will-change: transform;
}

.marquee-left .marquee-track {
    animation: scrollLeft 45s linear infinite;
}

.marquee-right .marquee-track {
    animation: scrollRight 45s linear infinite;
}

/* 8 images * 250px width = 2000px + 8 gaps * 20px = 160px -> Total translation per set = 2160px */
@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-2160px); }
}

@keyframes scrollRight {
    0% { transform: translateX(-2160px); }
    100% { transform: translateX(0); }
}

.marquee-item {
    width: 250px;
    height: 250px;
    flex-shrink: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #f8fafc;
    /* Theme glowing border */
    border: 3px solid rgba(26, 117, 187, 0.4);
    box-shadow: 0 0 15px rgba(26, 117, 187, 0.2);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s, box-shadow 0.3s;
    cursor: pointer;
    position: relative;
}

.marquee-item:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 15px 30px rgba(128, 99, 161, 0.6);
    z-index: 10;
}

.marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.marquee-item:hover img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .marquee-item {
        width: 180px;
        height: 180px;
    }
    .marquee-track {
        gap: 15px;
    }
    /* Total translation for mobile: 8 items * (180+15) = 1560px */
    .marquee-left .marquee-track { animation: scrollLeftMobile 40s linear infinite; }
    .marquee-right .marquee-track { animation: scrollRightMobile 40s linear infinite; }
}

@keyframes scrollLeftMobile {
    0% { transform: translateX(0); }
    100% { transform: translateX(-1560px); }
}
@keyframes scrollRightMobile {
    0% { transform: translateX(-1560px); }
    100% { transform: translateX(0); }
}
