/*--======================================
styles for blogs pages (not present in service page starts
=============================*/

/*------For Show-hide placed inside "related blogs"----------*/
#answer,
#show,
#hide:target {
    display: none;
}

#hide:target+#show,
#hide:target~#answer {
    display: inherit;
}

.show-hide {
    padding: 20px 0;
}

/*----show hide styling ends----*/

.author {
    padding-bottom: 10px;
    font-style: italic;
    font-size: 0.9em;
    color: rgb(4, 62, 62);
}

.blog-header hr {
    content: "";
    max-width: 400px;
    border-top: 1px solid cadetblue;
    margin-bottom: 20px;
}

.fact {
    background-color: #e8f4ff;
    border-left: 5px solid #0077cc;
    padding: 10px 15px;
    margin: 10px 0 25px;
    border-radius: 8px;
}

/*---Appointment section for blog page---*/
.cta-box {
    background-color: #046380;
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
    text-align: center;
}

.cta-box h3 {
    color: white;
}

.cta-button {
    display: inline-block;
    background-color: white;
    color: #046380;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #f0f0f0;
}

/*--======================================
styles for blogs pages ends
=============================*/

/*----------------------------
service section with sidebar
--------------------------------*/
.services-main-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px 5%;
    display: flex;
    gap: 30px;
    background-color: #fff;
}

/*---Left container for services body section---*/
.left-container {
    flex: 1;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}


/*--Read more link with hover effect of arrow moving right--*/
.read-more-spl {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #0066cc;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more-spl span {
    margin-right: 5px;
}

.read-more-spl .arrow-rt {
    display: inline-block;
    transition: transform 0.3s ease;
}

.read-more-spl:hover {
    color: #b41207;
    text-decoration: none;
}

.read-more-spl:hover .arrow-rt {
    transform: translateX(15px);
}

/*--Read more ends---*/

/*---Style for right container---*/
.right-container {
    width: 350px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.right-container p {
    padding: 15px 0;
}


.sdbar-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.sdbar-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.sdbar-card h4 {
    color: var(--tertiary-color);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.sdbar-card p {
    color: var(--text-grey);
    line-height: 1.6;
    margin-bottom: 15px;
}

.sdbar-card ul {
    list-style: none;
    padding: 0;
}

.sdbar-card ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.sdbar-card ul li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.sdbar-card a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.sdbar-card a:hover {
    color: var(--tertiary-color);
    text-decoration: underline;
}

.sidebar-title {
    font-size: 1.6em;
    margin-bottom: 10px;
    position: relative;
}

.sidebar-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/*---------For Ralated Blogs-----------------------*/
.related-blogs a {
    font-size: 1em;
    color: #333;
    font-weight: 500;
}

.related-blogs a:hover {
    display: block;
    color: #007bff;
    text-decoration: none;
}



.category-accordion {
    margin-bottom: 40px;
}

.category-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background-color: white;
    cursor: pointer;
    border: 1px solid #c7c7c7;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.category-header:hover {
    background-color: #ddd;
}

.category-name {
    font-size: 1em;
    font-weight: 500;
    color: #333;
}

.category-icon {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
}

.category-header[aria-expanded="true"] .category-icon {
    transform: rotate(180deg);
}

.blog-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background-color: white;
    border-left: 1px solid #c7c7c7;
    border-right: 1px solid #c7c7c7;
    border-bottom: 1px solid #c7c7c7;
    border-radius: 0 0 8px 8px;
}

.category-header[aria-expanded="true"]+.blog-list {
    max-height: 800px;
}

.blog-list-inner {
    padding: 16px 24px;
}

.blog-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.blog-item:last-child {
    border-bottom: none;
}

/*
.blog-thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 16px;
}
    */

.blog-details {
    flex: 1;
}

.blog-details a {
    color: #666;
    font-weight: 500;
    font-size: 1em;
    margin: 0 0 6px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-details ul li {
    color: #666;
    font-weight: 500;
    font-size: 1em;
    margin: 0 0 6px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-details a:hover {
    display: block;
    text-decoration: none;
    color: rgb(63, 165, 249);
}

/*
.blog-meta {
    display: flex;
    font-size: 14px;
    color: #718096;
}

.blog-date {
    margin-right: 16px;
}

*/
/*---Style for Hospital card--*/
.sdbar-hospital {
    padding: 15px;
    background-color: #fff;
    border-radius: 16px;
}

.sdbar-hospital h3 {
    margin: 0;
    font-size: 1.1em;
}


/* Tablets (width: 768px - 1024px) */
@media (max-width: 1024px) {
    .services-main-container {
        flex-direction: column;
        padding: 20px;
    }

    .left-container {
        width: 100%;
    }

    .right-container {
        width: 100%;
    }
}

/* Phones (width: <768px) */
@media (max-width: 768px) {
    .services-main-container {
        padding: 15px;
    }

    .left-container {
        padding: 20px;
    }

    .sdbar-card {
        padding: 15px;
    }
}


/*------------------------
  Style for services body section
---------------------------*/
.blog-header h1 {
    font-size: 1.6em;
    text-align: start;
}

.blog-header h2 {
    font-size: 1.4em;
}

.blog-header h3 {
    font-size: 1.3em;
}

.blog-header p {
    color: #333;
    line-height: 1.6;
}

/* --------------------------
Featured Image Container 
----------------------------*/
.featured-image-container {
    text-align: center;
    margin-bottom: 30px;
    width: 100%;
}

.featured-image-wrapper {
    width: 50%;
    position: relative;
    padding-top: 37.5%;
    /* 4:3 Aspect Ratio */
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
}

.featured-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.blog-featured-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 30px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 80%;
}

.featured-image-container .image-caption {
    text-align: left;
    align-self: flex-start;
    margin-left: 25%;
}

/* Responsive Design for Tablet */
@media (max-width: 1026px) {
    .featured-image-wrapper {
        width: 70%;
        padding-top: 52.5%;
        /* Maintain 4:3 ratio */
    }

    .image-caption {
        max-width: 70%;
        margin-left: 15%;
    }
}

/* Responsive Design for mobile */
@media (max-width: 768px) {
    .featured-image-wrapper {
        width: 90%;
        padding-top: 67.5%;
        /* Maintain 4:3 ratio */
    }

    .image-caption {
        max-width: 90%;
        margin-left: 5%;
    }
}

/*--Style for blog body after blog-header */
.blog-body {
    line-height: 1.8;
    color: #444;
}

.blog-body h1 {
    text-align: start;
    margin-bottom: 2px;
}

.blog-body h2 {
    color: #1e7b7b;
    margin: 30px 0 15px;
    font-size: 1.2em;
    font-weight: 600;
}

.blog-body h3 {
    font-size: 1.2em;
    font-weight: 600;
}

.blog-body p {
    margin-bottom: 20px;
}

.blog-body li {
    font-size: 16px;
}


/* Image and Caption Styles */
.blog-image-container {
    margin: 30px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.blog-image-wrapper {
    width: 50%;
    position: relative;
    padding-top: 37.5%;
    /* 4:3 Aspect Ratio (50% * 0.75 = 37.5%) */
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 10px;
}

.blog-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.image-caption {
    color: #666;
    font-size: 0.9em;
    font-style: italic;
    max-width: 50%;
    line-height: 1.4;
    margin-top: 8px;
    text-align: left;
    align-self: flex-start;
    margin-left: 25%;
}


/* Responsive Design for tablet */
@media (max-width: 1026px) {

    .blog-image-wrapper {
        width: 70%;
        padding-top: 52.5%;
        /* Maintain 4:3 ratio */
    }

    .image-caption {
        max-width: 70%;
        margin-left: 15%;
    }
}

/* responsive for mobile readability */
@media (max-width: 768px) {
    .blog-body {
        font-size: 16px;
        line-height: 1.6;
    }

    .blog-image-wrapper {
        width: 90%;
        padding-top: 67.5%;
        /* Maintain 4:3 ratio */
    }

    .image-caption {
        max-width: 90%;
        margin-left: 5%;
    }
}


/*..-----------------------------------------
added CSS for services laparoscopic surgery page 
-----------------------------------------------..*/

.key-point {
    background-color: #e8f4f8;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
    border-left: 4px solid #2980b9;
}

/*------css for benefits section------*/
.benefits-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 2rem;
}

.benefit-card {
    background-color: #f9f9f9;
    border-left: 2px solid #0077b6;
    border-right: 2px solid #0077b6;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.benefit-card h3 {
    color: #005e9b;
    margin-top: 0;
}

/* Add specific styling for btn-body within sdbar-card */
.sdbar-card .btn-body {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.sdbar-card .btn-body:hover {
    background-color: transparent;
    color: var(--primary-color);
    text-decoration: none;
}

@media (max-width: 768px) {
    .sdbar-card .btn-body {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
}