/*
Theme Name: CA Soft
Theme URI: https://www.caringalliance.co.uk
Author: Caring Alliance
Author URI: https://www.caringalliance.co.uk
Description: CA Soft — a clean, soft theme for Caring Alliance matching the original HTML design. Centred sticky navigation, scroll-to-top button, flat full-width layout.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ca-soft
Tags: business, care, health, social-care, responsive, custom-menu, featured-images, threaded-comments, sticky-nav, scroll-top
*/

/* ====== Design Tokens ====== */
:root {
    --brand-blue: #006fb8;
    --brand-dark: #2c2c2c;
    --brand-bg: #5c93c4;
    --text: #333333;
    --border: #e0e0e0;
    --section-light: #f7f9fb;
    --link-hover: #005da3;
}

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

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

body {
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: #fff;
}

a { color: var(--brand-blue); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.5rem; }

/* ====== Container ====== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ====== Header ====== */
.site-header {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.site-logo {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    text-decoration: none;
}

.site-logo .caring {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--brand-blue);
    letter-spacing: -0.5px;
}

.site-logo .alliance {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--brand-dark);
    letter-spacing: -0.5px;
}

.header-contact {
    text-align: right;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.header-contact a { color: #666; font-weight: 600; text-decoration: none; }

/* ====== Sticky Navigation (Centred) ====== */
.main-nav {
    background: var(--brand-dark);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 999;
    transition: box-shadow 0.3s ease;
}

.main-nav.is-stuck {
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.main-nav ul li { position: relative; }

.main-nav ul li a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 14px 22px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.2s ease;
    text-align: center;
}

.main-nav ul li a:hover,
.main-nav ul li.current-menu-item > a,
.main-nav ul li.current_page_item > a {
    background: rgba(255,255,255,0.1);
    text-decoration: none;
}

/* Dropdown */
.main-nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-dark);
    min-width: 220px;
    z-index: 1000;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border-radius: 0 0 8px 8px;
}

.main-nav ul li:hover > ul { display: flex; }

.main-nav ul li ul li a {
    padding: 11px 20px;
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    white-space: nowrap;
}

.main-nav ul li ul li:last-child a { border-bottom: none; }
.main-nav ul li ul li a:hover { background: var(--brand-blue); }

.main-nav .menu-item-has-children > a::after { content: " ▾"; font-size: 0.72rem; opacity: 0.7; }

/* Mobile toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.3rem;
    padding: 14px 20px;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.nav-toggle::before { content: "☰ "; }

/* ====== Hero (Homepage) ====== */
.hero {
    background: linear-gradient(135deg, var(--brand-bg), #4a7db0);
    color: #fff;
    padding: 70px 0;
    text-align: center;
}

.hero h1 { font-size: 2.4rem; margin-bottom: 16px; font-weight: 700; }
.hero p { font-size: 1.15rem; max-width: 700px; margin: 0 auto 28px; opacity: 0.95; }

/* ====== Page Hero (inner pages) ====== */
.page-hero {
    background: linear-gradient(135deg, var(--brand-bg), #4a7db0);
    color: #fff;
    padding: 50px 0;
    text-align: center;
}

.page-hero h1 { font-size: 2.2rem; margin-bottom: 12px; font-weight: 700; }
.page-hero p { font-size: 1.1rem; opacity: 0.95; max-width: 650px; margin: 0 auto; }

/* ====== Buttons ====== */
.btn {
    display: inline-block;
    padding: 13px 32px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.2s, background 0.2s;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary { background: #fff; color: var(--brand-blue); }
.btn-primary:hover { opacity: 0.9; text-decoration: none; }

.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.1); text-decoration: none; }

.btn-solid { background: var(--brand-blue); color: #fff; }
.btn-solid:hover { opacity: 0.9; text-decoration: none; }

.btn-blue-outline { background: transparent; color: var(--brand-blue); border-color: var(--brand-blue); }
.btn-blue-outline:hover { background: var(--brand-blue); color: #fff; text-decoration: none; }

.hero .btn, .page-hero .btn { margin: 0 8px; }

/* ====== Sections ====== */
section { padding: 50px 0; }
.section-light { background: var(--section-light); }

.section-title { font-size: 1.8rem; font-weight: 700; text-align: center; margin-bottom: 12px; color: var(--brand-dark); }
.section-subtitle { text-align: center; font-size: 1.05rem; color: #666; margin-bottom: 36px; }

.intro { text-align: center; max-width: 800px; margin: 0 auto; font-size: 1.05rem; color: #555; }

/* ====== Pillars ====== */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.pillar {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 32px 24px;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
}

.pillar:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); transform: translateY(-3px); }
.pillar h3 { color: var(--brand-blue); font-size: 1.3rem; margin-bottom: 10px; }
.pillar p { color: #666; font-size: 0.95rem; margin-bottom: 14px; }
.pillar a { color: var(--brand-blue); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.pillar a:hover { text-decoration: underline; }

/* ====== Sectors ====== */
.sectors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.sector-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px 16px;
    text-align: center;
}

.sector-card h4 { color: var(--brand-dark); font-size: 1.05rem; margin-bottom: 6px; }
.sector-card p { font-size: 0.85rem; color: #888; }

/* ====== Why Us List ====== */
.why-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    list-style: none;
}

.why-list li { padding: 16px 0 16px 44px; position: relative; }
.why-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 16px;
    width: 28px;
    height: 28px;
    background: var(--brand-blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.why-list strong { display: block; font-size: 1.05rem; color: var(--brand-dark); margin-bottom: 4px; }
.why-list span { font-size: 0.92rem; color: #666; }

/* ====== Membership CTA ====== */
.membership-cta {
    background: var(--brand-blue);
    color: #fff;
    text-align: center;
    padding: 50px 20px;
    border-radius: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.membership-cta h2 { font-size: 1.8rem; margin-bottom: 12px; color: #fff; }
.membership-cta p { font-size: 1rem; opacity: 0.95; margin-bottom: 24px; max-width: 600px; margin-left: auto; margin-right: auto; }
.membership-cta .btn { background: #fff; color: var(--brand-blue); }

/* ====== CTA Section ====== */
.cta-section {
    text-align: center;
    background: var(--brand-blue);
    color: #fff;
    padding: 50px 20px;
    border-radius: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h2 { font-size: 1.6rem; margin-bottom: 12px; color: #fff; }
.cta-section p { opacity: 0.95; margin-bottom: 24px; }
.cta-section .btn { margin: 0 8px; }
.cta-section .btn-solid { background: #fff; color: var(--brand-blue); }
.cta-section .btn-outline { border-color: #fff; color: #fff; }

/* ====== Content Area (pages/posts) ====== */
.content-area { max-width: 800px; margin: 0 auto; padding: 50px 20px; }

.content-area h2 { color: var(--brand-dark); font-size: 1.7rem; margin: 36px 0 14px; font-weight: 700; }
.content-area h2:first-child { margin-top: 0; }
.content-area h3 { color: var(--brand-blue); font-size: 1.2rem; margin: 24px 0 8px; font-weight: 600; }
.content-area p { margin-bottom: 16px; font-size: 1.02rem; color: #555; }
.content-area ul, .content-area ol { margin-bottom: 18px; padding-left: 1.5rem; }
.content-area li { margin-bottom: 8px; color: #555; }
.content-area strong { color: var(--brand-dark); }

.content-area blockquote {
    border-left: 4px solid var(--brand-blue);
    margin: 20px 0;
    padding: 16px 20px;
    background: var(--section-light);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

/* ====== Service Blocks (Provider Services) ====== */
.service-block { margin-bottom: 50px; }
.service-block h2 {
    color: var(--brand-blue);
    font-size: 1.6rem;
    margin-bottom: 10px;
    border-bottom: 3px solid var(--brand-blue);
    padding-bottom: 8px;
    display: inline-block;
}
.service-block .overview { font-size: 1.05rem; color: #555; margin-bottom: 20px; }
.service-block h3 { color: var(--brand-dark); margin: 18px 0 8px; font-size: 1.1rem; }
.service-block ul { list-style: none; padding-left: 0; }
.service-block ul li { padding: 6px 0 6px 28px; position: relative; }
.service-block ul li::before { content: "→"; position: absolute; left: 0; color: var(--brand-blue); font-weight: 700; }

.who-for {
    background: #f0f5fa;
    border-left: 4px solid var(--brand-blue);
    padding: 16px 20px;
    margin-top: 16px;
    border-radius: 0 8px 8px 0;
}
.who-for strong { color: var(--brand-dark); }

/* ====== Training Page ====== */
.table-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table th { background: var(--brand-dark); color: #fff; padding: 12px 14px; text-align: left; font-weight: 600; }
table td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
table tr:nth-child(even) { background: var(--section-light); }
table tr:hover { background: #eef4fa; }

.specialist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.specialist-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
}

.specialist-card h3 { color: var(--brand-blue); font-size: 1.15rem; margin-bottom: 8px; }
.specialist-card p { color: #666; font-size: 0.93rem; }

.provider-training-item { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid #eee; }
.provider-training-item:last-child { border-bottom: none; }
.provider-training-item h3 { color: var(--brand-dark); font-size: 1.2rem; margin-bottom: 6px; }
.provider-training-item p { color: #555; }

.delivery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.delivery-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
}

.delivery-card h4 { color: var(--brand-blue); margin-bottom: 6px; font-size: 1.05rem; }
.delivery-card p { font-size: 0.9rem; color: #666; }

.why-train { list-style: none; max-width: 800px; margin: 0 auto; padding: 0; }
.why-train li { padding: 10px 0 10px 30px; position: relative; }
.why-train li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 10px;
    width: 22px;
    height: 22px;
    background: var(--brand-blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}
.why-train strong { color: var(--brand-dark); }
.why-train span { color: #666; }

/* ====== Membership Page ====== */
.benefits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 800px; margin: 0 auto; }

.benefit-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.benefit-icon {
    min-width: 26px;
    height: 26px;
    background: var(--brand-blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.benefit-text { font-size: 0.95rem; color: #555; }
.benefit-text strong { color: var(--brand-dark); }

.price-card {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    border: 2px solid var(--brand-blue);
    border-radius: 14px;
    padding: 40px 30px;
    text-align: center;
}

.price-card h3 { font-size: 1.3rem; color: var(--brand-dark); margin-bottom: 8px; }
.price-card .price { font-size: 3rem; font-weight: 700; color: var(--brand-blue); margin: 10px 0; }
.price-card .price span { font-size: 1.1rem; font-weight: 400; color: #888; }
.price-card .price-note { font-size: 0.9rem; color: #888; margin-bottom: 24px; }

/* ====== About Us Page ====== */
.content-block { max-width: 800px; margin: 0 auto; }
.content-block p { margin-bottom: 16px; font-size: 1.05rem; color: #555; }

.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; margin: 0 auto; }

.value-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
}

.value-card h3 { color: var(--brand-blue); font-size: 1.2rem; margin-bottom: 8px; }
.value-card p { color: #666; font-size: 0.95rem; }

.what-list { list-style: none; max-width: 800px; margin: 0 auto; padding: 0; }
.what-list li { padding: 10px 0 10px 30px; position: relative; }
.what-list li::before { content: "→"; position: absolute; left: 0; color: var(--brand-blue); font-weight: 700; }
.what-list strong { color: var(--brand-dark); }
.what-list span { color: #666; }

.exp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 900px; margin: 0 auto; }

.exp-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px 12px;
    text-align: center;
}

.exp-card h4 { color: var(--brand-dark); font-size: 1rem; }
.exp-card p { font-size: 0.83rem; color: #888; margin-top: 4px; }

.approach-quote {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--brand-blue);
    text-align: center;
    max-width: 700px;
    margin: 20px auto 0;
}

.contact-block { text-align: center; max-width: 700px; margin: 0 auto; }
.contact-block p { margin-bottom: 6px; color: #555; font-size: 1rem; }
.contact-block strong { color: var(--brand-dark); }
.contact-block .btn { margin-top: 20px; margin-left: 8px; }

/* ====== Contact Page ====== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 900px; margin: 0 auto; }

.contact-info h3 { color: var(--brand-blue); font-size: 1.2rem; margin-bottom: 14px; }
.contact-info p { margin-bottom: 8px; font-size: 1rem; color: #555; }
.contact-info strong { color: var(--brand-dark); }
.contact-info a { color: var(--brand-blue); text-decoration: none; }
.contact-info .hours-note { margin-top: 14px; font-size: 0.9rem; color: #888; }

.contact-form {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 28px;
}

.contact-form label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--brand-dark); }
.contact-form select, .contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
    margin-bottom: 16px;
    font-family: inherit;
}

.contact-form textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.85rem; color: #888; margin-top: 10px; }

/* ====== Blog / Archive ====== */
.article-list { max-width: 800px; margin: 0 auto; }

.article-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 26px 24px;
    margin-bottom: 22px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.article-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); transform: translateY(-2px); }
.article-card h2 { font-size: 1.3rem; margin-bottom: 8px; }
.article-card h2 a { color: var(--brand-dark); text-decoration: none; }
.article-card h2 a:hover { color: var(--brand-blue); }
.article-card .post-meta { font-size: 0.83rem; color: #999; margin-bottom: 10px; }
.article-card .excerpt { color: #666; font-size: 0.93rem; margin-top: 8px; }
.article-card .read-more { color: var(--brand-blue); font-weight: 600; font-size: 0.88rem; text-decoration: none; margin-top: 12px; display: inline-block; }

.tags-row, .post-tags { margin: 10px 0 16px; }
.tag-pill {
    display: inline-block;
    background: #eef4fa;
    color: var(--brand-blue);
    font-size: 0.78rem;
    padding: 3px 10px;
    border-radius: 20px;
    margin-right: 6px;
}

.back-link { margin-bottom: 20px; }
.back-link a { color: var(--brand-blue); text-decoration: none; font-weight: 600; font-size: 0.88rem; }

/* ====== Comments ====== */
.comments-area { margin-top: 40px; }
.comments-area h2 { font-size: 1.4rem; margin-bottom: 20px; color: var(--brand-dark); }
.comment-list { list-style: none; padding: 0; }
.comment { padding: 16px 0; border-bottom: 1px solid var(--border); }
.comment .children { list-style: none; padding-left: 24px; }
.comment-form input, .comment-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 12px;
    font-family: inherit;
}
.comment-form .submit { background: var(--brand-blue); color: #fff; padding: 12px 28px; border: none; border-radius: 6px; cursor: pointer; font-weight: 600; }

/* ====== Pagination ====== */
.pagination { text-align: center; padding: 30px 0; }
.pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--brand-blue);
    border: 1px solid var(--border);
    font-size: 0.9rem;
}
.pagination .page-numbers.current { background: var(--brand-blue); color: #fff; border-color: var(--brand-blue); }
.pagination .page-numbers:hover { background: var(--section-light); text-decoration: none; }

/* ====== 404 ====== */
.error-404 { text-align: center; padding: 60px 20px; }
.error-404 h1 { font-size: 3rem; color: var(--brand-blue); margin-bottom: 12px; }
.error-404 p { font-size: 1.1rem; color: #666; margin-bottom: 24px; }

/* ====== Footer ====== */
.site-footer { background: var(--brand-dark); color: #aaa; }

.footer-widgets {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-widget h3 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 14px;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255,255,255,0.15);
}

.footer-widget p, .footer-widget li { font-size: 0.88rem; color: #aaa; line-height: 1.8; }
.footer-widget ul { list-style: none; padding: 0; }
.footer-widget a { color: #bbb; text-decoration: none; }
.footer-widget a:hover { color: #fff; text-decoration: underline; }

.footer-links-bar { background: rgba(0,0,0,0.25); padding: 18px 20px; text-align: center; }
.footer-links-bar ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; max-width: 1100px; margin: 0 auto; }
.footer-links-bar ul li { position: relative; }
.footer-links-bar ul li::after { content: "·"; color: #555; margin: 0 14px; font-size: 1rem; }
.footer-links-bar ul li:last-child::after { display: none; }
.footer-links-bar ul li a { color: #ccc; text-decoration: none; font-size: 0.87rem; font-weight: 500; }
.footer-links-bar ul li a:hover { color: #fff; text-decoration: underline; }

.footer-copyright { padding: 14px 20px; text-align: center; font-size: 0.82rem; color: #777; border-top: 1px solid rgba(255,255,255,0.06); }

/* ====== Scroll-to-Top Button ====== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--brand-blue);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s;
    z-index: 998;
    box-shadow: 0 3px 12px rgba(0,0,0,0.25);
}

.scroll-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--link-hover); }
.scroll-top:focus-visible { outline: 3px solid rgba(0,111,184,0.4); outline-offset: 2px; }

/* ====== Legal / Privacy / Terms Pages ====== */
.legal-content { max-width: 850px; margin: 0 auto; }
.legal-content p { margin-bottom: 16px; font-size: 1rem; color: #555; line-height: 1.7; }
.legal-content h2 { color: var(--brand-blue); font-size: 1.4rem; font-weight: 700; margin: 36px 0 14px; padding-bottom: 6px; border-bottom: 2px solid var(--brand-blue); }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 { color: var(--brand-dark); font-size: 1.1rem; font-weight: 600; margin: 24px 0 8px; }
.legal-content ul { margin-bottom: 18px; padding-left: 1.5rem; }
.legal-content ul li { margin-bottom: 6px; color: #555; font-size: 0.98rem; }
.legal-content ul li strong { color: var(--brand-dark); }
.legal-content a { color: var(--brand-blue); text-decoration: underline; }

.legal-updated { background: #f0f5fa; border-left: 4px solid var(--brand-blue); padding: 12px 18px; border-radius: 0 6px 6px 0; margin-bottom: 30px; font-size: 0.93rem; color: #555; }

.legal-contact-box { background: #f7f9fb; border: 1px solid var(--border); border-radius: 10px; padding: 20px 24px; margin: 16px 0 20px; }
.legal-contact-box p { margin: 0; font-size: 0.95rem; color: #555; }
.legal-contact-box strong { color: var(--brand-dark); }
.legal-contact-box a { color: var(--brand-blue); text-decoration: none; }

/* ====== Responsive ====== */
@media (max-width: 992px) {
    .pillars { grid-template-columns: 1fr 1fr; }
    .sectors { grid-template-columns: 1fr 1fr; }
    .specialist-grid { grid-template-columns: 1fr; }
    .delivery-grid { grid-template-columns: 1fr; }
    .footer-widgets { grid-template-columns: 1fr 1fr; }
    .benefits-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }
    .exp-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .header-inner { flex-direction: column; align-items: flex-start; }
    .header-contact { text-align: left; margin-top: 10px; }

    .nav-toggle { display: block; }
    .main-nav .nav-inner > ul { display: none; flex-direction: column; width: 100%; }
    .main-nav .nav-inner > ul.show { display: flex; }
    .main-nav ul li { width: 100%; }
    .main-nav ul li a { text-align: center; }
    .main-nav ul li ul { position: static; display: block; box-shadow: none; border-radius: 0; padding-left: 20px; transform: none; left: auto; }
    .main-nav .menu-item-has-children > a::after { content: ""; }

    .pillars, .sectors { grid-template-columns: 1fr; }
    .why-list { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-widgets { grid-template-columns: 1fr; }
    .footer-links-bar ul { flex-direction: column; gap: 8px; }
    .footer-links-bar ul li::after { display: none; }
    .values-grid, .exp-grid { grid-template-columns: 1fr; }

    .hero h1 { font-size: 1.8rem; }
    .page-hero h1 { font-size: 1.6rem; }

    .scroll-top { bottom: 20px; right: 20px; width: 42px; height: 42px; font-size: 1.2rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.5rem; }
    .hero p { font-size: 1rem; }
    .btn { padding: 11px 24px; font-size: 0.88rem; }
}

/* ====== Course Category Grid (Training Page) ====== */
.course-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 20px;
}

.course-category-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 28px 24px;
    text-decoration: none;
    color: var(--text);
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.course-category-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateY(-3px);
    border-color: var(--brand-blue);
    text-decoration: none;
}

.course-category-card h3 {
    color: var(--brand-blue);
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.course-category-card p {
    font-size: 0.93rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.course-category-link {
    color: var(--brand-blue);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
}

.course-category-card:hover .course-category-link {
    text-decoration: underline;
}

@media (max-width: 992px) {
    .course-category-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .course-category-grid { grid-template-columns: 1fr; }
}
