/* Theme palettes & CMS dynamic page/news components for web.jaihind.school */
body.theme-sunlit {
    --aqua: #fcecc2;
    --purple: #5b3cc4;
    --cobalt: #283891;
    --sun: #ffb732;
    --paper: #fffdf7;
}
body.theme-breeze {
    --aqua: #cbe8f6;
    --purple: #3b5bdb;
    --cobalt: #1e3a8a;
    --sun: #ffd166;
    --paper: #fcfefe;
}
body.theme-garden {
    --aqua: #ccebd8;
    --purple: #6b3fa0;
    --cobalt: #264e5a;
    --sun: #f9c74f;
    --paper: #fdfcf7;
}

/* News & Stories Grid */
.news-section {
    background: #f8f4ff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}
.news-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 9px 0 #e0d7ed60;
    transition: transform .25s ease, box-shadow .25s ease;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 0 #d5c7eb80;
}
.news-card-media {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    background: #ebe0ff;
}
.news-card-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--purple);
    margin-bottom: 12px;
}
.news-badge {
    background: #ebe0ff;
    color: var(--purple);
    padding: 4px 12px;
    border-radius: 20px;
}
.news-card h3 {
    font-size: 1.45rem;
    line-height: 1.24;
    margin-bottom: 12px;
}
.news-card p {
    font-size: .92rem;
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

/* Custom CMS Pages & Rich Text Prose */
.cms-rich-section {
    max-width: 920px;
}
.cms-prose {
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--muted);
}
.cms-prose h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--ink);
    margin: 36px 0 16px;
}
.cms-prose h3 {
    font-size: 1.45rem;
    color: var(--ink);
    margin: 28px 0 12px;
}
.cms-prose p {
    margin-bottom: 20px;
}
.cms-prose ul, .cms-prose ol {
    margin: 20px 0;
    padding-left: 24px;
    color: var(--muted);
}
.cms-prose li {
    margin: 10px 0;
}
.cms-prose blockquote {
    margin: 28px 0;
    padding: 24px 30px;
    background: #f3edfc;
    border-left: 5px solid var(--purple);
    border-radius: 0 18px 18px 0;
    font-family: var(--serif);
    font-size: 1.25rem;
    color: var(--ink);
}
.cms-prose a {
    color: var(--purple);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.cms-article-header {
    padding-top: 55px;
    padding-bottom: 35px;
    border-bottom: 1px solid var(--line);
}
.cms-article-header h1 {
    font-size: clamp(2.4rem, 4.5vw, 4rem);
    margin: 16px 0 20px;
}
.cms-article-cover {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 28px;
    margin: 32px 0;
    box-shadow: 0 14px 36px #4f518c18;
}

@media (max-width: 950px) {
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 650px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}
