/* ======================================================================
   INSIGHTS.CSS — Loaded only on insights pages
   ====================================================================== */
/* ----------------------------------------------------------------------
   7. Specialized Pages Blocks (Patan/Bhavnagar, Blog list grids)
   ---------------------------------------------------------------------- */
.page-banner-section {
    padding: 80px 0;
    background-color: var(--color-primary);
    color: var(--color-text-light);
    position: relative;
}

.page-banner-title {
    color: var(--color-text-light);
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 10px;
}

.page-banner-desc {
    font-size: 16px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Branch consulting grids */
.location-branches-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 30px;
}

.branch-card {
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

.branch-title {
    font-size: 18px;
    margin-bottom: 8px;
}

.branch-detail {
    font-size: 16px;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.branch-hours {
    font-size: 16px;
}

.branch-link {
    display: inline-block;
    margin-top: 15px;
    font-size: 15px;
    font-weight: 700;
}

/* Gallery layout style sheets */
.gallery-filter-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 18px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-alt);
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.gallery-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.gallery-item-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 4/3;
}

.gallery-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-item-card:hover img {
    transform: scale(1.08);
}

.gallery-overlay-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(12, 90, 90, 0.85) 0%, transparent 100%);
    color: white;
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    transition: var(--transition-smooth);
}

.gallery-item-card:hover .gallery-overlay-meta {
    opacity: 1;
}

.gallery-overlay-meta h3 {
    color: white;
    font-size: 16px;
    margin: 0;
}

/* Blog list grids layout */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-smooth);
    position: relative;
    box-shadow: var(--shadow-sm);
}

/* Light sweep reflection effect */
.blog-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    transition: none;
    z-index: 5;
    pointer-events: none;
}

.blog-card:hover::after {
    left: 150%;
    transition: all 0.75s ease-in-out;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

/* Doctor themed borders on hover */
.blog-card.doc-ortho:hover {
    border-color: var(--color-accent);
    box-shadow: 0 20px 35px -10px rgba(229, 194, 124, 0.15);
}

.blog-card.doc-peds:hover {
    border-color: var(--color-primary-light);
    box-shadow: 0 20px 35px -10px rgba(12, 90, 90, 0.12);
}

.blog-card-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img {
    transform: scale(1.06);
}

.blog-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(7, 56, 56, 0) 60%, rgba(7, 56, 56, 0.4) 100%);
    pointer-events: none;
}

.blog-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-full);
    z-index: 4;
    box-shadow: var(--shadow-sm);
}

.blog-card-category.cat-blog {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.blog-card-category.cat-case-study {
    background-color: var(--color-accent);
    color: var(--color-primary-dark);
}

.blog-card-category.cat-news {
    background-color: var(--color-accent-dark);
    color: var(--color-text-light);
}

.placeholder-thumbnail {
    background: rgba(12, 90, 90, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    color: var(--color-primary-light);
}

.blog-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.blog-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.blog-meta-doc {
    font-weight: 600;
}

.doc-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.doc-ortho .doc-badge-dot {
    background-color: var(--color-accent-dark);
}

.doc-peds .doc-badge-dot {
    background-color: var(--color-primary-light);
}

.blog-meta-separator {
    opacity: 0.4;
}

.blog-card-title {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.blog-card-title a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.blog-card-title a:hover {
    color: var(--color-accent-dark);
}

.blog-card-excerpt {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--color-border);
    font-size: 15px;
    margin-top: auto;
}

.blog-card-date {
    color: var(--color-text-muted);
}

.blog-card-link {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-smooth);
}

.blog-card.doc-ortho .blog-card-link {
    color: var(--color-accent-dark);
}

.blog-card.doc-ortho .blog-card-link:hover {
    color: var(--color-primary);
}

.blog-card.doc-peds .blog-card-link {
    color: var(--color-primary-light);
}

.blog-card.doc-peds .blog-card-link:hover {
    color: var(--color-accent-dark);
}

.blog-card-link .link-arrow {
    transition: transform 0.3s ease;
}

.blog-card-link:hover .link-arrow {
    transform: translateX(4px);
}

/* Podcasts columns */
.podcast-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.video-card {
    background-color: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.video-embed-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
}

.video-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-info {
    padding: 25px;
}

.video-duration {
    font-size: 14px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.video-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.video-info p {
    font-size: 16px;
    color: var(--color-text-muted);
    margin: 0;
}

/* ======================================================================
   GALLERY PAGE PREMIUM ADDITIONS
   ====================================================================== */

.gallery-showcase-section {
    background-color: var(--color-bg);
}

.gallery-filters-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 25px;
}

.doctor-filter-wrapper,
.category-filter-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
}

/* Doctor Segment Control */
.doctor-filter-segment {
    position: relative;
    background-color: #f1f5f9;
    border-radius: var(--radius-full);
    display: inline-flex;
    padding: 4px;
    border: 1.5px solid #e2e8f0;
    align-items: center;
}

.doctor-filter-segment .segment-indicator {
    position: absolute;
    height: calc(100% - 8px);
    top: 4px;
    background-color: var(--color-primary);
    border-radius: var(--radius-full);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 10px rgba(12, 90, 90, 0.2);
    z-index: 1;
}

.doctor-filter-segment .segment-btn {
    position: relative;
    z-index: 2;
    border: none;
    background: none;
    padding: 8px 20px;
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: var(--radius-full);
    transition: color 0.25s ease;
}

.doctor-filter-segment .segment-btn.active {
    color: white !important;
}

.doctor-filter-segment .segment-btn:hover:not(.active) {
    color: var(--color-primary-dark);
}

/* Override category filter pills spacing on Gallery page only */
.gallery-showcase-section .gallery-filter-nav {
    margin-bottom: 0 !important;
}

/* Gallery Item Cards & Premium Hover Overlay */
.gallery-item-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4/3;
    background-color: var(--color-primary-dark);
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.gallery-item-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.gallery-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 90, 90, 0.85); /* Orthopaedic clinic branded overlay color */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 25px;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 5;
}

.gallery-item-card:hover .gallery-hover-overlay {
    opacity: 1;
    transform: scale(1);
}

.gallery-card-badge {
    background-color: var(--color-accent);
    color: white;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.gallery-card-title {
    color: white !important;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 8px;
    line-height: 1.4;
    max-width: 90%;
}

.gallery-card-doctor-badge {
    color: rgba(255, 255, 255, 0.75);
    font-size: 12.5px;
    font-style: italic;
    font-weight: 500;
    margin-bottom: 16px;
}

.gallery-zoom-trigger {
    color: white;
    font-size: 12.5px;
    font-weight: 700;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.gallery-zoom-trigger:hover {
    background: white;
    color: var(--color-primary-dark);
    border-color: white;
}

/* Fullscreen Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 12, 10, 0.96); /* Dark branded backdrop */
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 35px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 44px;
    border: none;
    background: none;
    cursor: pointer;
    transition: color 0.25s ease, transform 0.25s ease;
    z-index: 10010;
}

.lightbox-close:hover {
    color: white;
    transform: rotate(90deg);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 40px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 25px;
    transition: color 0.25s ease, transform 0.25s ease;
    z-index: 10010;
}

.lightbox-arrow:hover {
    color: white;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-prev:hover {
    transform: translateY(-50%) translateX(-4px);
}

.lightbox-next {
    right: 20px;
}

.lightbox-next:hover {
    transform: translateY(-50%) translateX(4px);
}

.lightbox-content {
    max-width: 85%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10005;
}

.lightbox-modal.active .lightbox-content {
    animation: lightboxZoomIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes lightboxZoomIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
#lightbox-img {
    max-width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-caption {
    color: white;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-heading);
    text-align: center;
    margin-top: 20px;
    max-width: 85%;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
    .gallery-filters-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .doctor-filter-segment {
        width: 100%;
        justify-content: space-between;
    }
    
    .doctor-filter-segment .segment-btn {
        flex: 1;
        text-align: center;
        padding: 8px 10px;
        font-size: 12.5px;
    }
    
    .lightbox-arrow {
        font-size: 30px;
        padding: 15px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 36px;
    }
}

/* Premium Video Play Overlay & Lightbox Iframe Wrapper */
.gallery-video-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.25);
    border: 2.5px solid rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.gallery-video-indicator::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent #ffffff;
    margin-left: 5px; /* Offset play icon slightly to visual center */
}

.gallery-item-card:hover .gallery-video-indicator {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
}

.lightbox-video-wrapper {
    width: 80vw;
    max-width: 960px;
    aspect-ratio: 16/9;
    background-color: #000;
    border-radius: var(--radius-md);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}
@media (max-width: 768px) {
    .lightbox-video-wrapper {
        width: 95vw;
        aspect-ratio: 16/9;
    }
}
