/* Custom styles for team members */
.tm-member-carousel {
    max-width: 800px;
    margin: 0 auto;
}

.tm-member-carousel-kauselor {
    max-width: 800px;
    margin: 0 auto;
}

.tm-team-member {
    max-width: 220px;
    margin: 0 auto;
}

.tm-member-hover img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.tm-member-meta {
    padding: 10px;
}

.tm-member-name {
    font-size: 16px;
    margin-bottom: 2px;
}

.tm-member-speciality {
    font-size: 13px;
    line-height: 1.3;
}

/* Accordion responsive styles */
.accordian-wrapper {
    width: 100%;
    box-sizing: border-box;
}
.accordian-heading {
    font-size: 20px;
    margin-bottom: 12px;
    color: #2A3797;
}
.accordian {
    width: 100%;
}
.single-accordian {
    border-bottom: 1px solid #e6e6e6;
}
.accordian-head {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 10px;
    font-weight: 600;
    color: #002856;
    background: transparent;
    width: 100%;
    box-sizing: border-box;
}
.accordian-head .accordian-toggle {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #2A3797;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.accordian-body {
    padding: 10px 10px 18px;
    font-size: 15px;
    line-height: 1.5;
}

@media (max-width: 767px) {
    .accordian-wrapper { padding: 0 12px; }
    .accordian-heading { font-size: 18px; text-align: left; }
    .accordian-head { padding: 14px 8px; font-size: 16px; }
    .accordian-body { font-size: 15px; padding-left: 6px; padding-right: 6px; }
}

/* Reduce hero headline on small screens for better fit */
@media (max-width: 767px) {
    .hero-slider1 .slider-text h1,
    .hero .slider-text h1 {
        font-size: 28px !important;
        line-height: 36px !important;
        margin-bottom: 8px;
    }
    /* If very small screens, make it slightly smaller */
    @media (max-width: 360px) {
        .hero-slider1 .slider-text h1,
        .hero .slider-text h1 {
            font-size: 22px !important;
            line-height: 30px !important;
        }
    }
}

/* Give contact info some horizontal padding on small devices */
@media (max-width: 767px) {
    .tm-contact-info {
        padding-left: 12px;
        padding-right: 12px;
        box-sizing: border-box;
    }
}

/* Landing page announcement modal */
.landing-modal {
    position: fixed;
    inset: 0;
    display: none; /* shown via JS */
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.65);
    z-index: 99999;
    padding: 20px;
}
.landing-modal.open { display: flex; }
.landing-modal .landing-modal-content {
    background: transparent; /* Changed from #fff to avoid white bars */
    border-radius: 8px;
    max-width: 920px;
    width: auto; /* Changed from 100% so it wraps content tightly */
    box-shadow: none; /* Removed shadow from container, can apply to img if needed */
    overflow: hidden;
    height: auto;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
}
.landing-modal .landing-modal-content img {
    display: block;
    width: auto; /* Allow width to adjust based on height */
    height: auto;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    background: #fff; /* Ensure image has background if transparent image */
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.landing-modal .landing-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    z-index: 10;
}

@media (max-width: 768px) {
    .landing-modal .landing-modal-content {
        max-width: 90%;
        max-height: 85vh;
    }
    .landing-modal .landing-modal-content img {
        max-height: 85vh;
    }
}

@media (max-width: 480px) {
    .landing-modal .landing-modal-content { max-width: 96%; }
    .landing-modal { padding: 12px; }
    .landing-modal .landing-modal-close { width: 32px; height: 32px; font-size: 14px; }
}

/* --- Interactive Enhancements --- */

/* 1. Service Cards Hover Effect */
.tm-tabs-wrap .tabs li {
    transition: all 0.3s ease;
}
.tm-tabs-wrap .tabs li:hover {
    transform: translateY(-5px);
    color: #2A3797; /* Main blue */
}
.tm-tabs-wrap .tabs li:hover i {
     color: #00c3ff; /* Lighter blue for icon */
}

.tm-about.tm-gray-bg {
    transition: all 0.3s ease;
    border-radius: 8px;
}


/* 2. Button Enhancements */
.tm-btn1 {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy effect */
    position: relative;
    z-index: 1;
}
.tm-btn1:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* 3. Scroll Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 4. Team Member Card Enhancements */
.tm-team-member {
    transition: transform 0.3s ease;
}
.tm-team-member:hover {
    transform: translateY(-10px);
    z-index: 2;
}
.tm-member-hover {
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    position: relative;
}
.tm-member-hover img {
    transition: transform 0.6s ease;
}
.tm-team-member:hover .tm-member-hover img {
    transform: scale(1.1);
}
.tm-member-meta {
    border-radius: 0 0 8px 8px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.tm-team-member:hover .tm-member-meta {
    background-color: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

/* 5. Contact Icon Animation */
.tm-single-contact i {
    transition: transform 0.4s ease, color 0.3s ease;
    display: inline-block;
}
.tm-single-contact:hover i {
    transform: scale(1.2) rotate(15deg);
    color: #2A3797;
}

/* 6. Hero Text Enhance */
.hero-slider1 .slider-text h1 {
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* 7. Nav Link Hover */
/* Fix: Target li instead of a to avoid breaking flex alignment */
.tm-primary-nav-list > .menu-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #2A3797;
    transition: width 0.3s ease;
}
.tm-primary-nav-list > .menu-item:hover::after {
    width: 100%;
}
.tm-primary-nav-list li a {
    /* Reset position relative if it was causing issues, though default is static */
    position: static;
}
