:root {
    --cw-navy: #0d2b6e;
    --cw-navy-dark: #071a45;
    --cw-navy-light: #1a3a8f;
    --cw-red: #e31e24;
    --cw-red-dark: #c41920;
    --cw-blue-accent: #2196f3;
    --cw-white: #ffffff;
    --cw-gray-50: #f8fafc;
    --cw-gray-100: #f1f5f9;
    --cw-gray-200: #e2e8f0;
    --cw-gray-500: #64748b;
    --cw-gray-700: #334155;
    --cw-gray-900: #0f172a;
    --cw-shadow: 0 4px 24px rgba(13, 43, 110, 0.08);
    --cw-radius: 12px;
    --cw-font: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html {
    height: 100%;
}

.site-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: var(--cw-font);
    color: var(--cw-gray-900);
    background: var(--cw-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.site-main {
    flex: 1 0 auto;
    width: 100%;
    position: relative;
    z-index: 0;
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }
a:hover { color: var(--cw-red); }

/* Topbar */
.topbar {
    background: var(--cw-navy-dark);
    color: rgba(255,255,255,0.85);
    font-size: 0.82rem;
}
.topbar .tagline { font-style: italic; color: rgba(255,255,255,0.7); }
.topbar .social-links a {
    color: rgba(255,255,255,0.7);
    margin-left: 0.5rem;
    font-size: 0.95rem;
}
.topbar .social-links a:hover { color: var(--cw-red); }

/* Navbar */
.navbar-cw {
    background: var(--cw-white);
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    padding: 0.35rem 0;
}
.navbar-cw .navbar-brand {
    text-decoration: none;
    margin-right: 1.5rem;
}
.site-logo {
    display: block;
    width: auto;
    max-width: 250px;
    max-height: 52px;
    object-fit: contain;
}
.navbar-cw .nav-link {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--cw-gray-700);
    padding: 0.5rem 0.75rem !important;
    border-radius: 8px;
}
.navbar-cw .nav-link:hover,
.navbar-cw .nav-link.active {
    color: var(--cw-navy);
    background: var(--cw-gray-100);
}
.navbar-toggler { border-color: var(--cw-gray-200); }

/* Buttons */
.btn-cw-primary {
    background: var(--cw-red);
    border-color: var(--cw-red);
    color: white;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s;
}
.btn-cw-primary:hover {
    background: var(--cw-red-dark);
    border-color: var(--cw-red-dark);
    color: white;
}
.btn-cw-outline {
    border: 2px solid var(--cw-navy);
    color: var(--cw-navy);
    font-weight: 600;
    border-radius: 8px;
}
.btn-cw-outline:hover {
    background: var(--cw-navy);
    color: white;
}
.btn-subscribe {
    background: var(--cw-red);
    color: white;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 6px;
}

/* Hero */
.hero-section {
    background: linear-gradient(135deg, var(--cw-gray-50) 0%, #e8eef8 50%, var(--cw-white) 100%);
    position: relative;
    overflow: hidden;
    padding: 3rem 0 0;
}
.hero-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,80 L50,70 L100,75 L150,60 L200,70 L250,55 L300,65 L350,50 L400,60 L450,45 L500,55 L550,40 L600,50 L650,35 L700,45 L750,30 L800,40 L850,25 L900,35 L950,20 L1000,30 L1050,15 L1100,25 L1150,10 L1200,20 L1200,120 L0,120 Z' fill='%23cbd5e1' opacity='0.3'/%3E%3C/svg%3E") repeat-x bottom;
    background-size: 1200px 120px;
    opacity: 0.5;
}
.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--cw-navy);
    margin-bottom: 1rem;
}
.hero-title .highlight-blue { color: var(--cw-navy-light); }
.hero-title .highlight-red { color: var(--cw-red); }
.hero-subtitle {
    font-size: 1.1rem;
    color: var(--cw-gray-500);
    margin-bottom: 1.5rem;
}
.hero-image-wrap {
    position: relative;
    display: flex;
    justify-content: center;
}
.hero-image-circle {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cw-navy) 0%, var(--cw-navy-light) 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(13, 43, 110, 0.25);
    border: 6px solid white;
}
.hero-image-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}
.hero-stat strong {
    display: block;
    font-size: 1.5rem;
    color: var(--cw-navy);
    font-weight: 800;
}
.hero-stat span { font-size: 0.82rem; color: var(--cw-gray-500); }

/* Service sidebar panel */
.services-panel {
    background: var(--cw-navy);
    border-radius: var(--cw-radius);
    padding: 1.25rem;
    color: white;
    height: 100%;
}
.services-panel h5 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.service-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem;
    border-radius: 10px;
    margin-bottom: 0.35rem;
    transition: all 0.2s;
    color: white;
}
.service-item:hover {
    background: rgba(255,255,255,0.12);
    color: white;
}
.service-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.service-item span {
    font-weight: 600;
    font-size: 0.88rem;
    line-height: 1.3;
}

/* Feature bar */
.feature-bar {
    background: white;
    border-top: 1px solid var(--cw-gray-200);
    border-bottom: 1px solid var(--cw-gray-200);
    padding: 1.5rem 0;
    margin-top: 2rem;
}
.feature-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
}
.feature-box .icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}
.feature-box .icon-wrap.red { background: rgba(227,30,36,0.1); color: var(--cw-red); }
.feature-box .icon-wrap.blue { background: rgba(13,43,110,0.1); color: var(--cw-navy); }
.feature-box h6 { margin: 0; font-weight: 700; font-size: 0.85rem; color: var(--cw-navy); }
.feature-box p { margin: 0; font-size: 0.78rem; color: var(--cw-gray-500); }

/* Welcome content */
.welcome-section {
    padding-bottom: 2rem;
}
.welcome-card {
    background: white;
    border: 1px solid var(--cw-gray-200);
    border-radius: var(--cw-radius);
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(13, 43, 110, 0.06);
}
.eyebrow {
    display: inline-block;
    color: var(--cw-red);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 0.65rem;
    text-transform: uppercase;
}
.welcome-highlights {
    display: grid;
    gap: 0.75rem;
}
.welcome-highlights a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--cw-gray-50);
    border: 1px solid var(--cw-gray-200);
    border-radius: 10px;
    color: var(--cw-navy);
    font-weight: 700;
}
.welcome-highlights a:hover {
    border-color: var(--cw-red);
    color: var(--cw-red);
    background: white;
}
.welcome-highlights i {
    color: var(--cw-red);
    width: 18px;
}

/* Section */
.section {
    padding: 4rem 0;
    position: relative;
    clear: both;
}
.section > .container > .row {
    align-items: flex-start;
}
.section-gray { background: var(--cw-gray-50); }
.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--cw-navy);
    margin-bottom: 0.5rem;
}
.section-subtitle {
    color: var(--cw-gray-500);
    margin-bottom: 2rem;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Cards */
.card-cw {
    background: white;
    border-radius: var(--cw-radius);
    border: 1px solid var(--cw-gray-200);
    overflow: hidden;
    transition: box-shadow 0.25s, border-color 0.25s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.card-cw.card-cw-flat {
    height: auto;
}
.card-cw:hover {
    box-shadow: var(--cw-shadow);
    border-color: transparent;
}
.card-cw-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.card-cw .category-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
    width: fit-content;
}
.card-cw h3, .card-cw h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--cw-gray-900);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}
.card-cw h3 a:hover, .card-cw h4 a:hover { color: var(--cw-red); }
.card-cw .excerpt {
    font-size: 0.88rem;
    color: var(--cw-gray-500);
    flex: 1;
}
.card-cw .meta {
    font-size: 0.78rem;
    color: var(--cw-gray-500);
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--cw-gray-100);
}

/* Job card */
.job-card {
    background: white;
    border: 1px solid var(--cw-gray-200);
    border-radius: var(--cw-radius);
    padding: 1.25rem;
    transition: all 0.25s;
    border-left: 4px solid var(--cw-red);
}
.job-card:hover {
    box-shadow: var(--cw-shadow);
}
.job-card .org { font-size: 0.82rem; color: var(--cw-navy); font-weight: 600; }
.job-card h4 { font-size: 1rem; font-weight: 700; margin: 0.35rem 0 0.75rem; }
.job-card .job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--cw-gray-500);
}
.job-card .job-meta i { color: var(--cw-red); margin-right: 0.25rem; }

/* Scholarship card */
.scholarship-card {
    background: white;
    border-radius: var(--cw-radius);
    border: 1px solid var(--cw-gray-200);
    padding: 1.25rem;
    height: 100%;
    transition: all 0.25s;
    border-top: 3px solid var(--cw-navy);
}
.scholarship-card:hover { box-shadow: var(--cw-shadow); }
.scholarship-card .amount {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--cw-red);
    margin: 0.5rem 0;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--cw-navy) 0%, var(--cw-navy-light) 100%);
    border-radius: var(--cw-radius);
    padding: 2.5rem;
    color: white;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.cta-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}
.cta-banner > * {
    position: relative;
    z-index: 1;
}
.cta-banner h3 { font-weight: 800; margin-bottom: 0.75rem; }
.cta-banner p { opacity: 0.85; margin-bottom: 1.25rem; }
.cta-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Why choose us */
.why-card {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: var(--cw-radius);
    border: 1px solid var(--cw-gray-200);
    height: 100%;
    transition: all 0.25s;
}
.why-card:hover { box-shadow: var(--cw-shadow); }
.why-card .why-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cw-navy), var(--cw-navy-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}
.why-card h5 { font-weight: 700; color: var(--cw-navy); font-size: 1rem; }
.why-card p { font-size: 0.85rem; color: var(--cw-gray-500); margin: 0; }

/* Page header */
.page-header {
    background: linear-gradient(135deg, var(--cw-navy) 0%, var(--cw-navy-light) 100%);
    color: white;
    padding: 3rem 0;
}
.page-header h1 { font-weight: 800; font-size: 2rem; margin-bottom: 0.5rem; }
.page-header p { opacity: 0.85; margin: 0; }
.breadcrumb-cw {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    opacity: 0.7;
}
.breadcrumb-cw a { color: white; }
.breadcrumb-cw a:hover { color: var(--cw-red); }

/* Article detail */
.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--cw-gray-700);
}
.article-content h2, .article-content h3, .article-content h4 { color: var(--cw-navy); font-weight: 700; margin-top: 1.5rem; margin-bottom: 0.75rem; }
.article-content p { margin-bottom: 1rem; }
.article-content ul, .article-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.article-content li { margin-bottom: 0.35rem; }
.article-content a { color: var(--cw-navy-light); text-decoration: underline; }
.article-content a:hover { color: var(--cw-red); }
.article-content table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.article-content table th, .article-content table td { border: 1px solid var(--cw-gray-200); padding: 0.5rem 0.75rem; }
.article-content table th { background: var(--cw-gray-50); }
.article-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 0.5rem 0; }
.article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--cw-gray-200);
    margin-bottom: 1.5rem;
    font-size: 0.88rem;
    color: var(--cw-gray-500);
}
.sidebar-widget {
    background: white;
    border: 1px solid var(--cw-gray-200);
    border-radius: var(--cw-radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}
.sidebar-widget h5 {
    font-weight: 700;
    color: var(--cw-navy);
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--cw-red);
}
.sidebar-link {
    display: block;
    padding: 0.5rem 0;
    font-size: 0.88rem;
    color: var(--cw-gray-700);
    border-bottom: 1px solid var(--cw-gray-100);
}
.sidebar-link:hover { color: var(--cw-red); }

/* Page sidebar layout */
.page-sidebar {
    position: relative;
    z-index: 1;
}
@media (min-width: 992px) {
    .page-sidebar {
        position: sticky;
        top: 1rem;
        align-self: flex-start;
    }
}

/* Contact page */
.branch-card {
    background: white;
    border: 1px solid var(--cw-gray-200);
    border-radius: var(--cw-radius);
    border-top: 3px solid var(--cw-navy);
    padding: 1.25rem;
}
.branch-card strong {
    color: var(--cw-navy);
}

/* Contact form */
.form-control:focus {
    border-color: var(--cw-navy-light);
    box-shadow: 0 0 0 0.2rem rgba(13, 43, 110, 0.15);
}

/* Footer */
.site-footer {
    flex-shrink: 0;
    width: 100%;
    clear: both;
    position: relative;
    z-index: 2;
}
.footer-main {
    background: var(--cw-navy-dark);
    color: rgba(255,255,255,0.85);
    padding: 3rem 0 2rem;
}
.footer-brand {
    position: relative;
}
.footer-logo {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--cw-navy-light) 0%, var(--cw-blue-accent) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
}
.footer-text {
    color: rgba(255,255,255,0.7);
    font-size: 0.88rem;
    margin-bottom: 0;
}
.youtube-cta {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85);
    font-size: 0.88rem;
}
.youtube-cta .btn-subscribe {
    flex-shrink: 0;
}
.footer-main h5, .footer-heading {
    color: white;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.88rem;
}
.footer-links a:hover { color: var(--cw-red); }
.footer-social a {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    margin-right: 0.5rem;
    font-size: 0.9rem;
}
.footer-social a:hover { background: var(--cw-red); color: white; }
.footer-bottom {
    background: var(--cw-navy);
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}
.italic-tagline { font-style: italic; }
.newsletter-form .form-control {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
}
.newsletter-form .form-control::placeholder { color: rgba(255,255,255,0.5); }

/* Pagination */
.pagination .page-link {
    color: var(--cw-navy);
    border-color: var(--cw-gray-200);
}
.pagination .page-item.active .page-link {
    background: var(--cw-navy);
    border-color: var(--cw-navy);
}

/* Counselling plans */
.plan-card {
    border: 2px solid var(--cw-gray-200);
    border-radius: var(--cw-radius);
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: all 0.25s;
    position: relative;
}
.plan-card.featured {
    border-color: var(--cw-red);
}
.plan-card.featured::before {
    content: 'POPULAR';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--cw-red);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 1rem;
    border-radius: 50px;
}
.plan-card:hover { box-shadow: var(--cw-shadow); }
.plan-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--cw-navy);
}
.plan-price .old { font-size: 1rem; text-decoration: line-through; color: var(--cw-gray-500); font-weight: 400; }
.plan-features { list-style: none; padding: 0; text-align: left; margin: 1.5rem 0; }
.plan-features li {
    padding: 0.4rem 0;
    font-size: 0.88rem;
    color: var(--cw-gray-700);
}
.plan-features li i { color: var(--cw-red); margin-right: 0.5rem; }

@media (max-width: 991px) {
    .hero-image-circle { width: 260px; height: 260px; }
    .services-panel { margin-top: 2rem; }
    .page-sidebar { position: relative; top: auto; }
    .cta-actions { justify-content: flex-start; }
    .site-logo { max-width: 155px; max-height: 48px; }
}

@media (max-width: 576px) {
    .section { padding: 2.5rem 0; }
    .hero-section { padding: 2rem 0 0; }
    .cta-banner { padding: 2rem 1.5rem; }
    .cta-actions .btn { width: 100%; }
    .site-logo { max-width: 135px; max-height: 44px; }
}
