:root {
    --primary-color: #0d47a1;
    /* Deep Blue */
    --secondary-color: #f5f5f5;
    /* Light Gray */
    --accent-color: #d32f2f;
    /* Red */
    --header-top-bg: #b71c1c;
    /* Top Bar Red */
    --nav-bg: #2196f3;
    /* Nav Blue */
    --text-color: #333;
    --white: #ffffff;
    --border-color: #ddd;
}

/* RESET */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

/* UTILS */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
}

.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.text-center {
    text-align: center;
}

.hidden-mobile {
    display: block;
}

/* TOP BAR */
.top-bar {
    background-color: var(--header-top-bg);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.9rem;
    font-weight: bold;
}

.top-bar a,
.top-bar span {
    color: var(--white);
    margin-left: 15px;
}

.top-links a {
    background: #ffca28;
    color: #000;
    padding: 2px 10px;
    border-radius: 2px;
    font-size: 0.8rem;
    margin-left: 5px;
}

/* HEADER */
.main-header {
    background-color: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
}

.header-logos {
    display: flex;
    align-items: center;
    gap: 20px;
}

.secondary-logos img {
    height: 60px;
    margin-left: 15px;
    transition: transform 0.3s;
}

.secondary-logos img:hover {
    transform: scale(1.05);
}

/* NAVIGATION */
.main-nav {
    background: linear-gradient(to right, #0d47a1, #2196f3);
    color: var(--white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.main-nav ul {
    display: flex;
    flex-wrap: wrap;
}

.main-nav>ul>li {
    position: relative;
}

.main-nav a {
    display: block;
    padding: 14px 20px;
    font-size: 0.95rem;
    text-transform: uppercase;
    color: var(--white);
    font-weight: 600;
    transition: all 0.3s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.main-nav a:hover,
.main-nav li:hover>a {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffca28;
}

/* DROPDOWN */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
}

.dropdown li {
    border-bottom: 1px solid #eee;
}

.dropdown a {
    color: var(--primary-color);
    padding: 12px 15px;
    font-size: 0.9rem;
    border: none;
}

.dropdown a:hover {
    background-color: #f9f9f9;
    color: var(--accent-color);
}

.main-nav li:hover .dropdown {
    display: block;
}

/* HERO SLIDER */
.hero-slider {
    border-bottom: 4px solid var(--primary-color);
    background: #eee;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Added min-height fallback */

/* NEWS TICKER */
.news-ticker {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 10px 0;
    display: flex;
    align-items: center;
}

.ticker-title {
    background-color: #b71c1c;
    padding: 5px 15px;
    font-weight: bold;
    margin-right: 10px;
    white-space: nowrap;
}

.marquee {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.marquee p {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* 3-COLUMN CONTENT GRID */
.main-content-grid {
    display: grid;
    grid-template-columns: 260px 1fr 280px;
    gap: 25px;
    padding: 40px 0;
    align-items: start;
}

/* LEFT SIDEBAR */
.sidebar-menu {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.sidebar-menu h3 {
    background: var(--primary-color);
    padding: 15px;
    font-size: 1.1rem;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    margin: 0;
}

.sidebar-menu ul {
    margin: 0;
    padding: 0;
}

.sidebar-menu ul li {
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-menu ul li:last-child {
    border-bottom: none;
}

.sidebar-menu ul li a {
    display: block;
    padding: 12px 15px;
    color: #444;
    font-size: 0.95rem;
    font-weight: 500;
    transition: padding-left 0.2s;
}

.sidebar-menu ul li a:hover {
    background: #f8f9fa;
    color: var(--primary-color);
    padding-left: 20px;
}

/* CENTER CONTENT */
.officials-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.official-card {
    text-align: center;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    width: 160px;
}

.official-card:hover {
    transform: translateY(-5px);
}

.official-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 4px;
    border: 3px solid #f0f0f0;
}

.official-card h4 {
    font-size: 0.9rem;
    margin-top: 10px;
    color: var(--primary-color);
    font-weight: 700;
}

.official-card p {
    font-size: 0.8rem;
    color: #777;
    margin-top: 2px;
}

.section-title {
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* RIGHT SIDEBAR */
.right-links {
    margin-bottom: 20px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.right-links h3 {
    background: var(--nav-bg);
    color: white;
    padding: 15px;
    font-size: 1.1rem;
    margin: 0;
    text-align: center;
}

.right-links ul {
    border: none;
    margin: 0;
    padding: 0;
}

.right-links ul li {
    border-bottom: 1px solid #f0f0f0;
}

.right-links ul li a {
    display: block;
    padding: 12px 15px;
    color: #333;
    font-size: 0.9rem;
}

.right-links ul li a:hover {
    background: #f8f9fa;
    color: var(--primary-color);
}

/* FOOTER */
.footer-dark {
    background-color: #222;
    padding: 50px 0;
    color: #ddd;
}

.contact-row {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.contact-info-block h3 {
    border-bottom: 2px solid #555;
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: #fff;
}

.contact-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.map-container iframe {
    width: 100%;
    height: 250px;
    border: none;
}

.copyright {
    background-color: #111;
    text-align: center;
    padding: 20px 0;
    color: #888;
    border-top: 1px solid #333;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .main-content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-menu,
    .right-links {
        margin-bottom: 20px;
    }

    .contact-row {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .header-logos {
        flex-direction: column;
        text-align: center;
    }

    .secondary-logos {
        display: none;
    }

    .main-nav {
        display: none;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
    }

    .hidden-mobile {
        display: none;
    }
}