/* =========================================================================
   1.  CSS Variables & Global Reset
   2.  Base & Typography Styles
   3.  Layout & Helper Classes
   4.  Modern Animations & Keyframes
   5.  General Component Styles (Buttons, etc.)
   6.  Page Section Styles
       - Header & Navigation
       - Hero Section
       - Intro & Madhubani Border
       - Events Section (Countdown & Cards)
       - Culture Section (Interactive Map)
       - About Us Section
       - Blogs Section
       - Register & Contact Section
       - Footer Section
   7.  Utility Component Styles
       - Back to Top Button
       - Loading Spinner
   8.  Responsive Styles (Media Queries)
   ========================================================================== */

/* --- 1. CSS VARIABLES & GLOBAL RESET --- */
:root {
    --brand-orange: #ff6700;
    --brand-yellow: #ffd700;
    --brand-blue: #4682b4;
    --brand-green: #556b2f;
    --brand-bg: #fff8e1;
    --text-dark: #333;
    --text-light: #f0f0f0;
    --text-muted: #6b7280;
    --gradient-primary: linear-gradient(135deg, #ff6700, #ff8c42, #ffd700);
    --gradient-secondary: linear-gradient(135deg, #4682b4, #5a9bd4, #87ceeb);
    --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
    --border-radius: 16px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- 2. BASE & TYPOGRAPHY STYLES --- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: linear-gradient(135deg, #fff8e1 0%, #fff5e6 50%, #f0f8ff 100%);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1,
h2,
h3,
.devanagari-title {
    font-family: "Tiro Devanagari Hindi", serif;
}

h1 {
    font-size: 2.25rem;
    /* 36px */
    font-weight: 700;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    /* 32px */
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

/* --- 3. LAYOUT & HELPER CLASSES --- */
main {
    position: relative;
    z-index: 2;
}

section {
    padding: 5rem 0;
    position: relative;
    z-index: 2;
}

.container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.hidden {
    display: none;
}

.text-center {
    text-align: center;
}

.shadow {
    -webkit-filter: drop-shadow(3px 3px 2px rgba(0, 0, 0, 0.7));
    filter: drop-shadow(3px 3px 2px rgba(0, 0, 0, 0.7));
}

/* --- 4. MODERN ANIMATIONS & KEYFRAMES --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -20px);
    }

    60% {
        transform: translate(-50%, -10px);
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Animation Utility Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

.slide-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.slide-right {
    animation: slideInRight 0.8s ease-out forwards;
}

.floating {
    animation: float 3s ease-in-out infinite;
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

/* --- 5. GENERAL COMPONENT STYLES --- */
.btn {
    display: inline-block;
    width: 100%;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--brand-yellow);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--brand-yellow);
    color: var(--text-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* --- 6. PAGE SECTION STYLES --- */

/* --- HEADER & NAVIGATION --- */
#main-header {
    background: #fff8e1;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#main-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 103, 0, 0.1);
}

#main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
}

.main-nav {
    display: none;
    /* Hidden on mobile */
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    font-weight: 600;
    color: #333;
    text-decoration: none;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.main-nav a::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(-50%);
}

.main-nav a:hover {
    color: var(--brand-orange);
    background: rgba(255, 103, 0, 0.1);
    transform: translateY(-2px);
}

.main-nav a:hover::before {
    width: 80%;
}

#mobile-menu-button {
    display: block;
    /* Shown on mobile */
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

#mobile-menu a {
    display: block;
    padding: 0.5rem 0;
    font-weight: 600;
    color: #333;
    text-decoration: none;
}

#mobile-menu a:hover {
    color: var(--brand-orange);
}

/* --- HERO SECTION --- */
.hero-banner {
    height: 97vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
    background-image: linear-gradient(135deg,
            rgba(255, 103, 0, 0.3),
            rgba(70, 130, 180, 0.3)),
        url("./image/hero-background.jpg");
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 1rem;
    overflow: hidden;
    z-index: 1;
    margin-bottom: -30px;
    transform: translateZ(0);
    will-change: background-position;
}

.hero-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%,
            rgba(255, 215, 0, 0.2) 0%,
            transparent 50%),
        radial-gradient(circle at 70% 30%,
            rgba(70, 130, 180, 0.2) 0%,
            transparent 50%);
    animation: float 6s ease-in-out infinite;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: particleFloat 8s linear infinite;
}

.hero-content {
    padding: 2rem;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-banner h1 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.7s both;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

/* --- INTRO & MADHUBANI BORDER --- */
.hero-banner+section {
    margin-top: 0;
    background: #ffffff;
}

.hero-banner~* {
    position: relative;
    z-index: 2;
}

.madhubani-border {
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-image: linear-gradient(to right,
            rgba(239, 224, 110, 0.735),
            rgb(227, 194, 244)) 1;
    background-color: white;
}

.intro-section {
    max-width: 48rem;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.75;
    color: #333;
}

/* --- EVENTS SECTION --- */
#countdown-container {
    margin-bottom: 3rem;
}

#countdown-container h3 {
    font-size: 1.25rem;
    color: var(--brand-green);
    margin-bottom: 1rem;
}

#countdown {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.countdown-box {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    flex: 1;
    max-width: 6rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.countdown-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 103, 0, 0.1),
            transparent);
    transition: left 2s ease;
}

.countdown-box:hover::before {
    left: 100%;
}

.countdown-box:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.countdown-box span:first-child {
    display: block;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--brand-orange);
}

.countdown-box span:last-child {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.event-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.event-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.event-card:hover::before {
    transform: scaleX(1);
}

.glowing-card {
    position: relative;
}

.glowing-card::after {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glowing-card:hover::after {
    opacity: 0.3;
}

.event-card img {
    width: 100%;
    height: 15rem;
    object-fit: cover;
}

.event-card .p-6 {
    padding: 1.5rem;
}

.event-card h3 {
    font-size: 1.5rem;
    color: var(--brand-blue);
    margin-bottom: 0.5rem;
}

.event-card p {
    font-size: smaller;
}


/* --- CULTURE SECTION --- */
.map-container {
    position: relative;
    max-width: 700px;
    width: 100%;
    margin: auto;
    border-radius: 12px;
    overflow: visible;
}

.map-image {
    display: block;
    width: 100%;
    height: auto;
}

.location-point {
    position: absolute;
    transform: translate(-50%, -50%);
}

.pin {
    width: 10px;
    height: 10px;
    background-color: #ff6700;
    border-radius: 50%;
    border: 3px solid #ffffff;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.pin::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background-color: #ff6700;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 1.5s infinite ease-out;
    z-index: -1;
}

.info-box {
    position: absolute;
    bottom: 200%;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 220px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 20;
}

.location-point:hover .info-box {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

.info-box img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.info-box-content {
    padding: 15px;
}

.info-box h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    color: #333;
}

.info-box p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

@keyframes pulse {
    0% {
        /* Start the scale smaller than 1 to hide it behind the main pin */
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.7;
    }

    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

/* --- ABOUT US SECTION --- */
.soul-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.soul-item {
    text-align: center;
}

.soul-icon {
    font-size: 2.25rem;
    background-color: rgba(85, 107, 47, 0.1);
    border-radius: 9999px;
    padding: 1rem;
    transition: transform 0.3s, background-color 0.3s;
    display: inline-block;
}

.soul-icon:hover {
    transform: scale(1.1);
    background-color: rgba(85, 107, 47, 0.2);
}

.soul-item span {
    font-size: 0.875rem;
    font-weight: 600;
    display: block;
}

.sm {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--brand-blue);
    margin-bottom: 3rem;
}

/* --- BLOGS SECTION (CORRECTED) --- */
#gallery {
    padding: 4rem 0;
}

.blog-card {
    position: relative;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 380px;
    width: 100%;
}

.blog-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.blog-card:hover img {
    transform: scale(1.1);
}

.blog-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
    display: flex;
    align-items: flex-end;
    transition: background 0.5s ease;
}

.blog-card:hover .blog-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.1) 60%);
}

.blog-overlay-content {
    color: white;
    text-align: left;
    padding: 1.5rem;
    width: 100%;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease;
}

.blog-overlay-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
    transition: transform 0.4s ease;
}

.blog-overlay-content p,
.blog-overlay-content a {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.4s ease, max-height 0.4s ease, margin-top 0.4s ease;
}

.blog-card .blog-overlay-content p,
.blog-card .blog-overlay-content a {
    opacity: 1;
    max-height: 100px;
    margin-top: 0.5rem;
}

.blog-card:hover .blog-overlay-content h3 {
    transform: translateY(-5px);
}

.blog-overlay-content a {
    display: inline-block;
    background-color: var(--brand-orange);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.blog-overlay-content a:hover {
    background-color: white;
    color: var(--brand-orange);
}

.blog-swiper {
    width: 100%;
    padding-top: 20px;
    padding-bottom: 50px;
}

.swiper-slide {
    padding: 0 10px;
}

.swiper-pagination-bullet-active {
    background-color: var(--brand-orange) !important;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--brand-orange) !important;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: white;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.2rem !important;
    font-weight: bold;
}

/* --- REGISTER & CONTACT SECTION --- */
.register-container {
    max-width: 60rem;
    margin: 0 auto;
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.form-column {
    padding: 1.5rem;
}

.form-column h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.contact-info {
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.contact-info h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-info p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--text-muted);
    text-align: center;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: border-color 0.2s ease;
}

.contact-item:hover {
    border-color: var(--brand-orange);
}

.contact-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--brand-orange);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.contact-text {
    flex: 1;
}

.contact-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.contact-value {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease;
    font-size: 1rem;
}

.form-input-field:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 3px rgba(255, 103, 0, 0.1);
}

.form-submit-btn {
    background: var(--brand-orange);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
    margin-top: 1rem;
}

.form-submit-btn:hover {
    background: #e55a00;
}

.form-submit-btn:active {
    background: #cc5200;
}

/* --- FOOTER SECTION --- */
footer {
  background: linear-gradient(135deg, #2d3748 0%, #4a5a26 50%, #2d3748 100%);
  color: #e2e8f0;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.footer-stats {
  display: flex;
  justify-content: space-around;
  margin: 2rem 0;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
}

.footer-stat {
  text-align: center;
}

.footer-stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-orange);
  display: block;
}

.footer-stat-label {
  font-size: 0.875rem;
  color: #cbd5e0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-grid {
  padding: 2rem 0 2rem 0;
}

.footer-col {
  margin-bottom: 2rem;
}

.footer-logo-section .logo-link {
  margin-bottom: 1rem;
  display: inline-flex;
}

.footer-logo {
  margin-bottom: -50px;
  width: 100px;
  height: 100px;
}

.footer-description {
  color: #a0aec0;
  line-height: 1.6;
  font-size: 1rem;
  max-width: 400px;
}

/* --- Social Icon Design (Corrected) --- */
.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* This selector is now more specific to override conflicting styles */
.footer-col .footer-socials a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;

  /* Reset inherited styles that break centering */
  padding: 0;
  position: static; /* Override position: relative */

  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;

  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-socials a svg {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

/* Corrected Hover Effects for Social Icons */
.footer-col .footer-socials a:hover {
  background-color: var(--brand-orange);
  border-color: var(--brand-orange);
  transform: none; /* Prevents icon from shifting on hover */
}

.footer-socials a:hover svg {
  color: #ffffff;
}

/* Hides the underline effect inherited from other links */
.footer-col .footer-socials a::before {
  display: none;
}

.footer-col h4 {
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  position: relative;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 2rem;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* General styles for other links in the footer */
.footer-col a {
  color: #cbd5e0;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.25rem 0;
  position: relative;
  display: inline-block;
}

.footer-col a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--brand-orange);
  transition: width 0.3s ease;
}

.footer-col a:hover {
  color: white;
  transform: translateX(5px);
}

.footer-col a:hover::before {
  width: 100%;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding: 1.5rem 0;
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.footer-bottom p {
  color: #a0aec0;
  font-size: 0.875rem;
  margin: 0;
}

/* --- 7. UTILITY COMPONENT STYLES --- */

/* --- BACK TO TOP BUTTON --- */
#back-to-top {
    position: fixed;
    bottom: 1rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-hover);
}

/* --- LOADING SPINNER --- */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* --- 8. RESPONSIVE STYLES (MEDIA QUERIES) --- */

/* Medium screens and up (Tablets) */
@media (min-width: 640px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .hero-buttons {
        flex-direction: row;
    }

    .btn {
        width: auto;
    }

    .countdown-box {
        padding: 1rem;
    }

    .soul-container {
        gap: 2rem;
    }

    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* .register-container {
        padding: 5rem;
    } */
}

/* Large screens and up (Desktops) */
@media (min-width: 768px) {
    #mobile-menu-button {
        display: none;
    }

    .main-nav {
        display: flex;
    }

    .grid-cols-md-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-cols-md-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .grid-cols-md-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .md-col-span-2 {
        grid-column: span 2 / span 2;
    }

}

/* Extra-large screens */
@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Small screens and down (Mobile) */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 80px;
        /* Adjust for sticky header */
    }

    .hero-banner {
        height: 89vh;
        background-attachment: scroll;
        /* Disable parallax on mobile */
    }

    .hero-banner h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        display: none;
    }

    .hero-content {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
        margin-top: -5rem;
    }

    .scroll-down {
        bottom: 1rem;
        padding: 0.75rem;
    }

    section {
        padding: 3rem 0;
    }

    .footer-stats {
        display: none;
    }

    .sm span {
        font-size: 10px;
    }

    .soul-icon {
        padding: 0.5rem;
        font-size: 1.5rem;
    }

    .soul-item span {
        font-size: 10px;
    }

    .form-column {
        padding: 0.5rem;
    }

    .contact-value {
        font-size: 0.8rem;
    }

    .contact-icon {
        width: 2rem;
        height: 2rem;
    }

    .footer-events {
        display: none;
    }

    .footer-col {
        margin-bottom: 0rem;
    }

    /* .footer-grid {
        padding: 4rem 0 0rem 0;
    } */

    #back-to-top {
        display: none;
        bottom: 2rem;
        right: 1rem;
    }
}