/* style/sports.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f8f8f8;
  --background-dark: #222222;
  --border-color: #e0e0e0;
}

.page-sports {
  font-family: 'Arial', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
}

.page-sports .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-sports section {
  padding: 60px 0;
  margin-bottom: 20px;
}

.page-sports section:nth-of-type(even) {
  background-color: var(--background-light);
}

.page-sports h1,
.page-sports h2,
.page-sports h3 {
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-sports h1 {
  font-size: 2.8em;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-sports h2 {
  font-size: 2.2em;
}

.page-sports h3 {
  font-size: 1.6em;
  color: var(--text-dark);
}

.page-sports p {
  margin-bottom: 15px;
  text-align: justify;
}

.page-sports .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  text-align: center;
  border: 2px solid var(--secondary-color);
}

.page-sports .cta-button:hover {
  background: var(--primary-color);
  color: var(--text-dark);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.page-sports .hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background-color: var(--background-dark); /* Fallback for image */
  color: var(--text-light);
  overflow: hidden;
}

.page-sports .hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.page-sports .hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-sports .hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.page-sports .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.4); /* Overlay for text readability */
  border-radius: 12px;
  margin-top: -80px; /* Overlap with image */
}

.page-sports .hero-content h1 {
  color: var(--primary-color);
  font-size: 3.5em;
  margin-bottom: 20px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.page-sports .hero-content p {
  color: var(--text-light);
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

/* Why Choose Us Section */
.page-sports .why-choose-us-section {
  background-color: var(--background-light);
  text-align: center;
}

.page-sports .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-sports .feature-item {
  background: var(--text-light);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-sports .feature-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-sports .feature-icon {
  width: 250px; /* Enforce min size */
  height: 180px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-sports .feature-item h3 {
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-size: 1.8em;
}

.page-sports .feature-item p {
  font-size: 1em;
  color: var(--text-dark);
  text-align: center;
}

/* Betting Types Section */
.page-sports .betting-types-section {
  background-color: var(--background-dark);
  color: var(--text-light);
  text-align: center;
}

.page-sports .betting-types-section h2 {
  color: var(--primary-color);
}

.page-sports .betting-types-section p {
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-light);
}

.page-sports .betting-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-sports .type-item {
  background: #333;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-sports .type-item:hover {
  transform: translateY(-8px);
}

.page-sports .type-image {
  width: 250px;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-sports .type-item h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.5em;
}

.page-sports .type-item p {
  color: #cccccc;
  font-size: 0.95em;
  text-align: center;
}

/* Live Betting Section */
.page-sports .live-betting-section {
  background-color: var(--background-light);
}

.page-sports .live-betting-section h2 {
  color: var(--secondary-color);
}

.page-sports .live-betting-section .content-wrapper {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.page-sports .live-betting-section .text-content {
  flex: 1;
  min-width: 300px;
}

.page-sports .live-betting-section .text-content h2 {
  text-align: left;
}

.page-sports .live-betting-section .text-content p {
  margin-bottom: 20px;
  color: var(--text-dark);
}

.page-sports .live-betting-section .text-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-sports .live-betting-section .text-content ul li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%238B0000"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.page-sports .live-betting-section .image-content {
  flex: 1;
  min-width: 300px;
}

.page-sports .live-betting-section .image-content img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* How To Bet Section */
.page-sports .how-to-bet-section {
  text-align: center;
}

.page-sports .steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-sports .step-item {
  background: var(--text-light);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.page-sports .step-item:hover {
  transform: translateY(-8px);
}

.page-sports .step-image {
  width: 250px;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-sports .step-item h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.5em;
}

.page-sports .step-item p {
  color: var(--text-dark);
  font-size: 0.95em;
  text-align: center;
  flex-grow: 1;
}

.page-sports .step-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-sports .step-button:hover {
  background: var(--secondary-color);
  color: var(--text-light);
  transform: translateY(-2px);
}

/* Promotions Section */
.page-sports .promotions-section {
  background-color: var(--background-dark);
  color: var(--text-light);
  text-align: center;
}

.page-sports .promotions-section h2 {
  color: var(--primary-color);
}

.page-sports .promotions-section p {
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-light);
}

.page-sports .promo-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-sports .promo-card {
  background: #333;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-sports .promo-card:hover {
  transform: translateY(-8px);
}

.page-sports .promo-image {
  width: 250px;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-sports .promo-card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.5em;
}

.page-sports .promo-card p {
  color: #cccccc;
  font-size: 0.95em;
  text-align: center;
  flex-grow: 1;
}

.page-sports .promo-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-sports .promo-button:hover {
  background: var(--primary-color);
  color: var(--text-dark);
  transform: translateY(-2px);
}

/* Support & Responsible Gaming Section */
.page-sports .support-responsible-gaming-section {
  background-color: var(--background-light);
}

.page-sports .support-responsible-gaming-section h2 {
  color: var(--secondary-color);
}

.page-sports .support-responsible-gaming-section .content-wrapper {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.page-sports .support-responsible-gaming-section .text-content {
  flex: 1;
  min-width: 300px;
}

.page-sports .support-responsible-gaming-section .text-content h2 {
  text-align: left;
}

.page-sports .support-responsible-gaming-section .text-content p {
  margin-bottom: 20px;
  color: var(--text-dark);
}

.page-sports .support-responsible-gaming-section .image-content {
  flex: 1;
  min-width: 300px;
}

.page-sports .support-responsible-gaming-section .image-content img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* FAQ Section */
.page-sports .faq-section {
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-sports .faq-section h2 {
  color: var(--primary-color);
}

.page-sports .faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #3a3a3a;
  border: 1px solid #4a4a4a;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.faq-item.active .faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.faq-question:hover {
  background: #4a4a4a;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: var(--primary-color);
  text-align: left;
}

.faq-item.active .faq-question h3 {
  color: var(--text-light);
}

.faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--text-light);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 25px;
  background: #2a2a2a;
  border-radius: 0 0 8px 8px;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height */
  padding: 25px;
  background: #2a2a2a;
  border-top: 1px solid #4a4a4a;
}

.faq-answer p {
  color: #dddddd;
  margin-bottom: 0;
  text-align: left;
}

/* Latest News Section */
.page-sports .latest-news-section {
  background-color: var(--background-light);
  text-align: center;
}

.page-sports .news-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-sports .news-card {
  background: var(--text-light);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sports .news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-sports .news-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-sports .news-content {
  padding: 25px;
}

.page-sports .news-content h3 {
  font-size: 1.4em;
  margin-bottom: 15px;
  line-height: 1.4;
  text-align: left;
}

.page-sports .news-link {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-sports .news-link:hover {
  color: var(--primary-color);
}

.page-sports .news-content p {
  font-size: 0.95em;
  color: #666;
  margin-bottom: 15px;
  text-align: left;
}

.page-sports .news-date {
  font-size: 0.85em;
  color: #999;
  display: block;
}

.page-sports .view-all-news {
  margin-top: 40px;
  text-align: center;
}

/* Floating Buttons */
.page-sports .floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-sports .floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-align: center;
  line-height: 1.2; /* For multi-line text */
}

.page-sports .floating-btn:hover {
  background-color: var(--primary-color);
  color: var(--text-dark);
  transform: translateY(-5px);
}

.page-sports .floating-btn.register-btn {
  background-color: var(--secondary-color);
}

.page-sports .floating-btn.login-btn {
  background-color: #555;
}

.page-sports .floating-btn.register-btn:hover {
  background-color: var(--primary-color);
}

.page-sports .floating-btn.login-btn:hover {
  background-color: #777;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-sports h1 {
    font-size: 2.5em;
  }
  .page-sports h2 {
    font-size: 1.8em;
  }
  .page-sports .hero-content {
    margin-top: -60px;
  }
  .page-sports .live-betting-section .content-wrapper,
  .page-sports .support-responsible-gaming-section .content-wrapper {
    flex-direction: column;
    text-align: center;
  }
  .page-sports .live-betting-section .text-content h2,
  .page-sports .support-responsible-gaming-section .text-content h2 {
    text-align: center;
  }
  .page-sports .live-betting-section .text-content ul li {
    text-align: left;
    background-position: top 5px left;
  }
}

@media (max-width: 768px) {
  .page-sports section {
    padding: 40px 0;
  }
  .page-sports .hero-content h1 {
    font-size: 2em;
  }
  .page-sports .hero-content p {
    font-size: 1em;
  }
  .page-sports .cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-sports .hero-content {
    padding: 15px;
    margin-top: -40px;
  }
  .page-sports .features-grid,
  .page-sports .betting-types-grid,
  .page-sports .steps-grid,
  .page-sports .promo-cards-grid,
  .page-sports .news-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-sports .feature-item, .page-sports .type-item, .page-sports .step-item, .page-sports .promo-card, .page-sports .news-card {
    padding: 20px;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-toggle {
    font-size: 20px;
  }
  .faq-answer {
    padding: 15px 20px;
  }
  .page-sports .floating-buttons {
    right: 10px;
    bottom: 10px;
    gap: 8px;
  }
  .page-sports .floating-btn {
    width: 50px;
    height: 50px;
    font-size: 0.9em;
  }
}