/*
Theme Name: Teachers Planit
Theme URI: https://teachersplanit.com
Description: A modern, elegant child theme of Kadence for Teachers Planit - an educational resource platform offering digital lesson downloads, personalised planning services, and consultation sessions.
Author: Teachers Planit
Author URI: https://teachersplanit.com
Template: kadence
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: teachers-planit
*/

/* ============================================
   Self-hosted Satoshi — body font
   Files: assets/fonts/satoshi/ (OTF; woff2 not available — see FLAG in code comment)
   FLAG: Only OTF files were supplied. woff2 format is ~30% smaller and preferred for
   web. Convert with a tool such as fonttools/pyftsubset or Transfonter when available.
   ============================================ */

@font-face {
    font-family: 'Satoshi';
    src: url('assets/fonts/satoshi/Satoshi-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Satoshi';
    src: url('assets/fonts/satoshi/Satoshi-Italic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Satoshi';
    src: url('assets/fonts/satoshi/Satoshi-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Satoshi';
    src: url('assets/fonts/satoshi/Satoshi-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Parent theme overrides */
.site-header .site-container {
    padding-left: 2rem;
    padding-right: 2rem;
}

/* ============================================
   Brand Colors & Typography
   ============================================ */

:root {
    /* Primary Colors */
    --tp-primary: #8458B3;          /* Trust Purple */
    --tp-purple-hover: #6a4ca3;     /* Darker Purple for hover */
    --tp-secondary: #a0d2eb;        /* Light Blue */
    --tp-accent: #D0BDF4;           /* Accent Purple */
    --tp-accent-gold:rgb(196, 138, 90); /* Accent Gold */
    --tp-accent-blue:rgb(58, 106, 138); /* Accent Blue */
    --tp-accent-green:rgb(90, 122, 96); /* Accent Green */

    /* Text Colors */
    --tp-dark: #494D5F;             /* Dark text */
    --tp-text-dark: #2c3e50;        /* Alternative dark text */
    --tp-text-gray: #666666;        /* Gray text */
    --tp-gray: #95A5A6;             /* Medium gray */

    /* Background Colors */
    --tp-white: #FFFFFF;
    --tp-light: #E5EAF5;            /* Light background */
    --tp-bg-gray: #f8f9fa;          /* Light gray background */
    --tp-bg-warm: #F8F6F3;          /* Warm beige background */
    --tp-bg-purple-light: #F5F3FF;  /* Light purple background */
    --tp-bg-teal-light: #E8F5F1;    /* Light teal/green background */
    --tp-error: #E74C3C;            /* Error red */

    /* Shadows */
    --tp-shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --tp-shadow-md: 0 5px 20px rgba(0, 0, 0, 0.15);
    --tp-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);

    /* Typography */
    --tp-font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --tp-font-body: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --tp-spacing-xs: 8px;
    --tp-spacing-sm: 12px;
    --tp-spacing-md: 20px;
    --tp-spacing-lg: 32px;
    --tp-spacing-xl: 48px;

    /* Border Radius */
    --tp-radius-sm: 4px;
    --tp-radius-md: 8px;
    --tp-radius-lg: 12px;
    --tp-radius-full: 50%;

    /* Transitions */
    --tp-transition: all 0.3s ease;
}

/* ============================================
   Global Styles
   ============================================ */

body {
    font-family: var(--tp-font-body);
    color: var(--tp-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--tp-font-heading);
    font-weight: 600 !important;
    line-height: 1.3;
    margin-bottom: 1rem;
}
p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* ============================================
   Button Styles - Unified System
   ============================================ */

/* Base button styles - shared by all buttons */
.btn,
.btn-primary,
.btn-secondary,
.btn-outline,
.contact-btn,
button.contact-btn,
.wp-block-button__link,
.kb-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--tp-radius-md);
    font-family: var(--tp-font-heading);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1;
    letter-spacing: 0.06rem;
    text-transform: uppercase;
    transition: var(--tp-transition);
    cursor: pointer;
    text-decoration: none;
    border: 2px solid transparent;
}

/* Button hover effects */
.btn:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-outline:hover,
.wp-block-button__link:hover,
.kb-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--tp-shadow-md);
}

/* Primary Button - Purple filled */
.btn-primary,
.wp-block-button__link,
.kb-button {
    background-color: var(--tp-primary);
    border-color: var(--tp-primary);
    color: var(--tp-white);
}

.btn-primary:hover,
.wp-block-button__link:hover,
.kb-button:hover {
    background-color: var(--tp-purple-hover);
    border-color: var(--tp-purple-hover);
    color: var(--tp-white);
}
/* Secondary Hero Button - white outlined */
.hero-buttons .btn-secondary {
    background-color: transparent;
    border-color: var(--tp-white);
    color: var(--tp-white);
}

/* Secondary Button - Purple outlined */
.btn-secondary {
    background-color: transparent;
    border-color: var(--tp-primary);
    color: var(--tp-primary);
}

.btn-secondary:hover {
    background-color: var(--tp-purple-hover);
    border-color: var(--tp-purple-hover);
    color: var(--tp-white);
}

/* Outline Button - Purple outlined */
.btn-outline {
    background-color: transparent;
    border-color: var(--tp-primary);
    color: var(--tp-primary);
}

.btn-outline:hover {
    background-color: var(--tp-purple-hover);
    border-color: var(--tp-purple-hover);
    color: var(--tp-white);
}

/* Button element specific styles */
button.btn,
button.btn-primary,
button.contact-btn {
    border-style: solid;
    font-family: inherit;
}

/* Full width button */
.btn-full {
    width: 100%;
}
.site-header {
    border-bottom: 1px solid var(--global-palette7);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
blockquote p,
blockquote.pullquote {
    position: relative;
    font-family: var(--global-heading-font-family);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--tp-purple-hover);
    border-left:none;
    padding-left: 0;

}
/* Elegant CSS quotation mark */
blockquote.pullquote::before {
    content: "“";
    position: absolute;
    top: -1rem;
    left: -2rem;
    font-size: 5rem;
    color: var(--tp-purple-hover);
    font-family: "Georgia", serif;
    line-height: 1;
    opacity: .4;
  }

/* ============================================
   Service Cards - Global Styles
   Used across About, Services, and other pages
   ============================================ */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1024px;
    margin: 0 auto;
}

/* Consistent image sizing for all cards */
.service-card .lesson-thumbnail,
.service-card .article-thumbnail,
.service-card .service-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 0;
    margin-bottom: 0;
}

.service-card .lesson-thumbnail img,
.service-card .article-thumbnail img,
.service-card .service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
}

.service-icon,
.service-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: rgb(106 76 163 / 70%);
}

.service-icon i,
.service-card-icon i,
.consultation-expect .expect-item i,
.why-choose-us .benefit-card i {
    font-size: 2rem;
    color: rgb(106 76 163 / 70%);
}

.service-card h3 {
    margin-bottom: 16px;
    color: var(--tp-text-dark);
}

.service-card h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--tp-text-dark);
}

.service-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--tp-text-gray);
    margin-bottom: 20px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--tp-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--tp-transition);
}

.service-link:hover {
    color: var(--tp-purple-hover);
    gap: 12px;
}

.service-link i {
    font-size: 0.875rem;
    transition: var(--tp-transition);
}

/* ============================================
   Featured Lessons Section - Simple Styling
   ============================================ */
.woocommerce ul.products li.product .product-action-wrap {
    margin-bottom: 1rem;
}
/* Hide excerpts in grid view (list view override in lesson-page.css) */
.product-excerpt {
    display: none;
}

/* Products grid layout - applies to featured lessons and blog related lessons */
.featured-lessons ul.products,
.related-lessons-by-tags ul.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 60px auto;
}

/* Individual lesson card */
.featured-lessons ul.products li.product,
.related-lessons-by-tags ul.products li.product {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-lessons ul.products li.product:hover,
.related-lessons-by-tags ul.products li.product:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* Image container — card-scoped (not WooCommerce global) */
.featured-lessons .woocommerce-loop-image-link,
.related-lessons-by-tags .woocommerce-loop-image-link {
    position: relative;
    display: block;
    overflow: hidden;
}

.featured-lessons .woocommerce-loop-image-link img,
.related-lessons-by-tags .woocommerce-loop-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Sale badge */
.featured-lessons span.onsale,
.related-lessons-by-tags span.onsale {
    position: absolute;
    top: 6px;
    right: 6px;
    left: auto;
    background-color: var(--tp-primary);
    color: white;
    padding: 6px 12px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 4px;
    z-index: 10;
}

/* Product details area */
.featured-lessons .product-details,
.related-lessons-by-tags .product-details {
    padding: 20px;
}

/* Product title */
.featured-lessons h2.woocommerce-loop-product__title,
.related-lessons-by-tags h2.woocommerce-loop-product__title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 12px 0;
}

.featured-lessons h2.woocommerce-loop-product__title a,
.related-lessons-by-tags h2.woocommerce-loop-product__title a {
    color: var(--tp-text-dark);
    text-decoration: none;
}

.featured-lessons h2.woocommerce-loop-product__title a:hover,
.related-lessons-by-tags h2.woocommerce-loop-product__title a:hover {
    color: var(--tp-primary);
}

/* Price */
.featured-lessons .price,
.related-lessons-by-tags .price {
    display: block;
    font-weight: 600;
    margin-bottom: 16px;
}

.featured-lessons .price del,
.related-lessons-by-tags .price del {
    opacity: 0.6;
    margin-right: 8px;
}

/* View Lesson button */
.featured-lessons .product-action-wrap,
.related-lessons-by-tags .product-action-wrap {
    margin-top: 16px;
}

/* Responsive */
@media (max-width: 991px) {
    .featured-lessons ul.products,
    .related-lessons-by-tags ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 767px) {
    .featured-lessons ul.products,
    .related-lessons-by-tags ul.products {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Related Articles Section - Full Width */
.related-articles-by-tags {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Force 3 columns for Related Articles (even with 1 item) */
.related-articles-by-tags .services-grid {
    grid-template-columns: repeat(3, 1fr) !important;
}

/* ============================================
   Related-Articles Content Card
   Overrides icon service-card styling: flush landscape image,
   left-aligned text, no inner padding on card shell, flush 16:9 image.
   Scoped to .related-articles-by-tags.
   ============================================ */

.related-articles-by-tags .service-card {
    text-align: left;
}

.related-articles-by-tags .service-card .article-thumbnail {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    width: 100%;
    border-radius: 0;
    margin-bottom: 0;
}

.related-articles-by-tags .service-card .article-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

.related-articles-by-tags .service-card .article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    display: block;
}

.related-articles-by-tags .service-card h3 {
    color: var(--tp-text-dark);
}

.related-articles-by-tags .service-card .service-link {
    display: flex;
}

/* Responsive service cards */
/* Desktop: 3 columns */
@media (max-width: 1199px) {
    .services-grid {
        gap: 30px;
    }
}

/* Tablet: 2 columns */
@media (max-width: 991px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    /* Keep Related Articles at 3 columns on tablet */
    .related-articles-by-tags .services-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Mobile: 1 column */
@media (max-width: 767px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Related Articles: 2 columns on mobile */
    .related-articles-by-tags .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .service-card .service-card-body {
        padding: 24px;
    }

    .service-icon,
    .service-card-icon {
        width: 60px;
        height: 60px;
    }

    .service-icon i,
    .service-card-icon i {
        font-size: 2rem;
    }
}

/* Very small mobile: 1 column even for Related Articles */
@media (max-width: 479px) {
    .related-articles-by-tags .services-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================
   Lesson Page Styles
   ============================================ */

.lesson-cta-wrapper {
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.lesson-primary-cta {
    width: 100%;
    max-width: 400px;
}

.lesson-dropdown-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.lesson-dropdown-toggle {
    width: 100%;
    text-align: left;
    background-color: var(--tp-light);
    color: var(--tp-dark);
    padding: 14px 32px;
    border-radius: 8px;
    border: 2px solid var(--tp-gray);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lesson-dropdown-toggle:hover {
    border-color: var(--tp-primary);
    background-color: var(--tp-white);
}

.lesson-dropdown-toggle::after {
    content: '▼';
    font-size: 12px;
    transition: transform 0.3s ease;
}

.lesson-dropdown-toggle.active::after {
    transform: rotate(180deg);
}

.lesson-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--tp-white);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.lesson-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lesson-dropdown-menu a {
    display: block;
    padding: 16px 24px;
    color: var(--tp-dark);
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--tp-light);
}

.lesson-dropdown-menu a:last-child {
    border-bottom: none;
}

.lesson-dropdown-menu a:hover {
    background-color: var(--tp-light);
    color: var(--tp-primary);
    padding-left: 32px;
}

/* ============================================
   Blog Styles
   ============================================ */
.blog-hero-section {
    background: linear-gradient(135deg, var(--tp-primary), var(--tp-secondary));
}
.category-english-news .blog-hero-section h1 {
    font-size: 1.2rem;
    color: rgb(255 255 255 / 80%);
    margin-bottom: 1rem;
}
.blog-hero {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.blog-hero-featured {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 500px;
}

.blog-hero-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-hero-featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: var(--tp-white);
}

.blog-hero-featured h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.blog-hero-secondary {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blog-hero-secondary-post {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 240px;
}

.blog-hero-secondary-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-hero-secondary-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: var(--tp-white);
}

.blog-hero-secondary-content h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

/* .blog-most-read {
    margin: 60px 0;
} */

.blog-most-read h2 {
    font-size: 2.25rem;
    margin-bottom: 30px;
    text-align: center;
}

.blog-most-read-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    margin: 60px auto;
}

.blog-most-read-item {
    background: var(--tp-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.blog-most-read-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.blog-most-read-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-most-read-item-content {
    padding: 24px;
    text-align: left;
}

.blog-more-articles {
    text-align: center;
    background: var(--tp-light);
}

/* ============================================
   Services Styles
   ============================================ */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin: 60px auto;
}

.service-card {
    background: var(--tp-white);
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: left;
}

.service-card .service-card-body {
    padding: 24px;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
    color: var(--tp-primary);
}
/* Individual Service Page */
.service-header {
    background: linear-gradient(135deg, var(--tp-primary), var(--tp-accent));
    color: var(--tp-white);
    text-align: center;
}

.service-header h1 {
    color: inherit;
    margin-bottom: 2rem;
}

.service-header p {
    font-size: 1.2rem;
    color: inherit;
    line-height: 1.6;
    max-width: 60ch;
    margin: 0 auto;
}

/* ============================================
   Global Section Styles
   ============================================ */
/* Lessons Section Header */
.entry-hero {
    background: linear-gradient(135deg, var(--tp-primary), var(--tp-secondary));
    color: var(--tp-white);
    text-align: center;
}

.entry-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--tp-white);
}
section .entry-hero-container-inner {
    background: transparent;
}

/* Featured Lessons Section */
.featured-lessons {
    background-color: var(--tp-white);
}

.featured-lessons .service-card h3 a {
    color: var(--tp-primary);
    text-decoration: none;
}

/* Services Overview Section */
.services-overview {
    background-color: var(--tp-light);
}

/* Section Intro Text */
.section-intro {
    max-width: 900px;
    margin: 0 auto;
}

.section-intro p {
    font-size: 18px;
    line-height: 1.7;
}

/* Section Subtitle */
.section-subtitle {
    color: var(--tp-gray);
}

/* Service Card H3 Links */
.service-card h3 a {
    text-decoration: none;
    color: var(--tp-text-dark);
}

.service-card h3 a:hover {
    color: var(--tp-purple-hover);
}

/* Lesson CTA Note */
.lesson-cta-note {
    margin-top: 20px;
}

/* Hidden Main */
.hidden-main {
    display: none;
}

/* Calendly Embed Container */
.calendly-embed-container {
    max-width: 1024px;
    margin: 0 auto;
}

.calendly-heading {
    text-align: center;
    margin-bottom: 30px;
}

.calendly-inline-widget {
    min-width: 320px;
    height: 700px;
}

/* Booking Placeholder */
.booking-placeholder {
    padding: 60px 40px;
    text-align: center;
    background: #f5f5f5;
    border-radius: 8px;
}

.booking-placeholder h3 {
    margin-bottom: 20px;
}

.booking-placeholder p {
    color: #666;
    margin-bottom: 30px;
}

/* Booking Placeholder Large (for consultation page) */
.booking-placeholder-large {
    padding: 80px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.booking-placeholder-text {
    font-size: 18px;
}

.btn-primary-large {
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 400;
}

.booking-placeholder-note {
    margin-top: 20px;
    color: #999;
    font-size: 14px;
}

.booking-placeholder-note a {
    color: var(--tp-primary);
}

.booking-placeholder-note a:hover {
    color: var(--tp-purple-hover);
}

/* ============================================
   Lesson Thumbnail Styles
   ============================================ */

.lesson-thumbnail {
    overflow: hidden;
    border-radius: 8px;
}

.lesson-thumbnail img {
    border-radius: 8px;
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.lesson-thumbnail a {
    display: block;
}

.lesson-thumbnail:hover img {
    transform: scale(1.05);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
    .blog-hero {
        grid-template-columns: 1fr;
    }

    .blog-hero-featured {
        height: 400px;
    }

    .blog-hero-secondary {
        flex-direction: row;
    }
    .hero-intro {
        width: 80% !important;
    }
}

@media (max-width: 768px) {
    .blog-hero-secondary {
        flex-direction: column;
    }

    .blog-most-read-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .lesson-cta-wrapper {
        align-items: stretch;
    }

    .lesson-primary-cta,
    .lesson-dropdown-wrapper {
        max-width: 100%;
    }
}

/* ============================================
   Utility Classes
   ============================================ */

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

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mt-40 {
    margin-top: 40px;
}

footer .site-container,
.hero-container,
section .container,
div.content-area  {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.container {
    max-width: var(--global-content-width);
    margin: 0 auto;
}
.container-narrow {
    max-width: 900px;
    margin: 0 auto;
}

/* Section Padding Utilities for consistent spacing */
.section-padding {
    padding: 60px 20px;
}

.section-padding-lg {
    padding: 80px 20px;
}

.section-padding-md {
    padding: 60px 20px;
}

/* Mobile responsive padding */
@media (max-width: 767px) {
    .section-padding,
    .section-padding-lg {
        padding: 60px 20px;
    }

    .section-padding-md {
        padding: 40px 20px;
    }
}

/* Full-Width Section Backgrounds */
.section-bg-light {
    background-color: var(--tp-light);
}

.section-bg-warm {
    background-color: var(--tp-bg-warm);
}

.section-bg-purple-light {
    background-color: var(--tp-bg-purple-light);
}

.section-bg-teal-light {
    background-color: var(--tp-bg-teal-light);
}

.section-bg-white {
    background-color: var(--tp-white);
}

/* ============================================
   Product Taxonomy Display
   ============================================ */

.product-taxonomies-meta {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.product-taxonomy-item {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.6;
}

.product-taxonomy-item strong {
    color: var(--tp-dark);
    display: inline-block;
    min-width: 120px;
}

.product-taxonomy-item strong i {
    margin-right: 6px;
    color: var(--tp-accent-gold);
}

.product-taxonomy-terms a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-taxonomy-terms a:hover {
    color: var(--tp-purple-hover);
    text-decoration: underline;
}

/* Commas handled by PHP implode, not CSS */

/* Hide default WooCommerce brand display in product_meta */
.product_meta .posted_in.product_brand,
.product_meta .tagged_as.product_brand,
.product_meta > .brands,
.woocommerce div.product .product_meta > span {
    display: none !important;
}

/* ============================================
   Product Attributes Display
   ============================================ */

.product-attributes-meta {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.product-attributes-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--tp-dark);
    margin-bottom: 12px;
}

.product-attributes-table {
    width: 100%;
    border-collapse: collapse;
}

.product-attributes-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.product-attributes-table tr:last-child {
    border-bottom: none;
}

.product-attributes-table th {
    text-align: left;
    padding: 10px 15px 10px 0;
    font-weight: 600;
    color: var(--tp-dark);
    font-size: 14px;
    width: 30%;
    vertical-align: top;
}

.product-attributes-table td {
    padding: 10px 0;
    color: var(--tp-gray);
    font-size: 14px;
}

/* ============================================
   Full Width Sections on Single Product/Post
   ============================================ */

/* Make sections full width on single product and single post pages */
.single-product .quick-consultation,
.single-product .services-overview,
.single-post .quick-consultation,
.single-post .services-overview,
.single-post .related-lessons-by-tags {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Quick Advice section styling on product pages */
.single-product .quick-consultation {
    background-color: var(--tp-light);
    text-align: center;
}

/* Center text in Quick Advice section on single post pages */
.single-post .quick-consultation {
    text-align: center;
}

/* ============================================
   Personalize Lesson Button & Dropdown
   ============================================ */

.personalize-lesson-wrapper {
    position: relative;
    display: inline-block;
    margin-left: 15px;
}

.personalize-lesson-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--tp-radius-md);
    font-weight: 400;
    font-size: 16px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: transparent;
    border: 2px solid var(--tp-white);
    color: var(--tp-white);
}

.single-product .personalize-lesson-button {
    background-color: transparent;
    border: 2px solid var(--tp-primary);
    color: var(--tp-primary);
}

.personalize-lesson-button:hover {
    background-color: var(--tp-purple-hover) !important;
    border: 2px solid var(--tp-purple-hover);
    color: var(--tp-white);
    transform: translateY(-2px);
    box-shadow: var(--tp-shadow-md);
}

.personalize-lesson-button svg {
    transition: transform 0.3s ease;
}

.personalize-lesson-button.active svg {
    transform: rotate(180deg);
}

.personalize-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 280px;
    background-color: var(--tp-white);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.personalize-dropdown-menu.active {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.personalize-service-option {
    display: block;
    padding: 16px 24px;
    color: var(--tp-dark);
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--tp-light);
}

.personalize-service-option:last-child {
    border-bottom: none;
}

.personalize-service-option:hover {
    background-color: var(--tp-light);
    color: var(--tp-primary);
    padding-left: 32px;
}

/* ============================================
   Add to Cart Button Styling
   ============================================ */

/* Style the single add to cart button to match personalize button */
.single-product .single_add_to_cart_button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px !important;
    height: auto !important;
    line-height: 1 !important;
    border-radius: var(--tp-radius-md);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    background-color: transparent;
    border: 2px solid var(--tp-primary);
    color: var(--tp-primary);
    cursor: pointer;
}

.single-product .single_add_to_cart_button.button:hover {
    background-color: var(--tp-purple-hover) !important;
    border: 2px solid var(--tp-purple-hover);
    color: var(--tp-white) !important;
    transform: translateY(-2px);
    box-shadow: var(--tp-shadow-md);
}

/* Disabled state */
.single-product .single_add_to_cart_button.button:disabled,
.single-product .single_add_to_cart_button.button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.single-product .single_add_to_cart_button.button:disabled:hover,
.single-product .single_add_to_cart_button.button.disabled:hover {
    background-color: transparent !important;
    border-color: var(--tp-primary) !important;
    color: var(--tp-primary) !important;
    transform: none;
    box-shadow: none;
}

/* ============================================
   Calendly Modal Popup
   ============================================ */

.calendly-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.calendly-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.calendly-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 1024px;
    max-height: 90vh;
    background-color: var(--tp-white);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow: hidden;
}

.calendly-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.calendly-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid var(--tp-light);
}

.calendly-modal-header h3 {
    margin: 0;
    font-size: 24px;
    color: var(--tp-primary);
}

.calendly-modal-close {
    border: none;
    font-size: 32px;
    line-height: 1;
    color: var(--tp-gray);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    -webkit-appearance: none !important;
    appearance: none;
    box-shadow: none;
    transition: color 0.2s ease;
}

.calendly-modal-close:hover {
    color: var(--tp-primary);
    background: transparent;
}

.calendly-modal-body {
    padding: 0;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
    position: relative;
}

.calendly-modal-body .calendly-inline-widget {
    min-width: 100%;
    height: 700px;
    border: none;
}

/* Customize Calendly's loading spinner colors */
.calendly-inline-widget iframe {
    background-color: var(--tp-white);
}

/* Style the Calendly loading state (limited control as it's in iframe) */
.calendly-badge-widget .calendly-badge-content,
.calendly-overlay .calendly-popup-content {
    background-color: var(--tp-white) !important;
}

footer img {
    filter: brightness(0) invert(1);
}
.footer-html p{
    font-size: .75rem;
}
/* woocommerce modal lost-password link */
#login-drawer p.lost_password a {
    color: var(--tp-primary);
}
#login-drawer .lost_password a:hover {
    color: var(--tp-purple-hover);
}
.header-account-style-icon_label .header-account-label,
.header-account-style-icon_name .header-account-username  {
    font-size: 0.8rem;
    text-transform: capitalize;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .calendly-modal {
        width: 95%;
        max-height: 95vh;
    }

    .calendly-modal-header {
        padding: 16px 20px;
    }

    .calendly-modal-header h3 {
        font-size: 20px;
    }

    .personalize-lesson-button {
        width: 100%;
        justify-content: center;
    }

    .personalize-dropdown-menu {
        width: 100%;
        left: 0;
        right: 0;
    }
}

/* ============================================
   Accessibility: Reduced Motion
   Disables transform animations for users who prefer reduced motion.
   Colour and opacity transitions are kept (non-vestibular).
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .blog-most-read-item,
    .blog-most-read-item:hover,
    .service-card,
    .service-card:hover,
    .featured-lessons ul.products li.product,
    .featured-lessons ul.products li.product:hover,
    .related-lessons-by-tags ul.products li.product,
    .related-lessons-by-tags ul.products li.product:hover,
    .btn,
    .btn-primary,
    .btn-secondary,
    .btn-outline,
    .wp-block-button__link,
    .kb-button,
    .btn:hover,
    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-outline:hover,
    .wp-block-button__link:hover,
    .kb-button:hover {
        transition: none;
        transform: none;
    }
}

/* Accessibility: Card lift on keyboard focus-within
   Matches hover lift so keyboard users get the same visual cue. */

.featured-lessons ul.products li.product:focus-within,
.related-lessons-by-tags ul.products li.product:focus-within {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.blog-most-read-item:focus-within {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.related-articles-by-tags .service-card:focus-within {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .featured-lessons ul.products li.product:focus-within,
    .related-lessons-by-tags ul.products li.product:focus-within,
    .blog-most-read-item:focus-within,
    .related-articles-by-tags .service-card:focus-within {
        transform: none;
    }
}

/* ============================================
   GLOBAL SALE BADGE
   ============================================ */
.woocommerce span.onsale,
.wc-block-grid__product span.onsale,
li.product span.onsale {
    background-color: var(--tp-primary);
    color: #fff;
    font-family: var(--tp-font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--tp-radius-sm);
    min-height: auto;
    min-width: auto;
    line-height: 1.6;
}

/* ============================================
   WC PRODUCT CARDS — global card consistency
   Targets standard WC loops and block products
   outside of the .featured-lessons context
   ============================================ */
.woocommerce ul.products li.product,
ul.products li.product,
li.wc-block-product {
    background: #fff;
    border-radius: var(--tp-radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    list-style: none;
}

.woocommerce ul.products li.product:hover,
ul.products li.product:hover,
li.wc-block-product:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.woocommerce ul.products li.product img,
ul.products li.product img,
li.wc-block-product img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
ul.products li.product .woocommerce-loop-product__title,
li.wc-block-product .wc-block-components-product-title {
    font-size: 1.05rem;
    font-weight: 600;
    font-family: var(--tp-font-heading);
    color: var(--tp-text-dark);
}

.woocommerce ul.products li.product .price,
ul.products li.product .price,
li.wc-block-product .price,
li.wc-block-product .wc-block-components-product-price {
    font-weight: 600;
    color: var(--tp-primary);
    display: block;
}

.woocommerce ul.products li.product .button,
ul.products li.product .button,
li.wc-block-product .wp-block-button__link,
li.wc-block-product .wc-block-components-product-button__button {
    display: block;
    margin: 12px 20px 20px;
    padding: 10px 20px;
    background-color: var(--tp-primary);
    color: #fff;
    border-radius: var(--tp-radius-md);
    font-family: var(--tp-font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
}

.woocommerce ul.products li.product .button:hover,
ul.products li.product .button:hover,
li.wc-block-product .wp-block-button__link:hover,
li.wc-block-product .wc-block-components-product-button__button:hover {
    background-color: var(--tp-primary-dark, #6d3fa0);
}

/* ============================================
   GLOBAL FORM INPUTS
   Applies to all forms site-wide including
   sidebar widgets, CF7, search forms
   ============================================ */
.site-main input[type="text"],
.site-main input[type="email"],
.site-main input[type="tel"],
.site-main input[type="url"],
.site-main input[type="search"],
.site-main input[type="number"],
.site-main input[type="password"],
.site-main textarea,
.site-main select,
.primary-sidebar input[type="text"],
.primary-sidebar input[type="email"],
.primary-sidebar input[type="tel"],
.primary-sidebar input[type="url"],
.primary-sidebar input[type="search"],
.primary-sidebar input[type="number"],
.primary-sidebar input[type="password"],
.primary-sidebar textarea,
.primary-sidebar select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: var(--tp-radius-md);
    font-family: var(--tp-font-body);
    font-size: 1rem;
    color: var(--tp-text-dark);
    background: #fff;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    appearance: none;
}

.site-main input[type="text"]:focus,
.site-main input[type="email"]:focus,
.site-main input[type="tel"]:focus,
.site-main input[type="url"]:focus,
.site-main input[type="search"]:focus,
.site-main input[type="number"]:focus,
.site-main input[type="password"]:focus,
.site-main textarea:focus,
.site-main select:focus,
.primary-sidebar input:focus,
.primary-sidebar textarea:focus,
.primary-sidebar select:focus {
    outline: none;
    border-color: var(--tp-primary);
    box-shadow: 0 0 0 3px rgba(132, 88, 179, 0.12);
}

.site-main input::placeholder,
.site-main textarea::placeholder,
.primary-sidebar input::placeholder,
.primary-sidebar textarea::placeholder {
    color: #999;
    opacity: 1;
}

.site-main textarea,
.primary-sidebar textarea {
    min-height: 120px;
    resize: vertical;
}

.site-main input[type="submit"],
.site-main button[type="submit"],
.primary-sidebar input[type="submit"],
.primary-sidebar button[type="submit"] {
    width: auto;
    padding: 14px 32px;
    background-color: var(--tp-primary);
    color: #fff;
    border: none;
    border-radius: var(--tp-radius-md);
    font-family: var(--tp-font-heading);
    font-size: 1rem;
    line-height: 1,6;
    font-weight: 500;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background-color 0.2s ease;
    appearance: none;
}

.site-main input[type="submit"]:hover,
.site-main button[type="submit"]:hover,
.primary-sidebar input[type="submit"]:hover,
.primary-sidebar button[type="submit"]:hover {
    background-color: var(--tp-primary-dark, #6d3fa0);
}


.custom-lesson-form label {
    font-size: 0.9rem;
}
/* ============================================
   PAGE-2824 — WC block product listing page
   ============================================ */
.page-id-2824 .entry-content-wrap {
    padding: 0;
}

.page-id-2824 .content-bg {
    background: transparent;
}

ul.wc-block-product-template__responsive.columns-3 {
    padding-left: 0;
}

ul.wc-block-product-template__responsive li span.onsale {
    background-color: var(--tp-primary);
    color: #fff;
    font-family: var(--tp-font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--tp-radius-sm);
    min-height: auto;
    min-width: auto;
    line-height: 1.6;
}

ul.wc-block-product-template__responsive li.wc-block-product {
    text-align: left;
}
