/* style/download-ios-app.css */
/* Base styles and variables */
:root {
    --primary-color: #FF8C1A;
    --secondary-color: #FFA53A;
    --dark-bg-color: #0D0E12;
    --card-bg-color: #17191F;
    --text-main-color: #FFF3E6;
    --border-color: #A84F0C;
    --glow-color: #FFB04D;
    --deep-orange: #D96800;
}

.page-download-ios-app {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-main-color); /* Default text color for the page */
    background-color: var(--dark-bg-color); /* Ensure consistency with body background */
}

/* Section padding and max-width for content */
.page-download-ios-app__section {
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden; /* Prevent content overflow */
}

.page-download-ios-app__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-download-ios-app__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.page-download-ios-app__section-description {
    font-size: 1.1em;
    color: var(--text-main-color);
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

/* Hero Section */
.page-download-ios-app__hero-section {
    position: relative;
    padding: 10px 0 60px 0; /* body already handles padding-top, this is for internal spacing */
    background-color: var(--dark-bg-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-download-ios-app__hero-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px; /* Space between image/content and video */
    width: 100%; /* Ensure it takes full width */
}

.page-download-ios-app__hero-image-block {
    width: 100%;
    max-width: 1200px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-download-ios-app__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-download-ios-app__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.page-download-ios-app__hero-title {
    font-size: 2.8em;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.8px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-download-ios-app__hero-description {
    font-size: 1.2em;
    color: var(--text-main-color);
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-download-ios-app__btn-primary,
.page-download-ios-app__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-download-ios-app__btn-primary {
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange) 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-download-ios-app__btn-primary:hover {
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--deep-orange) 100%);
    box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
    transform: translateY(-2px);
}

.page-download-ios-app__btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.page-download-ios-app__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(255, 140, 26, 0.3);
    transform: translateY(-2px);
}

.page-download-ios-app__btn-bottom-cta {
    margin-top: 40px;
    min-width: 250px;
}

/* Video Section */
.page-download-ios-app__video-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--dark-bg-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%; /* Ensure full width on desktop */
    max-width: 1200px; /* Constrain video container width */
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
}

.page-download-ios-app__video-title {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: bold;
}

.page-download-ios-app__video-link-wrapper {
    display: block;
    width: 100%;
    max-width: 800px; /* Max width for the video player */
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(255, 140, 26, 0.6);
    cursor: pointer; /* Indicate clickable */
}

.page-download-ios-app__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-download-ios-app__video-caption {
    margin-top: 20px;
    font-size: 1em;
    color: var(--text-main-color);
}

/* Why Choose Us Section */
.page-download-ios-app__why-choose-us {
    background-color: var(--card-bg-color);
}

.page-download-ios-app__features {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.page-download-ios-app__feature-item {
    flex: 1 1 calc(33% - 30px); /* 3 items per row, with gap */
    max-width: calc(33% - 30px);
    background-color: var(--dark-bg-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    box-sizing: border-box;
    min-width: 250px; /* Minimum width to prevent shrinking too much */
}

.page-download-ios-app__feature-item img {
    width: 100%;
    height: auto;
    max-width: 400px; /* Ensure images are not too small */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-download-ios-app__feature-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-download-ios-app__feature-text {
    font-size: 0.95em;
    color: var(--text-main-color);
    line-height: 1.5;
}

/* How to Download Section */
.page-download-ios-app__how-to-download {
    background-color: var(--dark-bg-color);
}

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

.page-download-ios-app__step-item {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: left;
    box-sizing: border-box;
}

.page-download-ios-app__step-title {
    font-size: 1.4em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-download-ios-app__step-text {
    font-size: 1em;
    color: var(--text-main-color);
    line-height: 1.6;
}

.page-download-ios-app__qr-code {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 20px auto 0 auto;
    border: 5px solid var(--primary-color);
    border-radius: 8px;
    box-sizing: border-box;
}

.page-download-ios-app__text-link {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-download-ios-app__text-link:hover {
    color: var(--secondary-color);
}

/* Game Highlights Section */
.page-download-ios-app__dark-section {
    background-color: var(--card-bg-color); /* Use card background for dark sections */
    color: var(--text-main-color);
}

.page-download-ios-app__game-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.page-download-ios-app__game-card {
    flex: 1 1 calc(33% - 30px);
    max-width: calc(33% - 30px);
    background-color: var(--dark-bg-color);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    box-sizing: border-box;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-download-ios-app__game-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-download-ios-app__card-title {
    font-size: 1.3em;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-download-ios-app__card-text {
    font-size: 0.95em;
    color: var(--text-main-color);
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow text to take up available space */
}

/* Testimonials Section */
.page-download-ios-app__testimonials {
    background-color: var(--dark-bg-color);
}

.page-download-ios-app__testimonial-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.page-download-ios-app__testimonial-card {
    flex: 1 1 calc(33% - 30px);
    max-width: calc(33% - 30px);
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    box-sizing: border-box;
    min-width: 280px;
}

.page-download-ios-app__testimonial-card img {
    width: 100%;
    height: auto;
     /* Smaller for profile images */
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px auto;
    display: block;
    border: 3px solid var(--primary-color);
}

.page-download-ios-app__testimonial-text {
    font-style: italic;
    font-size: 1em;
    color: var(--text-main-color);
    margin-bottom: 15px;
    line-height: 1.6;
}

.page-download-ios-app__testimonial-author {
    font-weight: bold;
    color: var(--secondary-color);
    font-size: 0.95em;
}

/* FAQ Section */
.page-download-ios-app__faq-section {
    background-color: var(--card-bg-color);
}

.page-download-ios-app__faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
    text-align: left;
}

.page-download-ios-app__faq-item {
    background-color: var(--dark-bg-color);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-download-ios-app__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    background-color: var(--dark-bg-color);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-download-ios-app__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Chrome */
}

.page-download-ios-app__faq-question:hover {
    background-color: #2a2c33; /* Slightly lighter on hover */
}

.page-download-ios-app__faq-answer {
    padding: 15px 20px;
    font-size: 0.95em;
    color: var(--text-main-color);
    line-height: 1.6;
    background-color: #2a2c33; /* Slightly lighter background for answer */
    border-top: 1px solid var(--border-color);
}

.page-download-ios-app__faq-answer p {
    margin: 0;
}

/* CTA Section */
.page-download-ios-app__cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--deep-orange));
    padding: 80px 0;
}

.page-download-ios-app__cta-section .page-download-ios-app__section-title {
    color: #ffffff;
}

.page-download-ios-app__cta-section .page-download-ios-app__section-description {
    color: #ffffff;
    margin-bottom: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-download-ios-app__hero-title {
        font-size: 2.5em;
    }
    .page-download-ios-app__section-title {
        font-size: 2em;
    }
    .page-download-ios-app__features,
    .page-download-ios-app__game-cards,
    .page-download-ios-app__testimonial-cards {
        gap: 20px;
    }
    .page-download-ios-app__feature-item,
    .page-download-ios-app__game-card,
    .page-download-ios-app__testimonial-card {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    /* General mobile reset/adaption */
    .page-download-ios-app {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Important: Content area containers padding */
    .page-download-ios-app__section,
    .page-download-ios-app__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .page-download-ios-app__hero-section {
        padding: 10px 0 40px 0;
    }
    
    .page-download-ios-app__hero-wrapper {
        gap: 30px;
        margin-bottom: 40px;
    }

    .page-download-ios-app__hero-title {
        font-size: 1.8em;
        line-height: 1.3;
        letter-spacing: -0.2px;
    }

    .page-download-ios-app__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-download-ios-app__section-title {
        font-size: 1.8em;
        line-height: 1.3;
    }

    .page-download-ios-app__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    /* Images */
    .page-download-ios-app img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}