/* Custom CSS for Edoch Pharmacy Website - PHP Version */

:root {
    --primary-color: #612a2b;
    --secondary-color: #8b3f40;
    --accent-color: #b55456;
    --primary-light: #f5e8e8;
    --primary-dark: #4a1f20;
    --medical-burgundy: #612a2b;
    --medical-light-burgundy: #f8f1f1;
    --medical-accent: #d4706f;
    --medical-success: #28a745;
    --text-dark: #2c1616;
    --text-light: #6c5757;
    --bg-light: #faf9f9;
    --bg-white: #ffffff;
    --success-color: #28a745;
    --warning-color: #fd7e14;
    --danger-color: #dc3545;
    --info-color: #612a2b;
    --border-light: #ede5e5;
    --shadow-light: 0 2px 4px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-medium: 0 4px 6px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-large: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
    --shadow-material: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-material-hover: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
}

body {
    font-family: 'Roboto', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.3;
}

.lead {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-light);
}

/* Professional Medical Color Scheme */
.text-medical-burgundy { color: var(--medical-burgundy) !important; }
.text-medical-accent { color: var(--medical-accent) !important; }
.text-primary-light { color: var(--primary-light) !important; }
.bg-medical-burgundy { background-color: var(--medical-burgundy) !important; }
.bg-medical-light-burgundy { background-color: var(--medical-light-burgundy) !important; }
.bg-primary-light { background-color: var(--primary-light) !important; }
.bg-medical-accent { background-color: var(--medical-accent) !important; }

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

.hero-content {
    position: relative;
    z-index: 3;
}

/* Ensure hero section containers are positioned above overlays */
.hero-section .container,
.hero-section .row,
.hero-section .col-lg-8 {
    position: relative;
    z-index: 3;
}

/* Hero Image and Video Backgrounds */
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Add dark overlay to all hero images for better text readability */
.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* Hero Carousel */
#heroCarousel {
    height: 100%;
}

#heroCarousel .carousel-item {
    position: relative;
    height: 80vh;
}

#heroCarousel .carousel-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

#heroCarousel .carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(98, 42, 43, 0.2);
    z-index: 1;
}

#heroCarousel .carousel-caption {
    z-index: 3;
}

#heroCarousel .carousel-indicators {
    bottom: 30px;
    z-index: 3;
}

#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    z-index: 3;
    width: 5%;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

#heroCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
}

#heroCarousel .carousel-indicators button.active {
    background-color: white;
}

/* Service Cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 3rem;
    line-height: 1;
}

/* Statistics Section */
.stats-section {
    background: var(--bg-light);
    padding: 80px 0;
}

.stat-item {
    text-align: center;
    padding: 30px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

/* Testimonials */
.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    margin: 20px 0;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--accent-color);
    font-family: serif;
}

.rating {
    color: #FFB400;
}

/* Blog Cards */
.blog-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.blog-card img {
    height: 200px;
    object-fit: cover;
}

/* Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 30px;
    cursor: pointer;
}

.gallery-item img {
    transition: transform 0.3s ease;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(98, 42, 43, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    text-align: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* Call to Action Section */
.cta-section {
    position: relative;
    overflow: hidden;
    margin-bottom: 0 !important;
}

.cta-background-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(98, 42, 43, 0.7);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
}

/* Utilities - Enhanced section spacing for better visual hierarchy */
.section-padding {
    padding: 120px 0;
}

/* Individual section spacing improvements */
section {
    padding: 100px 0;
}

/* Hero section special handling */
.hero-section {
    min-height: 85vh;
    padding: 0;
}

/* Specific section spacing */
.stats-section {
    padding: 120px 0;
}

.featured-services-section,
.locations-section, 
.testimonials-section,
.gallery-section,
.blog-section,
.cta-section {
    padding: 120px 0;
}

/* Margin between major sections */
section + section {
    margin-top: 40px;
}

/* Enhanced Section Spacing */
section {
    position: relative;
}

/* Professional Section Spacing Classes */
.section-spacing {
    margin-top: 5rem !important;
    margin-bottom: 5rem !important;
}

.section-spacing-lg {
    margin-top: 8rem !important;
    margin-bottom: 8rem !important;
}

/* Section Separators */
.section-separator {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(85, 28, 30, 0.2), transparent);
    margin: 6rem auto;
    width: 60%;
    border-radius: 1px;
}

.section-divider {
    margin: 8rem 0;
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 1px;
}

/* Background Variations for Better Separation */
.section-alt-bg {
    background-color: var(--bg-light);
    position: relative;
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
}

.section-alt-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(85, 28, 30, 0.02) 0%, rgba(119, 42, 44, 0.02) 100%);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand .material-icons {
    font-size: 1.5rem;
    line-height: 1;
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 500;
}

/* Footer */
footer {
    margin-top: auto;
}

footer .material-icons {
    font-size: 1.2rem;
}


/* Main Content */
.main-content {
    padding-top: 0;
}

.main-content .hero-section:first-child {
    margin-top: 0;
}

/* Button and Icon Alignment */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    line-height: 1;
}

.btn .material-icons {
    font-size: 1.2rem;
    line-height: 1;
    vertical-align: middle;
}

.btn-lg .material-icons {
    font-size: 1.4rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-item .material-icons {
    font-size: 1.2rem;
    line-height: 1;
    flex-shrink: 0;
}

/* Page Headers */
.page-header {
    background: var(--bg-light);
    padding: 4rem 0 2rem;
    margin-bottom: 2rem;
}

.page-header h1 {
    margin-bottom: 0.5rem;
}

.page-header .breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Remove margins between CTA section and footer */
main + footer {
    margin-top: 0 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
        min-height: 70vh;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.8rem;
    }
    
    .btn-lg {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

/* Team Section Styling */
.team-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.team-avatar .bg-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
}

.team-details {
    border-top: 1px solid #f0f0f0;
    padding-top: 1rem;
    margin-top: 1rem;
}

/* Enhanced Blog/Health Tips Cards */
.blog-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.blog-card .card-img-top.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.blog-card .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Enhanced Testimonial Cards */
.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    margin: 20px 0;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--accent-color);
    font-family: serif;
}

/* Star Rating Enhancement */
.rating .material-icons {
    font-size: 1.2rem;
    margin-right: 2px;
}

.rating .text-warning {
    color: #FFB400 !important;
}

/* Statistics Section Enhancement */
.stats-section {
    background: var(--bg-light);
    padding: 80px 0;
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(85, 28, 30, 0.05) 0%, rgba(119, 42, 44, 0.05) 100%);
}

.stat-item {
    text-align: center;
    padding: 30px;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

/* Footer Enhancements */
footer .hover-link {
    transition: all 0.3s ease;
}

footer .hover-link:hover {
    color: var(--accent-color) !important;
    transform: translateX(5px);
}

footer .material-icons {
    font-size: 1.2rem;
    vertical-align: middle;
}

/* Newsletter Form Enhancement */
#newsletterForm .input-group {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#newsletterForm .form-control {
    border: none;
    padding: 12px 20px;
    font-size: 14px;
}

#newsletterForm .btn {
    border: none;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

#newsletterForm .btn:hover {
    background-color: var(--accent-color) !important;
    transform: scale(1.05);
}

/* Enhanced Content Spacing */
.container {
    padding-left: 20px;
    padding-right: 20px;
}

/* Section Title Spacing */
.text-center.mb-5 {
    margin-bottom: 4rem !important;
}

.display-5.fw-bold.text-gradient.mb-3 {
    margin-bottom: 1.5rem !important;
}

/* Card Spacing */
.row > [class*="col-"] {
    margin-bottom: 2rem;
}

.card {
    margin-bottom: 2rem;
}

/* Service Cards Enhanced Spacing */
.service-card .card-body {
    padding: 2.5rem 2rem;
}

.service-icon {
    margin-bottom: 2rem !important;
}

/* Statistics Enhanced Spacing */
.stat-item {
    padding: 2.5rem 1.5rem;
}

/* Testimonial Cards Enhanced Spacing */
.testimonial-card {
    padding: 2.5rem;
    margin-bottom: 2rem;
}

/* Team Cards Enhanced Spacing */
.team-card .card-body {
    padding: 2.5rem 2rem;
}

/* Blog Cards Enhanced Spacing */
.blog-card .card-body {
    padding: 2rem;
}

/* About Section Enhanced Spacing */
.info-item {
    margin-bottom: 1.5rem !important;
}

/* Force Button Color Overrides */
.btn-primary {
    background-color: #551c1e !important;
    border-color: #551c1e !important;
}

.btn-primary:hover {
    background-color: #772a2c !important;
    border-color: #772a2c !important;
}

.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
    background-color: #772a2c !important;
    border-color: #772a2c !important;
    box-shadow: 0 0 0 0.2rem rgba(85, 28, 30, 0.25) !important;
}

.btn-outline-primary {
    color: #551c1e !important;
    border-color: #551c1e !important;
}

.btn-outline-primary:hover {
    background-color: #551c1e !important;
    border-color: #551c1e !important;
    color: white !important;
}

.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active {
    background-color: #551c1e !important;
    border-color: #551c1e !important;
    color: white !important;
    box-shadow: 0 0 0 0.2rem rgba(85, 28, 30, 0.25) !important;
}

/* Force Text Primary Color */
.text-primary {
    color: #551c1e !important;
}

/* Force Background Primary Color */
.bg-primary {
    background-color: #551c1e !important;
}

/* Force Icon Colors */
.material-icons.text-primary,
i.text-primary {
    color: #551c1e !important;
}

/* Force Badge Colors */
.badge.bg-primary {
    background-color: #551c1e !important;
}

/* Force Border Colors */
.border-primary {
    border-color: #551c1e !important;
}

/* Force Link Colors */
a.text-primary {
    color: #551c1e !important;
}

a.text-primary:hover {
    color: #772a2c !important;
}

/* Force Gradient Background */
.bg-gradient {
    background: linear-gradient(135deg, #551c1e 0%, #772a2c 100%) !important;
}

/* Force Service Icon Colors */
.service-icon {
    background: none !important;
}

/* Force Team Avatar Colors */
.team-avatar .bg-gradient {
    background: linear-gradient(135deg, #551c1e, #772a2c) !important;
}

/* Force Blog Card Header Colors */
.blog-card .card-img-top.bg-gradient {
    background: linear-gradient(135deg, #551c1e, #772a2c) !important;
}

/* Force All Material Icons Primary Color */
.material-icons {
    color: inherit;
}

/* Override any remaining Bootstrap blue */
.text-info {
    color: #551c1e !important;
}

.bg-info {
    background-color: #551c1e !important;
}

/* Force Navbar Brand Color */
.navbar-brand.text-primary {
    color: #551c1e !important;
}

/* Force Footer Background */
footer.bg-primary {
    background-color: #551c1e !important;
}

/* Force Card Footer Button Colors */
.card-footer .btn-outline-primary {
    color: #551c1e !important;
    border-color: #551c1e !important;
}

.card-footer .btn-outline-primary:hover {
    background-color: #551c1e !important;
    border-color: #551c1e !important;
    color: white !important;
}

/* Force Info Bar Icons */
.info-item .material-icons.text-primary {
    color: #551c1e !important;
}

/* Force Statistics Section Text Color */
.stat-number {
    color: #551c1e !important;
}

/* Force All Primary Buttons in Hero */
.hero-content .btn-outline-light:hover {
    background-color: rgba(85, 28, 30, 0.1) !important;
    border-color: #551c1e !important;
}

/* Force CTA Section Background */
.cta-section.bg-gradient {
    background: linear-gradient(135deg, #551c1e 0%, #772a2c 100%) !important;
}

/* Additional Bootstrap Override - Force all blue variants */
.btn,
.btn:not(.btn-outline-light):not(.btn-light):not(.btn-secondary):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-dark) {
    background-color: #551c1e !important;
    border-color: #551c1e !important;
    color: white !important;
}

/* Force all Bootstrap primary variants */
.btn:hover:not(.btn-outline-light):not(.btn-light):not(.btn-secondary):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-dark),
.btn:focus:not(.btn-outline-light):not(.btn-light):not(.btn-secondary):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-dark),
.btn:active:not(.btn-outline-light):not(.btn-light):not(.btn-secondary):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-dark) {
    background-color: #772a2c !important;
    border-color: #772a2c !important;
    color: white !important;
}

/* Override Bootstrap default blue (#0d6efd) wherever it appears */
* {
    --bs-blue: #551c1e !important;
    --bs-primary: #551c1e !important;
    --bs-primary-rgb: 85, 28, 30 !important;
}

/* Force any remaining blue elements */
[style*="background-color: #0d6efd"],
[style*="background-color:#0d6efd"],
[style*="color: #0d6efd"],
[style*="color:#0d6efd"],
[style*="border-color: #0d6efd"],
[style*="border-color:#0d6efd"] {
    background-color: #551c1e !important;
    color: #551c1e !important;
    border-color: #551c1e !important;
}

/* Force dropdown menu items */
.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(85, 28, 30, 0.1) !important;
    color: #551c1e !important;
}

/* Force active nav items */
.nav-link.active,
.navbar-nav .nav-link.active {
    color: #551c1e !important;
}

/* Force pagination colors if present */
.page-link {
    color: #551c1e !important;
}

.page-link:hover {
    color: #772a2c !important;
    background-color: rgba(85, 28, 30, 0.1) !important;
    border-color: #551c1e !important;
}

.page-item.active .page-link {
    background-color: #551c1e !important;
    border-color: #551c1e !important;
}

/* Force any remaining Bootstrap components */
.alert-primary {
    background-color: rgba(85, 28, 30, 0.1) !important;
    border-color: #551c1e !important;
    color: #551c1e !important;
}

.list-group-item-primary {
    background-color: rgba(85, 28, 30, 0.1) !important;
    border-color: #551c1e !important;
    color: #551c1e !important;
}

/* ==================================
   PROFESSIONAL MEDICAL ENHANCEMENTS
   ================================== */

/* Enhanced Cards with Professional Medical Look */
.card {
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    background: var(--bg-white);
}

.card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1.25rem;
    font-weight: 600;
    border-radius: 12px 12px 0 0;
}

/* Professional Medical Icons */
.medical-icon-lg {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.medical-icon-md {
    font-size: 2rem;
    color: var(--secondary-color);
}

.medical-icon-sm {
    font-size: 1.25rem;
    color: var(--medical-accent);
}

/* Enhanced Service Cards */
.service-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--medical-accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-dark);
    border-color: var(--primary-color);
}

/* Professional Medical Buttons */
.btn {
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-medical-primary {
    background: linear-gradient(135deg, var(--medical-blue), var(--primary-color));
    border: none;
    color: white;
}

.btn-medical-primary:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--medical-blue));
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.btn-medical-outline {
    background: transparent;
    border: 2px solid var(--medical-blue);
    color: var(--medical-blue);
}

.btn-medical-outline:hover {
    background: var(--medical-blue);
    color: white;
    box-shadow: var(--shadow-light);
}

/* Professional Navigation */
.navbar {
    background: var(--bg-white) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 0.5rem;
    padding: 0.75rem 1rem !important;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: var(--primary-light);
    color: var(--primary-color) !important;
}

.nav-link.active {
    background: var(--primary-color);
    color: white !important;
}

/* Enhanced Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M30 30c0-11.046-8.954-20-20-20v40c11.046 0 20-8.954 20-20z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

/* Medical Statistics/Info Sections */
.stat-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--medical-light-blue), var(--medical-light-green));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::before {
    opacity: 0.05;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--medical-blue);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

/* Professional Testimonials */
.testimonial-card {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-light);
    position: relative;
    margin-top: 2rem;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 2rem;
    font-size: 4rem;
    color: var(--medical-blue);
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--medical-blue), var(--medical-green));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.25rem;
    margin-right: 1rem;
}

/* Professional Contact/CTA Sections */
.cta-section {
    background: linear-gradient(135deg, var(--medical-blue), var(--primary-color));
    padding: 5rem 0;
    color: white;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Cpath d='M20 20c0-5.5-4.5-10-10-10v20c5.5 0 10-4.5 10-10z'/%3E%3C/g%3E%3C/svg%3E") repeat;
}

/* Professional Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer h5 {
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer .list-unstyled li {
    margin-bottom: 0.75rem;
    color: rgba(255,255,255,0.7);
}


/* Professional Forms */
.form-control {
    border: 2px solid var(--border-light);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--medical-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 61, 130, 0.15);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Medical Emergency/Important Info */
.emergency-banner {
    background: linear-gradient(135deg, var(--danger-color), #c0392b);
    color: white;
    padding: 1rem 0;
    text-align: center;
    font-weight: 600;
}

.info-banner {
    background: linear-gradient(135deg, var(--info-color), var(--medical-blue));
    color: white;
    padding: 1rem 0;
    text-align: center;
}

/* Professional Badges */
.badge-medical {
    background: var(--medical-green);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
}

.badge-professional {
    background: var(--medical-blue);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .service-card {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .stat-card {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .hero-section {
        min-height: 60vh;
        padding: 3rem 0;
    }
    
    .medical-icon-lg {
        font-size: 2.5rem;
    }
}

/* ==================================
   FORCE PRIMARY COLOR OVERRIDES
   ================================== */

/* Force ALL primary colors to #612a2b with maximum specificity */
.text-primary,
h1.text-primary,
h2.text-primary,
h3.text-primary,
h4.text-primary,
h5.text-primary,
h6.text-primary,
.display-1.text-primary,
.display-2.text-primary,
.display-3.text-primary,
.display-4.text-primary,
.display-5.text-primary,
.display-6.text-primary,
h1.display-1.text-primary,
h1.display-2.text-primary,
h1.display-3.text-primary,
h1.display-4.text-primary,
h1.display-5.text-primary,
h1.display-6.text-primary,
h2.display-1.text-primary,
h2.display-2.text-primary,
h2.display-3.text-primary,
h2.display-4.text-primary,
h2.display-5.text-primary,
h2.display-6.text-primary,
h3.display-1.text-primary,
h3.display-2.text-primary,
h3.display-3.text-primary,
h3.display-4.text-primary,
h3.display-5.text-primary,
h3.display-6.text-primary,
.display-5.fw-bold.text-primary,
.display-6.fw-bold.text-primary,
h2.display-5.fw-bold.text-primary,
h2.display-6.fw-bold.text-primary,
a.text-primary,
.btn-link,
.link-primary {
    color: #612a2b !important;
}

/* Force ALL primary backgrounds to #612a2b */
.bg-primary,
.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.btn-primary.focus,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
    background-color: #612a2b !important;
    border-color: #612a2b !important;
}

/* Force primary button hover states */
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #8b3f40 !important;
    border-color: #8b3f40 !important;
    color: white !important;
}

/* Force outline primary buttons */
.btn-outline-primary,
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active {
    color: #612a2b !important;
    border-color: #612a2b !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active {
    background-color: #612a2b !important;
    border-color: #612a2b !important;
    color: white !important;
}

/* Force Bootstrap components */
.badge-primary {
    background-color: #612a2b !important;
}

.alert-primary {
    background-color: rgba(97, 42, 43, 0.1) !important;
    border-color: rgba(97, 42, 43, 0.2) !important;
    color: #612a2b !important;
}

.border-primary {
    border-color: #612a2b !important;
}

/* Force links */
a:not(.btn):not(.nav-link):not(.navbar-brand) {
    color: #612a2b !important;
}

a:not(.btn):not(.nav-link):not(.navbar-brand):hover {
    color: #8b3f40 !important;
}

/* Force form controls focus */
.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.form-range:focus {
    border-color: #612a2b !important;
    box-shadow: 0 0 0 0.2rem rgba(97, 42, 43, 0.25) !important;
}

.form-check-input:checked {
    background-color: #612a2b !important;
    border-color: #612a2b !important;
}

/* Force pagination */
.page-link {
    color: #612a2b !important;
}

.page-link:hover {
    color: #8b3f40 !important;
    background-color: rgba(97, 42, 43, 0.1) !important;
    border-color: #612a2b !important;
}

.page-item.active .page-link {
    background-color: #612a2b !important;
    border-color: #612a2b !important;
    color: white !important;
}

/* Force navbar */
.navbar-brand {
    color: #612a2b !important;
}

.navbar-nav .nav-link {
    color: #2c1616 !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #612a2b !important;
}

.navbar-nav .nav-link.active {
    color: #612a2b !important;
}

/* Force dropdown */
.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(97, 42, 43, 0.1) !important;
    color: #612a2b !important;
}

.dropdown-item.active {
    background-color: #612a2b !important;
    color: white !important;
}

/* Force progress bars */
.progress-bar {
    background-color: #612a2b !important;
}

/* Force list group */
.list-group-item-primary {
    background-color: rgba(97, 42, 43, 0.1) !important;
    border-color: rgba(97, 42, 43, 0.2) !important;
    color: #612a2b !important;
}

.list-group-item.active {
    background-color: #612a2b !important;
    border-color: #612a2b !important;
    color: white !important;
}

/* Force table elements */
.table-primary {
    background-color: rgba(97, 42, 43, 0.1) !important;
    border-color: rgba(97, 42, 43, 0.2) !important;
}

/* Force accordion */
.accordion-button:not(.collapsed) {
    background-color: rgba(97, 42, 43, 0.1) !important;
    color: #612a2b !important;
}

/* Force carousel indicators */
.carousel-indicators [data-bs-target] {
    background-color: rgba(97, 42, 43, 0.5) !important;
}

.carousel-indicators .active {
    background-color: #612a2b !important;
}

/* Force close button hover */
.btn-close:hover {
    background-color: rgba(97, 42, 43, 0.1) !important;
}

/* Medical specific icon colors */
.medical-icon-lg,
.medical-icon-md,
.medical-icon-sm {
    color: #612a2b !important;
}

.stat-number {
    color: #612a2b !important;
}

/* Force any remaining Bootstrap blue colors */
.text-info {
    color: #612a2b !important;
}

.bg-info {
    background-color: #612a2b !important;
}

/* Force service cards */
.service-card:hover {
    border-color: #612a2b !important;
}

.service-card::before {
    background: linear-gradient(90deg, #612a2b, #b55456) !important;
}

/* Force CTA buttons */
.cta-section .btn-medical-primary {
    background: linear-gradient(135deg, #612a2b, #8b3f40) !important;
    border: none !important;
    color: white !important;
}

.cta-section .btn-medical-primary:hover {
    background: linear-gradient(135deg, #8b3f40, #612a2b) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

/* Force testimonial elements */
.testimonial-card::before {
    color: #612a2b !important;
}

.testimonial-avatar {
    background: linear-gradient(135deg, #612a2b, #b55456) !important;
}

/* Override any remaining blue from Bootstrap or other sources */
[style*="color: #0d6efd"] {
    color: #612a2b !important;
}

[style*="background-color: #0d6efd"] {
    background-color: #612a2b !important;
}

[style*="border-color: #0d6efd"] {
    border-color: #612a2b !important;
}

/* Force all blue variants */
.text-blue,
.text-info,
[class*="text-blue"],
[class*="bg-blue"] {
    color: #612a2b !important;
}

/* Ultra-aggressive color overrides - Nuclear option */
* {
    --bs-primary: #612a2b !important;
    --bs-primary-rgb: 97, 42, 43 !important;
}

/* Override Bootstrap CSS variables */
:root {
    --bs-primary: #612a2b !important;
    --bs-primary-rgb: 97, 42, 43 !important;
    --bs-primary-text-emphasis: #612a2b !important;
    --bs-primary-bg-subtle: rgba(97, 42, 43, 0.1) !important;
    --bs-primary-border-subtle: rgba(97, 42, 43, 0.2) !important;
}

/* Force specific Bootstrap blue values */
[style*="color: rgb(13, 110, 253)"],
[style*="color: #0d6efd"],
[style*="color:#0d6efd"] {
    color: #612a2b !important;
}

[style*="background-color: rgb(13, 110, 253)"],
[style*="background-color: #0d6efd"],
[style*="background-color:#0d6efd"] {
    background-color: #612a2b !important;
}

[style*="border-color: rgb(13, 110, 253)"],
[style*="border-color: #0d6efd"],
[style*="border-color:#0d6efd"] {
    border-color: #612a2b !important;
}

/* Ultra specific targeting */
h1[class*="text-primary"],
h2[class*="text-primary"],
h3[class*="text-primary"],
h4[class*="text-primary"],
h5[class*="text-primary"],
h6[class*="text-primary"] {
    color: #612a2b !important;
}

/* Nuclear option - override any blue color */
*[class*="text-primary"] {
    color: #612a2b !important;
}

*[class*="btn-primary"] {
    background-color: #612a2b !important;
    border-color: #612a2b !important;
}

*[class*="bg-primary"] {
    background-color: #612a2b !important;
}

/* Specific targeting for your headers */
.display-5.fw-bold.text-primary.mb-3,
.display-6.fw-bold.text-primary.mb-3,
.display-5.text-primary,
.display-6.text-primary {
    color: #612a2b !important;
}

/* Force any computed blue colors */
[computed-style*="color: rgb(13, 110, 253)"] {
    color: #612a2b !important;
}

/* ==================================
   MATERIAL DESIGN THEME
   ================================== */

/* Material Design Typography Scale */
.material-headline-1 { font-size: 96px; font-weight: 300; letter-spacing: -1.5px; }
.material-headline-2 { font-size: 60px; font-weight: 300; letter-spacing: -0.5px; }
.material-headline-3 { font-size: 48px; font-weight: 400; letter-spacing: 0px; }
.material-headline-4 { font-size: 34px; font-weight: 400; letter-spacing: 0.25px; }
.material-headline-5 { font-size: 24px; font-weight: 400; letter-spacing: 0px; }
.material-headline-6 { font-size: 20px; font-weight: 500; letter-spacing: 0.15px; }
.material-subtitle-1 { font-size: 16px; font-weight: 400; letter-spacing: 0.15px; }
.material-subtitle-2 { font-size: 14px; font-weight: 500; letter-spacing: 0.1px; }
.material-body-1 { font-size: 16px; font-weight: 400; letter-spacing: 0.5px; }
.material-body-2 { font-size: 14px; font-weight: 400; letter-spacing: 0.25px; }
.material-button { font-size: 14px; font-weight: 500; letter-spacing: 1.25px; text-transform: uppercase; }
.material-caption { font-size: 12px; font-weight: 400; letter-spacing: 0.4px; }
.material-overline { font-size: 10px; font-weight: 400; letter-spacing: 1.5px; text-transform: uppercase; }

/* Material Design Spacing System */
.spacing-xs { margin: 4px; padding: 4px; }
.spacing-sm { margin: 8px; padding: 8px; }
.spacing-md { margin: 16px; padding: 16px; }
.spacing-lg { margin: 24px; padding: 24px; }
.spacing-xl { margin: 32px; padding: 32px; }
.spacing-2xl { margin: 48px; padding: 48px; }
.spacing-3xl { margin: 64px; padding: 64px; }

/* Section Spacing - Material Design */
section {
    padding: 80px 0;
    position: relative;
}

section:first-of-type {
    padding-top: 120px;
}

section + section {
    margin-top: 0;
}

/* Material Cards */
.material-card {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-material);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    border: none;
    overflow: hidden;
}

.material-card:hover {
    box-shadow: var(--shadow-material-hover);
    transform: translateY(-2px);
}

.material-card-elevated {
    box-shadow: var(--shadow-large);
}

.material-card-elevated:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

/* Material Buttons */
.material-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 24px;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.material-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.material-btn:hover::before {
    width: 300px;
    height: 300px;
}

.material-btn-filled {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-material);
}

.material-btn-filled:hover {
    background: var(--secondary-color);
    box-shadow: var(--shadow-material-hover);
    color: white;
}

.material-btn-outlined {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.material-btn-outlined:hover {
    background: rgba(97, 42, 43, 0.04);
    color: var(--primary-color);
}

.material-btn-text {
    background: transparent;
    color: var(--primary-color);
    box-shadow: none;
    padding: 8px 16px;
}

.material-btn-text:hover {
    background: rgba(97, 42, 43, 0.04);
    color: var(--primary-color);
}

/* Material Icons Styles */
.material-icon {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    font-feature-settings: 'liga';
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

.material-icon-outlined {
    font-family: 'Material Icons Outlined';
}

.material-icon-round {
    font-family: 'Material Icons Round';
}

.material-icon-sm { font-size: 18px; }
.material-icon-md { font-size: 24px; }
.material-icon-lg { font-size: 36px; }
.material-icon-xl { font-size: 48px; }
.material-icon-2xl { font-size: 64px; }

/* Material Icon Containers */
.material-icon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-color);
    margin-bottom: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.material-icon-container:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-material);
}

.material-icon-container-lg {
    width: 72px;
    height: 72px;
}

.material-icon-container-xl {
    width: 96px;
    height: 96px;
}

/* Enhanced Service Cards - Material Design */
.service-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: var(--shadow-material);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

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

.service-card .material-icon-container {
    margin: 0 auto 24px auto;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

/* Statistics Cards - Material Design */
.stat-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-material);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(97, 42, 43, 0.02), rgba(181, 84, 86, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-material-hover);
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: block;
    line-height: 1.2;
}

.stat-label {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Material Design Sections */
.material-section {
    position: relative;
    overflow: hidden;
}

.material-section-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(97, 42, 43, 0.02) 100%);
    z-index: -1;
}

/* Enhanced Hero Section - Material Design */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
}

/* Material Design Navigation */
.navbar {
    background: var(--bg-white) !important;
    box-shadow: var(--shadow-material);
    padding: 16px 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 4px;
    padding: 12px 16px !important;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
}

.nav-link:hover {
    background: var(--primary-light);
    color: var(--primary-color) !important;
    transform: translateY(-1px);
}

.nav-link.active {
    background: var(--primary-color);
    color: white !important;
    box-shadow: var(--shadow-material);
}

/* Material Design Forms */
.form-control,
.form-select {
    border: 2px solid var(--border-light);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
    background: var(--bg-white);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(97, 42, 43, 0.1);
    outline: none;
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Testimonials - Material Design */
.testimonial-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-material);
    position: relative;
    margin-top: 32px;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -16px;
    left: 32px;
    font-size: 4rem;
    color: var(--primary-color);
    line-height: 1;
    font-weight: 300;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-material-hover);
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 24px;
}

.testimonial-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.5rem;
    margin-right: 16px;
    box-shadow: var(--shadow-material);
}

/* CTA Section - Material Design */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 80px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'%3E%3Cpath d='M20 20c0-5.5-4.5-10-10-10v20c5.5 0 10-4.5 10-10z'/%3E%3C/g%3E%3C/svg%3E") repeat;
}

/* Material Design Animations */
@keyframes materialFadeIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes materialSlideIn {
    from {
        opacity: 0;
        transform: translateX(-24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.material-fade-in {
    animation: materialFadeIn 0.6s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}

.material-slide-in {
    animation: materialSlideIn 0.6s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}

/* Responsive Material Design */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .service-card {
        padding: 24px 16px;
        margin-bottom: 24px;
    }
    
    .stat-card {
        padding: 20px;
        margin-bottom: 16px;
    }
    
    .hero-section {
        min-height: 70vh;
        padding: 60px 0;
    }
    
    .material-icon-container {
        width: 48px;
        height: 48px;
    }
    
    .material-icon-container .material-icon {
        font-size: 20px;
    }
}

/* Django Template Styles - Additional CSS */

/* Text Gradient Effect */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Statistics Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-light) 0%, #ffffff 100%);
    padding: 80px 0;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 10px;
    line-height: 1;
}

/* Info Bar Styles */
.info-item {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 15px;
}

.info-item i {
    font-size: 24px;
    margin-right: 12px;
    flex-shrink: 0;
}

/* Service Icon Styles */
.service-icon {
    margin: 0 auto 20px;
    text-align: center;
}

.service-icon i {
    font-size: 3rem;
    color: var(--primary-color);
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Location Card Styles */
.location-card:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-large);
}

.location-card .badge {
    background-color: var(--primary-color) !important;
}

/* Gallery Styles */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(97, 42, 43, 0.8), rgba(139, 63, 64, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Testimonial Styles */
.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    height: 100%;
    position: relative;
    border: 1px solid var(--border-light);
}

.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: serif;
}

.rating i {
    color: #ffc107;
    font-size: 18px;
}

/* Blog Card Styles */
.blog-card:hover {
    transform: translateY(-3px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
}

.blog-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Call to Action Styles */
.cta-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    overflow: hidden;
}

.cta-background-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(97, 42, 43, 0.8);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
}

/* Carousel Improvements */
.carousel-fade .carousel-item {
    opacity: 0;
    transition-duration: 0.6s;
    transition-property: opacity;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-left,
.carousel-fade .carousel-item-prev.carousel-item-right {
    opacity: 1;
}

.carousel-fade .active.carousel-item-left,
.carousel-fade .active.carousel-item-right {
    opacity: 0;
}

.carousel-fade .carousel-item-next,
.carousel-fade .carousel-item-prev,
.carousel-fade .carousel-item.active,
.carousel-fade .active.carousel-item-left,
.carousel-fade .active.carousel-item-prev {
    transform: translateX(0);
}

/* Responsive Improvements for Django Template */
@media (max-width: 768px) {
    .stat-number {
        font-size: 2.5rem;
    }
    
    .service-icon i {
        font-size: 2.5rem;
        width: 70px;
        height: 70px;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .testimonial-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .info-item {
        justify-content: center;
        text-align: center;
        margin-bottom: 20px;
    }
}

/* Light text styling for CTA sections */
.cta-section h2,
.cta-section h3,
.cta-section h4,
.cta-section h5,
.cta-section h6 {
    font-weight: 300 !important;
}

.cta-section p,
.cta-section .lead {
    font-weight: 300 !important;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Contact CTA section light text */
.bg-primary h2,
.bg-primary h3,
.bg-primary h4,
.bg-primary h5,
.bg-primary h6 {
    font-weight: 300 !important;
}

.bg-primary p,
.bg-primary .lead {
    font-weight: 300 !important;
}

/* Card-based CTA sections */
.card h5,
.card h6 {
    font-weight: 300 !important;
}

.card p {
    font-weight: 300 !important;
}

/* Cache-busting comment to force reload */
/* Updated: 2025-09-07 - Light text styling for CTA sections */