/*
Theme Name:   Ayekoo Theme
Theme URI:    https://www.ayekooafrique.com
Author:       The Ayekoo Team
Description:  A custom theme for the Ayekoo Afrique website.
Version:      1.6
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  ayekootheme
*/

/* --- Global Styles & Fonts --- */
body {
    font-family: 'Open Sans', sans-serif;
    background-color: #FEF6EF;
    /* Parchment */
    color: #000000;
    /* Foundation Black */
    margin: 0;
    font-size: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Ubuntu', sans-serif;
    font-weight: 700;
}

h2.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-top: 0;
    margin-bottom: 60px;
    color: #000000;
}

h2.section-title.light-text {
    color: #FEF6EF;
}

a {
    text-decoration: none;
    color: #137057;
    /* Heritage Green */
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Reusable Components --- */
.homepage-section {
    padding: 100px 20px;
}

.how-it-works-v3 {
    background-color: #FEF6EF;
}

.how-it-works-grid-v3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    position: relative;
}

.how-it-works-grid-v3::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 15%;
    right: 15%;
    height: 2px;
    background-image: linear-gradient(to right, #137057 33%, rgba(255, 255, 255, 0) 0%);
    background-position: bottom;
    background-size: 15px 2px;
    background-repeat: repeat-x;
    z-index: 0;
}

.how-it-works-card-v3 {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.how-it-works-card-v3::after {
    content: attr(data-step);
    position: absolute;
    right: -10px;
    bottom: -30px;
    font-size: 10rem;
    font-weight: 700;
    color: #137057;
    opacity: 0.08;
    z-index: 0;
    line-height: 1;
}

.how-it-works-card-v3>* {
    position: relative;
    z-index: 1;
}

.how-it-works-title {
    font-size: 1.5rem;
    color: #137057;
    margin-top: 0;
    margin-bottom: 15px;
}


/* --- Header & Navigation --- */
.site-header {
    background-color: rgba(254, 246, 239, 0.85);
    backdrop-filter: blur(0px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    /* Prevent wrapping on mobile */
}

.main-nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

img.custom-logo {
    max-height: 30px;
    width: auto;
    object-fit: contain;
    display: block;
}

.custom-logo-link {
    line-height: 1;
}

.desktop-nav-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.desktop-nav-menu ul li {
    margin-left: 30px;
}

.desktop-nav-menu ul a {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    color: #000000;
    transition: color 0.3s ease;
}

.desktop-nav-menu ul a:hover {
    color: #F99D18;
}

.default-logo,
.hub-logo,
.journal-logo {
    font-family: 'Ubuntu', sans-serif;
    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
}

.default-logo {
    color: #137057;
}

.hub-logo {
    color: #F99D18;
    font-style: italic;
}

.journal-logo {
    color: #137057;
    font-size: 24px;
}

/* --- Buttons --- */
.button {
    display: inline-block;
    color: white;
    font-weight: 700;
    padding: 18px 36px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.button-green {
    background-color: #137057;
}

.button-green:hover {
    background-color: #0f5a45;
}

.button-orange {
    background-color: #F99D18;
}

.button-orange:hover {
    background-color: #e08c10;
}

.button-outline {
    display: inline-block;
    color: #137057;
    font-weight: 700;
    padding: 16px 36px;
    border-radius: 8px;
    border: 2px solid #137057;
    background-color: transparent;
}

.button-outline:hover {
    background-color: #137057;
    color: white;
}

.button-outline-light {
    display: inline-block;
    color: #FEF6EF;
    font-weight: 700;
    padding: 16px 36px;
    border-radius: 8px;
    border: 2px solid #FEF6EF;
    background-color: transparent;
}

.button-outline-light:hover {
    background-color: #FEF6EF;
    color: #137057;
}

.login-button {
    padding: 10px 24px;
    font-size: 0.9rem;
}


.cta-container {
    text-align: center;
    margin-top: 40px;
}

/* --- Page & Post Templates --- */
.page-hero {
    background-color: #FEF6EF;
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.page-hero .entry-title {
    font-size: 2.8rem;
    margin: 0;
    color: #137057;
}

.page-hero-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 15px auto 0 auto;
    color: #000000;
    opacity: 0.8;
}

.page-body {
    padding: 60px 0;
}

.entry-content-area {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
    max-width: 800px;
    margin: 0 auto;
}

.entry-content-area p {
    line-height: 1.7;
    margin-bottom: 1em;
}

.intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.intro h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.intro p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Single Language Page Styles */
.language-section {
    padding: 60px 0;
    border-bottom: 1px solid #f1f1f1;
}

.language-section:last-of-type {
    border-bottom: none;
}

.language-section.bg-white {
    background-color: white;
}

.language-intro-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.language-story h2 {
    font-size: 2rem;
    margin-top: 0;
}

.language-story p {
    line-height: 1.7;
}

.quick-facts-widget {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
}

.quick-facts-widget h4 {
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 20px;
    color: #137057;
}

.quick-facts-widget p {
    margin-bottom: 10px;
}

.who-for-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.who-for-item {
    font-size: 1.1rem;
    font-weight: 600;
}

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.curriculum-card {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    border-top: 4px solid #137057;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
}

.curriculum-card h3 {
    font-size: 1.5rem;
    margin-top: 0;
}

.curriculum-card ul {
    list-style: none;
    padding: 0;
}

.curriculum-card li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 10px;
}

.curriculum-card li:before {
    content: '✓';
    color: #137057;
    position: absolute;
    left: 0;
}

.language-tutors-section {
    padding: 80px 0;
}

.testimonials-section .intro {
    margin-bottom: 40px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.testimonial-card {
    background-color: #f0f7f5;
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid #137057;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial-author {
    font-weight: 700;
}

.hub-cta-section {
    background-color: white;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
}

.final-cta-section,
.final-booking-section {
    text-align: center;
    background-color: #f0f7f5;
    padding: 60px 20px;
    border-radius: 12px;
}

.final-cta-section h2,
.final-booking-section h2 {
    font-size: 2.2rem;
}

.final-cta-section .button {
    font-size: 1.2rem;
    padding: 18px 40px;
}

/* --- Single Tutor Profile Compact Layout (V2 - Complete Styling) --- */
.single-tutor .page-body {
    background-color: #f7f7f7;
    padding: 40px 0;
}

.tutor-profile-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.tutor-profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px;
    border-bottom: 1px solid #eee;
    background-color: #FEF6EF;
    /* Parchment accent */
}

.tutor-profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 4px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tutor-profile-name {
    margin: 0 0 10px;
    font-size: 2.5rem;
    color: #137057;
    /* Heritage Green */
}

.tutor-key-info p {
    margin: 0 0 5px;
    color: #555;
    font-size: 1rem;
}

.tutor-profile-body {
    padding: 40px;
}

/* --- Styling for Tutor Profile Video --- */
.tutor-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.tutor-video-wrapper iframe,
.tutor-video-wrapper object,
.tutor-video-wrapper embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.tutor-profile-body .tutor-bio-content h2,
.tutor-profile-body .tutor-bio-content h3 {
    font-size: 1.5rem;
    color: #137057;
    /* Heritage Green */
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.tutor-profile-body .tutor-bio-content p {
    line-height: 1.7;
    margin-bottom: 1em;
}

/* --- Transparent Booking Section on Single Tutor Page --- */
.single-tutor .tutor-booking-calendar {
    max-width: 100%;
    /* Allow section to be full width */
    margin: 40px auto 0;
    background-color: transparent;
    /* Remove white background */
    border-radius: 0;
    padding: 0;
    /* Remove padding */
    box-shadow: none;
    /* Remove shadow */
}

.single-tutor .tutor-booking-calendar .container {
    max-width: 900px;
    /* Re-apply max-width to the content inside */
    margin: 0 auto;
    padding: 0 20px;
    /* Add side padding */
}

/* --- Tutor Profile Header Button --- */
.tutor-profile-header {
    justify-content: space-between;
    /* Pushes items to each side */
}

.tutor-header-main {
    display: flex;
    align-items: center;
    gap: 30px;
}

.tutor-header-actions .button {
    flex-shrink: 0;
    /* Prevents the button from shrinking */
    padding: 12px 28px;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .tutor-profile-header {
        flex-direction: column;
    }

    .tutor-header-main {
        flex-direction: column;
        text-align: center;
    }

    .tutor-header-actions {
        margin-top: 20px;
    }
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .tutor-profile-header {
        flex-direction: column;
        text-align: center;
    }

    .tutor-profile-name {
        font-size: 2rem;
    }

    .tutor-profile-body {
        padding: 25px;
    }
}

/* Blog & Archive Styles */
.blog-grid,
.all-tutors-grid,
.all-languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.post-card,
.tutor-grid-card,
.language-grid-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.post-card:hover,
.tutor-grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.language-grid-card:hover .language-card-image img {
    transform: scale(1.05);
}

.post-card-image img,
.tutor-grid-portrait img,
.language-card-image img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card-image img {
    height: 200px;
}

.tutor-grid-portrait img {
    height: 280px;
}

.language-card-image {
    height: 200px;
}

.language-card-image.placeholder {
    background-color: #137057;
}

.post-card-content,
.tutor-grid-content,
.language-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card-title,
.tutor-grid-name,
.language-grid-name {
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.post-card-title a,
.tutor-grid-name a,
.language-grid-name a {
    color: #000000;
}

.post-card-title a:hover,
.tutor-grid-name a:hover,
.language-grid-name a:hover {
    color: #137057;
}

.post-card-excerpt,
.tutor-grid-philosophy,
.language-grid-desc {
    color: #555;
    flex-grow: 1;
    margin-bottom: 25px;
}

.tutor-grid-languages {
    color: #137057;
    font-weight: 600;
    margin-bottom: 15px;
}

.language-grid-card {
    padding: 0;
}

.language-card-content {
    padding: 25px;
}

/* Footer */
.site-footer {
    background: #FEF6EF;
    color: #000000;
    padding-top: 60px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-column .footer-widget-title {
    font-size: 1.25rem;
}

.footer-links-list,
.footer-links-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 10px;
}

.footer-bottom-bar {
    background-color: #137057;
    padding: 20px 0;
    text-align: center;
}

.copyright {
    margin: 0;
    font-size: 0.875rem;
    color: white;
    opacity: 0.8;
}

/* Modern Tutor Card Styles */
.tutors-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.tutor-card-modern {
    text-align: center;
}

.tutor-card-modern .tutor-card-content {
    padding: 0;
}

.tutor-avatar-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px auto;
    transition: transform 0.3s ease;
}

.tutor-card-modern:hover .tutor-avatar-image {
    transform: scale(1.05);
}

.tutor-card-modern .tutor-card-name {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 5px;
}

.tutor-card-modern .tutor-card-name a {
    color: #000000;
    text-decoration: none;
}

.tutor-card-modern .tutor-card-name a:hover {
    color: #137057;
}

.tutor-card-modern .tutor-card-languages {
    color: #F99D18;
    font-weight: 600;
    margin: 0;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* ==========================================================================
   NEW MOBILE MENU SYSTEM (FROM SCRATCH)
   ========================================================================== */

/* 1. Base styles for the hamburger button */
.hamburger-button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: none;
    /* Hidden by default on desktop */
}

.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 100%;
    height: 3px;
    background-color: #000000;
    position: absolute;
    border-radius: 4px;
    transition: transform 0.25s ease-in-out;
}

.hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
}

.hamburger-inner::before {
    top: -10px;
}

.hamburger-inner::after {
    bottom: -10px;
}

/* 2. Styles for the slide-out panel */
.mobile-nav-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background-color: #FEF6EF;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-nav-panel.is-open {
    transform: translateX(0);
}

body.mobile-menu-is-active {
    overflow: hidden;
    /* Prevent scrolling when menu is open */
}

/* =========================================
   AYEKOO PREMIUM UI UTILITIES (Ported from React)
   ========================================= */

/* 1. Glassmorphism Cards */
.card-premium {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -1px rgba(0, 0, 0, 0.03),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
}

/* 2. Hover Effects */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow:
        0 12px 20px -8px rgba(0, 0, 0, 0.1),
        0 4px 12px -4px rgba(0, 0, 0, 0.05);
}

.hover-glow:hover {
    box-shadow: 0 0 15px rgba(249, 157, 24, 0.4);
}

/* 3. Textures */
.texture-paper {
    background-color: #fdfbf7;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 1.79 4 4 1.79 4 4 1.79 4 4 1.79 4 4 1.79 4 4 1.79 4 4 1.79 4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 2.24 5 5 2.24 5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 2.24 5 5 2.24 5 5 2.24 5 5 2.24 5 5 2.24 5 5 2.24 5 5 2.24 5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%239C92AC' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* 4. Text Gradients */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(135deg, #137057 0%, #F99D18 100%);
}

.text-gradient-gold {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(135deg, #F99D18 0%, #FFD700 50%, #F99D18 100%);
}

.text-gradient-green {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(135deg, #137057 0%, #2f8e75 100%);
}

/* 5. Utility Classes for New Designs */
.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.object-cover {
    object-fit: cover;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.z-10 {
    z-index: 10;
}

.z-20 {
    z-index: 20;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-full {
    border-radius: 9999px;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

.p-8 {
    padding: 2rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.text-center {
    text-align: center;
}

.text-white {
    color: white;
}

.font-bold {
    font-weight: 700;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-5xl {
    font-size: 3rem;
    line-height: 1;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-wide {
    letter-spacing: 0.025em;
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

/* Specific Overrides for Single Styles */
.journal-drop-cap::first-letter {
    font-size: 4rem;
    float: left;
    margin-right: 0.5rem;
    margin-top: -0.5rem;
    color: #137057;
    font-family: 'Ubuntu', sans-serif;
    font-weight: 700;
}

.sticky-sidebar {
    position: sticky;
    top: 100px;
}

.glass-banner-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
}


/* 3. Styles for the panel's header and close button */
.mobile-nav-header {
    display: flex;
    justify-content: flex-end;
    padding: 10px;
    flex-shrink: 0;
}

/* 4. Styles for the menu links inside the panel */
.mobile-nav-menu-container {
    padding: 20px 30px;
    overflow-y: auto;
    flex-grow: 1;
}

.mobile-main-menu,
.dashboard-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-main-menu li,
.dashboard-nav-menu li {
    margin-bottom: 5px;
}

.mobile-main-menu a,
.dashboard-nav-menu a {
    display: block;
    padding: 12px 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #137057;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* 5. The Media Query to activate everything on mobile */
@media (max-width: 768px) {

    /* Hide the desktop menu */
    .desktop-nav-menu {
        display: none;
    }

    /* Show the mobile menu trigger button */
    #mobile-menu-trigger {
        display: block;
    }
}


/* --- BEGIN RESPONSIVE FIXES --- */

/* For Desktops: Hide mobile-only elements */
@media (min-width: 769px) {

    .mobile-nav-panel,
    .hamburger-button.header-hamburger {
        display: none !important;
    }
}

/* For Tablets */
@media (max-width: 992px) {
    .curriculum-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tutor-profile-grid-v2 {
        grid-template-columns: 1fr;
    }

    .tutor-sidebar-widget {
        position: static;
        margin-top: 40px;
    }
}

/* For Mobile Phones */
@media (max-width: 768px) {

    /* --- Global Mobile Styles --- */
    h2.section-title,
    .intro h2,
    .final-cta-section h2,
    .final-booking-section h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .page-hero .entry-title {
        font-size: 2.2rem;
    }

    /* --- Page Specific Stacking --- */
    .language-intro-grid,
    .testimonial-grid,
    .who-for-grid,
    .curriculum-grid {
        grid-template-columns: 1fr;
    }

    .tutor-sidebar-name,
    .tutor-bio-content h2 {
        font-size: 1.8rem;
    }

    /* --- Mobile Navigation Activation --- */
    .desktop-nav-menu,
    .desktop-login-button {
        display: none;
    }

    .hamburger-button.header-hamburger {
        display: inline-block;
    }

    .main-nav {
        flex-wrap: nowrap;
    }

    .site-logo-container {
        flex-shrink: 1;
        min-width: 0;
        padding-left: 20px;
    }

    .main-nav-right {
        display: flex;
        align-items: center;
        gap: 10px;
        padding-right: 20px;
    }

    .main-nav-right .login-button {
        display: inline-block;
        padding: 8px 15px;
        font-size: 0.85rem;
        border: 1px solid #137057;
        background-color: transparent;
        color: #137057;
    }

    .main-nav-right .login-button:hover {
        background-color: #137057;
        color: white;
    }
}

/* --- Tutor Dashboard: Final Design --- */
.tutor-dashboard-page .page-body {
    background-color: #f7f7f7;
    padding-top: 20px;
    /* Reduced top padding as there's no hero title */
}

.dashboard-grid-final {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 992px) {
    .dashboard-grid-final {
        grid-template-columns: 2.5fr 1fr;
    }
}

.dashboard-widget {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
    margin-bottom: 30px;
}

.sidebar-column .dashboard-widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.1rem;
    text-transform: uppercase;
    color: #555;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

/* Primary Welcome & Balance Card */
.dashboard-widget.primary-widget {
    background-color: #137057;
    color: #fff;
}

.tutor-welcome-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.tutor-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.tutor-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
}

.tutor-greeting .greeting-text {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.tutor-greeting .greeting-subtext {
    font-size: 1rem;
    opacity: 0.8;
}

.balance-info {
    text-align: right;
}

.balance-details {
    margin-bottom: 15px;
}

.balance-info .stat-label {
    color: #fff;
    opacity: 0.8;
    font-size: 0.9rem;
}

.balance-info .stat-value {
    color: #fff;
    font-size: 2.5rem;
}

.balance-info .button-green {
    background-color: #fff;
    color: #137057;
}

/* Lesson Tabs & Lists */
.lesson-tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 30px;
}

.lesson-tab-link {
    background: none;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: #555;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
}

.lesson-tab-link.active {
    color: #137057;
    border-bottom-color: #137057;
}

.lesson-tab-content {
    display: none;
}

.tutor-lesson-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tutor-lesson-items li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    padding: 20px 5px;
}

.lesson-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lesson-service-name {
    font-size: 1.1rem !important;
    color: #137057;
}

.lesson-actions {
    text-align: right;
}

.lesson-amount {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 10px;
}

.lesson-actions .button-outline {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Sidebar Widgets */
.stat-card-mini {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.stat-card-mini:last-child {
    border-bottom: none;
}

.stat-card-mini .stat-label {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: #555;
    display: block;
    text-transform: uppercase;
}

.stat-card-mini .stat-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-card-mini .stat-value {
    font-size: 2rem;
    color: #137057;
    font-weight: 700;
    line-height: 1;
}

.stat-graph {
    flex-grow: 1;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.stat-graph .bar {
    height: 100%;
    background-color: #F99D18;
    border-radius: 4px;
}

.tutor-lesson-items-mini {
    list-style: none;
    padding: 0;
    margin: 0;
}

.upcoming-lesson-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
    color: #333;
    transition: background-color 0.2s;
    margin: 0 -15px;
}

.tutor-lesson-items-mini li:last-child .upcoming-lesson-link {
    border-bottom: none;
}

.upcoming-lesson-link:hover {
    background-color: #f9f9f9;
}

.upcoming-lesson-link .lesson-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.upcoming-lesson-link .lesson-service-name {
    font-size: 0.95rem;
}

.upcoming-lesson-link .lesson-student-name-mini {
    font-size: 0.9rem;
    color: #555;
}

.upcoming-lesson-link .lesson-time {
    font-size: 0.9rem;
    color: #137057;
    text-align: right;
    line-height: 1.3;
    font-weight: 600;
}

.notification-count {
    background-color: #F99D18;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: bold;
    vertical-align: top;
    margin-left: 5px;
}

/* ==========================================================================
   FINAL MOBILE MENU CLOSE BUTTON OVERRIDE
   ========================================================================== */

#mobile-menu-close .hamburger-inner {
    background-color: transparent !important;
}

#mobile-menu-close .hamburger-inner::before,
#mobile-menu-close .hamburger-inner::after {
    background-color: #000000 !important;
    /* Ensures the 'X' is visible */
}

#mobile-menu-close .hamburger-inner::before {
    transform: translateY(10px) rotate(45deg) !important;
}

#mobile-menu-close .hamburger-inner::after {
    transform: translateY(-10px) rotate(-45deg) !important;
}

/* --- NEW: Styles for Modern & Wide Single Post Page --- */

.ayekoo-single-post-modern .post-header-modern {
    position: relative;
    width: 100%;
    height: 60vh;
    /* Controls the height of the header image */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-bottom: 60px;
}

.ayekoo-single-post-modern .post-featured-image-modern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* Add a dark overlay so the white text is readable */
.ayekoo-single-post-modern .post-featured-image-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.ayekoo-single-post-modern .post-header-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.ayekoo-single-post-modern .post-title-modern {
    font-family: 'Ubuntu', sans-serif;
    font-size: 3.5em;
    /* Larger title */
    font-weight: 700;
    margin: 0 0 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.ayekoo-single-post-modern .post-meta-modern {
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.ayekoo-single-post-modern .post-meta-modern a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.ayekoo-single-post-modern .post-content-modern {
    max-width: 800px;
    /* Wider content area */
    margin: 0 auto 60px;
    font-size: 1.1em;
    line-height: 1.8;
}

.ayekoo-single-post-modern .post-content-modern h2,
.ayekoo-single-post-modern .post-content-modern h3 {
    font-family: 'Ubuntu', sans-serif;
    margin-top: 40px;
    margin-bottom: 20px;
}

.ayekoo-single-post-modern .post-comments-modern {
    max-width: 800px;
    margin: 0 auto;
}

/* --- NEW: Leaderboard Styles --- */
.main-leaderboard-section {
    background-color: #f7f7f7;
    padding: 80px 0;
}

.leaderboard-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.leaderboard-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.leaderboard-card {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.leaderboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.leaderboard-rank {
    font-family: 'Ubuntu', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #137057;
    width: 40px;
    flex-shrink: 0;
    text-align: center;
}

.leaderboard-student-info {
    display: flex;
    align-items: center;
    flex-grow: 1;
    gap: 15px;
}

.leaderboard-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.leaderboard-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.leaderboard-xp {
    font-family: 'Ubuntu', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #F99D18;
}

.ayekoo-single-post-modern .post-comments-modern {
    max-width: 800px;
    margin: 0 auto;
}

/* --- NEW CSS for Author Bio & Related Posts --- */

/* Placeholder background for posts without a featured image */
.placeholder-bg {
    background-color: #137057;
    /* Heritage Green */
}

/* Author Bio Box */
.post-author-bio-box {
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 800px;
    margin: 60px auto;
    padding: 30px;
    background-color: #f7f7f7;
    border-radius: 12px;
}

.post-author-bio-box .author-avatar img {
    border-radius: 50%;
}

.post-author-bio-box .author-details h3 {
    margin-top: 0;
    font-family: 'Ubuntu', sans-serif;
}

.post-author-bio-box .author-details p {
    margin-bottom: 0;
    font-size: 0.95em;
    line-height: 1.6;
}

/* Related Posts Section */
.related-posts-section {
    padding: 80px 0;
    background-color: #FEF6EF;
    /* Parchment */
    border-top: 1px solid #e0e0e0;
}

.related-posts-section .section-title {
    text-align: center;
    margin-bottom: 60px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.related-post-card {
    display: block;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    text-decoration: none;
    color: #000000;
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.related-post-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.related-post-content {
    padding: 25px;
}

.related-post-title {
    font-family: 'Ubuntu', sans-serif;
    font-size: 1.4rem;
    line-height: 1.4;
    margin: 0;
}

/* --- Reusable Archive Card Styles --- */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.image-card {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    overflow: hidden;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 400px;
    /* Increased height for better look */
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.image-card:hover {
    transform: translateY(-5px);
}

.image-card__link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.image-card__overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 70%);
    /* Darker gradient */
    padding: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.image-card__title {
    font-family: 'Ubuntu', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
    /* Stronger shadow */
    margin: 0;
    position: absolute;
    top: 25px;
    left: 25px;
    right: 25px;
    /* Added right padding */
    line-height: 1.2;
    /* Better line spacing for long titles */
}

.image-card__content {
    padding: 0;
}

.image-card__content p {
    color: #f0f0f0;
    margin-bottom: 25px;
}

.image-card .button-outline {
    color: #ffffff;
    border-color: #ffffff;
}

.image-card .button-outline:hover {
    background-color: #ffffff;
    color: #137057;
}

/* --- FIX FOR STUDENT PANEL SPACING --- */
body.page-template-template-student-panel .page-body {
    padding-top: 5px !important;
    padding-bottom: 10px !important;
}

/* ==========================================================================
   REVIEW SYSTEM STYLING - FULLY STYLED WITH BEM FORMAT
   ========================================================================== */

/* --- REVIEW FORM STYLING --- */
.review-form {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
    border: 1px solid #e0e0e0;
}

.review-form__header {
    font-size: 2.2rem;
    font-family: 'Ubuntu', sans-serif;
    color: #137057;
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
}

.review-form__row {
    margin-bottom: 20px;
}

.review-form__label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #000;
}

.review-form__textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    transition: border-color 0.3s;
    font-family: 'Open Sans', sans-serif;
}

.review-form__textarea:focus {
    outline: none;
    border-color: #137057;
}

/* Star rating system */
.review-form__rating-stars {
    display: flex;
    flex-direction: row-reverse;
    font-size: 2.5rem;
    color: #ddd;
    line-height: 1;
    justify-content: flex-end;
}

.review-form__rating-stars-input {
    display: none;
}

.review-form__rating-stars-label {
    cursor: pointer;
    transition: color 0.3s ease;
    margin-right: 5px;
}

.review-form__rating-stars-label:hover,
.review-form__rating-stars-label:hover~.review-form__rating-stars-label,
.review-form__rating-stars-input:checked~.review-form__rating-stars-label {
    color: #F99D18;
}

/* Checkbox tags styling */
.review-form__tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.review-form__tags-label {
    display: block;
    background-color: #f0f7f5;
    color: #137057;
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.review-form__tags-input {
    display: none;
}

.review-form__tags-input:checked+.review-form__tags-label {
    background-color: #137057;
    color: #fff;
    border-color: #137057;
}

/* Anonymous checkbox */
.review-form__anonymous-option {
    margin-top: 20px;
    font-weight: 600;
    color: #555;
    display: flex;
    align-items: center;
}

.review-form__anonymous-input {
    margin-right: 8px;
}

/* Button styling */
.review-form__button {
    background-color: #137057;
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-form__button:hover {
    background-color: #0f5a45;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* --- REVIEW DISPLAY STYLING (V2 - GRID LAYOUT) --- */
.reviews-section {
    margin-top: 60px;
    border-top: 1px solid #eee;
    padding-top: 40px;
}

.reviews-section__header {
    font-size: 2rem;
    font-family: 'Ubuntu', sans-serif;
    color: #137057;
    margin-bottom: 30px;
    text-align: center;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background-color: rgba(255, 255, 255, 0.8);
    /* White with 80% opacity */
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(224, 224, 224, 0.5);
    /* Lighter, semi-transparent border */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    /* A slightly stronger shadow for depth */
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(50px);
    /* This creates the "frosted glass" effect */
    -webkit-backdrop-filter: blur(50px);
    /* For Safari support */
}

.review-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.review-card__reviewer {
    display: flex;
    flex-direction: column;
}

.review-card__reviewer-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #000;
}

.review-card__verified-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #137057;
}

.review-card__verified-icon {
    width: 16px;
    height: 16px;
}

.review-card__rating {
    color: #F99D18;
    font-size: 1.2rem;
    line-height: 1;
    flex-shrink: 0;
}

.review-card__context {
    font-size: 0.85rem;
    color: #555;
    margin: -5px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.review-card__content {
    font-style: italic;
    color: #555;
    line-height: 1.6;
    flex-grow: 1;
    /* Pushes tags to the bottom */
    margin-bottom: 15px;
}

.review-card__tags {
    margin-top: auto;
    /* Pushes tags to the bottom */
}

.review-card__tag {
    display: inline-block;
    background-color: #f0f7f5;
    color: #137057;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 8px;
    margin-bottom: 8px;
}

/* --- PWA Install Banner & Modal Styles --- */

.pwa-install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #137057;
    /* Heritage Green */
    color: #fff;
    padding: 15px 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    gap: 15px;
    transition: all 0.2s ease-in-out;
}

.pwa-install-banner:hover {
    background-color: #0f5a45;
}

.pwa-install-banner .banner-content {
    display: flex;
    align-items: center;
    flex-grow: 1;
    gap: 15px;
}

.pwa-install-banner .app-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.pwa-install-banner .banner-text {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.pwa-install-banner .pwa-banner-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    padding: 0;
    margin: 0;
    line-height: 1;
    position: margin-left;
    /* This is the fix to prevent clipping */
    right: 90px;
    top: 70%;
    transform: translateX(-90%);
}

/* Modal Overlay */
.pwa-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Modal Content */
.pwa-modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

.pwa-modal-content .pwa-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #888;
}

.pwa-modal-content h3 {
    margin-top: 0;
    font-family: 'Ubuntu', sans-serif;
    color: #137057;
}

.pwa-modal-content .pwa-instructions-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.pwa-modal-content .pwa-step-number {
    font-family: 'Ubuntu', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #F99D18;
    /* Ayekoo Orange */
    line-height: 1.2;
    flex-shrink: 0;
}

/* ==========================================================================
   FLEXIBLE LOGO DISPLAY SYSTEM
   ========================================================================== */

/* 1. Base styles for the logo container */
.site-logo-container {
    display: flex;
    align-items: center;
    gap: 3px;
    /* Adjust spacing between image and text */
    text-decoration: none;
}

/* 2. Styles for the new text logo */
.text-logo {
    font-family: 'Ubuntu', sans-serif;
    /* Matches your H-tags */
    font-size: 1.6rem;
    /* Adjust size as needed */
    font-weight: 700;
    color: #137057;
    /* Ayekoo Orange */
    line-height: 1;
    text-decoration: none;
}

/* 3. Control visibility based on the body class from Theme Options */

/* Show ONLY the image */
body.logo-display-image_only .text-logo {
    display: none;
}

/* Show ONLY the text */
body.logo-display-text_only .custom-logo-link {
    display: none;
}

/* For "Image + Text", both are visible by default, so no extra rule is needed. */

/* Ensure the custom logo link doesn't get extra decorations */
.custom-logo-link {
    line-height: 1;
    /* Helps with vertical alignment */
}

/* =========================================
   UTILITY SHIM (For PHP Templates without Tailwind)
   ========================================= */

/* Layout & Positioning */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.z-10 {
    z-index: 10;
}

.z--1 {
    z-index: -1;
}

.overflow-hidden {
    overflow: hidden;
}

/* Flexbox */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.items-end {
    align-items: flex-end;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.flex-grow {
    flex-grow: 1;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

/* Grid (Basic) */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .md\:col-span-2 {
        grid-column: span 2 / span 2;
    }

    .md\:col-span-1 {
        grid-column: span 1 / span 1;
    }

    .md\:row-span-2 {
        grid-row: span 2 / span 2;
    }
}

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

/* Spacing Helpers */
.m-0 {
    margin: 0;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.my-8 {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-12 {
    margin-top: 3rem;
}

.mt-16 {
    margin-top: 4rem;
}

.mt-24 {
    margin-top: 6rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.pb-20 {
    padding-bottom: 5rem;
}

/* Typography */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.font-bold {
    font-weight: 700;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-wide {
    letter-spacing: 0.025em;
}

.leading-tight {
    line-height: 1.25;
}

.leading-relaxed {
    line-height: 1.625;
}

.font-serif {
    font-family: 'Merriweather', 'Georgia', serif;
}

/* Fallback serif */

/* Text Sizes (Desktop) */
.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-base {
    font-size: 1rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-5xl {
    font-size: 3rem;
}

/* Colors */
.text-white {
    color: #fff;
}

.text-gray-900 {
    color: #111827;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-500 {
    color: #6b7280;
}

.bg-white {
    background-color: #fff;
}

.bg-black {
    background-color: #000;
}

.bg-gray-200 {
    background-color: #e5e7eb;
}

/* Visuals */
.rounded-full {
    border-radius: 9999px;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.border {
    border-width: 1px;
}

.border-2 {
    border-width: 2px;
}

.border-4 {
    border-width: 4px;
}

.border-white {
    border-color: #fff;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Opacity & Blur */
.bg-opacity-30 {
    background-color: rgba(0, 0, 0, 0.3);
}

.backdrop-blur-md {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}


/* =========================================
   MODERN MAGAZINE DESIGN SPECIFICS (Final Version)
   ========================================= */

.magazine-page-wrapper {
    background: linear-gradient(to bottom, #FEF6EF, #ffffff);
}

.magazine-hero-section {
    /* Padding handled by utility shim */
}

.magazine-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    /* gap-12 */
}

@media (min-width: 768px) {
    .magazine-hero-grid {
        grid-template-columns: 1fr 1fr;
    }

    .text-6xl {
        font-size: 3.75rem;
    }
}

.separator-line {
    width: 2rem;
    height: 2px;
    background-color: #F99D18;
    display: inline-block;
}

.magazine-title {
    font-size: 2.25rem;
    line-height: 1.25;
    margin-bottom: 1.5rem;
    color: #137057;
}

@media (min-width: 768px) {
    .magazine-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .magazine-title {
        font-size: 3.75rem;
    }
}

.magazine-excerpt {
    font-size: 1.125rem;
    color: #4b5563;
    margin-bottom: 2rem;
    line-height: 1.625;
    font-weight: 300;
}

@media (min-width: 768px) {
    .magazine-excerpt {
        font-size: 1.25rem;
    }
}

.preserve-3d {
    transform-style: preserve-3d;
}

.perspective-1000 {
    perspective: 1000px;
}

.rotate-y-6-hover {
    transform: rotateY(6deg);
    transition: transform 0.7s ease-out;
}

.perspective-1000:hover .rotate-y-6-hover {
    transform: rotateY(0deg);
}

.magazine-feat-img {
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.magazine-floating-badge {
    bottom: -1.5rem;
    left: -1.5rem;
    display: none;
    background-color: #fff;
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

@media (min-width: 768px) {
    .magazine-floating-badge {
        display: block;
    }
}

.magazine-body p {
    margin-bottom: 1.5rem;
    line-height: 1.75;
    color: #374151;
}

.magazine-engagement-box {
    border-radius: 1rem;
}

.button-yes:hover {
    background-color: #FCD34D;
    /* yellow-400 */
    transition: background-color 0.2s;
}

/* =========================================
   MODERN MEDIA STYLING (Audio/Video/Embeds)
   ========================================= */

/* Generic Content Wrapper Width */
.magazine-body-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

@media (min-width: 1200px) {
    .magazine-body-wrapper {
        /* Keep text readable but allow wider media */
        max-width: 1100px;
    }
}

/* Audio Player */
.custom-audio-player {
    width: 100%;
    background-color: #f3f4f6;
    /* bg-gray-100 */
    border-radius: 9999px;
    padding: 0.75rem 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.custom-audio-player.playing {
    background-color: #ecfdf5;
    /* green-50 */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #d1fae5;
}

.player-ui {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.play-btn,
.mute-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #137057;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.play-btn:hover,
.mute-btn:hover {
    color: #F99D18;
    transform: scale(1.1);
}

.play-btn svg,
.mute-btn svg {
    width: 2rem;
    height: 2rem;
}

.mute-btn svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #9ca3af;
}

.progress-container {
    flex-grow: 1;
    height: 0.5rem;
    background-color: #e5e7eb;
    border-radius: 9999px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    width: 100%;
    height: 100%;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background-color: #137057;
    border-radius: 9999px;
    transition: width 0.1s linear;
}

.time-display {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    font-variant-numeric: tabular-nums;
    min-width: 80px;
    text-align: right;
}

/* Video & Omni-Embeds */
.wp-block-video,
.wp-block-embed {
    margin: 2rem 0;
}

.wp-block-video video,
.wp-block-embed iframe,
.article-content-body iframe,
.article-content-body video {
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 100%;
}

/* YouTube/Vimeo Aspect Ratio Fix (if not handled by WP core) */
.wp-block-embed-youtube .wp-block-embed__wrapper,
.wp-block-embed-vimeo .wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 1rem;
}

.wp-block-embed-youtube iframe,
.wp-block-embed-vimeo iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Blockquotes */
.article-content-body blockquote {
    border-left: 4px solid #F99D18;
    padding-left: 1.5rem;
    font-style: italic;
    font-size: 1.5rem;
    color: #111827;
    margin: 2.5rem 0;
    background: transparent;
}

/* Images in Content */
.article-content-body img {
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

/* Links */
.article-content-body a {
    color: #137057;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

.article-content-body a:hover {
    color: #F99D18;
}

.magazine-cta-card {
    border-radius: 1rem;
    overflow: hidden;
}

.bg-gradient-splash {
    background-image: linear-gradient(to bottom right, #FEF3C7, #FFEDD5);
}

.bg-white-50 {
    background-color: rgba(255, 255, 255, 0.5);
}

.magazine-cta-btn {
    background-color: #F99D18;
    transition: all 0.2s;
}

.magazine-cta-btn:hover {
    background-color: #c27b12;
    /* dark orange */
    transform: translateY(-4px);
}

.magazine-newsletter-widget {
    background-color: #137057;
}

.hover-bg-green-50:hover {
    background-color: #ecfdf5;
}

.text-white-80 {
    color: rgba(255, 255, 255, 0.8);
}