/*
Theme Name: CVA Bulletin Theme
Theme URI: https://cornerstonesvisionacademy.org/cva-bulletin
Author: Cornerstones Vision Academy
Author URI: https://cornerstonesvisionacademy.org
Version: 1.3.0
Description: Official WordPress theme for CVA Bulletin. Clean, readable, responsive, school-branded, production-safe.
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cva-bulletin
*/

/* =====================================================
   DESIGN TOKENS
===================================================== */
:root {
    --bg-page: #fdf4e4;
    --bg-card: #ffffff;
    --bg-header: #ffffff;
    --bg-footer: #593c2e;

    --primary: #1E3A8A;
    --secondary: #93C5FD;
    --accent: #b76e49;

    --text-main: #1f2933;
    --text-muted: #6b5846;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --shadow-soft: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-strong: 0 14px 36px rgba(0,0,0,0.18);

    --transition: 0.25s ease;
}

/* =====================================================
   RESET & BASE
===================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, sans-serif;
    background: var(--bg-page);
    color: var(--text-main);
    line-height: 1.75;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent);
}

/* =====================================================
   HEADER
===================================================== */
.site-header {
    background: var(--bg-header);
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1.1rem 1.5rem;
}

.header-inner {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.header-logos {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-school { height: 50px; }
.logo-bulletin { height: 64px; }

/* =====================================================
   NAVIGATION
===================================================== */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.6rem;
}

.main-nav a {
    font-weight: 600;
    font-size: 0.95rem;
}

/* =====================================================
   HERO
===================================================== */
.cva-hero {
    position: relative;
    margin: 2.5rem auto 3.5rem;
    padding: 4.5rem 2rem;
    max-width: 1200px;
    background:
        linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
        url("assets/images/hero-bg.jpg") center / cover no-repeat;
    color: #ffffff;
    text-align: center;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-strong);
}

.cva-hero h1 {
    font-family: 'Merriweather', serif;
    font-size: 2.6rem;
    margin-bottom: 0.75rem;
}

.cva-hero p {
    max-width: 720px;
    margin: 0 auto;
    opacity: 0.9;
}

/* =====================================================
   ARTICLE FEED
===================================================== */
.article-feed {
    max-width: 1100px;
    margin: 0 auto 4rem;
    padding: 0 1.25rem;
}

.article-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: 3rem;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition), box-shadow var(--transition);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
}

.article-media img,
.article-media video {
    width: 100%;
    object-fit: cover;
}

.article-body {
    padding: 2rem;
}

.article-body h2 {
    font-size: 1.6rem;
    color: var(--primary);
    line-height: 1.35;
    margin-bottom: 0.4rem;
}

.article-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.1rem;
}

.article-body p {
    margin-bottom: 1.2rem;
}

.read-more {
    font-weight: 600;
}

/* =====================================================
   COMMENTS & LIKES
===================================================== */
.likes-wrapper,
.comments-wrapper {
    margin-top: 1.2rem;
    padding-top: 0.9rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.9rem;
}

.like-btn {
    background: none;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

.comment-form input {
    padding: 0.5rem 0.65rem;
    border-radius: var(--radius-sm);
    border: 1px solid #d1d5db;
}

.comment-form button {
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: #ffffff;
    border: none;
    cursor: pointer;
}

/* =====================================================
   HELP PAGE
===================================================== */
.help-page {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 1.5rem 3rem;
}

.help-section {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-soft);
}

.help-section h2 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.help-section ul,
.help-section ol {
    margin-left: 1.6rem;
}

/* =====================================================
   FOOTER
===================================================== */
.site-footer {
    background: var(--bg-footer);
    color: #fff7eb;
    padding: 3rem 1.5rem;
    text-align: center;
    font-size: 0.95rem;
}

.footer-contact,
.footer-text {
    font-size: 0.85rem;
}

.footer-contact a,
.footer-social-link {
    color: var(--secondary);
}

.footer-contact a:hover,
.footer-social-link:hover {
    color: var(--accent);
}

/* =====================================================
   YMC FILTER / GRID SAFETY
===================================================== */
.ymc-filter-wrapper,
.ymc-posts,
.ymc-post-item {
    width: 100% !important;
    max-width: 100% !important;
}

.ymc-post-item {
    display: block !important;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        text-align: center;
    }

    .cva-hero h1 {
        font-size: 2.1rem;
    }

    .article-body h2 {
        font-size: 1.35rem;
    }
}

@media (max-width: 480px) {
    .cva-hero {
        padding: 3.5rem 1.25rem;
    }
}
