/* ==========================================================================
   Department / Service pages — design matching general-medicine-diabetology.php
   Content unchanged; visual system only
   ========================================================================== */

@media (min-width: 992px) {
    .boxed_wrapper,
    .specialities-single-area,
    .specialities-single-area .container,
    .specialities-single-area .row,
    .specialities-single-area .col-xl-4,
    .specialities-single-area .col-lg-7 {
        overflow: visible !important;
    }
    .specialities-sidebar {
        position: -webkit-sticky;
        position: sticky;
        top: 100px;
        z-index: 10;
        overflow: visible !important;
    }
}

.specialities-single-content h1,
.specialities-single-content h2,
.specialities-single-content h3,
.specialities-single-content h4 {
    margin-top: 40px !important;
    margin-bottom: 20px !important;
    text-align: left !important;
}

.specialities-single-content h1 + ul,
.specialities-single-content h2 + ul,
.specialities-single-content h3 + ul,
.specialities-single-content h4 + ul,
.specialities-single-content h1 + ol,
.specialities-single-content h2 + ol,
.specialities-single-content h3 + ol,
.specialities-single-content h4 + ol,
.specialities-single-content h1 + .single-footer-widget,
.specialities-single-content h2 + .single-footer-widget,
.specialities-single-content h3 + .single-footer-widget,
.specialities-single-content h4 + .single-footer-widget {
    margin-top: 22px !important;
}

.specialities-single-content p {
    line-height: 1.8 !important;
    margin-bottom: 20px !important;
}

.specialities-single-content table {
    margin-top: 30px !important;
    margin-bottom: 40px !important;
}

#faq-section {
    margin-top: 60px !important;
    margin-bottom: 60px !important;
}

#cta-section {
    margin-top: 60px !important;
    margin-bottom: 60px !important;
}

.meet-our-specialist {
    margin-top: 50px !important;
    margin-bottom: 50px !important;
}

/* Premium green tick card lists */
.specialities-single-content ul.specialities,
.specialities-single-content .single-footer-widget ul.specialities {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 8px 0 !important;
}

.specialities-single-content ul.specialities li,
.specialities-single-content .single-footer-widget ul.specialities li {
    position: relative;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    background: #ffffff !important;
    border: 1px solid #e8f0fe !important;
    border-left: 4px solid #8bc43f !important;
    border-radius: 14px !important;
    padding: 14px 16px !important;
    margin: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    transition: transform 0.28s cubic-bezier(0.25, 0.8, 0.25, 1),
        box-shadow 0.28s ease !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    color: #1e293b !important;
    font-weight: 500 !important;
}

.specialities-single-content ul.specialities li i,
.specialities-single-content .single-footer-widget ul.specialities li i {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 46px !important;
    width: 46px !important;
    height: 46px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, rgba(139, 196, 66, 0.15) 0%, rgba(139, 196, 66, 0.28) 100%) !important;
    color: #5a9a00 !important;
    font-size: 17px !important;
    margin: 0 !important;
    margin-right: 0 !important;
    flex-shrink: 0 !important;
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome !important;
    font-weight: 900 !important;
    font-style: normal !important;
    background-image: none;
    transition: transform 0.28s cubic-bezier(0.25, 0.8, 0.25, 1),
        background 0.28s ease,
        color 0.28s ease,
        box-shadow 0.28s ease !important;
}

/* Always show tick icons (override global rotating nth-child icons) */
.specialities-single-content ul.specialities li i::before,
.specialities-single-content ul.specialities li:nth-child(n) i::before,
.specialities-single-content .single-footer-widget ul.specialities li i::before,
.specialities-single-content .single-footer-widget ul.specialities li:nth-child(n) i::before,
.specialities-single-content ul:not(.specialities-categories) li:nth-child(n)::before {
    content: "\f058" !important;
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome !important;
    font-weight: 900 !important;
    font-style: normal !important;
    color: #5a9a00 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
}

/* If list item has no <i>, still show tick via ::before on li — but hide duplicate when i exists */
.specialities-single-content ul.specialities li:has(i)::before,
.specialities-single-content .single-footer-widget ul.specialities li:has(i)::before,
.specialities-single-content ul:not(.specialities):not(.specialities-categories) li:has(i)::before {
    display: none !important;
    content: none !important;
}

.specialities-single-content ul.specialities li:hover,
.specialities-single-content .single-footer-widget ul.specialities li:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10) !important;
    color: #1e293b !important;
}

.specialities-single-content ul.specialities li:hover i,
.specialities-single-content .single-footer-widget ul.specialities li:hover i {
    transform: scale(1.12) rotate(-4deg) !important;
    background: linear-gradient(135deg, #8bc43f 0%, #5a9a00 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 14px rgba(139, 196, 66, 0.35) !important;
}

.specialities-single-content ul.specialities li:hover i::before,
.specialities-single-content .single-footer-widget ul.specialities li:hover i::before {
    color: #ffffff !important;
}

@media (max-width: 991px) {
    .specialities-single-content ul.specialities,
    .specialities-single-content .single-footer-widget ul.specialities {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}

@media (max-width: 575px) {
    .specialities-single-content ul.specialities,
    .specialities-single-content .single-footer-widget ul.specialities {
        grid-template-columns: 1fr !important;
    }
}

/* Uniform carousel image size */
.specialities-carousel .single-item {
    height: 420px !important;
    overflow: hidden !important;
    border-radius: 8px;
    background: #f1f5f9;
}

.specialities-carousel .single-item img,
.specialities-single-content .single-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
}

.specialities-single-content > .specialities-title .single-item,
.specialities-top-content > .single-item {
    height: 420px !important;
    overflow: hidden !important;
    border-radius: 8px;
    background: #f1f5f9;
}

@media (max-width: 767px) {
    .specialities-carousel .single-item,
    .specialities-single-content > .specialities-title .single-item,
    .specialities-top-content > .single-item {
        height: 260px !important;
    }
}

@media (min-width: 992px) {
    .specialities-single-content ul.specialities li,
    .specialities-single-content .single-footer-widget ul.specialities li {
        font-size: 20px !important;
    }

    .faq-toggle span:first-child {
        font-size: 20px !important;
    }

    .faq-content div {
        font-size: 20px !important;
        line-height: 1.8 !important;
    }

    #faq-section .col-lg-4 p {
        font-size: 20px !important;
        line-height: 1.8 !important;
    }

    #cta-section p {
        font-size: 20px !important;
        line-height: 1.85 !important;
    }

    .single-team-member .btn-one,
    .specialities-single-content .btn-one {
        font-size: 20px !important;
    }

    .specialities-sidebar .specialities-categories li a {
        font-size: 20px !important;
    }

    .specialities-sidebar .sidebar-appointment-box h3 {
        font-size: 24px !important;
    }

    .specialities-sidebar .sidebar-appointment-box p {
        font-size: 20px !important;
    }

    .specialities-sidebar .sidebar-appointment-box .btn-one {
        font-size: 20px !important;
    }
}
