/* Harry Potter Magical Design System */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=MedievalSharp&display=swap');


/* CSS Variables */
:root {
    /* Magical Colors */
    --background: hsl(210, 12%, 8%);
    --foreground: hsl(45, 25%, 85%);
    --card: hsl(210, 15%, 12%);
    --card-foreground: hsl(45, 20%, 90%);
    --primary: hsl(45, 65%, 55%); /* Magical Gold */
    --primary-foreground: hsl(210, 15%, 12%);
    --secondary: hsl(260, 25%, 35%); /* Deep Purple */
    --secondary-foreground: hsl(45, 25%, 85%);
    --accent: hsl(120, 20%, 25%); /* Dark Green */
    --accent-foreground: hsl(45, 25%, 85%);
    --muted: hsl(210, 18%, 15%);
    --muted-foreground: hsl(45, 15%, 65%);
    --border: hsl(210, 25%, 20%);

    /* Magical Gradients */
    --gradient-magic: linear-gradient(135deg, hsl(260, 25%, 35%), hsl(210, 25%, 20%), hsl(44, 13%, 41%));
    --gradient-gold: linear-gradient(135deg, hsl(45, 75%, 65%), hsl(45, 65%, 55%), hsl(45, 55%, 45%));
    --gradient-parchment: linear-gradient(135deg, hsl(45, 35%, 85%), hsl(45, 25%, 75%), hsl(45, 20%, 65%));
    --gradient-spell: radial-gradient(circle, hsl(260, 65%, 55%, 0.3), hsl(45, 65%, 55%, 0.2), transparent);

    /* Magical Shadows */
    --shadow-magic: 0 10px 40px hsl(260, 25%, 35%, 0.4);
    --shadow-gold: 0 8px 32px hsl(45, 65%, 55%, 0.3);
    --shadow-enchanted: 0 15px 60px hsl(260, 25%, 35%, 0.5), 0 5px 20px hsl(45, 65%, 55%, 0.2);

    /* Animation Timings */
    --transition-magic: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spell: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

body {
    font-family: 'MedievalSharp', cursive;
    background: var(--gradient-magic);
    color: var(--foreground);
    min-height: 100vh;
    overflow-x: hidden;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23DAA520" stroke-width="2"><path d="M15 4V2m0 20v-2m-8-6l2-2 2 2-2 2-2-2z"/><path d="M9 7L7 9l2 2 2-2-2-2z"/><path d="M15 11l2-2-2-2-2 2 2 2z"/></svg>'), auto;
}

/* Magical cursor effects */
button, a, [role="button"] {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23FFD700" stroke-width="2"><path d="M2 12l7-7 2 2-4 4h11v2H7l4 4-2 2-7-7z"/></svg>'), pointer;
}

/* Typography */
.font-ancient {
    font-family: 'Uncial Antiqua', cursive;
}

.font-magic {
    font-family: 'MedievalSharp', cursive;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-magic);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.8s ease-out;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.spell-circle {
    text-align: center;
    position: relative;
}

.inner-circle {
    width: 100px;
    height: 100px;
    border: 3px solid var(--primary);
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    margin: 0 auto 20px;
}

.spell-text {
    font-family: 'MedievalSharp', cursive;
    font-size: 1.2rem;
    color: var(--primary);
    animation: glow 2s ease-in-out infinite;
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes glow {
    0%, 100% { 
        text-shadow: 0 0 5px var(--primary), 0 0 10px var(--primary); 
    }
    50% { 
        text-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary), 0 0 30px var(--primary); 
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

@keyframes magical-border {
    0% { 
        border-color: var(--primary); 
        box-shadow: 0 0 5px hsl(45, 65%, 55%, 0.5); 
    }
    50% { 
        border-color: var(--secondary); 
        box-shadow: 0 0 20px hsl(260, 25%, 35%, 0.8); 
    }
    100% { 
        border-color: var(--primary); 
        box-shadow: 0 0 5px hsl(45, 65%, 55%, 0.5); 
    }
}

@keyframes spell-cast {
    0% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.05) rotate(1deg); }
    50% { transform: scale(1.1) rotate(-1deg); }
    75% { transform: scale(1.05) rotate(1deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, hsl(210, 15%, 12%, 0.95), hsl(210, 12%, 8%, 0.9));
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--border);
    box-shadow: var(--shadow-magic);
    z-index: 1000;
    transition: var(--transition-magic);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: 'Uncial Antiqua', cursive;
    font-size: 1.8rem;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
    /*animation: glow 3s ease-in-out infinite;*/
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--foreground);
    text-decoration: none;
    font-family: 'MedievalSharp', cursive;
    font-size: 1.1rem;
    transition: var(--transition-magic);
    position: relative;
}

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

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

.nav-link:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    margin: 3px 0;
    transition: 0.3s;
}
/* Base nav styles are as you have */

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    margin: 4px 0;
    border-radius: 2px;
    transition: 0.4s;
}

/* Mobile styles */
@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: hsl(210, 15%, 10%);
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 2rem 0;
        display: none;
        border-bottom: 2px solid var(--border);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }

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

    .hamburger {
        display: flex;
    }
}

/* Sections */
.section {
    min-height: 100vh;
    padding: 6rem 2rem 4rem;
}

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

.section-title {
    font-family: 'Uncial Antiqua', cursive;
    font-size: 3rem;
    text-align: center;
    color: var(--primary);
    margin-bottom: 1rem;
    /*animation: glow 3s ease-in-out infinite;*/
}

.section-subtitle {
    font-family: 'MedievalSharp', cursive;
    font-size: 1.2rem;
    text-align: center;
    color: var(--card-foreground);
    margin-bottom: 3rem;
}

/* Home Section */
.home-section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image: url('images/hogwarts-gate.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(255, 0, 0, 0.3); /* Temporary background color for debugging */
}

.magical-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
       justify-content: center;
    align-items: center;
    text-align: center;
}

.floating-candles {
    position: absolute;
    width: 100%;
    height: 100%;
       justify-content: center;
    align-items: center;
    text-align: center;
}

.floating-candles::before,
.floating-candles::after {
    content: '🕯️';
    position: absolute;
    font-size: 2rem;
    animation: float 4s ease-in-out infinite;
       justify-content: center;
    align-items: center;
    text-align: center;
}

.floating-candles::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
       justify-content: center;
    align-items: center;
    text-align: center;
}

.floating-candles::after {
    top: 30%;
    right: 15%;
       justify-content: center;
    align-items: center;
    text-align: center;
    animation-delay: 2s;
}


.sparkles {
    position: absolute;
    width: 100%;
       justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
}

.sparkles::before,
.sparkles::after {
    content: '✨';
    position: absolute;
    animation: sparkle 3s ease-in-out infinite;
}

.sparkles::before {
    top: 40%;
    left: 20%;
    animation-delay: 1s;
}

.sparkles::after {
    top: 60%;
    right: 25%;
    animation-delay: 3s;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
}
.hogwarts-gate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap; /* for small screens */
}

.side-logo {
    width: 1000px; /* adjust size as needed */
    height: auto;
}
.sid-logo {
    width: 100px; /* adjust size as needed */
    height: auto;
}

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

.logo-texts .mai-title {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
}

.logo-texts {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
    color: #007bff; /* example theme color */
}

.subtitle,
.hosted-by {
    text-align: center;
    font-size: 10rem;
    font-size: 30px;
    color: #444;
    margin: 0.3rem 0;
}

.hosted-by{
    font-size: 5rem;
}
/* Optional: Responsive layout for mobile */
@media (max-width: 768px) {
    .hogwarts-gate {
        flex-direction: column;
    }

    .side-logo {
        width: 80px;
        margin: 0.5rem 0;
    }
        .sid-logo {
        width: 80px;
        margin: 0.5rem 0;
    }
}


.main-title {
    font-family: 'Uncial Antiqua', serif;
  font-size: 2.5rem;
  text-align: center;
  color: gold;
  font-family: 'Uncial Antiqua', cursive;
  text-shadow: 0 0 15px hsl(260, 25%, 35%);
  margin-bottom: 1rem;
    
}

.mai-title {
    font-family: 'MedievalSharp', cursive;
    font-size: 5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px var(--primary);
    
}

.subtitle {
    font-family: 'MedievalSharp', serif;
    font-size: 1.5rem;
    color: var(--foreground);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px var(--primary);
}

.hosted-by {
    font-size: 1.4rem;
    color: var(--foreground);
    margin-bottom: 3rem;
    line-height: 1.6;
    text-transform: none; /* Prevent uppercase transformation */
}
/* Animated Magic Card */
.animate-fade-glow {
    animation: fadeGlowIn 2.5s ease-out forwards;
    opacity: 0;
}

@keyframes fadeGlowIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
        box-shadow: none;
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 20px hsl(45, 75%, 65%, 0.3);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: var(--shadow-enchanted);
    }
}

/* Countdown Container */
.magical-card {
    background: var(--gradient-magic);
    padding: 2.5rem 2rem;
    border-radius: 1.2rem;
    box-shadow: var(--shadow-enchanted);
    color: var(--card-foreground);
    text-align: center;
    max-width: 700px;
    margin: 2rem auto;
    border: 1px solid var(--border);
    backdrop-filter: blur(6px);
}

/* Registration Alert Styling */
.registration-alert {
    margin-top: 1.5rem;
    font-family: 'Uncial Antiqua', cursive;
}

.registration-alert .last-date {
    font-size: 1.1rem;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
    margin: 0;
}

.registration-alert .date-highlight {
    font-weight: bold;
    color: var(--secondary-foreground);
    background: var(--gradient-gold);

    padding: 0.1rem 0.5rem;
    border-radius: 0.3rem;
}

/* Glowing Text Animation */
.animate-glow-text {
    animation: glowText 3s ease-in-out infinite alternate;
}

@keyframes glowText {
    0% {
        text-shadow: 0 0 5px hsl(45, 75%, 65%), 0 0 10px hsl(45, 65%, 55%);
    }
    100% {
        text-shadow: 0 0 20px hsl(45, 85%, 75%), 0 0 30px hsl(45, 75%, 65%);
    }
}

/* Countdown Timer */
.countdown-container {
    margin: 3rem 0;
}

.outline-text {
    /* Outline effect */
    -webkit-text-stroke: 1px var(--primary-foreground);
    text-stroke: 1px var(--primary-foreground);
    /* Fallback for browsers that don't support text-stroke */
    text-shadow:
        -1px -1px 0 var(--primary-foreground),
        1px -1px 0 var(--primary-foreground),
        -1px 1px 0 var(--primary-foreground),
        1px 1px 0 var(--primary-foreground);
}

.countdown-title {
    font-family: 'MedievalSharp', cursive;
    font-size: 1.3rem;
    color: var(--accent-foreground);
    margin-bottom: 1.5rem;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.time-unit {
    background: linear-gradient(135deg, var(--card), var(--muted));
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem 1rem;
    text-align: center;
    min-width: 100px;
    box-shadow: var(--shadow-magic);
    transition: var(--transition-magic);
}

.time-unit:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-enchanted);
    animation: magical-border 2s infinite;
}

.time-unit span {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
    font-family: 'Cinzel', serif;
}

.time-unit label {
    font-family: 'MedievalSharp', cursive;
    font-size: 0.9rem;
    color: var(--muted-foreground);
    margin-top: 0.5rem;
}

/* Registration Alert */
.registration-alert {

    border-radius: 15px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
    animation: magical-border 3s infinite;
}

.last-date {
    font-family: 'MedievalSharp', cursive;
    font-size: 1.2rem;
    color: var(--primary-foreground);
    margin: 0;
}

.date-highlight {
    font-weight: bold;
    font-size: 1.4rem;
    text-shadow: 0 0 10px var(--primary-foreground);
}

/* Quotes Carousel */
.quote-container {
    margin-top: 4rem;
    z-index: 2;
}

.quotes-carousel {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.quote {
    display: none;
    background: var(--gradient-parchment);
    color: hsl(210, 15%, 20%);
    border: 2px solid hsl(45, 30%, 60%);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 
        inset 0 0 20px hsl(45, 20%, 70%, 0.3),
        0 5px 15px hsl(45, 20%, 40%, 0.4);
    animation: fadeInUp 0.8s ease-out;
}

.quote.active {
    display: block;
}

.quote p {
    font-family: 'MedievalSharp', cursive;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-style: italic;
}

.quote span {
    font-family: 'Cinzel', serif;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Magical Cards */
.magical-card {
    background: var(--gradient-magic);
    border: 2px solid var(--border);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-magic);
    transition: var(--transition-magic);
    position: relative;
    overflow: hidden;
}

.magical-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--gradient-spell);
    opacity: 0;
    transition: var(--transition-magic);
    pointer-events: none;
}

.magical-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-enchanted);
    animation: magical-border 2s infinite;
}

.magical-card:hover::before {
    opacity: 1;
    animation: sparkle 1.5s ease-in-out infinite;
}

/* Spell Button */
.spell-button {
    background: var(--gradient-gold);
    border: 2px solid var(--primary);
    color: var(--primary-foreground);
    padding: 1rem 2rem;
    border-radius: 10px;
    font-family: 'MedievalSharp', cursive;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-spell);
    position: relative;
    overflow: hidden;
}

.spell-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    transition: var(--transition-spell);
    transform: translate(-50%, -50%);
}

.spell-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-enchanted);
    animation: spell-cast 0.6s ease-in-out;
}

.spell-button:hover::before {
    width: 300px;
    height: 300px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.about-card {
    background: var(--gradient-magic);
    border: 2px solid var(--border);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-magic);
    transition: var(--transition-magic);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-enchanted);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-header .icon {
    font-size: 2rem;
    margin-right: 1rem;
    animation: float 3s ease-in-out infinite;
}

.card-header h3 {

    font-size: 1.5rem;
    color: var(--primary);
}

.parchment-content {
    background: var(--gradient-parchment);
    color: hsl(210, 15%, 20%);
    border: 2px solid hsl(45, 30%, 60%);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 
        inset 0 0 20px hsl(45, 20%, 70%, 0.3),
        0 5px 15px hsl(45, 20%, 40%, 0.4);
}

.parchment-content p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.parchment-content p:last-child {
    margin-bottom: 0;
}

.cybertrix-highlight {
    background: var(--gradient-magic);
    border: 2px solid var(--border);
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-magic);
}

.highlight-title {
    font-family: 'Uncial Antiqua', cursive;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 2rem;
    /*animation: glow 3s ease-in-out infinite;*/
}

.highlight-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.purpose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: left;
}

.purpose-grid h4 {
    font-family: 'MedievalSharp', cursive;
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.purpose-grid ul {
    list-style: none;
    padding: 0;
}

.purpose-grid li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: var(--gradient-magic);
    border: 2px solid var(--border);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-magic);
    transition: var(--transition-magic);
}

.stat-card:hover {
    transform: translateY(-5px);
    animation: spell-cast 0.6s ease-in-out;
}

.stat-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.stat-number {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px var(--primary);
}

.stat-label {
    font-family: 'MedievalSharp', cursive;
    color: var(--muted-foreground);
    font-size: 0.9rem;
}

/* Bus Routes Section */
.info-card {
    background: var(--gradient-magic);
    border: 2px solid var(--border);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-magic);
}

.info-card p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.route-card {
    background: var(--gradient-magic);
    border: 2px solid var(--border);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-magic);
    transition: var(--transition-magic);
}

.route-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-enchanted);
    animation: magical-border 2s infinite;
}

.route-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.route-header h3 {
    font-family: 'Uncial Antiqua', cursive;
    font-size: 1.3rem;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
}

.fare {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary);
}

.route-points {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-family: 'MedievalSharp', cursive;
}

.arrow {
    color: var(--primary);
    font-size: 1.5rem;
    animation: float 2s ease-in-out infinite;
}

.route-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item {
    background: var(--gradient-parchment);
    color: hsl(210, 15%, 20%);
    border: 2px solid hsl(45, 30%, 60%);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    box-shadow: 
        inset 0 0 20px hsl(45, 20%, 70%, 0.3),
        0 5px 15px hsl(45, 20%, 40%, 0.4);
}

.info-item .icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    animation: float 3s ease-in-out infinite;
}

.info-item .value {
    font-weight: bold;
    margin-top: 0.25rem;
}

.stops h4 {
    font-family: 'MedievalSharp', cursive;
    color: var(--primary);
    margin-bottom: 1rem;
}

.stop-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.stop-tag {
    background: hsl(45, 65%, 55%, 0.1);
    color: var(--primary);
    border: 1px solid hsl(45, 65%, 55%, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-family: 'MedievalSharp', cursive;
    font-size: 0.9rem;
    transition: var(--transition-magic);
}

.stop-tag:hover {
    background: hsl(45, 65%, 55%, 0.2);
    transform: translateY(-2px);
}

.transportation-notes {
    background: var(--gradient-magic);
    border: 2px solid var(--border);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-magic);
}

.transportation-notes h3 {

    font-size: 1.8rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px var(--primary);
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.note-card {
        background: var(--gradient-parchment);
    color: hsl(210, 15%, 20%);
    border: 2px solid hsl(45, 30%, 60%);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 
        inset 0 0 20px hsl(45, 20%, 70%, 0.3),
        0 5px 15px hsl(45, 20%, 40%, 0.4);
}

.note-card h4 {
    font-family: 'MedievalSharp', cursive;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.note-card ul {
    list-style: none;
    padding: 0;
}

.note-card li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
.download-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700, #ffa500);
    color: #1a1a1a;
    font-family: 'MedievalSharp', cursive;
    font-size: 1.1rem;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(255, 165, 0, 0.4);
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.download-btn:hover {
    background: linear-gradient(135deg, #ffa500, #ffd700);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.6);
    transform: scale(1.05);
    text-shadow: 0 0 5px #fff;
}


/* Events Section Container Padding */

.events-section .container {
    padding: 0 1rem; /* default padding on mobile */
}

@media (min-width: 1024px) {
    .events-section .container {
        padding: 0 3rem; /* medium screens */
    }
}

@media (min-width: 1600px) {
    .events-section .container {
        padding: 0 5rem; /* large screens */
    }
}

/* Events Grid Responsive */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    justify-items: center;
}

/* Event Card Base */
.event-card {
    position: relative;
    height: 340px;
    width: 100%;
    max-width: 350px;
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: transform 0.8s;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.event-card:hover {
    transform: rotateY(180deg);
}

/* Front and Back Shared Styles */
.event-front,
.event-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    padding: 2rem;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.8s ease-in-out;
}

/* Front Side */
.event-front {
    background: var(--gradient-magic);
    border: 2px solid var(--border);
    box-shadow: var(--shadow-magic);
    text-align: center;
}

/* Back Side */
.event-back {
    background: var(--gradient-parchment);
    color: hsl(210, 15%, 20%);
    border: 2px solid hsl(45, 30%, 60%);
    box-shadow: 
        inset 0 0 20px hsl(45, 20%, 70%, 0.3),
        0 5px 15px hsl(45, 20%, 40%, 0.4);
    transform: rotateY(180deg);
    text-align: left;
    justify-content: flex-start;
    overflow-y: auto;
}

/* Flip Animation */
.event-card:hover .event-front {
    transform: rotateY(180deg);
}

.event-card:hover .event-back {
    transform: rotateY(0deg);
}

/* Icon with Shimmer */
.event-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: shimmer 2s infinite linear;
    color: gold;
}

/* Icon Animation Keyframes */
@keyframes shimmer {
    0% { text-shadow: 0 0 5px #ffd700; }
    50% { text-shadow: 0 0 20px #ff8c00; }
    100% { text-shadow: 0 0 5px #ffd700; }
}

/* Front Title & Desc */
.event-front h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px var(--primary);
}

.event-front p {
    margin-bottom: 1rem;
}

.hover-hint {
    font-size: 0.9rem;
    color: var(--muted-foreground);
    font-style: italic;
}

/* Back Title & Description */
.event-back h3 {
    font-family: 'Uncial Antiqua', cursive;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: hsl(45, 65%, 35%);
}

.event-description p {
    margin-bottom: 1rem;
    line-height: 1.5;
}

.event-description ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    list-style-type: disc;
}

.event-description li {
    margin-bottom: 0.4rem;
    font-family: 'MedievalSharp', cursive;
}
.registration-link {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-family: 'Uncial Antiqua', cursive;
    color: var(--background);
    background: var(--gradient-gold);
    border: 2px solid var(--primary);
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 0 15px var(--primary);
    transition: all 0.3s ease-in-out;
    text-align: center;
    margin: 2rem auto;
    animation: pulseGlow 2s infinite ease-in-out;
}

.registration-link:hover {
    background: var(--gradient-magic);
    color: var(--primary);
    box-shadow: 0 0 25px var(--primary);
    transform: scale(1.05);
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 10px var(--primary);
    }
    50% {
        box-shadow: 0 0 20px var(--primary);
    }
    100% {
        box-shadow: 0 0 10px var(--primary);
    }
}

.reg{
    text-align: center;
}

/* Schedule Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background: var(--gradient-magic);
    border: 4px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-gold);
    z-index: 2;
}

.timeline-marker .day {
    font-family: 'Uncial Antiqua', cursive;
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: bold;
    text-shadow: 0 0 10px var(--primary);
}

.timeline-content {
    background: var(--gradient-magic);
    border: 2px solid var(--border);
    border-radius: 15px;
    padding: 2rem;
    margin-left: calc(50% + 80px);
    box-shadow: var(--shadow-magic);
    width: calc(50% - 80px);
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: calc(50% + 80px);
}

.timeline-content h3 {
    font-family: 'Uncial Antiqua', cursive;
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px var(--primary);
}

.schedule-events {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.schedule-event {
    display: flex;
    align-items: center;
    background: var(--gradient-parchment);
    color: hsl(210, 15%, 20%);
    border: 2px solid hsl(45, 30%, 60%);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 
        inset 0 0 20px hsl(45, 20%, 70%, 0.3),
        0 5px 15px hsl(45, 20%, 40%, 0.4);
}

.schedule-event .time {
    font-family: 'Cinzel', serif;
    font-weight: bold;
    margin-right: 1rem;
    min-width: 80px;
    color: hsl(45, 65%, 35%);
}

.schedule-event .event {
    font-family: 'MedievalSharp', cursive;
}

.sorting-hat {
    text-align: center;
    margin-top: 0.5rem !important;
    padding-top: 0 !important;
}

.hat-container {
    display: inline-block;
    position: relative;
}

.hat {
    font-size: 4rem;
    animation: float 4s ease-in-out infinite;
}

.hat-speech {
    background: var(--gradient-parchment);
    color: hsl(210, 15%, 20%);
    border: 2px solid hsl(45, 30%, 60%);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 1rem;
    max-width: 400px;
    box-shadow: 
        inset 0 0 20px hsl(45, 20%, 70%, 0.3),
        0 5px 15px hsl(45, 20%, 40%, 0.4);
}

.hat-speech p {
    font-family: 'MedievalSharp', cursive;
    font-style: italic;
    line-height: 1.5;
}

/* Registration Section */
.registration-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.quill-animation {
    position: absolute;
    top: -30px;
    right: -30px;
    font-size: 3rem;
    animation: float 3s ease-in-out infinite;
    z-index: 2;
}

.magical-form {
    background: var(--gradient-magic);
    border: 2px solid var(--border);
    border-radius: 15px;
    padding: 3rem;
    box-shadow: var(--shadow-magic);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-family: 'MedievalSharp', cursive;
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: linear-gradient(135deg, var(--card), var(--muted));
    color: var(--foreground);
    font-family: 'MedievalSharp', cursive;
    font-size: 1rem;
    transition: var(--transition-magic);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
       background: var(--background);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: hsl(45, 65%, 55%, 0.7);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.registration-btn {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.2rem;
}

/* ID Card */
.id-card {
    background: var(--gradient-parchment);
    color: hsl(210, 15%, 20%);
    border: 3px solid hsl(45, 30%, 60%);
    border-radius: 15px;
    padding: 2rem;
    max-width: 400px;
    margin: 2rem auto;
    box-shadow: 
        inset 0 0 20px hsl(45, 20%, 70%, 0.3),
        0 10px 30px hsl(45, 20%, 40%, 0.6);
    position: relative;
}

.id-card::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 2px solid hsl(45, 65%, 45%);
    border-radius: 10px;
    pointer-events: none;
}

.id-card-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid hsl(45, 30%, 60%);
    padding-bottom: 1rem;
}

.id-card-header h3 {
    font-family: 'Uncial Antiqua', cursive;
    font-size: 1.5rem;
    color: hsl(45, 65%, 35%);
    margin-bottom: 0.5rem;
}

.id-card-header p {
    font-family: 'MedievalSharp', cursive;
    font-size: 0.9rem;
}

.id-card-content {
    margin-bottom: 2rem;
}

.info-row {
    display: flex;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.info-row .label {
    font-family: 'Cinzel', serif;
    font-weight: bold;
    min-width: 120px;
    color: hsl(45, 65%, 35%);
}

.info-row .value {
    font-family: 'MedievalSharp', cursive;
    flex: 1;
}

.id-card-footer {
    text-align: center;
    border-top: 2px solid hsl(45, 30%, 60%);
    padding-top: 1rem;
    font-family: 'MedievalSharp', cursive;
    font-size: 0.9rem;
}

.sorting-result .hat-speech {
  background: var(--gradient-parchment);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-gold);
  text-align: center;
  font-family: 'MedievalSharp', cursive;
  animation: fadeInUp 1s ease-in-out;
}


/* ========= Sorting Hat Quiz Style ========= */



.section-title {
  font-size: 2.8rem;
  text-align: center;
  color: gold;
     font-family: 'Almendra', serif;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 3rem;
  color: #ddd;
  font-style: italic;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.quiz-step {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 215, 0, 0.4);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease forwards;
}

.quiz-step.active {
  display: block;
}

.quiz-step p {
  font-size: 1.3rem;
  color: gold;
  margin-bottom: 1.5rem;
}

.quiz-step label {
  display: block;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
  color: #fff;
}

.quiz-step label:hover {
  background: rgba(255, 215, 0, 0.15);
}

input[type="radio"] {
  accent-color: gold;
  margin-right: 0.5rem;
}

.next-btn,
.spell-button {
  display: inline-block;
  background: linear-gradient(145deg, #ffcc00, #e6b800);
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  padding: 1rem 2rem;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 1rem;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.next-btn:hover,
.spell-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.sorting-result {
  background: var(--gradient-parchment, linear-gradient(135deg, #fff3cd, #fceabb));
  border: 2px solid gold;
  border-radius: 15px;
  padding: 2rem;
  margin-top: 2rem;
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
  animation: revealResult 1s ease-in-out;
}

.sorting-result p {
  font-family: 'MedievalSharp', cursive;
  font-size: 1.2rem;
  color: #4b381f;
  margin: 1rem 0;
}

.sorting-result strong {
  color: darkgoldenrod;
  text-shadow: 0 0 5px #f9e79f;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes revealResult {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.coordinator-card,
.institution-info {
    background: var(--gradient-magic);
    border: 2px solid var(--border);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-magic);
    transition: var(--transition-magic);
}

.coordinator-card:hover,
.institution-info:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-enchanted);
}

.coordinator-card h3,
.institution-info h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px var(--primary);
}

.coordinator-details,
.institution-details {
    font-family: 'MedievalSharp', cursive;
    line-height: 1.6;
}

.coordinator-details p,
.institution-details p {
    margin-bottom: 0.5rem;
}

.contact-form-container {
    background: var(--gradient-magic);
    border: 2px solid var(--border);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-magic);
    position: relative;
}

.owl-delivery {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 3rem;
    animation: float 4s ease-in-out infinite;
}

.contact-form-container h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 0 0 10px var(--primary);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: stretch;
}

.map-card {
  height: 100%;
  min-height: 600px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-magic);
  border: 2px solid var(--border);
}


/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--gradient-gold);
    border: 2px solid var(--primary);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-gold);
    transition: var(--transition-magic);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-enchanted);
    animation: spell-cast 0.6s ease-in-out;
}

.broomstick {
    font-size: 1.5rem;
    animation: float 2s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--gradient-magic);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        border-top: 2px solid var(--border);
    }

    .nav-menu.active {
        transform: translateY(0);
    }

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

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

    .countdown {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .time-unit {
        min-width: 80px;
        padding: 1rem 0.5rem;
    }

    .time-unit span {
        font-size: 2rem;
    }

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

    .timeline::before {
        left: 20px;
    }

    .timeline-marker {
        left: 20px;
        transform: none;
        width: 60px;
        height: 60px;
    }

    .timeline-content {
        margin-left: 100px;
        width: calc(100% - 100px);
    }

    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 100px;
        margin-right: 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 4rem 1rem 2rem;
    }

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

    .countdown {
        justify-content: center;
    }

    .time-unit {
        min-width: 70px;
        padding: 0.75rem 0.25rem;
    }

    .time-unit span {
        font-size: 1.5rem;
    }

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

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

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

    .route-card {
        padding: 1.5rem;
    }

    .route-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .route-points {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* --- Responsive Enhancements --- */

/* 1. Make images responsive */
img, .side-logo ,.sid-logo{
    max-width: 100%;
    height: auto;
    display: block;
}

/* 2. Ensure .container never overflows */
.container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* 3. Responsive tables (if any) */
table {
    width: 100%;
    overflow-x: auto;
    display: block;
}

/* 4. Prevent horizontal scroll on small screens */
body, html {
    overflow-x: hidden;
}

/* 5. Responsive font scaling for all headings */
h1 { font-size: clamp(1.8rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 3vw, 2rem); }
h4, h5, h6 { font-size: clamp(1rem, 2vw, 1.5rem); }

/* 6. Utility: Responsive grid gap for .about-grid, .routes-grid, .events-grid, .stats-grid */
.about-grid, .routes-grid, .events-grid, .stats-grid {
    gap: clamp(1rem, 3vw, 2rem);
}

/* 7. Responsive padding for .section */
.section {
    padding: clamp(2rem, 6vw, 6rem) clamp(0.5rem, 4vw, 2rem) clamp(1rem, 4vw, 4rem);
}

/* 8. Responsive .main-title and .mai-title */
.main-title, .mai-title {
    font-size: clamp(2rem, 6vw, 5rem);
}

/* 9. Responsive .subtitle and .hosted-by */
.subtitle, .hosted-by {
    font-size: clamp(1rem, 4vw, 2rem);
}

/* 10. Responsive .magical-card and .event-card padding */
.magical-card {
    padding: clamp(1rem, 4vw, 2.5rem) clamp(0.5rem, 3vw, 2rem);
}

/* 11. Responsive .timeline-content width */
.timeline-content {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* 12. Responsive .timeline-marker */
.timeline-marker {
    width: clamp(40px, 10vw, 100px);
    height: clamp(40px, 10vw, 100px);
}

/* 13. Responsive .registration-container and .contact-grid */
.registration-container, .contact-grid {
    max-width: 100%;
    padding: 0 1rem;
}

/* 14. Responsive .download-btn and .registration-link */
.download-btn, .registration-link {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    padding: clamp(0.5rem, 2vw, 1rem) clamp(1rem, 4vw, 2rem);
}

/* 15. Responsive .back-to-top button */
.back-to-top {
    width: clamp(40px, 10vw, 60px);
    height: clamp(40px, 10vw, 60px);
    bottom: clamp(1rem, 4vw, 2rem);
    right: clamp(1rem, 4vw, 2rem);
}

/* 16. Hide scrollbars on mobile for horizontal overflow */
@media (max-width: 480px) {
    html, body {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    ::-webkit-scrollbar {
        display: none;
    }
}

/* 17. Ensure .event-card is full width on mobile */


/* 18. Responsive .timeline for mobile */
@media (max-width: 768px) {
    .timeline {
        padding-left: 0;
        padding-right: 0;
    }
    .timeline-content {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: 1rem;
    }
    .timeline-marker {
        left: 10px;
        width: 40px;
        height: 40px;
    }
    .timeline::before {
        left: 20px;
        width: 2px;
    }
}

/* 19. Responsive .id-card */
@media (max-width: 480px) {
    .id-card {
        padding: 1rem;
        max-width: 100%;
    }
}

/* 20. Responsive .note-card and .info-card */
@media (max-width: 400px) {
    .info-card {
        padding: 0.5rem;
    }
}

/* Responsive: Make .side-logo.left-logo bigger on mobile */
@media (max-width: 768px) {
  .side-logo.left-logo {
    width: 140px !important;
    max-width: 90vw;
    height: auto;
    display: block;
    margin: 2rem auto;
  }
}
@media (max-width: 480px) {
  .side-logo.left-logo {
    width: 500px !important;
    max-width: 98vw;
    height: auto;
    display: block;
    margin: 1.5rem auto;
  }
}
/* Responsive Contact Section */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form-container,
    .coordinator-card,
    .institution-info {
        padding: 1.5rem;
    }

    .owl-delivery {
        top: -15px;
        right: -15px;
        font-size: 2.5rem;
    }

    .contact-form-container h3,
    .coordinator-card h3,
    .institution-info h3 {
        font-size: 1.2rem;
    }

    iframe {
        width: 100% !important;
        height: 220px !important;
    }
}

@media (max-width: 576px) {
    .contact-form-container,
    .coordinator-card,
    .institution-info {
        padding: 1rem;
    }

    .owl-delivery {
        font-size: 2rem;
    }

    .contact-form-container h3,
    .coordinator-card h3,
    .institution-info h3 {
        font-size: 1.1rem;
    }

    .coordinator-details p,
    .institution-details p {
        font-size: 0.95rem;
    }

    iframe {
        height: 200px !important;
    }
}

.schedules-section {
    margin-bottom: 0.5rem !important;
    padding-bottom: 0 !important;
}
.sid-logo.left-logo {
  height: 70px;
  width: auto;
  max-width: 100%;
}

.main-title {
  font-size: 4rem;


  
  margin: 0;
}

@media (max-width: 600px) {
  .sid-logo.left-logo {
    height: 40px;
  }
  .main-title {
    font-size: 1.5rem;
  }
}
