body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f5f7fa;
    color: #222;
}

a { color: #004a9f; text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
}

.top-header {
    background: #ffffff;
    border-bottom: 1px solid #d0d7e2;
    padding: 10px 0;
}

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

.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 78px; width:110px; }
.logo-title { font-weight: 600; font-size:25px; display: block; }
.logo-sub { font-size: 15px; color: #555; }

.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 50px;
    border: none;
    background: #004a9f;
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 700;
}
.btn:hover { background: #0060cf; }
.btn-primary { background: #0060cf; color: #fff; }
.btn-sm { padding: 4px 10px; font-size: 12px; }

.btn-donate { background: #c21807; color: #fff; }
.btn-donate:hover { background: #e53914; }

.main-nav {
    background: #004a9f;
}
.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}
.nav-list > li {
    position: relative;
    text-decoration: none;
}
.nav-list > li > a {
    text-decoration: none;
    color: #fff;
    padding: 10px 10px;
    display: block;
    font-size: 14px;
}
.nav-list > li > a:hover {
    background: #005ec7;
}
.has-dropdown:hover .dropdown {
    display: block;
}
.dropdown {
    display: none;
    position: absolute;
    background: #ffffff;
    min-width: 200px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 20;
}
.dropdown li a {
    color: #222!important;
    padding: 8px 12px;
    display: block;
}

/* Hero slider */
.hero-slider { position: relative; overflow: hidden; max-height: 420px; }
.slider-wrapper { display: flex; position: relative; }
.slide { min-width: 100%; position: relative; }
.slide img { width: 100%; display: block; object-fit: cover; max-height: 420px; }
.slide-caption {
    position: absolute;
    left: 8%;
    bottom: 14%;
    background: rgba(0,0,0,0.45);
    color: #fff;
    padding: 16px 20px;
    max-width: 600px;
    border-radius: 4px;
}

/* News ticker */
.news-ticker {
    background: #f0f4ff;
    border-bottom: 1px solid #d0d7e2;
}
.ticker-flex {
    display: flex;
    align-items: center;
    padding: 4px 0;
}
.ticker-label {
    font-weight: 600;
    margin-right: 8px;
}
.ticker-marquee { flex: 1; }

/* Layout */
.two-col {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    padding: 24px 0;
}
.responsive-img { max-width: 100%; height: auto; }

.quick-links {
    background: #ffffff;
    padding: 24px 0 40px;
}
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 16px;
}
.ql-box {
    background: #f5f8ff;
    padding: 18px;
    border-radius: 4px;
    border: 1px solid #d0d7e2;
}
.ql-box h3 { margin-top: 0; }

/* Page banner */
.page-banner { position: relative; max-height: 260px; overflow: hidden; }
.page-banner img { width: 100%; object-fit: cover; display: block; }
.banner-overlay {
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
    color: #fff;
    display: flex;
    align-items: flex-end;
    padding-bottom: 20px;
}
.banner-overlay h1 { margin: 0; }

/* Page content */
.page-content { padding: 30px 0 40px; }
.page-content h1, .page-content h2 { margin-top: 0; }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}
.card {
    background: #fff;
    border-radius: 4px;
    border: 1px solid #d0d7e2;
    padding: 16px;
}

/* Tables & forms */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}
.data-table th, .data-table td {
    border: 1px solid #d0d7e2;
    padding: 8px;
    font-size: 14px;
}
.form-vertical label { display: block; margin-top: 10px; font-weight: 500; }
.form-vertical input,
.form-vertical select,
.form-vertical textarea {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    border-radius: 3px;
    border: 1px solid #c0c6d5;
    box-sizing: border-box;
}

.alert { padding: 8px 12px; border-radius: 4px; margin-bottom: 12px; }
.alert-success { background: #e0f5e6; border: 1px solid #7ac48a; }
.alert-danger { background: #fde0e0; border: 1px solid #e57373; }

/* Footer */
.site-footer {
    background: #002347;
    color: #cfd8e6;
    padding: 24px 0 10px;
    margin-top: 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}
.footer-bottom {
    border-top: 1px solid #1a395c;
    margin-top: 12px;
    padding-top: 8px;
    font-size: 13px;
}

/* Admin */
.admin-body { background: #f1f4f8; }
.admin-header {
    background: #004a9f;
    color: #fff;
    padding: 8px 0;
}
.admin-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.admin-wrapper {
    display: grid;
    grid-template-columns: 220px 1fr;
    max-width: 1200px;
    margin: 0 auto;
}
.admin-sidebar {
    background: #0b1c33;
    min-height: calc(100vh - 48px);
}
.admin-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.admin-sidebar a {
    display: block;
    padding: 10px 14px;
    color: #cfd8e6;
    font-size: 14px;
}
.admin-sidebar a:hover {
    background: #13284a;
}
.admin-main {
    padding: 16px 20px 40px;
}
.admin-footer {
    text-align: center;
    padding: 12px 0;
    font-size: 12px;
}

/* Admin login */
.admin-login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.login-box {
    background: #ffffff;
    padding: 24px;
    border-radius: 4px;
    border: 1px solid #d0d7e2;
    width: 320px;
}
.login-box h1 { margin-top: 0; }

@media (max-width: 900px) {
    .two-col { grid-template-columns: 1fr; }
    .quick-links-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .admin-wrapper { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
}
