/* Global Styles */
body {
    background-color: #f9f9f9;
}

/* Brand Colors Override */
.text-primary {
    color: #004b8d !important;
}

.bg-primary {
    background-color: #004b8d !important;
}

.btn-primary {
    background-color: #004b8d !important;
    border-color: #004b8d !important;
}

.bg-primary-subtle {
    background-color: rgba(0, 75, 141, 0.1) !important;
}

/* Header Overrides */
#main-header {
    background-color: #004b8d !important;
}

/* Nav Link Hover Color */
.nav-link:hover,
.nav-link:focus {
    color: #004b8d !important;
}

.nav-link:hover i,
.nav-link:focus i {
    color: #004b8d !important;
}

/* Card Hover Effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Mobile Menu Button - Ensure visibility on mobile */
#mobile-menu-btn {
    display: block;
}

@media (min-width: 992px) {
    #mobile-menu-btn {
        display: none;
    }
}


/* Top Bar */
#top-bar {
    background-color: #f1f1f1;
    border-bottom: 1px solid #ddd;
    font-size: 0.85rem;
    padding: 5px 0;
    color: #555;
}

#top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#top-bar nav a {
    color: #555;
    text-decoration: none;
    margin-right: 20px;
    font-weight: 500;
}

#top-bar nav a:hover {
    color: #004b8d;
}

#top-bar .social-icons a {
    color: #555;
    margin-left: 10px;
}

/* Main Header */
#main-header {
    background-color: #004b8d;
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 20px;
}

.portal-title {
    font-size: 1.4rem;
    font-weight: 300;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 20px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-area {
    display: flex;
    background: white;
    border-radius: 30px;
    /* Rounded pill shape */
    padding: 5px 15px;
    width: 300px;
    align-items: center;
}

.search-area input {
    border: none;
    flex-grow: 1;
    padding: 8px;
    outline: none;
    font-size: 0.9rem;
}

.search-area button {
    background: none;
    border: none;
    cursor: pointer;
    color: #004b8d;
    font-size: 1rem;
}

.login-btn {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-btn:hover {
    background-color: white;
    color: #004b8d;
}

/* Main Navigation */
#main-nav {
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
    position: relative;
    z-index: 10;
    border-bottom: 1px solid #eaeaea;
}

#main-nav .container ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    /* Slight gap for spacing */
}

#main-nav .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: #555 !important;
    /* Force dark gray */
    font-size: 0.75rem;
    /* Smaller, uppercase looks better */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid transparent;
    border-radius: 4px 4px 0 0;
    /* Slight rounded top */
    transition: all 0.2s ease-in-out;
    min-width: 90px;
    /* Uniform width */
    text-align: center;
}

#main-nav .nav-link i {
    font-size: 1.5rem;
    /* Larger icons */
    color: #004b8d;
    /* Primary Blue */
    margin-bottom: 5px;
    transition: transform 0.2s;
}

#main-nav .nav-link:hover {
    background-color: rgba(0, 75, 141, 0.05);
    /* Subtle blue tint */
    color: #004b8d !important;
    border-bottom-color: #004b8d;
}

#main-nav .nav-link:hover i {
    transform: translateY(-2px);
    /* Slight lift */
}

#main-nav .nav-item.active .nav-link {
    color: #004b8d !important;
    border-bottom-color: #004b8d;
}

/* Main Content Area */
main {
    padding: 40px 0;
    min-height: 600px;
    /* Ensure footer is pushed down */
}

section {
    margin-bottom: 40px;
}

h2 {
    color: #333;
    margin-bottom: 20px;
    font-weight: 300;
    font-size: 1.8rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Service Category Cards */
.service-category-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid #e8e8e8;
}

.service-category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.service-category-title {
    color: #004b8d;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8e8e8;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-category-title i {
    font-size: 1.3rem;
    color: #004b8d;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    margin-bottom: 10px;
}

.service-list li a {
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    padding: 8px 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
    padding-left: 20px;
}

.service-list li a::before {
    content: "›";
    position: absolute;
    left: 5px;
    color: #004b8d;
    font-weight: bold;
    font-size: 1.2rem;
}

.service-list li a:hover {
    background-color: rgba(0, 75, 141, 0.05);
    color: #004b8d;
    padding-left: 25px;
}

/* Highlights Grid */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.highlight-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border: 1px solid #eee;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.icon-box {
    width: 70px;
    height: 70px;
    background-color: #e3f2fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.icon-box i {
    font-size: 2rem;
    color: #004b8d;
}

.highlight-card h3 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.highlight-card p {
    color: #777;
    font-size: 0.9rem;
}

/* Service Buttons Row */
.service-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.service-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    /* Pill shape */
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.service-btn:hover {
    transform: scale(1.05);
}

.service-btn.scarlet {
    background: linear-gradient(135deg, #e53935, #c62828);
}

.service-btn.orange {
    background: linear-gradient(135deg, #ffa726, #fb8c00);
}

/* Footer */
footer {
    background-color: #333;
    color: #ccc;
    font-size: 0.9rem;
}

.footer-top {
    padding: 50px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    border-bottom: 2px solid #004b8d;
    padding-bottom: 10px;
    display: inline-block;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: white;
}

.social-links-footer {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-links-footer a {
    color: #ccc;
    font-size: 1.5rem;
}

.footer-bottom {
    background-color: #222;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #444;
}

/* Mobile Menu Button */
#mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 15px;
}

/* Responsiveness */
@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }

    #main-nav .container ul {
        display: none;
        /* Hide nav links on mobile initially */
        flex-direction: column;
        width: 100%;
        background-color: white;
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    #main-nav.open .container ul {
        display: flex;
    }

    #mobile-menu-btn {
        display: block;
    }

    .search-area {
        display: none;
        /* Simplify header on mobile */
    }

    .service-category-card {
        margin-bottom: 20px;
    }
}