/*
Theme Name: Born Dance Monochrome
Theme URI: https://borndanceacademy.com
Author: Born Dance Academy
Author URI: https://borndanceacademy.com
Description: A refined black, white, and blue theme for Born Dance Academy — clean and editorial, inspired by premium dance studio aesthetics.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: born-dance-monochrome
*/

/* ============================================
   ROOT VARIABLES — Monochrome + Blue
   ============================================ */
:root {
    /* Core palette */
    --white: #FFFFFF;
    --off-white: #F7F8FA;
    --light-gray: #EBEDF0;
    --mid-gray: #9CA3AF;
    --dark-gray: #374151;
    --charcoal: #1F2937;
    --near-black: #111827;
    --black: #000000;

    /* Blue accent — Steel Blue from logo */
    --blue: #4682B4;
    --blue-dark: #3A6F99;
    --blue-deeper: #2E5C80;
    --blue-light: #E8F0F7;
    --blue-subtle: rgba(70, 130, 180, 0.08);
    --blue-glow: rgba(70, 130, 180, 0.15);

    /* Mapped aliases (so existing templates using var(--cyan), var(--magenta) still work) */
    --primary-accent: #4682B4;
    --cyan: #4682B4;
    --cyan-bright: #4682B4;
    --magenta: #4682B4;
    --yellow: #1F2937;

    /* Text */
    --text-primary: #374151;
    --text-headings: #111827;
    --text-dark: rgba(0, 0, 0, 0.7);
    --text-light: #FFFFFF;
    --text-muted: #6B7280;

    /* Borders & Surfaces */
    --border-color: #E5E7EB;
    --border-blue: rgba(70, 130, 180, 0.3);
    --hover-bg: rgba(70, 130, 180, 0.06);
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.12);

    /* Remove neon glows */
    --cyan-glow: none;
    --magenta-glow: none;

    /* Purple gradient mapped to blue */
    --purple-dark: #4682B4;
    --purple-bright: #3A6F99;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-headings);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

a {
    color: var(--blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--blue-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   HEADER — Top Bar
   ============================================ */
.header-top {
    background: var(--near-black) !important;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-top .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header-top a {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: color 0.2s ease;
}

.header-top a:hover {
    color: var(--blue) !important;
}

/* ============================================
   HEADER — Main Navigation
   ============================================ */
.site-header {
    background-color: var(--black) !important;
    box-shadow: none !important;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title a {
    color: var(--white) !important;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.main-navigation {
    display: flex;
    align-items: center;
}

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

.nav-menu > li > a {
    display: block;
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none;
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    transition: color 0.2s ease;
    text-transform: uppercase;
    background-color: transparent !important;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: var(--blue) !important;
}

/* Dropdown Submenu */
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--near-black);
    min-width: 220px;
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.25s ease;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-menu li {
    position: relative;
}

.nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu li a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.7rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-menu .sub-menu li a:hover {
    color: var(--blue);
    background-color: rgba(70, 130, 180, 0.08);
    padding-left: 1.5rem;
}

/* ============================================
   SITE CONTENT AREA
   ============================================ */
.site-content {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    background: var(--white) !important;
}

main.site-content {
    background: var(--white) !important;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background: linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(0,0,0,0.6)),
                url('/wp-content/uploads/2026/02/A283-2026-01-30_19-57-54_beff00005209_TND02470-Edit-scaled.jpg') center 75% / cover no-repeat !important;
    padding: 200px 0 180px !important;
    text-align: center;
    margin: 0 !important;
}

.hero-section h1,
.hero-section p {
    color: var(--white) !important;
}

/* ============================================
   SECTION HEADINGS — Blue Only
   ============================================ */
.section-heading-cyan,
.section-heading-magenta {
    color: var(--text-headings) !important;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-shadow: none !important;
    position: relative;
}

/* Decorative underline for section headings */
.section-heading-cyan::after,
.section-heading-magenta::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--blue);
    margin: 0.75rem auto 0;
}

/* On dark backgrounds, headings are white */
section[style*="background: var(--black)"] .section-heading-cyan,
section[style*="background: var(--black)"] .section-heading-magenta,
section[style*="background: var(--near-black)"] .section-heading-cyan,
section[style*="background: var(--near-black)"] .section-heading-magenta,
.hero-section .section-heading-cyan,
.hero-section .section-heading-magenta {
    color: var(--white) !important;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn,
a.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.25s ease;
    cursor: pointer;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 2px solid var(--black) !important;
    background: var(--black) !important;
    color: var(--white) !important;
    min-height: 44px;
}

.btn:hover,
a.btn:hover {
    background: var(--blue) !important;
    border-color: var(--blue) !important;
    color: var(--white) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(70, 130, 180, 0.3);
}

.btn-magenta,
a.btn-magenta {
    background: var(--blue) !important;
    border-color: var(--blue) !important;
    color: var(--white) !important;
    font-weight: 600 !important;
}

.btn-magenta:hover,
a.btn-magenta:hover {
    background: var(--blue-dark) !important;
    border-color: var(--blue-dark) !important;
    color: var(--white) !important;
}

.btn-outline,
a.btn-outline {
    background: transparent !important;
    border: 2px solid var(--white) !important;
    color: var(--white) !important;
}

.btn-outline:hover,
a.btn-outline:hover {
    background: var(--white) !important;
    color: var(--black) !important;
}

.btn-cyan,
a.btn-cyan {
    background: var(--blue) !important;
    border-color: var(--blue) !important;
    color: var(--white) !important;
}

/* ============================================
   CARDS & CONTENT BLOCKS
   ============================================ */
.content-grid {
    display: grid;
    gap: 2rem;
}

.content-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 2rem;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.content-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

/* ============================================
   CTA SECTIONS — Clean Blue
   ============================================ */
.born-cta-section {
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-bg-gradient {
    background: var(--blue) !important;
    color: var(--white);
}

.cta-bg-magenta {
    background: var(--blue-dark) !important;
    color: var(--white);
}

.cta-bg-cyan {
    background: var(--blue) !important;
    color: var(--white);
}

.cta-bg-dark {
    background: var(--near-black) !important;
    color: var(--white);
}

.cta-container {
    max-width: 900px;
    margin: 0 auto;
}

.cta-content {
    animation: fadeInUp 0.8s ease-out;
}

.cta-headline {
    font-size: 2.75rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.15;
    color: var(--white);
}

.cta-subheadline {
    font-size: 1.15rem;
    line-height: 1.7;
    margin: 0 0 40px 0;
    opacity: 0.92;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    padding: 16px 36px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.25s ease;
    cursor: pointer;
    border: 2px solid transparent;
    min-width: 200px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cta-button-primary {
    background: var(--white);
    color: var(--near-black) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cta-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.cta-button-secondary {
    background: transparent;
    color: var(--white) !important;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.cta-button-secondary:hover {
    background: var(--white);
    color: var(--near-black) !important;
    border-color: var(--white);
    transform: translateY(-2px);
}

.cta-trust-line {
    font-size: 0.9rem;
    opacity: 0.85;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.03em;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   CTA POPUP MODAL
   ============================================ */
.cta-popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

.cta-popup-container {
    position: relative;
    max-width: 600px;
    width: 100%;
    padding: 50px 40px 40px;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.4s ease-out;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--near-black);
}

.cta-popup-close {
    position: absolute;
    top: 15px; right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    font-size: 28px;
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--near-black) !important;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 3rem 0 1.5rem !important;
    margin-top: 0 !important;
    border-top: 3px solid var(--blue);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   BLOG POST — Single (single.php)
   ============================================ */
article.post,
article.page {
    background: var(--white);
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 0;
}

.entry-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.entry-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-headings);
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.entry-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.entry-meta .posted-on,
.entry-meta .byline {
    margin-right: 1rem;
}

.post-thumbnail {
    margin: 0 0 2rem;
    border-radius: 6px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
}

.entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.entry-content p {
    margin-bottom: 1.5rem;
}

/* --- Page content headings: editorial style with blue accent bar --- */
.entry-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-headings);
    margin-top: 3.5rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0;
    border-bottom: none;
}

.entry-content h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--blue);
    margin-top: 0.6rem;
    margin-bottom: 1.25rem;
}

.entry-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--blue);
    margin-top: 2.25rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

.entry-content img {
    border-radius: 6px;
    margin: 1.5rem 0;
}

/* --- Blockquotes: blue left-border callout --- */
.entry-content blockquote {
    border-left: 4px solid var(--blue);
    padding: 1.25rem 1.75rem;
    margin: 2.5rem 0;
    background: var(--blue-subtle);
    font-style: italic;
    color: var(--dark-gray);
    border-radius: 0 6px 6px 0;
}

.entry-content blockquote p:last-child {
    margin-bottom: 0;
}

/* --- Lists: blue checkmarks via Font Awesome --- */
.entry-content ul {
    list-style: none;
    margin: 1rem 0 2rem 0;
    padding: 0;
}

.entry-content ol {
    margin: 1rem 0 2rem 1.5rem;
}

.entry-content ul li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.65rem;
    line-height: 1.7;
}

.entry-content ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.15em;
    color: var(--blue);
    font-size: 0.85em;
}

.entry-content ol li {
    margin-bottom: 0.65rem;
    line-height: 1.7;
}

/* --- Links --- */
.entry-content a {
    color: var(--blue);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.entry-content a:hover {
    border-bottom-color: var(--blue);
}

/* --- CTA buttons: match homepage blue button style --- */
.entry-content a[href*="signup"],
.entry-content a[href*="enroll"],
.entry-content a.wp-block-button__link,
.entry-content .wp-block-button a {
    display: inline-block;
    background: var(--blue);
    color: #fff !important;
    font-size: 0.95rem;
    padding: 0.9rem 2.25rem;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(70, 130, 180, 0.3);
    margin: 0.5rem 0;
}

.entry-content a[href*="signup"]:hover,
.entry-content a[href*="enroll"]:hover,
.entry-content a.wp-block-button__link:hover,
.entry-content .wp-block-button a:hover {
    background: var(--blue-dark);
    border-bottom: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(70, 130, 180, 0.4);
}

/* --- Location link grid (class pages "near you" sections) --- */
.entry-content a[href*="classes-"] {
    display: inline-block;
    background: var(--white);
    border: 1px solid var(--border-color);
    color: var(--blue);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border-bottom: none;
    transition: all 0.2s ease;
    margin: 0.25rem;
}

.entry-content a[href*="classes-"]:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--white) !important;
    border-bottom: none;
}

/* --- Strong text styling for feature labels --- */
.entry-content li strong {
    color: var(--text-headings);
}

/* --- First paragraph after h2: slightly larger for intro feel --- */
.entry-content h2 + p {
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* ============================================
   BLOG ARCHIVE
   ============================================ */
.archive-header {
    text-align: center;
    padding: 3rem 0 2rem;
}

.archive-title {
    font-size: 2.25rem;
    color: var(--text-headings) !important;
}

.archive-description {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.content-card .entry-title {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.content-card .entry-title a {
    color: var(--text-headings);
    transition: color 0.2s ease;
}

.content-card .entry-title a:hover {
    color: var(--blue);
}

.content-card .entry-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.content-card .entry-excerpt {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.pagination {
    text-align: center;
    padding: 2rem 0;
}

.pagination .nav-links a,
.pagination .nav-links span {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.pagination .nav-links a:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--white);
}

.pagination .nav-links .current {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--white);
}

/* ============================================
   GENERIC PAGE STYLING
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Dark section overrides — keep content readable */
.dark-section,
.dark-section.py-3.text-center {
    text-align: center !important;
}

.dark-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   MOBILE HAMBURGER MENU
   ============================================ */
.mobile-menu-toggle {
    display: none;
    background: transparent !important;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    z-index: 1001;
    width: 44px;
    height: 44px;
    justify-content: center;
    align-items: center;
}

.hamburger-line {
    width: 26px;
    height: 2px;
    background-color: var(--white) !important;
    transition: all 0.3s ease;
    border-radius: 1px;
    display: block;
}

/* ============================================
   DESKTOP NAVIGATION LAYOUT
   ============================================ */
@media (min-width: 769px) {
    .main-navigation {
        flex: 1;
        display: flex !important;
        justify-content: flex-start;
    }

    .nav-menu {
        width: 100%;
        display: flex !important;
        align-items: center;
    }

    .mobile-menu-toggle {
        display: none !important;
    }

    /* Portal Login to far right */
    .nav-menu > #menu-item-33 {
        margin-left: auto !important;
        order: 999;
    }

    .nav-menu > #menu-item-33 > a {
        border-left: 1px solid rgba(255, 255, 255, 0.15);
        padding-left: 1.5rem;
        margin-left: 1rem;
    }
}

/* ============================================
   MOBILE STYLES (< 768px)
   ============================================ */
@media (max-width: 768px) {
    .header-top .container {
        flex-direction: column !important;
        gap: 0.5rem !important;
        padding: 0.75rem 1rem;
    }

    .header-top .container > div {
        gap: 0.75rem !important;
        font-size: 0.8rem;
    }

    .mobile-menu-toggle {
        display: flex !important;
    }

    .main-navigation {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background-color: rgba(0, 0, 0, 0.97);
        z-index: 999;
        padding: 5rem 1.5rem 2rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .main-navigation.is-open {
        display: block !important;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
    }

    .nav-menu > li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-menu > li > a {
        padding: 1.25rem 1rem;
        font-size: 1.05rem;
        text-transform: none;
    }

    .nav-menu > li > a:hover {
        background-color: rgba(70, 130, 180, 0.1);
    }

    /* Mobile Submenu */
    .nav-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.03);
        padding: 0;
        display: none;
        border: none;
    }

    .nav-menu .menu-item-has-children.is-open > .sub-menu {
        display: block;
    }

    .nav-menu .sub-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .nav-menu .sub-menu li a {
        padding: 1rem 1rem 1rem 2rem;
        font-size: 0.95rem;
    }

    .nav-menu .sub-menu li a:hover {
        padding-left: 2.5rem;
        background-color: rgba(70, 130, 180, 0.1);
    }

    .nav-menu .menu-item-has-children > a::after {
        content: '\25BC';
        font-size: 0.7rem;
        margin-left: 0.5rem;
        transition: transform 0.3s ease;
        display: inline-block;
    }

    .nav-menu .menu-item-has-children.is-open > a::after {
        transform: rotate(180deg);
    }

    /* Portal Login at bottom on mobile */
    .nav-menu > #menu-item-33 {
        order: 999;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 2px solid rgba(255, 255, 255, 0.15);
    }

    .nav-menu > #menu-item-33 > a {
        border-left: none !important;
        padding-left: 1rem !important;
        margin-left: 0 !important;
    }

    /* Responsive typography */
    h1, .hero-section h1 { font-size: 1.75rem !important; }
    h2 { font-size: 1.5rem; }
    .cta-headline { font-size: 2rem; }
    .cta-subheadline { font-size: 1rem; }
    .content-grid { grid-template-columns: 1fr !important; }
    .entry-title { font-size: 1.75rem; }

    /* CTA responsive */
    .born-cta-section { padding: 50px 20px; }
    .cta-buttons { flex-direction: column; gap: 12px; }
    .cta-button { width: 100%; max-width: 350px; }
    .cta-trust-line { font-size: 0.8rem; line-height: 1.6; }

    /* Testimonials grid */
    section [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-menu > li > a {
        padding: 1rem 0.85rem;
        font-size: 0.82rem;
    }
}

/* ============================================
   MOBILE MENU CLOSE BUTTON
   ============================================ */
.mobile-menu-close {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1001;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.mobile-menu-close:hover {
    background: var(--white);
    color: var(--black);
}

@media (max-width: 768px) {
    .main-navigation.is-open .mobile-menu-close {
        display: block;
    }

    .mobile-menu-close {
        position: static !important;
        width: 100% !important;
        margin-top: 2rem !important;
        padding: 1.25rem !important;
        text-align: center !important;
    }

    body.menu-open .mobile-menu-toggle {
        opacity: 0 !important;
        pointer-events: none !important;
        visibility: hidden !important;
    }
}

/* ============================================
   FORCE SUBMENU BEHAVIOR
   ============================================ */
@media (max-width: 768px) {
    .main-navigation.is-open .nav-menu .sub-menu {
        display: none !important;
        max-height: 0;
        overflow: hidden;
    }

    .main-navigation.is-open .nav-menu .menu-item-has-children.is-open > .sub-menu {
        display: block !important;
        max-height: 1000px;
    }
}

/* ============================================
   FONT AWESOME OPTIMIZATION
   ============================================ */
@font-face {
    font-family: 'Font Awesome 6 Free';
    font-display: swap;
}

@font-face {
    font-family: 'Font Awesome 6 Brands';
    font-display: swap;
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .cta-content { animation: none; }
    .cta-button { transition: none; }
    .cta-button:hover { transform: none; }
    .cta-popup-overlay,
    .cta-popup-container { animation: none; }
    .content-card { transition: none; }
}

/* ============================================
   SEARCH RESULTS
   ============================================ */
.search-results .content-grid {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================
   COMMENTS
   ============================================ */
.comments-area {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

.comment-respond .comment-form input[type="text"],
.comment-respond .comment-form input[type="email"],
.comment-respond .comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.comment-respond .comment-form input:focus,
.comment-respond .comment-form textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-glow);
}

.comment-respond .comment-form .submit {
    background: var(--blue);
    color: var(--white);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.comment-respond .comment-form .submit:hover {
    background: var(--blue-dark);
}

/* ============================================
   HOMEPAGE HERO (.born-hero)
   ============================================ */
.born-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.born-hero a[style*="background: var(--blue)"]:hover,
.born-hero a[style*="background:var(--blue)"]:hover {
    background: var(--blue-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46,163,242,0.5);
}

.born-hero a[style*="border: 2px solid"]:hover {
    background: rgba(255,255,255,0.1) !important;
    border-color: #fff !important;
}

/* Trio grid */
.born-trio-grid img {
    transition: transform 0.4s ease;
}
.born-trio-grid > div:hover img {
    transform: scale(1.03);
}

/* Social icon hover lift */
section a[aria-label] {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
section a[aria-label]:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .born-hero { min-height: 70vh !important; }
    .born-hero h1 { font-size: 2rem !important; }
    .born-hero p { font-size: 1rem !important; }
    .born-trio-grid { grid-template-columns: 1fr !important; gap: 2.5rem !important; }
    .born-trio-grid > div:nth-child(2) { order: -1; }
}

/* ============================================
   CLASS/LOCATION PAGE POLISH
   Styles for Font Awesome icons, checkmarks,
   section typography, and card refinements
   on the 145+ class/location page templates.
   ============================================ */

/* --- Blue checkmark icons (replaced ✓ characters) --- */
.fa-check-blue,
.fa-check-blue.fas {
    color: var(--blue);
    font-size: 0.85em;
    margin-right: 0.4rem;
    width: 1em;
}

/* --- Blue category icons (replaced emojis) --- */
.fa-icon-blue,
.fa-icon-blue.fas {
    color: var(--blue);
    font-size: 1.5rem;
}

/* --- Section heading polish for class pages --- */
h2.section-heading-cyan,
h2.section-heading-magenta {
    font-size: 1.6rem !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 1rem;
}

h2.section-heading-cyan::after,
h2.section-heading-magenta::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--blue);
    margin-top: 0.6rem;
}

/* Center the accent bar when heading is centered */
section[style*="text-align: center"] h2.section-heading-cyan::after,
section[style*="text-align: center"] h2.section-heading-magenta::after {
    margin-left: auto;
    margin-right: auto;
}

/* --- Better h3 styling on class pages --- */
main.site-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* --- Better section spacing on class pages --- */
main.site-content > section {
    padding-top: 4.5rem !important;
    padding-bottom: 4.5rem !important;
}

/* --- Card elements: cleaner shadows and borders --- */
main.site-content div[style*="border-radius: 8px"] {
    border-radius: 6px !important;
    transition: box-shadow 0.2s ease;
}

/* --- Checkmark list items: better line spacing --- */
main.site-content p[style*="margin-bottom: 0.5rem"] {
    margin-bottom: 0.6rem !important;
    line-height: 1.75;
}

/* --- Location grid links: refined card style --- */
main.site-content a[style*="border: 1px solid var(--cyan)"] {
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    border-radius: 6px !important;
}

/* --- Quote/testimonial styling --- */
main.site-content p[style*="font-style: italic"][style*="color: var(--cyan)"] {
    font-size: 1.15rem !important;
    line-height: 1.7;
    position: relative;
    padding: 0 1rem;
}

/* --- CTA section bottom button polish --- */
main.site-content section[style*="linear-gradient"] .btn {
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 4px;
    transition: all 0.25s ease;
}

main.site-content section[style*="linear-gradient"] .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ============================================
   GLOBAL SECTION OVERRIDES
   Controls styling for ALL pages (class pages,
   location pages, etc.) from one place.
   These use !important to override inline styles.
   ============================================ */

/* --- Hero sections across all pages --- */
.hero-section {
    background: linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(0,0,0,0.6)),
                url('/wp-content/uploads/2026/02/A283-2026-01-30_19-57-54_beff00005209_TND02470-Edit-scaled.jpg') center 75% / cover no-repeat !important;
    padding: 200px 0 180px !important;
    text-align: center;
}

.hero-section h1 {
    color: var(--white) !important;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.hero-section p {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* --- Content sections on class/location pages --- */
/* Dark sections become white for monochrome look */
main.site-content > section[style*="background: var(--black)"],
main.site-content > section[style*="background:var(--black)"] {
    background: var(--white) !important;
}

main.site-content > section[style*="background: var(--black)"] p,
main.site-content > section[style*="background: var(--black)"] div {
    color: var(--text-primary) !important;
}

main.site-content > section[style*="background: var(--black)"] strong {
    color: var(--text-headings) !important;
}

main.site-content > section[style*="background: var(--black)"] em {
    color: var(--blue) !important;
}

/* --- Gradient sections become clean blue or light gray --- */
main.site-content > section[style*="linear-gradient(135deg, rgba(70, 130, 180"] {
    background: var(--off-white) !important;
}

main.site-content > section[style*="linear-gradient(135deg, rgba(70, 130, 180"] p,
main.site-content > section[style*="linear-gradient(135deg, rgba(70, 130, 180"] div {
    color: var(--text-primary) !important;
}

/* --- Info/divider bars --- */
section[style*="border-top: 2px solid"],
section[style*="border-bottom: 2px solid"] {
    border-color: var(--blue) !important;
    background: var(--near-black) !important;
}

/* --- Card/box elements on class pages --- */
div[style*="border: 2px solid var(--cyan)"],
div[style*="border: 2px solid var(--magenta)"],
div[style*="border: 1px solid var(--cyan)"] {
    background: var(--white) !important;
    border-color: var(--border-color) !important;
    border-width: 1px !important;
    box-shadow: var(--card-shadow) !important;
}

div[style*="border: 2px solid var(--cyan)"] p,
div[style*="border: 2px solid var(--magenta)"] p,
div[style*="border: 2px solid var(--cyan)"] div,
div[style*="border: 2px solid var(--magenta)"] div {
    color: var(--text-primary) !important;
}

div[style*="border: 2px solid var(--cyan)"] h3,
div[style*="border: 2px solid var(--magenta)"] h3 {
    color: var(--blue) !important;
}

/* --- Blockquote-style callout boxes --- */
div[style*="border-left: 4px solid var(--cyan)"],
div[style*="border-left: 4px solid var(--magenta)"] {
    background: var(--blue-subtle) !important;
    border-left-color: var(--blue) !important;
}

div[style*="border-left: 4px solid var(--cyan)"] h3,
div[style*="border-left: 4px solid var(--magenta)"] h3 {
    color: var(--blue) !important;
}

div[style*="border-left: 4px solid var(--cyan)"] p,
div[style*="border-left: 4px solid var(--magenta)"] p {
    color: var(--text-primary) !important;
}

/* --- Section headings on all pages --- */
h2.section-heading-cyan,
h2.section-heading-magenta {
    color: var(--text-headings) !important;
}

/* On truly dark sections (hero, info bar), headings stay white */
.hero-section h2.section-heading-cyan,
.hero-section h2.section-heading-magenta,
section[style*="background: var(--near-black)"] h2,
section[style*="background: #111827"] h2 {
    color: var(--white) !important;
}

/* --- Location grid links (e.g., "Ballet Classes Near You") --- */
a[style*="border: 1px solid var(--cyan)"] {
    background: var(--white) !important;
    border-color: var(--border-color) !important;
    color: var(--blue) !important;
    transition: all 0.2s ease;
}

a[style*="border: 1px solid var(--cyan)"]:hover {
    background: var(--blue) !important;
    border-color: var(--blue) !important;
    color: var(--white) !important;
}

/* --- CTA gradient banners at bottom of class pages --- */
section[style*="linear-gradient(135deg, #4682B4"] {
    background: var(--blue) !important;
}

/* --- Stars/ratings --- */
div[style*="color: #FFD700"],
div[style*="color: #F59E0B"] {
    color: #F59E0B !important;
}

/* --- Neon glow removal (from old theme) --- */
div[style*="box-shadow: 0 0 20px"] {
    box-shadow: var(--card-shadow) !important;
}

/* --- Image borders: replace neon with subtle --- */
.img-cyan-border {
    border: none !important;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* --- Form inputs (contact form, search) --- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
    background: var(--white);
    color: var(--text-primary);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-glow);
}

/* Submit buttons */
input[type="submit"],
button[type="submit"] {
    background: var(--blue);
    color: var(--white);
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

input[type="submit"]:hover,
button[type="submit"]:hover {
    background: var(--blue-dark);
}

/* --- Responsive overrides for all pages --- */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0 2.5rem !important;
    }

    .hero-section h1 {
        font-size: 1.75rem !important;
    }

    /* Force all two-column grids to stack */
    div[style*="grid-template-columns: 1fr 1fr"],
    div[style*="grid-template-columns: repeat("] {
        grid-template-columns: 1fr !important;
    }
}
