/*
Theme Name: Astra Child
Theme URI: https://example.com/astra-child
Description: Astra Child Theme
Author: Your Name
Author URI: https://example.com
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/

/* Import parent theme via functions.php (recommended), remove @import */

/* ===============================
   POLYLANG FLAGS (Above Header)
=============================== */
.site-header-above-section-right .widget_polylang ul {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    padding: 0;
    margin: 0;
    gap: 8px;
}

.site-header-above-section-right .widget_polylang li {
    display: inline-block !important;
    margin: 0 !important;
}

.site-header-above-section-right .widget_polylang img {
    width: 28px !important;
    height: auto !important;
    display: block;
}

/* ===============================
   HERO SECTION
=============================== */
.dph-hero {
    width: 100%;
    height: 100vh;
    min-height: 520px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.dph-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.dph-content {
    color: #ffffff;
    max-width: 900px;
    padding: 0 20px;
}

.dph-title {
    color: #ffffff;
    font-size: 4rem;
    margin-bottom: 15px;
    line-height: 1.15;
}

.dph-breadcrumb {
    font-size: 1rem;
    margin-bottom: 12px;
    opacity: 0.95;
}

.dph-breadcrumb a,
.dph-terms a {
    color: #ffffff;
    text-decoration: underline;
    margin-right: 8px;
}

/* ===============================
   HERO MOBILE RESPONSIVE
=============================== */
@media (max-width: 768px) {
    .dph-title { font-size: 2.4rem; }
    .dph-breadcrumb { font-size: 0.9rem; }
    .dph-terms a { font-size: 0.95rem; }
    .dph-overlay { align-items: flex-start; }
    .dph-content {
        width: 100%;
        padding-top: 80px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* ===============================
   HERO IMAGE + Buttons
=============================== */
.hero-section {
    width: 100%;
    background: linear-gradient(to right, #f5f9ff, #ffffff);
    padding: 60px 5%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-container {
    display: flex;
    max-width: 1200px;
    width: 100%;
    align-items: center;
    gap: 40px;
}

.hero-text { flex: 0 0 65%; }
.hero-text h1 { font-size: 2.4rem; line-height: 1.3; color: #002b5c; margin-bottom: 20px; }
.hero-text p { font-size: 1.1rem; line-height: 1.6; color: #333; margin-bottom: 30px; }

.hero-buttons { display: flex; gap: 15px; }
.btn-primary, .btn-whatsapp {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-primary { background-color: #0066cc; color: #fff; }
.btn-primary:hover { background-color: #004999; }
.btn-whatsapp { background-color: #25D366; color: #fff; }
.btn-whatsapp:hover { background-color: #1ea956; }

.hero-image { flex: 0 0 35%; text-align: right; }
.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .hero-container { flex-direction: column; text-align: center; }
    .hero-text, .hero-image { flex: 0 0 100%; }
    .hero-buttons { justify-content: center; flex-wrap: wrap; }
    .hero-image { margin-top: 25px; }
}

/* ===============================
   PARTNERS CAROUSEL
=============================== */
.partners-carousel {
    background-color: #f5f5f5;
    padding: 15px 0;
    overflow: hidden;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-track {
    display: flex;
    gap: 40px;
    animation: scroll 25s linear infinite;
    align-items: center;
}

.carousel-track .slide {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-track .slide img {
    width: 150px;
    height: auto;
    object-fit: contain;
    display: block;
}

@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

@media (max-width: 768px) {
    .carousel-track { gap: 25px; }
    .carousel-track .slide img { width: 33vw; }
}

@media (max-width: 480px) {
    .carousel-track { gap: 20px; }
    .carousel-track .slide img { width: 45vw; }
}

/* ===============================
   TABLE OF CONTENTS (TOC)
=============================== */
.section-toc-container,
.category-toc {
    background-color: #f4f4f4;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
}

.toc-header,
.category-toc .toc-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.toc-list,
.category-toc ul {
    list-style: none;
    padding-left: 0;
    counter-reset: toc-counter;
}

.toc-list li,
.category-toc li {
    font-size: 16px;
    margin-bottom: 8px;
    color: #555;
    counter-increment: toc-counter;
}

.toc-list a,
.category-toc a {
    text-decoration: none;
    color: #333;
    display: inline-block;
    padding-left: 25px;
    position: relative;
}

.toc-list a::before,
.category-toc a::before {
    content: counter(toc-counter) ". ";
    position: absolute;
    left: 0;
    font-weight: bold;
    color: #d97006;
}

.toc-list a:hover,
.category-toc a:hover { color: #007bff; }

.additional-items,
.category-toc .toc-hidden { display: none; }

.read-more-btn,
.category-toc .toc-toggle { 
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
    color: #005fee;
    cursor: pointer;
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
}

.read-more-btn:hover,
.category-toc .toc-toggle:hover { color: #007bff; }

/* ===============================
   MOBILE MENU
=============================== */
.dph-mobile-menu {
    width: 100vw;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scrollbar-width: none;
}

.dph-mobile-menu::-webkit-scrollbar { display: none; }

.dph-mobile-menu .scroll-track {
    display: inline-flex;
    gap: 16px;
}

.dph-mobile-menu .scroll-track a {
    display: inline-block;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 12px;
    flex-shrink: 0;
    white-space: nowrap;
}

@media (min-width: 769px) { .dph-mobile-menu { display: none; } }

/* ===============================
   ANIMATIONS
=============================== */
.menu-highlight > a::after {
    content: '';
    width: 8px;
    height: 8px;
    background-color: #ff3b3b;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: translateY(-50%) scale(1); opacity: 1; }
    50% { transform: translateY(-50%) scale(1.6); opacity: 0.4; }
    100% { transform: translateY(-50%) scale(1); opacity: 1; }
}



.zoiwa-recent-posts-horizontal {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 10px;
    scroll-snap-type: x mandatory;
}
.zoiwa-recent-posts-horizontal::-webkit-scrollbar {
    height: 8px;
}
.zoiwa-recent-posts-horizontal::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
}
.zoiwa-post-item {
    min-width: 280px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    flex-shrink: 0;
    transition: transform 0.3s;
}
.zoiwa-post-item:hover {
    transform: translateY(-5px);
}
.zoiwa-post-item img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}
.zoiwa-post-item h3 {
    font-size: 16px;
    margin: 0;
}
.zoiwa-post-item h3 a {
    color: #222;
    text-decoration: none;
}
.zoiwa-post-item h3 a:hover {
    color: #ff6b00;
}



.zoiwa-categories-horizontal {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 10px;
    scroll-snap-type: x mandatory;
}
.zoiwa-categories-horizontal::-webkit-scrollbar {
    height: 8px;
}
.zoiwa-categories-horizontal::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
}
.zoiwa-cat-item {
    min-width: 260px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}
.zoiwa-cat-item:hover {
    transform: translateY(-5px);
}
.zoiwa-cat-item img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}
.zoiwa-cat-item h3 {
    font-size: 16px;
    margin: 0;
}
.zoiwa-cat-item h3 a {
    color: #222;
    text-decoration: none;
}
.zoiwa-cat-item h3 a:hover {
    color: #ff6b00;
}




/* Container for the Table of Contents (TOC) and Ad */
.toc-ad-container {
    text-align: center;
    margin: 20px 0;
}

/* The ad image itself */
.toc-ad-image {
    width: 100%;      /* Make it responsive */
    max-width: 336px; /* Set max-width for large screens */
    height: auto;     /* Maintain aspect ratio */
    max-height: 280px;/* Set a max-height to keep the aspect ratio 336x280 */
    margin: 0 auto;   /* Center the ad */
    display: block;
    border-radius: 8px; /* Optional: Adds rounded corners to the ad */
}

/* Mobile responsiveness - for smaller screens */
@media (max-width: 768px) {
    .toc-ad-image {
        max-width: 100%; /* Allow image to take up full width on smaller screens */
        height: auto;
        max-height: none; /* Remove max-height constraint */
    }
}
@media (max-width: 480px) {
    .toc-ad-image {
        max-width: 80%; /* Make the ad smaller on very small screens */
        margin: 10px auto; /* Add margin for spacing */
    }
}
 .trust-bar { background: #fff; padding: 20px 0; border-bottom: 1px solid #eee; display: flex; justify-content: space-around; flex-wrap: wrap; text-align: center; }
    .trust-item { flex: 1; min-width: 150px; font-size: 14px; font-weight: bold; color: #555; }