/* style/promotions.css */

:root {
  --primary-color: #FF8C1A;
  --secondary-color: #FFA53A;
  --card-bg-color: #17191F;
  --background-color: #0D0E12;
  --text-main-color: #FFF3E6;
  --border-color: #A84F0C;
  --glow-color: #FFB04D;
  --deep-orange-color: #D96800;
}

.page-promotions {
  color: var(--text-main-color); /* Ensure light text on dark body background */
  background-color: var(--background-color);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 70vh; /* Limit height on larger screens */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-promotions__hero-content {
  position: relative; /* Changed from absolute to relative to be below image */
  z-index: 2;
  max-width: 900px;
  margin-top: 40px; /* Spacing below image */
  padding: 0 20px;
}

.page-promotions__main-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem); /* Responsive font size for H1 */
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255,165,58,0.5);
}

.page-promotions__hero-description {
  font-size: 1.2rem;
  color: var(--text-main-color);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.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: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-primary {
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange-color) 100%);
  color: #ffffff;
  border: 2px solid var(--primary-color);
  box-shadow: 0 5px 15px rgba(255,140,26,0.4);
}

.page-promotions__btn-primary:hover {
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255,140,26,0.6);
}

.page-promotions__btn-secondary {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  box-shadow: 0 5px 15px rgba(255,165,58,0.2);
}

.page-promotions__btn-secondary:hover {
  background: var(--secondary-color);
  color: var(--background-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255,165,58,0.4);
}

.page-promotions__section {
  padding: 60px 0;
  background-color: var(--background-color);
}

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

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

.page-promotions__section-title {
  font-size: 2.5rem;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255,165,58,0.3);
}

.page-promotions__paragraph {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-main-color);
  text-align: justify;
}

.page-promotions__promotion-cards {
  padding-bottom: 80px;
}

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

.page-promotions__card {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--text-main-color);
}

.page-promotions__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(var(--primary-color),0.5);
}

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

.page-promotions__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

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

.page-promotions__card-description {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__faq-section {
  background-color: var(--background-color);
  padding-bottom: 80px;
}

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

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--secondary-color);
  cursor: pointer;
  background-color: rgba(255,165,58,0.1);
  transition: background-color 0.3s ease;
}

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

.page-promotions__faq-question::-webkit-details-marker, /* Hide default marker for Chrome */
.page-promotions__faq-question::marker { /* Hide default marker for Firefox */
  display: none;
}

.page-promotions__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--secondary-color);
}

details.page-promotions__faq-item[open] .page-promotions__faq-question {
  border-bottom: 1px solid var(--border-color);
}

.page-promotions__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-main-color);
  border-top: 1px solid var(--border-color);
  background-color: rgba(0,0,0,0.2);
}

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

.page-promotions__why-choose-us {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-promotions__feature-item {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  color: var(--text-main-color);
}

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

.page-promotions__feature-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

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

.page-promotions__feature-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-main-color);
}

.page-promotions__cta-final {
  padding-top: 80px;
  padding-bottom: 80px;
  text-align: center;
}

.page-promotions__btn-large {
  padding: 18px 40px;
  font-size: 1.3rem;
  margin-top: 30px;
}

.page-promotions__floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.page-promotions__floating-btn {
  display: block;
  padding: 12px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
  white-space: nowrap;
}

.page-promotions__floating-btn:hover {
  transform: scale(1.05);
}

.page-promotions__floating-btn--register {
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange-color) 100%);
}

.page-promotions__floating-btn--login {
  background: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__main-title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
  }

  .page-promotions__section-title {
    font-size: 2.2rem;
  }

  .page-promotions__hero-description {
    font-size: 1.1rem;
  }

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

  .page-promotions__card-title {
    font-size: 1.4rem;
  }
}

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

  .page-promotions__hero-section {
    padding-top: 10px !important; /* body handles header offset, small top padding */
    padding-bottom: 40px;
  }

  .page-promotions__hero-content {
    margin-top: 30px;
  }

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

  .page-promotions__hero-description {
    font-size: 1rem;
  }

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

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

  .page-promotions__section {
    padding: 40px 0;
  }

  .page-promotions__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-promotions__container {
    padding: 0 15px !important; /* Add side padding for mobile */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-promotions__card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-promotions__card-image {
    height: 200px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions__feature-image {
    max-width: 180px;
    min-width: 200px !important; /* Enforce min size */
    min-height: 200px !important; /* Enforce min size */
    width: 100% !important;
    height: auto !important;
  }

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

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

  .page-promotions__floating-buttons {
    flex-direction: row;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    padding: 10px 15px;
    box-sizing: border-box;
    justify-content: space-around;
    gap: 10px;
    background-color: var(--background-color);
    box-shadow: 0 -4px 10px rgba(0,0,0,0.3);
  }

  .page-promotions__floating-btn {
    flex: 1;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    white-space: normal;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-promotions__floating-btn--register,
  .page-promotions__floating-btn--login {
    margin-bottom: 0;
  }

  /* Ensure all images are responsive */
  .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;
  }
}

@media (max-width: 480px) {
  .page-promotions__main-title {
    font-size: clamp(1.6rem, 9vw, 2.2rem);
  }

  .page-promotions__section-title {
    font-size: 1.6rem;
  }

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

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    font-size: 0.9rem;
    padding: 10px 15px;
  }
}