        body { margin: 0; padding: 0; }

        /* Top bar */
        .top-bar {
            background: #2c2c2c;
            color: #fff;
            font-size: 13px;
            padding: 6px 10px; 
            height: 50px;
        }

        .top-bar a {
            color: #fff;
            text-decoration: none;
            margin-right: 15px;
        }

        /* Header */
        .main-header {
            background: #fff;
            padding: 15px 30px;
            border-bottom: 1px solid #ddd;
        }

        .cm-img,
        .minister-img {
            width: 250px;
            height: auto;
        }

        .emblem-img {
            width: 85px;
            height: auto;
        }

        .dept-title {
            font-size: 20px;
            font-weight: 700;
        }

        .dept-sub {
            font-size: 14px;
            color: #555;
            
        }

        /* Navigation */
        .nav-bar {
            background: linear-gradient(to right, #0f9bbf, #3f51b5);

        }

        .nav-bar .nav-link {
            color: #fff !important;
            font-weight: 500;
            padding: 12px 16px;
        }

        .nav-bar .nav-link:hover {
            background: rgba(255,255,255,0.15);
            border-radius: 4px;
        }

        .menu-btn {
            background: #3f51b5;
            color: #fff;
            border-radius: 50%;
            padding: 8px 12px;
        }

        .quick-links-menu {
            width: 250px;
            font-size: 14px;
            border-radius: 6px;
        }

        .quick-links-menu .dropdown-item {
            white-space: normal;
            padding: 8px 14px;
        }

        .quick-links-menu .dropdown-item:hover {
            background-color: #f1f5ff;
        }

        /* Remove underline from all links inside modal */
        #screenReaderModal a {
            text-decoration: none;
            color: #0d6efd; /* Bootstrap primary blue */
        }

        #screenReaderModal a:hover {
            text-decoration: underline; /* optional on hover */
        }

        /* Gray styled table */
        #screenReaderModal table {
            background-color: #f8f9fa;
        }

        #screenReaderModal thead th {
            background-color: #e9ecef;
            color: #000;
            font-weight: 600;
        }

        #screenReaderModal tbody td {
            background-color: #f5f5f5;
            vertical-align: middle;
        }

        .page-header {
            height: 56px;
            background-color: #e6e6e6; /* light gray background */
            border-bottom: 1px solid #cfcfcf;
        }

        /* BACK & MENU BUTTONS */
        .back-btn,
        .menu-toggle {
            background-color: #dad7d7; /* dark gray */
            color: #0e0d0d;
            width: 42px;
            height: 38px;
            border-radius: 10px; /* box type (not round) */
            display: flex;
            align-items: center;
            justify-content: center;
            border: none;
        }

        /* ICON SIZE */
        .back-btn i,
        .menu-toggle i {
            font-size: 16px;
            font-weight: 900;
        }

        /* HOVER EFFECT */
        .back-btn:hover,
        .menu-toggle:hover {
            background-color: #969393;
            color: #fff;
        }

        /* TITLE STYLE */
        .page-title {
            font-weight: 600;
            color: #000;
        }

        .display-menu {
            background-color: #afadad;
            height: 80px;
        }

        /* Gray anchor links */

        .menu-btn {
            width: 40px;
            height: 40px;
            background-color: #0b2d5c; /* dark blue */
            color: #ffffff;
            border-radius: 50%;        /* ROUND */
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 2px 6px rgba(0,0,0,0.25);
        }

        .menu-btn i {
            font-size: 18px;
        }

        /* Hover effect */
        .menu-btn:hover {
            background-color: #081f3f;
        }

        /* LEFT MENU CONTAINER */
        .left-menu {
            position: fixed;
            top: 0;
            left: -300px;
            width: 280px;
            height: 100%;
            background: linear-gradient(to bottom, #061c3a, #021225);
            color: #fff;
            transition: left 0.35s ease;
            z-index: 1100;
            padding-top: 20px;
        }

        /* ACTIVE STATE */
        .left-menu.active {
            left: 0;
        }

        /* CLOSE BUTTON */
        .close-menu {
            background: none;
            border: none;
            color: #fff;
            font-size: 22px;
            position: absolute;
            right: 15px;
            top: 10px;
            cursor: pointer;
        }

        /* MENU LIST */
        .left-menu-list {
            list-style: none;
            padding: 60px 0 0;
            margin: 0;
        }

        .left-menu-list li {
            border-bottom: 1px solid rgba(255,255,255,0.15);
        }

        .left-menu-list a {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 14px 20px;
            color: #dbe5ff;
            text-decoration: none;
            font-size: 15px;
        }

        .left-menu-list a:hover {
            background: rgba(255,255,255,0.08);
            color: #fff;
        }

                /* SUBMENU */
        .submenu {
            list-style: none;
            padding: 0;
            margin: 0;
            display: none;
            background: #0b2d5c;
        }

        .submenu li a {
            padding: 12px 30px;
            font-size: 14px;
            border-top: 1px solid rgba(255,255,255,0.12);
            color: #cfdcff;
        }

        /* ACTIVE STATE */
        .has-submenu.active .submenu {
            display: block;
        }

        .has-submenu.active > a {
            background: rgba(255,255,255,0.08);
        }

        /* ARROW ROTATION */
        .has-submenu i {
            transition: transform 0.3s ease;
        }

        .has-submenu.active i {
            transform: rotate(180deg);
        }

        /* Mobile View */
        @media (max-width: 991px) {

            /* Hide navbar menu items */
            .navbar .container {
                display: none;
            }

            /* Show hamburger button */
            .menu-btn {
                display: flex;
                position: absolute;
                right: 15px;
                top: 10px;
                z-index: 1050;
            }
        }

/* ================= MOBILE VIEW – EXACT LAYOUT ================= */
/* ================= MOBILE IMAGE FIX ================= */
@media (max-width: 991px) {

    /* CM + Minister wrapper */
    .main-header .row {
        display: flex;
        flex-wrap: wrap;
    }

    /* Each image column = 50% */
    .main-header .col-lg-3 {
        width: 50%;
        max-width: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 5px;
    }

    /* Make images responsive */
    .cm-img,
    .minister-img {
        width: 100%;          /* FULL width of column */
        max-width: 160px;     /* Limit size */
        height: auto;         /* Maintain ratio */
        object-fit: contain;
        display: block;
    }

    /* Center logo & text */
    .main-header .col-lg-6 {
        width: 100%;
        max-width: 100%;
        order: -1;
        margin-bottom: 10px;
    }

    .emblem-img {
        width: 60px;
        height: auto;
        margin: 0 auto 6px;
        display: block;
    }

    .dept-title,
    .dept-sub {
        text-align: center;
    }

}

/* ================= FOOTER RESPONSIVE ================= */

.gov-footer {
    background: #0d1f2d;
    color: #fff;
    font-size: 14px;
}

/* TOP */
.footer-top {
    padding: 35px 15px;
}

.footer-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.footer-line {
    width: 35px;
    height: 3px;
    background: #f4c430;
    display: block;
    margin-bottom: 12px;
}

.footer-text {
    color: #d6d6d6;
    line-height: 1.6;
    font-size: large;
}

/* LINKS */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    padding: 6px 0;
}

.footer-links a {
    color: #d6d6d6;
    text-decoration: none;
}

.footer-links a::before {
    content: "› ";
    color: #f4c430;
    font-weight: bold;
}

/* MOBILE ACCORDION BUTTON */
.footer-acc-btn {
    width: 100%;
    background: none;
    color: #fff;
    font-weight: 600;
    border: none;
    padding: 12px 0;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,.2);
}

/* MID BAR */
.footer-mid {
    background: linear-gradient(to right, #1586a8, #3b5bd6);
    padding: 12px 0;
    font-size: 13px;
}

/* BOTTOM */
.footer-bottom {
    padding: 20px 15px;
    font-size: 14px;
    color: #cfcfcf;
}

/* LOGOS */
.footer-logos {
    background: #2b2b2b;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 8px;
}

.footer-logos img {
    height: 34px;
    margin: 0 6px;
    flex-shrink: 0;
}

.footer-paragraph {
    text-align: justify;
    color: #d9d9d9;
    line-height: 1.8;
    font-size: 15px;
}

@media (max-width: 768px) {
    .footer-paragraph {
        font-size: 14px;
    }
}

/* MOBILE */
@media (max-width: 768px) {

    .footer-logos img {
        height: 28px;
    }

    .footer-bottom p {
        margin-bottom: 6px;
    }
}
/* ================= FEEDBACK BUTTON ================= */

.feedback-btn {
    position: fixed;
    right: 0;
    top: 45%;
    background: #1e88e5;
    color: #fff;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px 0 0 6px;
    text-decoration: none;
    z-index: 1200;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.feedback-btn:hover {
    background: #1565c0;
}

/* ================= MOBILE OPTIMIZATION ================= */

.dept-heading {
    font-weight: 600;
}

/* Card refinement */
.mobile-card {
    border-radius: 10px;
}

/* Mobile specific */
@media (max-width: 576px) {

    .dept-heading {
        font-size: 18px;
    }

    .card {
        padding: 16px !important;
    }

    .form-control {
        font-size: 15px;
        height: 42px;
    }

    .btn {
        font-size: 15px;
        padding: 10px;
    }

    table th,
    table td {
        font-size: 13px;
        padding: 8px;
        word-break: break-word;
    }
}

/* ================= ACCESSIBILITY TOOL BAR ================= */

.accessibility-tools {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #2c2c2c;
    padding: 6px 8px;
    border-radius: 18px;
}

/* COMMON BUTTON */
.tool-btn {
    background: #ffffff;
    color: #2c2c2c;
    border: 1px solid #d5d5d5;
    width: 30px;
    height: 26px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.tool-btn:hover {
    background: #e9e9e9;
}

/* ================= TOGGLE SWITCH ================= */

.theme-toggle {
    width: 44px;
    height: 24px;
    background: #ffffff;
    border: 1px solid #d5d5d5;
    border-radius: 14px;
    position: relative;
    cursor: pointer;
}

/* Knob */
.toggle-knob {
    width: 18px;
    height: 18px;
    background: #f39c12;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.25s ease;
}

/* Dark mode ON */
body.dark-mode .toggle-knob {
    transform: translateX(20px);
}

/* ================= DARK MODE (optional) ================= */
body.dark-mode {
    background: #2c2c2c;
    color: #fff;
}

/* Modal open from top */
.modal.top-modal .modal-dialog {
    margin: 1rem auto;
    transform: translateY(-100px);
}

.modal.top-modal.show .modal-dialog {
    transform: translateY(0);
    transition: transform 0.3s ease-out;
}

/* Optional: reduce backdrop opacity */
.modal-backdrop.show {
    opacity: 0.5;
}

/* Fixed width modal */
.modal-fixed-width .modal-dialog {
    max-width: 820px;   /* FIXED horizontal size */
    width: 95%;
    margin: 1.5rem auto;
}

/* Mobile optimization */
@media (max-width: 576px) {
    .modal-fixed-width .modal-dialog {
        max-width: 95%;
    }
}
