:root {
    --primary: #7E2C8A;
    --secondary: #2EBF6D;
    --success: #16a34a;
    --info: #0891b2;
    --warning: #d97706;
    --danger: #dc2626;
    --light: #F3EFF8;
    --dark: #1e293b;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #374151;
    position: relative;
    overflow-x: hidden;
}

/* Global Background - Static and Accessible */
.section-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    display: none; /* Disabled for accessibility */
}

/* Diagonal Lines - Disabled for Accessibility */
.diagonal-lines {
    display: none !important; /* Disabled to prevent visual triggers */
}

.topbar {
    background: linear-gradient(135deg, rgba(126, 44, 138, 0.05) 0%, rgba(46, 191, 109, 0.05) 100%);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(126, 44, 138, 0.1);
}

/* Hide topbar on mobile devices */
@media (max-width: 768px) {
    .topbar {
        display: none !important;
    }
}

.navbar-brand img {
    height: 60px;
    transition: all 0.3s ease;
}

/* Mobile navbar brand adjustment */
@media (max-width: 991.98px) {
    .navbar-brand img {
        height: 50px;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand img {
        height: 45px;
    }
}

/* Topbar styling improvements */
.topbar .text-muted {
    color: #6b7280 !important;
    font-size: 0.65rem;
    font-weight: 500;
}

.topbar .text-dark {
    color: #374151 !important;
    font-size: 0.65rem;
    font-weight: 600;
}

.topbar .text-primary {
    color: var(--primary) !important;
    font-size: 0.65rem;
}

.navbar {
    background: var(--white) !important;
    box-shadow: 0 4px 20px rgba(126, 44, 138, 0.08);
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(126, 44, 138, 0.1);
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: all 0.3s ease;
}

/* Mobile navbar adjustments */
@media (max-width: 991.98px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-toggler {
        border: 2px solid #7E2C8A;
        padding: 0.5rem 0.75rem;
        font-size: 1.1rem;
        background: white;
        color: #7E2C8A;
        transition: all 0.3s ease;
        border-radius: 6px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        position: relative;
    }
    
    .navbar-toggler::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 20px;
        height: 2px;
        background: #000;
        box-shadow: 0 6px 0 #000, 0 -6px 0 #000;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.25rem rgba(126, 44, 138, 0.25);
        outline: none;
    }
    
    .navbar-toggler:hover {
        background: #7E2C8A;
        color: white;
        transform: scale(1.05);
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
        width: 1.5em !important;
        height: 1.5em !important;
        display: inline-block !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: 100% !important;
    }
    
    .navbar-collapse {
        background: var(--white);
        border-radius: 10px;
        box-shadow: 0 8px 20px rgba(126, 44, 138, 0.15);
        margin-top: 1rem;
        padding: 1rem;
        border: 1px solid rgba(126, 44, 138, 0.1);
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-item {
        margin: 0.25rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(126, 44, 138, 0.1);
        color: var(--primary);
    }
    
    .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0.5rem;
        box-shadow: none;
        border: 1px solid rgba(126, 44, 138, 0.1);
        background: rgba(126, 44, 138, 0.02);
    }
    
    .dropdown-item {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        border-radius: 6px;
        margin: 0.1rem 0;
        transition: all 0.3s ease;
    }
    
    .dropdown-item:hover {
        background: rgba(126, 44, 138, 0.1);
        color: var(--primary);
    }
    
    /* Mobile audience toggle */
    .audience-toggle-nav {
        justify-content: center;
        margin: 1rem 0;
    }
    
    .nav-toggle-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        border-radius: 20px;
        transition: all 0.3s ease;
    }
    
    /* Mobile account dropdown */
    .navbar-nav .nav-item.dropdown {
        margin-top: 1rem;
        border-top: 1px solid rgba(126, 44, 138, 0.1);
        padding-top: 1rem;
    }
    
    .avatar-circle {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Extra small devices */
@media (max-width: 575.98px) {
    .navbar {
        padding: 0.4rem 0;
    }
    
    .navbar-brand img {
        height: 40px;
    }
    
    .navbar-nav .nav-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .dropdown-item {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .nav-toggle-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .avatar-circle {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #374151;
    margin: 0 0.1rem;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
}

.navbar-nav .nav-link:hover {
    color: var(--primary);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-radius: 10px;
    padding: 0.5rem 0;
    min-width: 180px;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(126, 44, 138, 0.1), rgba(46, 191, 109, 0.1));
    color: var(--primary);
    padding-left: 1.25rem;
}

.dropdown-item:active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: white !important;
    border-radius: 50px;
    padding: 0.4rem 1.25rem;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.btn-primary:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white !important;
    transform: translateY(-2px);
}

.btn-light {
    background: var(--light);
    border-color: #e5e7eb;
    border-radius: 50px;
    padding: 0.4rem 1.25rem;
    font-weight: 600;
    font-size: 0.8rem;
}

/* Hero Carousel Styles */
.hero-carousel {
    position: relative;
    min-height: 65vh;
    background: url('/static/img/hero5.jpg') no-repeat center center / cover !important;
    background-color: #f0f0f0 !important; /* Fallback color for debugging */
    width: 100%;
    overflow: hidden;
    margin-bottom: 2rem;
}

/* Ensure background shows even with carousel */
.hero-carousel.owl-carousel {
    background: url('/static/img/hero5.jpg') no-repeat center center / cover !important;
    background-color: #f0f0f0 !important;
}

.hero-carousel.owl-theme {
    background: url('/static/img/hero5.jpg') no-repeat center center / cover !important;
    background-color: #f0f0f0 !important;
}

/* Force background on all hero elements */
#hero {
    background: url('/static/img/hero5.jpg') no-repeat center center / cover !important;
    background-color: #f0f0f0 !important;
}

/* Removed ::before pseudo-element that was covering the background */

.hero-slide {
    background: transparent;
    min-height: 65vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
    width: 100%;
}

.hero-slide .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 3;
}

/* Ensure hero content is properly positioned */
.hero-slide .hero-content {
    position: relative;
    z-index: 4;
}

/* Floating Gradient Orbs - Disabled for accessibility */
.hero-slide {
    position: relative;
}

/* Removed ::before and ::after pseudo-elements that were covering the background */

.hero-slide.nurse-slide {
    background: transparent;
}

.hero-content {
    display: flex;
    align-items: center;
    min-height: 55vh;
}

.hero-text h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.hero-text h4 {
    color: var(--primary);
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.hero-text p {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.hero-image {
    position: relative;
    height: 350px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* Audience Toggle */
.audience-toggle {
    background: var(--white);
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.toggle-buttons {
    display: flex;
    background: #f3f4f6;
    border-radius: 35px;
    padding: 1px;
    margin: 0 auto;
    width: fit-content;
    max-width: 95%;
    gap: 2px;
}

.toggle-btn {
    background: transparent;
    border: none;
    padding: 0.4rem 0.9rem;
    border-radius: 35px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #6b7280;
    font-size: 0.7rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-align: center;
    white-space: nowrap;
    width: auto;
    min-width: auto;
}

.toggle-btn:hover {
    background: rgba(126, 44, 138, 0.1);
    color: var(--primary);
}

.toggle-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    box-shadow: 0 6px 16px rgba(126, 44, 138, 0.4);
    transform: scale(1.02);
}

.toggle-btn.active:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.05);
}

/* Services Section */
.services-section {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(255, 255, 255, 0.9) 100%);
    position: relative;
    margin: 2rem 0;
    padding: 4rem 0;
    overflow: hidden;
}

/* Light overlay for text readability */
.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    z-index: 1;
    pointer-events: none;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 1px solid #f1f5f9;
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.service-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 2;
}

/* Hide decorative elements in services section */
.services-section .section-background,
.services-section .diagonal-lines {
    display: none !important;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.service-description {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Service card background images */
.service-card[data-service="complex-care"]::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -20%;
    width: 120px;
    height: 120px;
    background: url('/static/img/deep_care.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.05;
    border-radius: 50%;
    z-index: 0;
}

.service-card[data-service="domiciliary-care"]::after {
    content: '';
    position: absolute;
    top: -25%;
    right: -25%;
    width: 110px;
    height: 110px;
    background: url('/static/img/adult_care.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.05;
    border-radius: 30px;
    z-index: 0;
}

.service-card[data-service="live-in-care"]::after {
    content: '';
    position: absolute;
    top: -22%;
    right: -22%;
    width: 115px;
    height: 115px;
    background: url('/static/img/care2.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.05;
    border-radius: 25px;
    z-index: 0;
}

.service-card[data-service="supported-living"]::after {
    content: '';
    position: absolute;
    top: -18%;
    right: -18%;
    width: 125px;
    height: 125px;
    background: url('/static/img/disabled.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.05;
    border-radius: 35px;
    z-index: 0;
}

.service-card[data-service="short-breaks"]::after {
    content: '';
    position: absolute;
    top: -28%;
    right: -28%;
    width: 105px;
    height: 105px;
    background: url('/static/img/child_care3.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.05;
    border-radius: 20px;
    z-index: 0;
}

.service-card[data-service="transition-support"]::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -30%;
    width: 100px;
    height: 100px;
    background: url('/static/img/sick_care.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.05;
    border-radius: 40px;
    z-index: 0;
}

/* Conditions We Support Section */
.conditions-section {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.25) 0%, rgba(255, 255, 255, 0.35) 100%), url('/static/img/background.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    padding: 5rem 0 !important;
    position: relative;
    overflow: hidden;
    margin: 2rem 0;
}

/* Hide decorative elements in conditions section */
.conditions-section .section-background,
.conditions-section .diagonal-lines {
    display: none !important;
}

/* Light overlay for text readability */
.conditions-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    z-index: 1;
    pointer-events: none;
}

.condition-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 1px solid #f1f5f9;
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.condition-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.condition-card:hover::before {
    transform: scaleX(1);
}

.condition-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.condition-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.condition-icon i {
    font-size: 2rem;
    color: white;
    z-index: 2;
    position: relative;
}

.condition-card:hover .condition-icon {
    transform: scale(1.1) rotate(5deg);
}

.condition-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.condition-card p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Condition card background images */
.condition-card[data-condition="brain-injury"]::after {
    content: '';
    position: absolute;
    top: -45%;
    right: -45%;
    width: 95px;
    height: 95px;
    background: url('/static/img/healthcare.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.03;
    border-radius: 50%;
    z-index: 0;
}

.condition-card[data-condition="spinal-cord"]::after {
    content: '';
    position: absolute;
    top: -42%;
    right: -42%;
    width: 92px;
    height: 92px;
    background: url('/static/img/care2.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.03;
    border-radius: 18px;
    z-index: 0;
}

.condition-card[data-condition="multiple-sclerosis"]::after {
    content: '';
    position: absolute;
    top: -33%;
    right: -33%;
    width: 83px;
    height: 83px;
    background: url('/static/img/old_care.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.03;
    border-radius: 22px;
    z-index: 0;
}

.condition-card[data-condition="motor-neurone"]::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -30%;
    width: 80px;
    height: 80px;
    background: url('/static/img/smile_care.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.03;
    border-radius: 20px;
    z-index: 0;
}

.condition-card[data-condition="huntington"]::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -40%;
    width: 90px;
    height: 90px;
    background: url('/static/img/adult_care.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.03;
    border-radius: 15px;
    z-index: 0;
}

.condition-card[data-condition="cerebral-palsy"]::after {
    content: '';
    position: absolute;
    top: -35%;
    right: -35%;
    width: 85px;
    height: 85px;
    background: url('/static/img/child_care3.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.03;
    border-radius: 25px;
    z-index: 0;
}

/* Modern Advanced Search */
.advanced-search {
    background: url('/static/img/background1.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    padding: 5rem 0 !important;
    position: relative;
    overflow: hidden;
    margin: 2rem 0;
}

/* Light overlay for text readability */
.advanced-search::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    z-index: 1;
    pointer-events: none;
}

/* Hide decorative elements in advanced search section */
.advanced-search .section-background,
.advanced-search .diagonal-lines {
    display: none !important;
}

.modern-search-card {
    background: var(--white);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 25px 50px rgba(0,0,0,0.08);
    border: 1px solid rgba(126, 44, 138, 0.1);
    position: relative;
    overflow: hidden;
}

.modern-search-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* Modern Toggle Buttons */
.toggle-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.mode-toggle-btn {
    background: transparent;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    padding: 1.5rem 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 280px;
    position: relative;
    overflow: hidden;
}

.mode-toggle-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(126, 44, 138, 0.15);
}

.mode-toggle-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: white;
    box-shadow: 0 12px 30px rgba(126, 44, 138, 0.3);
    transform: translateY(-3px);
}

.toggle-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(126, 44, 138, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.mode-toggle-btn.active .toggle-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.toggle-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: var(--dark);
}

.mode-toggle-btn.active .toggle-content h4 {
    color: white;
}

.toggle-content p {
    font-size: 0.9rem;
    margin: 0;
    color: #6b7280;
}

.mode-toggle-btn.active .toggle-content p {
    color: rgba(255, 255, 255, 0.9);
}

/* Modern Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.input-wrapper, .select-wrapper {
    position: relative;
}

.modern-input, .modern-select {
    height: 3.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.modern-input:focus, .modern-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(126, 44, 138, 0.1);
    background: white;
    outline: none;
}

/* Modern Search Button */
.modern-search-btn {
    height: 3.5rem;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
}

.modern-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(126, 44, 138, 0.4);
}

/* Search Visual */
.search-visual {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.image-container {
    position: relative;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.search-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 2rem;
    color: white;
}

.overlay-content h5 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.overlay-content p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* Search Options */
.search-options {
    margin-top: 2rem;
}

.option-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(126, 44, 138, 0.1);
    transition: all 0.3s ease;
}

.option-card:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.option-card i {
    font-size: 1.2rem;
    color: var(--primary);
}

.option-card span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark);
}

/* Accreditations Section */
.accreditations-section {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.25) 0%, rgba(255, 255, 255, 0.35) 100%), url('/static/img/background3.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    padding: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Light overlay for text readability */
.accreditations-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    z-index: 1;
    pointer-events: none;
}

/* Hide decorative elements in accreditations section */
.accreditations-section .section-background,
.accreditations-section .diagonal-lines {
    display: none !important;
}

/* Modern Footer - with image background */
.footer {
    background: linear-gradient(135deg, rgba(126, 44, 138, 0.95) 0%, rgba(46, 191, 109, 0.95) 100%), url('/static/img/footer.jpg') no-repeat center center / cover;
    color: var(--white);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
    margin-top: 3rem;
}

.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 0;
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    z-index: 1;
}

/* Footer text colors */
.footer * { position: relative; z-index: 2; }
.footer h1, .footer h2, .footer h3, .footer h4, .footer h5, .footer h6 { 
    color: #ffffff; 
    font-weight: 600;
    margin-bottom: 1rem;
}
.footer p { color: rgba(255, 255, 255, 0.9); }
.footer a { 
    color: rgba(255, 255, 255, 0.85); 
    text-decoration: none; 
    transition: all 0.3s ease;
    position: relative;
}
.footer a:hover { 
    color: #ffffff; 
    transform: translateX(5px);
}
.footer .text-muted { color: rgba(255, 255, 255, 0.7) !important; }
.footer .company-description { 
    color: rgba(255, 255, 255, 0.9); 
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Footer Items */
.footer-item {
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    border-radius: 1px;
}

/* Footer Lists */
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 0;
    transition: all 0.3s ease;
}

.footer-list li::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-list li:hover::before {
    background: var(--secondary);
    transform: translateY(-50%) scale(1.2);
}

.footer-list li:hover {
    padding-left: 10px;
}

/* Footer Social Links */
.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.footer-social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--secondary);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.footer-social-link.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.footer-social-link.twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
}

.footer-social-link.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
}

.footer-social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: transparent;
}

/* Footer Logo */
.footer-logo {
    margin-top: 1.5rem;
    text-align: left;
}

.footer-logo-img {
    max-height: 60px;
    width: auto;
    filter: brightness(0) invert(1); /* Makes logo white */
    transition: all 0.3s ease;
    opacity: 0.9;
}

.footer-logo-img:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    margin-top: 2rem;
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
}

.footer-accreditations .badge {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.footer-accreditations .badge:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1rem;
        text-align: center;
    }
    
    .footer-item {
        margin-bottom: 1.5rem;
    }
    
    .footer-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-list {
        font-size: 0.85rem;
    }
    
    .footer-list li {
        margin-bottom: 0.5rem;
    }
    
    .footer-social {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .footer-logo {
        text-align: center;
        margin-top: 1rem;
    }
    
    .footer-logo-img {
        max-width: 120px;
        height: auto;
    }
    
    .footer-bottom {
        text-align: center;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        margin-top: 1rem;
    }
    
    .footer-accreditations {
        margin-top: 0.75rem;
    }
    
    .footer-accreditations .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
        margin: 0.25rem;
    }
}

/* Service and Condition Detail Pages */
.section-title {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid var(--secondary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--secondary);
}

.section-content {
    line-height: 1.6;
    color: #555;
    font-size: 0.95rem;
}

.service-badge {
    margin-bottom: 1rem;
}

.service-badge .badge {
    margin-right: 0.5rem;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* Navbar avatar and toggle */
.avatar-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.audience-toggle-nav .btn {
    padding: 0.25rem 0.6rem;
    line-height: 1.2;
}

.audience-toggle-nav .btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.condition-icon-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.condition-icon-large i {
    font-size: 3rem;
    color: white;
}

.service-section, .condition-section {
    background: rgba(255, 255, 255, 0.8);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
    border-left: 3px solid var(--primary);
    transition: all 0.3s ease;
}

.service-section:hover, .condition-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.related-service, .related-condition {
    padding: 1rem;
    border-radius: 10px;
    background: rgba(248, 250, 252, 0.8);
    border-left: 3px solid var(--secondary);
    transition: all 0.3s ease;
}

.related-service:hover, .related-condition:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(5px);
}

.related-service h6, .related-condition h6 {
    margin-bottom: 0.5rem;
}

.related-service h6 a, .related-condition h6 a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.related-service h6 a:hover, .related-condition h6 a:hover {
    color: var(--secondary);
}

/* Responsive adjustments for detail pages */
@media (max-width: 768px) {
    .service-section, .condition-section {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .condition-image-small {
        max-width: 100%;
        max-height: 150px;
    }
}

/* Accessibility Features */
.accessibility-toggle {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 9999;
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.accessibility-panel {
    position: fixed;
    top: 60px;
    right: 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 9998;
    display: none;
    min-width: 250px;
}

.accessibility-panel.show {
    display: block;
}

.accessibility-controls {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Hide accessibility toggle on mobile devices */
@media (max-width: 768px) {
    .accessibility-toggle,
    .accessibility-panel {
        display: none !important;
    }
}

/* Responsive Navigation - More Button Styling */
.nav-item.dropdown .nav-link[data-bs-toggle="dropdown"] i.fas.fa-plus {
    font-size: 0.8rem;
    margin-right: 0.25rem;
    transition: transform 0.3s ease;
}

.nav-item.dropdown .nav-link[data-bs-toggle="dropdown"]:hover i.fas.fa-plus {
    transform: rotate(45deg);
}

.nav-item.dropdown .nav-link[data-bs-toggle="dropdown"]:focus i.fas.fa-plus {
    transform: rotate(45deg);
}

/* Enhanced More Button Styling */
.nav-item.dropdown .nav-link[data-bs-toggle="dropdown"] {
    transition: all 0.3s ease;
}

.nav-item.dropdown .nav-link[data-bs-toggle="dropdown"]:hover {
    color: var(--primary);
}

.nav-item.dropdown .nav-link[data-bs-toggle="dropdown"]:focus {
    color: var(--primary);
}

/* More Button Dropdown Styling */
.nav-item.dropdown .dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.nav-item.dropdown .dropdown-menu .dropdown-item {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    margin: 0.25rem 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-item.dropdown .dropdown-menu .dropdown-item:hover {
    background: rgba(126, 44, 138, 0.1);
    color: var(--primary);
    transform: translateX(5px);
}

.nav-item.dropdown .dropdown-menu .dropdown-item:focus {
    background: rgba(126, 44, 138, 0.1);
    color: var(--primary);
}

/* Mobile-specific More Button Styling */
@media (max-width: 991.98px) {
    .nav-item.dropdown .nav-link[data-bs-toggle="dropdown"] {
        font-weight: 600;
        font-size: 0.9rem;
    }
    
    .nav-item.dropdown .dropdown-menu {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(126, 44, 138, 0.1);
    }
    
    .nav-item.dropdown .dropdown-menu .dropdown-item {
        font-size: 0.9rem;
        padding: 0.6rem 1.25rem;
    }
}

/* Tablet-specific adjustments */
@media (max-width: 1200px) and (min-width: 992px) {
    .nav-item.dropdown .nav-link[data-bs-toggle="dropdown"] {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }
}

/* Admin Panel Button Styling */
.admin-panel-btn {
    background: linear-gradient(135deg, #7E2C8A, #2EBF6D) !important;
    border: none !important;
    color: white !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 3px 8px rgba(126, 44, 138, 0.3) !important;
}

.admin-panel-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(126, 44, 138, 0.4) !important;
    background: linear-gradient(135deg, #6a256a, #26a85a) !important;
    color: white !important;
}

.admin-panel-btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(126, 44, 138, 0.25) !important;
    color: white !important;
}

.admin-panel-btn:active {
    transform: translateY(0) !important;
    color: white !important;
}

.admin-panel-btn i {
    font-size: 0.9rem;
}

/* Mobile adjustments for admin button */
@media (max-width: 991.98px) {
    .admin-panel-btn {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.85rem !important;
    }
    
    .admin-panel-btn i {
        font-size: 0.8rem;
    }
}

.accessibility-controls button {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.accessibility-controls button:hover {
    background: #e9ecef;
}

/* High contrast mode */
.high-contrast {
    filter: contrast(150%);
}

.high-contrast * {
    background: white !important;
    color: black !important;
    border-color: black !important;
}

/* Large text mode */
.large-text {
    font-size: 1.2em !important;
}

.large-text h1 { font-size: 2.5em !important; }
.large-text h2 { font-size: 2em !important; }
.large-text h3 { font-size: 1.8em !important; }
.large-text h4 { font-size: 1.6em !important; }
.large-text p { font-size: 1.2em !important; }

/* Focus indicators */
*:focus {
    outline: 3px solid var(--primary) !important;
    outline-offset: 2px !important;
}

/* Skip links */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 4px;
    font-weight: bold;
}

.skip-link:focus {
    top: 6px;
}

/* Mobile-first responsive design */
@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-carousel {
        min-height: 50vh;
    }
    
    .hero-slide {
        padding: 2rem 0;
    }
    
    .hero-content {
        min-height: 40vh;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .hero-text h4 {
        font-size: 0.9rem;
    }
    
    .hero-text p {
        font-size: 0.9rem;
    }
    
    .hero-image {
        height: 200px;
        margin-top: 2rem;
    }
    
    .modern-search-card {
        padding: 1.5rem 1rem;
    }
    
    .condition-card {
        padding: 1rem;
    }
    
    .service-content {
        padding: 1rem;
    }
    
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-item {
        margin: 0.5rem 0;
    }
    
    .toggle-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .mode-toggle-btn {
        min-width: 100%;
        max-width: 300px;
    }
    
    .footer {
        text-align: center;
    }
    
    .footer .row > div {
        margin-bottom: 2rem;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .hero-text h1 {
        font-size: 1.75rem;
    }
    
    .hero-text h4 {
        font-size: 0.9rem;
    }
    
    .hero-text p {
        font-size: 0.9rem;
    }
    
    .hero-image {
        height: 250px;
        margin-top: 2rem;
    }
    
    .toggle-container {
        flex-direction: column;
        align-items: center;
    }
    
    .mode-toggle-btn {
        min-width: 100%;
        max-width: 300px;
    }
    
    .modern-search-card {
        padding: 2rem 1.5rem;
    }
    
    .condition-card {
        padding: 1.5rem 1rem;
    }
    
    .service-content {
        padding: 1.5rem 1rem;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-image {
        height: 300px;
    }
}

@media (min-width: 993px) {
    .hero-text h1 {
        font-size: 2.25rem;
    }
    
    .hero-image {
        height: 350px;
    }
}

/* Touch-friendly buttons */
@media (hover: none) and (pointer: coarse) {
    .btn, .toggle-btn, .mode-toggle-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 1rem 0.75rem;
    }
}

/* Print styles */
@media print {
    .navbar, .footer, .accessibility-toggle, .accessibility-panel {
        display: none !important;
    }
    
    .hero-carousel {
        min-height: auto;
    }
    
    .hero-slide {
        padding: 1rem 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .service-card, .condition-card {
        page-break-inside: avoid;
    }
}

/* Audience Toggle in Navbar - Smooth Transitions */
.audience-toggle-nav {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    margin-left: 1rem;
}

.audience-toggle-nav .nav-toggle-btn {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    background-color: transparent;
    color: var(--dark);
    border: 2px solid var(--primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.audience-toggle-nav .nav-toggle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.audience-toggle-nav .nav-toggle-btn:hover::before {
    left: 0;
}

.audience-toggle-nav .nav-toggle-btn:hover {
    color: white;
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(126, 44, 138, 0.3);
}

.audience-toggle-nav .nav-toggle-btn.active {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(126, 44, 138, 0.4);
    transform: translateY(-1px);
}

.audience-toggle-nav .nav-toggle-btn.active::before {
    left: 0;
}

/* Avatar Circle */
.avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.avatar-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(126, 44, 138, 0.3);
}

/* Dropdown Menu Enhancements */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    animation: dropdownFadeIn 0.2s ease-out;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 0.25rem 0.5rem;
}

.dropdown-item:hover {
    background: linear-gradient(45deg, rgba(126, 44, 138, 0.1), rgba(46, 191, 109, 0.1));
    color: var(--primary);
    transform: translateX(5px);
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: rgba(126, 44, 138, 0.1);
}

/* Testimonials Styling */
.testimonial-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(126, 44, 138, 0.1);
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(126, 44, 138, 0.2);
}

.testimonial-content {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-rating {
    margin-bottom: 1rem;
}

.testimonial-rating .stars {
    font-size: 1.2rem;
    color: #ffc107;
}

.testimonial-text {
    font-style: italic;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.testimonial-author {
    margin-top: auto;
}

.testimonial-author h6 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.testimonial-author .author-role {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.testimonial-author .author-service {
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Staff Styling */
.staff-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(126, 44, 138, 0.1);
    height: 100%;
    overflow: hidden;
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(126, 44, 138, 0.2);
}

.staff-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.staff-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.staff-card:hover .staff-image img {
    transform: scale(1.05);
}

.staff-content {
    padding: 1.5rem;
    height: calc(100% - 200px);
    display: flex;
    flex-direction: column;
}

.staff-name {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.staff-title {
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.staff-experience {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.staff-specializations {
    color: #6b7280;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* Staff Detail Page Styling */
.staff-detail-image {
    margin-bottom: 2rem;
}

.staff-detail-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.staff-detail-info h2 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.staff-detail-info h4 {
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.staff-bio,
.staff-qualifications,
.staff-specializations {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
    line-height: 1.7;
}

.staff-sidebar .card {
    border: none;

/* Enhanced Mobile Navigation Responsiveness */
@media (max-width: 991.98px) {
    /* Enhanced avatar styling for mobile */
    .avatar-circle {
        border: 2px solid rgba(255, 255, 255, 0.2);
        transition: all 0.3s ease;
    }
    
    .avatar-circle:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 15px rgba(126, 44, 138, 0.3);
    }
    
    /* Enhanced mobile dropdown styling */
    .dropdown-menu {
        max-height: 300px;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: var(--primary) rgba(126, 44, 138, 0.1);
    }
    
    .dropdown-menu::-webkit-scrollbar {
        width: 4px;
    }
    
    .dropdown-menu::-webkit-scrollbar-track {
        background: rgba(126, 44, 138, 0.1);
        border-radius: 2px;
    }
    
    .dropdown-menu::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 2px;
    }
    
    .dropdown-menu::-webkit-scrollbar-thumb:hover {
        background: var(--secondary);
    }
    
    /* Touch-friendly mobile interactions */
    .nav-link, .dropdown-item, .nav-toggle-btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(126, 44, 138, 0.1);
    }
    
    .dropdown-toggle::after {
        margin-left: 0.5rem;
        transition: transform 0.3s ease;
    }
    
    .dropdown-toggle[aria-expanded="true"]::after {
        transform: rotate(180deg);
    }
}

/* Smooth navbar collapse animation */
.navbar-collapse {
    transition: all 0.3s ease-in-out;
}

.navbar-collapse.collapsing {
    transition: height 0.35s ease;
}

/* Enhanced accessibility for mobile */
@media (max-width: 991.98px) {
    .navbar-toggler[aria-expanded="true"] {
        transform: rotate(90deg);
        transition: transform 0.3s ease;
    }
    
    .navbar-nav .nav-link:focus,
    .dropdown-item:focus,
    .nav-toggle-btn:focus {
        outline: 2px solid var(--primary);
        outline-offset: 2px;
        background: rgba(126, 44, 138, 0.1);
    }
}

/* Improved navbar brand responsiveness */
@media (max-width: 768px) {
    .navbar-brand {
        flex: 1;
        display: flex;
        align-items: center;
    }
    
    .navbar-brand img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }
}

/* Enhanced mobile navbar positioning */
@media (max-width: 991.98px) {
    .navbar .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .navbar-toggler {
        order: 2;
        margin-left: auto;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .navbar-brand {
        order: 1;
    }
}

/* Mobile-specific dropdown improvements */
@media (max-width: 991.98px) {
    .dropdown-menu.show {
        display: block;
        position: static;
        float: none;
        width: 100%;
        margin-top: 0;
        background-color: transparent;
        border: 0;
        box-shadow: none;
    }
    
    .dropdown-item {
        padding: 0.75rem 1.5rem;
        color: #374151;
        border-radius: 8px;
        margin: 0.25rem 0;
    }
    
    .dropdown-item:hover,
    .dropdown-item:focus {
        color: var(--primary);
        background-color: rgba(126, 44, 138, 0.1);
    }
}

.staff-sidebar .card-header {
    background: var(--primary);
    color: white;
    border-radius: 15px 15px 0 0;
    border: none;
}

/* Page Header Styling */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

/* Filter Cards */
.card {
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
}

.card-body {
    padding: 2rem;
}

/* Pagination Styling */
.pagination .page-link {
    color: var(--primary);
    border: 1px solid rgba(126, 44, 138, 0.2);
    margin: 0 2px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

/* Empty State Styling */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.empty-state h4 {
    color: #6b7280;
    margin-bottom: 1rem;
}

.empty-state p {
    color: #9ca3af;
    margin-bottom: 2rem;
}

/* Responsive Design Updates */
@media (max-width: 768px) {
    .testimonial-content {
        padding: 1.5rem;
    }
    
    .staff-content {
        padding: 1rem;
    }
    
    .staff-image {
        height: 150px;
    }
    
    .staff-content {
        height: calc(100% - 150px);
    }
    
    .page-header {
        padding: 3rem 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
}
