/* style/support.css */
:root {
    --primary-color: #2F6BFF;
    --secondary-color: #6FA3FF;
    --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --card-bg: #FFFFFF;
    --page-bg: #F4F7FB;
    --text-main: #1F2D3D;
    --border-color: #D6E2FF;
    --glow-color: #A5C4FF;
}

.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--page-bg);
}

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

.page-support__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-support__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--button-gradient);
    border-radius: 2px;
}

.page-support__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-support__text-block .text-highlight {
    color: var(--primary-color);
    font-weight: bold;
}

/* 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: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #ffffff;
    overflow: hidden;
}

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

.page-support__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-support__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
}

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

.page-support__main-title {
    color: #ffffff;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 15px;
    /* Use clamp for responsive font size, but not fixed large values */
    font-size: clamp(2.2em, 5vw, 3.5em);
}

.page-support__hero-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, 0.9);
}

.page-support__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-support__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

/* Quick Access Section */
.page-support__quick-access-section {
    background-color: #ffffff;
    padding-top: 60px;
    padding-bottom: 60px;
}

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

.page-support__quick-link-card {
    display: block;
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: var(--text-main);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-support__quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.page-support__quick-link-card h3 {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 10px;
}

.page-support__quick-link-card p {
    font-size: 0.95em;
    color: #555;
}

/* Game Guide Section */
.page-support__game-guide-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-support__game-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 50px;
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.page-support__game-item:nth-child(even) {
    flex-direction: row-reverse;
}

.page-support__game-item img {
    width: 50%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    min-width: 200px; /* Ensure min size for images */
}

.page-support__game-content {
    width: 50%;
    padding: 30px;
    box-sizing: border-box;
}

.page-support__game-content h3 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
}

.page-support__game-content h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-support__game-content h3 a:hover {
    text-decoration: underline;
}

.page-support__game-content p {
    font-size: 1em;
    margin-bottom: 20px;
    color: #444;
}

.page-support__btn-secondary {
    display: inline-block;
    padding: 10px 25px;
    background-color: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.page-support__btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Promotions Section */
.page-support__promotions-section {
    background-color: var(--page-bg);
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-support__promo-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.page-support__promo-list li {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--primary-color);
    font-size: 1.05em;
    color: #333;
}

.page-support__promo-list li strong {
    color: var(--primary-color);
}

.page-support__button-group {
    text-align: center;
    margin-top: 40px;
}

/* Security & Support Section */
.page-support__security-support-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #ffffff;
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-support__security-support-section .page-support__section-title {
    color: #ffffff;
}

.page-support__security-support-section .page-support__section-title::after {
    background: #ffffff;
}

.page-support__security-support-section .page-support__text-block {
    color: rgba(255, 255, 255, 0.9);
}

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

.page-support__feature-item {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    border-radius: 10px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-support__feature-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.2);
}

.page-support__feature-item img {
    width: 100%;
    
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px var(--glow-color));
    min-width: 200px; /* Ensure min size for images */
}

.page-support__feature-item h3 {
    font-size: 1.3em;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 10px;
}

.page-support__feature-item p {
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.8);
}

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

.page-support__faq-list {
    margin-top: 40px;
}

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

details.page-support__faq-item summary.page-support__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, border-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: #f9f9f9;
}

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

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

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

details.page-support__faq-item .page-support__faq-answer {
    padding: 0 25px 25px;
    background: #fcfdff;
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 8px 8px;
    color: #444;
    font-size: 1em;
}

.page-support__faq-answer p {
    margin-top: 15px;
    margin-bottom: 15px;
}

.page-support__btn-primary {
    display: inline-block;
    padding: 10px 20px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.95em;
    font-weight: bold;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.page-support__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    opacity: 0.9;
}

/* General Image styles */
.page-support img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-support__hero-section {
        padding: 40px 15px;
    }

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

    .page-support__hero-description {
        font-size: 1.1em;
    }

    .page-support__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-support__game-item {
        flex-direction: column;
    }

    .page-support__game-item:nth-child(even) {
        flex-direction: column;
    }

    .page-support__game-item img,
    .page-support__game-content {
        width: 100%;
    }

    .page-support__game-content {
        padding: 20px;
    }

    .page-support__security-features {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-support__hero-section {
        padding-top: 10px !important;
        padding-bottom: 30px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-support__hero-image {
        margin-bottom: 20px;
    }

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

    .page-support__cta-button {
        padding: 12px 30px;
        font-size: 1em;
    }

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

    .page-support__section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }

    .page-support__text-block {
        font-size: 1em;
    }

    .page-support__link-grid {
        grid-template-columns: 1fr;
    }

    .page-support__promo-list {
        grid-template-columns: 1fr;
    }

    .page-support__feature-item img {
        
    }

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

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

    .page-support__faq-toggle {
        font-size: 24px;
        width: 25px;
    }

    details.page-support__faq-item .page-support__faq-answer {
        padding: 0 18px 18px;
    }
    
    /* Mobile image adaptation */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-support__section, .page-support__card, .page-support__container, 
    .page-support__hero-section, .page-support__quick-access-section, 
    .page-support__game-guide-section, .page-support__promotions-section, 
    .page-support__security-support-section, .page-support__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Mobile button adaptation */
    .page-support__cta-button, .page-support__btn-primary, .page-support__btn-secondary, 
    .page-support a[class*="button"], .page-support a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
        text-align: center;
    }
    
    .page-support__button-group, .page-support__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}