@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* ===== BASE STYLES ===== */
:root {
    --primary-color: #0070C0;
    --primary-hover: #005999;
    --text-primary: #000000;
    --text-secondary: #475569;
    --text-light: #525252;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #081F37;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --font-primary: 'Roboto', sans-serif;
}

.btn-primary {
    background: var(--primary-color);
}

.btn-primary:hover, .btn-login:hover {
    background: #004B81 !important;
    /* max-width: 300px; */
    transform: translateY(-2px);
}

.btn-contact:hover {
    border-color: #004B81;
    color: #005999;
    transform: translateY(-2px);

}

.text-theme-blue-color {
    color: var(--primary-color);
}

body {
    font-family: 'Roboto', sans-serif;
    padding-top: 80px;
    /* background: #f8f9fa; */
}

/* ===== NAVBAR STYLES ===== */
.navbar {
    background: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 0.1rem 0;
    height: 80px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333 !important;
    font-weight: 600;
    font-size: 1.5rem;
    -webkit-transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
}

.navbar-brand img {
    height: auto !important;
    /* Set fixed height */
    width: auto;
    image-rendering: crisp-edges;
}

.navbar-nav .nav-link {
    color: #666;
    font-weight: 500;
    padding: 0.5rem 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    margin: 0 0.1rem;
}

.navbar-nav .nav-link:hover {
    color: #0066cc !important;
    background: #f8f9fa;
}

.navbar-nav .nav-link.active {
    color: #0066cc !important;
    background: #e6f3ff;
}

/* ===== NAVBAR BUTTONS ===== */
.nav-buttons {
    display: flex;
    align-items: center;
}

.btn-contact {
    background: transparent;
    border: 1px solid #ddd;
    color: #666;

    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-decoration: none;
    margin-right: 0.5rem;
    border-color: #0070C0;
    border-radius: 6px;
    color: #0070C0;
}

.btn-contact:hover {
    border-color: #0066cc;
    color: #0066cc;
    text-decoration: none;
}

.btn-login, .btn-contact {
    height: 38px;
    display: flex;
    padding: 0.2rem 1rem;
    align-items: center;
    width: 110px;
    justify-content: center;
}

.btn-login {
    background: #0066cc;
    color: white;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid #0066cc;
}

.btn-login:hover {
    background: #0052a3;
    color: white;
    text-decoration: none;
}

/* ===== NAVBAR TOGGLER ===== */
.navbar-toggler {
    border: none;
    padding: 0.4rem 0.6rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== DROPDOWN MENU STYLES ===== */
.nav-item {
    position: static;
}

.navbar-nav {
    position: relative;
}

.dropdown-menu {
    background: white;
    border: none;
    box-shadow: 0px 5px 4.5px 0px #00000040;
    border-radius: 12px;
    width: auto;
    min-width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    margin-top: 0;
    position: absolute;
    z-index: 1000;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
}

/* ===== DROPDOWN CONTENT LAYOUT ===== */
.dropdown-content {
    display: grid;
    grid-template-columns: 350px auto auto;
    gap: 0;
    align-items: flex-start;
    min-height: 400px;
    max-width: 1400px;
    margin: 0 auto;
}

.dropdown-content-no-submenu {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 0.5rem;
    align-items: flex-start;
    min-height: 400px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== DROPDOWN COLUMNS ===== */
.dropdown-left {
    display: flex;
    flex-direction: column;
    background: #F8F8F9;
    padding: 2rem 0.5rem;
    height: 100%;
    border-radius: 0 0 0 12px;
    font-size: 16px;
    font-weight: 400;
}

.dropdown-middle {
    background: #f8f9fa;
    padding: 2rem 1rem;
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-20px);
    transition: all 0.4s ease;
    height: 100%;
    width: max-content;
    border-right: 1px solid #e9ecef;
    position: relative;
    align-self: start;
    margin-top: 0;
    border-radius: 0px;
}

.dropdown-middle.show {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.dropdown-right {
    height: 99%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-self: start;
    position: sticky;
    top: 0;
    border-radius: 0 12px 12px 0;
}

/* ===== DROPDOWN ITEMS ===== */
.dropdown-item {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.8rem 1rem;
    border: none;
    background: none;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
    display: block;
    position: relative;
    border-radius: 8px;
    margin-bottom: 0.25rem;
}

.dropdown-item:hover {
    color: #0066cc;
    background: #f0f7ff00;
    transform: translateX(5px);
    text-decoration: none;
}

.dropdown-item:focus {
    color: #0066cc;
    background: #f0f7ff00;
    outline: none;
}

/* ===== DROPDOWN DESCRIPTION ===== */
.dropdown-description {
    background: white;
    padding: 1.5rem 1.5rem 0 1.5rem;
    border-radius: 12px;
    position: relative;
    display: flex;
    height: 99.9%;
    flex-direction: column;
    flex-wrap: wrap;
}

.dropdown-description h6 {
    font-size: 1rem;
    color: #0066cc;
    display: flex;
    align-items: center;
    font-weight: 600;
}

.dropdown-description h6::before {
    content: "ℹ";
    background: #0066cc;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    margin-right: 0.8rem;
    font-weight: 600;
}

.dropdown-description p {
    color: #666;
    font-size: 14px;
    line-height: 20px;
    transition: all 0.3s ease;
    margin-bottom: 0;
    flex-grow: 0;
}

.dropdown-image {
    width: 311px;
    height: 266px;
    object-fit: none;
    transition: all 0.3s ease;
    /* box-shadow: 0 4px 12px rgba(0,0,0,0.1); */
    margin-top: auto;
}

/* ===== SUBMENU STYLES ===== */
.dropdown-submenu-toggle {
    position: relative;
}

.submenu-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: #0066cc;
    transition: all 0.3s ease;
    font-weight: 600;
}

.dropdown-submenu-toggle:hover .submenu-arrow {
    transform: translateY(-50%) translateX(5px);
    color: #0066cc;
}

.submenu-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #0066cc;
}

.submenu-header h4 {
    color: #0066cc;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.submenu-content {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.submenu-content::-webkit-scrollbar {
    width: 4px;
}

.submenu-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.submenu-content::-webkit-scrollbar-thumb {
    background: #0066cc;
    border-radius: 4px;
}

.submenu-item {
    display: block;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 400;
    /* transition: all 0.3s ease; */
    line-height: 1.4;
    margin-bottom: 0.5rem;
    /* border: 1px solid transparent; */
}

.submenu-item:hover {
    color: #0066cc;
    background: #f0f7ff00;
    text-decoration: none;
    /* transform: translateX(5px); */
    /* box-shadow: 0 2px 8px rgba(0, 102, 204, 0.1); */
}

/* ===== TWO-COLUMN SUBMENU LAYOUT ===== */
.submenu-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.submenu-column {
    display: flex;
    flex-direction: column;
}

.submenu-column .submenu-item {
    padding: 0.7rem 0.8rem;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

.dropdown-menu {
    padding: 0 !important;
    border-radius: 18px !important;
}

.dropdown-menu .dropdown-content {
    border-radius: 18px;
}

/* ===== RESPONSIVE STYLES ===== */

/* Large screens */
@media (max-width: 1200px) {
    .dropdown-menu {
        padding: 0;
    }

    .dropdown-content {
        grid-template-columns: 300px auto auto;
        gap: 1.5rem;
        max-width: 1200px;
    }

    .dropdown-content-no-submenu {
        grid-template-columns: 300px 1fr;
        gap: 2rem;
        max-width: 1200px;
    }

    .navbar-nav .nav-link {
        font-size: 0.8rem;
        padding: 0.5rem 0.5rem;
        text-align: center;
    }
}

/* Mobile and tablet */
@media (max-width: 991.98px) {
    body {
        padding-top: 70px;
    }

    .navbar {
        padding: 0.5rem 0;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }

    .nav-buttons {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #dee2e6;
        justify-content: center;
        width: 100%;
    }



    .dropdown-description {
        display: none;
    }

    .navbar-collapse.collapse.show {
        background-color: #ffffff;
        padding: 2rem 0;
        border-radius: 15px;
    }

    .navbar-nav {
        width: 100%;
    }

    .navbar-nav .nav-link {
        text-align: left;
        margin: 0.2rem 0;
        position: relative;
        padding: 0.5rem 0.5rem;
        width: 100%;
    }

    .dropdown-menu {
        width: 100% !important;
        position: relative !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        top: auto !important;
        margin-top: 0 !important;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .dropdown-content,
    .dropdown-content-no-submenu {
        grid-template-columns: 1fr;
        gap: 1rem;
        min-height: auto;
    }

    .dropdown-right {
        position: relative;
    }

    .dropdown-description {
        min-height: auto;
    }

    .dropdown-middle {
        background: #F8F8F9;
        padding: 1rem;
        border-radius: 6px;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .dropdown-middle.show {
        display: block;
        animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .submenu-arrow {
        right: 1rem;
    }

    .dropdown-submenu-toggle.expanded .submenu-arrow {
        transform: translateY(-50%) rotate(90deg);
    }

    .submenu-item {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }

    .submenu-item:hover {
        transform: none;
        padding-left: 0;
        background: rgba(0, 102, 204, 0.1);
    }

    .submenu-two-columns {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .dropdown-submenu-toggle {
        position: relative;
        cursor: pointer;
        -webkit-user-select: none;
        user-select: none;
    }

    .dropdown-submenu-toggle:active {
        background: rgba(0, 102, 204, 0.1);
    }

    .submenu-header {
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid #0066cc;
    }

    .submenu-header h4 {
        font-size: 1rem;
        margin: 0;
    }

    .submenu-content {
        max-height: 300px;
        overflow-y: auto;
    }

    .submenu-item {
        padding: 0.7rem 0.5rem;
        margin-bottom: 0.3rem;
        border-radius: 4px;
        transition: all 0.2s ease;
    }

    .submenu-item:active {
        background: rgba(0, 102, 204, 0.15);
        transform: scale(0.98);
    }

}