:root {
    --primary-color: #0b2545;     /* Deep Navy Blue */
    --secondary-color: #134074;   /* Ocean Blue */
    --accent-color: #d4af37;      /* Official Gold Accent */
    --bg-light: #f4f7f6;          /* Clean Off-White */
    --text-dark: #1d2d44;
    --text-light: #ffffff;
    --border-color: #cbd5e1;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar & Header */
.top-bar {
    background-color: var(--primary-color);
    color: var(--text-light);
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 2px solid var(--accent-color);
}

.top-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
}

.brand-logo i {
    font-size: 2rem;
    margin-right: 12px;
    color: var(--secondary-color);
}

.logo-text .title {
    font-size: 1.25rem;
    font-weight: 700;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logo-text .subtitle {
    font-size: 0.75rem;
    color: #64748b;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--secondary-color);
}

/* Page Components */
.main-content {
    flex: 1;
    padding: 40px 0;
}

.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    padding: 60px 0;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 30px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn:hover {
    opacity: 0.9;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

/* Footer */
.main-footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 40px 0 20px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: var(--accent-color);
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--text-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    color: #94a3b8;
}
/* --- Official Government Banner Styles --- */
.official-banner {
    background: linear-gradient(135deg, #07192f 0%, #0b2545 50%, #134074 100%);
    color: #ffffff;
    padding: 25px 0;
    border-bottom: 4px solid #d4af37; /* Official Gold Accent Bar */
    box-shadow: inset 0 -10px 20px rgba(0,0,0,0.15);
}

.banner-container {
    display: flex;
    align-items: center;
    gap: 25px;
}

.banner-seal img {
    width: 105px;
    height: 105px;
    object-fit: contain;
    filter: drop-shadow(0px 4px 8px rgba(0,0,0,0.4));
}

.banner-text {
    display: flex;
    flex-direction: column;
}

.dept-title {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #d4af37; /* Official Gold Color */
    text-transform: uppercase;
    line-height: 1.1;
    margin: 0;
}

.div-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.4);
    padding-bottom: 6px;
    margin-bottom: 6px;
}

.banner-tagline {
    font-size: 0.8rem;
    font-weight: 600;
    color: #cbd5e1;
    letter-spacing: 1px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.banner-tagline .divider {
    color: #d4af37;
    font-weight: bold;
}

/* Adjusted Navigation Styling */
.navbar {
    background: #0b2545;
    border-bottom: 1px solid #1e3a8a;
    padding: 0;
}

.nav-container {
    display: flex;
    justify-content: flex-start;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    display: block;
    padding: 14px 22px;
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.nav-menu li a:hover {
    background-color: #d4af37;
    color: #0b2545;
}

/* Responsive adjustments for mobile screens */
@media (max-width: 768px) {
    .banner-container {
        flex-direction: column;
        text-align: center;
    }
    .dept-title { font-size: 1.5rem; }
    .div-title { font-size: 1rem; }
    .banner-tagline { flex-direction: column; gap: 2px; }
    .banner-tagline .divider { display: none; }
    .nav-menu { flex-wrap: wrap; }
}