/* style/download.css */

/* Base styles for the page-download scope */
.page-download {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF6D6; /* Text Main color for dark background */
    background-color: #0A0A0A; /* Background color */
    padding-bottom: 60px; /* Add some padding at the bottom */
}

/* Container for consistent content width */
.page-download__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section styling */
.page-download__section {
    padding: 40px 0;
}

.page-download__section:nth-of-type(even) {
    background-color: #111111; /* Card B G for alternating sections */
}

/* Hero Section */
.page-download__hero-section {
    background: linear-gradient(135deg, #F2C14E, #FFD36B); /* Main and Auxiliary color gradient */
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    padding-bottom: 60px;
    color: #000000; /* Dark text on light gradient background */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-download__hero-section .page-download__container {
    display: flex;
    flex-direction: column; /* Image above text on mobile */
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 2; /* Ensure content is above any background effects */
}

.page-download__hero-content {
    max-width: 800px;
    text-align: center;
}

.page-download__hero-title {
    font-size: clamp(2.2rem, 4vw + 1rem, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #000000; /* Ensure dark text on light gradient */
}

.page-download__hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #333333; /* Slightly darker text for readability on gradient */
}

.page-download__hero-image-wrapper {
    width: 100%;
    max-width: 800px; /* Constrain hero image width */
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.page-download__hero-image {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Section Titles and Intros */
.page-download__section-title {
    font-size: clamp(1.8rem, 3.5vw + 1rem, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #F2C14E; /* Main color for titles */
}

.page-download__section-intro {
    font-size: 1.05rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: #FFF6D6; /* Text Main color */
}

/* Buttons */
.page-download__btn-primary,
.page-download__btn-secondary,
.page-download a[class*="button"],
.page-download a[class*="btn"] {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-download__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
    color: #000000; /* Dark text on light button */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-download__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-download__btn-secondary {
    background: transparent;
    color: #F2C14E; /* Main color for text */
    border: 2px solid #F2C14E; /* Main color for border */
    box-shadow: 0 2px 10px rgba(242, 193, 78, 0.2);
}

.page-download__btn-secondary:hover {
    background: #F2C14E;
    color: #000000; /* Dark text on hover */
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-download__btn-text-link {
    color: #FFD36B; /* Glow color for text links */
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.page-download__btn-text-link:hover {
    color: #F2C14E; /* Main color on hover */
}

.page-download__btn-large {
    padding: 18px 40px;
    font-size: 1.2rem;
}

.page-download__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    width: 100%; /* Button container responsiveness */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

.page-download__feature-card {
    background-color: #111111; /* Card B G */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-download__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(242, 193, 78, 0.3);
}

.page-download__feature-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px; /* Min image size */
    min-width: 200px; /* Min image size */
}

.page-download__feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #F2C14E; /* Main color */
}

.page-download__feature-description {
    font-size: 1rem;
    color: #FFF6D6; /* Text Main */
}

/* Download Guide */
.page-download__download-guide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.page-download__guide-block {
    background-color: #111111; /* Card B G */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-download__guide-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #FFD36B; /* Auxiliary color */
    text-align: center;
}

.page-download__guide-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 25px;
    object-fit: cover;
    min-height: 200px; /* Min image size */
    min-width: 200px; /* Min image size */
}

.page-download__guide-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: left;
    width: 100%;
}

.page-download__guide-list li {
    background-color: rgba(242, 193, 78, 0.05); /* Light highlight */
    padding: 15px;
    border-left: 4px solid #F2C14E; /* Main color border */
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 1rem;
    color: #FFF6D6; /* Text Main */
}

.page-download__guide-list li strong {
    color: #FFD36B; /* Auxiliary color for strong text */
}

.page-download__tips-block {
    background-color: rgba(242, 193, 78, 0.1); /* Lighter background for tips */
    padding: 30px;
    border-radius: 10px;
    margin-top: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    text-align: center;
}

.page-download__tips-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #F2C14E; /* Main color */
    margin-bottom: 20px;
}

.page-download__tips-list {
    list-style: disc;
    padding-left: 25px;
    margin: 0 auto;
    max-width: 800px;
    text-align: left;
    color: #FFF6D6; /* Text Main */
}

.page-download__tips-list li {
    margin-bottom: 10px;
    font-size: 1rem;
}

/* Features List (Detailed) */
.page-download__feature-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
}

.page-download__feature-item {
    background-color: #111111; /* Card B G */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-download__feature-icon {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px; /* Min image size */
    min-width: 200px; /* Min image size */
}

.page-download__feature-item-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #F2C14E; /* Main color */
    margin-bottom: 15px;
}

.page-download__feature-item-description {
    font-size: 1rem;
    color: #FFF6D6; /* Text Main */
    margin-bottom: 15px;
}

.page-download__sub-feature-list {
    list-style: disc;
    padding-left: 20px;
    margin-top: 10px;
    color: #FFF6D6; /* Text Main */
}

.page-download__sub-feature-list li {
    margin-bottom: 5px;
    font-size: 0.95rem;
}

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

.page-download__compatibility-card {
    background-color: #111111; /* Card B G */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.page-download__compatibility-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #FFD36B; /* Auxiliary color */
    margin-bottom: 20px;
}

.page-download__compatibility-list {
    list-style: none;
    padding: 0;
}

.page-download__compatibility-list li {
    background-color: rgba(255, 211, 107, 0.05); /* Light highlight */
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-size: 1rem;
    color: #FFF6D6; /* Text Main */
    border-left: 3px solid #FFD36B; /* Auxiliary color border */
}

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

.page-download__promo-card {
    background-color: #111111; /* Card B G */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-download__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 211, 107, 0.3);
}

.page-download__promo-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #F2C14E; /* Main color */
    margin-bottom: 15px;
}

.page-download__promo-description {
    font-size: 1rem;
    color: #FFF6D6; /* Text Main */
}

/* Responsible Gaming Section */
.page-download__responsible-gaming-content {
    background-color: rgba(242, 193, 78, 0.1); /* Light background for content */
    padding: 30px;
    border-radius: 10px;
    margin-top: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    text-align: left;
    color: #FFF6D6; /* Text Main */
}

.page-download__responsible-gaming-list {
    list-style: disc;
    padding-left: 25px;
    margin-top: 20px;
}

.page-download__responsible-gaming-list li {
    margin-bottom: 10px;
    font-size: 1rem;
}

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

.page-download__faq-item {
    background-color: #111111; /* Card B G */
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-download__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #111111; /* Card B G */
    color: #F2C14E; /* Main color for question */
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.page-download__faq-question:hover {
    background-color: rgba(242, 193, 78, 0.05); /* Light hover effect */
}

.page-download__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #FFD36B; /* Auxiliary color for toggle */
}

.page-download__faq-item.active .page-download__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-download__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #FFF6D6; /* Text Main */
    background-color: rgba(242, 193, 78, 0.03); /* Very light background for answer */
}

.page-download__faq-item.active .page-download__faq-answer {
    max-height: 1000px !important; /* Sufficient height for content */
    padding: 20px 25px;
}

.page-download__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
}

/* Final CTA Section */
.page-download__cta-final-section {
    padding-top: 60px;
    padding-bottom: 80px;
    background-color: #0A0A0A; /* Background color */
    text-align: center;
}

.page-download__cta-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    object-fit: cover;
    min-height: 200px; /* Min image size */
    min-width: 200px; /* Min image size */
}


/* --- Responsive Design --- */

/* Tablet & Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .page-download__container {
        padding: 0 15px;
    }

    .page-download__section {
        padding: 30px 0;
    }

    .page-download__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header spacing */
        padding-bottom: 40px;
    }

    .page-download__hero-title {
        font-size: clamp(1.8rem, 6vw + 1rem, 2.5rem);
    }

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

    .page-download__section-title {
        font-size: clamp(1.5rem, 5vw + 1rem, 2.2rem);
    }

    .page-download__section-intro {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    /* Images responsiveness */
    .page-download img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    
    /* Ensure containers for images and buttons are responsive */
    .page-download__section,
    .page-download__card,
    .page-download__container,
    .page-download__feature-card,
    .page-download__guide-block,
    .page-download__feature-item,
    .page-download__compatibility-card,
    .page-download__promo-card,
    .page-download__faq-item,
    .page-download__responsible-gaming-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding for content inside containers to prevent edge-to-edge content */
        padding-left: 15px; 
        padding-right: 15px;
    }
}