/* style/promotions-latest-offer.css */

:root {
    --primary-color: #FFD700; /* Bright Gold */
    --secondary-color: #8B0000; /* Dark Red */
    --text-color-light: #ffffff;
    --text-color-dark: #333333;
    --background-dark: #121212;
    --card-background: rgba(255, 255, 255, 0.08);
    --border-color: rgba(255, 255, 255, 0.15);
}

.page-promotions-latest-offer {
    font-family: 'Arial', sans-serif;
    color: var(--text-color-light); /* Body background is dark, so text is light */
    background-color: var(--background-dark); /* Inherited from shared.css, explicitly set for clarity */
    line-height: 1.6;
    padding-bottom: 50px; /* Ensure space above footer */
}

/* -------------------------------------------------- */
/* Video Section Styles */
/* -------------------------------------------------- */
.page-promotions-latest-offer__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Desktop: Adjust for fixed header */
  background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
  box-sizing: border-box;
}

.page-promotions-latest-offer__video-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-promotions-latest-offer__video-link {
  display: block;
  text-decoration: none;
  position: relative;
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions-latest-offer__video-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-promotions-latest-offer__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  background-color: #000;
}

.page-promotions-latest-offer__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
  object-fit: cover;
  pointer-events: none; /* Prevent video controls from blocking click event on parent <a> */
}

.page-promotions-latest-offer__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.page-promotions-latest-offer__video-link:hover .page-promotions-latest-offer__video-overlay {
  opacity: 1;
}

.page-promotions-latest-offer__video-click-hint {
  color: var(--text-color-light);
  font-size: 20px;
  font-weight: bold;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
  padding: 15px 30px;
  background: rgba(var(--secondary-color-rgb), 0.8);
  border-radius: 50px;
  white-space: nowrap;
  border: 2px solid var(--primary-color);
}

.page-promotions-latest-offer__video-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}

.page-promotions-latest-offer__play-now-button {
  display: inline-block;
  padding: 18px 50px;
  background: var(--primary-color);
  color: var(--background-dark);
  text-decoration: none;
  border-radius: 50px;
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-promotions-latest-offer__play-now-button:hover {
  background: var(--secondary-color);
  color: var(--text-color-light);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-promotions-latest-offer__play-now-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* -------------------------------------------------- */
/* H1 Title Section Styles */
/* -------------------------------------------------- */
.page-promotions-latest-offer__title-section {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(90deg, var(--secondary-color), #a00000);
    color: var(--text-color-light);
    border-bottom: 2px solid var(--primary-color);
    box-sizing: border-box;
}

.page-promotions-latest-offer__title-container {
    max-width: 900px;
    margin: 0 auto;
}

.page-promotions-latest-offer__main-title {
    font-size: 3.2em;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-promotions-latest-offer__title-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-promotions-latest-offer__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions-latest-offer__btn-primary {
    background: var(--primary-color);
    color: var(--background-dark);
    border: 2px solid var(--primary-color);
}

.page-promotions-latest-offer__btn-primary:hover {
    background: #e0c200;
    border-color: #e0c200;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-promotions-latest-offer__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--background-dark);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* -------------------------------------------------- */
/* FAQ Section Styles */
/* -------------------------------------------------- */
.page-promotions-latest-offer__faq-section {
    padding: 60px 20px;
    background-color: var(--background-dark);
    color: var(--text-color-light);
    box-sizing: border-box;
}

.page-promotions-latest-offer__faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.page-promotions-latest-offer__faq-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-promotions-latest-offer__faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-promotions-latest-offer__faq-item {
    margin-bottom: 10px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #222222;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.page-promotions-latest-offer__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: #2a2a2a;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    border-bottom: 1px solid transparent; /* Placeholder for active state */
}

.page-promotions-latest-offer__faq-item.active .page-promotions-latest-offer__faq-question {
    background-color: #333333;
    border-bottom-color: var(--primary-color);
}

.page-promotions-latest-offer__faq-question:hover {
    background-color: #383838;
}

.page-promotions-latest-offer__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.5;
    color: var(--primary-color);
    pointer-events: none;
}

.page-promotions-latest-offer__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: 20px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.page-promotions-latest-offer__faq-item.active .page-promotions-latest-offer__faq-toggle {
    transform: rotate(45deg);
    color: var(--text-color-light);
}

.page-promotions-latest-offer__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.4s ease;
    padding: 0 25px;
    opacity: 0;
    background-color: #1e1e1e;
    color: var(--text-color-light);
}

.page-promotions-latest-offer__faq-item.active .page-promotions-latest-offer__faq-answer {
    max-height: 2000px !important;
    padding: 20px 25px !important;
    opacity: 1;
    border-radius: 0 0 10px 10px;
}

.page-promotions-latest-offer__faq-answer p {
    margin: 0;
    font-size: 1em;
    line-height: 1.7;
    color: var(--text-color-light);
}

/* -------------------------------------------------- */
/* Brand Section Styles */
/* -------------------------------------------------- */
.page-promotions-latest-offer__brand-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    color: var(--text-color-light);
    border-top: 2px solid var(--primary-color);
    box-sizing: border-box;
}

.page-promotions-latest-offer__brand-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.page-promotions-latest-offer__brand-title {
    font-size: 2.8em;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--primary-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-promotions-latest-offer__brand-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-promotions-latest-offer__brand-item {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure equal height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-promotions-latest-offer__brand-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-promotions-latest-offer__brand-item-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-promotions-latest-offer__brand-item p {
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-color-light);
}

.page-promotions-latest-offer__brand-item-image {
    width: 100%;
    max-width: 300px; /* Max width for image within item */
    height: auto;
    display: block;
    margin: 20px auto 0 auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* -------------------------------------------------- */
/* Blog Section Styles */
/* -------------------------------------------------- */
.page-promotions-latest-offer__blog-section {
    padding: 60px 20px;
    background-color: var(--background-dark);
    color: var(--text-color-light);
    box-sizing: border-box;
}

.page-promotions-latest-offer__blog-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.page-promotions-latest-offer__blog-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--primary-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

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

.page-promotions-latest-offer__blog-item {
    background-color: var(--card-background);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    text-align: left;
}

.page-promotions-latest-offer__blog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-promotions-latest-offer__blog-link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding-bottom: 20px; /* Padding for content below image */
}

.page-promotions-latest-offer__blog-item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.page-promotions-latest-offer__blog-item-title {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--primary-color);
    padding: 0 20px;
    margin-bottom: 10px;
}

.page-promotions-latest-offer__blog-item-excerpt {
    font-size: 0.95em;
    color: var(--text-color-light);
    padding: 0 20px;
    margin-bottom: 15px;
}

.page-promotions-latest-offer__blog-item-date {
    font-size: 0.85em;
    color: #aaaaaa;
    padding: 0 20px;
    display: block;
}

/* -------------------------------------------------- */
/* Responsive Design */
/* -------------------------------------------------- */
@media (max-width: 1024px) {
    .page-promotions-latest-offer__main-title {
        font-size: 2.8em;
    }
    .page-promotions-latest-offer__title-description {
        font-size: 1.2em;
    }
    .page-promotions-latest-offer__faq-title,
    .page-promotions-latest-offer__brand-title,
    .page-promotions-latest-offer__blog-title {
        font-size: 2.2em;
    }
    .page-promotions-latest-offer__brand-item-title {
        font-size: 1.6em;
    }
    .page-promotions-latest-offer__blog-item-title {
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    /* General mobile adjustments */
    .page-promotions-latest-offer {
        font-size: 15px;
        line-height: 1.65;
    }
    .page-promotions-latest-offer h1, .page-promotions-latest-offer h2, .page-promotions-latest-offer h3 {
        word-wrap: break-word;
    }

    /* Video Section Mobile */
    .page-promotions-latest-offer__video-section {
        padding-top: 10px !important; /* Mobile: Adjust for fixed header */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-promotions-latest-offer__video-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden !important;
    }
    .page-promotions-latest-offer__video-link {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-promotions-latest-offer__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border-radius: 8px;
        overflow: hidden !important;
    }
    .page-promotions-latest-offer__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 8px;
        object-fit: contain; /* Use contain to ensure video is fully visible */
    }
    .page-promotions-latest-offer__video-overlay {
        border-radius: 8px;
    }
    .page-promotions-latest-offer__video-click-hint {
        font-size: 16px !important;
        padding: 10px 20px !important;
        white-space: normal !important;
        text-align: center;
    }
    .page-promotions-latest-offer__video-cta {
        margin-top: 30px;
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .page-promotions-latest-offer__play-now-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 15px 30px !important;
        font-size: 18px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Title Section Mobile */
    .page-promotions-latest-offer__title-section {
        padding: 60px 15px;
    }
    .page-promotions-latest-offer__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-promotions-latest-offer__title-description {
        font-size: 1.1em;
        margin-bottom: 30px;
    }
    .page-promotions-latest-offer__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-promotions-latest-offer__cta-button {
        width: 100%;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 25px;
        font-size: 1em;
    }

    /* FAQ Section Mobile */
    .page-promotions-latest-offer__faq-section {
        padding: 40px 15px;
    }
    .page-promotions-latest-offer__faq-title {
        font-size: 2em;
        margin-bottom: 30px;
    }
    .page-promotions-latest-offer__faq-question {
        padding: 15px 20px;
    }
    .page-promotions-latest-offer__faq-question h3 {
        font-size: 1.1em;
    }
    .page-promotions-latest-offer__faq-toggle {
        font-size: 24px;
        width: 26px;
        height: 26px;
        margin-left: 15px;
    }
    .page-promotions-latest-offer__faq-answer {
        padding: 0 20px;
    }
    .page-promotions-latest-offer__faq-item.active .page-promotions-latest-offer__faq-answer {
        padding: 15px 20px !important;
    }

    /* Brand Section Mobile */
    .page-promotions-latest-offer__brand-section {
        padding: 60px 15px;
    }
    .page-promotions-latest-offer__brand-title {
        font-size: 2.2em;
        margin-bottom: 40px;
    }
    .page-promotions-latest-offer__brand-content {
        grid-template-columns: 1fr;
    }
    .page-promotions-latest-offer__brand-item {
        padding: 25px;
    }
    .page-promotions-latest-offer__brand-item-title {
        font-size: 1.5em;
    }
    .page-promotions-latest-offer__brand-item p {
        font-size: 1em;
    }
    .page-promotions-latest-offer__brand-item-image {
        max-width: 250px;
    }

    /* Blog Section Mobile */
    .page-promotions-latest-offer__blog-section {
        padding: 40px 15px;
    }
    .page-promotions-latest-offer__blog-title {
        font-size: 2em;
        margin-bottom: 30px;
    }
    .page-promotions-latest-offer__blog-list {
        grid-template-columns: 1fr;
    }
    .page-promotions-latest-offer__blog-item-image {
        height: 180px;
    }
    .page-promotions-latest-offer__blog-item-title {
        font-size: 1.2em;
    }
    .page-promotions-latest-offer__blog-item-excerpt {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .page-promotions-latest-offer__main-title {
        font-size: 1.8em;
    }
    .page-promotions-latest-offer__title-description {
        font-size: 1em;
    }
    .page-promotions-latest-offer__play-now-button {
        font-size: 16px !important;
        padding: 12px 25px !important;
    }
    .page-promotions-latest-offer__faq-title,
    .page-promotions-latest-offer__brand-title,
    .page-promotions-latest-offer__blog-title {
        font-size: 1.8em;
    }
    .page-promotions-latest-offer__faq-question h3 {
        font-size: 1em;
    }
    .page-promotions-latest-offer__brand-item-title {
        font-size: 1.3em;
    }
    .page-promotions-latest-offer__blog-item-title {
        font-size: 1.1em;
    }
}

/* Ensure all images are responsive and do not overflow */
.page-promotions-latest-offer img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Ensure all video elements are responsive and do not overflow */
.page-promotions-latest-offer video {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

/* General container responsiveness */
.page-promotions-latest-offer__section,
.page-promotions-latest-offer__container,
.page-promotions-latest-offer__card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

@media (max-width: 768px) {
    .page-promotions-latest-offer img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-promotions-latest-offer video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-promotions-latest-offer__section,
    .page-promotions-latest-offer__container,
    .page-promotions-latest-offer__card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
}