/* Blog & Case Study Grid CSS */
.news-header { padding: 4rem 0 2rem; text-align: center; }
.search-bar-custom { max-width: 600px; margin: 0 auto; border-radius: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }

.post-card-large { position: relative; border-radius: 16px; overflow: hidden; height: 450px; display: flex; align-items: flex-end; padding: 25px; text-decoration: none; transition: transform 0.3s; }
.post-card-large:hover { transform: translateY(-5px); }
.post-card-large img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.post-card-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, transparent 100%); }
.post-card-content { position: relative; z-index: 3; color: white; width: 100%; }
.post-badge { background: white; color: #333; font-size: 0.75rem; font-weight: bold; padding: 4px 12px; border-radius: 20px; display: inline-block; margin-bottom: 10px; }

.sidebar-list-item { display: flex; gap: 15px; margin-bottom: 20px; text-decoration: none; color: inherit; }
.sidebar-list-item:hover h6 { color: #fd7e14; }
.sidebar-list-item img { width: 90px; height: 90px; border-radius: 12px; object-fit: cover; }
.sidebar-date { font-size: 0.8rem; color: #888; }

/* Therapist Profile Modal CSS */
.profile-modal-bg { background-color: #f8f9fa; }
.profile-name-highlight { color: #f9004d; }
.profile-pre-title { letter-spacing: 2px; font-size: 0.8rem; color: #6c757d; text-transform: uppercase; }
.profile-qual-box { background: white; padding: 10px 15px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); display: inline-block; margin: 5px; font-weight: bold; font-size: 0.9rem; }
.clickable-card { cursor: pointer; transition: transform 0.2s; }
.clickable-card:hover { transform: scale(1.05); }

/* Therapist Slider CSS */
.teachers-section { background: linear-gradient(to bottom, #a0d468 55%, #ffffff 55%); padding: 4rem 0; }
.teacher-track-wrapper { position: relative; max-width: 1000px; margin: 0 auto; padding: 0 50px; }
.teacher-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 20px; scrollbar-width: none; }
.teacher-track::-webkit-scrollbar { display: none; }
.teacher-card { flex: 0 0 calc(25% - 15px); scroll-snap-align: start; text-align: center; }
.teacher-img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 6px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.1); margin-bottom: 1rem; }
.teacher-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: #977d6c; color: white; border: none; font-size: 1.2rem; cursor: pointer; z-index: 10; }
.teacher-prev { left: 0; }
.teacher-next { right: 0; }

@media (max-width: 768px) {
    .teacher-card { flex: 0 0 calc(50% - 10px); }
    .teacher-img { width: 120px; height: 120px; }
    .teacher-track-wrapper { padding: 0 30px; }
}

/* 3D Footer CSS */
.footer-3d { background: linear-gradient(145deg, #ff943d, #e56e0d); box-shadow: 0 -8px 15px rgba(0, 0, 0, 0.15), inset 0 2px 2px rgba(255, 255, 255, 0.4), inset 0 -3px 4px rgba(0, 0, 0, 0.15); border-top: 1px solid #ffb37b; color: white; }
.footer-3d a { color: #ffffff; text-decoration: none; transition: transform 0.2s ease-in-out, text-shadow 0.2s ease-in-out; display: inline-block; }
.footer-3d ul a:hover { transform: translateX(6px); text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3); font-weight: bold; }
.footer-3d .footer-logo { filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2)); background: rgba(255, 255, 255, 0.15) !important; border: 1px solid rgba(255, 255, 255, 0.3); }

/* 3D Navbar CSS */
.navbar-3d { background: linear-gradient(145deg, #ff943d, #e56e0d); box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15), 0 3px 6px rgba(0, 0, 0, 0.10), inset 0 2px 2px rgba(255, 255, 255, 0.4), inset 0 -3px 4px rgba(0, 0, 0, 0.15); border-bottom: 1px solid #c85a08; z-index: 1030; }
.navbar-3d .navbar-brand img { filter: drop-shadow(0 4px 4px rgba(0,0,0,0.2)); }
.navbar-3d .nav-link { color: #ffffff !important; font-weight: bold; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); padding: 8px 16px !important; margin: 0 4px; border-radius: 8px; transition: all 0.2s ease-in-out; }
.navbar-3d .nav-link:hover { background: rgba(0, 0, 0, 0.08); box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.2); transform: translateY(2px); text-shadow: none; }
.navbar-3d .navbar-toggler { border: none; box-shadow: 0 2px 4px rgba(0,0,0,0.2); background: #e56e0d; }

/* Playful Feature Section CSS */
.feature-icon { width: 90px; height: 90px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: white; transition: transform 0.3s ease; }
.feature-icon:hover { transform: scale(1.1); }
.bg-red { background-color: #f44336; }
.text-red { color: #f44336; }
.bg-yellow { background-color: #ffca28; }
.text-yellow { color: #ffca28; }
.bg-green { background-color: #8bc34a; }
.text-green { color: #8bc34a; }
.bg-blue { background-color: #29b6f6; }
.text-blue { color: #29b6f6; }
.section-title-brown { color: #5d4037; }
.title-underline { border-bottom: 3px solid #ffca28; width: 60px; margin: 0 auto; }
.bg-orange { background-color: #fd7e14; color: white; }
.bg-orange .nav-link, .bg-orange a { color: white; text-decoration: none; }
.bg-orange .nav-link:hover, .bg-orange a:hover { opacity: 0.8; }
.navbar-toggler { filter: invert(1); border-color: white; }
.service-card { transition: transform 0.3s ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
#ajax-response { display: none; }

/* Updated Masonry Gallery & Lightbox CSS */
.masonry-grid { column-count: 2; column-gap: 1rem; }
@media (min-width: 768px) { .masonry-grid { column-count: 3; } }
@media (min-width: 1024px) { .masonry-grid { column-count: 4; } } 
.masonry-item { break-inside: avoid; margin-bottom: 1rem; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 4px 6px rgba(0,0,0,0.05); cursor: pointer; transition: transform 0.2s ease-in-out; }
.masonry-item:hover { transform: scale(1.03); box-shadow: 0 8px 15px rgba(0,0,0,0.1); }
.masonry-item img, .masonry-item video { width: 100%; display: block; height: auto; }
.video-thumbnail-wrapper { position: relative; }
.play-icon-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: rgba(255, 255, 255, 0.8); font-size: 3rem; text-shadow: 0 2px 10px rgba(0,0,0,0.5); pointer-events: none; }

/* Responsive Slider Fix */
.slider-image { object-fit: cover; object-position: center; height: auto; width: 100%; display: block; }
@media (max-width: 768px) { .slider-image { height: auto; } }

/* Mobile Service Grid Optimization (2 Cards per row) */
@media (max-width: 576px) {
    #services .row {
        --bs-gutter-x: 0.5rem;
        --bs-gutter-y: 0.5rem;
    }
    .service-card .card-img-top {
        height: 110px !important;
    }
    .service-card .card-body {
        padding: 0.75rem !important;
    }
    .service-card .card-title {
        font-size: 0.9rem !important;
        margin-bottom: 0.25rem !important;
    }
    .service-card .card-text {
        font-size: 0.75rem !important;
        margin-bottom: 0 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    }
    .service-card .card-footer {
        padding: 0 0.75rem 0.75rem 0.75rem !important;
    }
    .service-card .btn {
        font-size: 0.75rem !important;
        padding: 6px 4px !important;
    }
}