body {
    font-family: sans-serif;
    box-sizing: border-box;
    /* margin: 0; */
    color: #000000;
    /* background: url(../frontend/assets/hackwithvizag.jpg); */
    /* background-image: url(../frontend/assets/vizag.jpg); */
    background-color: #ede0d4;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment:fixed;
    background-blend-mode: darken;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: auto;
    }


    header {
  position: sticky;
  top: 0;
  background: linear-gradient(90deg, #582f0e, #936639, #d5bdaf);
  /* padding: 15px 20px; */
  display: flex;
  align-items: center;
  /* width: 100%; */
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Logo + Title */
.logo-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.logo-section .head-img img {
  margin: auto;
  width: 150px;
  height: auto;
  display: block;
}

.logo-section span {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  letter-spacing: 1px;
}

.main-head {
  display: flex;
  align-items: center;
  gap: 420px;
}

/* Menu toggle button */
.menu-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
}

/* Nav links */
#navbar {
  display: flex;
  margin-left: auto;
  align-items: center;
  justify-content: center;
}

nav ul {
  display: flex;
  gap: 25px;
  list-style: none;
}

nav ul li a {
  display: inline-block;
  text-decoration: none;
  color: #e0e0e0;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.2s ease;
}

nav ul li a:hover {
  color: #4fc3f7;
  transform: scale(1.1);
  text-shadow: 0 4px 20px rgba(255, 255, 255, 1);
}

/* Register button */
.register-button {
  padding: 8px 18px;
  background: #333d29;
  color: #ffffff;
  font-weight: 600;
  border-radius: 6px;
  transition: 0.3s;
}

.register-button:hover {
  background: #656d4a;
  color: white;
  transform: scale(1.1);
}








    @keyframes slideUpFadeIn {

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

    }

.logo-title {
  display: flex; /* Helps align the letters */
  font-size: 9rem;  /* Use your original font size */
  font-weight: 700;
  margin: auto;

  /* width: 80%; */
  color: rgb(170, 0, 0);
  letter-spacing: 1px;
}

.logo-title span {
  display: inline-block; /* Required for transforms to work */
  opacity: 0;           /* Start fully invisible */
  
  /* Apply the animation defined above */
  animation-name: slideUpFadeIn;
  animation-duration: 0.3s;    /* How long each letter's animation takes */
  animation-fill-mode: forwards; /* IMPORTANT: Makes the style stay at the "to" state (visible) when done */
}

.logo-title span:nth-child(1) { /* N */
  animation-delay: 0.35s;
}
.logo-title span:nth-child(2) { /* S */
  animation-delay: 0.45s;
}
.logo-title span:nth-child(3) { /* R */
  animation-delay: 0.55s;
}
.logo-title span:nth-child(4) { /* I */
  animation-delay: 0.65s;
}
.logo-title span:nth-child(5) { /* T */
  animation-delay: 0.75s;
}



    /* Hero Section */
.hero {
       /* background-image: url(../frontend/assets/nsrit\ main\ block.webp); */
       /* background-color: linear-gradient=rgba(0, 0, 0,1); */
      
        /* background-image: url(../frontend/assets/vizag.jpg); */
background-color: #ede0d4;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
/* background-attachment: fixed; */  /* Remove or comment out this line */
background-blend-mode: darken;
min-height: 100vh;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* margin: 80px 20px 48px; added side margin for balance */
  text-align: center;
}

  .college-logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: auto;
    font-size: 22px;
    color: #000;
  }



.college-name{
  /* font-family:Arial, Helvetica, sans-serif; */
  font: 700;
  font-size: 150px;
  padding: 12px 10px;
}


.heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.h-1 {
  font-size: 64px;
  font-weight: bolder;
  font-family: serif;
  margin: 12px 0;
  color: #000000;
}

.h-3 {
  margin-top: 0;
  font-size: 24px;
  color: #597a89; /* brighter blue for readability */
}

.p-1 {
  font-size: 28px;
  margin-top: 10px;
  color: rgba(0, 0, 0, 0.95);
  font-weight: bold;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}


#countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 18px;
  color: #000;
  gap: 1rem;
  border: 1px solid #003459;
  background-color: #d4a276;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 520px;
  max-width: 100%; /* prevents overflow */
  margin: auto;
  margin-bottom: 50px;
}

.timer {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap; /* allows wrapping only if screen is too small */
  justify-content: center;
}

.countdown-item {
  background: #ffedd8 ;
  padding: 1rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(12, 0, 40, 0.1);
  min-width: 80px;
  text-align: center;
  transition: all 0.3s ease;
}

.countdown-item:hover {
  scale: 1.05;
  box-shadow: 0 0 25px rgba(40, 60, 120, 0.5);
}

.countdown-item span {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #583101;
}

.countdown-item p {
  font-size: 0.9rem;
  margin: 0;
  color: #001427;
}


    .register-btn{
        width: 168px;
        text-align: center;
        font-size: 24px;
        color: #ffffff;
        font-style:normal;
        margin: 4px 4px;
        padding: 18px 20px;
        border: 2px solid black;
        border-radius: 8px;
        background-color: #264653;
        text-decoration: none;
    }

    .register-btn:hover{
        scale: 1.05;
        background-color: #656d4a ;
        /* box-shadow: 0 0 18px rgba(0,123,255,0.5); */
    }


    .about {
  text-align: center;
  max-width: 1200px;
  margin: 120px auto 44px auto;
  border: 1px solid #eee;
  padding: 18px 26px;
  border-radius: 14px;
  font-size: 18px;
  background-color: #FFFFFF;
  color: #212529;
  /* box-shadow: 2px 2px 8px #000000 ; */
  box-shadow: 3px 3px 5px #000000,
    -3px -3px 5px #000000;
  transition: transform 0.3s ease;
}

.h-2 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 22px;
}

.about p {
  line-height: 1.8;
}

.about:hover {
  transform: scale(1.02);
  cursor: pointer;
}

.details {
  color: #000;
  max-width: 960px;
  margin: 12px auto 56px auto;
  padding: 20px;
  border: 3px solid rgba(49, 104, 123, 0.407);
  border-radius: 12px;
  font-size: 24px;
  text-align: center;
  background: #ffffff;
}

.details h2 {
  margin-bottom: 20px;
}

.event-details {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* ✅ allows wrapping on smaller screens */
}

.detail-card {
  width: 200px;
  color: #000;
  border: 2px solid #000;
  border-radius: 12px;
  padding: 12px;
  font-size: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-card img {
  display: block;
  margin: 0 auto 10px auto;
  height: 60px;
  width: auto;
}

.detail-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

 .schedule {
  background-image: linear-gradient(45deg, #000428, #004e92);
  box-shadow: 0 10px 30px rgba(0, 78, 146, 0.2);
  max-width: 900px; /* ✅ responsive */
  margin: auto;
  display: flex;
  flex-direction: column;
  text-align: center;
  border-radius: 10px;
  padding: 40px 20px;
  font-family: sans-serif;
}

#schedule h2 {
  color: #000;
  margin-bottom: 30px;
  font-size: 2.5rem;
}

.schedule-container {
  background: #ffffff;
  color: #000;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
}

/* --- Timeline Layout --- */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 800px;
  margin: 0 auto;
}

/* Central vertical line */
.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: #9370db;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

/* Event containers */
.timeline-item {
  padding: 0 90px;
  margin-bottom: 30px;
  position: relative;
  width: 50%;
}

/* Left items */
.timeline-item.left {
  left: -29.3%;
  text-align: right;
}

/* Right items */
.timeline-item.right {
  left: 50%;
  text-align: left;
}

/* Timeline dots */
.timeline-item::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: #1e1e1e;
  border: 4px solid #9370db;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  z-index: 1;
}

.timeline-item.left::after {
  right: -10px;
}

.timeline-item.right::after {
  left: -10px;
}

/* Event card */
.timeline-content {
  padding: 20px;
  background-color: #121212;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Connector arrows */
.timeline-content::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  z-index: 1;
  border: 10px solid transparent;
}

.timeline-item.left .timeline-content::before {
  right: -20px;
  border-left-color: #121212;
}

.timeline-item.right .timeline-content::before {
  left: -20px;
  border-right-color: #121212;
}

/* Typography */
.timeline-content h3 {
  font-size: 1.4rem;
  color: #9370db;
  margin-top: 0;
}

.timeline-content .time {
  font-weight: 600;
  color: #00bfff;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.timeline-content p {
  color: #cccccc;
  font-size: 1rem;
  line-height: 1.5;
}


.prizes {
  max-width: 1080px; /* responsive */
  border: 3px solid rgba(49, 104, 123, 0.4);
  margin: 120px auto 56px;
  border-radius: 12px;
  color: #000;
  text-align: center;
  padding: 20px;
  background: #f9f9f9;
}

.prizes h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.prize-details {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* ✅ responsive */
}

.prize-card {
  width: 250px;
  border-radius: 12px;
  font-size: 16px;
  padding: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
  border: 3px solid #000;
  text-align: center;
}

.prize-card img {
  height: 60px;
  width: auto;
  margin-bottom: 10px;
}

.prize-card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* 🏆 Medal Colors */
.prize-card.first {
  background: linear-gradient(135deg, #ffed86, #f1e59f);
}

.prize-card.second {
  background: linear-gradient(135deg, #d2d0d0, #ffffff);
}

.prize-card.third {
  background: linear-gradient(135deg, #cd7f32, #e8a46c);
}

/* Typography inside cards */
.prize-card p {
  margin: 0;
  font-size: 1.1rem;
  font-weight: bold;
  color: #111;
}

.consolation-prizes {
  margin-bottom: 20px;
}


    .themes-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 100px auto 50px auto;
    width: 100%;
    max-width: 1100px;
    padding: 20px;
    background-color: #e3f6ff;
    color: #000;
    border: 1.5px solid #fff;
    border-radius: 8px;
}

.themes h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 40px;
}

.theme-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 40px;
    justify-content: center;
}

.theme-card {
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 200px;
    height: 210px;
    overflow: hidden;
    border: 2px solid #000;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    padding: 15px;
    transition: transform 0.3s ease;
    background: #fff;
}

.theme-card img.theme-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    padding-bottom: 5px;
}

.theme-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(220, 237, 255, 0.95);
    color: #1a2a4c;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.theme-card:hover .theme-overlay {
    opacity: 1;
}

.theme-card:hover {
    transform: scale(1.05);
}


/* ================================================================ */
/* Registration Form */
/* ================================================================ */

.registration-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 700px;
  margin: 0 auto;
  margin-top: 60px;
  background-color: #f2cc8f;
  padding: 12px 1px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 1);
}

#registration-form {
  width: 60%;
  margin  : 15px 20px;
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 1);
}

.form-section {
  display: none;
}

.form-section.active {
  display: block;
}

.registration-section h2 {
  color: #333;
  border-bottom: 2px solid #007ea7;
  padding-bottom: 5px;
  margin-bottom: 20px;
}

.registration-section label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.registration-section input, .registration-section select{
  width: calc(100% - 20px);
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}

#button-container {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

#button-container button {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  color: #ffffff;
  border-radius: 6px;
  border: none;
  background-color: #007bff;
}

#button-container button:hover {
  cursor: pointer;
  background-color: #0056b3;
}


.response-message{
    margin-top: 20px;
    text-align: center;
    font-size: 16px;
    min-height: 25px;
}

#register-button {
  display: flex;
  margin: auto;
  margin-top: 10px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  color: #ffffff;
  border-radius: 10px;
  border: none;
  background-color: #007bff;
}

#register-button:hover {
  cursor: pointer;
  background-color: #0056b3;
}


#qr-code-image {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto   ;
  width: 75%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.6);
  margin-bottom: 18px;
}



    .faq-container {
        background-color: #bc8a5f;
        color: #30343f;
        padding: 3rem, 2rem;
        box-sizing: border-box;
        display: flex;
        justify-content: center;
        align-items: center;
        max-width: 800px;
        display: flex;
        margin: auto;
        margin-top: 80px;
        border-radius: 18px;
        padding-bottom: 20px;
    }

    .faq-container h1{
        font-size: 3rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
        background: linear-gradient(90deg, #780116, #c9184a, #780116, #c9184a);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .faq-container  .subtitle {
        font-size: 1.1rem;
        color: #30343f;
        margin-bottom: 2rem;
    }

    .faq-section {
        width: 85%;
        max-width: 700px;
        text-align: center;
    }

    .faq-list {
        background-color: #f3d5b5;
        border-radius: 15px;
        padding: 20px 40px;
        border: 1px solid #603808;
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    }

    .faq-intro {
        color: #78290f;
        font-size: 1.3rem;
        font-weight: 600;
        margin-bottom: 25px;
        text-align: left;
    }

    .faq-item {
        border-bottom: 1px solid #78290f;
        padding: 15px 0;
    }

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

    .faq-question {
        background: none;
        border: none;
        color: #38040e;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 10px 0;
        font-size: 1rem;
        font-weight: 600;
        /* font-family: 'Poppins', sans-serif; */
        text-align: left;
        transition: color 0.3s ease;
    }

    .faq-question:hover {
      cursor: pointer;
        color: #8d0801;
    }

    .faq-toggle {
        font-size: 1.5rem;
        transition: transform 0.3s ease-in-out;
        color: #8d0801;
    }

    .faq-answer {
        color: #780116;
        font-size: 1.1rem;
        line-height: 1.6;
        text-align: left;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
        padding: 0 10px;
    }

    .faq-item.active .faq-answer {
        max-height: 300px; 
        padding: 15px 10px;
    }

    .faq-item.active .faq-toggle {
        transform: rotate(180deg);
    }

    .contact-section {
        display: flex;
        flex-direction: column;
    width: 100%;
    max-width: 480px;
    margin: 50px auto;
    padding: 15px;
    background: #936639;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff;
    font-size: 2rem;
}

.contact-email {
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff;
    font-size: 16px;
}

.contact-email a {
    color: #0077cc;
    text-decoration: none;
}

.contact-email a:hover {
    text-decoration: underline;
}

.contact-cards {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    text-align: center;
}

.contact-card {
    /* flex: 1 1 200px; allows two cards per row on medium screens */
    background: #fff;
    padding: 12px 15px;
    border-radius: 8px;
    border: 2px solid #000;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
    box-sizing: border-box;
    min-width: 200px;
}

.contact-card h3 {
    margin-bottom: 10px;
    color: #222;
    font-size: 1.1rem;
}

.contact-card p {
    margin: 5px 0;
    font-size: 0.95rem;
    color: #000;
}

.contact-card a {
    color: #0077cc;
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

    .maps {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    background-color: #005f73;
    border-radius: 10px;
    text-align: center;
    padding: 20px;
    margin: 20px auto;
    width: 100%;
    max-width: 640px;
    box-sizing: border-box;
}

.maps h1 {
    margin-bottom: 15px;
    font-size: 2rem;
}

/* Responsive iframe wrapper */
#map {
    position: relative;
    width: 100%;
    padding-bottom: 62.5%; /* 400px / 640px = 0.625 → keeps aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
}

#map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid #000;
}

    #back-to-top-btn {
    /* Initially hidden */
    opacity: 0;
    visibility: hidden;

    /* Positioning */
    position: fixed; /* Stays in the same place even when you scroll */
    bottom: 20px;
    right: 30px;
    z-index: 99; /* Sits on top of other content */
    
    /* Styling */
    font-size: 24px;
    font-weight: bold;
    border: none;
    outline: none;
    background-color: #0f0f0f; /* A nice blue color */
    color: white;
    cursor: pointer;
    padding: 8px 16px; /* Adjust padding to make it look right */
    border-radius: 50%; /* Makes it a circle */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    
    /* Smooth transition for fading in/out */
    transition: opacity 0.4s, visibility 0.4s;
    }

    #back-to-top-btn.show {
    /* Class to make it visible */
    opacity: 1;
    visibility: visible;
    }

    #back-to-top-btn:hover {
    background-color: #0056b3; /* A darker blue on hover */
    }

    footer {
        text-align: center;
        background-color: #ccc;
        margin-top: 30px;
        padding: 18px;
        color:black;
        height: 40px;
        width: auto;
    }


    


  /* --- Styles for Larger Mobile Phones (e.g., iPhone 12/13/14) --- */
  /* These styles will apply ONLY to screens between 371px and 425px wide */
  @media (min-width: 371px) and (max-width: 425px) {
  body {
      padding: 10px; /* Reduce padding on the body for more space */
  }

    header {
  width: 420px; 
  position: sticky;
  top: 0;
  background: linear-gradient(90deg, #582f0e, #936639, #d5bdaf);
  /* padding: 15px 20px; */
  padding: 15px;
  display: flex;
  width: 100%;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
 }

  .registration-section {
      width: 95%; /* Make the main container use the full screen width */
      margin-top: 20px; /* Reduce the top margin */
      padding: 10px 0;
      box-shadow: none; /* Remove outer shadow for a cleaner mobile look */
  }

  #registration-form {
      width: auto; /* Make the form itself almost full-width */
      padding: 1rem; /* Reduce padding inside the form */
      margin: 10px auto;
  }

  .registration-section h1 {
      font-size: 1.8rem; /* Slightly smaller main title */
  }

  .registration-section h2 {
      font-size: 1.4rem; /* Slightly smaller section titles */
  }

  /* Adjust button padding for smaller screens */
  #button-container button {
      padding: 12px 18px;
  }

    /* Make the register button and QR code slightly bigger for better usability */
  #register-button {
      padding: 14px 24px;
  }

  .form-section, .form-section.active {
    width: 90%;
    margin: auto;  
  }

  #registration-conformation {
    width: auto;
  }

  #qr-code-image {
      width: 85%; /* QR code can be a bit larger to make it easier to scan */
  }
}




/* ========================= */
/* ✅ Responsive Styles */
/* ========================= */
@media (max-width: 426px) {

   header {
  width: 426px; 
  position: sticky;
  top: 0;
  background: linear-gradient(90deg, #582f0e, #936639, #d5bdaf);
  /* padding: 15px 20px; */
  padding: 15px;
  display: flex;
  width: 100%;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
 }


   .logo-title {
  display: flex; /* Helps align the letters */
  font-size: 7rem;  /* Use your original font size */
  font-weight: 700;
  text-align: center;
  margin: auto;

  color: rgb(170, 0, 0);
  letter-spacing: 1px;
  }

  .main-head {
    justify-content: space-between;
    gap: 0;
  }

  .logo-section span {
    font-size: 1.1rem; /* smaller text */
  }

  .logo-section .head-img img {
    width: 120px; /* shrink logo */
  }

      .register-btn{
        width: 168px;
        text-align: center;
        font-size: 24px;
        color: #ffffff;
        font-style:normal;
        margin: 4px 4px;
        padding: 18px 20px;
        border: 2px solid black;
        border-radius: 8px;
        background-color: #264653;
        text-decoration: none;
        margin-bottom: 22px;
    }

    .register-btn:hover{
        scale: 1.05;
        background-color: #656d4a ;
        /* box-shadow: 0 0 18px rgba(0,123,255,0.5); */
    }


  #countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 18px;
  color: #000;
  gap: 1rem;
  border: 1px solid #003459;
  background-color: #d4a276;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  padding: 12px;
  width: 300px;
  max-width: 100%; /* prevents overflow */
  margin: auto;
  margin-bottom: 50px;
}

.timer {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap; /* allows wrapping only if screen is too small */
  justify-content: center;
}

.countdown-item {
  background: #ffedd8 ;
  padding: 1rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(12, 0, 40, 0.1);
  min-width: 80px;
  text-align: center;
  transition: all 0.3s ease;
}

.countdown-item:hover {
  scale: 1.05;
  box-shadow: 0 0 25px rgba(40, 60, 120, 0.5);
}

.countdown-item span {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #583101;
}

.countdown-item p {
  font-size: 0.9rem;
  margin: 0;
  color: #001427;
}

  /* Show menu button */
  .menu-toggle {
    display: block;
  }

  /* Hide nav by default */
  #navbar {
    display: none; /* hidden initially */
    position: absolute;
    top: 70px;
    right: 0;
    background: #582f0e;
    width: 100%;
    max-width: 280px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 20px;
  }

  /* Vertical menu items */
  #navbar ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  #navbar ul li {
    width: 100%;
  }

  #navbar ul li a {
    font-size: 1rem;
    width: 100%;
    display: block;
    padding: 10px 0;
    color: #fff;
  }

  /* Show when active */
  #navbar.active {
    display: flex;
  }

  .register-button {
    display: block;
    width: 80%;
    text-align: center;
    background: #333d29;
    padding: 10px;
    border-radius: 6px;
    margin-top: 5px;
  }

  .register-button:hover {
    background: #656d4a;
    transform: none; /* remove zoom effect on small screens */
  }

  .themes-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 100px auto 50px auto;
    width: 100%;
    max-width: 300px;
    padding: 20px;
    background-color: #e3f6ff;
    color: #000;
    border: 1.5px solid #fff;
    border-radius: 8px;
}

.themes h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 40px;
}

.theme-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 40px;
    justify-content: center;
}

.theme-card {
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 200px;
    height: 210px;
    overflow: hidden;
    border: 2px solid #000;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    padding: 15px;
    transition: transform 0.3s ease;
    background: #fff;
}

.theme-card img.theme-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    padding-bottom: 5px;
}

.theme-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(220, 237, 255, 0.95);
    color: #1a2a4c;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.theme-card:hover .theme-overlay {
    opacity: 1;
}

.theme-card:hover {
    transform: scale(1.05);
}

/* FAQ */

    .faq-container {
        background-color: #bc8a5f;
        color: #30343f;
        padding: 3rem, 2rem;
        box-sizing: border-box;
        display: flex;
        justify-content: center;
        align-items: center;
        max-width: 800px;
        display: flex;
        margin: auto;
        margin-top: 80px;
        border-radius: 18px;
        padding-bottom: 20px;
    }

    .faq-container h1{
        font-size: 2.2rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
        background: linear-gradient(90deg, #780116, #c9184a, #780116, #c9184a);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .faq-container  .subtitle {
        font-size: 1.1rem;
        color: #30343f;
        margin-bottom: 2rem;
    }

    .faq-section {
        width: 100%;
        max-width:300px;
        padding: 10px  30px;
        text-align: center;
    }

    .faq-list {
        background-color: #f3d5b5;
        border-radius: 15px;
        padding: 10px 40px;
        border: 1px solid #603808;
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    }

    .faq-intro {
        color: #78290f;
        font-size: 1.3rem;
        font-weight: 600;
        margin-bottom: 25px;
        text-align: left;
    }

    .faq-item {
        border-bottom: 1px solid #78290f;
        padding: 15px 0;
    }

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

    .faq-question {
        background: none;
        border: none;
        color: #38040e;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 10px 0;
        font-size: 1rem;
        font-weight: 600;
        /* font-family: 'Poppins', sans-serif; */
        text-align: left;
        transition: color 0.3s ease;
    }

    .faq-question:hover {
        color: #8d0801;
    }

    .faq-toggle {
        font-size: 1.5rem;
        transition: transform 0.3s ease-in-out;
        color: #8d0801;
    }

    .faq-answer {
        color: #780116;
        font-size: 1.1rem;
        line-height: 1.6;
        text-align: left;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
        padding: 0 10px;
    }

    .faq-item.active .faq-answer {
        max-height: 300px; 
        padding: 15px 10px;
    }

    .faq-item.active .faq-toggle {
        transform: rotate(180deg);
    }


}

/* ========================= */
/* ✅ Extra small devices (<=360px) */
/* ========================= */
@media (max-width: 360px) {

  header {
  width: 426px; 
  position: sticky;
  top: 0;
  background: linear-gradient(90deg, #582f0e, #936639, #d5bdaf);
  /* padding: 15px 20px; */
  padding: 15px;
  display: flex;
  width: 100%;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
 }

  .logo-title {
  display: flex; /* Helps align the letters */
  font-size: 5rem;  /* Use your original font size */
  font-weight: 700;
  margin: auto;

  color: rgb(170, 0, 0);
  letter-spacing: 1px;
  }

  .logo-section span {
    font-size: 0.95rem; /* even smaller title */
  }

  .logo-section .head-img img {
    width: 100px; /* smaller logo */
  }

  .menu-toggle {
    font-size: 1.5rem; /* slightly smaller menu icon */
  }

  #navbar {
    max-width: 240px; /* narrower menu */
    padding: 10px 15px;
  }

  .register-button {
    font-size: 0.9rem;
    padding: 8px;
  }

  #navbar ul li a {
    font-size: 0.9rem;
    padding: 8px 0;
  }


  body {
    display: flex;
    flex-direction: column;
    justify-content: center; 
    margin: auto;
    align-items: center;
      /* padding: 5px;  */
  }

  .logo-title {

  display: flex; /* Helps align the letters */
  font-size: 4rem; 
  font-weight: 600;
  /* font-size: 240px; */
  margin: auto;
  text-align: center;

  /* width: 80%; */
  color: rgb(170, 0, 0);
  letter-spacing: 1px;
}
.p-1 {
  display: flex;
  margin: auto;
  width: 300px;
  text-align: center;
  font-size: 18px;
  margin-top: 10px;
  color: rgba(0, 0, 0, 0.95);
  font-weight: bold;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}



  .registration-section {
      width: 95%; 
      margin-top: 15px;
      padding: 5px 0;
      box-shadow: none; 
  }

  #registration-form {
      width: 80%; /* Use more of the screen width */
      padding: 1rem; /* Reduce padding slightly more */
      margin: 10px auto;
  }

  .registration-section h1 {
      font-size: 1.6rem; /* Smaller title to prevent wrapping */
      text-align: center;
  }

  .form-section, .form-section.active {
    width: 78%;
  }

  .registration-section h2 {
      font-size: 1.3rem; /* Smaller section titles */
  }

  #button-container button {
      padding: 10px 14px; /* Adjust button padding */
      font-size: 15px;
  }

  #register-button {
      padding: 12px 20px;
  }

  .themes-section {
    display: flex;
    justify-content: center;
    align-items: center;
    /* margin: 100px auto 50px auto; */
    margin: auto;
    width: 100%;
    max-width: 270px;
    padding: 20px;
    background-color: #e3f6ff;
    color: #000;
    border: 1.5px solid #fff;
    border-radius: 8px;
}

.themes h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 40px;
}

.theme-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 40px;
    justify-content: center;
}

.theme-card {
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 200px;
    height: 210px;
    overflow: hidden;
    border: 2px solid #000;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    padding: 15px;
    transition: transform 0.3s ease;
    background: #fff;
}

.theme-card img.theme-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    padding-bottom: 5px;
}

.theme-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(220, 237, 255, 0.95);
    color: #1a2a4c;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.theme-card:hover .theme-overlay {
    opacity: 1;
}

.theme-card:hover {
    transform: scale(1.05);
}

.prizes {
  max-width: 300px; /* responsive */
  border: 3px solid rgba(49, 104, 123, 0.4);
  margin: 120px auto 56px;
  border-radius: 12px;
  color: #000;
  text-align: center;
  padding: 20px;
  background: #f9f9f9;
}

.prizes h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.prize-details {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* ✅ responsive */
}

.prize-card {
  width: 250px;
  border-radius: 12px;
  font-size: 16px;
  padding: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
  border: 3px solid #000;
  text-align: center;
}

.prize-card img {
  height: 60px;
  width: auto;
  margin-bottom: 10px;
}

.prize-card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* 🏆 Medal Colors */
.prize-card.first {
  background: linear-gradient(135deg, #ffd700, #ffea70);
}

.prize-card.second {
  background: linear-gradient(135deg, #c0c0c0, #e0e0e0);
}

.prize-card.third {
  background: linear-gradient(135deg, #cd7f32, #e8a46c);
}

/* Typography inside cards */
.prize-card p {
  margin: 0;
  font-size: 1.1rem;
  font-weight: bold;
  color: #111;
}

  #qr-code-image {
      display: flex;
      margin-left: auto;
      margin-right: auto;
      justify-content: center;
      align-items: center;
      width: 90%; /* Make QR code larger for easy scanning */
  }
}

