/* style/promotions.css */

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

.page-promotions {
    font-family: Arial, sans-serif;
    color: var(--color-text-main);
    background-color: var(--color-background);
    line-height: 1.6;
}

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

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

.page-promotions__section-description {
    font-size: 18px;
    color: var(--color-text-main);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-promotions__hero-section {
    padding-top: 10px; /* Adhering to the 10px top spacing for first section */
    background-color: var(--color-background);
    text-align: center;
    overflow: hidden;
    position: relative;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px; /* Limit height for aesthetic */
    margin-bottom: 30px;
}

.page-promotions__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 50px;
}

.page-promotions__hero-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-promotions__hero-description {
    font-size: 20px;
    color: var(--color-text-main);
    margin-bottom: 40px;
}

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

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-promotions__btn-primary {
    background: linear-gradient(180deg, var(--color-secondary) 0%, var(--color-deep-orange) 100%);
    color: var(--color-text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 130, 26, 0.4);
}

.page-promotions__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 130, 26, 0.6);
}

.page-promotions__btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    box-shadow: 0 4px 10px rgba(255, 140, 26, 0.2);
}

.page-promotions__btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-background);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 140, 26, 0.4);
}

.page-promotions__btn-small {
    padding: 10px 20px;
    font-size: 16px;
    background: linear-gradient(180deg, var(--color-secondary) 0%, var(--color-deep-orange) 100%);
    color: var(--color-text-main);
    border: none;
    border-radius: 5px;
}

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

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

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

.page-promotions__promotion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 140, 26, 0.4);
}

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

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

.page-promotions__card-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-promotions__card-text {
    font-size: 16px;
    color: var(--color-text-main);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Why Join Section */
.page-promotions__why-join {
    background-color: var(--color-deep-orange);
    color: var(--color-text-main);
}

.page-promotions__why-join-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-promotions__why-join-text {
    flex: 1;
}

.page-promotions__why-join-text p {
    font-size: 18px;
    margin-bottom: 20px;
}

.page-promotions__why-join-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-promotions__why-join-list li {
    font-size: 17px;
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
}

.page-promotions__why-join-list li::before {
    content: '✓';
    color: var(--color-glow);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 20px;
    top: -2px;
}

.page-promotions__why-join-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-promotions__why-join-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

details.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  background: var(--color-card-bg);
  color: var(--color-text-main);
}
details.page-promotions__faq-item summary.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-promotions__faq-item summary.page-promotions__faq-question::-webkit-details-marker {
  display: none;
}
details.page-promotions__faq-item summary.page-promotions__faq-question:hover {
  background: rgba(255, 140, 26, 0.1); /* Using a transparent primary color for hover */
}
.page-promotions__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--color-primary);
}
.page-promotions__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--color-glow);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-promotions__faq-item .page-promotions__faq-answer {
  padding: 0 25px 25px;
  background: var(--color-card-bg);
  border-radius: 0 0 10px 10px;
  color: var(--color-text-main);
}
details.page-promotions__faq-item .page-promotions__faq-answer p {
    font-size: 16px;
}

/* Responsive Styles */

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .page-promotions__section {
        padding: 40px 15px;
    }

    .page-promotions__section-title {
        font-size: 30px;
    }

    .page-promotions__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-promotions__hero-section {
        padding-top: 10px !important;
    }

    .page-promotions__hero-image {
        max-height: 300px;
        margin-bottom: 20px;
    }

    .page-promotions__hero-title {
        font-size: 36px;
    }

    .page-promotions__hero-description {
        font-size: 18px;
        margin-bottom: 30px;
    }

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

    /* Buttons mobile */
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__btn-small {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 16px;
    }

    /* Image mobile */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

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

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

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

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

    .page-promotions__why-join-content {
        flex-direction: column;
    }

    .page-promotions__why-join-text p,
    .page-promotions__why-join-list li {
        font-size: 16px;
    }

    .page-promotions__why-join-list li::before {
        font-size: 18px;
    }

    /* FAQ mobile */
    details.page-promotions__faq-item summary.page-promotions__faq-question { padding: 15px; }
    .page-promotions__faq-qtext { font-size: 16px; }
    .page-promotions__faq-toggle { font-size: 24px; width: 24px; height: 24px; margin-left: 10px;}
    details.page-promotions__faq-item .page-promotions__faq-answer { padding: 0 15px 15px; }
    details.page-promotions__faq-item .page-promotions__faq-answer p { font-size: 15px; }
}

/* General container responsiveness for mobile */
@media (max-width: 768px) {
    .page-promotions__section,
    .page-promotions__hero-content,
    .page-promotions__hero-cta-buttons,
    .page-promotions__promotions-grid,
    .page-promotions__why-join-content,
    .page-promotions__faq-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__why-join-list {
        padding-left: 0; /* Adjust for mobile list */
    }
}