:root {
    --primary: #002f6c;    /* Crusaders Navy Blue */
    --accent: #d4af37;     /* Crusaders Gold */
    --dark: #1a202c;
    --light: #f7fafc;
    --gray-text: #4a5568;
    --white: #ffffff;
    --border-color: #cbd5e1;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ==========================================================================
   GLOBAL NAVBAR & FOOTER
   ========================================================================== */
nav {
    background: var(--primary);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-brand h1 {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
}

.admin-link {
    border: 1px solid var(--accent);
    border-radius: 4px;
    padding: 0.5rem 1rem;
    color: var(--accent) !important;
}

.admin-link:hover {
    background: var(--accent);
    color: var(--primary) !important;
}

footer {
    text-align: center;
    padding: 2rem;
    background: var(--primary);
    color: var(--white);
    font-size: 0.9rem;
    border-top: 4px solid var(--accent);
    margin-top: auto;
}

/* ==========================================================================
   BASE LAYOUT COMPONENTS
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
    flex: 1;
    width: 100%;
}

.section-title {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
    text-align: center;
}

.section-title::after {
    content: '';
    width: 60px;
    height: 4px;
    background: var(--accent);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.subtitle {
    text-align: center;
    color: var(--gray-text);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* ==========================================================================
   PAGE SPECIFIC: HOME (INDEX)
   ========================================================================== */
.hero {
    background: linear-gradient(135deg, #002f6c 0%, #001f4d 100%);
    color: white;
    border-radius: 16px;
    padding: 5rem 2rem;
    text-align: center;
    margin-bottom: 4rem;
    box-shadow: 0 10px 25px rgba(0,47,108,0.15);
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.hero p {
    font-size: 1.25rem;
    max-width: 850px;
    margin: 0 auto;
    opacity: 0.95;
    line-height: 1.7;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 1rem;
}

.pillar-box {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    text-align: center;
    border-top: 5px solid var(--primary);
    transition: transform 0.3s;
}

.pillar-box:hover { transform: translateY(-5px); }
.pillar-box h4 { color: var(--primary); margin-bottom: 1rem; font-size: 1.3rem; }
.pillar-box p { color: var(--gray-text); font-size: 0.95rem; line-height: 1.6; }

/* ==========================================================================
   PAGE SPECIFIC: ABOUT US
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 1rem;
}

.about-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border-left: 5px solid var(--accent);
}

.about-card h3 { color: var(--primary); margin-bottom: 1rem; font-size: 1.35rem; }
.about-card p { color: var(--gray-text); line-height: 1.7; font-size: 0.95rem; }

.vision-banner {
    background-color: var(--primary);
    color: var(--white);
    padding: 3rem;
    border-radius: 12px;
    margin-top: 4rem;
    text-align: center;
}

.vision-banner h4 { color: var(--accent); font-size: 1.5rem; margin-bottom: 0.75rem; }
.vision-banner p { font-size: 1.05rem; opacity: 0.9; max-width: 800px; margin: 0 auto; line-height: 1.6; }

/* ==========================================================================
   PAGE SPECIFIC: STAFF & REPORTERS
   ========================================================================== */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2.5rem;
    margin-top: 1rem;
}

.avatar-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    padding: 2.5rem 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #e2e8f0;
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    background: #edf2f7;
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    border: 3px solid var(--primary);
    font-size: 2rem;
}

.avatar-card h3 { font-size: 1.3rem; color: var(--primary); margin-bottom: 0.25rem; }
.avatar-card .role { font-size: 0.85rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1.2rem; }
.avatar-card .desc { font-size: 0.9rem; color: var(--gray-text); line-height: 1.6; }

/* ==========================================================================
   PAGE SPECIFIC: DYNAMIC MAGAZINES
   ========================================================================== */
.mag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

.mag-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    border-bottom: 4px solid var(--primary);
}

.mag-cover {
    width: 100%;
    height: 380px;
    object-fit: cover;
    background: #e2e8f0;
    border-bottom: 3px solid var(--accent);
}

.mag-content { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.mag-title { font-size: 1.3rem; color: var(--primary); font-weight: 600; margin-bottom: 0.25rem; }
.mag-date { font-size: 0.8rem; color: #a0aec0; margin-bottom: 1.2rem; font-weight: 500; }
.mag-actions { display: flex; flex-direction: column; gap: 0.6rem; }
.btn-row { display: flex; gap: 0.5rem; }

.btn {
    padding: 0.7rem;
    text-align: center;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
    flex: 1;
}

.btn-open { background: var(--primary); color: var(--white); }
.btn-open:hover { background: #001f4d; }
.btn-down { background: #edf2f7; color: var(--dark); border: 1px solid var(--border-color); }
.btn-down:hover { background: #cbd5e1; }
.btn-share { background: transparent; border: 1px dashed var(--accent); color: var(--primary); width: 100%; }
.btn-share:hover { background: rgba(212,175,55,0.1); }
.status-msg { text-align: center; padding: 4rem; color: var(--gray-text); font-size: 1.1rem; grid-column: 1 / -1; }
