:root {
    --primary-color: #155e97; /* Avis Blue */
    --accent-color: #d32f2f;  /* Avis Red */
    --bg-light: #f5f9fc;
}

body {
    font-family: 'Montserrat', sans-serif;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

/* Helpers */
.text-primary { color: var(--primary-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.bg-accent { background-color: var(--accent-color) !important; }
.section-header { margin-bottom: 3rem; position: relative; }
.section-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 10px auto 0;
}

.section-header:not(.center-align)::after{
    margin: 10px 0 0;
}

/* Navbar */
nav {
    background-color: #fff;
    height: 80px;
    line-height: 80px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
nav .brand-logo img {
    height: 60px;
    margin-top: 10px;
}
nav ul a {
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
}
nav ul a:hover {
    background-color: transparent;
    color: var(--primary-color);
}
.sidenav-trigger { color: var(--primary-color); }

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://avishospitals.com/assets/bannerImage-1.webp');
    background-size: cover;
    background-position: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
}
.hero h1 { font-weight: 800; font-size: 2.5rem; margin-bottom: 1rem; }
.hero h5 { font-weight: 400; line-height: 1.6; margin-bottom: 1rem; color: #fff; }
.hero p{ margin-bottom: 2rem; color: #fff; }
.hero .btn-large {
    background-color: var(--accent-color);
    border-radius: 50px;
    padding: 0 40px;
    font-weight: 700;
}

/* Floating Actions */
.floating-cta {
    position: fixed;
    right: 20px;
    bottom: 6%;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.btn-floating.pulse { background-color: var(--accent-color) !important; }

/* Form Section */
.booking-section {
    background-color: var(--primary-color);
    padding: 3rem 0;
    color: white;
    margin-top: -50px;
    position: relative;
    z-index: 10;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.booking-section input, .booking-section select, .booking-section textarea {
    color: white;
    border-bottom: 1px solid rgba(255,255,255,0.5) !important;
}
.booking-section input:focus {
    border-bottom: 1px solid white !important;
    box-shadow: 0 1px 0 0 white !important;
}
.booking-section label { color: rgba(255,255,255,0.7) !important; }

/* Stats */
.stats-box {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    height: 100%;
    transition: transform 0.3s;
    border-bottom: 4px solid var(--primary-color);
}
.stats-box:hover { transform: translateY(-5px); }
.stats-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

/* Cards (Services/Treatments) */
.card-panel{
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.13);
}
.card-custom {
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0,0,0,0.13);
}
.card-custom:hover {
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}
.card-custom .card-image { height: 320px; overflow: hidden; }
.card-custom .card-image img { 
    width: 100%; height: 100%; object-fit: cover; 
    transition: transform 0.5s;
}
.card-custom:hover .card-image img { transform: scale(1.1); }
.card-custom .card-title { color: var(--primary-color); font-weight: 600; font-size: 1.2rem; }

/* Accordion */
.collapsible{
    box-shadow: 0 4px 15px rgba(0,0,0,0.13);
}
.collapsible-header { font-weight: 600; color: var(--primary-color); }
.collapsible-header i { color: var(--accent-color); }

/* Marquee */
.marquee-container {
    overflow: hidden;
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}
.marquee-content {
    display: flex;
    animation: scroll 30s linear infinite;
    width: max-content;
}
.marquee-content img {
    height: 50px;
    margin: 0 30px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: 0.3s;
}
.marquee-content img:hover { filter: grayscale(0); opacity: 1; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Testimonials */
.video-container iframe {
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Footer */
footer.page-footer {
    background-color: #1b2733;
    margin-top: 0;
    padding-top: 40px;
}

/* Mobile Adjustments */
@media only screen and (max-width: 600px) {
    .hero h1 { font-size: 1.8rem; }
    .hero .btn-large { display: none;}
    .booking-section { margin-top: 0; border-radius: 0; }
    .section-header { margin-bottom: 2rem; }
    .section-header br{ display: none; }
}

/* Force Dropdown Input Text to be White */
.input-field .select-wrapper input.select-dropdown {
    color: white !important;
    border-bottom: 1px solid rgba(255,255,255,0.7) !important;
}
/* Force Dropdown Arrow (Caret) to be White */
.input-field .select-wrapper .caret {
    fill: white !important;
}
/* Checkbox Color Override */
.checkbox-red[type="checkbox"].filled-in:checked + span:not(.lever):after {
    border: 2px solid var(--accent-color);
    background-color: var(--accent-color);
}
/* 1. Equal Height Row logic */
.row.equal-height {
    display: flex;
    flex-wrap: wrap;
}

/* 2. Helper to force card to fill the column height */
.h-100 {
    height: calc(100% - 1.5rem); /* Subtract margin to avoid overflow */
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

/* 3. Remove default row margin inside card to align content perfectly */
.card-panel .row.mb-0 {
    margin-bottom: 0;
}
.mt-0 {
    margin-top: 0;
}

/* Push the chevron to the right */
.collapsible-header {
    display: flex;
    align-items: center;
    gap: 10px;
}
.faqs .collapsible-header {
    justify-content: space-between;
}

/* Base state: Arrow pointing down */
.collapsible-header .chevron {
    transition: transform 0.3s ease;
    margin-right: 0; /* reset default margin if any */
}

/* Active state: Rotate arrow up */
.collapsible li.active .collapsible-header .chevron {
    transform: rotate(180deg);
}

.collapsible-header img{
    max-width: 46px;
    max-height: 46px;
    border-radius: 4px;
}


/* Section Spacing */
.about-section {
    padding: 80px 0;
    background: linear-gradient(to right, #ffffff, #f9fbfd); /* Subtle gradient */
    overflow: hidden; /* Prevents decorative blob from scrolling */
}

/* Typography Tweaks */
.highlight-tag {
    color: var(--accent-color); /* Your red brand color */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-weight: 700;
    margin-top: 0;
    color: var(--primary-color); /* Deep Medical Blue */
    position: relative;
    margin-bottom: 25px;
}

/* Removes default bold from p to make it cleaner */
.about-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* MODERN FEATURE LIST STYLING */
.feature-list {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Soft shadow */
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.icon-box {
    background: rgba(26, 35, 126, 0.1); /* Light version of brand blue */
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.feature-text h6 {
    margin: 0;
    font-weight: 600;
    color: #333;
}

.feature-text .small-text {
    font-size: 0.9rem;
    color: #888;
}

/* IMAGE STYLING */
.relative-container {
    position: relative;
    padding: 20px;
}

.main-image {
    border-radius: 20px; /* Modern rounded corners */
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Decorative Blob behind image */
.blob-bg {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 100%;
    height: 100%;
    background-color: #e3f2fd; /* Very light blue */
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; /* Organic shape */
    z-index: 1;
    animation: morph 8s ease-in-out infinite;
}

/* Animation for the blob */
@keyframes morph {
    0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    34% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
    67% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; }
}

/* Custom Spacing Helpers */
.mt-4 { margin-top: 1.5rem !important; }

/* Desktop Flex Alignment fix */
@media only screen and (min-width: 993px) {
    .valign-wrapper-custom {
        display: flex;
        align-items: center;
    }
    .about-content{
        padding-right: 34px;
    }
}