/* style/resources-how-to-download-kingfun-app.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --button-register: #C30808;
    --button-login: #C30808;
    --button-font-color: #FFFF00; /* For register/login buttons specifically */
    --border-light: #e0e0e0;
    --shadow-light: rgba(0,0,0,0.1);
}

.page-resources-how-to-download-kingfun-app {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light backgrounds */
    background-color: var(--secondary-color); /* Default page background, overridden by sections */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

/* Hero Section */
.page-resources-how-to-download-kingfun-app__hero-section {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-resources-how-to-download-kingfun-app__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--text-light);
}

.page-resources-how-to-download-kingfun-app__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
}

/* CTA Buttons */
.page-resources-how-to-download-kingfun-app__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    margin-top: 30px;
}

.page-resources-how-to-download-kingfun-app__btn-primary,
.page-resources-how-to-download-kingfun-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; /* Crucial for button responsiveness */
}

.page-resources-how-to-download-kingfun-app__btn-primary {
    background-color: var(--button-register); /* Register color for main CTA */
    color: var(--button-font-color);
    border: 2px solid var(--button-register);
}

.page-resources-how-to-download-kingfun-app__btn-primary:hover {
    background-color: #a30606; /* Darker red */
    border-color: #a30606;
    transform: translateY(-2px);
}

.page-resources-how-to-download-kingfun-app__btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.page-resources-how-to-download-kingfun-app__btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Section General Styles */
.page-resources-how-to-download-kingfun-app__intro-section,
.page-resources-how-to-download-kingfun-app__why-download-section,
.page-resources-how-to-download-kingfun-app__download-guide-section,
.page-resources-how-to-download-kingfun-app__installation-steps-section,
.page-resources-how-to-download-kingfun-app__features-app-section,
.page-resources-how-to-download-kingfun-app__faq-section,
.page-resources-how-to-download-kingfun-app__conclusion-section {
    padding: 60px 0;
}

.page-resources-how-to-download-kingfun-app__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-resources-how-to-download-kingfun-app__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-resources-how-to-download-kingfun-app__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    color: inherit; /* Inherit color from parent section (dark-bg or light-bg) */
}

.page-resources-how-to-download-kingfun-app__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-how-to-download-kingfun-app__image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 40px auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Why Download Section Specifics */
.page-resources-how-to-download-kingfun-app__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-how-to-download-kingfun-app__feature-card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    color: var(--text-light); /* Ensure text is light on this card background */
}

.page-resources-how-to-download-kingfun-app__feature-card:hover {
    transform: translateY(-5px);
}

.page-resources-how-to-download-kingfun-app__feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: bold;
    color: var(--text-light);
}

.page-resources-how-to-download-kingfun-app__feature-description {
    font-size: 1em;
    line-height: 1.7;
}

/* Download Guide Section Specifics */
.page-resources-how-to-download-kingfun-app__download-platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.page-resources-how-to-download-kingfun-app__platform-card {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid var(--border-light);
    color: var(--text-dark);
}

.page-resources-how-to-download-kingfun-app__platform-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
}

.page-resources-how-to-download-kingfun-app__platform-description {
    font-size: 1.05em;
    margin-bottom: 25px;
    text-align: center;
}

.page-resources-how-to-download-kingfun-app__download-steps {
    list-style: decimal;
    margin-left: 20px;
    margin-bottom: 30px;
    font-size: 1em;
}

.page-resources-how-to-download-kingfun-app__download-steps li {
    margin-bottom: 10px;
}

.page-resources-how-to-download-kingfun-app__qr-code-wrapper {
    text-align: center;
    margin: 30px 0;
}

.page-resources-how-to-download-kingfun-app__qr-code {
    width: 200px; /* Smaller QR code image */
    height: 200px;
    border: 5px solid var(--primary-color);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.page-resources-how-to-download-kingfun-app__qr-text {
    margin-top: 15px;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--primary-color);
}

/* Installation Steps Section Specifics */
.page-resources-how-to-download-kingfun-app__steps-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-how-to-download-kingfun-app__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    padding-top: 60px;
}

.page-resources-how-to-download-kingfun-app__step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--button-register); /* Register color for step number */
    color: var(--button-font-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    border: 3px solid var(--text-light);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.page-resources-how-to-download-kingfun-app__step-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--text-light);
}

.page-resources-how-to-download-kingfun-app__step-description {
    font-size: 1em;
    line-height: 1.6;
}