/* Modern Reset and Base Styles */
:root {
    --primary-color: #003366;
    /* Dark Blue */
    --secondary-color: #ff6b00;
    /* Orange */
    --accent-color: #fff0e6;
    /* Light Orange for backgrounds */
    --text-color: #2d3748;
    --light-bg: #f7fafc;
    --white: #ffffff;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Roboto', system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-padding {
    padding: 4rem 0;
}

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    /* Reduced padding (approx 50%) */
    border-radius: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    /* Slightly smaller text */
    border: none;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.btn:hover {
    background-color: #1a365d;
    transform: translateY(-2px);
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 100px;
    width: auto;
    max-width: 250px;
    /* Prevent it from being too wide on small screens */
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    /* Star hidden */
}

/* Stagger delays */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Enhanced Hero */
.hero {
    /* Richer Gradient: Dark Blue to light blue/white */
    background: linear-gradient(135deg, #e0f2fe 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

/* Decorative Circle in Hero */
.hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, var(--secondary-color), #ff9f43);
    opacity: 0.1;
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.hero-vision {
    font-size: 1.2rem;
    color: #4a5568;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

/* Enhanced Buttons */
.btn {
    background: linear-gradient(to right, var(--primary-color), #004d99);
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    /* Consistent reduced sizing */
    font-size: 0.9rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.4);
    background: linear-gradient(to right, #004d99, var(--primary-color));
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Services / Expertise */
.services {
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Enhanced Service Cards */
.service-card {
    background: var(--white);
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy effect */
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    position: relative;
    display: inline-block;
}

.service-card:hover h3 {
    color: var(--secondary-color);
}

/* Philosophy Section */
.philosophy {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.philosophy h2 {
    color: var(--white);
}

.philosophy-text {
    font-size: 1.1rem;
    max-width: 900px;
    margin: 2rem auto 0;
    opacity: 0.9;
}

/* Review Section */
.reviews {
    background-color: var(--light-bg);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.review-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.stars {
    color: #ecc94b;
    margin-bottom: 1rem;
}

.review-author {
    font-weight: bold;
    margin-top: 1rem;
    display: block;
    color: var(--primary-color);
}

/* Locations */
.locations {
    background-color: var(--white);
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.location-card {
    border: 1px solid #e2e8f0;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.location-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background-color: #1a202c;
    color: #a0aec0;
    padding: 3rem 0;
    text-align: center;
}

footer a:hover {
    color: var(--white);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem 0;
    }

    .logo img {
        height: 45px;
        /* Compact logo */
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
        font-size: 0.85rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

/* Page Headers */
.page-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 2rem 0;
    /* Reduced from 3rem */
    text-align: center;
    margin-bottom: 1rem;
    /* Reduced from 2rem */
}

.page-header h1 {
    color: var(--white);
    /* Override default h1 color */
    margin-bottom: 0.5rem;
}

.page-header p {
    opacity: 0.9;
    font-size: 1.1rem;
}

/* Active Nav State */
.nav-links a.active {
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
}

/* Doctor Cards */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.doctor-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.doc-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.doc-info h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.qualification {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.designation {
    color: #718096;
    font-style: italic;
    margin-bottom: 1rem;
}

.doc-info hr {
    border: 0;
    border-top: 1px solid #edf2f7;
    margin: 1rem 0;
}

.doc-info p {
    margin-bottom: 1.5rem;
    flex-grow: 1;
    /* Pushes button to bottom */
}

/* Button Styles */
.btn-outline {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    background: transparent;
    text-align: center;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
}

/* =========================================
   FAQ Page Styles
   ========================================= */
.faq-category {
    margin-bottom: 2rem;
}

.faq-category h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

details {
    background-color: #fff;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

details:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

summary {
    padding: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    background-color: #fafafa;
    padding-right: 3.5rem;
    /* Space for the icon */
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    font-size: 1.5rem;
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    transition: transform 0.2s;
}

details[open] summary::after {
    content: '-';
    transform: translateY(-50%) rotate(180deg);
}

.faq-content {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    color: #555;
    line-height: 1.6;
}

.faq-content a {
    color: var(--secondary-color);
    text-decoration: underline;
}