﻿
:root {
    --primary-blue: #1a4b8c;
    --secondary-blue: #2a6fdb;
    --accent-gold: #d4af37;
    --light-bg: #f8f9fa;
    --dark-text: #212529;
    --medium-text: #495057;
    --light-text: #6c757d;
    --border-color: #dee2e6;
    --success-green: #28a745;
    --danger-red: #dc3545;
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark-text);
    background-color: var(--light-bg);
    line-height: 1.6;
    font-size: 0.9rem;
}
.background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(37, 99, 235, 0.1) 1px, transparent 1px);
    background-size: 16px 16px;
    z-index: 0;
}
/* Accessibility Bar */
#b-accessibility {
    background-color: var(--primary-blue);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.b-ministryname span {
    color: white;
    font-weight: 400;
}

.b-acc-icons img {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: var(--transition);
    height: 16px;
}

    .b-acc-icons img:hover {
        opacity: 1;
        transform: translateY(-1px);
    }

.dropdown-menu {
    border-radius: 0.25rem;
    box-shadow: var(--box-shadow);
    border: none;
    font-size: 0.85rem;
    min-width: 220px;
}

/* Header */
#b-header {
    background: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 1000;
}

.b-emblem-image {
    height: 60px;
    margin-right: 1rem;
    transition: var(--transition);
}

.b-appname {
    color: var(--primary-blue);
    font-size: 1.4rem;
    margin-bottom: 0;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.b-appfullname {
    font-size: 0.9rem;
    color: var(--medium-text);
    font-weight: 400;
}

/* Navigation */
.globalnav-bg {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 999;
}

.navbar {
    padding: 0;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.8rem 2rem;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.85rem;
    position: relative;
}

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        color: white;
        background-color: rgba(255, 255, 255, 0.1);
    }

        .navbar-nav .nav-link.active:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 20%;
            right: 20%;
            height: 2px;
            background-color: white;
        }

.navbar-nav .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu {
    background-color: white;
    margin-top: 0;
    border: 1px solid rgba(0,0,0,0.05);
}

.dropdown-item {
    color: var(--dark-text);
    padding: 0.5rem 1.25rem;
    transition: var(--transition);
    font-size: 0.85rem;
}

    .dropdown-item:hover {
        background-color: rgba(26, 75, 140, 0.05);
        color: var(--primary-blue);
        padding-left: 1.5rem;
    }

    .dropdown-item i {
        width: 18px;
        text-align: center;
        margin-right: 0.5rem;
        color: var(--primary-blue);
    }

.dropdown-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--light-text);
    font-weight: 600;
    padding: 0.5rem 1.25rem;
}

/* Hamburger menu */
.bar1, .bar2, .bar3 {
    width: 22px;
    height: 2px;
    background-color: white;
    margin: 5px 0;
    transition: 0.4s;
}

.change .bar1 {
    transform: rotate(-45deg) translate(-4px, 5px);
}

.change .bar2 {
    opacity: 0;
}

.change .bar3 {
    transform: rotate(45deg) translate(-4px, -5px);
}

.b-btn-toggler {
    border: none;
    background: transparent;
    outline: none;
    padding: 0.5rem;
}

/* Main Content */
#main-content {
    padding: 0.5rem 0 !important;
    min-height: calc(100vh - 250px);  
}

/* Footer */
.footer-bs {
    background-color: var(--primary-blue); /* Changed to use your primary blue variable */
    color: white;
    padding: 1.5rem 0 1rem;
    font-size: 0.85rem;
}


.footer-nav p {
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    text-decoration: none;
    display: block;
    padding: 0.25rem 0;
    font-size: 0.85rem;
}

    .footer-nav a:hover {
        color: white;
        padding-left: 5px;
    }

.footer-social img {
    max-height: 40px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: var(--transition);
}

    .footer-social img:hover {
        opacity: 1;
        transform: translateY(-2px);
    }

.backtotop {
    background-color: rgba(255, 255, 255, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

    .backtotop:hover {
        background-color: rgba(255, 255, 255, 0.2);
        transform: translateY(-3px);
        text-decoration: none;
    }

.b-footer-credit {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
}

    .b-footer-credit a {
        color: white;
        text-decoration: none;
        transition: var(--transition);
    }

        .b-footer-credit a:hover {
            text-decoration: underline;
            color: var(--accent-gold);
        }

/* Cards and UI elements */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

    .card:hover {
        transform: translateY(-3px);
        box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
    }

.card-header {
    background-color: var(--primary-blue);
    color: white;
    border-radius: 0.5rem 0.5rem 0 0 !important;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    transition: var(--transition);
}

    .btn-primary:hover {
        background-color: #153b70;
        border-color: #153b70;
        transform: translateY(-1px);
    }

/* Form elements */
.form-control {
    border-radius: 0.25rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
}

    .form-control:focus {
        border-color: var(--primary-blue);
        box-shadow: 0 0 0 0.2rem rgba(26, 75, 140, 0.25);
    }

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .navbar-nav {
        padding: 0.5rem 0;
    }

        .navbar-nav .nav-link {
            padding: 0.6rem 1.25rem;
        }

    .dropdown-menu {
        box-shadow: none;
        border: none;
        background-color: rgba(0, 0, 0, 0.05);
    }

    .dropdown-item {
        padding-left: 2rem;
        color: rgba(255,255,255,0.8);
    }

        .dropdown-item:hover {
            color: white;
            background-color: rgba(255,255,255,0.1);
        }

        .dropdown-item i {
            color: rgba(255,255,255,0.8);
        }
}

@media (max-width: 767.98px) {
    #b-header {
        flex-direction: column;
        text-align: center;
    }

    .b-emblem-image {
        margin: 0 auto 0.75rem;
        height: 50px;
    }

    .b-appname {
        font-size: 1.2rem;
    }

    .b-appfullname {
        font-size: 0.8rem;
    }

    .footer-bs .row > div {
        margin-bottom: 1.5rem;
    }

    .footer-social {
        text-align: center;
    }

    .footer-nav {
        margin-bottom: 1rem;
    }
}

@media (max-width: 575.98px) {
    .b-ministryname {
        display: none;
    }

    .b-acc-icons {
        margin: 0 auto;
    }

    .b-appname {
        font-size: 1.1rem;
    }
}


