/* ============================================
   CMRP Public Website Stylesheet
   ============================================ */
:root {
    --primary: #0052D4;
    --primary-dark: #003399;
    --primary-light: #e8f0fe;
    --accent: #FFD700;
    --text: #1a2340;
    --muted: #6c757d;
    --bg: #f8faff;
    --white: #ffffff;
    --border: #e3e8f0;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --radius: 14px;
}

* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:'Segoe UI',Arial,sans-serif; color:var(--text); background:var(--white); }
img { max-width:100%; }
a { text-decoration:none; color:inherit; }

/* ---- NAVBAR ---- */
.site-navbar {
    background:var(--white);
    border-bottom:1px solid var(--border);
    padding:0 40px;
    height:70px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    position:sticky;
    top:0;
    z-index:1000;
    box-shadow:0 2px 10px rgba(0,0,0,0.06);
}
.navbar-brand {
    display:flex;
    align-items:center;
    gap:12px;
}
.navbar-brand img {
    width:46px;
    height:46px;
    object-fit:contain;
    border-radius:10px;
    background:var(--primary-light);
    padding:4px;
}
.brand-name { font-size:1.1rem; font-weight:800; color:var(--primary); }
.brand-sub  { font-size:0.72rem; color:var(--muted); display:block; }

.nav-links { display:flex; gap:4px; align-items:center; }
.nav-links a {
    padding:8px 16px;
    border-radius:8px;
    font-size:0.875rem;
    font-weight:600;
    color:var(--text);
    transition:all .2s;
}
.nav-links a:hover, .nav-links a.active { background:var(--primary-light); color:var(--primary); }
.nav-links .btn-login {
    background:var(--primary);
    color:#fff;
    padding:8px 20px;
    border-radius:8px;
}
.nav-links .btn-login:hover { background:var(--primary-dark); color:#fff; }

.nav-toggle { display:none; background:none; border:none; font-size:1.3rem; cursor:pointer; color:var(--text); }

/* ---- HERO ---- */
.hero {
    background:linear-gradient(135deg,#0052D4 0%,#003399 60%,#001a66 100%);
    color:#fff;
    padding:100px 40px;
    text-align:center;
    position:relative;
    overflow:hidden;
}
.hero::before {
    content:'';
    position:absolute;
    inset:0;
    background:url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fff' fill-opacity='0.04'%3E%3Ccircle cx='40' cy='40' r='30'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position:relative; z-index:1; max-width:800px; margin:0 auto; }
.hero img { width:100px; height:100px; border-radius:50%; border:4px solid rgba(255,255,255,.3); object-fit:contain; background:rgba(255,255,255,.1); padding:8px; margin-bottom:24px; }
.hero h1 { font-size:clamp(1.8rem,4vw,3rem); font-weight:800; margin-bottom:10px; line-height:1.2; }
.hero p  { font-size:1.1rem; opacity:.85; max-width:600px; margin:0 auto 32px; }
.hero-btns { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.btn-hero-primary { background:#fff; color:var(--primary); padding:14px 32px; border-radius:10px; font-weight:700; font-size:0.95rem; transition:all .2s; }
.btn-hero-primary:hover { background:var(--accent); color:var(--text); transform:translateY(-2px); }
.btn-hero-outline { border:2px solid rgba(255,255,255,.6); color:#fff; padding:12px 30px; border-radius:10px; font-weight:600; font-size:0.95rem; transition:all .2s; }
.btn-hero-outline:hover { background:rgba(255,255,255,.15); border-color:#fff; }

/* ---- SECTIONS ---- */
.section { padding:80px 40px; }
.section-alt { background:var(--bg); }
.container { max-width:1200px; margin:0 auto; }
.section-title { text-align:center; margin-bottom:50px; }
.section-title h2 { font-size:clamp(1.5rem,3vw,2.2rem); font-weight:800; color:var(--text); margin-bottom:10px; }
.section-title p  { color:var(--muted); font-size:1rem; max-width:600px; margin:0 auto; }
.section-title .title-line { width:60px; height:4px; background:var(--primary); border-radius:2px; margin:12px auto 0; }

/* ---- STAT CARDS ---- */
.stats-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:24px; }
.stat-item { background:#fff; border-radius:var(--radius); padding:28px; text-align:center; box-shadow:var(--shadow); border-top:4px solid var(--primary); }
.stat-item .num { font-size:2.2rem; font-weight:800; color:var(--primary); }
.stat-item .lbl { color:var(--muted); font-size:0.9rem; margin-top:4px; }

/* ---- NEWS CARDS ---- */
.news-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:24px; }
.news-card { background:#fff; border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); transition:transform .2s,box-shadow .2s; }
.news-card:hover { transform:translateY(-4px); box-shadow:0 12px 32px rgba(0,0,0,0.12); }
.news-card img { width:100%; height:200px; object-fit:cover; }
.news-card .news-placeholder { width:100%; height:200px; background:var(--primary-light); display:flex; align-items:center; justify-content:center; color:var(--primary); font-size:3rem; }
.news-card .news-body { padding:20px; }
.news-card .news-date { font-size:0.75rem; color:var(--muted); margin-bottom:8px; }
.news-card h3 { font-size:1rem; font-weight:700; margin-bottom:8px; }
.news-card p  { font-size:0.875rem; color:var(--muted); line-height:1.6; }

/* ---- FEATURES / PROGRAMS ---- */
.features-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:24px; }
.feature-card { background:#fff; border-radius:var(--radius); padding:28px; box-shadow:var(--shadow); text-align:center; }
.feature-icon { width:60px; height:60px; border-radius:14px; background:var(--primary-light); color:var(--primary); display:flex; align-items:center; justify-content:center; font-size:1.5rem; margin:0 auto 16px; }
.feature-card h4 { font-weight:700; margin-bottom:8px; }
.feature-card p  { font-size:0.875rem; color:var(--muted); }

/* ---- GALLERY GRID ---- */
.gallery-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:16px; }
.gallery-item { border-radius:10px; overflow:hidden; aspect-ratio:4/3; }
.gallery-item img { width:100%; height:100%; object-fit:cover; transition:transform .3s; }
.gallery-item:hover img { transform:scale(1.05); }

/* ---- CONTACT FORM ---- */
.contact-form { background:#fff; border-radius:var(--radius); padding:36px; box-shadow:var(--shadow); }
.form-group { margin-bottom:20px; }
.form-group label { display:block; font-weight:600; font-size:0.875rem; margin-bottom:6px; }
.form-control { width:100%; border:1.5px solid var(--border); border-radius:8px; padding:11px 14px; font-size:0.9rem; transition:border-color .2s; }
.form-control:focus { outline:none; border-color:var(--primary); box-shadow:0 0 0 3px rgba(0,82,212,.1); }
.btn-submit { background:var(--primary); color:#fff; border:none; border-radius:10px; padding:12px 32px; font-weight:700; font-size:0.95rem; cursor:pointer; transition:all .2s; width:100%; }
.btn-submit:hover { background:var(--primary-dark); transform:translateY(-1px); }

/* ---- FOOTER ---- */
.site-footer { background:#0d1b3e; color:#c8d6f0; padding:60px 40px 30px; }
.footer-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:40px; margin-bottom:40px; }
.footer-col h4 { color:#fff; font-size:1rem; font-weight:700; margin-bottom:16px; }
.footer-col p, .footer-col a { font-size:0.875rem; color:#c8d6f0; opacity:.8; display:block; margin-bottom:6px; }
.footer-col a:hover { color:#fff; opacity:1; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.1); padding-top:24px; text-align:center; font-size:0.82rem; opacity:.7; }

/* ---- BREADCRUMB ---- */
.page-hero { background:linear-gradient(135deg,var(--primary),var(--primary-dark)); color:#fff; padding:60px 40px; text-align:center; }
.page-hero h1 { font-size:2rem; font-weight:800; margin-bottom:8px; }
.page-hero p  { opacity:.85; }

/* ---- ALERT ---- */
.alert-success-custom { background:#e8f5e9; border:1px solid #a5d6a7; border-radius:10px; padding:14px 18px; color:#2e7d32; margin-bottom:20px; }
.alert-error-custom   { background:#fce4e4; border:1px solid #ef9a9a; border-radius:10px; padding:14px 18px; color:#c62828; margin-bottom:20px; }

/* ---- RESPONSIVE ---- */
@media(max-width:768px){
    .site-navbar { padding:0 20px; }
    .nav-links { display:none; flex-direction:column; position:absolute; top:70px; left:0; right:0; background:#fff; padding:20px; border-bottom:1px solid var(--border); box-shadow:var(--shadow); }
    .nav-links.open { display:flex; }
    .nav-toggle { display:block; }
    .hero { padding:60px 20px; }
    .section { padding:50px 20px; }
    .site-footer { padding:40px 20px 20px; }
    .hero-btns { flex-direction:column; align-items:center; }
}
