* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #4eb387 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

body, html {
  height: 100vh;
  /* overflow: hidden; */
}


.header {
    background: linear-gradient(135deg, #2d5016 0%, #3e7b27 50%, #4a9d2a 100%);
    padding: 1rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%23ffffff" opacity="0.1"/><circle cx="80" cy="40" r="1.5" fill="%23ffffff" opacity="0.1"/><circle cx="40" cy="70" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="90" cy="80" r="2.5" fill="%23ffffff" opacity="0.1"/><circle cx="10" cy="60" r="1.5" fill="%23ffffff" opacity="0.1"/></svg>') repeat;
    pointer-events: none;
}

.logo-section {
    display: flex;
    align-items: center;
    z-index: 1;
}

.logo-icon img{
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #66bb6a, #003b6e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    box-shadow: 0 2px 10px rgba(67, 160, 71, 0.3);
}

.logo-icon img::before {
    /* content: '🌱'; */
    font-size: 20px;
}

.title {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    color: #e8f5e8;
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.9;
}

.auth-buttons {
    display: flex;
    gap: 12px;
    z-index: 1;
}

.btn-principal {
  margin: 10px 5px;
  padding: 0.75rem 1.5rem;
  background-color: #1e90ff;
  color: white;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 5px 2px 10px 0px rgba(0, 0, 0, 0.486);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    touch-action: manipulation;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.btn-login {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-signup {
    background: linear-gradient(45deg, #66bb6a, #43a047);
    color: #ffffff;
    border: 2px solid transparent;
}

.btn-signup:hover {
    background: linear-gradient(45deg, #43a047, #2e7d32);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(67, 160, 71, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #66bb6a, #43a047, #2e7d32, #43a047, #66bb6a);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

/* Marquee like slide */
.marquee-container {
      width: 100%;
      overflow: hidden;
      white-space: nowrap;
      background: #f0f0f093;
      border: 1px solid #ccc;
    }

    .marquee-text {
      display: inline-block;
      padding-left: 100%;
      animation: scroll-left 17s linear infinite;
      font-size: 18px;
    }

    @keyframes scroll-left {
      0% {
        transform: translateX(0%);
      }
      100% {
        transform: translateX(-100%);
      }
    }
    
/* Tutorial Button/YT Link */
.tutorial-link{
  display: flex;
  justify-content: center;
  margin-top: 1px;
  margin-bottom: 1px;
  margin-left: 4px;
  margin-right: 4px;
}

.btn-tutorial {
  display: block;
  background: linear-gradient(135deg, #ff0000, #8b0000, #000000);
  color: white;
  padding: 6px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 12.8px;
  font-weight: bold;
  margin: 10px 0;
  transition: background-color 0.3s;
}

.btn-tutorial-2 {
  display: block;
  background: linear-gradient(135deg, #04ff00, #026b00, #000000);
  color: white;
  padding: 6px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 12.8px;
  font-weight: bold;
  margin: 10px 0;
  transition: background-color 0.3s;
}

.btn-tutorial:hover {
  background-color: #cc0000;
}

@keyframes shimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

.live-indicator-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-dot {
  width: 10px;
  height: 10px;
  min-width: 10px;
  min-height: 10px;
  background-color: #00ff95;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.live-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(0, 255, 127, 0.4);
  animation: pulse 1.6s infinite ease-in-out;
}


@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 255, 127, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(0, 255, 127, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 255, 127, 0);
  }
}


/* Full Width Slideshow Styles */
.demo-content {
    padding: 0;
    color: white;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - 80px);
}

.slideshow-container {
    width: 90%;
    margin: 0;
    border-radius: 10px;
}

.slideshow-wrapper {
    position: relative;
    background: transparent;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: none;
    backdrop-filter: none;
    border: none;
}

.slideshow {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 400px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* No crop photos */
/* Photo 2: .slide:nth-child(3) */
.slideshow .slide:nth-child(3) img,
/* Photo 3: .slide:nth-child(4) */
.slideshow .slide:nth-child(4) img,
/* Photo 8: .slide:nth-child(9) */
.slideshow .slide:nth-child(9) img,
/* Photo 9: which is 10th child */
.slideshow .slide:nth-child(10) img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}



/* Navigation arrows */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 3px 3px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
    /* backdrop-filter: blur(10px); */
}

.nav-arrow:hover {
    background: rgba(0, 0, 0, 0.208);
    transform: translateY(-50%) scale(1.1);
}

.nav-arrow.prev {
    left: 20px;
}

.nav-arrow.next {
    right: 20px;
}

/* Slide indicators */
.slide-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* Mobile-First Responsive Design */
.header {
    padding: 0.75rem 1rem;
}

.title {
    font-size: 1rem;
}

.subtitle {
    font-size: 0.75rem;
}

.logo-icon {
    width: 35px;
    height: 35px;
    margin-right: 10px;
}

.logo-icon::before {
    font-size: 18px;
}

.btn {
    padding: 8px 16px;
    font-size: 0.8rem;
    min-width: 75px;
}

.auth-buttons {
    gap: 8px;
}

/* -----------------Dropdown Button------------------------------ */
.dropdown {
  position: relative;
  display: inline-block;
  z-index: 10;
}

.dropdown-content .btn {
  width: 100%;
  border-radius: 0;
  text-align: left;
  padding: 12px 16px;
  margin: 0;
}


/* Student Section Button */
.btn-student {
  background: linear-gradient(45deg, #4285F4, #34A853);
  color: white;
  border: none;
}

/* Adjust header spacing */
.header {
  padding: 1rem;
}

.auth-buttons {
  display: flex;
  gap: 10px;
}

.dropdown-content {
  display: none;
  position: absolute; /* changed from fixed */
  top: 100%; /* appears right below the button */
  right: 0;  /* aligns it to the right edge of parent */
  background-color: #fff;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 11;
  border-radius: 8px;
  overflow: hidden;
}

.dropdown-content.show {
  display: block;
}

.dropdown-content .btn {
  color: #333;
  background: transparent;
  border: none;
  border-radius: 0;
  text-align: left;
  padding: 12px 16px;
  margin: 0;
  width: 100%;
  box-shadow: none;
  transition: background-color 0.2s;
  font-weight: normal;
}

.dropdown-content .btn:hover {
  background-color: #f0f0f0;
  transform: none;
}

.dropdown-content .btn:not(:last-child) {
  border-bottom: 1px solid #eee;
}


/* Student Section Button */
.btn-student {
  background: linear-gradient(45deg, #4285F4, #34A853);
  color: white;
  border: none;
  transition: all 0.3s;
}

.btn-student:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Close dropdown when clicking elsewhere */
.dropdown-close-area {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: none;
}

.dropdown-close-area.active {
  display: block;
}
/* -------------------dropdown button end----------------------- */

.slideshow {
    height: 50vh;
    min-height: 300px;
}

/* Small mobile phones */
@media (max-width: 365px) {
    .header {
        padding: 0.5rem 0.75rem;
    }

    .title {
        font-size: 0.9rem;
    }

    .subtitle {
        font-size: 0.7rem;
    }

    .logo-icon {
        width: 30px;
        height: 30px;
        margin-right: 12px;
    }

    .logo-icon::before {
        font-size: 16px;
    }

    .btn {
        padding: 3px 30px;
        font-size: 0.69rem;
        min-width: 70px;
    }

    .auth-buttons {
        gap: 6px;
    }

    .btn-principal{
        font-size: 0.8rem; 
    }

    .nav-arrow {
        font-size: 1.2rem;
        padding: 10px 15px;
    }

    .nav-arrow.prev {
        left: 10px;
    }

    .nav-arrow.next {
        right: 10px;
    }

    .slideshow {
        height: 40vh;
        min-height: 250px;
    }
}


@media (min-width: 365px){
  .btn-principal{
    font-size: 0.8rem;
  }

}
/* Large mobile phones */
@media (min-width: 414px) {
    .header {
        padding: 1rem 1.25rem;
    }

    .title {
        font-size: 1.2rem;
    }

    .subtitle {
        font-size: 0.8rem;
    }

    .logo-icon {
        width: 38px;
        height: 38px;
        margin-right: 12px;
    }

    .logo-icon::before {
        font-size: 19px;
    }

    .btn {
        padding: 9px 18px;
        font-size: 0.85rem;
        min-width: 80px;
    }

    .auth-buttons {
        gap: 10px;
    }

    .btn-principal{
        font-size: 0.9rem;
    }

    .slideshow {
        height: 60vh;
        min-height: 350px;
    }
}

/* Tablets and larger screens */
@media (min-width: 768px) {
    .header {
        padding: 1rem 2rem;
    }

    .title {
        font-size: 1.6rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
    }

    .logo-icon::before {
        font-size: 20px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
        min-width: auto;
    }

    .auth-buttons {
        gap: 12px;
    }

    .slideshow {
        height: 70vh;
        min-height: 500px;
    }
    .btn-principal{
            font-size: 0.9rem;
        }
}


/* Large screens */
@media (min-width: 1200px) {
    .slideshow {
        height: 75vh;
        min-height: 600px;
    }

    .btn-principal{
        font-size: 1rem;
    }
}

/* Ripple effect animation */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}


/* Principal Registration Button */
.principal-login-container{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

/* Principal login button */
/* Modal tweaks for login form */
#principalLoginModal {
    color: black;
}

#principalLoginModal .modal-content {
  max-width: 400px;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.4s ease forwards;
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  position: relative;
  animation: slideDown 0.4s ease;
  overflow-y: auto;
  max-height: 88vh;
}

.modal-content h2{
  padding-bottom: 20px;
}

.modal-content h5{
  padding-top: 2px;
  padding-bottom: 20px;
  color: red;
}
.close-modal {
  position: absolute;
  right: 1rem;
  top: 0.8rem;
  font-size: 1.5rem;
  color: #333;
  cursor: pointer;
}

.modal-content form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-content input,
.modal-content select {
  padding: 0.6rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.modal-content button[type="submit"] {
  padding: 0.7rem;
  background-color: #28a745;
  color: white;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* Base style for submit button */
button.submit-btn {
  position: relative;
  overflow: hidden;
  background-color: #28a745; /* Green */
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  transition: transform 0.1s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

/* Press down effect */
button.submit-btn:active {
  transform: scale(0.97);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Ripple effect */
button.submit-btn::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transform: scale(0);
  width: 100px;
  height: 100px;
  opacity: 0;
  pointer-events: none;
  animation: none;
}

/* Animate the ripple on click */
button.submit-btn.clicked::after {
  animation: rippleEffect 0.6s ease-out;
}

/* Ripple keyframes */
@keyframes rippleEffect {
  0% {
    transform: scale(0);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.3;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

/* Animations */
@keyframes slideDown {
  from {
    transform: translateY(-40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}


/* Student Signup Modal Specific Styles------------------------- */
#studentSignupModal .modal-content {
  max-width: 500px;
}

#studentSignupModal label {
  display: block;
  /* margin-top: 15px; */
  /* font-weight: 500; */
}

#studentSignupModal input,
#studentSignupModal select {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
}

#studentSignupModal select {
  height: 40px;
  margin-bottom: 10px;
}

/* District Head Login Styles */
.district-login-section{
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

#districtLoginBtn{
  background-color: rgb(254, 69, 69);
}

/* -------------------------footer------------------------------ */
.site-footer {
  position: sticky;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #1a1a1a;
  color: #fff;
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  z-index: 998;
  box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.2);
}

.site-footer .footer-content a {
  color: #00e676;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
}

#contact-no{
  background-color: rgba(94, 247, 83, 0.237);
  border-radius: 8px;
  padding: 2px 5px;
}

@media (max-width: 600px) {
  .site-footer {
    font-size: 0.8rem;
    padding: 0.8rem;
  }
}