/* style/resources-nustar-promo-maximization-guide.css */

/* Base styles for the page content, ensuring header offset and dark text for light body */
.page-resources-nustar-promo-maximization-guide {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    color: #333333; /* Dark text for light body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4; /* Explicitly setting for clarity, though body is already this */
}

/* Hero Section */
.page-resources-nustar-promo-maximization-guide__hero-section {
    position: relative;
    overflow: hidden;
    color: #ffffff; /* White text for hero content over image */
    text-align: center;
    padding: 0; /* Remove default padding as image will fill */
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-resources-nustar-promo-maximization-guide__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    min-height: 300px; /* Ensure image is not too small */
}

.page-resources-nustar-promo-maximization-guide__hero-container {
    position: relative;
    width: 100%;
    max-width: 1920px; /* Match hero image max width */
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px; /* Minimum height for hero section */
}

.page-resources-nustar-promo-maximization-guide__hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
    max-width: 900px;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark overlay for text readability */
    border-radius: 10px;
    margin: 20px;
}

.page-resources-nustar-promo-maximization-guide__hero-title {
    font-size: 2.8em;
    margin-bottom: 15px;
    color: var(--main-color, #FFD700); /* Gold color for title */
    font-weight: bold;
    line-height: 1.2;
}

.page-resources-nustar-promo-maximization-guide__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-resources-nustar-promo-maximization-guide__hero-cta-button {
    display: inline-block;
    background-color: var(--auxiliary-color, #8B0000); /* Red button */
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    min-width: 200px; /* Ensure button is not too small */
    text-align: center;
}

.page-resources-nustar-promo-maximization-guide__hero-cta-button:hover {
    background-color: #a00000; /* Darker red on hover */
}

/* Content Area */
.page-resources-nustar-promo-maximization-guide__content-area {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    gap: 40px;
}

.page-resources-nustar-promo-maximization-guide__article-wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 40px;
}

.page-resources-nustar-promo-maximization-guide__table-of-contents {
    flex: 0 0 280px; /* Fixed width for TOC */
    padding: 20px;
    background-color: #ffffff; /* White background for TOC */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    height: fit-content;
    position: sticky;
    top: calc(var(--header-offset, 120px) + 20px); /* Stick below header */
}

.page-resources-nustar-promo-maximization-guide__toc-title {
    font-size: 1.5em;
    color: var(--auxiliary-color, #8B0000);
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources-nustar-promo-maximization-guide__toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-resources-nustar-promo-maximization-guide__toc-list-item {
    margin-bottom: 10px;
}

.page-resources-nustar-promo-maximization-guide__toc-link {
    text-decoration: none;
    color: #555555;
    font-size: 1.05em;
    transition: color 0.3s ease, transform 0.3s ease;
    display: block;
    padding: 5px 0;
}

.page-resources-nustar-promo-maximization-guide__toc-link:hover {
    color: var(--main-color, #FFD700);
    transform: translateX(5px);
}

.page-resources-nustar-promo-maximization-guide__article-content {
    flex-grow: 1;
    max-width: 800px; /* Optimal reading width */
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.page-resources-nustar-promo-maximization-guide__section-title {
    font-size: 2em;
    color: var(--auxiliary-color, #8B0000);
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--main-color, #FFD700);
    padding-bottom: 10px;
}

.page-resources-nustar-promo-maximization-guide__subsection-title {
    font-size: 1.5em;
    color: #333333;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-resources-nustar-promo-maximization-guide__paragraph {
    margin-bottom: 1.5em;
    font-size: 1.1em;
    line-height: 1.7;
}

.page-resources-nustar-promo-maximization-guide__list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 1.5em;
}

.page-resources-nustar-promo-maximization-guide__list-item {
    margin-bottom: 0.8em;
    font-size: 1.1em;
    line-height: 1.6;
}

.page-resources-nustar-promo-maximization-guide__blockquote {
    background-color: #fffbe6; /* Light gold background for blockquote */
    border-left: 5px solid var(--main-color, #FFD700);
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
}

.page-resources-nustar-promo-maximization-guide__blockquote-text {
    font-style: italic;
    color: #555555;
    font-size: 1.1em;
}

.page-resources-nustar-promo-maximization-guide__article-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
}

/* FAQ Section */
.page-resources-nustar-promo-maximization-guide__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.page-resources-nustar-promo-maximization-guide__faq-question {
    font-size: 1.3em;
    color: var(--auxiliary-color, #8B0000);
    margin-bottom: 10px;
}

.page-resources-nustar-promo-maximization-guide__faq-answer {
    font-size: 1.1em;
    color: #555555;
}

/* CTA Section */
.page-resources-nustar-promo-maximization-guide__cta-section {
    text-align: center;
    background-color: #fcfcfc; /* Light background for CTA */
    padding: 40px;
    margin-top: 50px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources-nustar-promo-maximization-guide__cta-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    min-width: 200px;
    min-height: 200px;
}

.page-resources-nustar-promo-maximization-guide__cta-text {
    font-size: 1.5em;
    color: #333333;
    margin-bottom: 25px;
    font-weight: bold;
}

.page-resources-nustar-promo-maximization-guide__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-resources-nustar-promo-maximization-guide__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    min-width: 180px;
    text-align: center;
}

.page-resources-nustar-promo-maximization-guide__cta-button--register {
    background-color: var(--main-color, #FFD700); /* Gold button */
    color: #8B0000; /* Dark red text */
}

.page-resources-nustar-promo-maximization-guide__cta-button--register:hover {
    background-color: #e6c200; /* Darker gold */
    transform: translateY(-2px);
}

.page-resources-nustar-promo-maximization-guide__cta-button--login {
    background-color: var(--auxiliary-color, #8B0000); /* Red button */
    color: #ffffff;
    border: 2px solid var(--auxiliary-color, #8B0000);
}

.page-resources-nustar-promo-maximization-guide__cta-button--login:hover {
    background-color: #a00000; /* Darker red */
    transform: translateY(-2px);
}

.page-resources-nustar-promo-maximization-guide__back-link-wrapper {
    text-align: center;
    margin-top: 50px;
}

.page-resources-nustar-promo-maximization-guide__back-link {
    display: inline-block;
    color: var(--auxiliary-color, #8B0000);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.page-resources-nustar-promo-maximization-guide__back-link:hover {
    color: var(--main-color, #FFD700);
    text-decoration: underline;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-nustar-promo-maximization-guide__article-wrapper {
        flex-direction: column;
    }

    .page-resources-nustar-promo-maximization-guide__table-of-contents {
        flex: none;
        width: 100%;
        position: static; /* Remove sticky on smaller screens */
        margin-bottom: 40px;
    }

    .page-resources-nustar-promo-maximization-guide__content-area {
        margin: 20px auto;
    }
}

@media (max-width: 768px) {
    .page-resources-nustar-promo-maximization-guide {
        padding-top: var(--header-offset, 120px); /* Ensure mobile header offset */
    }

    .page-resources-nustar-promo-maximization-guide__hero-title {
        font-size: 2em;
    }

    .page-resources-nustar-promo-maximization-guide__hero-description {
        font-size: 1em;
    }

    .page-resources-nustar-promo-maximization-guide__hero-cta-button {
        padding: 12px 25px;
        font-size: 1em;
        min-width: unset;
    }

    .page-resources-nustar-promo-maximization-guide__article-content {
        padding: 20px;
    }

    .page-resources-nustar-promo-maximization-guide__section-title {
        font-size: 1.8em;
    }

    .page-resources-nustar-promo-maximization-guide__subsection-title {
        font-size: 1.3em;
    }

    .page-resources-nustar-promo-maximization-guide__paragraph,
    .page-resources-nustar-promo-maximization-guide__list-item,
    .page-resources-nustar-promo-maximization-guide__blockquote-text,
    .page-resources-nustar-promo-maximization-guide__faq-answer {
        font-size: 1em;
    }

    .page-resources-nustar-promo-maximization-guide__cta-text {
        font-size: 1.2em;
    }

    .page-resources-nustar-promo-maximization-guide__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-resources-nustar-promo-maximization-guide__cta-button {
        width: 100%;
        max-width: 250px; /* Limit button width on small screens */
    }

    /* Mobile content image constraint to prevent overflow */
    .page-resources-nustar-promo-maximization-guide__content-area img,
    .page-resources-nustar-promo-maximization-guide__article-image,
    .page-resources-nustar-promo-maximization-guide__cta-image {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Still ensure minimum size */
        min-height: 200px; /* Still ensure minimum size */
    }
}

/* Ensure images within the article content area are responsive and not too small */
.page-resources-nustar-promo-maximization-guide__article-content img {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
}