/* RESET / GLOBAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Poppins', sans-serif;
    background-color: #eee;
    color: #333;
    line-height: 1.6;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  /* Buttons */
  .btn {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    text-align: center;
    margin: 0.5rem 0;
  }
  
  .ales-btn-primary {
    background-color: #000000;
    color: #fff;
  }
  .ales-btn-primary:hover {
    background-color: #000000;
  }
  
  .ales-btn-secondary {
    background-color: #fff;
    color: #000000;
    border: 2px solid #000000;
  }
  .ales-btn-secondary:hover {
    background-color: #000000;
    color: #fff;
  }
  
 /* ============ HEADER / NAVBAR ============ */
.header {
  background-color: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 99;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  position: relative;
}

.logo img {
  max-height: 30px;
}

/* Navigation Links */
.nav-menu .nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  font-weight: bold;
  position: relative;
  padding: 0.5rem;
  color: #333;
  text-decoration: none;
}

.nav-links li a:hover {
  color: #000000;
}

/* Burger Menu Icon */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.burger span {
  width: 25px;
  height: 3px;
  background: #333;
  border-radius: 3px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .nav-menu {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    display: none;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-links {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    padding: 1rem 0;
  }
  
  .burger {
    display: flex;
  }
}
  
  
  
  /*******************************************************
  EVENTS SECTION (AUTOMATED)
  ********************************************************/
.ales-events-section {
  position: relative;
  /* Gradient background for style */
  background: #eee;
  padding: 4rem 1rem;
  margin-top: 3rem;
  color: #000000;
}

.events-header {
  text-align: center;
  margin-bottom: 2rem;
}

.events-title {
  font-size: 2.5rem;
  color: #222;
  margin-bottom: 0.5rem;
}

.events-subtitle {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0.5rem auto 1rem;
  color: #555;
}

.events-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center; 
}

.event-category {
  flex: 1 1 100%;
  margin-bottom: 3rem;
}

.event-category-title {
  font-size: 1.8rem;
  color: #000000;
  margin-bottom: 1rem;
  border-bottom: 2px solid #000000;
  display: inline-block;
  padding-bottom: 0.25rem;
}

.event-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  display: flex;
  overflow: hidden;
  margin-bottom: 2rem;
  max-width: 100%;
  align-items: stretch;
}

.event-slider {
  position: relative;
  width: 50%;
  min-width: 280px;
  overflow: hidden;
}

.event-slide {
  display: none; /* Hide slides by default */
  width: 100%;
  height: 100%;
}

.event-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.event-slide.active {
  display: block; /* Show the active slide */
}

.event-info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.event-info h4 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  color: #333;
}

.event-info p {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: #555;
}

/* Responsive for events */
@media (max-width: 992px) {
  .event-card {
    flex-direction: column;
    text-align: center;
  }
  .event-slider {
    width: 100%;
  }
  .event-info {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .events-title {
    font-size: 2rem;
  }
  .event-category-title {
    font-size: 1.5rem;
  }
}

/*******************************************************
  CHALLENGES / COMPETITION SECTION
********************************************************/
.ales-challenges-section {
  padding: 60px 0;
  background: #eee;
  text-align: center;
  color: #333;
}

.challenges-header {
  margin-bottom: 3rem;
}

.challenges-title {
  font-size: 2.2rem;
  color: #000000;
  margin-bottom: 1rem;
}

/* Countdown */
.challenge-countdown {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.cd-box {
  background-color: #fff;
  border-radius: 6px;
  padding: 20px 0;
  min-width: 60px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cd-box span {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: #000000;
}

.cd-box p {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Challenge cards */
.challenges-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Each challenge card with hover reveal */
.challenge-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  background-color: #fff;
}

.challenge-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.challenge-image img {
  width: 100%;
  height: auto;
  display: block;
}

.challenge-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(transparent, rgb(0, 0, 0));
  color: rgb(255, 255, 255);
  transform: translateY(70px);
  transition: var(--transition);
}

.challenge-card:hover .challenge-overlay {
  transform: translateY(0);
}

.challenge-overlay h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.challenge-overlay p {
  opacity: 0;
  transition: opacity 0.3s ease;}

.challenge-card:hover .challenge-overlay p {
  opacity: 1;
}


  
  /* ========== MINI SHOP SECTION ========== */
  .ales-mini-shop {
    /* Beautiful gradient or pattern background */
    background: #eee;
  }

  .ales-mini-shop h2 {
    font-size: 2.5rem;
    color: #000000;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .ales-mini-shop p {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 2rem;
  }

  /* ========== PRODUCT VIEW CONTAINER ========== */
  .ales-product-view {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem;
    background: url(../img/pro-bg.jpeg);
    border-radius: 3rem;
    max-width: 100%;
    margin: 0 auto;
    padding: 3rem 1rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  }

  /* ========== CAROUSEL SECTION FOR IMAGES ========== */
  .ales-product-img {
    position: relative;
    flex: 1 1 300px;
    max-width: 600px;
    width: 100%; /* Ensure full width on mobile */
    margin: auto;
    display: flex; /* Added for better centering */
    justify-content: center; /* Center horizontally */
  }

  .ales-carousel {
    position: relative;
    width: 100%;
    height: 400px; /* adjust as needed */
    perspective: 1000px; /* for 3D transforms */
    overflow: hidden;
    border-radius: 0.75rem;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../img/pro-bg1.jpeg);
    background-size: cover;
    display: flex; /* Added for better centering */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
  }

  .ales-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: flex; /* Added for better centering */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
  }

  .ales-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed to contain to prevent cropping */
    object-position: center;
    max-height: 90%; /* Allow some breathing room */
    max-width: 90%; /* Allow some breathing room */
  }

  /* The active slide is shown with rotation/fade effect */
  .ales-carousel-slide.active {
    z-index: 10;
    opacity: 1;
    transform: rotateY(0) scale(1);
  }

  /* Optional: If you want a slight tilt effect on the incoming/outgoing slides */
  .ales-carousel-slide.next {
    transform: rotateY(90deg) scale(0.9);
  }
  .ales-carousel-slide.prev {
    transform: rotateY(-90deg) scale(0.9);
  }

  /* ========== CAROUSEL ARROW BUTTONS (IMAGES) ========== */
  .ales-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(50, 50, 50, 0.7);
    color: #fff;
    border: none;
    font-size: 1.25rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    outline: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: background 0.3s;
  }

  .ales-carousel-btn:hover {
    background: rgb(23, 23, 23);
  }

  .ales-carousel-prev {
    left: 10px;
  }

  .ales-carousel-next {
    right: 10px;
  }

  /* ========== PRODUCT INFO STYLING ========== */
  .ales-product-info {
    flex: 1 1 300px;
    max-width: 400px;
    margin: auto;
    text-align: center;
  }

  /* ========== MEDIA QUERIES FOR RESPONSIVENESS ========== */
  @media (max-width: 768px) {
    .ales-product-view {
      padding: 2rem 1rem;
      border-radius: 1.5rem;
    }
    
    .ales-product-img {
      flex: 1 1 100%;
      max-width: 100%;
    }
    
    .ales-carousel {
      height: 350px;
    }
    
    .ales-carousel-btn {
      width: 35px;
      height: 35px;
      font-size: 1rem;
    }
  }

  /* For very small screens */
  @media (max-width: 480px) {
    .ales-product-view {
      padding: 1.5rem 0.75rem;
      border-radius: 1rem;
    }
    
    .ales-carousel {
      height: 320px; /* Increased height on mobile */
      margin: 0 auto; /* Center the carousel */
      width: 95%; /* Slightly less than full width to avoid overflow */
    }

    .ales-carousel-slide img {
      max-height: 95%; /* Larger image on mobile */
      max-width: 95%; /* Larger image on mobile */
    }
    
    .ales-carousel-btn {
      width: 30px;
      height: 30px;
  }
}

  .ales-product-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #000000;
    text-transform: uppercase;
  }

  .ales-product-info p {
    margin-bottom: 1rem;
    font-weight: 600;
    color: #444;
  }

  /* ========== ARROWS FOR SWITCHING PRODUCTS ========== */
  .ales-product-navigation {
    margin-top: 2rem;
  }

  .ales-btn-nav {
    background-color: #000000;
    color: #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    margin: 0 1rem;
    border: none;
    outline: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: background 0.3s;
  }

  .ales-btn-nav:hover {
    background-color: #1d1d1d;
  }

  /* ========== TOUR SECTION STYLES ========== */
.ales-tour-section {
  padding: 4rem 0;
  background: #f8f9fa;
}

.tour-header {
  text-align: center;
  margin-bottom: 3rem;
}

.tour-title {
  font-size: 2.5rem;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.tour-subtitle {
  font-size: 1.1rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.tour-dates {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-weight: 600;
  color: #000000;
}

.tour-progress {
  width: 200px;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
  position: relative;
}

.tour-progress::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  animation: progressFill 1.5s ease-out forwards;
}

@keyframes progressFill {
  from { width: 0 }
  to { width: 100% }
}

/* Roadmap Timeline */
.tour-roadmap {
  position: relative;
  padding: 3rem 0;
}

.roadmap-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #000000;
  transform: translateX(-50%);
}

.tour-phase {
  position: relative;
  margin: 4rem 0;
  display: flex;
  align-items: center;
  width: 100%;
}

.phase-marker {
  width: 20px;
  height: 20px;
  background: #fff;
  border: 4px solid #000000;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.phase-card {
  width: 45%;
  padding: 2rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.1);
  position: relative;
}

.phase-left .phase-card {
  margin-left: auto;
}

.phase-right .phase-card {
  margin-right: auto;
}

.phase-card h3 {
  font-size: 1.4rem;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.phase-date {
  font-size: 0.9rem;
  color: #000000;
  font-weight: 500;
}

.phase-benefits {
  list-style: none;
  margin: 1rem 0;
}

.phase-benefits li {
  margin: 0.8rem 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #444;
}

.phase-benefits i {
  color: #000000;
  min-width: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .tour-title {
    font-size: 2rem;
  }
  
  .roadmap-line {
    left: 20px;
  }
  
  .tour-phase {
    margin: 3rem 0;
  }
  
  .phase-card {
    width: 80%;
    margin-left: 40px !important;
  }
  
  .phase-marker {
    left: 20px;
  }
}

@media (max-width: 480px) {
  .phase-card {
    width: 100%;
    margin-left: 30px !important;
  }
  
  .phase-card h3 {
    font-size: 1.2rem;
  }
}

  
/* ============ FOOTER ============ */
.footer {
  background-color: #000;
  color: #fff;
  padding: 3rem 1rem;
  margin-top: 3rem;
}

.footer a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}
.footer a:hover {
  color: #000000;
}
.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: start;
}
/* Logo Styles */
.footer-logo {
  grid-column: 1 / -1;
}
.footer-logo img {
  max-width: 100px;
}
/* Column Titles and Lists */
.footer-column h4 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}
.footer-column ul {
  list-style: none;
  padding: 0;
}
.footer-column li {
  margin-bottom: 0.5rem;
}
/* WhatsApp Button Styles */
.whatsapp-btn {
  background-color: #25D366;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  margin-top: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
}
.whatsapp-btn i {
  margin-right: 0.5rem;
}
/* Social Icons Styles */
.social-icons {
  margin-top: 1rem;
}
.social-icons a {
  color: #fff;
  margin-right: 0.5rem;
  font-size: 1.2rem;
  display: inline-block;
}
/* Footer Bottom */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  border-top: 1px solid #333;
  padding-top: 1rem;
}
.footer-bottom p {
  margin-bottom: 0.5rem;
}

/* App Store Links */
.btn-app {
  background-color: transparent;
  border: 1px solid #fff;
  color: #fff;
  padding: 0.5rem 1rem;
  margin-right: 0.5rem;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: background-color 0.3s, border-color 0.3s;
}
.btn-app i {
  margin-right: 0.5rem;
}
.btn-app:hover {
  background-color: #000000;
  border-color: #000000;
}
.store-links img {
  width: 100px;
}
  
  /* MEDIA QUERIES (Responsive Adjustments) */
  @media (max-width: 992px) {
    .ales-nav {
      flex-wrap: wrap;
    }
    .ales-nav-cta {
      margin-top: 1rem;
    }
    .ales-event-cards {
      grid-template-columns: 1fr;
    }
    .ales-product-view {
      flex-direction: column;
    }
    .ales-product-img img {
      max-width: 80%;
    }
  }
  
  /* ===== ORDER MODAL ===== */
.ales-order-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.ales-modal-content {
  width: 90%;
  max-width: 420px;
  background: #fff;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  position: relative;
  animation: popIn 0.35s ease;
}

.ales-modal-close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 1.4rem;
  cursor: pointer;
}

.ales-input,
.ales-modal-content select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  margin: 0.5rem 0 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
}

@keyframes popIn {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
