/*
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 */
}

/* 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 */
}

