/* Top Header */
.bg-white {
    background-color: #ce1810 !important;
}

/* Logo */
.logo-icon {
    width: 150px;
    
}

.cont_color h1{
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
}

.logo-text {
    color: #1e40af;
    /* dark blue */
    font-weight: bold;
    font-size: 20px;
    letter-spacing: 0.05em;
}

/* Social icons hover */
.social-icon {
    transition: opacity 0.2s;
    cursor: pointer;
}

.social-icon:hover {
    opacity: 0.8;
}

/* Navbar */
.navbar{
    position: relative;
}
.navbar-dark {
    background-color: #ffffff !important;
}

.navbar-dark .nav-link {
    font-weight: 500;
    font-size: 16px;
    color: #ffffff;
    transition: color 0.3s;
}



.navbar-dark .nav-link:hover {
    color: #dc2626 !important;
}

.dropdown-toggle::after {
    transition: transform 0.3s ease;
    color: #e4292e;
}

.dropdown-toggle.show::after {
    transform: rotate(180deg);
}

/* Mega Menu */
.mega-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #0a1754;
    /* light background */
    z-index: 1000;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.mega-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Service cards */
.service-card {
    background-color: #e2e8f0;
    border-radius: 8px;
    padding: 15px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    height: 100%;
}

.service-card:hover {
    background-color: #cbd5e1;
}

.service-icon {
    background-color: #d83239;
    border-radius: 8px;
    padding: 12px;
    transition: background-color 0.3s;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-title {
    color: #1e3a8a;
    font-weight: 600;
    font-size: 18px;
}

.service-description {
    color: #334155;
    font-size: 14px;
    line-height: 1.4;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    display: none;
}

.overlay.active {
    display: block;
}

/* Enquire button */
.enquire-btn {
    transition: background-color 0.2s;
}

.enquire-btn:hover {
    background-color: #1947a3 !important;
}

@media (max-width: 991.98px) {
    .mega-menu {
        position: static;
    }

    .contact-media {
        flex-direction: column;
        gap: 0px !important;
        /* align-items: flex-start !important; */
    }
}

@media (max-width: 991.98px) {
  .navbar-nav .dropdown-menu {
    position: static;
    float: none;
    width: 100%;
    margin-top: 0;
    border: none;
    background: transparent; /* if you want transparent; remove if you prefer default white */
  }
  .navbar-nav .dropdown-menu .dropdown-item {
    padding-left: 1.5rem;
  }
}

/* Custom CSS for Home page start  */
.navbar-nav .nav-item {
      margin-right: 7px;
}

/* Sticky Header */
.sticky-header {
    transition: all 0.3s ease;
}
.sticky-header.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background: #0a1754; /* dark blue */
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    animation: slideDown 0.3s ease;
}
/* Smooth slide */
@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}
/* Prevent content jump */
body.sticky-header-active {
    padding-top: 80px; /* adjust based on your header height */
}

/* .logo-icon img{
    filter: drop-shadow(2px 4px 3px black);
} */

.social-icon{
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* color: #0a1754 !important; */
    text-decoration: none;
    transition: transform 0.3s ease;
    font-size: 16px;
}

.social-icon:hover {
    transform: translateY(-3px);
}

.d-flex.align-items-center.contact-media {
    gap: 40px;
}

@media (max-width: 550px){
    .navbar {
    display: block !important;
}
}
/* Custom CSS for Home page start    */
/* ======================
   STICKY HEADER FIXES
   ====================== */

/* Sticky Header Base */
.sticky-header {
    transition: all 0.3s ease;
}

/* When header becomes sticky */
.sticky-header.fixed {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1100 !important;
    background: #0a1754 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    animation: slideDown 0.3s ease !important;
}

/* Smooth slide animation */
@keyframes slideDown {
    from { 
        transform: translateY(-100%); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0); 
        opacity: 1; 
    }
}

/* Prevent content jump when header becomes sticky */
body.sticky-header-active {
    padding-top: 70px !important; /* Adjust based on your header height */
}

/* Fix mega menu positioning when sticky */
.sticky-header.fixed .mega-menu {
    position: fixed !important;
    top: 70px !important; /* Height of your sticky header */
}

/* Mobile adjustments */
@media (max-width: 991.98px) {
    .sticky-header.fixed {
        position: relative !important; /* Don't make sticky on mobile */
        animation: none !important;
        box-shadow: none !important;
    }
    
    body.sticky-header-active {
        padding-top: 0 !important; /* No padding needed on mobile */
    }
    
    /* Mega menu positioning for mobile */
    .sticky-header.fixed .mega-menu {
        position: fixed !important;
        top: 0 !important;
    }
}

/* Ensure proper stacking */
.sticky-header.fixed {
    z-index: 1100 !important;
}

.mega-menu {
    z-index: 1099 !important; /* Just below sticky header */
}