/* Calendar Section Styles */
#calendar {
  background: linear-gradient(135deg, #fffbe6 0%, #fff3cd 100%);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(232, 176, 4, 0.08);
  margin: 3rem 0;
  padding: 2rem 0 2.5rem 0;
}

#calendar h2 {
  color: #ae8304;
  font-weight: 700;
  margin-bottom: 2rem;
}

#calendar iframe,
.calendar-iframe {
  width: 100% !important;
  min-width: 0;
  max-width: 100%;
  height: 60vw;
  max-height: 600px;
  min-height: 320px;
  border-radius: 12px;
  border: 2px solid #e8b004;
  box-shadow: 0 2px 16px rgba(232, 176, 4, 0.10);
  background: #fff;
  display: block;
}

.calendar-iframe {
  border: 2px solid #e8b004;
}

@media (max-width: 900px) {
  #calendar iframe,
  .calendar-iframe {
    height: 400px !important;
    max-height: 400px;
  }
  .feature-card .card-img-top {
    height: 120px;
  }
  .home-hero {
    min-height: 15vh;
    padding: 1.5rem 0;
  }
  #myCarousel .carousel-item img {
    height: 180px;
  }
}

/* Home page specific styles */

/* Home page hero section */
.home-hero {
  background: linear-gradient(135deg, #e8b004 0%, #ae8304 100%);
  position: relative;
  overflow: hidden;
  min-height: clamp(120px, 25vh, 400px);
  padding: clamp(1rem, 5vw, 4rem) 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  word-break: break-word;
}

.home-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../assets/logo.png') no-repeat center center;
  background-size: clamp(60px, 15vw, 180px) clamp(60px, 15vw, 180px);
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.home-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(232, 176, 4, 0.85) 0%, rgba(174, 131, 4, 0.85) 100%);
  z-index: 1;
}

.home-hero .container {
  position: relative;
  z-index: 2;
}

.home-hero h1 {
  font-size: clamp(1.2rem, 4vw, 3rem);
  font-weight: 800;
}

.home-hero h2 {
  font-size: clamp(1rem, 2.5vw, 2rem);
  font-weight: 600;
}

.home-hero .btn {
  background: white;
  color: #e8b004;
  border: none;
  font-weight: 700;
  padding: 12px 30px;
  border-radius: 25px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.home-hero .btn:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  color: #e8b004;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* Welcome section */
.welcome-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #fff3cd 100%);
  position: relative;
}

.welcome-section h2 {
  color: #e8b004;
  font-weight: 700;
  position: relative;
  margin-bottom: 2rem;
}

.welcome-section h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(135deg, #e8b004 0%, #ae8304 100%);
  border-radius: 2px;
}

/* Features section */
.features-section h2 {
  color: #e8b004;
  font-weight: 700;
  position: relative;
  margin-bottom: 3rem;
}

.features-section h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(135deg, #e8b004 0%, #ae8304 100%);
  border-radius: 2px;
}

/* Feature cards */
.feature-card {
  border-radius: 20px;
  border: 3px solid #ffeeba;
  background: linear-gradient(145deg, #ffffff 0%, #fffbf0 100%);
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(232,176,4,0.1) 50%, transparent 60%);
  transform: rotate(-45deg);
  transition: all 0.6s ease;
  opacity: 0;
  z-index: 1;
}

.feature-card:hover::before {
  opacity: 1;
  transform: rotate(-45deg) translate(50%, 50%);
}

.feature-card:hover {
  border-color: #e8b004;
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(232, 176, 4, 0.25);
}

.card-img-wrapper {
  position: relative;
  overflow: hidden;
}

.feature-card .card-img-top {
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.feature-card:hover .card-img-top {
  transform: scale(1.1);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(232, 176, 4, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

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

.card-overlay i {
  color: white;
  font-size: 3rem;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.feature-card:hover .card-overlay i {
  transform: scale(1);
}

.feature-card .card-body {
  padding: 2rem 1.5rem;
  position: relative;
  z-index: 2;
}

.feature-card .card-title {
  color: #e8b004;
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.feature-card .card-text {
  color: #6c757d;
  line-height: 1.7;
  font-size: 1rem;
}

/* Stats section */
.stats-section {
  background: linear-gradient(135deg, #e8b004 0%, #ae8304 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
}

.stats-section .container {
  position: relative;
  z-index: 2;
}

.stat-card {
  padding: 2rem 1rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-card i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #fff3cd;
  animation: pulse 2s infinite;
}

.stat-card h3 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.stat-card p {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  opacity: 0.9;
}

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

/* Sponsors section */
.sponsors-section h2 {
  color: #e8b004;
  font-weight: 700;
  position: relative;
  margin-bottom: 3rem;
}

.sponsors-section h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(135deg, #e8b004 0%, #ae8304 100%);
  border-radius: 2px;
}

/* Carousel specific styling */
.sponsors-carousel {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

#myCarousel .carousel-item img {
  height: 400px;
  width: 100%;
  object-fit: contain;
  background-color: #f8f9fa;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(253, 126, 20, 0.8);
  background-size: 100%, 100%;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
  background-color: rgba(232, 93, 4, 0.9);
  transform: scale(1.1);
}

.carousel-indicators button {
  background-color: #e8b004;
  border-radius: 50%;
  width: 12px;
  height: 12px;
  margin: 0 5px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.feature-card {
  animation: fadeInUp 0.8s ease-out;
}

.feature-card:nth-child(1) {
  animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
  animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
  animation-delay: 0.3s;
}

.stat-card {
  animation: fadeInUp 0.8s ease-out;
}

.stat-card:nth-child(1) {
  animation-delay: 0.1s;
}

.stat-card:nth-child(2) {
  animation-delay: 0.2s;
}

.stat-card:nth-child(3) {
  animation-delay: 0.3s;
}

.stat-card:nth-child(4) {
  animation-delay: 0.4s;
}

.sponsors-carousel {
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

/* Responsive adjustments for home page */
@media (max-width: 1200px) {
  .home-hero {
    min-height: clamp(100px, 18vh, 250px);
    padding: clamp(1rem, 3vw, 2rem) 0;
  }
}

@media (max-width: 900px) {
  #calendar iframe,
  .calendar-iframe {
    height: 400px !important;
    max-height: 400px;
  }
  .feature-card .card-img-top {
    height: 120px;
  }
  .home-hero {
    min-height: clamp(80px, 15vh, 180px);
    padding: clamp(0.7rem, 2vw, 1.5rem) 0;
  }
  #myCarousel .carousel-item img {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .home-hero {
    min-height: clamp(60px, 12vh, 120px);
    padding: clamp(0.5rem, 1vw, 1rem) 0;
  }
  .home-hero h1 {
    font-size: clamp(1rem, 5vw, 1.5rem);
  }
  .home-hero h2 {
    font-size: clamp(0.8rem, 3vw, 1.1rem);
  }
  #myCarousel .carousel-item img {
    height: 140px;
  }
  .feature-card .card-img-top {
    height: 100px;
  }
  .feature-card .card-body {
    padding: 1rem 0.5rem;
  }
  .stat-card h3 {
    font-size: 1.5rem;
  }
  .stat-card i {
    font-size: 2rem;
  }
  .features-section h2,
  .welcome-section h2,
  .sponsors-section h2 {
    font-size: 1.3rem;
  }
}

@media (max-width: 576px) {
  .container,
  .container-fluid {
    padding-left: 10px;
    padding-right: 10px;
  }
  .home-hero {
    min-height: 180px;
    padding: 1.2rem 0 1.2rem 0;
  }
  .home-hero h1 {
    font-size: clamp(1.1rem, 6vw, 1.5rem);
  }
  .home-hero h2 {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
  }
}

@media (max-width: 400px) {
  .home-hero {
    min-height: 140px;
    padding: 0.7rem 0;
  }
  .home-hero h1 {
    font-size: 1rem;
  }
  .home-hero h2 {
    font-size: 0.7rem;
  }
}
