/* style/promotions.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --dark-bg-color: #1a1a2e; /* Body background from shared.css */
  --text-light: #ffffff;
  --text-dark: #333333;
  --btn-login-color: #EA7C07;
}

.page-promotions {
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--dark-bg-color);
}

.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  text-align: center;
  overflow: hidden;
  color: var(--text-light);
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for aesthetic */
  overflow: hidden;
  position: relative;
}

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

.page-promotions__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin-top: 40px;
  padding: 0 20px;
}

.page-promotions__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--secondary-color);
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-promotions__intro-text {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.9);
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-promotions__btn-primary:hover {
  background-color: #1e87bb;
  border-color: #1e87bb;
}

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

.page-promotions__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.page-promotions__section {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--dark-bg-color);
  color: var(--text-light);
}

.page-promotions__section:nth-of-type(odd) {
  background-color: #1a1a2e; /* Slightly different dark shade */
}

.page-promotions__section:nth-of-type(even) {
  background-color: #15152a; /* Another dark shade for contrast */
}

.page-promotions__dark-bg {
  background-color: #1a1a2e;
  color: var(--text-light);
}

.page-promotions__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.page-promotions__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 50px;
}

.page-promotions__sub-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 25px;
}

.page-promotions__text-block-full {
  margin-top: 50px;
  padding: 40px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  text-align: left;
}

.page-promotions__text-block-full p {
  color: rgba(255, 255, 255, 0.8);
}

.page-promotions__grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promotions__card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-light);
}

.page-promotions__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.page-promotions__card-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.page-promotions__card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

.page-promotions__list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  text-align: left;
}

.page-promotions__list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.page-promotions__list li::before {
  content: '✔';
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-promotions__list-item-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 5px;
}

.page-promotions__list-item-title + p {
  margin-top: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.page-promotions__card-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  margin-top: auto; /* Push button to bottom */
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__card-button:hover {
  background-color: #1e87bb;
}

.page-promotions__image-text-layout {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
  text-align: left;
}

.page-promotions__image-text-layout--reverse {
  flex-direction: row-reverse;
}

.page-promotions__content-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  display: block;
}

.page-promotions__text-block {
  flex: 1;
  max-width: 50%;
}

.page-promotions__text-block p {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.8);
}

.page-promotions__ordered-list {
  list-style: decimal;
  padding-left: 20px;
  margin: 0 0 20px 0;
  color: rgba(255, 255, 255, 0.8);
}

.page-promotions__ordered-list li {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

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

.page-promotions__product-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-light);
}

.page-promotions__product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.page-promotions__product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-promotions__product-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-promotions__product-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-promotions__feature-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  color: var(--text-light);
}

.page-promotions__feature-item:hover {
  transform: translateY(-5px);
}

.page-promotions__feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-promotions__feature-item p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.page-promotions__faq-list {
  margin-top: 40px;
  text-align: left;
}

.page-promotions__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  color: var(--text-light);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--secondary-color);
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-bottom-color: var(--primary-color);
}

.page-promotions__faq-qtext {
  flex-grow: 1;
  color: inherit;
}

.page-promotions__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg);
}

.page-promotions__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  background-color: rgba(255, 255, 255, 0.03);
}

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

/* Remove default details marker */
.page-promotions__faq-item > summary {
  list-style: none;
}

.page-promotions__faq-item > summary::-webkit-details-marker {
  display: none;
}

.page-promotions__cta-section {
  padding: 100px 20px;
  background: linear-gradient(135deg, var(--primary-color), #1e87bb);
  color: var(--secondary-color);
  margin-top: 60px;
}

.page-promotions__cta-section .page-promotions__section-title {
  color: var(--secondary-color);
}

.page-promotions__cta-section p {
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 1.15rem;
  line-height: 1.6;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-promotions__image-text-layout {
    flex-direction: column;
    text-align: center;
  }

  .page-promotions__image-text-layout--reverse {
    flex-direction: column;
  }

  .page-promotions__content-image,
  .page-promotions__text-block {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding: 40px 15px;
  }

  .page-promotions__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-promotions__intro-text {
    font-size: clamp(0.95rem, 3.5vw, 1.1rem);
  }

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

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions a[class*="button"],
  .page-promotions a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__cta-buttons,
  .page-promotions__button-group,
  .page-promotions__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-promotions__section {
    padding: 50px 15px;
  }

  .page-promotions__section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-promotions__sub-title {
    font-size: clamp(1.2rem, 5vw, 1.6rem);
  }

  .page-promotions__card,
  .page-promotions__feature-item,
  .page-promotions__product-card,
  .page-promotions__text-block-full,
  .page-promotions__hero-content {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-promotions__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}

@media (max-width: 480px) {
  .page-promotions__card-title {
    font-size: 1.4rem;
  }

  .page-promotions__product-title {
    font-size: 1.2rem;
  }

  .page-promotions__feature-title {
    font-size: 1.3rem;
  }

  .page-promotions__faq-question {
    font-size: 1rem;
    padding: 15px;
  }

  .page-promotions__faq-toggle {
    font-size: 1.5rem;
  }

  .page-promotions__faq-answer {
    padding: 15px;
  }
}