/* style/da-ga.css */

:root {
  --primary-color: #C91F17;
  --secondary-color: #E53935;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  --card-bg: #D32F2F;
  --section-bg: #B71C1C;
  --text-main: #FFF5E1;
  --border-color: #F2B544;
  --glow-color: #FFCC66;
  --gold-color: #F4D34D;
  --deep-red-color: #7A0E0E;
  --header-offset: 122px; /* Default, will be overridden by shared.css if present */
}

.page-da-ga {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for the page */
  background-color: var(--section-bg); /* Default background for the page */
}

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

.page-da-ga__section {
  padding: 60px 0;
  text-align: center;
}

.page-da-ga__section-title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--gold-color); /* Use gold for titles for contrast */
  line-height: 1.2;
}

.page-da-ga__section-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: var(--text-main);
}

.page-da-ga__highlight-text {
  color: var(--gold-color);
  font-weight: bold;
}

/* Buttons */
.page-da-ga__btn-primary,
.page-da-ga__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-da-ga__btn-primary {
  background: var(--button-gradient);
  color: var(--deep-red-color);
  box-shadow: 0 4px 15px rgba(255, 216, 106, 0.4);
}

.page-da-ga__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-da-ga__btn-secondary {
  background: var(--deep-red-color);
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
  margin-left: 20px;
}

.page-da-ga__btn-secondary:hover {
  background: var(--gold-color);
  color: var(--deep-red-color);
  transform: translateY(-2px);
}

.page-da-ga__cta-buttons {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-da-ga__cta-container {
  margin-top: 40px;
  text-align: center;
}

.page-da-ga__cta-container--strategy {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
}

/* Hero Carousel Section */
.page-da-ga__hero-carousel-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--deep-red-color);
}

.page-da-ga__hero-slider {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  overflow: hidden;
}

.page-da-ga__hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.page-da-ga__hero-slide.is-active {
  opacity: 1;
}

.page-da-ga__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-da-ga__hero-slider-prev,
.page-da-ga__hero-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 15px 10px;
  cursor: pointer;
  z-index: 10;
  font-size: 1.5em;
  border-radius: 5px;
}

.page-da-ga__hero-slider-prev {
  left: 20px;
}

.page-da-ga__hero-slider-next {
  right: 20px;
}

.page-da-ga__hero-slider-prev::before {
  content: '‹';
}

.page-da-ga__hero-slider-next::before {
  content: '›';
}

.page-da-ga__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 11;
  text-align: center;
  color: #fff;
  max-width: 800px;
  width: 90%;
  padding: 30px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
}

.page-da-ga__main-title {
  font-size: 3.5em;
  color: var(--gold-color);
  margin-bottom: 15px;
  line-height: 1.1;
  font-weight: 900;
}

.page-da-ga__hero-description {
  font-size: 1.4em;
  margin-bottom: 25px;
  color: var(--text-main);
}

/* About Đá Gà Section */
.page-da-ga__about-da-ga {
  background-color: var(--section-bg);
  color: var(--text-main);
}

.page-da-ga__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.page-da-ga__text-block {
  flex: 1;
  font-size: 1.1em;
}

.page-da-ga__text-block p {
  margin-bottom: 15px;
}

.page-da-ga__image-block {
  flex: 1;
}

.page-da-ga__image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Guide Box Section (Reasons to choose) */
.page-da-ga__guide-box {
  background-color: var(--deep-red-color);
  padding: 80px 0;
}

.page-da-ga__guide-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 50px;
}

.page-da-ga__guide-card {
  flex: 0 0 calc(20% - 16px); /* 5 cards per row */
  max-width: calc(20% - 16px);
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
  position: relative;
  padding-top: 0;
}

.page-da-ga__guide-card:hover {
  transform: translateY(-10px);
}

.page-da-ga__guide-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 250 / 350; /* Fixed aspect ratio for vertical images */
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Specific vertical alignment for 5 cards */
.page-da-ga__guide-card--pos-1,
.page-da-ga__guide-card--pos-5 {
  padding-top: 50px;
}

.page-da-ga__guide-card--pos-2,
.page-da-ga__guide-card--pos-4 {
  padding-top: 25px;
}

/* Betting Types Section */
.page-da-ga__betting-types {
  background-color: var(--section-bg);
  color: var(--text-main);
}

.page-da-ga__betting-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-da-ga__card {
  background-color: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-da-ga__card-image {
  width: 100%;
  height: 250px; /* Fixed height for card images */
  object-fit: cover;
  display: block;
}

.page-da-ga__card-content {
  padding: 25px;
  flex-grow: 1;
}

.page-da-ga__card-title {
  font-size: 1.5em;
  color: var(--gold-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-da-ga__card-text {
  font-size: 1em;
  color: var(--text-main);
}

/* Strategy Tips Section */
.page-da-ga__strategy-tips {
  background-color: var(--deep-red-color);
  color: var(--text-main);
  padding-bottom: 80px;
}

.page-da-ga__home-content-box {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  border: 5px solid var(--border-color);
  border-radius: 20px;
  box-shadow: 0 0 30px var(--glow-color);
  height: 700px; /* Fixed height for scrollable content */
  background-color: rgba(0, 0, 0, 0.4);
  text-align: left;
}

.page-da-ga__home-content-inner {
  height: 100%;
  overflow-y: auto;
  padding-right: 15px; /* For scrollbar space */
}

.page-da-ga__home-content-inner::-webkit-scrollbar {
  width: 8px;
}

.page-da-ga__home-content-inner::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.page-da-ga__home-content-inner::-webkit-scrollbar-thumb {
  background: var(--gold-color);
  border-radius: 10px;
}

.page-da-ga__article {
  padding: 20px 0;
}

.page-da-ga__article-title {
  font-size: 2em;
  color: var(--gold-color);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-da-ga__article p {
  margin-bottom: 15px;
  font-size: 1.1em;
}

.page-da-ga__figure {
  margin: 20px 0;
}

.page-da-ga__article-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-da-ga__figcaption {
  font-style: italic;
  font-size: 0.9em;
  color: var(--text-main);
  margin-top: 10px;
  text-align: center;
}

/* Register CTA Section */
.page-da-ga__register-cta {
  background-color: var(--primary-color);
  color: var(--text-main);
  padding: 80px 0;
}

.page-da-ga__footer-cta-text {
  margin-top: 30px;
  font-size: 1.2em;
  color: var(--text-main);
}

/* Universal image responsive styles */
.page-da-ga img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries */
@media (max-width: 1024px) {
  .page-da-ga__container {
    padding: 0 15px;
  }

  .page-da-ga__hero-slider {
    height: 500px;
  }

  .page-da-ga__hero-content {
    padding: 20px;
  }

  .page-da-ga__main-title {
    font-size: 2.8em;
  }

  .page-da-ga__hero-description {
    font-size: 1.2em;
  }

  .page-da-ga__content-grid {
    flex-direction: column;
    gap: 30px;
  }

  .page-da-ga__betting-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-da-ga__guide-card {
    flex: 0 0 calc(33.333% - 14px); /* 3 cards per row */
    max-width: calc(33.333% - 14px);
    padding-top: 0 !important; /* Reset padding for tablet layout */
  }

  .page-da-ga__guide-card--pos-1,
  .page-da-ga__guide-card--pos-4 {
    padding-top: 30px !important;
  }

  .page-da-ga__guide-card--pos-2,
  .page-da-ga__guide-card--pos-5 {
    padding-top: 0 !important;
  }

  .page-da-ga__guide-card--pos-3 {
    padding-top: 30px !important;
  }

  .page-da-ga__home-content-box {
    height: 600px;
  }
}

@media (max-width: 768px) {
  .page-da-ga {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-da-ga__section {
    padding: 40px 0;
  }

  .page-da-ga__section-title {
    font-size: 2em;
  }

  .page-da-ga__section-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  /* Hero Carousel Section */
  .page-da-ga__hero-carousel-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
  }

  .page-da-ga__hero-slider {
    height: 300px;
  }

  .page-da-ga__hero-slider-prev,
  .page-da-ga__hero-slider-next {
    padding: 10px 8px;
    font-size: 1.2em;
    left: 10px;
    right: 10px;
  }

  .page-da-ga__hero-content {
    padding: 15px;
    width: 95%;
  }

  .page-da-ga__main-title {
    font-size: 1.8em;
    margin-bottom: 10px;
  }

  .page-da-ga__hero-description {
    font-size: 0.9em;
    margin-bottom: 15px;
  }

  .page-da-ga__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  .page-da-ga__btn-primary,
  .page-da-ga__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    padding: 12px 15px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* About Đá Gà Section */
  .page-da-ga__content-grid {
    flex-direction: column;
    gap: 20px;
  }

  .page-da-ga__text-block {
    font-size: 1em;
  }

  /* Guide Box Section */
  .page-da-ga__guide-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* Temporary for positioning */
    gap: 10px;
  }

  .page-da-ga__guide-card {
    flex: auto; /* Reset flex */
    max-width: 100%;
    padding-top: 0 !important; /* Reset all padding-top */
  }

  .page-da-ga__guide-card--pos-1,
  .page-da-ga__guide-card--pos-2 {
    grid-column: span 3;
  }

  .page-da-ga__guide-card--pos-3,
  .page-da-ga__guide-card--pos-4,
  .page-da-ga__guide-card--pos-5 {
    grid-column: span 2;
  }

  /* Betting Types Section */
  .page-da-ga__betting-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-da-ga__card-image {
    height: 200px;
  }

  .page-da-ga__card-title {
    font-size: 1.3em;
  }

  /* Strategy Tips Section */
  .page-da-ga__home-content-box {
    max-width: 100%;
    height: auto; /* Allow content to expand */
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 15px var(--glow-color);
  }

  .page-da-ga__home-content-inner {
    height: auto;
    overflow-y: visible; /* Disable scroll for mobile */
    padding-right: 0;
  }

  .page-da-ga__article-title {
    font-size: 1.5em;
    margin-top: 20px;
  }

  .page-da-ga__article p {
    font-size: 1em;
  }

  .page-da-ga__cta-container--strategy {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  /* Register CTA Section */
  .page-da-ga__register-cta {
    padding: 50px 0;
  }

  .page-da-ga__footer-cta-text {
    font-size: 1em;
  }

  /* Mobile specific image and container overrides */
  .page-da-ga img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-da-ga__section,
  .page-da-ga__card,
  .page-da-ga__container,
  .page-da-ga__cta-buttons,
  .page-da-ga__cta-container--strategy {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}