/*
Theme Name: Waynesboro Martial Arts
Theme URI: https://fleshernet.com/
Description: A custom, lightweight, highly optimized athletic theme built for Waynesboro Martial Arts.
Version: 1.0.0
Author: Eric Flesher
Author URI: https://fleshernet.com/
Text Domain: wma-theme
*/

/* 
Note: Below this comment box, you will eventually paste all the global CSS rules 
we tested in our mockup, but let's keep the file empty or metadata-only until we map out the PHP files.
*/

/* ==========================================================================
   WAYNESBORO MARTIAL ARTS - GALLERY REVISION
   5-Wide Video Stream Row Layout with Full-Width Block Elements
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #222222;
    background-color: #ffffff;
}

a {
    text-decoration: none;
    transition: all 0.2s ease;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
header {
    background-color: #ffffff;
    padding: 20px 20px 15px 20px;
    display: flex;
    flex-direction: column; 
    align-items: center;
    gap: 20px; 
    position: sticky;
    top: 0;
    z-index: 2000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

header .logo img {
    height: 130px; 
    width: auto;
    display: block;
}

/* New Sub-Logo Contact Info Bar styling */
.header-contact-bar {
    display: flex;
    gap: 30px;              
    margin-top: 10px;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #444444;
    font-weight: 500;
}

/* FIX: Forces the phone link to appear solid black instead of blue */
.header-contact-bar a {
    color: #1a1c1e;         
    font-weight: 700;
}

.header-contact-bar a:hover {
    color: #6c89a3;         /* Smooth transition to building blue on hover */
}

header nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;       /* Adds breathing room under the contact bar */
}

header nav ul li a {
    color: #1a1c1e;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 12px;
    display: inline-block;
    transition: all 0.2s ease;
}

header nav ul li a:hover,
header nav ul .current-menu-item a {
    color: #6c89a3;
}

/* ==========================================================================
   AGGRESSIVE WP ADMIN BAR STICKY FIX
   Directly handles the scroll jump by targeting the admin bar element
   ========================================================================== */
#wpadminbar ~ header {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    #wpadminbar ~ header {
        top: 46px !important;
    }
}

/* ==========================================================================
   ZONE 1: HERO CONTAINER
   ========================================================================== */
#hero {
    position: relative;
    background-color: #2b2d31; 
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    text-align: center;
    padding: 120px 20px;
    width: 100%;
}

.hero-overlay-content {
    max-width: 900px;
    margin: 0 auto;
}

#hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    line-height: 1.1;
}

#hero p {
    font-size: 1.2rem;
    color: #e2e8f0;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.cta-button {
    display: inline-block;
    background-color: #6c89a3; 
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 16px 40px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.cta-button:hover {
    background-color: #5a748c;
    transform: translateY(-1px);
}

/* ==========================================================================
   ZONE 2: WELCOME SECTION
   ========================================================================== */
#intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 20px 40px 20px;
}

#intro h2 {
    font-size: 2.2rem;
    color: #000000;
    margin-bottom: 20px;
    text-transform: uppercase;
}

#intro p {
    font-size: 1.05rem;
    color: #444444;
}

/* ==========================================================================
   ZONE 3: PROGRAMS SECTION (2-Column Grid)
   ========================================================================== */
#programs {
    max-width: 1000px; 
    margin: 0 auto;
    padding: 40px 20px 60px 20px;
}

#programs h2 {
    font-size: 2.2rem;
    text-align: center;
    text-transform: uppercase;
    color: #000000;
    margin-bottom: 40px;
}

.programs-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px;
}

.program-card {
    background-color: #ffffff;
    padding: 45px 35px;
    text-align: center;
    border: 3px solid #6c89a3; 
}

.program-card h3 {
    font-size: 1.5rem;
    color: #000000;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.program-card p {
    color: #444444;
    font-size: 1rem;
    margin-bottom: 25px;
}

.program-card a {
    color: #6c89a3;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* ==========================================================================
   ZONE 4: NEW 5-WIDE REELS GALLERY SECTION
   ========================================================================== */
#video-reels-gallery {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
}

#video-reels-gallery h2 {
    font-size: 2.2rem;
    text-align: center;
    text-transform: uppercase;
    color: #000000;
    margin-bottom: 40px;
}

.reels-grid-5wide {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Forces 5-wide columns */
    gap: 15px;
}

.reel-card-slot {
    width: 100%;
    aspect-ratio: 9 / 16; /* Maintains mobile vertical screen aspect ratio */
    background-color: #000000;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.placeholder-slot {
    background-color: #eef1f4;
    border: 2px dashed #cbd5e0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #718096;
    font-weight: 600;
}

/* ==========================================================================
   ZONE 5: STACKED TESTIMONIALS (Positioned below the gallery)
   ========================================================================== */
#testimonials-stacked {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 80px 20px;
}

#testimonials-stacked h2 {
    font-size: 2.2rem;
    text-align: center;
    text-transform: uppercase;
    color: #000000;
    margin-bottom: 40px;
}

.testimonials-stacked-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.testimonial-row {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 6px;
    border-left: 5px solid #6c89a3; /* Accented with Building Blue */
}

.testimonial-row p {
    font-style: italic;
    color: #333333;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.testimonial-row cite {
    font-weight: 700;
    color: #1a1c1e;
    display: block;
    font-style: normal;
}

/* ==========================================================================
   ZONE 6: FOOTER BLOCK
   ========================================================================== */
footer {
    background-color: #1a1c1e;
    color: #ffffff;
    padding: 50px 50px 20px 50px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; 
    gap: 40px;
}

footer h3, footer h4 {
    font-size: 1.1rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

footer p {
    color: #bbbbbb;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.map-embed-container {
    margin-top: 15px;
    max-width: 450px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

footer .footer-socials {
    text-align: right;
}

footer .footer-socials ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

footer .footer-socials a {
    color: #ffffff;
    font-size: 1.2rem;
}

.footer-copyright {
    grid-column: 1 / -1;
    text-align: center;
    color: #777777;
    border-top: 1px solid #2d3135;
    padding-top: 20px;
    margin-top: 30px;
    font-size: 0.8rem;
}

/* ==========================================================================
       FOOTER STACKING & MAP FIX
       ========================================================================== */
    footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 40px 20px 25px 20px;
        width: 100%;
        overflow: hidden;
    }

    .footer-info,
    .footer-socials,
    .footer-copyright {
        width: 100%;
        max-width: 400px;
        margin: 0 auto 25px auto;
    }

    .footer-info .map-embed-container {
        width: 100%;
        max-width: 100%;
        margin-top: 15px;
    }

    .footer-info .map-embed-container iframe {
        width: 100% !important;
        height: 220px;
        display: block;
    }

    .footer-socials ul {
        display: flex;
        justify-content: center;
        gap: 20px;
        padding: 0;
        list-style: none;
        margin-top: 10px;
    }

    .footer-copyright {
        margin-bottom: 0;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   INTERNAL PAGE: OUR HISTORY LAYOUT STYLES
   ========================================================================== */

/* Active link indicator for the menu */
header nav a.active {
    color: #6c89a3;
    border-bottom: 2px solid #6c89a3;
}

/* Page Banner Styling */
.page-banner {
    background-color: #2b2d31;
    color: #ffffff;
    text-align: center;
    padding: 60px 20px;
    width: 100%;
}

.page-banner h1 {
    font-size: 2.8rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.page-banner p {
    font-size: 1.1rem;
    color: #cccccc;
}

/* Two-Column Layout Config */
.history-layout {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr; /* Gives content the heavy weight, sidebar is slim */
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 100px 20px;
    align-items: start;
}

.history-text h2 {
    font-size: 2rem;
    color: #000000;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.history-text h3 {
    font-size: 1.4rem;
    color: #1a1c1e;
    margin-top: 35px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.history-text p {
    font-size: 1.05rem;
    color: #444444;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Sidebar Visual Cards */
.image-placeholder-card {
    background-color: #ffffff;
    border: 3px solid #6c89a3; /* Matched to building blue accent */
    padding: 15px;
    margin-bottom: 30px;
}

.placeholder-img-box {
    background-color: #eef1f4;
    width: 100%;
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #718096;
    font-weight: 600;
    border-radius: 2px;
}

.image-caption {
    font-size: 0.85rem;
    color: #666666;
    margin-top: 12px;
    line-height: 1.4;
    font-style: italic;
}

/* Fun Fact Highlight Block */
.fun-fact-box {
    background-color: #f4f7f9;
    border-left: 5px solid #1a1c1e;
    padding: 25px;
}

.fun-fact-box h4 {
    font-size: 1.1rem;
    color: #000000;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.fun-fact-box p {
    font-size: 0.95rem;
    color: #444444;
    line-height: 1.6;
}

/* ==========================================================================
   INTERNAL PAGE: MEET THE INSTRUCTORS LAYOUT STYLES
   ========================================================================== */

#instructors-section {
    max-width: 1300px;
    margin: 0 auto;
    padding: 60px 20px 100px 20px;
}

.instructors-container {
    display: grid;
    /* Automatically handles a clean 4-column layout desktop stretch, scaling down smoothly */
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.instructor-card {
    background-color: #ffffff;
    border: 3px solid #6c89a3; /* Brand consistent building blue outline */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.instructor-card:hover {
    transform: translateY(-4px);
}

.instructor-image-box {
    background-color: #eef1f4;
    width: 100%;
    aspect-ratio: 3 / 4; /* Perfect tall profile frame ratio for portrait photography */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #718096;
    font-weight: 600;
    border-bottom: 2px solid #6c89a3;
}

.instructor-info {
    padding: 25px 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.instructor-info h3 {
    font-size: 1.4rem;
    color: #000000;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.instructor-info h4 {
    font-size: 0.9rem;
    color: #6c89a3; /* Accentuated title coloring */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    font-weight: 700;
}

.instructor-info p {
    font-size: 0.95rem;
    color: #444444;
    line-height: 1.6;
}

/* ==========================================================================
   INTERNAL PAGE: PROGRAMS TEMPLATE LAYOUT STYLES
   ========================================================================== */

.program-detail-block {
    padding: 80px 20px;
    width: 100%;
    background-color: #ffffff;
}

.program-detail-block.alternate-bg {
    background-color: #f9fafb; /* Creates a clean layout break between the blocks */
    border-top: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7;
}

.program-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50/50 visual split split */
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

/* Allows us to easily reverse layout order on desktop for alternating patterns */
.program-detail-grid.flip-layout {
    direction: ltr; 
}

.age-badge {
    display: inline-block;
    background-color: #eef1f4;
    color: #1a1c1e;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    border: 1px solid #cbd5e0;
}

.program-info-wrapper h2 {
    font-size: 2.2rem;
    color: #000000;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.program-info-wrapper p {
    font-size: 1.05rem;
    color: #444444;
    margin-bottom: 25px;
}

.program-benefits-list {
    list-style: none;
    margin-bottom: 35px;
}

.program-benefits-list li {
    font-size: 1rem;
    color: #333333;
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
}

/* Customized crisp bullet point indicators using Building Blue */
.program-benefits-list li::before {
    content: "🥋";
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 0.9rem;
}

.inline-cta {
    font-size: 1rem;
    padding: 14px 35px;
}

/* Image containment slots */
.program-img-box {
    background-color: #eef1f4;
    width: 100%;
    aspect-ratio: 4 / 3; /* Solid widescreen layout box constraint */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #718096;
    font-weight: 600;
    border: 3px solid #6c89a3; /* Building Blue Frame */
}

/* ==========================================================================
   KATAS TRAINING VAULT LAYOUT STYLES (Perfect 9:16 Portrait Alignment)
   ========================================================================== */
.kata-category-block {
    width: 100%;
    padding: 60px 0; /* Vertical breathing room, side padding moved internally */
}

.kata-category-block.alternate-bg {
    background-color: #f9fafb;
    border-top: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7;
}

/* Master internal alignment box across both standard and gray row types */
.kata-inner-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Locked down internal side spacing metrics */
}

.kata-category-block h2 {
    font-size: 1.8rem;
    color: #000000;
    text-transform: uppercase;
    margin-bottom: 30px;
    border-left: 5px solid #6c89a3; 
    padding-left: 15px;
}

.kata-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 25px;
}

.kata-video-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.kata-video-card h3 {
    font-size: 1.1rem;
    color: #1a1c1e;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-weight: 700;
    text-align: center;
}

/* Locked aspect ratio box for 9:16 mobile portrait framing */
.vimeo-embed-frame {
    width: 100%;
    aspect-ratio: 9 / 16; 
    position: relative;
    background-color: #000000;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.vimeo-placeholder-slot {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #4a5568;
    background-color: #edf2f7;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ==========================================================================
   INTERNAL PAGE: FAQ ACCORDION LAYOUT STYLES (Pure CSS Toggle Engine)
   ========================================================================== */

.faq-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px 100px 20px;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background-color: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.faq-item:hover {
    border-color: #6c89a3; /* Highlights with Building Blue on hover */
}

/* Completely hides the functional state checkboxes from view */
.faq-toggle {
    display: none;
}

/* Styled question clickable label element */
.faq-question {
    display: block;
    padding: 20px 25px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1c1e;
    cursor: pointer;
    position: relative;
    user-select: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dynamic CSS down arrow symbol indicator creation */
.faq-question::after {
    content: "+";
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: #6c89a3;
    font-weight: 400;
    transition: transform 0.2s ease;
}

/* Collapsed initialization for answer box containment boundaries */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s cubic-bezier(0, 1, 0, 1);
    background-color: #f9fafb;
}

.faq-answer p {
    padding: 0 25px 25px 25px;
    color: #444444;
    font-size: 1rem;
    line-height: 1.7;
}

/* PURE CSS STATE TRIGGERS: Activates when a question checkbox is ticked */
.faq-toggle:checked ~ .faq-answer {
    max-height: 1000px; /* Expands container limit smoothly */
    transition: max-height 0.3s ease-in-out;
}

.faq-toggle:checked ~ .faq-question {
    background-color: #ffffff;
    color: #000000;
}

/* Swaps the plus icon indicator out when expanding */
.faq-toggle:checked ~ .faq-question::after {
    content: "−";
    font-weight: 700;
}

/* ==========================================================================
   INTERNAL PAGE: CONTACT SHEET LAYOUT STYLES
   ========================================================================== */

.contact-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 100px 20px;
}

.contact-split-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr; /* Gives slightly more room to the form input fields */
    gap: 60px;
    align-items: start;
}

.contact-form-wrapper h2, .contact-details-wrapper h2 {
    font-size: 1.8rem;
    color: #000000;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.contact-form-wrapper p {
    color: #555555;
    font-size: 1rem;
    margin-bottom: 30px;
}

/* Form inputs styling engine */
.dummy-contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.form-group-row {
    display: flex;
    gap: 20px;
}

.dummy-contact-form label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #1a1c1e;
    letter-spacing: 0.5px;
}

.dummy-contact-form input[type="text"],
.dummy-contact-form input[type="email"],
.dummy-contact-form input[type="tel"],
.dummy-contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    background-color: #f9fafb;
    color: #222222;
    transition: all 0.2s ease;
}

.dummy-contact-form input:focus,
.dummy-contact-form textarea:focus {
    outline: none;
    background-color: #ffffff;
    border-color: #6c89a3; /* Highlights in Building Blue on active focus */
    box-shadow: 0 0 0 3px rgba(108, 137, 163, 0.15);
}

.form-submit-btn {
    border: none;
    cursor: pointer;
    align-self: flex-start; /* Keeps button bound to content sizing instead of full stretching */
}

/* Right column touchpoint presentation elements */
.contact-info-blocks {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
    margin-top: 25px;
}

.info-card {
    background-color: #f9fafb;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 4px;
}

.info-card h4 {
    font-size: 1rem;
    text-transform: uppercase;
    color: #000000;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.info-card p {
    font-size: 1rem;
    color: #444444;
}

.info-card .phone-link {
    color: #6c89a3;
    font-weight: 700;
    font-size: 1.2rem;
}

.info-card .phone-link:hover {
    color: #1a1c1e;
}

.info-card .sub-text {
    font-size: 0.85rem;
    color: #718096;
    margin-top: 4px;
}

.contact-page-map {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ==========================================================================
   PAGE FOOTER CALL TO ACTION (CTA)
   ========================================================================== */
.page-footer-cta {
    background-color: #f8f9fa; /* Clean, light neutral contrast before the footer */
    padding: 60px 20px;
    text-align: center;
    border-top: 1px solid #eef0f2;
}

.cta-inner-content {
    max-width: 700px;
    margin: 0 auto;
}

.page-footer-cta h2 {
    font-size: 2rem;
    color: #1a1c1e;
    margin-bottom: 12px;
    font-weight: 800;
}

.page-footer-cta p {
    font-size: 1.05rem;
    color: #555555;
    margin-bottom: 25px;
    line-height: 1.6;
}

.page-footer-cta .cta-button {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.page-footer-cta .cta-button:hover {
    transform: translateY(-2px);
}

/* ==========================================================================
   RESPONSIVE LAYOUT RESPONSIVENESS (BREAKPOINTS)
   ========================================================================== */

/* --------------------------------------------------------------------------
   TABLET LANDSCAPE & PORTRAIT BREAKPOINT (Max-width: 992px)
   --------------------------------========================================== */
@media screen and (max-width: 992px) {
    /* Main Content Containers */
    main {
        padding: 0 15px; /* Adds safe gutter breathing room on smaller screens */
    }

    /* Homepage Program Cards */
    .programs-container {
        gap: 20px;
    }

    /* Instructors Grid - Drops from 4 columns to a balanced 2x2 grid */
    .instructors-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    /* History & Contact Split Grids - Forces side-by-side columns to stack vertically */
    .history-layout, 
    .contact-split-grid {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .history-sidebar,
    .contact-details-wrapper {
        width: 100%;
    }

    /* Katas Grid - Drops from 3 columns to 2 columns */
    .kata-videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* --------------------------------------------------------------------------
   MOBILE SMARTPHONE BREAKPOINT (Max-width: 600px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 600px) {

    /* Clamp header width */
    header {
        width: 100%;
        max-width: 100vw;
        padding: 15px 8px 10px 8px;
        overflow: hidden;
    }

    header .logo img {
        height: 75px; /* Scales down logo to leave room for text */
    }

    .header-contact-bar {
        flex-direction: column;
        align-items: center;
        gap: 4px;
        font-size: 0.8rem;
        margin: 6px 0;
        text-align: center;
    }

    /* Mobile Navigation Refinement */
    header nav {
        width: 100%;
    }

    header nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 4px; /* Tight vertical and horizontal gap */
        padding: 0;
        margin: 8px 0 0 0;
    }

    header nav ul li a {
        font-size: 0.72rem; /* Compact font so links fit on 2 balanced lines */
        padding: 4px 6px;
        letter-spacing: 0;
        display: inline-block;
    }

    /* Banner Spacing */
    .page-banner {
        padding: 40px 15px;
    }

    .page-banner h1 {
        font-size: 1.8rem;
    }

    /* Homepage Hero */
    #hero {
        padding: 50px 15px;
    }

    #hero h1 {
        font-size: 1.6rem;
    }

    /* Homepage Program Cards - Stacks them 1-wide */
    .programs-container {
        display: flex;
        flex-direction: column;
    }

    /* Video Reels Showcase Grid - Drops the 5-wide grid down to a clean scrolling feed */
    .reels-grid-5wide {
        grid-template-columns: 1fr;
        max-width: 340px; /* Anchors typical portrait smartphone aspect ratio widths */
        margin: 0 auto;
        gap: 25px;
    }

	.reel-card-slot {
		position: relative;
		width: 100%;
		aspect-ratio: 9 / 16;
		background-color: #000;
		border-radius: 6px;
		overflow: hidden;
	}

	.reel-card-slot iframe {
		width: 100% !important;
		height: 100% !important;
		border: none;
		display: block;
	}

    /* Instructors Grid - Drops to 1 column full-width stack */
    .instructors-container {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    /* Katas Vault Grid - Stacks video cards 1-wide */
    .kata-videos-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .instagram-embed-render-frame {
        min-height: 480px;
    }

    /* Contact Page Fields - Stacks split Name/Phone row into single inputs */
    .form-group-row {
        display: flex;
        flex-direction: column;
        gap: 0; /* Lets our standard bottom-margins handle the vertical tracking */
    }

    /* Global Call To Action (CTA) blocks before footer */
    .page-footer-cta {
        padding: 40px 15px;
    }

    .page-footer-cta h2 {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   PASSWORD PROTECTED PAGE FORM
   ========================================================================== */
.post-password-form {
    background: #ffffff;
    padding: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.post-password-form p {
    margin-bottom: 15px;
    font-size: 1rem;
    color: #444;
}

.post-password-form input[type="password"] {
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    margin: 0 8px 10px 0;
    width: 240px;
}

.post-password-form input[type="submit"] {
    background-color: #6c89a3;
    color: #ffffff;
    border: none;
    padding: 11px 22px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.post-password-form input[type="submit"]:hover {
    background-color: #1a1c1e;
}