/* style/blog-twin-apk-latest-features.css */

/* Variables from custom palette */
:root {
    --twin-apk-primary-color: #11A84E;
    --twin-apk-secondary-color: #22C768;
    --twin-apk-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --twin-apk-card-bg: #11271B;
    --twin-apk-background: #08160F;
    --twin-apk-text-main: #F2FFF6;
    --twin-apk-text-secondary: #A7D9B8;
    --twin-apk-border: #2E7A4E;
    --twin-apk-glow: #57E38D;
    --twin-apk-gold: #F2C14E;
    --twin-apk-divider: #1E3A2A;
    --twin-apk-deep-green: #0A4B2C;
}

.page-blog-twin-apk-latest-features {
    background-color: var(--twin-apk-background); /* Dark background */
    color: var(--twin-apk-text-main); /* Light text for contrast */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: 10px; /* Small decorative top margin */
}

.page-blog-twin-apk-latest-features__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-blog-twin-apk-latest-features__section {
    padding: 60px 0;
    position: relative;
}

.page-blog-twin-apk-latest-features__section-title {
    font-size: 2.5em;
    color: var(--twin-apk-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.page-blog-twin-apk-latest-features__sub-title {
    font-size: 1.8em;
    color: var(--twin-apk-text-main);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-blog-twin-apk-latest-features__paragraph,
.page-blog-twin-apk-latest-features__lead-text {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--twin-apk-text-secondary);
}

.page-blog-twin-apk-latest-features__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top margin */
    position: relative;
    overflow: hidden;
    background: var(--twin-apk-background);
}

.page-blog-twin-apk-latest-features__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 40px;
}

.page-blog-twin-apk-latest-features__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-blog-twin-apk-latest-features__hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 1;
}

.page-blog-twin-apk-latest-features__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size for H1 */
    color: var(--twin-apk-gold);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-blog-twin-apk-latest-features__lead-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--twin-apk-text-main);
}

.page-blog-twin-apk-latest-features__btn-primary,
.page-blog-twin-apk-latest-features__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;
    margin: 10px;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-blog-twin-apk-latest-features__btn-primary {
    background: var(--twin-apk-button-gradient);
    color: var(--twin-apk-text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-blog-twin-apk-latest-features__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-blog-twin-apk-latest-features__btn-secondary {
    background: transparent;
    color: var(--twin-apk-primary-color);
    border: 2px solid var(--twin-apk-primary-color);
    box-shadow: 0 2px 8px rgba(17, 168, 78, 0.2);
}

.page-blog-twin-apk-latest-features__btn-secondary:hover {
    background: var(--twin-apk-primary-color);
    color: var(--twin-apk-text-main);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(17, 168, 78, 0.4);
}

.page-blog-twin-apk-latest-features__about-twin .page-blog-twin-apk-latest-features__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-blog-twin-apk-latest-features__feature-item {
    background-color: var(--twin-apk-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--twin-apk-border);
}

.page-blog-twin-apk-latest-features__feature-title {
    font-size: 1.5em;
    color: var(--twin-apk-primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-blog-twin-apk-latest-features__feature-description {
    color: var(--twin-apk-text-secondary);
    font-size: 1em;
}

.page-blog-twin-apk-latest-features__image-with-text {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.page-blog-twin-apk-latest-features__image-with-text--reverse {
    flex-direction: row-reverse;
}

.page-blog-twin-apk-latest-features__image-with-text .page-blog-twin-apk-latest-features__content-image {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    width: 100%;
    height: auto;
    display: block;
}

.page-blog-twin-apk-latest-features__image-with-text .page-blog-twin-apk-latest-features__text-block {
    flex: 1;
    min-width: 300px;
}

.page-blog-twin-apk-latest-features__list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-blog-twin-apk-latest-features__list-item {
    color: var(--twin-apk-text-secondary);
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    font-size: 1em;
}

.page-blog-twin-apk-latest-features__list-item::before {
    content: '✓';
    color: var(--twin-apk-primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.page-blog-twin-apk-latest-features__cta-block {
    background-color: var(--twin-apk-card-bg);
    border: 1px solid var(--twin-apk-border);
    padding: 50px;
    border-radius: 10px;
    text-align: center;
    margin-top: 60px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
}

.page-blog-twin-apk-latest-features__cta-title {
    font-size: 2em;
    color: var(--twin-apk-gold);
    margin-bottom: 20px;
    font-weight: 700;
}

.page-blog-twin-apk-latest-features__cta-description {
    font-size: 1.1em;
    color: var(--twin-apk-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog-twin-apk-latest-features__faq-list {
    margin-top: 40px;
}

.page-blog-twin-apk-latest-features__faq-item {
    background-color: var(--twin-apk-card-bg);
    border: 1px solid var(--twin-apk-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--twin-apk-text-main);
}

.page-blog-twin-apk-latest-features__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--twin-apk-primary-color);
    cursor: pointer;
    list-style: none; /* Remove default marker for details summary */
}

.page-blog-twin-apk-latest-features__faq-question::-webkit-details-marker {
    display: none;
}

.page-blog-twin-apk-latest-features__faq-qtext {
    flex-grow: 1;
}

.page-blog-twin-apk-latest-features__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--twin-apk-gold);
}

.page-blog-twin-apk-latest-features__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: var(--twin-apk-text-secondary);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-blog-twin-apk-latest-features__faq-item[open] .page-blog-twin-apk-latest-features__faq-answer {
    max-height: 500px; /* Adjust as needed for content length */
    padding-top: 10px;
}

/* Ensure text in FAQ answer is visible */
.page-blog-twin-apk-latest-features__faq-answer p {
    color: var(--twin-apk-text-secondary);
    margin-bottom: 0;
}

.page-blog-twin-apk-latest-features__conclusion .page-blog-twin-apk-latest-features__section-title {
    color: var(--twin-apk-gold);
}

.page-blog-twin-apk-latest-features__conclusion .page-blog-twin-apk-latest-features__paragraph {
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}

/* Global image responsiveness */
.page-blog-twin-apk-latest-features img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .page-blog-twin-apk-latest-features {
        font-size: 16px;
        line-height: 1.6;
        padding-top: 10px !important; /* Ensure small top margin */
    }

    .page-blog-twin-apk-latest-features__container,
    .page-blog-twin-apk-latest-features__section,
    .page-blog-twin-apk-latest-features__hero-section,
    .page-blog-twin-apk-latest-features__hero-image-wrapper,
    .page-blog-twin-apk-latest-features__hero-content,
    .page-blog-twin-apk-latest-features__image-with-text,
    .page-blog-twin-apk-latest-features__text-block,
    .page-blog-twin-apk-latest-features__feature-grid,
    .page-blog-twin-apk-latest-features__feature-item,
    .page-blog-twin-apk-latest-features__cta-block,
    .page-blog-twin-apk-latest-features__faq-list,
    .page-blog-twin-apk-latest-features__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important;
    }

    .page-blog-twin-apk-latest-features__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-blog-twin-apk-latest-features__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin-bottom: 20px;
    }

    .page-blog-twin-apk-latest-features__main-title {
        font-size: 2em;
        line-height: 1.2;
    }

    .page-blog-twin-apk-latest-features__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-blog-twin-apk-latest-features__sub-title {
        font-size: 1.5em;
    }

    .page-blog-twin-apk-latest-features__image-with-text {
        flex-direction: column !important;
        gap: 20px;
        margin-bottom: 40px;
    }

    .page-blog-twin-apk-latest-features__btn-primary,
    .page-blog-twin-apk-latest-features__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        margin: 10px 0 !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-blog-twin-apk-latest-features__hero-content .page-blog-twin-apk-latest-features__btn-primary,
    .page-blog-twin-apk-latest-features__hero-content .page-blog-twin-apk-latest-features__btn-secondary {
        display: block;
    }

    .page-blog-twin-apk-latest-features__cta-title {
        font-size: 1.5em;
    }

    .page-blog-twin-apk-latest-features__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }

    .page-blog-twin-apk-latest-features__faq-answer {
        padding: 0 20px 15px;
    }

    .page-blog-twin-apk-latest-features__feature-grid {
        grid-template-columns: 1fr;
    }
}