:root {
    /* Custom Colors */
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --color-card-bg: #11271B;
    --color-background: #08160F; /* Assuming this is the body background */
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;

    /* Text colors based on dark background */
    --text-on-dark: var(--color-text-main);
    --text-on-light: #333333; /* Default for light backgrounds if any */
}

/* Base styles for the page content */
.page-how-to-download-install {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-on-dark); /* Default text color for the page */
    background-color: var(--color-background); /* Ensure consistent background */
}

/* Hero Section */
.page-how-to-download-install__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    background-color: var(--color-background);
    color: var(--text-on-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden; /* Ensure no overflow */
}

.page-how-to-download-install__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height of the image wrapper */
    overflow: hidden;
    margin-bottom: 30px;
}

.page-how-to-download-install__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Ensure image covers the area */
}

.page-how-to-download-install__hero-content {
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-how-to-download-install__main-title {
    font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--color-gold); /* Using gold for main title */
    letter-spacing: 1px;
}

.page-how-to-download-install__intro-text {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: var(--color-text-secondary);
}

.page-how-to-download-install__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    width: 100%;
    max-width: 500px; /* Limit button group width */
    margin: 0 auto;
}

.page-how-to-download-install__btn-primary,
.page-how-to-download-install__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word;
}

.page-how-to-download-install__btn-primary {
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-how-to-download-install__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-how-to-download-install__btn-secondary {
    background: transparent;
    color: var(--color-text-main);
    border: 2px solid var(--color-primary);
}

.page-how-to-download-install__btn-secondary:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* General Section Styles */
.page-how-to-download-install__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-gold);
}

.page-how-to-download-install__section-description {
    font-size: 1.05rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: var(--color-text-secondary);
}

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

/* Benefits Section */
.page-how-to-download-install__benefits-section {
    background-color: var(--color-card-bg); /* Darker background for contrast */
    color: var(--text-on-dark);
    padding: 60px 0;
}

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

.page-how-to-download-install__benefit-card {
    background-color: var(--color-background);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    border: 1px solid var(--color-border);
}

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

.page-how-to-download-install__benefit-icon {
    width: 100%; /* Ensure responsiveness */
    height: auto;
    max-width: 150px; /* Max size for icons */
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-how-to-download-install__benefit-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.page-how-to-download-install__benefit-description {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

/* Guide Sections (Android & iOS) */
.page-how-to-download-install__android-guide,
.page-how-to-download-install__ios-guide {
    padding: 60px 0;
}

.page-how-to-download-install__android-guide {
    background-color: #0d1e16; /* Slightly lighter dark background for contrast */
    color: var(--text-on-dark);
}

.page-how-to-download-install__ios-guide {
    background-color: var(--color-background);
    color: var(--text-on-dark);
}

.page-how-to-download-install__guide-steps {
    display: grid;
    grid-template-columns: 1fr; /* Single column by default */
    gap: 40px;
    margin-top: 40px;
}

.page-how-to-download-install__step-item {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
}

.page-how-to-download-install__step-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.page-how-to-download-install__step-description {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

.page-how-to-download-install__step-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-top: 20px;
    object-fit: cover;
}

/* Troubleshooting Section */
.page-how-to-download-install__troubleshooting-section {
    background-color: #0d1e16; /* Slightly lighter dark background for contrast */
    color: var(--text-on-dark);
    padding: 60px 0;
}

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

.page-how-to-download-install__issue-card {
    background-color: var(--color-background);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
}

.page-how-to-download-install__issue-icon {
    width: 100%;
    height: auto;
    max-width: 120px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-how-to-download-install__issue-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--color-gold);
}

.page-how-to-download-install__issue-description,
.page-how-to-download-install__issue-solution {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 10px;
}

/* Tips Section */
.page-how-to-download-install__tips-section {
    background-color: var(--color-background);
    color: var(--text-on-dark);
    padding: 60px 0;
}

.page-how-to-download-install__tips-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 900px;
}

.page-how-to-download-install__tip-item {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
}

.page-how-to-download-install__tip-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.page-how-to-download-install__tip-description {
    font-size: 1rem;
    color: var(--color-text-secondary);
}

/* FAQ Section */
.page-how-to-download-install__faq-section {
    background-color: #0d1e16; /* Slightly lighter dark background for contrast */
    color: var(--text-on-dark);
    padding: 60px 0;
}

.page-how-to-download-install__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

.page-how-to-download-install__faq-item {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
}

.page-how-to-download-install__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--color-text-main);
    cursor: pointer;
    list-style: none; /* Hide default marker */
}

.page-how-to-download-install__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-how-to-download-install__faq-qtext {
    flex-grow: 1;
    color: var(--color-gold);
}

.page-how-to-download-install__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--color-primary);
}

.page-how-to-download-install__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: var(--color-text-secondary);
}

/* Conclusion Section */
.page-how-to-download-install__conclusion-section {
    background-color: var(--color-background);
    color: var(--text-on-dark);
    padding: 60px 0;
    text-align: center;
}

/* Responsive Design */
@media (min-width: 769px) {
    .page-how-to-download-install__guide-steps {
        grid-template-columns: repeat(2, 1fr); /* Two columns for guide steps on larger screens */
    }
}

@media (max-width: 768px) {
    .page-how-to-download-install__hero-section {
        padding-bottom: 40px;
    }

    .page-how-to-download-install__main-title {
        font-size: 2rem;
    }

    .page-how-to-download-install__intro-text {
        font-size: 1rem;
    }

    .page-how-to-download-install__cta-buttons {
        flex-direction: column;
        align-items: center;
        padding: 0 15px;
        gap: 10px;
    }

    .page-how-to-download-install__btn-primary,
    .page-how-to-download-install__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-how-to-download-install__container {
        padding: 30px 15px;
    }

    .page-how-to-download-install__section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .page-how-to-download-install__section-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .page-how-to-download-install__benefits-grid,
    .page-how-to-download-install__issues-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-how-to-download-install__step-title {
        font-size: 1.3rem;
    }

    .page-how-to-download-install__step-description {
        font-size: 0.95rem;
    }

    /* Mobile image responsiveness */
    .page-how-to-download-install img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
        box-sizing: border-box;
    }
    
    /* Ensure all containing elements for images and buttons are responsive */
    .page-how-to-download-install__hero-section,
    .page-how-to-download-install__benefits-section,
    .page-how-to-download-install__android-guide,
    .page-how-to-download-install__ios-guide,
    .page-how-to-download-install__troubleshooting-section,
    .page-how-to-download-install__tips-section,
    .page-how-to-download-install__faq-section,
    .page-how-to-download-install__conclusion-section,
    .page-how-to-download-install__benefit-card,
    .page-how-to-download-install__issue-card,
    .page-how-to-download-install__tip-item,
    .page-how-to-download-install__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    /* Specific padding for sections on mobile */
    .page-how-to-download-install__hero-section {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-how-to-download-install__benefits-section .page-how-to-download-install__container,
    .page-how-to-download-install__android-guide .page-how-to-download-install__container,
    .page-how-to-download-install__ios-guide .page-how-to-download-install__container,
    .page-how-to-download-install__troubleshooting-section .page-how-to-download-install__container,
    .page-how-to-download-install__tips-section .page-how-to-download-install__container,
    .page-how-to-download-install__faq-section .page-how-to-download-install__container,
    .page-how-to-download-install__conclusion-section .page-how-to-download-install__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-how-to-download-install__hero-image-wrapper {
        max-height: 300px; /* Adjust hero image height for mobile */
    }

    .page-how-to-download-install__video-section {
        padding-top: 10px !important;
    }
}

/* Color contrast enforcement (assuming dark body background #08160F) */
.page-how-to-download-install__dark-section {
  color: var(--color-text-main); /* Light text on dark background */
}

.page-how-to-download-install__light-bg {
  background-color: #0d1e16; /* A slightly lighter dark for contrast sections */
  color: var(--color-text-main);
}

.page-how-to-download-install__btn-primary {
  color: #ffffff; /* Ensure white text on gradient button */
}

.page-how-to-download-install__btn-secondary {
  color: var(--color-text-main); /* Ensure light text on transparent button */
}
.page-how-to-download-install__btn-secondary:hover {
  color: #ffffff; /* White text on hover */
}