/* ============================================================
   FILE: assets/css/style.css
   PURPOSE: Global styles used across the entire website.
   The navbar and footer have their own inline styles.
   This file handles page content styles.
   ALTERABLE: All styles can be modified later
   ============================================================ */

/* ── PAGE WRAPPER ────────────────────────────────────────────
   Wraps all page content to keep it centred and readable     */
.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ── SECTION TITLE ───────────────────────────────────────────
   Used for headings inside page sections                     */
.section-title {
    font-family: 'Cinzel', serif;
    font-size: 32px;
    color: var(--navy);
    text-align: center;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 15px;
    color: var(--mid);
    text-align: center;
    margin-bottom: 40px;
}

/* ── GOLD UNDERLINE DIVIDER ──────────────────────────────────
   Decorative gold line under section titles                  */
.gold-divider {
    width: 80px;
    height: 4px;
    background: var(--gold);
    margin: 0 auto 15px;
    border-radius: 2px;
}

/* ── CARDS ───────────────────────────────────────────────────
   Reusable card style for sermons, events, announcements     */
.card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);      /* Lifts card on hover            */
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-body {
    padding: 25px;
}

.card-title {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    color: var(--navy);
    margin-bottom: 10px;
}

.card-text {
    font-size: 14px;
    color: var(--mid);
    line-height: 1.7;
    margin-bottom: 15px;
}

/* ── GRID LAYOUTS ────────────────────────────────────────────
   Used for displaying cards in rows                          */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

/* ── BUTTONS ─────────────────────────────────────────────────
   Reusable button styles used throughout the website         */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-family: 'Open Sans', sans-serif;
}

/* Primary button -- navy background */
.btn-primary {
    background: var(--navy);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--gold);
    color: var(--navy);
}

/* Gold button -- gold background */
.btn-gold {
    background: var(--gold);
    color: var(--navy);
}

.btn-gold:hover {
    background: var(--flame);
    color: var(--white);
}

/* Outline button -- transparent with border */
.btn-outline {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
}

.btn-outline:hover {
    background: var(--navy);
    color: var(--white);
}

/* ── BADGES ──────────────────────────────────────────────────
   Small labels used on cards to show category/status        */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-gold   { background: #FFF3CD; color: #856404; }
.badge-navy   { background: #D0E4F7; color: #1A3557; }
.badge-green  { background: #D4EDDA; color: #155724; }
.badge-red    { background: #F8D7DA; color: #721C24; }

/* ── ALERT MESSAGES ──────────────────────────────────────────
   Used to show success and error messages on forms          */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: #D4EDDA;
    color: #155724;
    border-left: 4px solid var(--success);
}

.alert-error {
    background: #F8D7DA;
    color: #721C24;
    border-left: 4px solid var(--danger);
}

/* ── PAGE HERO BANNER ────────────────────────────────────────
   The large banner at the top of inner pages                */
.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, #2C5282 100%);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 50px;
}

.page-hero h1 {
    font-family: 'Cinzel', serif;
    font-size: 40px;
    color: var(--gold);
    margin-bottom: 10px;
}

.page-hero p {
    font-size: 16px;
    color: #B0CCE8;
    max-width: 600px;
    margin: 0 auto;
}

/* ── RESPONSIVE ──────────────────────────────────────────────
   Adjusts layout for tablets and mobile phones              */
@media (max-width: 900px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .section-title   { font-size: 26px; }
    .page-hero h1    { font-size: 28px; }
}