/* style/blog-jun888-ios-app-features.css */

/* Variables for colors - derived from provided custom colors */
:root {
    --primary-color: #E53935;
    --secondary-color: #FF5A4F;
    --card-bg: #FFFFFF;
    --body-bg: #F5F7FA; /* This will be overridden by shared.css body background, but useful for context */
    --text-main: #333333;
    --border-color: #E0E0E0;
    --button-gradient: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    /* Assuming shared.css defines --header-offset and body padding-top */
}

/* Base styles for the page content */
.page-blog-jun888-ios-app-features {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color for light background */
    background-color: var(--body-bg); /* Placeholder, body bg is from shared.css */
}

.page-blog-jun888-ios-app-features__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-blog-jun888-ios-app-features__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    background-color: var(--primary-color); /* Hero section background */
    color: #ffffff; /* White text for dark background */
}

.page-blog-jun888-ios-app-features__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit hero image height */
    overflow: hidden;
}

.page-blog-jun888-ios-app-features__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-blog-jun888-ios-app-features__hero-content {
    padding: 20px;
    max-width: 800px;
}

.page-blog-jun888-ios-app-features__main-title {
    font-size: clamp(2em, 5vw, 3em); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-blog-jun888-ios-app-features__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-blog-jun888-ios-app-features__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
    gap: 20px;
    width: 100%; /* Ensure container takes full width */
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-blog-jun888-ios-app-features__btn-primary,
.page-blog-jun888-ios-app-features__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
    text-align: center;
    max-width: 100%; /* Ensure buttons adapt to container */
}

.page-blog-jun888-ios-app-features__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
}

.page-blog-jun888-ios-app-features__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-blog-jun888-ios-app-features__btn-secondary {
    background-color: var(--card-bg);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-blog-jun888-ios-app-features__btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

/* General Sections */
.page-blog-jun888-ios-app-features__intro-section,
.page-blog-jun888-ios-app-features__features-section,
.page-blog-jun888-ios-app-features__download-guide-section,
.page-blog-jun888-ios-app-features__advantages-section,
.page-blog-jun888-ios-app-features__faq-section,
.page-blog-jun888-ios-app-features__conclusion-section {
    padding: 60px 0;
    background-color: var(--body-bg); /* Default light background */
    color: var(--text-main); /* Default dark text */
}

.page-blog-jun888-ios-app-features__section-title {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
}

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

.page-blog-jun888-ios-app-features__feature-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color); /* Added border for contrast */
    color: var(--text-main); /* Ensure dark text on light card */
}

.page-blog-jun888-ios-app-features__feature-card:hover {
    transform: translateY(-5px);
}

.page-blog-jun888-ios-app-features__feature-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure no extra space below image */
}

.page-blog-jun888-ios-app-features__feature-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-blog-jun888-ios-app-features__game-list {
    list-style: disc inside;
    text-align: left;
    margin-top: 15px;
    padding-left: 20px;
}

.page-blog-jun888-ios-app-features__game-list li {
    margin-bottom: 8px;
}

/* Download Steps */
.page-blog-jun888-ios-app-features__download-steps {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-blog-jun888-ios-app-features__download-steps li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 20px;
    font-size: 1.1em;
    text-align: left;
}

.page-blog-jun888-ios-app-features__download-steps li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--primary-color);
    color: #ffffff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 0.9em;
}

/* FAQ Section */
.page-blog-jun888-ios-app-features__faq-list {
    margin-top: 30px;
}

.page-blog-jun888-ios-app-features__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main); /* Ensure dark text on light card */
}

.page-blog-jun888-ios-app-features__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    color: var(--primary-color);
    list-style: none; /* Remove default marker */
}

.page-blog-jun888-ios-app-features__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for webkit browsers */
}

.page-blog-jun888-ios-app-features__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.2s ease;
}

.page-blog-jun888-ios-app-features__faq-item[open] .page-blog-jun888-ios-app-features__faq-toggle {
    transform: rotate(45deg); /* Rotate + to X */
}

.page-blog-jun888-ios-app-features__faq-answer {
    padding: 0 20px 20px;
    font-size: 1.1em;
    color: var(--text-main);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-blog-jun888-ios-app-features__hero-section {
        padding-bottom: 30px;
    }
    .page-blog-jun888-ios-app-features__main-title {
        font-size: clamp(2em, 6vw, 2.5em);
    }
    .page-blog-jun888-ios-app-features__section-title {
        font-size: 2em;
    }
    .page-blog-jun888-ios-app-features__feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .page-blog-jun888-ios-app-features__container {
        padding: 0 15px;
    }

    .page-blog-jun888-ios-app-features__hero-section {
        padding-top: 10px !important; /* body handles --header-offset, this is small visual padding */
        padding-bottom: 20px;
    }
    .page-blog-jun888-ios-app-features__hero-image {
        max-height: 300px;
    }
    .page-blog-jun888-ios-app-features__main-title {
        font-size: clamp(1.8em, 7vw, 2.2em);
    }
    .page-blog-jun888-ios-app-features__description {
        font-size: 1em;
    }
    .page-blog-jun888-ios-app-features__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100% !important; /* Ensure container takes full width */
        width: 100% !important;
        padding: 0 15px; /* Add horizontal padding to buttons container */
        box-sizing: border-box !important;
    }

    .page-blog-jun888-ios-app-features__btn-primary,
    .page-blog-jun888-ios-app-features__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 15px !important;
        font-size: 1em !important;
        box-sizing: border-box !important;
    }

    .page-blog-jun888-ios-app-features__intro-section,
    .page-blog-jun888-ios-app-features__features-section,
    .page-blog-jun888-ios-app-features__download-guide-section,
    .page-blog-jun888-ios-app-features__advantages-section,
    .page-blog-jun888-ios-app-features__faq-section,
    .page-blog-jun888-ios-app-features__conclusion-section {
        padding: 40px 0;
    }

    .page-blog-jun888-ios-app-features__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-blog-jun888-ios-app-features__feature-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
    }

    .page-blog-jun888-ios-app-features__feature-card {
        padding: 20px;
    }

    .page-blog-jun888-ios-app-features__feature-image {
        height: 200px; /* Adjust height for mobile */
    }

    .page-blog-jun888-ios-app-features__feature-title {
        font-size: 1.3em;
    }

    .page-blog-jun888-ios-app-features__faq-item summary {
        padding: 15px;
        font-size: 1.1em;
    }

    .page-blog-jun888-ios-app-features__faq-answer {
        padding: 0 15px 15px;
        font-size: 1em;
    }

    /* Images responsiveness */
    .page-blog-jun888-ios-app-features img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Containers for images/content to prevent overflow */
    .page-blog-jun888-ios-app-features__section,
    .page-blog-jun888-ios-app-features__card,
    .page-blog-jun888-ios-app-features__container,
    .page-blog-jun888-ios-app-features__hero-section,
    .page-blog-jun888-ios-app-features__intro-section,
    .page-blog-jun888-ios-app-features__features-section,
    .page-blog-jun888-ios-app-features__download-guide-section,
    .page-blog-jun888-ios-app-features__advantages-section,
    .page-blog-jun888-ios-app-features__faq-section,
    .page-blog-jun888-ios-app-features__conclusion-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    .page-blog-jun888-ios-app-features__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Video responsiveness - general rules for robustness */
    .page-blog-jun888-ios-app-features video,
    .page-blog-jun888-ios-app-features__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .page-blog-jun888-ios-app-features__video-section,
    .page-blog-jun888-ios-app-features__video-container,
    .page-blog-jun888-ios-app-features__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
}

/* Color contrast enforcement */
/* If body is light, default text is dark. If body is dark, default text is light. */
/* Assuming body-bg from shared.css is light (#F5F7FA), so text-main is #333333. */
.page-blog-jun888-ios-app-features p,
.page-blog-jun888-ios-app-features li {
    color: var(--text-main); /* Explicitly set for clarity */
}

.page-blog-jun888-ios-app-features__dark-bg {
    background-color: var(--primary-color);
    color: #ffffff;
}
.page-blog-jun888-ios-app-features__light-bg {
    background-color: var(--card-bg);
    color: var(--text-main);
}

/* Contrast for specific elements */
.page-blog-jun888-ios-app-features__btn-primary {
  background: var(--button-gradient);
  color: #ffffff; /* Ensure white text on gradient background */
}

.page-blog-jun888-ios-app-features__btn-secondary {
  background-color: var(--card-bg);
  color: var(--primary-color); /* Ensure brand color text on white background */
  border: 2px solid var(--primary-color);
}

.page-blog-jun888-ios-app-features__feature-card {
  background-color: var(--card-bg);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.page-blog-jun888-ios-app-features__faq-item {
  background-color: var(--card-bg);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.page-blog-jun888-ios-app-features__faq-item summary {
  color: var(--primary-color); /* Ensure brand color text on white background */
}