/* ===== Service Page Styles (Female Proctologist & Laparoscopic Surgeon) =====
   Colors used:
   Dark green  #1a3c34  (headings: h1, h2, h3)
   Button green #17463f
   Teal        #007a80  (table header, ticks, accents, step numbers)
   Text grey   #5b6b67
   Light bg    #f3f7f4
   Border line #d9e4e0
*/

/* ---------- Basic Reset & Typography ---------- */
.fp {
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: #5b6b67;
}

.fp * {
    box-sizing: border-box;
}

/* Headings: Same color (#1a3c34), different sizes */
.fp h1,
.fp h2,
.fp h3,
.fp h4 {
    color: #1a3c34;
    margin: 0 0 15px;
    line-height: 1.25;
    font-weight: 700;
}

.fp h1 {
    font-size: 38px;
    letter-spacing: -0.02em;
}

.fp h2 {
    font-size: 28px;
    letter-spacing: -0.01em;
}

.fp h3 {
    font-size: 20px;
}

.fp h4 {
    font-size: 18px;
}

.fp p {
    margin: 0 0 16px;
    color: #5b6b67;
    line-height: 1.75;
}

.fp a {
    color: #007a80;
    transition: color 0.25s ease;
}

.fp a:hover {
    color: #17463f;
}

/* ---------- Main Two-Column Layout with Sidebar ---------- */
.fp-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

.fp-main {
    min-width: 0;
}

.fp-sidebar-col {
    position: sticky;
    top: 100px;
}

.fp-sidebar-col > div.col-md-12.col-lg-4 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding: 0 !important;
}

/* Sidebar styling - applies to .fp pages and all service pages using sidebar.php */
.service-sidebar {
    background: #fff;
    border: 1px solid #d9e4e0;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.service-sidebar__single {
    padding: 24px 20px !important;
}

.service-sidebar__single + .service-sidebar__single {
    margin-top: 25px;
    padding-top: 25px !important;
    border-top: 1px solid #d9e4e0;
}

.service-sidebar__title {
    font-size: 19px;
    color: #1a3c34;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007a80;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-sidebar__title img {
    max-width: 20px;
    height: auto;
}

.service-sidebar__nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-sidebar__nav li {
    margin-bottom: 8px;
    margin-top: 0;
    position: relative;
}

/* Remove default careold circular dot and line pseudo-elements that obscure text */
.service-sidebar__nav li::before,
.service-sidebar__nav li::after {
    display: none !important;
}

.service-sidebar__nav li a {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 14px !important;
    background: #f8fbf9 !important;
    border: 1px solid #d9e4e0 !important;
    border-left: 4px solid transparent !important;
    border-radius: 6px !important;
    color: #1a3c34 !important;
    font-weight: 600 !important;
    font-size: 14.5px !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
    position: relative;
    z-index: 2;
    transition: all 0.25s ease !important;
    gap: 10px;
}

.service-sidebar__nav li a::after {
    display: none !important;
}

.service-sidebar__nav li a i {
    font-size: 13px;
    color: #007a80;
    transition: transform 0.25s ease, color 0.25s ease;
}

.service-sidebar__nav li a:hover {
    background: #e4f1f0 !important;
    color: #007a80 !important;
    border-color: #007a80 !important;
    border-left-color: #007a80 !important;
    transform: translateX(4px);
}

.service-sidebar__nav li a:hover i {
    transform: translateX(3px);
}

/* Active / Current page item */
.service-sidebar__nav li.current a {
    background: #007a80 !important;
    color: #ffffff !important;
    border-color: #007a80 !important;
    border-left-color: #17463f !important;
    box-shadow: 0 4px 12px rgba(0, 122, 128, 0.25);
}

.service-sidebar__nav li.current a i {
    color: #ffffff !important;
}

.fp .service-sidebar__contact {
    background: #f3f7f4;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.fp .service-sidebar__contact__image img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    border: 3px solid #007a80;
}

.fp .service-sidebar__contact__title {
    font-size: 18px;
    color: #1a3c34;
    margin-bottom: 14px;
    line-height: 1.3;
}

/* ---------- Layout Elements ---------- */
.fp .wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.fp-section {
    padding: 40px 0;
    border-bottom: 1px solid #eef2ef;
}

.fp-section:last-of-type {
    border-bottom: none;
}

.fp .lead {
    max-width: 100%;
    font-size: 18px;
    color: #435450;
    margin-bottom: 22px;
}

.fp .two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.fp .grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 22px 0;
}

/* ---------- Top Intro Block (Hero content under banner) ---------- */
.fp-hero-intro {
    background: #f8fbf9;
    border-left: 4px solid #007a80;
    border-radius: 0 10px 10px 0;
    padding: 28px 30px;
    margin-bottom: 35px;
}

.fp-hero-intro h1 {
    font-size: 34px;
    margin-bottom: 16px;
}

.fp .eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #007a80;
    background: #e4f1f0;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.fp .btns {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.fp .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: 1px solid #17463f;
    border-radius: 6px;
    font-weight: bold;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
}

.fp .btn-primary {
    background: #17463f;
    color: #fff;
}

.fp .btn-primary:hover {
    background: #007a80;
    border-color: #007a80;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 128, 0.25);
}

.fp .btn-outline {
    background: transparent;
    color: #1a3c34;
}

.fp .btn-outline:hover {
    background: #17463f;
    color: #fff;
    transform: translateY(-2px);
}

.fp .btn-white {
    background: #fff;
    color: #17463f;
    border-color: #fff;
}

.fp .btn-white:hover {
    background: #f3f7f4;
    color: #007a80;
    transform: translateY(-2px);
}

/* ---------- 5-Step Process: Vertical One-by-One List ---------- */
.fp-steps-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 25px 0 30px;
}

.fp-step-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #fff;
    border: 1px solid #d9e4e0;
    border-radius: 8px;
    padding: 20px 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.fp-step-item:hover {
    transform: translateX(6px);
    border-color: #007a80;
    box-shadow: 0 6px 18px rgba(0, 122, 128, 0.08);
}

.fp-step-item .num {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    border-radius: 50%;
    background: #007a80;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 122, 128, 0.25);
}

.fp-step-content {
    flex: 1;
}

.fp-step-content h3 {
    margin: 0 0 6px;
    font-size: 19px;
}

.fp-step-content p {
    margin: 0;
    font-size: 16px;
}

/* ---------- Cards ---------- */
.fp .card {
    background: #fff;
    border: 1px solid #d9e4e0;
    border-radius: 8px;
    padding: 22px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.fp .card:hover {
    transform: translateY(-3px);
    border-color: #007a80;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.fp .card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.fp .card p {
    margin: 0;
    font-size: 15.5px;
}

.fp .num {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 50%;
    background: #007a80;
    color: #fff;
    font-weight: bold;
    margin-bottom: 12px;
}

.fp .branch {
    border-top: 4px solid #007a80;
}

/* ---------- Tick list ---------- */
.fp ul.checks {
    list-style: none;
    padding: 0;
    margin: 15px 0 20px;
}

.fp ul.checks li {
    position: relative;
    padding-left: 34px;
    margin-bottom: 12px;
    color: #1a3c34;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.6;
}

.fp ul.checks li:before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 2px;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 50%;
    background: #007a80;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
}

/* ---------- Animated Interactive Table ---------- */
.fp .table-scroll {
    overflow-x: auto;
    margin: 25px 0;
    border: 1px solid #d9e4e0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.3s ease;
}

.fp .table-scroll:hover {
    box-shadow: 0 6px 20px rgba(0, 122, 128, 0.08);
}

.fp table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.fp th {
    background: #007a80;
    color: #fff;
    text-align: left;
    padding: 15px 20px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: none;
}

.fp td {
    padding: 15px 20px;
    border-top: 1px solid #d9e4e0;
    vertical-align: top;
    font-size: 15.5px;
    transition: all 0.2s ease;
}

.fp td:first-child {
    color: #1a3c34;
    font-weight: 700;
}

.fp tbody tr {
    transition: background-color 0.25s ease, transform 0.2s ease;
}

.fp tbody tr:nth-child(even) {
    background: #f8fbf9;
}

/* Small touch hover animation for table rows */
.fp tbody tr:hover {
    background: #eef6f4;
    cursor: default;
}

.fp tbody tr:hover td {
    color: #1a3c34;
}

.fp tbody tr:hover td:first-child {
    color: #007a80;
    padding-left: 24px;
}

/* ---------- Notice boxes ---------- */
.fp .note {
    background: #e4f1f0;
    border-left: 4px solid #007a80;
    padding: 16px 20px;
    border-radius: 0 6px 6px 0;
    margin: 20px 0;
}

.fp .note p {
    margin: 0;
    font-size: 15.5px;
}

.fp .note.urgent {
    background: #fff4f0;
    border-color: #b3412a;
}

.fp .note.urgent strong {
    color: #b3412a;
}

/* ---------- Doctor profile ---------- */
.fp .profile {
    background: #fff;
    border: 1px solid #d9e4e0;
    border-radius: 8px;
    padding: 24px;
}

.fp .profile dl {
    margin: 0;
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 12px;
}

.fp .profile dt {
    font-weight: bold;
    color: #1a3c34;
}

.fp .profile dd {
    margin: 0;
}

/* ---------- Call to action ---------- */
.fp .cta {
    background: #17463f;
    color: #dbe9e5;
    text-align: center;
    border-radius: 10px;
    padding: 40px 24px;
    margin: 35px 0 20px;
}

.fp .cta h2 {
    color: #fff;
    margin-bottom: 12px;
}

.fp .cta p {
    color: #dbe9e5;
}

.fp .cta .btns {
    justify-content: center;
}

.fp .cta a:not(.btn) {
    color: #fff;
}

/* ---------- FAQ ---------- */
.fp details {
    background: #fff;
    border: 1px solid #d9e4e0;
    border-radius: 6px;
    margin-bottom: 12px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.fp details:hover {
    border-color: #007a80;
}

.fp details[open] {
    border-color: #007a80;
    box-shadow: 0 4px 12px rgba(0, 122, 128, 0.06);
}

.fp summary {
    cursor: pointer;
    padding: 16px 20px;
    font-weight: bold;
    color: #1a3c34;
    position: relative;
    list-style: none;
    transition: color 0.2s ease;
}

.fp summary::-webkit-details-marker {
    display: none;
}

.fp summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: bold;
    color: #007a80;
    transition: transform 0.25s ease;
}

.fp details[open] summary::after {
    content: "\2212";
}

.fp details[open] summary {
    color: #007a80;
    border-bottom: 1px solid #eef2ef;
}

.fp details p {
    padding: 16px 20px;
    margin: 0;
    font-size: 15.5px;
}

/* ---------- Disclaimer ---------- */
.fp .disclaimer {
    background: #f3f7f4;
    border-top: 1px solid #d9e4e0;
    padding: 22px 0;
    font-size: 13.5px;
    color: #6a7c77;
    margin-top: 40px;
}

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 991px) {
    .fp-layout {
        grid-template-columns: 1fr;
    }

    .fp-sidebar-col {
        position: static;
        margin-top: 30px;
    }

    .fp h1 {
        font-size: 32px;
    }

    .fp h2 {
        font-size: 25px;
    }

    .fp .grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .fp-step-item {
        flex-direction: column;
        gap: 12px;
    }

    .fp .two {
        grid-template-columns: 1fr;
    }

    .fp .profile dl {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .fp .profile dd {
        margin-bottom: 10px;
    }

    .fp-hero-intro {
        padding: 20px;
    }
}

/* ---------- Clean Banner without side images (Only for these two pages) ---------- */
.page-header--clean {
    background: #007a80 !important;
}

.page-header--clean .page-header__bg {
    background-image: none !important;
    background-color: #007a80 !important;
}

.page-header--clean .page-header__bg::after {
    display: none !important;
}

.page-header--clean .page-header__shape {
    display: none !important;
}

.page-header--clean .page-header__title {
    color: #ffffff !important;
}

.page-header--clean .careold-breadcrumb li,
.page-header--clean .careold-breadcrumb li a,
.page-header--clean .careold-breadcrumb li span {
    color: rgba(255, 255, 255, 0.9) !important;
}

.page-header--clean .careold-breadcrumb li a:hover {
    color: #ffffff !important;
}