:root {
    --primary-color: #0056b3; /* Government Blue */
    --secondary-color: #f8f9fa; /* Light Gray */
    --accent-color: #d63384; /* Highlight */
    --text-dark: #333333;
    --text-light: #ffffff;
    --border-color: #dee2e6;
    --footer-bg: #212529;
    --header-bg: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #f4f7f6;
}

/* --- Top Bar --- */
.top-bar {
    background-color: #f1f1f1;
    font-size: 0.85rem;
    padding: 5px 0;
    border-bottom: 1px solid #ddd;
}

.top-bar a {
    color: #555;
    text-decoration: none;
    margin-left: 15px;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: var(--primary-color);
}

/* --- Main Header --- */
.main-header {
    background-color: var(--header-bg);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 70px;
    margin-right: 15px;
}

.header-partner-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.dept-name h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--primary-color);
    text-transform: uppercase;
    line-height: 1.2;
}

.dept-name p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
}

/* --- Navbar --- */
.navbar {
    background: linear-gradient(to right, #004d99, #003366);
    padding: 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.navbar-brand {
    display: none; /* Hidden on desktop, visible on mobile via media query if needed */
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,0.9);
    padding: 15px 18px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    border-bottom: 3px solid #ffcc00;
}

.dropdown-menu {
    border-radius: 0;
    border: none;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    margin-top: 0;
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* --- Marquee --- */
.news-ticker {
    background-color: #ffcc00;
    color: #000;
    padding: 8px 0;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.ticker-title {
    background-color: #cc0000;
    color: #fff;
    padding: 8px 15px;
    margin-right: 10px;
    font-weight: bold;
    text-transform: uppercase;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
    position: absolute;
    z-index: 10;
    height: 40px; /* Match parent height roughly */
    display: flex;
    align-items: center;
    top: 0; /* Adjust based on parent container */
}

/* --- Carousel --- */
#heroCarousel .carousel-item img {
    height: 450px;
    object-fit: cover;
}

#partnerCarousel .carousel-item img {
    height: 77px;
    object-fit: contain;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 5px;
}

/* --- Section Styling --- */
.section-padding {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title h2 {
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: #ffcc00;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* --- Cards --- */
.card-hover {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.key-highlight-card {
    border-radius: 16px;
    border: none;
    color: #ffffff;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.key-highlight-card .card-title,
.key-highlight-card .card-text {
    color: #ffffff;
}

.key-highlight-card .service-icon {
    color: #ffffff;
}

.key-highlight-1 {
    background-color: #7f8fd5;
}

.key-highlight-2 {
    background-color: #00bcd4;
}

.key-highlight-3 {
    background-color: #e91e63;
}

.key-highlight-4 {
    background-color: #4caf50;
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.leadership-card {
    overflow: hidden;
}

.leader-photo {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

/* --- Quick Links Sidebar --- */
.quick-links-card .list-group-item {
    border: none;
    border-bottom: 1px solid #eee;
    padding: 12px 15px;
    transition: padding-left 0.3s;
}

.quick-links-card .list-group-item:hover {
    background-color: #f8f9fa;
    padding-left: 25px;
    color: var(--primary-color);
    font-weight: 500;
}

.quick-links-card .list-group-item i {
    margin-right: 10px;
    color: var(--accent-color);
}

.partner-logo {
    max-height: none;
    height: 77px;
    width: auto;
    object-fit: contain;
    border: 1px solid #dee2e6;
    padding: 5px; /* Optional: adds a bit of spacing inside the border */
}

.logo-strip .img-fluid {
    max-width: none;
}

.logo-strip .partner-logo {
    height: 80px;
    max-height: none;
    width: auto;
}

/* --- Footer --- */
footer {
    background-color: var(--footer-bg);
    color: #bbb;
    padding-top: 60px;
    font-size: 0.9rem;
}

footer h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

footer a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    margin-bottom: 10px;
}

footer a:hover {
    color: #ffcc00;
    padding-left: 5px;
}

.footer-bottom {
    background-color: #1a1e21;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    border-top: 1px solid #333;
}

/* --- Login Page --- */
.login-container {
    max-width: 400px;
    margin: 80px auto;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header img {
    height: 60px;
    margin-bottom: 15px;
}

/* --- Breadcrumb --- */
.page-header {
    background: linear-gradient(rgba(0,51,102,0.8), rgba(0,51,102,0.8)), url('https://via.placeholder.com/1920x400') no-repeat center center;
    background-size: cover;
    padding: 60px 0;
    color: #fff;
    text-align: center;
    margin-bottom: 40px;
}

.breadcrumb {
    justify-content: center;
    background: transparent;
}

.breadcrumb-item a {
    color: #ffcc00;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #fff;
}

/* --- Contact --- */
.contact-info-box {
    padding: 30px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    margin-bottom: 30px;
    height: 100%;
}

.contact-info-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .navbar-brand {
        display: block;
        color: #fff !important;
        font-weight: 700;
    }
    
    .logo-section {
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .dept-name {
        text-align: center;
    }
    
    .carousel-item img {
        height: 300px;
    }
}
