/* ModernSchools — Public marketing & legal pages brand theme */
:root {
    --ms-blue: #0054A6;
    --ms-blue-dark: #003D7A;
    --ms-green: #39B54A;
    --ms-green-dark: #2E9E3F;
    --ms-text: #333333;
    --ms-text-muted: #5a6072;
    --ms-bg-soft: #F4F7F6;
    --ms-gradient: linear-gradient(135deg, #39B54A 0%, #0054A6 100%);
    --ms-gradient-hero: linear-gradient(135deg, #39B54A 0%, #0054A6 60%, #003D7A 100%);
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
    color: var(--ms-text);
    background: #fff;
    margin: 0;
}

a { text-decoration: none; }
img { max-width: 100%; }

/* ─── Navbar ───────────────────────────────────────────────────── */
.ms-navbar {
    background: #fff;
    padding: 0.6rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0, 84, 166, 0.08);
    border-bottom: 1px solid rgba(0, 84, 166, 0.06);
}

.ms-navbar .navbar-brand {
    display: flex;
    align-items: center;
    padding: 0.15rem 0;
    margin-right: 0.5rem;
}

/* ─── Brand lockup (icon + ModernSchools.in wordmark) ──────────── */
.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    line-height: 1;
}

.brand-lockup-icon {
    height: 44px;
    width: auto;
    max-width: none;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.brand-lockup-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding-top: 1px;
}

.brand-lockup-name {
    font-size: 1.28rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
    line-height: 1;
}

.brand-word-modern { color: var(--ms-blue); }
.brand-word-schools { color: var(--ms-green); }
.brand-word-tld { color: var(--ms-blue); font-size: 0.92em; }

.brand-lockup-line {
    display: block;
    height: 2px;
    width: 100%;
    border-radius: 1px;
    background: linear-gradient(90deg, var(--ms-blue) 0%, var(--ms-blue) 42%, var(--ms-green) 58%, var(--ms-green) 100%);
}

/* Nav variant — vertically center text with icon */
.brand-lockup--nav {
    align-items: center;
}

.brand-lockup--nav .brand-lockup-icon {
    height: 46px;
}

.brand-lockup--nav .brand-lockup-name {
    font-size: 1.32rem;
}

/* Footer variant — light text on dark background */
.brand-lockup--footer .brand-word-modern { color: #7ec8ff; }
.brand-lockup--footer .brand-word-schools { color: #7FD88F; }
.brand-lockup--footer .brand-word-tld { color: #7ec8ff; }
.brand-lockup--footer .brand-lockup-line {
    background: linear-gradient(90deg, #7ec8ff 0%, #7ec8ff 42%, #7FD88F 58%, #7FD88F 100%);
}
.brand-lockup--footer .brand-lockup-icon {
    height: 42px;
}

.ms-footer .footer-brand a {
    display: inline-flex;
    text-decoration: none;
}

.ms-footer .footer-brand .brand-lockup-icon {
    height: 42px;
    width: auto;
    max-width: none;
    object-fit: contain;
    flex-shrink: 0;
}

@media (max-width: 575.98px) {
    .brand-lockup--nav .brand-lockup-name { font-size: 1.05rem; }
    .brand-lockup--nav .brand-lockup-icon { height: 38px; }
    .brand-lockup--nav { gap: 0.45rem; }
}

.ms-navbar .nav-link {
    color: var(--ms-blue) !important;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem !important;
    transition: color 0.2s;
}

.ms-navbar .nav-link:hover { color: var(--ms-green) !important; }

.ms-navbar .btn-nav-demo {
    background: var(--ms-green);
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.4rem 1.2rem;
    border-radius: 6px;
    border: none;
    transition: box-shadow 0.2s, transform 0.15s, background 0.2s;
}

.ms-navbar .btn-nav-demo:hover {
    background: var(--ms-green-dark);
    box-shadow: 0 4px 12px rgba(57, 181, 74, 0.35);
    transform: translateY(-1px);
    color: #fff;
}

.ms-navbar .btn-nav-signup {
    background: transparent;
    color: var(--ms-blue) !important;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.4rem 1.1rem;
    border-radius: 6px;
    border: 1.5px solid var(--ms-blue);
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.ms-navbar .btn-nav-signup:hover {
    border-color: var(--ms-green);
    background: rgba(57, 181, 74, 0.08);
    color: var(--ms-green) !important;
}

.ms-navbar .btn-nav-login {
    color: var(--ms-blue) !important;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem !important;
}

.navbar-toggler { border-color: rgba(0, 84, 166, 0.25); }

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280%2C84%2C166%2C0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ─── Legal / content pages ────────────────────────────────────── */
.page-header {
    background: var(--ms-gradient-hero);
    color: white;
    padding: 60px 0 40px;
}

.page-header h1 { font-size: 2.5rem; font-weight: 700; }

.content-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.content-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ms-blue);
    border-left: 4px solid var(--ms-green);
    padding-left: 1rem;
    margin: 2rem 0 1rem;
}

.content-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ms-blue-dark);
    margin: 1.5rem 0 0.75rem;
}

.content-card p, .content-card li {
    color: var(--ms-text-muted);
    line-height: 1.8;
}

.last-updated {
    background: #e8f8ea;
    border: 1px solid #a8ddb0;
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--ms-green-dark);
    font-size: 0.9rem;
}

.highlight-box {
    background: #e8f4fd;
    border-left: 4px solid var(--ms-blue);
    border-radius: 0 8px 8px 0;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
}

.warning-box {
    background: #fff8e6;
    border-left: 4px solid #f5a623;
    border-radius: 0 8px 8px 0;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
}

.problem-card, .solution-card {
    background: #fff;
    border: 1px solid #e4e8f0;
    border-radius: 14px;
    padding: 1.75rem;
    height: 100%;
    box-shadow: 0 4px 16px rgba(0, 84, 166, 0.06);
    transition: box-shadow 0.2s, transform 0.2s;
}

.problem-card:hover, .solution-card:hover {
    box-shadow: 0 8px 28px rgba(0, 84, 166, 0.12);
    transform: translateY(-2px);
}

.problem-card .card-icon, .solution-card .card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #fff;
}

.problem-card .card-icon { background: var(--ms-blue); }
.solution-card .card-icon { background: var(--ms-green); }

.problem-card h3, .solution-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ms-blue);
    margin: 0 0 0.75rem;
    border: none;
    padding: 0;
}

.cta-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--ms-green);
    color: #fff;
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    border-radius: 6px;
    transition: background 0.2s, transform 0.15s;
}

.cta-inline:hover {
    background: var(--ms-green-dark);
    color: #fff;
    transform: translateY(-1px);
}

/* ─── Footer ───────────────────────────────────────────────────── */
.ms-footer {
    background: #003366;
    color: rgba(255, 255, 255, 0.75);
    padding: 2.5rem 0 1.5rem;
}

.ms-footer .footer-brand {
    margin-bottom: 0.5rem;
}

.ms-footer .footer-desc {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
}

.ms-footer a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;
}

.ms-footer a:hover { color: var(--ms-green); }

.ms-footer .footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 1.5rem 0 1rem;
}

.ms-footer .footer-bottom {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
}

.ms-footer .footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.82rem;
}

.ms-footer .footer-legal-links a {
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
}

.ms-footer .footer-legal-links a:hover {
    color: var(--ms-green);
}

.ms-footer .footer-legal-links .footer-legal-sep {
    color: rgba(255, 255, 255, 0.25);
    user-select: none;
}

.ms-footer .footer-address {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.5rem;
}

.ms-footer h6 {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ─── Tables (legal pages) ─────────────────────────────────────── */
.content-card table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.content-card th {
    background: var(--ms-blue);
    color: white;
    padding: 0.75rem 1rem;
    text-align: left;
}
.content-card td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e9ecef;
}
.content-card tr:nth-child(even) td { background: var(--ms-bg-soft); }

/* ─── Shared section typography (Home + solution landings) ─────── */
.section-tag {
    display: inline-block;
    background: #e8f4fd;
    color: var(--ms-blue);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--ms-blue);
    line-height: 1.25;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--ms-text-muted);
    max-width: 560px;
    line-height: 1.65;
    margin-bottom: 1rem;
}

/* ─── Hero / CTA buttons (Home + solution landings) ────────────── */
.btn-hero-primary {
    background: var(--ms-green);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    border: none;
    transition: box-shadow 0.2s, transform 0.15s, background 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
}

.btn-hero-primary:hover {
    background: var(--ms-green-dark);
    box-shadow: 0 6px 20px rgba(57, 181, 74, 0.4);
    transform: translateY(-2px);
    color: #fff;
}

.btn-hero-secondary {
    background: transparent;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    transition: border-color 0.2s, background 0.2s;
    display: inline-flex;
    align-items: center;
}

.btn-hero-secondary:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-cta-white {
    background: #fff;
    color: var(--ms-blue);
    font-weight: 700;
    padding: 0.75rem 2.2rem;
    border-radius: 25px;
    border: none;
    font-size: 1rem;
    transition: box-shadow 0.2s, transform 0.15s;
    display: inline-flex;
    align-items: center;
}

.btn-cta-white:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
    color: var(--ms-blue);
}

.btn-cta-outline-white {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.7);
    font-weight: 600;
    padding: 0.73rem 2.2rem;
    border-radius: 25px;
    font-size: 1rem;
    transition: background 0.2s, border-color 0.2s;
    display: inline-flex;
    align-items: center;
}

.btn-cta-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

/* ─── Solution landing pages ─────────────────────────────────── */
.landing-hero {
    background: var(--ms-gradient-hero);
    padding: 4rem 0 3rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.landing-hero-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    color: #fff;
}

.landing-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.landing-hero-lead {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.88);
    max-width: 640px;
    line-height: 1.65;
    margin: 0;
}

.landing-hero-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.landing-section {
    padding: 4rem 0;
    background: #fff;
}

.benefit-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefit-list li {
    padding: 0.65rem 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.92rem;
    color: var(--ms-text-muted);
    line-height: 1.55;
}

.benefit-list li:last-child { border-bottom: none; }

.benefit-list i {
    color: var(--ms-green);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.landing-feature-card {
    padding: 1.5rem;
}

.landing-feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ms-blue);
    margin: 0 0 0.5rem;
    border: none;
    padding: 0;
}

.landing-feature-card p {
    font-size: 0.9rem;
    color: var(--ms-text-muted);
    margin: 0;
    line-height: 1.6;
}

.landing-feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.9rem;
    color: #fff;
    font-size: 1.15rem;
    background: linear-gradient(135deg, var(--ms-green), var(--ms-blue));
}

.landing-cta {
    background: var(--ms-gradient);
    padding: 3.5rem 0;
    color: #fff;
}

.landing-cta h2 {
    font-weight: 800;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.75rem;
}

.landing-cta p {
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 1.5rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── School Challenge campaign blog / article ─────────────────── */
.campaign-article-kicker {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
}

.campaign-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.82);
}

.campaign-hero-figure {
    margin: 0;
}

.campaign-hero-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 31, 63, 0.12);
}

.campaign-figure-caption {
    font-size: 0.82rem;
    color: var(--ms-text-muted);
    text-align: center;
    margin-top: 0.65rem;
    line-height: 1.5;
}

.campaign-share-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--ms-bg-soft);
    border-radius: 10px;
    border: 1px solid rgba(0, 84, 166, 0.08);
}

.campaign-share-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ms-text-muted);
    margin-right: 0.25rem;
}

.campaign-share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.95rem;
    border: none;
    transition: transform 0.15s, opacity 0.2s;
    text-decoration: none;
    cursor: pointer;
}

.campaign-share-btn:hover {
    transform: translateY(-2px);
    color: #fff;
    opacity: 0.92;
}

.campaign-share-whatsapp { background: #25d366; }
.campaign-share-linkedin { background: #0a66c2; }
.campaign-share-twitter { background: #000; }
.campaign-share-facebook { background: #1877f2; }
.campaign-share-copy { background: var(--ms-blue); }

.campaign-content .campaign-benefit-list li {
    border-bottom-color: #e9ecef;
}

.campaign-steps {
    padding-left: 1.25rem;
    color: var(--ms-text-muted);
    line-height: 1.85;
}

.campaign-steps li {
    margin-bottom: 0.5rem;
}

.campaign-steps a {
    color: var(--ms-blue);
    font-weight: 600;
}

.campaign-topic-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.campaign-topic-card p {
    font-size: 0.88rem;
    margin: 0;
    line-height: 1.6;
}

.campaign-terms-box {
    background: #f8fafc;
    border: 1px solid rgba(0, 84, 166, 0.1);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
}

.campaign-terms-box h3 {
    font-size: 1rem;
    margin: 0 0 0.75rem;
    color: var(--ms-blue);
}

.campaign-terms-box li {
    font-size: 0.88rem;
    margin-bottom: 0.35rem;
}

.campaign-cta-primary {
    background: linear-gradient(135deg, #d4af37, #b8941f) !important;
    color: #001f3f !important;
}

.campaign-cta-primary:hover {
    color: #001f3f !important;
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
}

.campaign-sidebar-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 84, 166, 0.06);
}

.campaign-sidebar-prize {
    padding: 1rem;
    background: linear-gradient(135deg, #001f3f 0%, #003366 100%);
    border-radius: 10px;
    color: #fff;
}

.campaign-sidebar-badge {
    font-size: 2rem;
    line-height: 1;
}

.campaign-sidebar-free {
    font-size: 1.75rem;
    font-weight: 900;
    color: #d4af37;
    line-height: 1.1;
}

.campaign-sidebar-duration {
    font-size: 0.85rem;
    font-weight: 700;
    color: #f0d875;
    letter-spacing: 0.06em;
}

.campaign-sidebar-count {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.35rem;
    color: rgba(255, 255, 255, 0.75);
}

.campaign-sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ms-blue);
    margin: 0 0 0.85rem;
}

.campaign-related-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.campaign-related-links li {
    margin-bottom: 0.5rem;
}

.campaign-related-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--ms-text-muted);
    transition: color 0.15s;
}

.campaign-related-links a:hover {
    color: var(--ms-blue);
}

.campaign-related-links i {
    width: 1.25rem;
    color: var(--ms-green);
    text-align: center;
}

@media (max-width: 991.98px) {
    .page-header h1 {
        font-size: 1.85rem;
    }
}
