﻿* {
    font-family: sans-serif;
    box-sizing: border-box;
}

body {
    background: #ffffff;
    margin: 0;
    padding: 0;
}

.bodyclor {
    padding-top: 160px;
}

/* ========== Header ========== */
.headerpart {
    z-index: 1030;
}

.top-header {
    background-color: whitesmoke;
    border-bottom: 1px solid #ddd;
    font-size: 16px;
    padding: 8px 20px;
}

    .top-header span,
    .top-header a {
        cursor: pointer;
        transition: color 0.3s ease;
    }

        .top-header a:hover {
            color: #007bff !important;
        }

.header-log h2 {
    font-size: 2.0rem;
    margin: 0;
    line-height: 1.3;
}


/* ========== Main Navbar ========== */
.main-navbar {
    background-color: #0f4c9f;
    height: 45px;
    padding: 0;
}

    .main-navbar .navbar-nav {
        align-items: center;
    }

    .main-navbar .nav-link {
        color: white;
        font-weight: 100;
        height: 45px;
        display: flex;
        align-items: center;
        font-size: 17px;
        transition: background-color 0.3s ease;
    }

        .main-navbar .nav-link:hover {
            background-color: #007bff;
            color: #fff;
        }

        /* ✅ FIX: Keep menu text white after click */
        .main-navbar .nav-link:focus,
        .main-navbar .nav-link:active,
        .main-navbar .nav-link:visited {
            color: white !important;
        }

/* ========== Dropdown ========== */
.dropdown-theme {
    display: none;
    min-width: 200px;
    padding: 0;
    font-size: 16px;
}

.nav-item.dropdown:hover > .dropdown-theme {
    display: block !important;
    animation: slideFade 0.25s ease forwards;
}

.dropdown-item {
    font-size: 16px;
    color: black;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

    .dropdown-item:hover {
        background-color: #f7541d;
        color: black;
        font-weight: 500;
    }

/* ========== Dropend (Nested Dropdown) ========== */
.dropend {
    position: relative;
}

    .dropend > .dropdown-theme {
        top: 0;
        left: 100%;
        display: none;
    }

    .dropend:hover > .dropdown-theme {
        display: block !important;
        animation: slideFade 0.25s ease forwards;
    }

    .dropend > a::after {
        content: "\f105";
        font-weight: 900;
        margin-left: auto;
        font-size: 20px;
    }

/* ========== Animations ========== */
@keyframes slideFade {
    0% {
        opacity: 0;
        transform: translateY(-8px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== Footer ========== */
footer {
    background: linear-gradient(135deg, #0a3d7a 0%, #0f4c9f 100%);
    color: #fff;
    font-size: 14px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

    footer h6 {
        font-weight: 600;
        font-size: 14px;
        letter-spacing: 0.5px;
        margin-bottom: 0.75rem;
        padding-bottom: 0.4rem;
        border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    }

    footer ul {
        margin: 0;
        padding: 0;
    }

        footer ul li {
            margin-bottom: 0.25rem;
        }

    footer a {
        color: #fff;
        text-decoration: none;
        opacity: 0.85;
        transition: all 0.3s ease;
    }

        footer a:hover {
            opacity: 1;
        }

.contact-info p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
    opacity: 0.9;
    font-size: 13px;
}

footer hr {
    border-color: rgba(255, 255, 255, 0.2);
    opacity: 1;
    margin: 1.5rem 0 0.75rem;
}

.footer-bottom {
    font-size: 12px;
    opacity: 0.85;
}

.footer-columns {
    padding: 2rem 0 1rem;
}

/* ========== Responsive Styles ========== */
@media (max-width: 1200px) {
    .header-log h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 992px) {
    .bodyclor {
        padding-top: 180px;
    }

    .main-navbar {
        height: auto;
    }

        .main-navbar .nav-link {
            padding: 10px 15px;
            height: auto;
            justify-content: space-between;
        }

    .dropdown-theme,
    .dropend > .dropdown-theme {
        position: static !important;
        display: block;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease-in-out;
        box-shadow: none;
    }

    .nav-item.dropdown:hover > .dropdown-theme,
    .dropend:hover > .dropdown-theme {
        opacity: 1;
        max-height: 500px;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-item {
        padding: 10px 20px;
    }

    .dropend > a::after {
        content: "\f107";
    }
}

@media (max-width: 768px) {
    .bodyclor {
        padding-top: 200px;
    }

    .top-header {
        font-size: 12px;
        padding: 5px 10px;
        flex-wrap: wrap;
        gap: 8px !important;
    }

    .header-log h2 {
        font-size: 1rem;
    }

        .header-log h2:last-child {
            margin-top: -8px !important;
        }

    .headerpart img[height="95"] {
        height: 60px !important;
        width: 54px !important;
    }

    .headerpart img[height="95"] {
        height: 60px !important;
    }

    footer {
        font-size: 14px;
    }

        footer .col-md-3 {
            margin-bottom: 20px;
        }
}

.social-icons {
    display: flex;
    justify-content: start;
    gap: 20px;
}

.social-link {
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

    .social-link:hover {
        transform: scale(1.2);
        color: #ffd700;
    }

@media (max-width: 576px) {
    .bodyclor {
        padding-top: 220px;
        margin: 0.25rem;
    }

    .top-header {
        justify-content: center !important;
        text-align: center;
    }

    .header-log h2 {
        font-size: 1.5rem;
        line-height: 2.2rem;
        font-weight:500;
    }
    .header-log img {
        display: block;
        margin-left: 7px; /* left side */
        margin-right: auto;
        text-align:center;
        
    }

    .headerpart .col-lg-6 {
        justify-content: start;
        margin-left: 0 !important;
    }

  

    .main-navbar .nav-link {
        font-size: 14px;

    }

    .dropdown-item {
        font-size: 14px;
        padding: 8px 15px;
    }

    footer h6 {
        font-size: 16px;
    }

    footer .small {
        font-size: 13px;
    }

    
}

@media (max-width: 400px) {
    .header-log h2 {
        font-size: 0.8rem;
    }

    .headerpart img[height="60"] {
        height: 50px !important;
        width: 45px !important;
    }

    .dropdown-item {
        font-size: 13px;
    }
}

/* ========== Agency Grid Section ========== */


.agency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 26px;
    padding: 30px 15px;
    max-width: 1100px;
    margin: auto;
}

.agency-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06), inset 0 0 12px rgba(63, 81, 181, 0.04);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    padding: 22px 18px;
    border-left: 4px solid #00bcd4;
    font-size: 0.85rem;
    font-style: italic;
    letter-spacing: 0.04em;
    line-height: 1.4;
    color: #2c3e50;
    cursor: default;
}

    .agency-card:hover {
        transform: translateY(-6px) scale(1.02);
        box-shadow: 0 14px 30px rgba(255, 140, 0, 0.4);
        border-left-color: #ff8c00;
        cursor: pointer;
    }

    .agency-card h5 {
        font-size: 1.2rem;
        font-weight: 700;
        color: #34568B;
        margin-bottom: 12px;
        border-bottom: 2px solid #00bcd4;
        padding-bottom: 6px;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .agency-card p {
        margin-bottom: 15px;
        color: #444a57;
    }

    .agency-card a {
        display: inline-block;
        background: linear-gradient(to right, #00bcd4, #34568B);
        color: white;
        padding: 6px 16px;
        border-radius: 20px;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.85rem;
        transition: background 0.3s ease, transform 0.2s, box-shadow 0.3s ease;
        box-shadow: 0 2px 8px rgba(0, 188, 212, 0.3);
    }

        .agency-card a:hover {
            background: linear-gradient(to right, #ff8c00, #ffb347);
            transform: scale(1.06);
            box-shadow: 0 2px 8px rgba(255, 140, 0, 0.5);
        }

.disabled {
    background: #b0bec5 !important;
    pointer-events: none;
    cursor: default;
    box-shadow: none !important;
    color: #eceff1 !important;
}
