/* style/promotions.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-button-bg: #C30808;
    --login-button-bg: #C30808;
    --register-login-font: #FFFF00;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --border-color: #e0e0e0;
    --card-bg: #ffffff;
}

.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark);
    background: var(--secondary-color); /* Matches body background */
}

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

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

.page-promotions__text-center {
    text-align: center;
}

.page-promotions__section-title {
    font-size: 38px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.page-promotions__section-title--light {
    color: var(--text-color-light);
}

.page-promotions__section-description {
    font-size: 18px;
    color: var(--text-color-dark);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
}

.page-promotions__section-description--light {
    color: var(--text-color-light);
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px);
    background: linear-gradient(135deg, var(--primary-color) 0%, #308d5b 100%);
    overflow: hidden;
}

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

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

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

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    color: var(--text-color-light);
}

.page-promotions__main-title {
    font-size: 52px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--text-color-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-promotions__intro-text {
    font-size: 22px;
    margin-bottom: 40px;
    color: var(--text-color-light);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

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

.page-promotions__cta-button {
    display: inline-block;
    padding: 18px 45px;
    color: var(--register-login-font);
    text-decoration: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
}

.page-promotions__cta-button--register {
    background: var(--register-button-bg);
}

.page-promotions__cta-button--register:hover {
    background: #e02a2a;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__cta-button--login {
    background: var(--login-button-bg);
}

.page-promotions__cta-button--login:hover {
    background: #e02a2a;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Categories Section */
.page-promotions__categories {
    background: var(--secondary-color);
}

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

.page-promotions__category-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding-bottom: 25px;
    border: 1px solid var(--border-color);
}

.page-promotions__category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.page-promotions__category-card img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.page-promotions__card-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0 20px 15px 20px;
}

.page-promotions__card-description {
    font-size: 16px;
    color: var(--text-color-dark);
    margin: 0 20px 25px 20px;
    flex-grow: 1;
}

.page-promotions__btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--text-color-light);
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: auto; /* Push button to bottom */
    border: none;
}

.page-promotions__btn-primary:hover {
    background: #005a2e;
    transform: translateY(-2px);
}

/* Details Section */
.page-promotions__dark-section {
    background: var(--primary-color);
    color: var(--text-color-light);
}

.page-promotions__detail-item {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    background: rgba(255, 255, 255, 0.08); /* Slightly transparent white for contrast */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-promotions__detail-item:last-child {
    margin-bottom: 0;
}

.page-promotions__detail-item--reverse {
    flex-direction: row-reverse;
}

.page-promotions__detail-item img {
    width: 50%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__detail-content {
    width: 50%;
    color: var(--text-color-light);
}

.page-promotions__detail-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--text-color-light);
}

.page-promotions__detail-content p {
    font-size: 18px;
    margin-bottom: 25px;
    color: var(--text-color-light);
}

.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    border: 2px solid var(--primary-color);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

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

/* Why Choose Section */
.page-promotions__why-choose {
    background: var(--secondary-color);
}

.page-promotions__benefits-list {
    list-style: none;
    padding: 0;
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-promotions__benefits-list li {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-promotions__benefits-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-promotions__benefit-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

.page-promotions__benefit-title {
    font-size: 26px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-promotions__benefits-list p {
    font-size: 16px;
    color: var(--text-color-dark);
}

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

.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-promotions__faq-item.active .page-promotions__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: var(--primary-color);
}

.page-promotions__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-promotions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none;
}

.page-promotions__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  color: var(--register-button-bg);
  transform: rotate(45deg); /* Plus to X for active */
}

.page-promotions__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.3s ease;
  padding: 0 25px;
  opacity: 0;
  background: var(--secondary-color);
  color: var(--text-color-dark);
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: #f9f9f9;
  border-color: var(--primary-color);
}

.page-promotions__faq-answer p {
    margin: 0;
    font-size: 16px;
}

/* Bottom CTA Section */
.page-promotions__cta-bottom {
    background: linear-gradient(135deg, #308d5b, var(--primary-color));
}

.page-promotions__cta-bottom .page-promotions__section-title {
    color: var(--text-color-light);
}

.page-promotions__cta-bottom .page-promotions__section-description {
    color: var(--text-color-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__main-title {
        font-size: 44px;
    }
    .page-promotions__intro-text {
        font-size: 20px;
    }
    .page-promotions__section-title {
        font-size: 32px;
    }
    .page-promotions__detail-title {
        font-size: 28px;
    }
    .page-promotions__detail-content p {
        font-size: 17px;
    }
    .page-promotions__category-card img {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__main-title {
        font-size: 36px;
        margin-bottom: 15px;
    }
    .page-promotions__intro-text {
        font-size: 18px;
        margin-bottom: 30px;
    }
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-promotions__cta-button {
        padding: 15px 30px;
        font-size: 18px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-promotions__section-padding {
        padding: 50px 0;
    }
    .page-promotions__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .page-promotions__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-promotions__category-grid {
        gap: 20px;
    }
    .page-promotions__category-card img {
        height: 200px;
    }
    .page-promotions__card-title {
        font-size: 20px;
    }
    .page-promotions__card-description {
        font-size: 15px;
    }
    .page-promotions__btn-primary {
        padding: 10px 25px;
        font-size: 15px;
    }
    .page-promotions__detail-item {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        margin-bottom: 40px;
    }
    .page-promotions__detail-item--reverse {
        flex-direction: column;
    }
    .page-promotions__detail-item img {
        width: 100%;
        height: auto;
    }
    .page-promotions__detail-content {
        width: 100%;
    }
    .page-promotions__detail-title {
        font-size: 24px;
        text-align: center;
    }
    .page-promotions__detail-content p {
        font-size: 16px;
        text-align: center;
    }
    .page-promotions__btn-secondary {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-promotions__benefits-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-promotions__benefit-icon {
        font-size: 40px;
    }
    .page-promotions__benefit-title {
        font-size: 22px;
    }
    .page-promotions__faq-question {
        padding: 15px 20px;
    }
    .page-promotions__faq-question h3 {
        font-size: 16px;
    }
    .page-promotions__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    .page-promotions__faq-answer {
        padding: 0 20px;
    }
    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 15px 20px !important;
    }

    /* Ensure all images are responsive */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-promotions__container,
    .page-promotions__category-card,
    .page-promotions__detail-item,
    .page-promotions__benefits-list li,
    .page-promotions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__container {
      padding-left: 15px;
      padding-right: 15px;
    }
    .page-promotions__cta-buttons {
      padding-left: 15px;
      padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-promotions__main-title {
        font-size: 30px;
    }
    .page-promotions__intro-text {
        font-size: 16px;
    }
    .page-promotions__cta-button {
        font-size: 16px;
        padding: 12px 25px;
    }
    .page-promotions__section-title {
        font-size: 24px;
    }
    .page-promotions__detail-title {
        font-size: 22px;
    }
    .page-promotions__category-card img {
        
    }
    .page-promotions__card-title {
        font-size: 18px;
    }
    .page-promotions__benefits-list li {
        padding: 25px;
    }
    .page-promotions__benefit-title {
        font-size: 20px;
    }
    .page-promotions__faq-question h3 {
        font-size: 15px;
    }
}