/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2E7D32 0%, #4CAF50 50%, #81C784 100%);
  padding: 120px 0 80px 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(248, 187, 217, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  z-index: 1;
}

.hero-content {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  max-width: 600px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease 0.2s;
  animation-fill-mode: both;
}

.hero-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: fadeInUp 0.8s ease 0.4s;
  animation-fill-mode: both;
}

.hero-date, .hero-location {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-date i, .hero-location i {
  color: #F8BBD9;
  font-size: 1.3rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: fadeInRight 0.8s ease 0.6s;
  animation-fill-mode: both;
}

.hero-logo {
  width: clamp(200px, 30vw, 350px);
  height: auto;
  z-index: 2;
  position: relative;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

.hero-accent-shape {
  position: absolute;
  width: 120%;
  height: 120%;
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.05), rgba(248, 187, 217, 0.1));
  border-radius: 50% 30% 50% 30%;
  z-index: 1;
  animation: float 6s ease-in-out infinite;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: bounce 2s infinite;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.scroll-indicator:hover {
  color: var(--secondary);
  transform: translateX(-50%) translateY(-5px);
}

.hero-date i, .hero-location i {
  font-size: 1.2rem;
  color: var(--accent-orange);
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  animation: fadeInRight 1s ease 0.3s;
  animation-fill-mode: both;
}

.hero-logo {
  width: clamp(200px, 25vw, 350px);
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
  position: relative;
  z-index: 3;
}

.hero-accent-shape {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: linear-gradient(45deg, var(--accent), var(--accent-orange));
  border-radius: 50%;
  opacity: 0.1;
  z-index: 1;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.3s ease;
  animation: bounce 2s infinite;
  z-index: 3;
}

.scroll-indicator:hover {
  color: var(--accent-orange);
  transform: translateX(-50%) scale(1.2);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero buttons styles - modified to match new layout */
.hero-buttons {
  display: flex;
  gap: 1.5rem;
  animation: fadeInUp 1s ease 0.7s;
  animation-fill-mode: both;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.info-card {
  background-color: #fff;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  /* Change from fixed height to min-height */
  min-height: 350px;
  height: auto;
  transition: all 0.4s ease;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  opacity: 0.8;
  transition: all 0.4s ease;
}

.info-card:hover {
  transform: translateY(-15px) rotateX(5deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.info-card:hover::before {
  opacity: 0.9;
}

.info-card.expanded {
  /* Adjust height when expanded to fit content */
  height: auto;
  min-height: 750px;
}

.info-card.expanded .info-description {
  max-height: 1300px; /* Increased from 500px to ensure all text is visible */
  opacity: 1;
  margin-top: 15px;
}

.info-card.expanded .info-read-more .fa-chevron-down {
  transform: rotate(180deg);
}

.info-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  z-index: 1;
}

.info-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  transform: translateZ(50px);
}

.info-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent);
}

.info-description {
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s ease;
  opacity: 0;
  transform: translateZ(30px);
}

.info-description p {
  margin-bottom: 1rem;
  line-height: 1.7;
  font-size: 1.1rem;
}

.info-read-more {
  background: transparent;
  border: 2px solid white;
  color: white;
  cursor: pointer;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  border-radius: 50px;
  width: fit-content;
  transform: translateZ(40px);
}

.info-read-more:hover {
  background-color: white;
  color: var(--primary);
}

/* Feature Cards Section */
.feature-section {
  padding: 7rem 0;
  background-color: #f8f9fa;
  overflow: hidden;
}

.feature-cards {
  display: flex;
  flex-wrap: nowrap; /* Changed from wrap to nowrap to keep items in single row */
  justify-content: center;
  gap: 2.5rem;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 2rem;
  overflow-x: auto; /* Allow horizontal scrolling if needed */
  -ms-overflow-style: none; /* Hide scrollbar in IE and Edge */
  scrollbar-width: none; /* Hide scrollbar in Firefox */
}

/* Hide scrollbar in Chrome, Safari and Opera */
.feature-cards::-webkit-scrollbar {
  display: none;
}

.feature-card {
  width: 100%;
  min-width: 250px; /* Ensure minimum width for readability */
  max-width: 280px;
  flex-shrink: 0; /* Prevent shrinking of cards */
  background-color: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.feature-img-container {
  width: 100%;
  height: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.feature-img-container::before {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(45deg);
  top: -60%;
  left: -100%;
  transition: all 0.6s ease;
}

.feature-card:hover .feature-img-container::before {
  top: -40%;
  left: -20%;
}

.feature-img {
  max-width: 100px;
  height: auto;
  filter: brightness(0) invert(1);
  transition: all 0.4s ease;
  transform: scale(0.9);
  z-index: 2;
}

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

.feature-content {
  padding: 2rem;
  text-align: center;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 1rem;
}

.feature-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--primary);
}

.feature-description {
  color: #6c757d;
  font-size: 1rem;
}

/* Explore Section - Different Design */
.explore-section {
  padding: 7rem 0;
  background-color: #f1f1f1;
  overflow: hidden;
  position: relative;
}

.explore-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--accent), var(--primary), var(--accent));
}

.explore-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.explore-card {
  flex: 1 1 500px;
  max-width: 560px;
  border-radius: 15px;
  overflow: hidden;
  background-color: white;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
  position: relative;
}

.explore-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.explore-image {
  height: 320px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.explore-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  color: white;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  transition: all 0.4s ease;
}

.explore-card:hover .explore-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5));
  padding-bottom: 3rem;
}

.explore-overlay h3 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.explore-overlay p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.explore-text {
  padding: 2rem;
  color: var(--text-dark);
}

.explore-text p {
  font-size: 1.1rem;
  line-height: 1.7;
}

.explore-btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  background-color: var(--primary);
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  transform: translateY(30px);
  opacity: 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.explore-card:hover .explore-btn {
  transform: translateY(0);
  opacity: 1;
}

.explore-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.explore-btn-coming-soon {
  background-color: var(--secondary);
  cursor: not-allowed;
}

.explore-btn-coming-soon:hover {
  background-color: var(--secondary);
  transform: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}



/* Media Queries */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-text {
    order: 2;
  }
  
  .hero-visual {
    order: 1;
  }
  
  .hero-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
  }
  
  .hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
  }
  
  .hero-logo {
    width: clamp(180px, 20vw, 280px);
  }
  
  .hero-details {
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 100px 0 60px 0;
  }
  
  .hero-content {
    padding: 0 1.5rem;
    gap: 2.5rem;
  }
  
  .hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
  }
  
  .hero-subtitle {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  }
  
  .hero-date, .hero-location {
    font-size: 1rem;
  }
  
  .hero-date i, .hero-location i {
    font-size: 1.1rem;
  }
  
  .hero-logo {
    width: clamp(160px, 18vw, 240px);
  }
  
  .feature-cards {
    gap: 2rem;
  }
  
  .info-cards {
    grid-template-columns: 1fr;
  }
}
  

   .explore-card {
    flex: 1 1 100%;
  }
  
  .explore-overlay h3 {
    font-size: 1.8rem;
  }

@media (max-width: 576px) {
  .hero {
    padding: 80px 0 50px 0;
  }
  
  .hero-content {
    padding: 0 1rem;
    gap: 2rem;
  }
  
  .hero-text {
    gap: 1.5rem;
  }
  
  .hero-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: clamp(0.9rem, 2vw, 1rem);
  }
  
  .hero-details {
    gap: 0.8rem;
  }
  
  .hero-date, .hero-location {
    font-size: 0.95rem;
  }
  
  .hero-logo {
    width: clamp(140px, 25vw, 200px);
  }
  
  .scroll-indicator {
    bottom: 1.5rem;
    font-size: 1.3rem;
  }
}

/* Tournament Navigation Section */
.tournament-nav-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.05) 0%, rgba(76, 175, 80, 0.08) 100%);
}

.container {
  margin: 0 auto;
  padding: 0 2rem;
}

.narrow-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.nav-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.nav-text p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #4a5568;
  margin-bottom: 1.5rem;
}

.nav-text p:last-child {
  margin-bottom: 0;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.jump-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(46, 125, 50, 0.1);
  border-radius: 12px;
  text-decoration: none;
  color: #2c3e50;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.jump-link:hover {
  transform: translateX(10px);
  border-color: #2e7d32;
  background: rgba(46, 125, 50, 0.05);
  box-shadow: 0 8px 25px rgba(46, 125, 50, 0.15);
}

.jump-link:nth-child(1) i:first-child {
  color: #FF6B35; /* Orange for tournament rules */
}

.jump-link:nth-child(2) i:first-child {
  color: #E91E63; /* Pink for registration */
}

.jump-link i:first-child {
  font-size: 1.5rem;
  width: 24px;
  text-align: center;
}

.jump-link span {
  flex: 1;
  font-weight: 600;
  font-size: 1.1rem;
}

.jump-link i:last-child {
  color: #6a1b26;
  transition: transform 0.3s ease;
}

.jump-link:hover i:last-child {
  transform: translateX(5px);
}

/* Huasteca Section */
.huasteca-section {
  padding: 6rem 0;
  background: #ffffff;
}

.huasteca-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.huasteca-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.huasteca-text > p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #4a5568;
  margin-bottom: 3rem;
}

.huasteca-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.huasteca-features .feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
}

.huasteca-features .feature-item:nth-child(1) i {
  color: #FF6B35; /* Orange for food */
}

.huasteca-features .feature-item:nth-child(2) i {
  color: #9C27B0; /* Purple for accommodation */
}

.huasteca-features .feature-item:nth-child(3) i {
  color: #FF5722; /* Red-orange for tours */
}

.huasteca-features .feature-item:nth-child(4) i {
  color: #4CAF50; /* Green for nature (keeping natural theme) */
}

.huasteca-features .feature-item i {
  font-size: 1.5rem;
  margin-top: 0.25rem;
  width: 24px;
  text-align: center;
}

.huasteca-features .feature-item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 0.5rem 0;
}

.huasteca-features .feature-item p {
  font-size: 1rem;
  color: #6c757d;
  margin: 0;
  line-height: 1.5;
}

.huasteca-features .feature-item .feature-link {
  display: inline-block;
  margin-top: 8px;
  color: #2E7D32;
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.huasteca-features .feature-item .feature-link:hover {
  color: #1B5E20;
  text-decoration: underline;
}

.explore-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #2e7d32, #1b5e20);
  border: none;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.explore-cta:hover {
  background: linear-gradient(135deg, #1b5e20, #2e7d32);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(46, 125, 50, 0.3);
}

.explore-cta i {
  transition: transform 0.3s ease;
}

.explore-cta:hover i {
  transform: translateX(5px);
}

.huasteca-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  background-color: #2E7D32; /* Match with theme color */
  line-height: 0; /* Remove any whitespace */
}

.huasteca-image img {
  width: 100%;
  display: block; /* Remove inline gap */
  height: auto; /* Auto height to maintain aspect ratio */
  object-fit: cover;
  transition: transform 0.3s ease;
}

.huasteca-image:hover img {
  transform: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .nav-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .nav-text {
    text-align: center;
  }
  
  .huasteca-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .huasteca-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    padding: 0 1rem;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .tournament-nav-section {
    padding: 4rem 0;
  }
  
  .nav-text h2 {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }
  
  .nav-text p {
    font-size: 1.1rem;
  }
  
  .jump-link {
    padding: 1.2rem 1.5rem;
  }
  
  .jump-link span {
    font-size: 1rem;
  }
  
  .huasteca-section {
    padding: 4rem 0;
  }
  
  .huasteca-text h2 {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }
  
  .huasteca-text > p {
    font-size: 1.1rem;
  }
  
  .huasteca-image img {
    height: 350px;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 1rem;
  }

  .narrow-container {
    padding: 0 1rem;
  }
  
  .hero {
    padding: 80px 0 50px 0;
  }
  
  .hero-content {
    gap: 1.5rem;
  }
  
  .tournament-nav-section {
    padding: 3rem 0;
  }
  
  .nav-content {
    gap: 2rem;
  }
  
  .nav-links {
    gap: 1rem;
  }
  
  .jump-link {
    padding: 1rem;
  }
  
  .jump-link i:first-child {
    font-size: 1.3rem;
  }
  
  .jump-link span {
    font-size: 0.95rem;
  }
  
  .huasteca-section {
    padding: 3rem 0;
  }
  
  .huasteca-content {
    gap: 2rem;
  }
  
  .huasteca-features {
    gap: 1rem;
  }
  
  .huasteca-features .feature-item {
    padding: 0.8rem 0;
  }
  
  .huasteca-image img {
    height: 300px;
  }
}