@import 'variables.css';
@import 'base.css';

/* ==============================================
   HEADER & NAVIGATION
   ============================================== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  background: linear-gradient(135deg, #0a3d0a 0%, #1a6b1a 100%);
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
  height: 80px;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid #ffd700;
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  height: 55px;
  width: 55px;
  border-radius: 50%;
  border: 2px solid #ffd700;
  padding: 3px;
  background: white;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05) rotate(-5deg);
}

.desktop-title {
  color: #ffd700;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

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

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  transition: background 0.3s ease;
  z-index: 1001;
}

.hamburger:hover {
  background: rgba(255, 215, 0, 0.1);
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  margin: 4px 0;
  background: #ffd700;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Navigation Menu - Desktop */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 5px;
  list-style: none;
}

.nav-menu a {
  color: #e8f5e9;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #ffd700;
  transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 60%;
}

.nav-menu a:hover {
  background: rgba(255, 215, 0, 0.15);
  color: #ffd700;
}

.nav-menu a.active {
  color: #ffd700;
  background: rgba(255, 215, 0, 0.1);
}

/* Apply Now button special styling */
.nav-menu a:last-child {
  background: linear-gradient(135deg, #ffd700, #d4af37);
  color: #0a3d0a;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 25px;
  box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.nav-menu a:last-child:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.5);
  background: linear-gradient(135deg, #ffe44d, #d4af37);
}

.nav-menu a:last-child::after {
  display: none;
}

/* ==============================================
   HERO / CAROUSEL SECTION - FIXED
   ============================================== */
.hero {
  position: relative;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: #0a3d0a;
  height: auto; /* This is the key - auto height based on image */
  min-height: 200px;
}

.carousel {
  display: flex;
  width: 100%;
  height: auto;
  transition: transform 0.6s ease-in-out;
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  width: 100%;
  height: auto;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Text overlay */
.carousel-slide .slide-content {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  padding: 14px 35px;
  border-radius: 10px;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  letter-spacing: 3px;
  backdrop-filter: blur(6px);
  border: 2px solid rgba(255, 215, 0, 0.3);
  z-index: 2;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Carousel Navigation Buttons */
.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: 2px solid rgba(255, 215, 0, 0.5);
  padding: 16px 22px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 1.8rem;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(4px);
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}

.carousel-button:hover {
  background: rgba(255, 215, 0, 0.8);
  color: #000;
  border-color: #ffd700;
  transform: translateY(-50%) scale(1.1);
}

.carousel-button.prev {
  left: 20px;
}

.carousel-button.next {
  right: 20px;
}

/* Carousel indicators (dots) */
.carousel-indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.carousel-indicators .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicators .dot.active {
  background: #ffd700;
  border-color: #ffd700;
  transform: scale(1.2);
}

.carousel-indicators .dot:hover {
  background: rgba(255, 215, 0, 0.7);
  transform: scale(1.1);
}

/* ==============================================
   RESPONSIVE - FULL WIDTH WITH AUTO HEIGHT
   ============================================== */

@media (max-width: 768px) {
  .carousel-slide .slide-content {
    font-size: 1.2rem;
    padding: 10px 20px;
    bottom: 20px;
    white-space: normal;
    max-width: 85%;
    letter-spacing: 1px;
  }

  .carousel-button {
    padding: 10px 14px;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border: none;
  }

  .carousel-button.prev {
    left: 10px;
  }

  .carousel-button.next {
    right: 10px;
  }

  .carousel-indicators .dot {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .carousel-slide .slide-content {
    font-size: 0.8rem;
    padding: 6px 14px;
    bottom: 15px;
    max-width: 90%;
    letter-spacing: 0.5px;
    border-width: 1px;
    backdrop-filter: blur(3px);
  }

  .carousel-button {
    padding: 6px 10px;
    font-size: 0.9rem;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.6);
  }

  .carousel-indicators {
    gap: 8px;
    bottom: 10px;
  }

  .carousel-indicators .dot {
    width: 8px;
    height: 8px;
  }
}

/* ==============================================
   CONTAINER & CONTENT SECTIONS
   ============================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.container section {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.container section h2 {
  color: #0a3d0a;
  font-size: 2rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid #ffd700;
  display: inline-block;
}

.container section p {
  color: #555;
  margin-bottom: 15px;
  font-size: 1.05rem;
}

.container section img {
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ==============================================
   EVENTS SECTION
   ============================================== */
.events-section h2 {
  color: #0a3d0a;
  font-size: 2rem;
  margin-bottom: 25px;
  padding-bottom: 12px;
  border-bottom: 3px solid #ffd700;
  display: inline-block;
}

.event {
  background: #fff;
  border-radius: 12px;
  padding: 25px 30px;
  margin-bottom: 20px;
  border-left: 5px solid #ffd700;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.event:hover {
  transform: translateX(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.event h3 {
  color: #0a3d0a;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.event p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.event p i {
  color: #ffd700;
  width: 20px;
  margin-right: 8px;
}

/* ==============================================
   FOOTER
   ============================================== */
footer {
  background: linear-gradient(135deg, #0a3d0a 0%, #1a6b1a 100%);
  color: #e8f5e9;
  text-align: center;
  padding: 30px 20px;
  border-top: 3px solid #ffd700;
}

footer p {
  font-size: 0.95rem;
  opacity: 0.9;
  letter-spacing: 0.5px;
}

/* ==============================================
   BACK TO TOP BUTTON
   ============================================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #ffd700, #d4af37);
  color: #0a3d0a;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(255, 215, 0, 0.5);
}

/* ==============================================
   RESPONSIVE DESIGN
   ============================================== */
@media (max-width: 992px) {
  .desktop-title {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  header {
    padding: 0 15px;
    height: 65px;
  }

  .desktop-title {
    display: none;
  }

  .mobile-title {
    display: block;
  }

  .logo {
    height: 45px;
    width: 45px;
  }

  .hamburger {
    display: flex;
  }

  /* Navigation Menu - Mobile */
  .nav-menu {
    position: absolute;
    top: 65px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0a3d0a 0%, #1a6b1a 100%);
    flex-direction: column;
    padding: 20px;
    gap: 5px;
    transform: scaleY(0);
    transform-origin: top center;
    transition: transform 0.3s ease;
    border-bottom: 3px solid #ffd700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }

  .nav-menu.open {
    transform: scaleY(1);
  }

  .nav-menu a {
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 1rem;
    border-radius: 8px;
  }

  .nav-menu a::after {
    display: none;
  }

  .nav-menu a:hover {
    background: rgba(255, 215, 0, 0.15);
  }

  .nav-menu a:last-child {
    margin-top: 5px;
    border-radius: 25px;
  }

  .carousel-slide p {
    font-size: 1.2rem;
    padding: 8px 20px;
    bottom: 60px;
    white-space: normal;
    max-width: 90%;
  }

  .carousel-button {
    padding: 10px 14px;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
  }

  .carousel-button.prev {
    left: 10px;
  }

  .carousel-button.next {
    right: 10px;
  }

  .carousel-indicators .dot {
    width: 10px;
    height: 10px;
  }

  .container {
    padding: 20px 15px;
  }

  .container section {
    padding: 25px 20px;
  }

  .container section h2 {
    font-size: 1.5rem;
  }

  .container section p {
    font-size: 0.95rem;
  }

  .events-section h2 {
    font-size: 1.5rem;
  }

  .event {
    padding: 18px 20px;
  }

  .event h3 {
    font-size: 1rem;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  header {
    height: 60px;
  }

  .logo {
    height: 38px;
    width: 38px;
  }

  .mobile-title {
    font-size: 1.2rem;
  }

  .nav-menu {
    top: 60px;
  }

  .carousel-slide p {
    font-size: 1rem;
    padding: 6px 14px;
    bottom: 50px;
  }

  .carousel-button {
    padding: 8px 10px;
    font-size: 1rem;
    width: 32px;
    height: 32px;
  }

  .container section {
    padding: 18px 15px;
  }

  .container section h2 {
    font-size: 1.2rem;
  }

  .event {
    padding: 15px;
  }

  footer {
    padding: 20px 15px;
  }

  footer p {
    font-size: 0.8rem;
  }
}
