/* style/resources-promotions-analysis.css */

/* Base styles for the page content */
.page-resources-promotions-analysis {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Dark text for light body background #f4f4f4 */
    line-height: 1.6;
    background-color: #f4f4f4; /* Ensure consistency with body background if not set globally */
}

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

.page-resources-promotions-analysis__section {
    padding: 60px 0;
    background-color: #ffffff;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources-promotions-analysis__section:nth-child(even) {
    background-color: #f9f9f9;
}

.page-resources-promotions-analysis__section-title {
    font-size: 32px;
    color: #007bff; /* Primary brand color */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    position: relative;
    padding-bottom: 15px;
}

.page-resources-promotions-analysis__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #ffc107; /* Secondary brand color */
    border-radius: 2px;
}

.page-resources-promotions-analysis__image-content {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* HERO Section */
.page-resources-promotions-analysis__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); /* Fixed header spacing */
    background: linear-gradient(135deg, #007bff, #1a9cff); /* Gradient with primary color */
    color: #ffffff;
    overflow: hidden; /* Ensure content does not overflow */
}

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

.page-resources-promotions-analysis__hero-image {
    width: 100%;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.page-resources-promotions-analysis__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources-promotions-analysis__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-resources-promotions-analysis__main-title {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-resources-promotions-analysis__description {
    font-size: 20px;
    margin-bottom: 30px;
    color: #f0f8ff;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-promotions-analysis__cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: #ffc107; /* Secondary brand color */
    color: #333333; /* Dark text for gold background */
    text-decoration: none;
    border-radius: 50px;
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-resources-promotions-analysis__cta-button:hover {
    background: #e0a800; /* Slightly darker gold on hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Lists */
.page-resources-promotions-analysis__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-resources-promotions-analysis__list li {
    background-color: #fefefe;
    margin-bottom: 15px;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-resources-promotions-analysis__list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.page-resources-promotions-analysis__list-title {
    font-size: 22px;
    color: #007bff;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-resources-promotions-analysis__list p {
    font-size: 16px;
    color: #555555;
    margin-bottom: 0;
}

.page-resources-promotions-analysis__numbered-list {
    list-style: none;
    padding: 0;
    counter-reset: my-awesome-counter;
}

.page-resources-promotions-analysis__numbered-list li {
    counter-increment: my-awesome-counter;
    position: relative;
    padding-left: 50px;
    margin-bottom: 25px;
    background-color: #fefefe;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-resources-promotions-analysis__numbered-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.page-resources-promotions-analysis__numbered-list li::before {
    content: counter(my-awesome-counter);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    background-color: #007bff; /* Primary brand color */
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-resources-promotions-analysis__numbered-list .page-resources-promotions-analysis__list-title {
    margin-left: 20px; /* Adjust for counter */
}

/* CTA Buttons Group */
.page-resources-promotions-analysis__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.page-resources-promotions-analysis__btn-primary,
.page-resources-promotions-analysis__btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources-promotions-analysis__btn-primary {
    background: #007bff; /* Primary brand color */
    color: #ffffff;
}

.page-resources-promotions-analysis__btn-primary:hover {
    background: #0056b3; /* Darker primary */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-promotions-analysis__btn-secondary {
    background: #ffffff;
    color: #007bff; /* Primary brand color */
    border: 2px solid #007bff;
}

.page-resources-promotions-analysis__btn-secondary:hover {
    background: #e0e0e0;
    color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-resources-promotions-analysis__faq-list {
  margin-top: 40px;
}

.page-resources-promotions-analysis__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-resources-promotions-analysis__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources-promotions-analysis__faq-item.active .page-resources-promotions-analysis__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: #007bff;
}

.page-resources-promotions-analysis__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-resources-promotions-analysis__faq-question:active {
  background: #eeeeee;
}

.page-resources-promotions-analysis__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #333333;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-resources-promotions-analysis__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #007bff; /* Primary brand color */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-resources-promotions-analysis__faq-item.active .page-resources-promotions-analysis__faq-toggle {
  color: #ffc107; /* Secondary brand color when active */
  transform: rotate(45deg); /* Plus to X effect */
}

.page-resources-promotions-analysis__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: #fcfcfc;
  border-top: none;
  border-left: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  border-radius: 0 0 8px 8px;
}

.page-resources-promotions-analysis__faq-item.active .page-resources-promotions-analysis__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px 25px !important;
  opacity: 1;
}

.page-resources-promotions-analysis__faq-answer p {
  margin: 0;
  font-size: 16px;
  color: #555555;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-promotions-analysis__main-title {
        font-size: 40px;
    }
    .page-resources-promotions-analysis__description {
        font-size: 18px;
    }
    .page-resources-promotions-analysis__section-title {
        font-size: 28px;
    }
    .page-resources-promotions-analysis__cta-button {
        padding: 15px 35px;
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .page-resources-promotions-analysis__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header spacing */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-resources-promotions-analysis__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-resources-promotions-analysis__description {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .page-resources-promotions-analysis__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        margin-top: 15px;
    }

    .page-resources-promotions-analysis__section {
        padding: 40px 0;
        margin-bottom: 15px;
    }

    .page-resources-promotions-analysis__container {
        padding: 0 15px;
        max-width: 100% !important; /* Ensure container does not overflow */
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-resources-promotions-analysis__section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    /* Images responsive */
    .page-resources-promotions-analysis img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin: 20px auto !important;
    }

    /* List items */
    .page-resources-promotions-analysis__list li,
    .page-resources-promotions-analysis__numbered-list li {
        padding: 20px;
        margin-bottom: 10px;
    }

    .page-resources-promotions-analysis__list-title {
        font-size: 18px;
    }

    .page-resources-promotions-analysis__list p {
        font-size: 15px;
    }

    .page-resources-promotions-analysis__numbered-list li::before {
        width: 30px;
        height: 30px;
        font-size: 16px;
        left: -5px; /* Adjust position for smaller screen */
    }

    .page-resources-promotions-analysis__numbered-list .page-resources-promotions-analysis__list-title {
        margin-left: 15px;
    }

    /* CTA Buttons Group responsive */
    .page-resources-promotions-analysis__cta-buttons {
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
        padding: 0 15px;
    }

    .page-resources-promotions-analysis__btn-primary,
    .page-resources-promotions-analysis__btn-secondary {
        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;
    }

    /* FAQ responsive */
    .page-resources-promotions-analysis__faq-question {
      padding: 15px 20px;
    }
    .page-resources-promotions-analysis__faq-question h3 {
      font-size: 16px;
    }
    .page-resources-promotions-analysis__faq-toggle {
      font-size: 24px;
      width: 25px;
      height: 25px;
      margin-left: 15px;
    }
    .page-resources-promotions-analysis__faq-answer {
      padding: 0 20px;
    }
    .page-resources-promotions-analysis__faq-item.active .page-resources-promotions-analysis__faq-answer {
      padding: 15px 20px !important;
    }
}