/*
Theme Name: Caroline Close Stuart DAR
Theme URI: https://carolinestuartdar.org
Author: Caroline Close Stuart Chapter, NSDAR
Author URI: https://carolinestuartdar.org
Description: A simple, ready-to-use WordPress theme for the Caroline Close Stuart Chapter, NSDAR. Includes a public homepage and a Member Dashboard page template (meetings, minutes, newsletters, volunteer sign-ups, and a dues button). Edit the content directly in the template files or through the WordPress editor, then pair with a membership plugin (e.g. a free "password protected page" or member-login plugin) to restrict the Member Dashboard page to logged-in members only.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ccsdar
*/

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #2c2c2a;
    background: #f7f5ef;
    line-height: 1.6;
}
a { color: #185fa5; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-weight: 600; margin: 0 0 .5em; color: #0c3b5e; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Top utility bar ---------- */
.ccsdar-topbar {
    background: #0c3b5e;
    color: #dfe9f2;
    font-size: 12px;
    padding: 6px 0;
}
.ccsdar-topbar .container { display: flex; justify-content: space-between; }

/* ---------- Site header ---------- */
.ccsdar-header {
    background: #fff;
    border-bottom: 1px solid #e2ded2;
    padding: 18px 0;
}
.ccsdar-header .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.ccsdar-logo { font-size: 18px; font-weight: 600; color: #0c3b5e; }
.ccsdar-logo span { display: block; font-size: 12px; font-weight: 400; color: #6b6b66; }
.ccsdar-nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.ccsdar-nav a { font-size: 14px; color: #2c2c2a; font-weight: 500; }
.ccsdar-nav a:hover { color: #185fa5; }

/* ---------- Hero ---------- */
.ccsdar-hero {
    background: #eef3f8;
    text-align: center;
    padding: 60px 24px;
}
.ccsdar-hero .kicker {
    font-size: 12px;
    letter-spacing: .06em;
    color: #185fa5;
    font-weight: 600;
    margin-bottom: 10px;
}
.ccsdar-hero h1 { font-size: 30px; }
.ccsdar-hero p { max-width: 520px; margin: 0 auto 24px; color: #555550; }
.btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #0c3b5e;
    cursor: pointer;
}
.btn-primary { background: #0c3b5e; color: #fff !important; }
.btn-primary:hover { background: #0a2f4a; text-decoration: none; }
.btn-secondary { background: #fff; color: #0c3b5e !important; }
.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Quick links / cards ---------- */
.ccsdar-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #e2ded2;
}
.ccsdar-card {
    background: #fff;
    padding: 26px 20px;
    text-align: center;
}
.ccsdar-card h3 { font-size: 15px; margin: 10px 0 4px; }
.ccsdar-card p { font-size: 13px; color: #6b6b66; margin: 0; }

/* ---------- Section blocks ---------- */
.ccsdar-section { padding: 48px 0; }
.ccsdar-section.alt { background: #fff; }
.ccsdar-section h2 { font-size: 22px; text-align: center; margin-bottom: 24px; }

.ccsdar-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.ccsdar-gallery .ph {
    aspect-ratio: 1;
    background: #dce8f2;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #185fa5;
    font-size: 12px;
}

/* ---------- Footer ---------- */
.ccsdar-footer {
    background: #0c3b5e;
    color: #b9c9d8;
    font-size: 12px;
    padding: 24px 0;
    text-align: center;
}
.ccsdar-footer a { color: #dfe9f2; }

/* ================================================== */
/* Member Dashboard template                           */
/* ================================================== */
.md-topbar {
    background: #f2efe6;
    font-size: 12px;
    color: #6b6b66;
    padding: 8px 0;
    border-bottom: 1px solid #e2ded2;
}
.md-topbar .container { display: flex; justify-content: space-between; }

.md-pagehead { background: #f2efe6; padding: 16px 0; border-bottom: 1px solid #e2ded2; }
.md-pagehead .crumb { font-size: 12px; color: #6b6b66; margin: 0 0 4px; }
.md-pagehead h1 { margin: 0; font-size: 22px; }

.md-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 28px;
    padding: 28px 0 48px;
}
@media (max-width: 780px) {
    .md-layout, .ccsdar-cards, .ccsdar-gallery { grid-template-columns: 1fr; }
}

.md-notice {
    border-left: 4px solid #185fa5;
    background: #f2efe6;
    padding: 14px 18px;
    margin-bottom: 24px;
}
.md-notice .label { font-size: 11px; color: #185fa5; font-weight: 700; letter-spacing: .04em; }
.md-notice .when { font-size: 15px; font-weight: 600; margin: 4px 0 2px; }
.md-notice .where { font-size: 13px; color: #6b6b66; }

.md-list { list-style: none; margin: 0 0 28px; padding: 0; border: 1px solid #e2ded2; border-radius: 8px; overflow: hidden; }
.md-list li { padding: 10px 16px; border-bottom: 1px solid #e2ded2; font-size: 13px; display: flex; justify-content: space-between; align-items: center; }
.md-list li:last-child { border-bottom: none; }
.md-list .meta { color: #6b6b66; font-size: 12px; }
.md-list .action { color: #185fa5; font-size: 12px; font-weight: 600; }

.md-sidebar .widget { background: #f2efe6; border-radius: 8px; padding: 16px; margin-bottom: 14px; }
.md-sidebar .widget h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 10px; color: #6b6b66; }
.md-sidebar .due-date { color: #a35a1c; font-weight: 600; font-size: 13px; margin: 0 0 10px; }
.md-sidebar .widget a { display: block; font-size: 13px; margin-bottom: 6px; }
.md-sidebar .widget a:last-child { margin-bottom: 0; }
.md-sidebar .btn { width: 100%; text-align: center; }
