/* =========================================================
   GLOBAL RESET & SAFETY (NO DESIGN CHANGE)
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: "Nunito", sans-serif;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================================
   ROOT VARIABLES
   ========================================================= */

:root {
    --primary-color: rgb(0 88 148);
    --font-color-style1: #334155;
    --font-color-style2: #1C252E;
    --dark-color: #000;
    --white-color: #fff;
    --white-bg: #fff;
    --secondory-bg: #f3f3f3;
    --light-color-label: #999;
    --theme-light-yellow-bg: #fff9e7;
}

/* =========================================================
   FLUID TYPOGRAPHY (DYNAMIC SCALING)
   ========================================================= */

h1 { font-size: clamp(32px, 4vw, 48px); }
h2 { font-size: clamp(28px, 3.5vw, 40px); }
h3 { font-size: clamp(22px, 3vw, 32px); }

p, li, a {
    font-size: clamp(14px, 1.2vw, 16px);
}

/* =========================================================
   MEGA MENU BASE STYLES
   ========================================================= */

.mega-menu {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Mega Menu Item Wrapper */
.mega-menu-item {
    margin-bottom: 20px;
}

.megaMenuItemInner {
    width: 100%;
    padding: 10px 12px;
    background: #e4f0ff;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.menu-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--font-color-style2);
}

/* Link Lists */
.mega-menu-item ul {
    padding: 0;
    margin: 0;
    padding-left: 10px;
    max-height: 100%;
    overflow-y: auto;
}

.mega-menu-item ul li {
    list-style: none;
    font-size: 14px;
    padding: 3px 0;
}

.mega-menu-item ul li a {
    text-decoration: none;
    color: #555 !important;
    font-weight: 500;
    display: block;
    transition: all 0.2s ease;
}

.mega-menu-item ul li a:hover {
    color: var(--primary-color) !important;
    padding-left: 4px;
}

/* =========================================================
   BANNER & ANIMATION SAFETY
   ========================================================= */

.banner-inner,
.banner-left,
.banner-right {
    width: 100%;
}

.roundanimation,
.symbols-pulse > div {
    max-width: 100%;
    height: auto;
}

/* =========================================================
   KEYFRAME
   ========================================================= */

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   LARGE DESKTOPS & 4K (≥1400px)
   ========================================================= */

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* =========================================================
   DESKTOPS & LAPTOPS (1200px – 1399px)
   ========================================================= */

@media (max-width: 1399px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* =========================================================
   TABLETS LANDSCAPE (992px – 1199px)
   ========================================================= */

@media (max-width: 1199px) {
    .mega-menu {
        padding: 0 20px;
    }
}

@media (min-width: 992px) {
    .mega-menu {
        position: absolute;       
        top: 100%;                
        left: 0;
        width: 100%;              
        z-index: 999;             
        
        /* Hidden state */
        opacity: 0;
        visibility: hidden;
        margin-top: 20px;         
        transition: all 0.3s ease;
        background: #fff;      
        box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    }

 
    .mega-menu.show,
    .has-mega:hover .mega-menu { 
        opacity: 1;
        visibility: visible;
        margin-top: 0px;          
    }
}

/* =========================================================
   MOBILE MEGA MENU LOGIC (≤991px)
   ========================================================= */

@media (max-width: 991px) {

    .mega-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        background: #fff;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 0 15px;
        margin: 0;
    }

    .mega-menu.show {
        display: block !important;
        animation: slideDown 0.3s ease;
    }
     .mega-menu {
        position: relative !important; 
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        box-shadow: none !important;
        transform: none !important;
        
        /* Hidden state */
        display: none;
        opacity: 1 !important;
        visibility: visible !important;
        background: #f8f9fa; 
    }

    /* Active state (triggered by JS click) */
    .mega-menu.show {
        display: block !important;
    }

    .mega-menu-item {
        padding-left: 15px;
        padding-right: 15px;
    }

    .mega-menu-item {
        margin-bottom: 10px;
        text-align: left;
        border-bottom: 1px solid #f9f9f9;
        padding-bottom: 10px;
        width: 100%;
    }

    .mega-menu-item:last-child {
        border-bottom: none;
    }
/* 
    .megaMenuItemInner {
        background: #d7e8fce7;
        margin-bottom: 8px;
        padding: 10px;
        border-radius: 6px;
        width: 100%;
    } */

    .header-buttons {
        order: 3;
        width: 100%;
        display: flex !important;
        justify-content: center;
        align-items: center;
        margin: 15px 0 10px;
        gap: 15px;
    }

    .header-buttons .btn {
        padding: 8px 30px;
        font-size: 14px;
        min-width: 130px;
        text-align: center;
    }
}

/* =========================================================
   TABLETS & LARGE MOBILES (≤768px)
   ========================================================= */

@media (max-width: 768px) {

    .banner-inner {
        padding: 30px 0 5px;
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .banner-left,
    .banner-right {
        margin-bottom: 30px;

    }

    .banner-left p {
        font-size: 16px;
        margin: 20px 0;
        text-align: justify;
    }

    .banner_client {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 0 auto;
        width: 90%;
        max-width: 350px;
    }

    .roundanimation,
    .symbols-pulse > div {
        width: 14rem;
        height: 14rem;
    }
}

/* =========================================================
   SMALL MOBILES (≤575px)
   ========================================================= */

@media (max-width: 575px) {

    .mega-menu {
        padding: 0 10px;
    }

    .menu-name {
        font-size: 14px;
    }

    .mega-menu-item ul li {
        font-size: 13px;
    }

    .banner_client {
        width: 95%;
        padding: 0.5rem 0.8rem;
        text-align: center;
        flex-direction: column;
    }
}



/* Tablets (≤991px) */
@media (max-width: 991px) {

    .about-home-img {
        margin-top: 40px;
    }

    .about-home-img img {
        width: 90%;
    }

    .about-home-img::after {
        right: 30px;
        width: 90px;
        height: 90px;
        outline-width: 30px;
    }

    .about-home-img::before {
        width: 80px;
        height: 80px;
        left: 10px;
    }

    .h-services-card {
        padding: 30px;
        border-radius: 30px;
    }
}

/* Large Mobiles (≤768px) */
@media (max-width: 768px) {

    .about-home-img {
        padding: 20px 0;
    }

    .about-home-img img {
        width: 100%;
    }

    .about-home-img::after,
    .about-home-img::before {
        display: none; /* Prevent overflow on small screens */
    }

    .about-home-text {
        padding: 20px 0;
        text-align: center;
    }

    .about-home-dtl-card {
        padding: 12px 15px;
    }

    .h-services-card {
        padding: 25px;
    }

    .h-services-card img {
        width: 64px;
    }
}

/* Small Mobiles (≤480px) */
@media (max-width: 480px) {

    .about-home-text p {
        margin-top: 15px;
    }

    .about-home-dtl-card {
        flex-direction: column;
        text-align: center;
    }

    .about-home-dtl-card .text {
        margin-left: 0;
        margin-top: 10px;
    }

    .h-services-card {
        padding: 20px;
        border-radius: 24px;
    }

    .h-services-card p {
        font-size: 13px;
    }
}

@media (min-width: 992px) {
    .social-icons {
        display: flex;
        justify-content: flex-start !important;
    }    

}
@media (max-width: 991px) {
    
    footer { 
        text-align: center; 
        padding-top: 30px;
    }

    .footer_company_info img {
        width: 180px; 
        margin: 0 auto; 
        display: block;
    }

    .footer_company_info p {
        padding-right: 0; 
        margin-top: 15px;
    }

    
    .QuickLinks {
        margin-top: 30px; 
    }

    .QuickLinks ul {
        margin: 15px 0 0 0; 
    }

    /* 3. Center and Fix Contact Us Section */
    .footer-contact-item {
        justify-content: center;
        text-align: left; 
        max-width: 320px; 
        margin: 10px auto; 
    }

    .f-text {
        font-size: 14px;
    }

   /* 4. Center Social Icons */
    .social-icons {
        display: flex;            
        justify-content: center;  
        align-items: center;     
        margin-bottom: 20px;
        flex-wrap: wrap;        
    }
    .f-social {
        margin: 0 5px;
    }
}

/* Small Mobile Screens (Screens smaller than 480px) */
@media (max-width: 480px) {
    .f-icon {
        width: 32px; 
        height: 32px;
        font-size: 14px;
        margin-right: 10px;
    }
    
    .footer_company_info img {
        width: 160px;
    }
}

.contact.QuickLinks .mt-5 {
    line-height: 1.6;
    color: #333;
    font-size: 15px;
    margin-bottom: 20px;
}

/* Icon Container */
.f-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    margin-right: 15px; 
    color: #005894;
    font-size: 16px;    
    flex-shrink: 0;    
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Text Container (Phone/Email) */
.f-text {
    font-size: 15px;
    color: #0f172a;
    font-weight: 500;
    
    word-break: break-all;      
    overflow-wrap: break-word;  
}


@media (max-width: 768px) {

    /* 1. Center the entire container */
    .contact.QuickLinks {
        text-align: center;
        margin-top: 30px; 
        padding: 0 15px;  
    }


    .contact.QuickLinks .mt-5 {
        margin-top: 1rem !important; 
        margin-bottom: 25px;
        max-width: 300px; 
        margin-left: auto;
        margin-right: auto;
    }

    .contact.QuickLinks .d-flex {
        justify-content: center; 
        margin-bottom: 15px;    
        text-align: left;        
    }

    
    .f-text {
        font-size: 14px;
    }
    
}
/* =========================================
   UPDATED REMOVE UNDERLINES & LINK COLORS 
   ========================================= */

footer .QuickLinks a,
footer .footer-contact-item a,
footer .f-text a,
footer h4 a,
footer a { /* Added general 'a' to catch everything in footer */
    text-decoration: none !important;
    color: #0f172a !important; /* Forces the dark color from your design */
}

/* Hover state remains blue but NO underline */
footer .QuickLinks a:hover,
footer .footer-contact-item a:hover,
footer .f-text a:hover {
    text-decoration: none !important;
    color: #0d6efd !important;
}

/* Fix for the specific address block in the screenshot */
.contact.QuickLinks .mt-5,
.contact.QuickLinks div {
    color: #0f172a !important;
}

