: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: #003366;
    --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: var(--primary-color);
    color: #fff;
    font-size: 0.85rem;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

    .top-bar a {
        color: rgba(255, 255, 255, 0.9);
        text-decoration: none;
        margin-left: 15px;
        transition: color 0.3s;
    }

        .top-bar a:hover {
            color: #ffcc00;
        }

/* --- Main Header --- */
.main-header {
    background-color: var(--header-bg);
    padding: 0px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 100px;
    margin-right: 15px;
}

.header-partner-logo {
    height: 70px;
    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);
    z-index: 99999 !important;
}

.navbar.sticky-top {
    z-index: 99999 !important;
}

.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;
    }

    .navbar-dark .navbar-nav .nav-link.bg-warning.active {
        background-color: #ffcc00 !important;
        color: #000 !important;
        border-bottom: 4px solid rgba(var(--bs-primary-rgb), var(--bs-bg-opacity)) !important;
    }

.dropdown-menu {
    border-radius: 0;
    border: none;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    margin-top: 0;
    z-index: 100000 !important;
}

.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 */
}

.ticker-content-wrapper {
    overflow: hidden;
    padding-left: 120px;
    /* Make space for the title */
    white-space: nowrap;
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    animation: ticker-scroll 20s linear infinite;
    padding-left: 100%;
    /* Start from off-screen right */
}

    .ticker-content:hover {
        animation-play-state: paused;
    }

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.vertical-ticker-content {
    animation: vertical-scroll 10s linear infinite;
}

    .vertical-ticker-content:hover {
        animation-play-state: paused;
    }

@keyframes vertical-scroll {
    0% {
        transform: translateY(100%);
    }

    100% {
        transform: translateY(-100%);
    }
}

/* Hero Carousel removed - styles moved to index-carousel.css */
#partnerCarousel .carousel-item img {
    height: 77px;
    object-fit: contain;
}

#partnerCarousel .carousel-item img {
    height: 77px;
    object-fit: contain;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 35px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    bottom: 25%;
    max-width: 650px;
    margin: 0 auto;
    left: 10%;
    right: 10%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.carousel-item.active .carousel-caption h3 {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.carousel-item.active .carousel-caption p {
    animation: fadeInUp 0.8s ease forwards 0.3s;
    opacity: 0;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.carousel-item.active .carousel-caption .btn {
    animation: fadeInUp 0.8s ease forwards 0.6s;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- 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;
    }

/* Different colors */
.key-highlight-1 {
    background: #0d6efd;
}

.key-highlight-2 {
    background: #198754;
}

.key-highlight-3 {
    background: #6f42c1;
}

.key-highlight-4 {
    background: #fd7e14;
}

.key-highlight-5 {
    background: #dc3545;
}

.key-highlight-6 {
    background: #20c997;
}

.key-highlight-7 {
    background: #6610f2;
}

.key-highlight-8 {
    background: #0dcaf0;
}

.key-highlight-9 {
    background: #e83e8c;
}

.key-highlight-10 {
    background: #fab005;
}

.key-highlight-11 {
    background: #004085;
}

.key-highlight-12 {
    background: #5a6268;
}

.key-highlight-13 {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.key-highlight-14 {
    background: linear-gradient(135deg, #16a085, #1abc9c);
}

.key-highlight-15 {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.leadership-card {
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 12px !important;
}

    .leadership-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 51, 102, 0.15) !important;
        background: #ffffff;
    }

.leader-photo {
    width: 110px;
    height: 110px;
    object-fit: cover;
    transition: all 0.4s ease;
    border: 4px solid #fff !important;
}
.leader-photo2 {
    width: 100px;
    height: 100px;
    object-fit: cover;
    transition: all 0.4s ease;
    border: 4px solid #fff !important;
}
.leadery {
    width: 130px !important;
    height: 130px !important;
    border: 4px solid orange !important;
}
.leadery1 {
    width: 110px !important;
    height: 110px !important;    
}
.leadership-card:hover .leader-photo {
    transform: scale(1.15);
    border-color: #ffcc00 !important;
    margin-bottom: 20px !important;
}
.leadership-card:hover .leader-photo2 {
    transform: scale(1.15);
    border-color: #ffcc00 !important;
    margin-bottom: 20px !important;
}

.leadership-card h6,
.leadership-card p {
    transition: all 0.4s ease;
}

.leadership-card:hover h6 {
    color: var(--primary-color);
    transform: translateY(5px);
}

.leadership-card:hover p {
    transform: translateY(5px);
}

/* --- 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 */
}

/* --- Footer --- */
footer {
    background-color: var(--footer-bg);
    color: #e0e0e0;
    padding-top: 60px;
    font-size: 0.9rem;
}

    footer h5 {
        color: #ffcc00;
        font-weight: 700;
        margin-bottom: 25px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    footer a {
        color: #ffffff;
        text-decoration: none;
        transition: all 0.3s;
        display: block;
        margin-bottom: 10px;
        opacity: 0.8;
    }

        footer a:hover {
            color: #ffcc00;
            padding-left: 8px;
            opacity: 1;
        }

.footer-bottom {
    background-color: #002244;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* --- 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: 30px 0;
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
}

.breadcrumb {
    justify-content: center;
    background: transparent;
}

.breadcrumb-item a {
    color: #403735;
    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;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    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 height handled in index-carousel.css */
}

#main-content {
    background-image: url('/assets/img/contentbg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Keeps background still while scrolling */
    background-repeat: no-repeat;
}
