:root {
    --svc-bg-primary: #0d1f17;
    --svc-bg-secondary: #FFF5EE;
    --svc-bg-dark: #1a4731;
    --svc-text-primary: #2d6a4f;
    --svc-text-secondary: #555;
    --svc-text-muted: #666;
    --svc-text-light: #fff;
    --svc-accent-gold: #52b788;
    --svc-accent-orange: #2d6a4f;
    --svc-card-bg: #fff;
    --svc-border: rgba(0, 0, 0, 0.08);
    --svc-shadow: rgba(0, 0, 0, 0.1);
}

.kausalya-services-alternating {
    background: var(--svc-bg-secondary) !important;
    transition: background 0.3s ease;
}

.kausalya-services-alternating h3 {
    color: #2d6a4f !important;
}

.kausalya-services-alternating p {
    color: var(--svc-text-secondary) !important;
}

.kausalya-services-alternating a {
    color: var(--svc-accent-orange) !important;
}

[data-theme="dark"] .kausalya-services-alternating .service-image {
    box-shadow: 0 20px 60px var(--svc-shadow) !important;
}

/* WHY CHOOSE US - Theme Support */
.why-choose-section {
    background: linear-gradient(135deg, #1a4731 0%, #1a4731 60%, #2d6a4f 100%) !important;
    transition: background 0.3s ease;
}

[data-theme="light"] .why-choose-section {
    background: linear-gradient(135deg, #1a4731 0%, #1a4731 60%, #2d6a4f 100%) !important;
}

.why-choose-section h2,
.why-choose-section h4 {
    color: #fff !important;
}

.why-choose-section p {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* CTA SECTION - Theme Support */
.cta-section-fallback {
    background: linear-gradient(rgba(13, 31, 23, 0.95), rgba(13, 31, 23, 0.95)), url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?auto=format&fit=crop&q=80&w=1200') !important;
    background-size: cover !important;
    background-attachment: fixed !important;
}

[data-theme="light"] .cta-section-fallback {
    background: linear-gradient(rgba(13, 31, 23, 0.85), rgba(13, 31, 23, 0.85)), url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?auto=format&fit=crop&q=80&w=1200') !important;
}

[data-theme="dark"] .fallback-service-card {
    background: var(--svc-card-bg) !important;
    border: 1px solid var(--svc-border);
}

[data-theme="dark"] .fallback-service-card h3,
[data-theme="dark"] .fallback-service-card p {
    color: var(--svc-text-light) !important;
}

/* RESPONSIVE STYLES */
@media (max-width: 1200px) {
    .kausalya-services-hero h1 {
        font-size: 3.5rem !important;
    }

    .kausalya-services-alternating .service-row h3 {
        font-size: 2rem !important;
    }
}

@media (max-width: 992px) {
    .kausalya-services-hero {
        padding: 80px 0 !important;
    }

    .kausalya-services-hero h1 {
        font-size: 2.5rem !important;
    }

    .kausalya-services-hero p {
        font-size: 1.1rem !important;
    }

    /* Service Alternating Grid */
    .kausalya-services-alternating .service-row,
    .kausalya-services-alternating div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .kausalya-services-alternating .service-image {
        height: 350px !important;
    }

    .kausalya-services-alternating .service-content {
        text-align: center !important;
    }

    .kausalya-services-alternating .service-content div[style*="inline-flex"] {
        justify-content: center !important;
    }

    .kausalya-services-alternating .service-content ul li {
        text-align: center !important;
    }

    .kausalya-services-alternating .service-content a {
        justify-content: center !important;
    }

    /* Why Choose Us */
    .why-choose-section div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .why-choose-section h2 {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 768px) {
    .kausalya-services-page {
        padding: 0 20px !important;
    }

    .kausalya-services-hero {
        padding: 60px 0 !important;
    }

    .kausalya-services-hero h1 {
        font-size: 1.8rem !important;
    }

    .kausalya-services-hero p {
        font-size: 1rem !important;
    }

    .kausalya-services-alternating {
        padding: 60px 0 !important;
    }

    .kausalya-services-alternating .service-row {
        margin-bottom: 60px !important;
    }

    .kausalya-services-alternating .service-image {
        height: 280px !important;
    }

    .kausalya-services-alternating h3 {
        font-size: 1.5rem !important;
    }

    /* Why Choose Us */
    .why-choose-section {
        padding: 60px 0 !important;
    }

    .why-choose-section h2 {
        font-size: 1.8rem !important;
    }

    .why-choose-section div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: 1fr !important;
    }

    /* CTA */
    .cta-section-fallback {
        padding: 60px 20px !important;
    }

    .cta-section-fallback h2 {
        font-size: 2rem !important;
    }
}

@media (max-width: 480px) {
    .kausalya-services-page {
        padding: 0 15px !important;
    }

    .kausalya-services-hero h1 {
        font-size: 1.5rem !important;
    }

    .kausalya-services-alternating .service-image {
        height: 220px !important;
    }

    .kausalya-services-alternating h3 {
        font-size: 1.3rem !important;
    }

    .kausalya-services-alternating p {
        font-size: 0.95rem !important;
    }

    .why-choose-section h4 {
        font-size: 1.1rem !important;
    }

    .why-choose-section div[style*="width: 80px"] {
        width: 60px !important;
        height: 60px !important;
    }

    .cta-section-fallback h2 {
        font-size: 1.6rem !important;
    }

    .cta-section-fallback a {
        padding: 15px 30px !important;
        font-size: 1rem !important;
    }
}

/* =============================================
   KAUSALYA HOSPITAL - SERVICES PAGE STYLES
   ============================================= */

.kausalya-services-page {
    max-width: 100%;
    padding: 0 40px;
}

/* Theme Toggle */
#theme-toggle {
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--svc-accent-orange, #2d6a4f);
    border: none;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    box-shadow: 0 4px 15px rgba(45, 106, 79, 0.4);
}

/* Hero Section */
.kausalya-services-hero {
    /* background: linear-gradient(to right, rgba(13, 31, 23, 0.95) 0%, rgba(13, 31, 23, 0.7) 100%), #0d1f17; */
   
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.kausalya-services-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image: radial-gradient(#52b788 1px, transparent 1px);
    background-size: 30px 30px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    margin: 20px 0;
}

.hero-subtitle {
    font-size: 1.4rem;
    opacity: 0.8;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.badge {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    background: rgba(45, 106, 79, 0.2);
    border: 1px solid rgba(45, 106, 79, 0.3);
    color: #52b788;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* Alternating Services */
.kausalya-services-alternating {
    padding: 100px 0;
    background: #F8F7F4;
}

.service-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}

.service-row.even {
    direction: rtl;
}

.service-row.even>* {
    direction: ltr;
}

.service-image {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    height: 450px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.icon-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a0f07, #2a1508);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-fallback i {
    font-size: 5rem;
    color: #52b788;
}

.service-content .service-header {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.service-content .service-header.reverse {
    flex-direction: row-reverse;
}

.service-content .service-header i {
    font-size: 2.5rem;
    color: #2d6a4f;
}

.service-content h3 {
    font-size: 2.5rem;
    color: #2d6a4f;
    margin: 0;
    font-weight: 700;
}

.service-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
}

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

.service-list li {
    font-size: 1rem;
    line-height: 1.7;
    color: #666;
    margin-bottom: 8px;
}

.service-list li i {
    color: #2d6a4f;
    margin-right: 10px;
}

.learn-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #2d6a4f;
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
}

.learn-more.reverse {
    flex-direction: row-reverse;
}

/* Why Choose Us */
.why-choose-section {
    padding: 120px 0;
    background: #0d1f17;
    color: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 3.5rem;
    color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* CTA */
.kausalya-services-cta {
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    text-align: center;
    color: #fff;
}

.kausalya-services-cta .btn-primary {
    background: #2d6a4f;
    border-color: #2d6a4f;
    color: #fff;
    font-weight: 700;
    padding: 20px 50px;
    font-size: 1.1rem;
    border-radius: 50px;
    display: inline-block;
    text-decoration: none;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 992px) {

    .service-row,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 3.2rem;
    }
}

/* FAQ Accordion (extracted from page-services.php) */
.kausalya-faq-section {
    padding: 100px 0;
    background: #f0f7f4;
}

.faq-container {
    max-width: 900px;
}

.faq-header {
    text-align: center;
    margin-bottom: 60px;
}

.faq-badge {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    background: rgba(45, 106, 79, 0.1);
    border: 1px solid rgba(45, 106, 79, 0.2);
    color: #2d6a4f;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.faq-title {
    font-size: 3rem;
    color: #2d6a4f;
    font-weight: 700;
}

.faq-item {
    background: #fff;
    border-radius: 16px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 25px 30px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d6a4f;
}

.faq-icon {
    color: #2d6a4f;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.faq-question-text {
    flex: 1;
}

.faq-chevron {
    color: #2d6a4f;
    transition: transform 0.3s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-body {
    padding: 0 30px 25px 75px;
    color: #333;
    line-height: 1.7;
    font-size: 1rem;
}

.faq-answer-body p {
    color: #333;
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
}

.faq-item.active .faq-answer {
    max-height: 1000px !important;
    padding-top: 10px !important;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
}

.faq-question:hover {
    background: rgba(45, 106, 79, 0.05);
}

/* Category Filter Bar */
.service-category-filter {
    background: #fff;
    padding: 20px 0;
    border-bottom: 2px solid #f0f0f1;
    position: sticky;
    top: 70px; /* header height */
    z-index: 99; /* below header z-index:1000 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* WP admin bar logged-in state */
.admin-bar .service-category-filter {
    top: 102px; /* 70px header + 32px admin bar */
}

.category-filter-wrap {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.category-filter-btn {
    padding: 10px 24px;
    border: 2px solid #2d6a4f;
    background: transparent;
    color: #2d6a4f;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.category-filter-btn:hover {
    background: #2d6a4f !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 106, 79, 0.3);
}

.category-filter-btn.active {
    background: #2d6a4f !important;
    color: #fff !important;
}

/* Service Row Animation */
.service-row {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.service-row.hidden {
    display: none !important;
}



/* ========================================
   PAGINATION STYLES
======================================== */
.services-pagination {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 2px solid #e0e0e0;
}

.services-pagination .page-numbers {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.services-pagination .page-numbers li {
    display: inline-block;
}

.services-pagination .page-numbers a,
.services-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.services-pagination .page-numbers a {
    background: #fff;
    color: #2d6a4f;
    border-color: #e0e0e0;
}

.services-pagination .page-numbers a:hover {
    background: #2d6a4f;
    color: #fff;
    border-color: #2d6a4f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 106, 79, 0.3);
}

.services-pagination .page-numbers .current {
    background: #2d6a4f;
    color: #fff;
    border-color: #2d6a4f;
    box-shadow: 0 4px 12px rgba(45, 106, 79, 0.3);
}

.services-pagination .page-numbers .prev,
.services-pagination .page-numbers .next {
    padding: 0 20px;
    gap: 8px;
}

.services-pagination .page-numbers .dots {
    background: transparent;
    color: #999;
    border: none;
    cursor: default;
}

/* Responsive Pagination */
@media (max-width: 768px) {
    .services-pagination .page-numbers {
        gap: 5px;
    }

    .services-pagination .page-numbers a,
    .services-pagination .page-numbers span {
        min-width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .services-pagination .page-numbers .prev,
    .services-pagination .page-numbers .next {
        padding: 0 15px;
    }
}


/* AJAX Pagination Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pagination Styles */
.services-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 80px;
    padding-top: 60px;
    border-top: 2px solid #e0e0e0;
}

.services-pagination a,
.services-pagination span {
    padding: 12px 20px;
    border: 2px solid #2d6a4f;
    background: transparent;
    color: #2d6a4f;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.services-pagination a:hover {
    background: #2d6a4f;
    color: #fff;
    transform: translateY(-2px);
}

.services-pagination .current {
    background: #2d6a4f;
    color: #fff;
    cursor: default;
}

.services-pagination .dots {
    border: none;
    background: none;
    color: #666;
    cursor: default;
}