/* ----------------------------------------------------
   SANMINIT • Modern Global Stylesheet
   Clean • Professional • Responsive
-----------------------------------------------------*/

/* ------------------------------
   GLOBAL RESET
------------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f4f4f4;
    color: #222;
    line-height: 1.6;
}

/* ------------------------------
   GLOBAL WRAPPER
------------------------------*/
.page-wrapper {
    width: 92%;
    max-width: 1200px;
    margin: 30px auto 50px auto;
}

/* ------------------------------
   TYPOGRAPHY
------------------------------*/
h1, h2, h3, h4 {
    font-weight: 700;
    color: #0A8A33;
}

p {
    margin-bottom: 14px;
    font-size: 1.05rem;
    color: #333;
}

a {
    color: #0A8A33;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* ------------------------------
   BUTTONS
------------------------------*/
.btn-main {
    background: #0A8A33;
    color: #fff;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: bold;
    display: inline-block;
}
.btn-main:hover {
    background: #066b27;
}

.btn-alt {
    background: #D4AF37;
    color: #fff;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: bold;
}
.btn-alt:hover {
    background: #b8942f;
}

/* ----------------------------------------------------
   HEADER (Width 90%)
-----------------------------------------------------*/

.main-header {
    background: #ffffff;
    padding: 12px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    border-top-left-radius:  10px;
    border-top-right-radius: 10px;
}


.header-container {
    width: 80%;           /* ← updated from 92% */
    max-width: 1000px;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 65px;
    width: auto;
    display: block;
}

/* Navigation */
.nav-menu {
    display: flex;
    gap: 22px;
}

.nav-menu a {
    font-weight: 600;
    color: #0A8A33;
    font-size: 17px;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: 0.25s;
}

.nav-menu a:hover {
    color: #C89B00;
    border-bottom: 2px solid #C89B00;
}

/* MOBILE HEADER */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .nav-menu a {
        font-size: 16px;
    }

    .logo-img {
        height: 55px;
    }
}

/* ----------------------------------------------------
   FORMS
-----------------------------------------------------*/
form label {
    display: block;
    font-weight: bold;
    margin: 18px 0 6px 0;
}

form input,
form textarea,
form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 7px;
    margin-bottom: 10px;
    font-size: 1rem;
}

form button,
button {
    background: #0A8A33;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    font-weight: bold;
}

form button:hover,
button:hover {
    background: #066b27;
}

/* ----------------------------------------------------
   CARDS & GRID
-----------------------------------------------------*/
.card,
.gallery-card,
.event-card,
.program-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    margin-bottom: 18px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover,
.gallery-card:hover,
.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.grid,
.gallery-grid,
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
    gap: 20px;
}

/* ----------------------------------------------------
   VIDEO EMBEDS
-----------------------------------------------------*/
.video-box {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin: 20px 0;
}
.video-box iframe {
    width: 100%;
    height: 420px;
    border: none;
}

/* ----------------------------------------------------
   FOOTER (Width 90%)
-----------------------------------------------------*/

footer {
    background: #0A8A33;
    color: white;
    padding: 35px 0;
    margin-top: 60px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.footer-inner {
    width: 85%;         /* ← updated from 80% */
    max-width: 1000px; 
    margin: auto;

    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

footer p {
    color: #e8e8e8;
    margin-bottom: 10px;
}

footer a {
    color: #D4AF37;
}

footer a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #cfcfcf;
}

/* RESPONSIVE VIDEO SMALLER ON MOBILE */
@media (max-width: 768px) {
    .video-box iframe {
        height: 260px;
    }

    .footer-inner {
        width: 92%;
        text-align: center;
    }
}

/* =========================================
   SANMINIT ADMIN LAYOUT - Omoniyi Y. Adebisi - November 24, 2025
========================================= */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: #f5f5f5;
    font-family: sans-serif;
}

.sidebar {
    width: 240px;
    background: #0A8A33;
    color: #fff;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar h2 {
    text-align: center;
    margin: 0 0 20px 0;
    font-size: 1.4rem;
    font-weight: bold;
}

.sidebar a {
    display: block;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
}

.sidebar a:hover {
    background: #0c6d29;
}

.sidebar .logout {
    margin-top: auto;
    background: #cc0000;
    text-align: center;
    padding: 12px 20px;
}

.sidebar .logout:hover {
    background: #a30000;
}

.content {
    flex: 1;
    padding: 30px;
}

/* Shared admin components */
.section-title {
    font-size: 1.5rem;
    margin: 0 0 15px 0;
    border-left: 5px solid #0A8A33;
    padding-left: 10px;
}

.panel {
    background:#fff;
    padding:20px 22px;
    border-radius:10px;
    box-shadow:0 2px 6px rgba(0,0,0,0.08);
    margin-bottom:20px;
}

.btn {
    display:inline-block;
    padding:8px 14px;
    border-radius:6px;
    background:#0A8A33;
    color:#fff;
    text-decoration:none;
    font-size:0.9rem;
    border:none;
    cursor:pointer;
}
.btn:hover { background:#0c6d29; }

.btn-outline {
    display:inline-block;
    padding:8px 14px;
    border-radius:6px;
    background:#fff;
    color:#0A8A33;
    border:2px solid #0A8A33;
    text-decoration:none;
    font-size:0.9rem;
}
.btn-outline:hover { background:#e6f5ea; }

.filter-row {
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    align-items:flex-end;
}
.filter-row label {
    font-size:0.9rem;
    color:#374151;
}
.filter-row select,
.filter-row input[type="text"] {
    padding:5px 8px;
    font-size:0.9rem;
}

table.app-table {
    width:100%;
    border-collapse:collapse;
    font-size:0.92rem;
}
table.app-table th,
table.app-table td {
    padding:8px 6px;
    border-bottom:1px solid #e5e7eb;
    text-align:left;
}
table.app-table th {
    background:#f9fafb;
}

.status-pill {
    display:inline-block;
    padding:2px 8px;
    border-radius:999px;
    font-size:0.8rem;
    color:#fff;
}
.status-pill.pending  { background:#9CA3AF; }
.status-pill.approved { background:#0A8A33; }
.status-pill.rejected { background:#B91C1C; }

.pagination {
    margin-top:12px;
    font-size:0.9rem;
}
.pagination a,
.pagination span {
    display:inline-block;
    padding:4px 8px;
    margin-right:2px;
    text-decoration:none;
    border-radius:4px;
}
.pagination a {
    background:#e5e7eb;
    color:#111827;
}
.pagination a:hover {
    background:#d1d5db;
}
.pagination .current {
    background:#0A8A33;
    color:#fff;
}

.alert {
    padding:10px 12px;
    border-radius:6px;
    margin-bottom:10px;
    font-size:0.9rem;
}
.alert.error { background:#fee2e2; color:#991b1b; }
.alert.success { background:#dcfce7; color:#166534; }

.notes-badge {
    color:#0A8A33;
    font-weight:bold;
    margin-left:3px;
}

@media (max-width: 900px) {
    .admin-layout { flex-direction:column; }
    .sidebar { width:100%; height:auto; }
}
