html {
    position: relative;
    min-height: 100%;
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
    margin: 0;
    padding: 0;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.navbar-logo {
    height: 50px;
    width: auto;
    max-width: 55px;
    object-fit: contain;
    flex-shrink: 0;
    perspective: 1000px;
    transform-style: preserve-3d;
    animation: spin-3d 4s infinite linear;
}

.navbar-brand {
    font-weight: 600;
    color: #0B3D91 !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-right: 1rem;
}

@keyframes spin-3d {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(360deg);
    }
}

.navbar-brand:hover {
    color: #2563EB !important;
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
    min-width: fit-content;
    
}

.brand-title-animated {
    position: relative;
    font-size: 1.3rem;
    color: transparent;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    display: inline-block;
    cursor: pointer;
    user-select: none;
    height: 1.35em;
    font-family: serif;
}

    .brand-title-animated span.split-top {
        position: absolute;
        top: 0;
        left: 0;
        color: #0B3D91;
        transition: transform 0.5s ease;
        clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
        overflow: hidden;
        white-space: nowrap;
        transform: translateY(0);
    }

    .brand-title-animated.animate span.split-top {
        transform: translateY(-14px);
    }

    .brand-title-animated span.split-bottom {
        position: absolute;
        top: 0;
        left: 0;
        color: #0B3D91;
        transition: transform 0.5s ease;
        clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
        overflow: hidden;
        white-space: nowrap;
        transform: translateY(0);
    }

    .brand-title-animated.animate span.split-bottom {
        transform: translateY(14px);
    }

    .brand-title-animated span.subtitle-overlay {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scaleY(0);
        width: auto;
        color: Black;
        background: transparent;
        font-size: 0.55em;
        font-weight: 600;
        letter-spacing: 0.07em;
        text-align: center;
        padding: 0;
        margin: 0;
        white-space: nowrap;
        opacity: 0;
        transition: all 0.5s ease;
    }

    .brand-title-animated.animate span.subtitle-overlay {
        transform: translate(-50%, -50%) scaleY(1);
        opacity: 1;
    }

/* ========== DROPDOWN STYLING - HOVER EFFECT ========== */
/* ========== DROPDOWN STYLING - HOVER & ACTIVE EFFECT ========== */
.dropdown-toggle::after {
    transition: transform 0.3s ease-in-out;
}

/* ========== SHOW DROPDOWN ON HOVER (DESKTOP) ========== */
@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* ========== TRANSPARENT GLASS EFFECT DROPDOWN ========== */
.dropdown-menu {
    min-width: 450px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 12px;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0,0,0,.1);
    padding: 6px 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

    .dropdown-menu.show {
        display: block !important;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

.dropdown-item {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    padding: 12px 16px;
    transition: all 0.3s ease;
    white-space: normal;
    background: transparent;
    position: relative;
}

    .dropdown-item:last-child {
        border-bottom: none;
    }

    /* ========== DROPDOWN ITEM HOVER STATE ========== */
    .dropdown-item:hover {
        background: rgba(11,61,145,.12);
        color: #0B3D91;
        padding-left: 22px;
    }

    /* ========== DROPDOWN ITEM ACTIVE STATE ========== */
    .dropdown-item.active {
        background: rgba(11,61,145,.25);
        color: #0B3D91;
        font-weight: 600;
        border-left: 4px solid #0B3D91;
        padding-left: 18px;
    }

        .dropdown-item.active:hover {
            background: rgba(11,61,145,.35);
        }

.dropdown-menu-end {
    right: 0;
    left: auto;
}

.nav-link.dropdown-toggle:hover {
    color: #0B3D91 !important;
}

.nav-link.dropdown-toggle:hover {
    color: #0B3D91 !important;
}

/* ========== NAVBAR LAYOUT ========== */
.navbar {
    padding: 0.8rem 1rem;
}

.navbar-brand {
    margin-right: auto;
}

.navbar-collapse {
    justify-content: flex-end !important;
}

.navbar-nav {
    margin-left: auto !important;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: auto;
    gap: 18px;
}

    .navbar-nav .nav-item {
        margin: 0;
    }

    /* ========== NAV LINK STYLING ========== */
    /* ================= NAVBAR HOVER EFFECT ================= */

    .navbar-nav .nav-link {
        color: #000 !important;
        font-size: 17px;
        font-weight: 500;
        padding: 12px 0;
        position: relative;
        transition: all 0.3s ease;
    }

        .navbar-nav .nav-link:not(.dropdown-toggle)::after {
            content: "";
            position: absolute;
            left: 50%;
            bottom: -5px;
            width: 0;
            height: 3px;
            background: #0B3D91;
            border-radius: 5px;
            transform: translateX(-50%);
            transition: width 0.3s ease;
        }

        /* Hover only */
        .navbar-nav .nav-link:hover {
            color: #0B3D91 !important;
        }

        .navbar-nav .nav-link:not(.dropdown-toggle):hover::after {
            width: 100%;
        }

        /* ========== DROPDOWN CARET ICON (Products) ========== */
        .navbar-nav .nav-link.dropdown-toggle {
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

            .navbar-nav .nav-link.dropdown-toggle::after {
                content: "";
                position: static;
                display: inline-block;
                width: 0;
                height: 0;
                margin: 0;
                border-left: 5px solid transparent;
                border-right: 5px solid transparent;
                border-top: 5px solid currentColor;
                background: none;
                border-radius: 0;
                transition: transform 0.3s ease;
            }

            .navbar-nav .nav-link.dropdown-toggle:hover::after,
            .nav-item.dropdown:hover .nav-link.dropdown-toggle::after {
                transform: rotate(180deg);
            }
        /* Keep default black after mouse leaves */
        .navbar-nav .nav-link.active,
        .navbar-nav .nav-link.active:hover {
            color: #000 !important;
            font-weight: 500;
        }

            .navbar-nav .nav-link.active::after {
                width: 0;
            }
/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .navbar-logo {
        height: 45px;
        max-width: 50px;
    }

    .brand-title-animated {
        font-size: 1.1rem;
        margin-left: 15px;
    }

        .brand-title-animated.animate span.split-top {
            transform: translateY(-12px);
        }

        .brand-title-animated.animate span.split-bottom {
            transform: translateY(12px);
        }

    .navbar-brand {
        gap: 0.5rem;
    }

    .dropdown-menu {
        min-width: 350px;
        background: rgba(255,255,255,0.75);
        backdrop-filter: blur(15px);
    }

    .dropdown-item {
        font-size: 12px;
        padding: 10px 14px;
    }
}

@media (max-width: 576px) {
    .navbar-logo {
        height: 40px;
        max-width: 45px;
    }

    .brand-title-animated {
        font-size: 0.95rem;
        margin-left: 10px;
    }

        .brand-title-animated span.subtitle-overlay {
            font-size: 0.48em;
        }

        .brand-title-animated.animate span.split-top {
            transform: translateY(-10px);
        }

        .brand-title-animated.animate span.split-bottom {
            transform: translateY(10px);
        }

    .navbar-brand {
        gap: 0.4rem;
        padding-right: 0.5rem;
    }

    .navbar-nav {
        gap: 12px;
    }

        .navbar-nav .nav-link {
            font-size: 14px;
            padding: 8px 0;
        }

    .dropdown-menu {
        min-width: 280px;
        font-size: 12px;
        background: rgba(255,255,255,0.75);
        backdrop-filter: blur(15px);
    }

    .dropdown-item {
        padding: 8px 12px;
    }
}

@media (max-width: 991px) {
    .navbar-collapse {
        padding-top: 1rem;
    }

    /* On mobile, dropdown goes back to click mode */
    .dropdown-menu {
        display: none;
    }

        .dropdown-menu.show {
            display: block;
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
            background-color: #f9f9f9;
            border: 1px solid #ddd;
            box-shadow: none;
            backdrop-filter: none;
        }

    .dropdown-item {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }
}

/* ==================== FOOTER ==================== */
/* ==================== FOOTER ==================== */
.site-footer {
    background: linear-gradient(135deg, #e6f4fd 0%, #cfeaf9 100%);
    color: #0B3D91;
    padding: 60px 40px 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    border-top: 1px solid #bfe0f5;
}

/* Updated Footer Grid for 4 Columns */
.footer-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 1.1fr 1.2fr;
    gap: 25px;
    padding-bottom: 40px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

/* FOOTER ABOUT SECTION */
.footer-about {
    grid-column: 1;
}

.footer-logo {
    width: 100px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    background: #fff;
    padding: 6px;
    box-shadow: 0 2px 10px rgba(11, 61, 145, 0.12);
}

.footer-about p {
    color: rgba(11, 61, 145, 0.85);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 420px;
    margin-bottom: 15px;
}

.footer-address {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.88rem;
    color: rgba(11, 61, 145, 0.9);
    line-height: 1.5;
}

    .footer-address i {
        color: #0B3D91;
        margin-top: 3px;
        flex-shrink: 0;
    }

/* FOOTER LINKS SECTION */
.footer-links-col {
    grid-column: 2;
}

.footer-heading {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0B3D91;
    margin-bottom: 22px;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .footer-links li {
        margin-bottom: 14px;
    }

    .footer-links a {
        color: rgba(11, 61, 145, 0.8);
        text-decoration: none;
        font-size: 0.95rem;
        transition: all 0.3s ease;
    }

        .footer-links a:hover {
            color: #06b6d4;
            padding-left: 6px;
        }

/* FOOTER CONTACT SECTION */
.footer-contact {
    grid-column: 3;
}

    .footer-contact p {
        color: rgba(11, 61, 145, 0.85);
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 22px;
        max-width: 340px;
    }

/* FOOTER CONTACT DETAILS - EMAIL & PHONE */
.footer-contact-details {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

    .footer-contact-details li {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 12px;
        font-size: 0.9rem;
    }

    .footer-contact-details i {
        color: #0B3D91;
        font-size: 1.1rem;
        width: 20px;
        text-align: center;
        flex-shrink: 0;
    }

    .footer-contact-details a {
        color: rgba(11, 61, 145, 0.85);
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
        word-break: break-word;
    }

        .footer-contact-details a:hover {
            color: #06b6d4;
            text-decoration: underline;
        }

/* FOOTER SOCIAL ICONS */
.footer-socials {
    display: flex;
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
}

    .footer-socials li {
        list-style: none;
    }

.footer-social-icon {
    width: 44px;
    height: 44px;
    background-color: #fff;
    border: 2px solid rgba(11, 61, 145, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(11, 61, 145, 0.1);
    transition: all 0.3s ease;
}

    .footer-social-icon .icon {
        position: relative;
        color: #0B3D91;
        font-size: 1rem;
        transition: 0.5s;
        z-index: 3;
    }

    .footer-social-icon:hover .icon {
        color: #fff;
        transform: rotateY(360deg);
    }

    .footer-social-icon::before {
        content: "";
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 100%;
        transition: 0.5s;
        z-index: 2;
    }

    .footer-social-icon:hover::before {
        top: 0;
    }

/* BRAND COLORS FOR SOCIAL ICONS */
.footer-socials li:nth-child(1) .footer-social-icon::before {
    background: #3b5999;
}

.footer-socials li:nth-child(2) .footer-social-icon::before {
    background: #0077b5;
}

.footer-socials li:nth-child(3) .footer-social-icon::before {
    background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.footer-socials li:nth-child(4) .footer-social-icon::before {
    background: #25D366;
}

/* FOOTER MAP SECTION */
.footer-map {
    grid-column: 4;
}

.map-container {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(11, 61, 145, 0.15);
    border: 2px solid #fff;
}

    .map-container iframe {
        width: 100%;
        height: 180px;
        display: block;
    }

/* FOOTER BOTTOM */
.footer-bottom {
    border-top: 1px solid rgba(11, 61, 145, 0.2);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(11, 61, 145, 0.7);
}

/* ==================== RESPONSIVE ==================== */

/* Tablet: 2 Columns */
@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-about {
        grid-column: 1 / -1;
    }

    .footer-links-col {
        grid-column: 1;
    }

    .footer-contact {
        grid-column: 2;
    }

    .footer-map {
        grid-column: 1 / -1;
    }
}

/* Mobile: 1 Column */
@media (max-width: 576px) {
    .site-footer {
        padding: 40px 20px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-about {
        grid-column: 1;
    }

    .footer-links-col {
        grid-column: 1;
    }

    .footer-contact {
        grid-column: 1;
    }

    .footer-map {
        grid-column: 1;
    }

    .footer-heading {
        font-size: 1.1rem;
        margin-bottom: 14px;
    }

    .footer-about p {
        font-size: 0.9rem;
    }

    .footer-contact-details li {
        font-size: 0.85rem;
    }

    .map-container iframe {
        height: 150px;
    }

    .footer-logo {
        width: 80px;
    }
}

@media (max-width: 375px) {
    .footer-about {
        padding: 0 10px;
    }

    .footer-contact-details a {
        font-size: 0.8rem;
    }

    .footer-heading {
        font-size: 1rem;
    }
}