.logo-preloader {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.preloader {
    background-color: #ffffff;
}

.animation-preloader {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
} 

/* Remove orange overlay/gradient and shapes from hero */
.th-hero-wrapper.hero-2 {
    /* Neutralize theme color within hero only */
    --theme-color: transparent !important;
}

.hero-2 .th-hero-bg:before {
    background: none !important;
    opacity: 0 !important;
}

.hero-2 .hero-shape1,
.hero-2 .hero-shape2,
.hero-2 .hero-shape3 {
    display: none !important;
}

/* Make hero images bigger */
.th-hero-wrapper.hero-2 {
    min-height: 80vh !important;
}

.th-hero-wrapper .th-hero-bg {
    height: 100% !important;
    min-height: 80vh !important;
}

.th-hero-wrapper .th-hero-bg img,
.th-hero-wrapper .th-hero-bg[data-bg-src] {
    height: 100% !important;
    min-height: 80vh !important;
    object-fit: cover !important;
    width: 100% !important;
}

.th-hero-slide {
    height: 80vh !important;
    min-height: 600px !important;
}

.hero-style2 {
    margin: 120px 0 !important;
}

@media (max-width: 767px) {
    .th-hero-wrapper.hero-2 {
        min-height: 60vh !important;
    }
    
    .th-hero-wrapper .th-hero-bg {
        min-height: 60vh !important;
    }
    
    .th-hero-wrapper .th-hero-bg img,
    .th-hero-wrapper .th-hero-bg[data-bg-src] {
        min-height: 60vh !important;
    }
    
    .th-hero-slide {
        height: 60vh !important;
        min-height: 400px !important;
    }
    
    .hero-style2 {
        margin: 80px 0 !important;
    }
    
    .hero-2 .th-hero-bg:before {
        background: none !important;
        opacity: 0 !important;
    }
}

/* ---------- Footer fixes (global across pages) ---------- */
/* Hide stray pagination arrow block if present */
.th-pagination { display: none !important; }

/* Ensure consistent spacing and alignment */
.footer-layout1 .footer-top { padding: 28px 0 !important; }
.footer-layout1 .footer-logo { padding: 0 20px 0 0 !important; }
.footer-layout1 .footer-logo img { max-height: 64px; height: auto; width: auto; }

.footer-layout1 .footer-contact-wrap {
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 32px !important;
    align-items: center !important;
}

.footer-layout1 .footer-contact { margin: 0 !important; }
.footer-layout1 .footer-contact_text { margin-bottom: 4px !important; }
.footer-layout1 .footer-contact_link { font-size: 18px !important; }

/* Copyright row alignment */
.copyright-wrap { padding: 20px 0 !important; }
.copyright-wrap .text-end { text-align: right; }

@media (max-width: 991px) {
  .footer-layout1 .footer-contact-wrap { grid-template-columns: 1fr !important; text-align: left; }
  .copyright-wrap .text-end { text-align: center !important; }
}

/* ---------- Services page tweaks ---------- */
/* Hide Learn More buttons inside service cards */
#service-sec .service-card .th-btn { display: none !important; }

/* Ensure service icons look crisp */
.service-card .service-card_icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

/* ---------- Gallery popup styles ---------- */
.gallery-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gallery-popup-content {
    background: #fff;
    border-radius: 15px;
    max-width: 90%;
    max-height: 90%;
    width: 800px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.gallery-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: var(--theme-color, #3E66F3);
    color: #fff;
}

.gallery-popup-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.gallery-popup-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.gallery-popup-close:hover {
    transform: scale(1.1);
}

.gallery-popup-body {
    padding: 30px;
    max-height: 70vh;
    overflow-y: auto;
}

.gallery-swiper {
    width: 100%;
    height: 400px;
}

.gallery-swiper .swiper-slide {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gallery-swiper .swiper-slide img {
    max-width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.gallery-swiper .swiper-slide p {
    margin: 0;
    color: #666;
    font-size: 16px;
    font-style: italic;
}

.gallery-swiper .swiper-pagination {
    position: relative;
    margin-top: 20px;
}

.gallery-swiper .swiper-button-next,
.gallery-swiper .swiper-button-prev {
    color: var(--theme-color, #3E66F3);
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-swiper .swiper-button-next:after,
.gallery-swiper .swiper-button-prev:after {
    font-size: 18px;
}

.gallery-swiper .swiper-pagination-bullet {
    background: var(--theme-color, #3E66F3);
    opacity: 0.5;
}

.gallery-swiper .swiper-pagination-bullet-active {
    opacity: 1;
}

/* Gallery card hover effects */
.gallery-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-popup-content {
        max-width: 95%;
        margin: 10px;
    }
    
    .gallery-popup-header {
        padding: 15px 20px;
    }
    
    .gallery-popup-header h3 {
        font-size: 20px;
    }
    
    .gallery-popup-body {
        padding: 20px;
    }
    
    .gallery-swiper {
        height: 300px;
    }
    
    .gallery-swiper .swiper-slide img {
        max-height: 200px;
    }
}
/* ---------- Testimonial card custom styles ---------- */
.testi-card_profile {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.testi-card_avater {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
}

.testi-card_avater img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testi-card_name {
    font-size: 24px;
    font-weight: 700;
    color: #1B1B1B;
    margin-bottom: 5px;
}

.testi-card_desig {
    font-size: 16px;
    color: #FF6B2C;
    font-weight: 500;
}

@media (max-width: 575px) {
    .testi-card_avater {
        width: 120px;
        height: 120px;
    }

    .testi-card_name {
        font-size: 20px;
    }
}

/* ---------- Contact Section Mobile Responsive Styles ---------- */

/* Contact info and form responsive layout */
.contact-info,
.contact-form {
    padding: 20px 15px !important;
}

.contact-title {
    font-size: 24px !important;
    margin-bottom: 20px !important;
    font-weight: 700 !important;
}

.contact-item {
    display: flex !important;
    gap: 15px !important;
    margin-bottom: 20px !important;
    padding: 15px !important;
    background: #f8f8f8 !important;
    border-radius: 8px !important;
}

.contact-item .icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 50px !important;
    width: 50px !important;
    height: 50px !important;
    background: var(--theme-color, #3E66F3) !important;
    color: white !important;
    border-radius: 50% !important;
    font-size: 20px !important;
    flex-shrink: 0 !important;
}

.contact-item .content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.contact-item .content h3 {
    margin: 0 0 5px 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1B1B1B !important;
}

.contact-item .content p {
    margin: 0 !important;
    font-size: 14px !important;
    color: #666 !important;
    line-height: 1.4 !important;
}

/* Contact form responsive styling */
.contact-form .form-group {
    margin-bottom: 15px !important;
}

.contact-form .form-control {
    width: 100% !important;
    padding: 12px 15px !important;
    border: 1px solid #ddd !important;
    border-radius: 5px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

.contact-form textarea.form-control {
    resize: vertical !important;
    min-height: 120px !important;
}

.contact-form .th-btn {
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    border-radius: 5px !important;
}

/* Map responsive */
.map-sec {
    margin-top: 30px !important;
    margin-bottom: 30px !important;
}

.map-sec iframe {
    display: block !important;
    width: 100% !important;
}

/* Mobile layout for contact row */
@media (max-width: 991px) {
    .row.gy-4 .col-lg-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    .contact-info,
    .contact-form {
        padding: 20px 0 !important;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    .contact-title {
        font-size: 18px !important;
        margin-bottom: 15px !important;
    }
    
    .contact-item {
        gap: 12px !important;
        margin-bottom: 15px !important;
        padding: 12px !important;
    }
    
    .contact-item .icon {
        min-width: 45px !important;
        width: 45px !important;
        height: 45px !important;
        font-size: 18px !important;
    }
    
    .contact-item .content h3 {
        font-size: 15px !important;
    }
    
    .contact-item .content p {
        font-size: 13px !important;
    }
    
    .contact-form .form-control {
        padding: 10px 12px !important;
        font-size: 13px !important;
    }
    
    .contact-form textarea.form-control {
        min-height: 100px !important;
    }
    
    .contact-form .th-btn {
        font-size: 14px !important;
        padding: 10px 15px !important;
    }
}