/* ============================================================
   McCADEMY Theme — Main Stylesheet
   Colors: Dark Red #8B1A1A | Dark Green #1E5C30 | Gold #C8962A
   ============================================================ */

/* ---- CSS VARIABLES ---- */
:root {
    --red:        #8B1A1A;
    --red-dark:   #6B1212;
    --red-light:  #B52525;
    --green:      #1E5C30;
    --green-dark: #144022;
    --green-light:#267A40;
    --gold:       #C8962A;
    --gold-light: #E0B040;
    --gold-pale:  #F9EDD0;

    --text:       #222222;
    --text-muted: #5a5a5a;
    --text-light: #888888;
    --bg:         #FAFAF7;
    --bg-alt:     #F2EDE5;
    --white:      #FFFFFF;
    --border:     #DDD5C0;

    --sidebar-w:  260px;
    --header-h:   74px;
    --radius:     8px;
    --radius-lg:  14px;
    --shadow:     0 2px 12px rgba(0,0,0,.10);
    --shadow-lg:  0 8px 32px rgba(0,0,0,.14);

    --font-body:  'Nunito', 'Segoe UI', Arial, sans-serif;
    --font-head:  'Playfair Display', 'Garamond', Georgia, serif;
}

/* ---- RESET / BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 17px; scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; transition: color .2s; }
a:hover { color: var(--red-light); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    line-height: 1.25;
    color: var(--red-dark);
    margin-bottom: .5em;
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1.1em; }
ul, ol { padding-left: 1.5em; margin-bottom: 1em; }
li { margin-bottom: .3em; }

blockquote {
    border-left: 4px solid var(--gold);
    padding: .8em 1.2em;
    background: var(--gold-pale);
    margin: 1.5em 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
}

code, pre {
    font-family: 'Courier New', monospace;
    background: #f4f0e8;
    border-radius: 4px;
    font-size: .88em;
}
code { padding: 2px 6px; }
pre  { padding: 1em 1.2em; overflow-x: auto; margin-bottom: 1em; }

hr { border: none; border-top: 2px solid var(--border); margin: 2em 0; }

/* ---- PAGE WRAPPER ---- */
.mca-page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ============================================================
   HEADER
   ============================================================ */
.mca-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 2px 12px rgba(0,0,0,.12);
    height: var(--header-h);
}

.mca-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Logo */
.mca-logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}
.mca-logo-link { display: flex; align-items: center; }
.mca-default-logo { height: 52px; width: auto; }
.custom-logo { height: 52px; width: auto; }

.mca-site-identity { display: flex; flex-direction: column; }
.mca-site-name {
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--red-dark);
    line-height: 1;
}
.mca-site-name:hover { color: var(--red-light); }
.mca-site-tagline {
    font-size: .75rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 2px;
}

/* Right section */
.mca-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

/* Primary nav */
.mca-primary-nav { display: flex; }
.mca-nav-list {
    list-style: none;
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
}
.mca-nav-list li a {
    display: block;
    padding: 8px 14px;
    font-size: .88rem;
    font-weight: 700;
    color: var(--text);
    border-radius: var(--radius);
    transition: background .2s, color .2s;
    white-space: nowrap;
}
.mca-nav-list li a:hover,
.mca-nav-list li.current-menu-item > a,
.mca-nav-list li.current_page_item > a {
    background: var(--gold-pale);
    color: var(--red-dark);
}

/* Sub-menus */
.mca-nav-list li { position: relative; }
.mca-nav-list .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    list-style: none;
    z-index: 999;
}
.mca-nav-list li:hover > .sub-menu { display: block; }
.mca-nav-list .sub-menu li a {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: .85rem;
}

/* === LOGIN BUTTONS === */
.mca-login-buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.mca-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    transition: transform .15s, box-shadow .15s, filter .15s;
    white-space: nowrap;
}
.mca-login-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); filter: brightness(1.1); }
.mca-btn-icon { font-size: 1rem; }

.mca-login-student {
    background: var(--green);
    color: var(--white) !important;
    box-shadow: 0 3px 10px rgba(30,92,48,.3);
}
.mca-login-parent {
    background: var(--red);
    color: var(--white) !important;
    box-shadow: 0 3px 10px rgba(139,26,26,.3);
}
.mca-login-teacher {
    background: var(--gold);
    color: #3a2800 !important;
    box-shadow: 0 3px 10px rgba(200,150,42,.3);
}

/* Hamburger */
.mca-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius);
    flex-shrink: 0;
}
.mca-hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--red-dark);
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}
.mca-hamburger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.mca-hamburger.is-open span:nth-child(2) { opacity: 0; }
.mca-hamburger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   MOBILE MENU DRAWER
   ============================================================ */
.mca-mobile-menu {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 999;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform .3s ease;
}
.mca-mobile-menu.is-open { transform: translateX(0); }

.mca-mobile-menu-inner { padding: 24px 20px; }

.mca-mobile-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}
.mca-mobile-login-buttons .mca-login-btn { justify-content: center; padding: 12px 20px; font-size: .9rem; }

.mca-mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    border-top: 1px solid var(--border);
}
.mca-mobile-nav-list li a {
    display: block;
    padding: 12px 4px;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    color: var(--text);
    font-size: 1rem;
}
.mca-mobile-nav-list li a:hover { color: var(--red); }
.mca-mobile-nav-list .sub-menu { list-style: none; padding-left: 16px; }

/* ============================================================
   MAIN LAYOUT: SIDEBAR + CONTENT
   ============================================================ */
.mca-main-layout {
    flex: 1;
    display: flex;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    gap: 28px;
    align-items: flex-start;
    padding-top: 28px;
    padding-bottom: 40px;
}

/* ---- SIDEBAR ---- */
.mca-sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--header-h) + 16px);
    max-height: calc(100vh - var(--header-h) - 40px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.mca-sidebar::-webkit-scrollbar { width: 4px; }
.mca-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.mca-sidebar-heading {
    font-family: var(--font-body);
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-light);
    padding: 0 12px 8px;
    margin-bottom: 4px;
    border-bottom: 2px solid var(--gold);
}

.mca-sidebar-nav-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 16px 0;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.mca-sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mca-sidebar-nav li a {
    display: flex;
    align-items: center;
    padding: 9px 16px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--text);
    border-left: 3px solid transparent;
    transition: background .15s, border-color .15s, color .15s;
}
.mca-sidebar-nav li a:hover,
.mca-sidebar-nav li.current-menu-item > a,
.mca-sidebar-nav li.current_page_item > a {
    background: var(--gold-pale);
    border-left-color: var(--gold);
    color: var(--red-dark);
}
.mca-sidebar-nav .sub-menu { list-style: none; padding: 0; }
.mca-sidebar-nav .sub-menu li a { padding-left: 28px; font-size: .85rem; font-weight: 400; }

/* Sidebar widgets */
.mca-sidebar-widgets .widget {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: var(--shadow);
}
.widget-title {
    font-size: .85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--green-dark);
    border-bottom: 2px solid var(--green);
    padding-bottom: 6px;
    margin-bottom: 12px;
}

/* ---- MAIN CONTENT ---- */
.mca-content {
    flex: 1;
    min-width: 0;
}

.mca-content-inner {
    padding: 0;
}

/* Page header */
.mca-page-header { margin-bottom: 28px; }
.mca-page-title {
    font-size: 2rem;
    color: var(--red-dark);
    border-bottom: 3px solid var(--gold);
    padding-bottom: 12px;
}

/* Archive desc */
.mca-archive-desc { color: var(--text-muted); font-style: italic; margin-top: 8px; }

/* ---- POSTS GRID ---- */
.mca-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

/* ---- POST CARD ---- */
.mca-post-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
}
.mca-post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.mca-card-thumb-link { display: block; overflow: hidden; }
.mca-card-thumb { height: 180px; overflow: hidden; }
.mca-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.mca-post-card:hover .mca-card-thumb img { transform: scale(1.04); }

.mca-card-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }

.mca-card-meta {
    font-size: .78rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.mca-card-meta a { color: var(--green); font-weight: 700; font-size: .78rem; }
.mca-card-meta a:hover { color: var(--green-light); }
.mca-meta-sep { color: var(--border); }

.mca-card-title { font-size: 1.1rem; margin-bottom: 10px; }
.mca-card-title a { color: var(--red-dark); }
.mca-card-title a:hover { color: var(--red-light); }

.mca-card-excerpt { font-size: .9rem; color: var(--text-muted); flex: 1; margin-bottom: 14px; }

.mca-card-read-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .85rem;
    font-weight: 800;
    color: var(--gold);
    margin-top: auto;
    transition: color .2s;
}
.mca-card-read-more:hover { color: var(--gold-light); }

/* ---- SINGLE POST / PAGE ARTICLE ---- */
.mca-single-article,
.mca-page-article {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.mca-entry-header {
    padding: 28px 36px 0;
}

.mca-entry-meta-top { margin-bottom: 8px; }
.mca-entry-meta-top a { color: var(--green); font-size: .82rem; font-weight: 700; }

.mca-entry-title {
    font-size: 2rem;
    color: var(--red-dark);
    margin-bottom: 10px;
}

.mca-entry-meta {
    font-size: .82rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mca-entry-thumbnail {
    margin: 0 0 0;
}
.mca-entry-thumbnail img { width: 100%; max-height: 440px; object-fit: cover; }

.mca-entry-content {
    padding: 28px 36px 32px;
    font-size: 1rem;
    line-height: 1.8;
}
.mca-entry-content h2 { font-size: 1.5rem; margin-top: 1.5em; color: var(--green-dark); }
.mca-entry-content h3 { font-size: 1.2rem; margin-top: 1.2em; color: var(--red); }
.mca-entry-content a { color: var(--red); border-bottom: 1px solid rgba(139,26,26,.3); }
.mca-entry-content a:hover { color: var(--red-light); border-bottom-color: var(--red-light); }
.mca-entry-content img { border-radius: var(--radius); margin: 1em 0; }

.mca-entry-footer {
    padding: 0 36px 24px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
    margin-top: 0;
}
.mca-tags { font-size: .85rem; color: var(--text-muted); }
.mca-tags a { color: var(--green); font-weight: 700; }

/* Post navigation */
.mca-post-navigation {
    margin-top: 28px;
}
.mca-post-navigation .nav-links {
    display: flex;
    gap: 16px;
}
.mca-post-navigation .nav-previous,
.mca-post-navigation .nav-next {
    flex: 1;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
    box-shadow: var(--shadow);
}
.mca-post-navigation .nav-next { text-align: right; }
.nav-label { font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-light); display: block; margin-bottom: 4px; }
.nav-title { font-weight: 700; color: var(--red-dark); font-size: .9rem; }

/* Posts pagination */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.nav-links a, .nav-links span.current {
    padding: 8px 16px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: .88rem;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--text);
}
.nav-links a:hover { background: var(--gold-pale); color: var(--red-dark); border-color: var(--gold); }
.nav-links span.current { background: var(--red); color: var(--white); border-color: var(--red); }

/* Read more link in excerpt */
a.read-more { font-weight: 700; color: var(--gold); }

/* ---- SEARCH FORM ---- */
.mca-search-form-wrap,
.search-form {
    max-width: 480px;
    margin: 16px 0;
}
.search-form label { display: flex; gap: 0; }
.search-field {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--border);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
}
.search-field:focus { border-color: var(--gold); }
.search-submit {
    padding: 10px 20px;
    background: var(--red);
    color: var(--white);
    border: 2px solid var(--red);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background .2s;
}
.search-submit:hover { background: var(--red-light); }

/* ---- ERROR PAGE ---- */
.mca-error-page {
    text-align: center;
    padding: 60px 20px;
    max-width: 560px;
    margin: 0 auto;
}
.mca-error-icon { font-size: 72px; margin-bottom: 12px; }
.mca-error-code { font-size: 5rem; color: var(--red); margin-bottom: 0; }
.mca-error-title { font-size: 1.6rem; color: var(--green-dark); margin-bottom: 16px; }
.mca-error-msg { color: var(--text-muted); margin-bottom: 24px; }
.mca-error-actions { margin-bottom: 24px; }

/* ---- NO RESULTS ---- */
.mca-no-results {
    text-align: center;
    padding: 40px 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.mca-no-results-icon { font-size: 48px; margin-bottom: 12px; }
.mca-no-results h2 { color: var(--red-dark); margin-bottom: 8px; }
.mca-no-results p { color: var(--text-muted); margin-bottom: 16px; }

/* ---- BUTTONS ---- */
.mca-btn-primary {
    display: inline-block;
    padding: 12px 28px;
    background: var(--red);
    color: var(--white) !important;
    border-radius: 50px;
    font-weight: 800;
    font-size: .95rem;
    letter-spacing: .3px;
    box-shadow: 0 4px 14px rgba(139,26,26,.35);
    transition: background .2s, transform .15s, box-shadow .15s;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
}
.mca-btn-primary:hover {
    background: var(--red-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(139,26,26,.4);
}

/* ============================================================
   FOOTER
   ============================================================ */
.mca-footer {
    background: var(--green-dark);
    color: #d4edd9;
    margin-top: 0;
}

.mca-footer-top { padding: 52px 0 40px; }

.mca-footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr 1.2fr;
    gap: 40px;
    align-items: flex-start;
}

.mca-footer-logo { height: 56px; width: auto; margin-bottom: 14px; filter: brightness(1.1); }

.mca-footer-desc {
    font-size: .9rem;
    color: #a8d4b2;
    line-height: 1.6;
    margin-bottom: 18px;
}

.mca-footer-contact { display: flex; flex-direction: column; gap: 8px; }
.mca-contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-light);
    font-size: .9rem;
    font-weight: 600;
}
.mca-contact-link:hover { color: var(--white); }
.mca-contact-icon { font-size: 1rem; }

.mca-footer-heading {
    font-family: var(--font-body);
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(200,150,42,.4);
}

.mca-footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mca-footer-nav li { margin-bottom: 8px; }
.mca-footer-nav li a {
    color: #a8d4b2;
    font-size: .9rem;
    transition: color .2s, padding-left .2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.mca-footer-nav li a:hover { color: var(--white); padding-left: 4px; }
.mca-affiliate-link a {
    color: var(--gold-light) !important;
    font-weight: 700;
}

/* Footer widget titles */
.footer-widget-title {
    font-family: var(--font-body);
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold);
    margin-bottom: 12px;
    border-bottom: 2px solid rgba(200,150,42,.4);
    padding-bottom: 6px;
}

/* Footer bottom bar */
.mca-footer-bottom {
    background: rgba(0,0,0,.35);
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,.08);
}
.mca-footer-bottom-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.mca-copyright {
    font-size: .82rem;
    color: #7daa87;
}
.mca-footer-legal {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.mca-footer-legal a {
    font-size: .82rem;
    color: #7daa87;
    transition: color .2s;
}
.mca-footer-legal a:hover { color: var(--white); }
.mca-sep { color: rgba(255,255,255,.2); }

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-area {
    margin-top: 28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 36px;
}
.comments-title { font-size: 1.3rem; color: var(--red-dark); margin-bottom: 20px; }
.comment-list { list-style: none; padding: 0; }
.comment { padding: 16px 0; border-bottom: 1px solid var(--border); }
.comment-author { font-weight: 700; color: var(--green-dark); }
.comment-meta { font-size: .8rem; color: var(--text-light); margin-bottom: 8px; }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: .95rem;
    margin-bottom: 12px;
    outline: none;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--gold); }
.comment-form textarea { min-height: 120px; }
.comment-form .submit {
    background: var(--red);
    color: var(--white);
    border: none;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: .95rem;
    transition: background .2s;
}
.comment-form .submit:hover { background: var(--red-light); }

/* ============================================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .mca-primary-nav { display: none; }
    .mca-hamburger { display: flex; }
    .mca-mobile-menu { display: block; }
    .mca-login-buttons { display: none; }

    .mca-footer-grid { grid-template-columns: 1fr 1fr; }
    .mca-footer-about { grid-column: 1 / -1; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
    :root { --sidebar-w: 100%; --header-h: 64px; }
    html { font-size: 16px; }

    .mca-header-inner { padding: 0 16px; gap: 10px; }
    .mca-default-logo, .custom-logo { height: 40px; }
    .mca-site-name { font-size: 1.1rem; }
    .mca-site-identity { display: none; }

    .mca-main-layout {
        flex-direction: column;
        padding: 0 16px 32px;
        padding-top: 20px;
        gap: 20px;
    }

    .mca-sidebar {
        width: 100%;
        position: static;
        max-height: none;
        overflow: visible;
    }
    .mca-sidebar-nav-wrap { padding: 12px 0; }

    .mca-posts-grid { grid-template-columns: 1fr; }

    .mca-entry-header { padding: 20px 20px 0; }
    .mca-entry-content { padding: 20px; }
    .mca-entry-footer { padding: 0 20px 20px; }
    .mca-entry-title { font-size: 1.5rem; }

    .mca-post-navigation .nav-links { flex-direction: column; }

    .mca-footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .mca-footer-top { padding: 32px 0 24px; }
    .mca-footer-grid { padding: 0 16px; }
    .mca-footer-bottom-inner { flex-direction: column; text-align: center; gap: 10px; }
    .mca-footer-legal { justify-content: center; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
    h1 { font-size: 1.7rem; }
    h2 { font-size: 1.3rem; }
    .mca-page-title { font-size: 1.5rem; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* ============================================================
   WORDPRESS CORE CLASSES
   ============================================================ */
.alignleft  { float: left; margin-right: 20px; margin-bottom: 10px; }
.alignright { float: right; margin-left: 20px; margin-bottom: 10px; }
.aligncenter { display: block; margin: 0 auto 1em; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .82rem; color: var(--text-light); text-align: center; margin-top: 4px; }
.sticky { /* WP sticky post styling */ }
.bypostauthor { /* WP bypostauthor */ }

/* ============================================================
   HEADER SHRINK ON SCROLL
   ============================================================ */
.mca-header-shrunk {
    height: 58px;
    box-shadow: 0 3px 16px rgba(0,0,0,.15);
}
.mca-header-shrunk .mca-default-logo,
.mca-header-shrunk .custom-logo { height: 38px; }
.mca-header-shrunk .mca-site-tagline { display: none; }

/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */
.mca-back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    border: none;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(139,26,26,.4);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .3s, transform .3s;
    z-index: 900;
    line-height: 1;
}
.mca-back-to-top.mca-visible { opacity: 1; transform: translateY(0); }
.mca-back-to-top:hover { background: var(--red-light); }

/* ============================================================
   SIDEBAR SUBMENU TOGGLE (mobile)
   ============================================================ */
.mca-submenu-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px 8px;
    margin-left: 4px;
    border-radius: 4px;
}
.mca-submenu-toggle:hover { background: var(--gold-pale); color: var(--red-dark); }

/* ============================================================
   FRONT PAGE STYLES
   ============================================================ */
.mca-hero-banner {
    background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 40%, var(--green) 100%);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    margin-bottom: 28px;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    overflow: hidden;
    position: relative;
}
.mca-hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.mca-hero-content { position: relative; z-index: 1; flex: 1; }
.mca-hero-badge {
    display: inline-block;
    background: rgba(200,150,42,.3);
    border: 1px solid var(--gold);
    color: var(--gold-light);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.mca-hero-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--white);
    margin-bottom: 12px;
    font-family: var(--font-head);
}
.mca-hero-desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,.85);
    margin-bottom: 24px;
    max-width: 480px;
}
.mca-hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.mca-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 22px;
    border-radius: 50px;
    font-weight: 800;
    font-size: .9rem;
    transition: transform .15s, box-shadow .15s;
}
.mca-hero-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.mca-hero-btn-green { background: var(--green); color: var(--white) !important; }
.mca-hero-btn-red { background: rgba(255,255,255,.15); color: var(--white) !important; border: 2px solid rgba(255,255,255,.5); }
.mca-hero-btn-gold { background: var(--gold); color: #3a2800 !important; }

.mca-hero-graphic {
    font-size: 72px;
    letter-spacing: 8px;
    opacity: .7;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,.4));
}

/* Features strip */
.mca-features-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
.mca-feature-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: var(--shadow);
    transition: transform .2s;
}
.mca-feature-item:hover { transform: translateY(-3px); }
.mca-feature-icon { font-size: 2rem; flex-shrink: 0; }
.mca-feature-text { display: flex; flex-direction: column; gap: 3px; }
.mca-feature-text strong { font-size: .9rem; color: var(--red-dark); display: block; }
.mca-feature-text span { font-size: .78rem; color: var(--text-muted); }

/* Home section */
.mca-home-section { margin-top: 36px; }
.mca-section-title {
    font-size: 1.6rem;
    color: var(--red-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--gold);
}
.mca-view-all-wrap { text-align: center; margin-top: 24px; }

.mca-home-content {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 36px;
    box-shadow: var(--shadow);
    margin-bottom: 32px;
}

@media (max-width: 900px) {
    .mca-features-strip { grid-template-columns: 1fr 1fr; }
    .mca-hero-graphic { font-size: 48px; }
}

@media (max-width: 600px) {
    .mca-hero-banner { flex-direction: column; padding: 28px 20px; }
    .mca-hero-graphic { display: none; }
    .mca-features-strip { grid-template-columns: 1fr; }
    .mca-hero-buttons { flex-direction: column; }
    .mca-hero-btn { justify-content: center; }
    .mca-home-content { padding: 20px; }
}

/* ============================================================
   GUTENBERG BLOCK STYLES
   ============================================================ */
.wp-block-separator { border-color: var(--border); }
.wp-block-quote {
    border-left-color: var(--gold);
    background: var(--gold-pale);
    padding: 16px 20px;
    border-radius: 0 var(--radius) var(--radius) 0;
}
.wp-block-button__link {
    background: var(--red);
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: 700;
}
.wp-block-button__link:hover { background: var(--red-light); }
