/* ===== Base ===== */
:root {
    --primary: #2980bb;
    --primary-dark: #1a5c8a;
    --primary-light: #e8f4fb;
    --accent-red: #e74c3c;
    --text: #333333;
    --text-light: #666666;
    --bg-light: #f4f8fb;
    --white: #ffffff;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    line-height: 1.6;
}

a {
    color: var(--primary);
    text-decoration: none;
}
a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

img { max-width: 100%; height: auto; }

/* ===== Top bar ===== */
.top-bar {
    background: var(--primary-dark);
    color: #fff;
    font-size: 0.85rem;
    padding: 6px 0;
}
.top-bar a { color: #fff; }
.emergency-badge {
    background: var(--accent-red);
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
}

/* ===== Desktop nav ===== */
.main-nav {
    background: var(--white);
    border-bottom: 3px solid var(--primary);
    padding: 0;
}
.main-nav .container {
    display: flex;
    align-items: center;
}
.navbar-brand {
    display: flex;
    align-items: center;
    padding: 10px 0;
}
.nav-logo {
    height: 50px;
    width: auto;
    margin-right: 10px;
}
.brand-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark);
}
.main-nav .nav-link {
    color: var(--text);
    font-weight: 600;
    padding: 18px 15px;
    font-size: 0.95rem;
    transition: color 0.2s, background 0.2s;
}
.main-nav .nav-link:hover,
.main-nav .nav-link:focus {
    color: var(--primary);
    background: var(--primary-light);
}
.main-nav .dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-top: 3px solid var(--primary);
}
.main-nav .dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* ===== Mobile header ===== */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: var(--white);
    border-bottom: 3px solid var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.mobile-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
}
.mobile-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.95rem;
}
.mobile-logo {
    height: 35px;
    width: auto;
    margin-right: 8px;
}
.burger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.burger-btn span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--primary-dark);
    border-radius: 2px;
    transition: transform 0.2s;
}

/* Mobile nav slide-in */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
}
.mobile-nav-overlay.open { display: block; }

.mobile-nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: var(--white);
    z-index: 9999;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -4px 0 12px rgba(0,0,0,0.15);
}
.mobile-nav.open { right: 0; }

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}
.mobile-nav-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}
.mobile-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
}
.mobile-nav-links li a {
    display: block;
    padding: 12px 20px;
    color: var(--text);
    font-weight: 600;
    border-bottom: 1px solid #eee;
    text-decoration: none;
}
.mobile-nav-links li a:hover {
    background: var(--primary-light);
    color: var(--primary);
}
.mobile-nav-links li.mobile-nav-sub a {
    padding-left: 40px;
    font-weight: 400;
    font-size: 0.9rem;
}
.mobile-nav-contact {
    padding: 15px 20px;
    background: var(--bg-light);
    font-size: 0.9rem;
}
.mobile-nav-contact p { margin-bottom: 5px; }

/* Mobile body padding */
@media (max-width: 991.98px) {
    body { padding-top: 65px; }
    .top-bar { display: none; }
}

/* ===== Hero section ===== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}
.hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}
.hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 25px;
}
.hero .btn-hero {
    background: var(--white);
    color: var(--primary);
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s;
}
.hero .btn-hero:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

@media (max-width: 767px) {
    .hero { padding: 40px 0; }
    .hero h1 { font-size: 1.6rem; }
}

/* ===== Service cards ===== */
.service-cards { padding: 50px 0; background: var(--bg-light); }
.service-card {
    background: var(--white);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.service-card .icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}
.service-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-dark);
}
.service-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}
.service-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ===== Content sections ===== */
.content-section { padding: 40px 0; }
.content-section h1 {
    color: var(--primary-dark);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}
.content-section h2 {
    color: var(--primary-dark);
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 25px;
    margin-bottom: 12px;
}
.content-section h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* ===== Breadcrumbs ===== */
.breadcrumb-bar {
    background: var(--bg-light);
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}
.breadcrumb-bar .breadcrumb {
    margin-bottom: 0;
    font-size: 0.85rem;
}
.breadcrumb-bar .breadcrumb-item a { color: var(--primary); }

/* ===== Info cards ===== */
.info-card {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    padding: 20px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 20px;
}
.info-card h4 {
    color: var(--primary-dark);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

/* ===== Contact info boxes ===== */
.contact-box {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}
.contact-box h3 {
    color: var(--primary-dark);
    font-size: 1.15rem;
    margin-bottom: 15px;
}
.contact-box i { color: var(--primary); width: 20px; }

/* ===== Article list ===== */
.article-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 20px;
    transition: box-shadow 0.2s;
}
.article-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.article-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.article-card-body {
    padding: 20px;
}
.article-card-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.article-card-body h3 a {
    color: var(--primary-dark);
    text-decoration: none;
}
.article-card-body h3 a:hover { color: var(--primary); }
.article-card-body .date {
    color: var(--text-light);
    font-size: 0.8rem;
    margin-bottom: 8px;
}
.article-card-body p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ===== Emergency banner ===== */
.emergency-banner {
    background: var(--accent-red);
    color: #fff;
    padding: 15px;
    text-align: center;
    font-weight: 600;
}
.emergency-banner a { color: #fff; text-decoration: underline; }

/* ===== Footer ===== */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.85);
    padding: 50px 0 20px;
    margin-top: 40px;
}
.site-footer h5 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 15px;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li { margin-bottom: 6px; }
.footer-links a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.9rem;
}
.footer-links a:hover { color: #fff; }
.site-footer hr { border-color: rgba(255,255,255,0.2); }
.site-footer .text-muted { color: rgba(255,255,255,0.5) !important; }
.site-footer .text-muted a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
}
.site-footer .text-muted a:hover { color: #fff; }
.site-footer .disclaimer {
    font-style: italic;
    opacity: 0.6;
}

/* ===== Utility ===== */
.page-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
}
.sidebar-box {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}
.sidebar-box h4 {
    color: var(--primary-dark);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.sidebar-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-box ul li {
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e0e0e0;
}
.sidebar-box ul li:last-child { border-bottom: none; }
.sidebar-box ul li a { font-size: 0.9rem; }
