/* ================= BASE LAYOUT ================= */
html,
body {
    height: 100%;
    margin: 0;
}

.site-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-content {
    flex: 1;
}

.case-sr {
    color: red;
    font-weight: 400;
    margin-right: 6px;
}

/* ================= HEADER ================= */
.header {
    background-color: #ffffff;
    padding: 1rem 4.2rem;
    /* border-bottom: 3px solid #1f8b3f; */
}

.logo-img {
    max-width: 350px;
}

/* ================= MENU ================= */
.side-menu {
    list-style: none;
    gap: 1.5rem;
}

.side-menu li a {
    text-decoration: none;
    font-size: 14px;
    color: #000;
    font-weight: 500;
    text-transform: uppercase;
}

.side-menu li a:hover {
    text-decoration: underline;
}

.hero-section {
    border-top: 3px solid #1f8b3f !important;
    border-bottom: 3px solid #1f8b3f !important;
}

/* ================= HERO ================= */
.hero-img {
    height: 70vh;
    object-fit: cover;
}

.carousel-caption {
    bottom: 40px;
}

.carousel-caption h2 {
    background: rgba(0, 0, 0, 0.5);
    display: inline-block;
    padding: 10px 16px;
    font-size: 24px;
}

.video-embed {
    position: relative;
    margin: 20px 0;
    padding-bottom: 56.25%;
    height: 0;
    clear: both;
}

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

/* ================= CONTENT ================= */

@media (min-width: 769px) {
    .content_section {
        background-color: #ffffff;
        padding: 1.5rem 2.5rem;
    }

    .heading {
        flex: 0 0 50%;
        max-width: 50%;

        white-space: normal;
        overflow-wrap: anywhere;
    }

    /* RIGHT BLOCK – 40% */
    .home_Section {
        flex: 0 0 50%;
        max-width: 50%;

        /* CONTENT CONTROL */
        overflow: hidden;
        word-wrap: break-word;
    }
}
/* ================= FOOTER ================= */
.footer {
    background: linear-gradient(#3a3a3a, #2b2b2b);
    padding: 1.5rem 0;
    /* //border-top: 3px solid #1f8b3f; */
    font-size: 14px;
    color: #ffffff;
}

/* Footer links */
.quick-links {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 0;
}

.quick-links li {
    position: relative;
}

/* Separator */
.quick-links li:not(:last-child)::after {
    content: "|";
    color: #bfbfbf;
    margin-left: 12px;
}

.quick-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

.quick-links a:hover {
    text-decoration: underline;
}

/* Bootstrap toggler fix */
.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Menu links */
.navbar-nav .nav-link {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    color: #000;
}

.navbar .nav-link.active {
    color: red !important;
    font-weight: 600;
}

.navbar-nav .nav-link:hover {
    color: red !important;
    font-weight: 600;
}

/* Mobile view */
@media (max-width: 991px) {
    .navbar-collapse {
        background: #ffffff;
        padding: 1rem 0;
    }

    .navbar-nav {
        align-items: center;
        gap: 10px;
    }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
    .side-menu {
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: center;
    }

    .hero-img {
        height: 50vh;
    }

    .carousel-caption h2 {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .header {
        padding: 1rem;
    }

    .logo-img {
        max-width: 220px;
    }
}

/* Diagnosis Index Page */

.diagnosis-title span {
    padding: 6px 14px;
    font-weight: 500;
}

.title-underline {
    width: 120px;
    height: 2px;
    background: red;
    margin: 8px auto 0;
}

.diagnosis-box {
    background: #fff;
    border-radius: 4px;
}

.diagnosis-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.diagnosis-list li {
    margin-bottom: 6px;
}

.diagnosis-list a {
    color: #1e5cb3;
    text-decoration: none;
    font-size: 14px;
}

.diagnosis-list a:hover {
    text-decoration: underline;
}

.image-slider {
    position: relative;
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 10px;
    height: 320px;
    overflow: hidden;
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
    cursor: zoom-in;
    transition: opacity 0.3s ease;
}

.slider-image.active {
    display: block;
}

.slider-arrow.right {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: #000;
    color: #fff;
    border: none;
    padding: 6px 10px;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
}

.slider-arrow.left {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    background: #000;
    color: #fff;
    border: none;
    padding: 6px 10px;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
}
.slider-arrow:hover {
    opacity: 1;
}

.image-caption {
    margin-top: 10px;
    font-size: 14px;
    color: #555;
}

.image-caption.active {
    background: #eef3ff;
    padding: 6px;
    border-left: 4px solid #3b6fd8;
}

.comparison-text {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
}

/* ============================= */
/* HOME FEATURED SECTION */
/* ============================= */

.home_page {
    background-color: #ffffff;
    padding: 1rem 2.5rem;
}

.home-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 20px;
    width: 100%;

    /* IMPORTANT */
    flex-wrap: nowrap;
}

/* LEFT BLOCK – 60% */

/* IMAGE CARD */
.image_div {
    width: 100%;
    max-width: 500px;
    max-height: 400px;
    /* background: #fff; */
    border-radius: 8px;

    border: 1px solid #e5e7eb;

    margin-bottom: 18px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.image_div a {
    display: block; /* 🔥 IMPORTANT */
    width: 100%;
    height: 100%;
}

.image_div img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 🔥 THIS IS THE KEY */
    display: block;
}

/* DESCRIPTION TEXT */
.description {
    font-size: 14px;
    line-height: 1.7;
    color: #374151;
}

/* RIGHT BLOCK */
.home_Section {
    flex: 0.9;
    padding-left: 40px;
    position: relative;
}

/* SOFT DIVIDER */
.home_Section::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, transparent, #d1d5db, transparent);
}

/* RIGHT CONTENT */
.home_content {
    font-size: 14px;
    line-height: 1.7;
    color: #374151;
}

/* YouTube embeds inside right section */
.home_content .youtube-embed {
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
    /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); */
}

/* ============================= */
/* IMAGE TITLE + CAPTION BLOCK */
/* ============================= */

.btn-primary {
    background-color: #000000 !important;
}

.btn-primary {
    color: white;
}

.image-text-block {
    margin-top: 10px;
    padding: 10px 12px;
    background: #ffffff;
    border-left: 8px solid #000000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    min-height: 60px;
    max-height: 60px;
    overflow-y: auto;
}

/* Comparison name (TITLE) */
.image-title {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: none; /* JS control karega */
}

/* Caption text */
.image-caption {
    font-size: 13px;
    color: #555;
    margin: 0;
    line-height: 1.5;
    display: none; /* JS control karega */
}

.image-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.image-modal.show {
    display: flex;
}

.modal-content-wrapper {
    position: relative;
    text-align: center;
}

#modalImage {
    max-width: 100%;
    max-height: 80vh;
    cursor: grab;
    transform-origin: center center;
    transition: transform 0.15s ease;
}

#modalImage:active {
    cursor: grabbing;
}

.modal-content-wrapper {
    position: relative; /* 🔥 anchor for buttons */
}

/* ZOOM CONTROLS – IMAGE START KE PAAS */
.zoom-controls {
    position: absolute; /* image container ke relative */
    top: 10px; /* image ke start ke paas */
    right: 10px;
    z-index: 10;
    display: flex;
    gap: 6px;
}

/* Button look */
.zoom-controls button {
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    border: none;
    width: 34px;
    height: 34px;
    font-size: 18px;
    border-radius: 4px;
    cursor: pointer;
}

.zoom-controls button:hover {
    background: #000;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

/* Arrows */
.modal-arrow {
    position: absolute;
    top: 50%;
    font-size: 40px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 5;
}

.modal-arrow.left {
    left: 30px;
}
.modal-arrow.right {
    right: 30px;
}

/* Zoom buttons */
.zoom-controls {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    display: flex;
    gap: 6px;
}

.zoom-controls button {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    width: 34px;
    height: 34px;
    font-size: 18px;
    border-radius: 4px;
    cursor: pointer;
}

.modal-content-wrapper {
    max-width: 90%;
    text-align: center;
}

.modal-content-wrapper img {
    max-height: 70vh;
    max-width: 100%;
    border: 4px solid #fff;
}

.modal-caption {
    background: #eef3ff;
    padding: 10px;
    margin-top: 10px;
    border-left: 8px solid #000000;
    font-size: 14px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 34px;
    color: #fff;
    cursor: pointer;
}

.google-search-box {
    display: flex;
    justify-content: center;
}

.google-search-box form {
    display: flex;
    width: 100%;
    max-width: 500px;
    border: 1px solid #dcdcdc;
    border-radius: 30px;
    overflow: hidden;
    background: #fff;
}

.google-search-box input {
    flex: 1;
    border: none;
    padding: 12px 18px;
    font-size: 14px;
    outline: none;
}

.google-search-box button {
    border: none;
    background: #000000;
    color: #fff;
    padding: 0 22px;
    font-size: 14px;
    cursor: pointer;
}

.google-search-box button:hover {
    background: #111111;
}

.title-underline {
    width: 120px;
    height: 2px;
    background: red;
    margin: 8px auto 0;
}

.about-content p {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    padding: 8px 14px;
    cursor: pointer;
    z-index: 1001;
}

.modal-arrow.left {
    left: 15px;
}

.modal-arrow.right {
    right: 15px;
}

.modal-arrow:hover {
    background: rgba(0, 0, 0, 0.6);
}

@media (max-width: 992px) {
    .home-content {
        gap: 24px;
    }

    .home_Section {
        padding-left: 24px;
    }

    .image_div {
        max-width: 360px;
    }
}

@media (max-width: 768px) {
    .home-content {
        flex-direction: column;
        gap: 28px;
    }

    .heading,
    .home_Section {
        flex: 1;
        width: 100%;
    }

    .home_Section {
        padding-left: 0;
        border-top: 1px solid #cbd5e1;
        padding-bottom: 10px;
        padding-top: 20px;
    }

    .home_Section::before {
        display: none;
    }

    .image_div {
        max-width: 100%;
        aspect-ratio: 16 / 9;
    }

    .description,
    .home_content {
        font-size: 15px;
        line-height: 1.7;
    }
}

.image-viewer {
    width: 100%;
    height: 80vh;
    overflow: auto;
    cursor: grab;
}

.image-viewer img {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.md-captions{
   margin-top: 10px;
  padding: 10px 12px;
  background: #ffffff;
  border-left: 8px solid #000000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  min-height: 60px;
  max-height: 60px;
  overflow-y: auto;
}