/* Search Button Styles */
.search-icon {
    display: flex;
    align-items: center;
}

.search-trigger-btn {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.search-trigger-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
    color: #fff;
}

/* Language Switcher Styles */
.language-switcher {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-right: 0;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.lang-switch-btn {
    padding: 10px 20px;
    border-radius: 25px;
    color: #7b51f5;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
}

.lang-switch-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #7b51f5;
}

.lang-switch-btn.active {
    background: #fff;
    color: #7b51f5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Mobile Language Switcher */
.mobile-language-switcher {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    padding: 0;
}

.mobile-lang-switch {
    flex: 1;
    padding: 14px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(90deg, #7b51f5 0%, #915eef 100%);
    color: #fff;
    border: 2px solid transparent;
}

.mobile-lang-switch:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(123, 81, 245, 0.3);
}

.mobile-lang-switch.active {
    background: #fff;
    color: #7b51f5;
    border-color: #7b51f5;
}

/* Search Popup Styles */
.header-search-form-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 400px;
    z-index: 9999;
    background-color: #fff;
    transform: translate3d(0, -100%, 0);
    transition: transform 0.85s cubic-bezier(0.175, 1, 0.275, 1), visibility 0.8s step-end;
}

.header-search-form-wrapper.open {
    transition: transform 0.85s cubic-bezier(0.175, 1, 0.275, 1), visibility 0.8s step-start;
    transform: translate3d(0, 0, 0);
}

.header-search-container {
    width: 100%;
    height: 100%;
    max-width: 1170px;
    border: 0;
    padding: 0 15px;
    background: transparent;
    transform: translate3d(0, calc(100% - 100px), 0);
    transition: transform 0.85s cubic-bezier(0.175, 1, 0.275, 1);
    margin: auto;
    opacity: 0;
    visibility: hidden;
}

.header-search-form-wrapper.open .header-search-container {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    visibility: visible;
}

.header-search-container form {
    margin: 0 auto;
    position: relative;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
}

.header-search-container .search-field {
    height: 65px;
    line-height: 65px;
    font-size: 28px;
    background-color: transparent;
    text-align: left;
    border: none;
    border-bottom: 1px solid #dddbdb;
    padding-left: 0;
    padding-right: 60px;
    border-radius: 0;
    width: 100%;
    color: #191919;
    outline: none;
    font-family: inherit;
    font-weight: 500;
}

.header-search-container .search-field:focus {
    border-bottom-color: #7b51f5;
}

.header-search-container .search-field::placeholder {
    color: #a4a4a4;
    opacity: 1;
}

.header-search-container .search-submit {
    position: absolute;
    height: 50px;
    width: 50px;
    bottom: 0;
    right: 0;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-search-container .search-submit img {
    width: 24px;
    height: 24px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.header-search-container .search-submit:hover img {
    opacity: 1;
    transform: scale(1.1);
}

.tx-search-close {
    background: rgba(204, 204, 204, 0.27);
    width: 54px;
    height: 54px;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    line-height: 54px;
    text-align: center;
    cursor: pointer;
    font-size: 30px;
    color: #191919;
    transition: all 0.3s ease;
}

.tx-search-close:hover {
    background: rgba(204, 204, 204, 0.5);
}

.body-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.body-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Lottie Preloader Styles */
.loading-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
}

.loading-container .loading {
    position: absolute;
    width: 150px;
    height: 150px;
}

#lottie-loading {
    width: 160px;
    height: 160px;
    position: relative;
    z-index: 2;
}

/* Header & Logo Styles */
.header-search-btn {
    margin-left: 20px;
}

/* Active Menu Link Styles */
.homepage1-body .header-area.homepage1 .header-elements .main-menu ul li a.active,
.homepage1-body .header-area.homepage1 .header-elements .main-menu ul li > a.active,
.mobile-nav-list li a.active,
.mobile-nav-list li > a.active {
    color: #4E2FDA !important;
    font-weight: 700 !important;
    position: relative;
}

.homepage1-body .header-area.homepage1 .header-elements .main-menu ul li a.active::after,
.homepage1-body .header-area.homepage1 .header-elements .main-menu ul li > a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #4E2FDA;
    border-radius: 2px;
}

/* Override default link styles for active state */
.homepage1-body .header-area.homepage1 .header-elements .main-menu ul li a.active:hover,
.homepage1-body .header-area.homepage1 .header-elements .main-menu ul li > a.active:hover,
.mobile-nav-list li a.active:hover {
    color: #4E2FDA !important;
}

/* Services Menu Styles */
.dropdown-padding li a,
.sub-menu li a {
    font-size: 15px;
    font-weight: 600;
    padding: 12px 20px;
    display: block;
    transition: all 0.3s ease;
}

.logo-height-55 {
    max-height: 55px;
    width: auto;
}

.logo-height-50 {
    max-height: 50px;
    width: auto;
}

.logo-height-60 {
    max-height: 60px;
    width: auto;
}

.logo-height-45 {
    max-height: 45px;
    width: auto;
}

/* Page Layout Styles */
.bg-section-cover {
    background-repeat: no-repeat;
    background-size: cover;
}

.bg-section-center {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.inner-page-padding {
    padding: 100px 0 60px;
}

.about-header-padding {
    padding: 100px 0;
}

/* About Page Styles */
.bg-light-gray {
    background-color: #f8f9fa;
}

.service-box-equal {
    height: 100%;
    padding: 40px;
}

/* Search Page Styles */
.search-results-info {
    margin-bottom: 50px;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
}

.search-input-wrapper {
    position: relative;
}

.search-input-field {
    width: 100%;
    padding: 15px 80px 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-size: 16px;
}

.search-submit-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px 25px;
    background: linear-gradient(90deg, #7b51f5 0%, #915eef 100%);
    border: none;
    border-radius: 25px;
    color: #fff;
    cursor: pointer;
}

.search-info-box {
    padding: 40px;
    background: #f8f9fa;
    border-radius: 15px;
}

.search-icon-large {
    font-size: 60px;
    color: #7b51f5;
    margin-bottom: 20px;
}

.search-icon-xlarge {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 20px;
}

.quick-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.quick-links .header-btn1 {
    display: inline-block;
}

.empty-search-wrapper {
    padding: 60px 20px;
}

/* Footer Styles */
.footer-text-justify { text-align: justify; }
.footer-logo-area,
.footer-logo-area1,
.footer-logo-area2,
.footer-logo-area3 { margin-bottom: 30px; }
.footer-logo-area ul,
.footer-logo-area1 ul,
.footer-logo-area2 ul,
.footer-logo-area3 ul { padding: 0; list-style: none; }
.footer-newsletter-form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.footer-newsletter-form input {
    flex: 1;
    min-width: 220px;
}

/* Map Styles */
.google-map-iframe {
    border: 0;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Typography */
    h1, .heading1 h1, .heading2 h1, .heading9 h1 {
        font-size: 30px !important;
        line-height: 1.2;
    }
    h2, .heading1 h2, .heading2 h2, .heading9 h2 {
        font-size: 24px !important;
        line-height: 1.25;
    }
    p { font-size: 15px; }

    /* Layout & spacing */
    .container { padding-left: 16px; padding-right: 16px; }
    .sp5, .sp6, .sp4 { padding-top: 40px !important; padding-bottom: 40px !important; }

    /* Hero section: stack columns */
    .hero1-section-area .row { flex-direction: column-reverse; }
    .header-main-content { margin-top: 20px; }
    .header-images-area img { width: 100%; height: auto; }

    /* Partner logos grid */
    .sldier-head p { font-size: 22px !important; }
    .partner-badge { min-height: 80px; padding: 12px; }
    .partner-badge h6 { font-size: 12px; }

    /* Equal service boxes become fluid */
    .service-box-equal { padding: 20px; }

    /* About header padding */
    .about-header-padding, .inner-page-padding { padding: 60px 0 40px; }

    /* Images never overflow */
    img { max-width: 100%; height: auto; }

    /* Buttons full width on mobile where needed */
    .btn-area .header-btn1, .btn-area .header-btn2 { display: inline-block; width: auto; text-align: center; margin-bottom: 10px; }
    .footer-logo-area3 h3 { font-size: 20px; }
    .footer-newsletter-form { flex-direction: column; align-items: stretch; }
    .footer-newsletter-form input, .footer-newsletter-form button { width: 100%; min-width: 0; }
    .footer-logo-area, .footer-logo-area1, .footer-logo-area2, .footer-logo-area3 { text-align: center; }
    .footer-logo-area ul li,
    .footer-logo-area1 ul li,
    .footer-logo-area2 ul li,
    .footer-logo-area3 ul li { display: inline-block; margin: 0 8px 10px; }
    .footer-logo-area ul li a,
    .footer-logo-area1 ul li a,
    .footer-logo-area2 ul li a,
    .footer-logo-area3 ul li a { display: inline-flex; align-items: center; justify-content: center; }
}

/* Tablet Responsive Styles */
@media (min-width: 769px) and (max-width: 991px) {
    h1, .heading1 h1, .heading2 h1, .heading9 h1 { font-size: 36px !important; }
    h2, .heading1 h2, .heading2 h2, .heading9 h2 { font-size: 28px !important; }
    .container { padding-left: 20px; padding-right: 20px; }
    .sp5, .sp6, .sp4 { padding-top: 60px !important; padding-bottom: 60px !important; }
    .partner-badge { min-height: 90px; padding: 16px; }
    .btn-area .header-btn1, .btn-area .header-btn2 { display: inline-block; }
    .footer-logo-area3 h3 { font-size: 22px; }
    .footer-newsletter-form { flex-direction: column; align-items: stretch; }
    .footer-newsletter-form input, .footer-newsletter-form button { width: 100%; min-width: 0; }
    .footer-logo-area, .footer-logo-area1, .footer-logo-area2, .footer-logo-area3 { text-align: center; }
    .footer-logo-area ul li,
    .footer-logo-area1 ul li,
    .footer-logo-area2 ul li,
    .footer-logo-area3 ul li { display: inline-block; margin: 0 10px 12px; }
}

