/* style/support.css */
:root {
    --primary-color: #113B7A;
    --secondary-color: #1D5FD1;
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --card-bg: #10233F;
    --text-main: #F3F8FF;
    --text-secondary: #AFC4E8;
    --border-color: #244D84;
    --glow-color: #4FA8FF;
    --gold-color: #F2C14E;
    --divider-color: #1B3357;
    --deep-navy: #08162B;
}

.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color for the page */
    background-color: var(--deep-navy); /* Inherit from body or set a base */
}

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

.page-support__section {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.page-support__section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-support__section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* HERO Section */
.page-support__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    background: var(--deep-navy);
    color: var(--text-main);
}

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

.page-support__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-support__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-support__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-support__main-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--gold-color);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.7);
}

.page-support__hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 900px;
    margin: 0 auto 30px;
}

.page-support__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: var(--text-main);
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
}

.page-support__cta-button:hover {
    background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-support__cta-button--center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;
    max-width: 300px; /* Constrain width for center button */
}

/* General Content Sections */
.page-support__overview-section, .page-support__security-contact-section {
    background: var(--deep-navy);
}

.page-support__dark-bg {
    background: var(--deep-navy);
    color: var(--text-main);
}

.page-support__text-block {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.page-support__text-link {
    color: var(--glow-color);
    text-decoration: none;
}

.page-support__text-link:hover {
    text-decoration: underline;
}

/* Quick Access Section */
.page-support__quick-access-section {
    padding-bottom: 80px;
}

.page-support__quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-support__quick-link-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 250px;
}

.page-support__quick-link-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.page-support__quick-link-item img {
    max-width: 100%; /* Ensure images are responsive */
    height: auto;
    margin-bottom: 15px;
    border-radius: 5px;
    object-fit: cover;
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
}

.page-support__quick-link-title {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-support__link-button {
    display: inline-block;
    padding: 10px 25px;
    background: var(--button-gradient);
    color: var(--text-main);
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.95rem;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: auto; /* Push button to bottom */
}

.page-support__link-button:hover {
    background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
    transform: translateY(-1px);
}

.page-support__backup-text {
    text-align: center;
    margin-top: 30px;
    font-style: italic;
    color: var(--text-secondary);
}

/* Game Guides Section */
.page-support__game-guides-section {
    background: var(--deep-navy);
}

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

.page-support__game-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-support__game-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.page-support__game-item img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 5px;
    object-fit: cover;
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
}

.page-support__game-title {
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-support__game-item p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Promotions Section */
.page-support__promotions-section {
    padding-bottom: 80px;
}

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

.page-support__promotion-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-support__promotion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.page-support__promotion-card img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 5px;
    object-fit: cover;
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
}

.page-support__promotion-title {
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-support__promotion-card p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Security & Contact Section */
.page-support__info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-support__info-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
}

.page-support__info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.page-support__info-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 5px;
    object-fit: cover;
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
}

.page-support__info-title {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-support__info-item p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* FAQ Section */
.page-support__faq-section {
    padding-bottom: 80px;
}

.page-support__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

details.page-support__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--card-bg);
}

details.page-support__faq-item summary.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
}

details.page-support__faq-item summary.page-support__faq-question::-webkit-details-marker {
    display: none;
}

details.page-support__faq-item summary.page-support__faq-question:hover {
    background: rgba(var(--primary-color), 0.8);
}

.page-support__faq-qtext {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--text-main);
}

.page-support__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--gold-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}

details.page-support__faq-item .page-support__faq-answer {
    padding: 0 20px 20px;
    background: rgba(var(--card-bg), 0.8);
    border-radius: 0 0 5px 5px;
    color: var(--text-secondary);
}

/* Blog Section */
.page-support__blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

.page-support__blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.page-support__blog-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.page-support__blog-card img {
    width: 100%;
    height: 200px; /* Fixed height for blog card images */
    object-fit: cover;
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
}

.page-support__blog-card h3 {
    font-size: 1.3rem;
    color: var(--text-main);
    margin: 15px 15px 10px;
    font-weight: bold;
}

.page-support__blog-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: 0 15px 15px;
    flex-grow: 1;
}

.page-support__blog-card time {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0 15px 15px;
    opacity: 0.7;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .page-support__section {
        padding: 40px 0;
    }

    .page-support__container {
        padding: 0 15px;
    }

    .page-support__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-support__hero-image img {
        border-radius: 4px;
    }

    .page-support__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .page-support__hero-description {
        font-size: 1rem;
    }

    .page-support__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .page-support__cta-button--center {
        max-width: 100% !important;
    }

    .page-support__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .page-support__section-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-support__quick-links-grid,
    .page-support__game-list,
    .page-support__promotions-grid,
    .page-support__info-grid,
    .page-support__blog-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-support__quick-link-item,
    .page-support__game-item,
    .page-support__promotion-card,
    .page-support__info-item,
    .page-support__blog-card {
        padding: 20px;
    }

    .page-support__quick-link-item img,
    .page-support__game-item img,
    .page-support__promotion-card img,
    .page-support__info-item img,
    .page-support__blog-card img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px;
        min-height: 200px;
    }

    .page-support__quick-link-title,
    .page-support__game-title,
    .page-support__promotion-title,
    .page-support__info-title,
    .page-support__blog-title {
        font-size: 1.2rem;
    }

    .page-support__link-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-support__faq-qtext {
        font-size: 15px;
    }

    .page-support__faq-toggle {
        font-size: 20px;
    }

    details.page-support__faq-item .page-support__faq-answer {
        padding: 0 15px 15px;
    }
    
    /* Ensure all content area images are at least 200px wide */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px;
        min-height: 200px;
    }

    .page-support__section,
    .page-support__card,
    .page-support__container,
    .page-support__quick-link-item,
    .page-support__game-item,
    .page-support__promotion-card,
    .page-support__info-item,
    .page-support__blog-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}