/* ============================================
   MEGA MENU HEADER STYLES
   Extracted from service page inline styles
   ============================================ */

#search-box {
    display: none;
    transition: all 0.3s ease;
}

#search-icon {
    cursor: pointer;
}

#search-icon:hover {
    color: #007bff;
}

.sticky {
    position: fixed;
    top: 0;
    left: 0;
}

.navbar-fixed {
    top: 0;
    z-index: 1;
    position: fixed;
    width: 100%;
}

.v-center {
    align-items: center;
    justify-content: space-between;
    padding: 5px;
}

/* header */
.header {
    display: block;
    width: 100% !important;
    z-index: 9999;
    background-color: #0c3c63;
    position: relative;
    top: 0;
    overflow: visible !important; /* Required: prevents mega-menu dropdowns from being clipped */
}

.header .item-left {
    flex: 0 0 18%;
}

.header .logo {
    text-align: center;
    margin-right: 20px;
}

.header .logo a {
    margin-left: 30%;
}

.header .item-center {
    flex: 0 0 78.5%;
}

.header .item-right {
    flex: 0 0 20%;
    display: flex;
    justify-content: flex-end;
}

.header .item-right a {
    text-decoration: none;
    font-size: 16px;
    color: #555555;
    display: inline-block;
    margin-left: 5px;
    transition: color 0.3s ease;
}

.header .menu>ul {
    padding-left: 0px !important;
    list-style-type: none !important;
}

.header .menu>ul>li {
    display: inline-block;
    line-height: 50px;
    margin-left: 5px;
}

.header .menu>ul>li>a {
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: #fff;
    position: relative;
    text-transform: capitalize;
    transition: color 0.3s ease;
}

.header .menu>ul>li .sub-menu {
    position: absolute;
    z-index: 500;
    background-color: #ffffff;
    box-shadow: -2px 2px 70px -25px rgba(0, 0, 0, 0.3);
    padding: 20px 30px;
    margin-top: 25px;
    opacity: 0;
    visibility: hidden;
}

.menu-item-has-children .fa-angle-down {
    color: #32d314;
}

.header .menu>ul>li .sub-menu>ul {
    padding-left: 0px !important;
    list-style-type: none !important;
}

.header .menu>ul>li .sub-menu>ul>li {
    line-height: 1;
}

.header .menu>ul>li .sub-menu>ul>li>a {
    display: inline-block;
    padding: 10px 0;
    font-size: 14px;
    color: #000;
    font-weight: 400;
    transition: color 0.3s ease;
    text-decoration: none;
    text-transform: capitalize;
}

.header .menu>ul>li .single-column-menu {
    min-width: 275px;
    max-width: 300px;
    transform: translate(-145px, 0px);
}

.header .menu>ul>li .sub-menu.mega-menu>.list-item>ul>li {
    line-height: 0.5;
    display: block;
}

.header .menu>ul>li .sub-menu.mega-menu>.list-item>ul>li>a {
    padding: 7px 0;
    display: inline-block;
    font-size: 14px;
    color: #000;
    font-weight: 400;
    transition: color 0.3s ease;
}

.header .menu>ul>li .sub-menu.mega-menu {
    left: 50%;
    transform: translateX(-50%);
}

.header .menu>ul>li .sub-menu.mega-menu-column-4 {
    max-width: 1240px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    padding: 20px 15px;
}

.header .menu>ul>li .sub-menu.mega-menu-column-4>.list-item {
    flex: 0 0 25%;
    padding: 0 15px;
}

.header .menu>ul>li .sub-menu.mega-menu-column-4>.list-item ul {
    padding-left: 0px !important;
    list-style-type: none !important;
}

.header .menu>ul>li .sub-menu.mega-menu-column-4>.list-item .title {
    font-size: 16px;
    color: #0c3c63;
    font-weight: 600;
    line-height: 1;
}

.header .menu>ul>li .sub-menu.mega-menu-column-4>.list-item.text-center .title {
    text-align: center;
}

.header .menu>ul>li .sub-menu.mega-menu-column-4>.list-item img {
    max-width: 100%;
    width: 100%;
    vertical-align: middle;
    margin-top: 10px;
}

.header .menu>ul>li .sub-menu.mega-menu>.list-item>ul>li>a img {
    width: 14px;
    vertical-align: top;
    margin-top: -10px;
}

.header .menu>ul>li .sub-menu.mega-menu-column-3 {
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    padding: 20px 15px;
}

.header .menu>ul>li .sub-menu.mega-menu-column-3>.list-item ul {
    padding-left: 0px !important;
    list-style-type: none !important;
}

.header .menu>ul>li .sub-menu.mega-menu-column-3>.list-item {
    flex: 0 0 33.33%;
    padding: 0 15px;
}

.header .menu>ul>li .sub-menu.mega-menu-column-3>.list-item .title {
    font-size: 16px;
    color: #0c3c63;
    font-weight: 600;
    line-height: 1;
}

.header .menu>ul>li .sub-menu.mega-menu-column-3>.list-item.text-center .title {
    text-align: center;
}

.header .menu>ul>li .sub-menu.mega-menu-column-3>.list-item img {
    max-width: 100%;
    width: 100%;
    vertical-align: middle;
    margin-top: 10px;
}

.header .menu>ul>li .sub-menu.mega-menu-column-2 {
    max-width: 620px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    padding: 20px 15px;
}

.header .menu>ul>li .sub-menu.mega-menu-column-2>.list-item ul {
    padding-left: 0px !important;
    list-style-type: none !important;
}

.header .menu>ul>li .sub-menu.mega-menu-column-2>.list-item {
    flex: 0 0 34%;
    padding: 0 15px;
}

.header .menu>ul>li .sub-menu.mega-menu-column-2>.list-item .title {
    font-size: 15px;
    color: #0c3c63;
    font-weight: 600;
    line-height: 1;
}

.header .menu>ul>li .sub-menu.mega-menu-column-2>.list-item.text-center .title {
    text-align: center;
}

.header .menu>ul>li .sub-menu.mega-menu-column-2>.list-item img {
    max-width: 100%;
    width: 100%;
    vertical-align: middle;
    margin-top: 10px;
}

.header .menu>ul>li .sub-menu.mega-menu>.list-item>ul>li>a:hover,
.header .menu>ul>li .sub-menu>ul>li>a:hover,
.header .item-right a:hover,
.header .menu>ul>li:hover>a {
    color: #32d314;
}

.header .menu>ul>li .sub-menu.mega-menu>.list-item>ul>li>a::after,
.sub-menu>ul>li>a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #32d314;
    color: #32d314;
    margin-top: 3px;
    transition: width .3s;
}

.header .menu>ul>li .sub-menu.mega-menu>.list-item>ul>li>a:hover::after,
.sub-menu>ul>li>a:hover::after {
    width: 100%;
}

/* banner section */
.banner-section {
    background-image: url('../img/banner.jpg');
    background-size: cover;
    background-position: center;
    height: 700px;
    width: 100%;
    display: block;
}

.mobile-menu-head,
.mobile-menu-trigger {
    display: none;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media(max-width: 991px) {

    .header .item-center {
        order: 3;
        flex: 0 0 100%;
    }

    .header .item-left,
    .header .item-right {
        flex: 0 0 auto;
    }

    .v-center {
        justify-content: space-between;
    }

    .header .mobile-menu-trigger {
        display: flex;
        height: 30px;
        width: 30px;
        margin-right: 15px;
        cursor: pointer;
        align-items: center;
        justify-content: center;
    }

    .header .mobile-menu-trigger span {
        display: block;
        height: 2px;
        background-color: #fff;
        width: 24px;
        position: relative;
    }

    .header .mobile-menu-trigger span:before,
    .header .mobile-menu-trigger span:after {
        content: '';
        position: absolute;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #fff;
    }

    .header .mobile-menu-trigger span:before {
        top: -6px;
    }

    .header .mobile-menu-trigger span:after {
        top: 6px;
    }

    .header .item-right {
        align-items: center;
        position: absolute;
        padding: 0px !important;
        right: 10px;
        width: 75px;
    }

    .header .menu {
        position: fixed;
        width: 320px;
        background-color: #0c3c63;
        left: 0;
        top: 0;
        height: 100%;
        overflow: hidden;
        transform: translate(-100%);
        z-index: 1099;
    }

    .header .menu.active {
        transform: translate(0%);
    }

    .header .menu>ul>li {
        line-height: 1;
        margin: 0;
        display: block;
    }

    .header .menu>ul>li>a {
        line-height: 50px;
        height: 50px;
        padding: 0 50px 0 15px;
        display: block;
    }

    .header .menu>ul>li>a i {
        position: absolute;
        height: 50px;
        width: 50px;
        top: 0;
        right: 0;
        text-align: center;
        line-height: 50px;
        transform: rotate(-90deg);
    }

    .header .menu .mobile-menu-head {
        display: flex;
        height: 50px;
        justify-content: space-between;
        align-items: center;
        position: relative;
        z-index: 501;
        position: sticky;
        background-color: #0c3c63;
        top: 0;
    }

    .header .menu .mobile-menu-head .go-back {
        height: 50px;
        width: 50px;
        border-right: 1px solid rgba(0, 0, 0, 0.1);
        cursor: pointer;
        line-height: 50px;
        text-align: center;
        color: #32d314;
        font-size: 16px;
        display: none;
    }

    .header .menu .mobile-menu-head.active .go-back {
        display: block;
    }

    .header .menu .mobile-menu-head .current-menu-title {
        font-size: 15px;
        font-weight: 600;
        color: #fff;
    }

    .header .menu .mobile-menu-head .mobile-menu-close {
        height: 50px;
        width: 50px;
        border-left: 1px solid rgba(0, 0, 0, 0.1);
        cursor: pointer;
        line-height: 50px;
        text-align: center;
        color: #32d314;
        font-size: 25px;
    }

    .header .menu .menu-main {
        height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .header .menu>ul>li .sub-menu.mega-menu,
    .header .menu>ul>li .sub-menu {
        visibility: visible;
        opacity: 1;
        position: absolute;
        box-shadow: none;
        margin: 0;
        padding: 15px;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        padding-top: 65px;
        max-width: none;
        min-width: auto;
        display: none;
        transform: translateX(0%) !important;
        overflow-y: auto;
    }

    .header .menu>ul>li .sub-menu.active {
        display: block;
    }

    @keyframes slideLeft {
        0% {
            opacity: 0;
            transform: translateX(100%);
        }

        100% {
            opacity: 1;
            transform: translateX(0%);
        }
    }

    @keyframes slideRight {
        0% {
            opacity: 1;
            transform: translateX(0%);
        }

        100% {
            opacity: 0;
            transform: translateX(100%);
        }
    }

    .header .menu>ul>li .sub-menu.mega-menu-column-4>.list-item img {
        margin-top: 0;
    }

    .header .menu>ul>li .sub-menu.mega-menu-column-4>.list-item.text-center .title {
        margin-bottom: 20px;
    }

    .header .menu>ul>li .sub-menu.mega-menu-column-4>.list-item.text-center:last-child .title {
        margin-bottom: 0px;
    }

    .header .menu>ul>li .sub-menu.mega-menu-column-4>.list-item {
        flex: 0 0 100%;
        padding: 0px;
    }

    .header .menu>ul>li .sub-menu.mega-menu-column-3>.list-item {
        flex: 0 0 100%;
        padding: 0px;
    }

    .header .menu>ul>li .sub-menu.mega-menu-column-2>.list-item {
        flex: 0 0 100%;
        padding: 0px;
    }

    .header .menu>ul>li .sub-menu.mega-menu-column-3,
    .header .menu>ul>li .sub-menu.mega-menu-column-2 {
        flex-direction: column;
    }

    .header .menu>ul>li .sub-menu>ul>li>a,
    .header .menu>ul>li .sub-menu.mega-menu>.list-item>ul>li>a {
        display: block;
    }

    .header .menu>ul>li .sub-menu.mega-menu>.list-item>ul {
        margin-bottom: 15px;

    }

    .menu-overlay {
        position: fixed;
        background-color: rgba(0, 0, 0, 0.5);
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        z-index: 1098;
        visibility: hidden;
        opacity: 0;
    }

    .menu-overlay.active {
        visibility: visible;
        opacity: 1;
    }
}

@media screen and (max-width:1300px) {
    .header .item-center {
        flex: 0 0 80% !important;
    }
}

@media screen and (max-width:1292px) {
    .header .item-center {
        flex: 0 0 80% !important;
    }
}

@media screen and (max-width:1276px) {
    .header .item-center {
        flex: 0 0 80% !important;
    }

    .header .menu>ul>li>a {
        font-size: 15px;
    }
}

@media screen and (max-width:1242px) {
    .header .item-center {
        flex: 0 0 81% !important;
    }
}

@media screen and (max-width:1212px) {
    .header .item-left {
        flex: 0 0 19% !important;
    }

    .header .item-left .logo a img {
        width: 140px;
    }

    .header .logo {
        margin-right: 14px;
    }

    .header .menu>ul>li {
        margin-left: 4px;
    }

    .header .item-center {
        flex: 0 0 79% !important;
    }
}

@media screen and (max-width:1191px) {
    .header .item-center {
        flex: 0 0 79% !important;
    }
}

@media screen and (max-width:1178px) {
    .header .menu>ul>li>a {
        font-size: 14px;
    }

    .logo a img {
        width: 140px !important;
    }
}

@media screen and (max-width:1157px) {
    .header .item-left {
        flex: 0 0 10%;
    }

    .header .item-center {
        flex: 0 0 78%;
    }

    .header .menu>ul>li .single-column-menu {
        transform: translate(-140px, 0px);
    }

    .sub-menu.mega-menu-column-2 {
        transform: translate(-30%) !important;
    }
}

@media screen and (max-width:1114px) {
    .header .menu>ul>li>a {
        font-size: 13px;
    }
}

@media screen and (max-width:1055px) {
    .header .menu>ul>li>a {
        font-size: 12px;
    }

    .header .menu>ul>li {
        margin-left: 3px;
    }

    .header .item-left {
        flex: 0 0 10%;
    }

    .header .logo img {
        width: 40px !important;
    }

    .header .logo {
        margin-right: 20px;
    }
}

@media(min-width: 992px) {
    .header .menu>ul>li.menu-item-has-children:hover .sub-menu {
        margin-top: 0;
        visibility: visible;
        opacity: 1;
    }

    .header .logo a {
        margin-left: 28%;
    }
}

@media(max-width: 992px) {
    .header .menu>ul>li>a {
        font-size: 16px;
    }

    .header .menu>ul>li .sub-menu.mega-menu>.list-item>ul>li>a {
        font-size: 16px;
    }

    .header .menu>ul>li .sub-menu>ul>li>a {
        font-size: 16px;
    }

    .header .menu>ul>li .sub-menu.mega-menu-column-2>.list-item .title {
        font-size: 18px;
    }

    .header .menu>ul>li .sub-menu.mega-menu-column-4>.list-item .title {
        font-size: 18px;
    }
}

@media(max-width: 768px) {
    .header {
        top: 0px;
    }
}

@media(max-width: 568px) {
    .header {
        background-color: #0c3c63;
    }
}

@media(max-width: 468px) {
    .header .logo a {
        margin-left: 16%;
    }
}

.header .menu>ul>li .sub-menu.mega-menu-column-4 {
    border-top: 6px solid #98EECC;
    border-bottom: 6px solid #98EECC;
    border-radius: 30px;
}

.header .menu>ul>li .sub-menu.mega-menu-column-2 {
    border-top: 6px solid #98EECC;
    border-bottom: 6px solid #98EECC;
    border-radius: 30px;
}

.header .menu>ul>li .single-column-menu {
    border-top: 6px solid #98EECC;
    border-bottom: 6px solid #98EECC;
    border-radius: 30px;
}

.header .menu>ul>li .sub-menu.mega-menu-column-3 {
    border-top: 6px solid #98EECC;
    border-bottom: 6px solid #98EECC;
    border-radius: 30px;
}

.menu-item-has-children .single-column-menu .title {
    font-size: 16px;
    color: #0c3c63;
    font-weight: 600;
    line-height: 1;
}

/* Search results styling */
.search-results {
    list-style: none;
    text-decoration: none;
    background-color: white;
    padding: 0;
}

.search-result {
    padding: 5px;
}

.result-link {
    text-decoration: none;
    color: #0c3c63;
    display: block;
}

#display {
    width: 50%;
}

/* ── Header Auth Buttons ── */
.btn-nav-login,
.btn-nav-register,
.btn-nav-portal {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    font-family: 'Poppins', sans-serif;
}

.btn-nav-login {
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    background: transparent;
}

.btn-nav-login:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    color: #ffffff;
    text-decoration: none;
}

.btn-nav-register {
    color: #ffffff;
    background: linear-gradient(135deg, #32d314, #28b810);
    border: 1.5px solid transparent;
    box-shadow: 0 2px 8px rgba(50, 211, 20, 0.3);
}

.btn-nav-register:hover {
    background: linear-gradient(135deg, #28b810, #1f9a0c);
    box-shadow: 0 4px 14px rgba(50, 211, 20, 0.45);
    transform: translateY(-1px);
    color: #ffffff;
    text-decoration: none;
}

.btn-nav-portal {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn-nav-portal:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: #ffffff;
    color: #ffffff;
    text-decoration: none;
}

@media (max-width: 991px) {

    .btn-nav-login,
    .btn-nav-register,
    .btn-nav-portal {
        padding: 6px 12px;
        font-size: 0.78rem;
    }
}

@media (max-width: 600px) {

    .btn-nav-login,
    .btn-nav-register,
    .btn-nav-portal {
        padding: 5px 10px;
        font-size: 0.72rem;
        gap: 4px;
    }

    .btn-nav-login i,
    .btn-nav-register i,
    .btn-nav-portal i {
        display: none;
    }
}

/* ===========================
   WhatsApp Float Button
   =========================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5);
    z-index: 99999;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none !important;
}

.whatsapp-float::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #25D366;
    animation: whatsappPulse 1.5s ease-out infinite;
}

@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.7);
    color: #ffffff !important;
    text-decoration: none !important;
}

.whatsapp-float i {
    color: #ffffff !important;
}

/* ===========================
   Chatbot Float Button
   =========================== */
.chatbot-float {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 70px;
    height: 70px;
    z-index: 99999;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
    animation: chatbotBounce 2s ease-in-out infinite;
}

.chatbot-float img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.chatbot-float:hover {
    transform: scale(1.15);
}

@keyframes chatbotBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }

    .chatbot-float {
        width: 55px;
        height: 55px;
        bottom: 80px;
        right: 18px;
    }
}