/* 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 {
    background-color: var(--color-background);
    color: var(--color-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-promotions__section-title {
    font-size: 3em;
    font-weight: bold;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 140, 26, 0.5);
}

.page-promotions__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--color-text-main);
    opacity: 0.9;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    margin-bottom: 30px;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.page-promotions__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.page-promotions__hero-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 15px rgba(255, 165, 58, 0.7);
}

.page-promotions__hero-description {
    font-size: 1.2em;
    color: var(--color-text-main);
    margin-bottom: 30px;
    opacity: 0.9;
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-claim {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.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, 140, 26, 0.4);
}

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

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

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

/* Highlight Promos Section */
.page-promotions__highlight-promos-section {
    padding: 60px 0;
    background-color: rgba(var(--color-primary), 0.05);
}

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

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

.page-promotions__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 20px var(--color-glow);
}

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

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

.page-promotions__promo-card-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-promotions__promo-card-title a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-promotions__promo-card-title a:hover {
    color: var(--color-glow);
}

.page-promotions__promo-card-description {
    font-size: 0.95em;
    color: var(--color-text-main);
    margin-bottom: 20px;
    opacity: 0.8;
    flex-grow: 1;
}

.page-promotions__btn-claim {
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-deep-orange) 100%);
    color: var(--color-text-main);
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 1em;
    font-weight: bold;
    align-self: flex-start;
    box-shadow: 0 2px 10px rgba(255, 140, 26, 0.3);
}

.page-promotions__btn-claim:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 26, 0.5);
}

/* How To Claim Section */
.page-promotions__how-to-claim-section {
    padding: 60px 0;
}

.page-promotions__steps-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-promotions__steps-image {
    flex: 1 1 400px;
    max-width: 500px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.page-promotions__steps-list {
    flex: 1 1 450px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-promotions__step-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

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

.page-promotions__step-item:hover {
    transform: translateX(5px);
}

.page-promotions__step-item h3 {
    font-size: 1.3em;
    color: var(--color-primary);
    margin-top: 0;
    margin-bottom: 10px;
}

.page-promotions__step-item p {
    font-size: 0.95em;
    color: var(--color-text-main);
    opacity: 0.8;
}

.page-promotions__step-item p a {
    color: var(--color-secondary);
    text-decoration: underline;
}

.page-promotions__step-item p a:hover {
    color: var(--color-glow);
}

/* FAQ Section */
.page-promotions__faq-section {
    padding: 60px 0;
    background-color: rgba(var(--color-primary), 0.05);
}

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

details.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  background: var(--color-card-bg);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

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;
  color: var(--color-text-main);
  font-weight: 600;
}

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(var(--color-primary), 0.1);
}

.page-promotions__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  line-height: 1.5;
  text-align: left;
  color: var(--color-secondary);
}

.page-promotions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
  transition: transform 0.3s ease;
}

details[open] .page-promotions__faq-toggle {
    transform: rotate(45deg);
}

details.page-promotions__faq-item .page-promotions__faq-answer {
  padding: 0 25px 20px;
  background: rgba(var(--color-primary), 0.03);
  border-radius: 0 0 8px 8px;
  color: var(--color-text-main);
  opacity: 0.8;
  font-size: 0.95em;
}

/* Universal Image & Button Responsive */
.page-promotions img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.page-promotions__hero-cta-buttons,
.page-promotions__button-group,
.page-promotions__btn-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Media Queries for Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .page-promotions__container,
    .page-promotions__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-promotions__hero-section {
        padding-top: 10px !important; /* Ensure small padding, not header offset */
        padding-bottom: 30px;
    }

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

    .page-promotions__hero-title {
        font-size: clamp(2em, 8vw, 2.5em);
        margin-bottom: 15px;
    }

    .page-promotions__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }

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

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__btn-claim,
    .page-promotions a[class*="button"],
    .page-promotions a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-promotions__section-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

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

    /* Highlight Promos Section */
    .page-promotions__highlight-promos-section {
        padding: 40px 0;
    }

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

    .page-promotions__promo-card-image {
        height: 180px;
    }

    .page-promotions__promo-card-content {
        padding: 20px;
    }

    .page-promotions__promo-card-title {
        font-size: 1.3em;
        margin-bottom: 10px;
    }

    .page-promotions__promo-card-description {
        font-size: 0.9em;
        margin-bottom: 15px;
    }

    /* How To Claim Section */
    .page-promotions__how-to-claim-section {
        padding: 40px 0;
    }

    .page-promotions__steps-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .page-promotions__steps-image {
        max-width: 100% !important;
        height: auto !important;
        order: -1; /* Image appears above list on mobile */
    }

    .page-promotions__steps-list {
        width: 100%;
    }

    .page-promotions__step-item {
        padding: 18px 20px;
        margin-bottom: 10px;
    }

    .page-promotions__step-item h3 {
        font-size: 1.2em;
    }

    .page-promotions__step-item p {
        font-size: 0.9em;
    }

    /* FAQ Section */
    .page-promotions__faq-section {
        padding: 40px 0;
    }

    details.page-promotions__faq-item summary.page-promotions__faq-question {
        padding: 15px 20px;
    }

    .page-promotions__faq-qtext {
        font-size: 1em;
    }

    .page-promotions__faq-toggle {
        font-size: 20px;
        width: 24px;
    }

    details.page-promotions__faq-item .page-promotions__faq-answer {
        padding: 0 20px 15px;
    }

    /* General image and container rules for mobile */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-promotions__hero-section,
    .page-promotions__highlight-promos-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__faq-section,
    .page-promotions__promo-card,
    .page-promotions__steps-wrapper,
    .page-promotions__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__hero-cta-buttons {
        gap: 10px;
    }
}

/* Media Queries for Tablet (max-width: 1024px) - Adjustments for larger mobile/small tablet */
@media (max-width: 1024px) {
    .page-promotions__container {
        padding: 20px 30px;
    }

    .page-promotions__section-title {
        font-size: 2.5em;
    }

    .page-promotions__hero-title {
        font-size: clamp(2.2em, 6vw, 3em);
    }

    .page-promotions__promos-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }

    .page-promotions__steps-wrapper {
        gap: 30px;
    }

    .page-promotions__steps-image {
        max-width: 450px;
    }

    .page-promotions__faq-list {
        max-width: 800px;
    }
}