/* style/promotions.css */

/* Custom Colors */
:root {
  --mksport-primary: #11A84E;
  --mksport-secondary: #22C768;
  --mksport-card-bg: #11271B;
  --mksport-background: #08160F;
  --mksport-text-main: #F2FFF6;
  --mksport-text-secondary: #A7D9B8;
  --mksport-border: #2E7A4E;
  --mksport-glow: #57E38D;
  --mksport-gold: #F2C14E;
  --mksport-divider: #1E3A2A;
  --mksport-deep-green: #0A4B2C;
  --mksport-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* Base styles for the page content */
.page-promotions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--mksport-text-main); /* Default text color for dark background */
  background-color: var(--mksport-background);
}

.page-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

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

.page-promotions__dark-section {
  background-color: var(--mksport-background);
  color: var(--mksport-text-main);
}

.page-promotions__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-promotions__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--mksport-gold);
  margin-bottom: 20px;
}

.page-promotions__text-block {
  font-size: 18px;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--mksport-text-main);
}

.page-promotions__light-bg .page-promotions__text-block {
  color: #333333;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* body already handles padding-top */
  min-height: 500px;
  overflow: hidden;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px; /* Space between image and content */
}

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

.page-promotions__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-promotions__main-title {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 900;
  color: var(--mksport-gold);
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-promotions__description {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--mksport-text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button adapts to mobile */
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-primary {
  background: var(--mksport-btn-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-promotions__btn-secondary {
  background-color: transparent;
  color: var(--mksport-gold);
  border: 2px solid var(--mksport-gold);
}

.page-promotions__btn-secondary:hover {
  background-color: var(--mksport-gold);
  color: var(--mksport-background);
  transform: translateY(-2px);
}

.page-promotions__large-button {
  padding: 20px 40px;
  font-size: 20px;
}

/* Card Grid */
.page-promotions__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promotions__card {
  background-color: var(--mksport-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
  color: var(--mksport-text-main);
  border: 1px solid var(--mksport-border);
}

.page-promotions__light-bg .page-promotions__card {
  background-color: #f8f8f8;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-promotions__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-promotions__card-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--mksport-gold);
  padding: 20px 25px 10px;
}

.page-promotions__light-bg .page-promotions__card-title {
  color: var(--mksport-primary);
}

.page-promotions__card-text {
  font-size: 16px;
  padding: 0 25px 20px;
  flex-grow: 1;
  color: var(--mksport-text-secondary);
}

.page-promotions__light-bg .page-promotions__card-text {
  color: #555555;
}

.page-promotions__card-button {
  margin: 0 25px 25px;
  text-align: center;
}

/* Lists */
.page-promotions__ordered-list,
.page-promotions__unordered-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 30px auto;
  text-align: left;
}

.page-promotions__ordered-list li,
.page-promotions__unordered-list li {
  background-color: var(--mksport-card-bg);
  margin-bottom: 15px;
  padding: 20px 25px;
  border-radius: 8px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--mksport-text-main);
  border-left: 5px solid var(--mksport-gold);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__light-bg .page-promotions__ordered-list li,
.page-promotions__light-bg .page-promotions__unordered-list li {
  background-color: #f0f0f0;
  color: #333333;
  border-left: 5px solid var(--mksport-primary);
}

.page-promotions__list-strong {
  color: var(--mksport-gold);
}

.page-promotions__light-bg .page-promotions__list-strong {
  color: var(--mksport-primary);
}

.page-promotions__ordered-list li a,
.page-promotions__unordered-list li a {
  color: var(--mksport-glow);
  text-decoration: underline;
}

.page-promotions__light-bg .page-promotions__ordered-list li a,
.page-promotions__light-bg .page-promotions__unordered-list li a {
  color: var(--mksport-primary);
}

/* FAQ Section */
.page-promotions__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: left;
}

.page-promotions__faq-item {
  background-color: var(--mksport-card-bg);
  border: 1px solid var(--mksport-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-promotions__light-bg .page-promotions__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: bold;
  color: var(--mksport-text-main);
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-promotions__light-bg .page-promotions__faq-question {
  color: #333333;
}

.page-promotions__faq-question:hover {
  background-color: var(--mksport-deep-green);
}

.page-promotions__light-bg .page-promotions__faq-question:hover {
  background-color: #f5f5f5;
}

.page-promotions__faq-qtext {
  flex-grow: 1;
  color: var(--mksport-gold);
}

.page-promotions__light-bg .page-promotions__faq-qtext {
  color: var(--mksport-primary);
}

.page-promotions__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: var(--mksport-glow);
}

.page-promotions__light-bg .page-promotions__faq-toggle {
  color: var(--mksport-primary);
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
  background-color: var(--mksport-deep-green);
}

.page-promotions__light-bg .page-promotions__faq-item[open] .page-promotions__faq-question {
  background-color: #f5f5f5;
}

.page-promotions__faq-answer {
  padding: 0 25px 20px;
  font-size: 16px;
  color: var(--mksport-text-secondary);
}

.page-promotions__light-bg .page-promotions__faq-answer {
  color: #555555;
}

.page-promotions__faq-answer p {
  margin-bottom: 10px;
}

.page-promotions__faq-answer a {
  color: var(--mksport-glow);
  text-decoration: underline;
}

.page-promotions__light-bg .page-promotions__faq-answer a {
  color: var(--mksport-primary);
}

/* Fix for details summary marker */
details > summary {
  list-style: none;
}
details > summary::-webkit-details-marker {
  display: none;
}

/* Bottom CTA */
.page-promotions__cta-bottom {
  padding: 80px 0;
}

.page-promotions__cta-bottom .page-promotions__section-title {
  color: var(--mksport-gold);
}

.page-promotions__cta-bottom .page-promotions__description {
  color: var(--mksport-text-secondary);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-promotions__section {
    padding: 40px 0;
  }

  .page-promotions__hero-section {
    padding: 10px 0 40px 0; /* body already handles padding-top */
  }

  .page-promotions__hero-image-wrapper {
    margin-bottom: 30px;
  }

  .page-promotions__hero-content {
    padding: 0 15px;
  }

  .page-promotions__main-title {
    font-size: clamp(30px, 8vw, 48px);
  }

  .page-promotions__description {
    font-size: clamp(16px, 3vw, 20px);
  }

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

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-promotions__card-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .page-promotions__card-image {
    height: 200px;
  }

  .page-promotions__card-title {
    font-size: 20px;
    padding: 15px 20px 8px;
  }

  .page-promotions__card-text {
    font-size: 15px;
    padding: 0 20px 15px;
  }

  .page-promotions__card-button {
    margin: 0 20px 20px;
  }

  .page-promotions__ordered-list,
  .page-promotions__unordered-list {
    padding: 0 15px;
  }

  .page-promotions__ordered-list li,
  .page-promotions__unordered-list li {
    font-size: 16px;
    padding: 15px 20px;
  }

  .page-promotions__faq-list {
    padding: 0 15px;
  }

  .page-promotions__faq-question {
    font-size: 16px;
    padding: 15px 20px;
  }

  .page-promotions__faq-answer {
    font-size: 15px;
    padding: 0 20px 15px;
  }

  /* Ensure images do not overflow */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__hero-image-wrapper,
  .page-promotions__cta-buttons,
  .page-promotions__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left and padding-right are handled by specific sections/elements above */
  }
}

@media (max-width: 480px) {
  .page-promotions__section-title {
    font-size: clamp(24px, 6vw, 36px);
  }
  .page-promotions__main-title {
    font-size: clamp(28px, 9vw, 40px);
  }
  .page-promotions__description {
    font-size: clamp(15px, 4vw, 18px);
  }
}