/* CSS Variables for Easy Site-Wide Changes */
:root {
    /* Brand Colors */
    --color-primary-dark: #451406;      /* Deep Navy/Dark Blue (NEW SOLID COLOR) */
    --color-secondary-light: #4a69bd;   /* Mid Blue */
    --color-accent: #ff6b6b;            /* Coral/Pink Accent */
    --color-highlight-yellow: #ffd966;  /* Yellow highlight (used in gallery banner) */

    /* Navbar & Footer Color */
    --color-navbar-footer-bg: var(--color-primary-dark);
    
    /* Backgrounds & Text */
    --color-bg-light: #f8f8f8;
    --color-bg-header: #ffedf1;         /* Very light pink top bar */
    --color-text-dark: #333;
    --color-text-light: #fff;
    
    /* Font Sizes (Default/Fallback) */
    --font-size-base: 1.0rem;
    --font-size-sm: 0.9rem;
    --font-size-lg: 1.1rem;
    --font-size-xl: 1.25rem;
    --font-size-h1: 2.2rem;
    --font-size-h2: 1.8rem;
}

body {
    /* Ensures the body takes up the full width and prevents horizontal scrollbar issues */
    margin: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden; 
    width: 100%;
    font-size: var(--font-size-base); /* Default size set */
    color: var(--color-text-dark);
}

section {
    margin-bottom: 1%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
/* ------------------------------------------NavBar------------------------------------------ */
.navbar-header {
    width: 100%;
    box-sizing: border-box;
}

.navbar-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    background: var(--color-bg-header);
    color: var(--color-text-dark);
    font-size: var(--font-size-sm);
}

.contact-info {
    display: flex;
    align-items: center;
    color: var(--color-text-dark);
}

.contact-info i {
    margin-right: 5px;
    color: var(--color-primary-dark);
}

.social-icons a {
    margin-left: 15px;
    color: var(--color-secondary-light);
    font-size: 18px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--color-accent);
}

/* Updated .navbar-main to use new solid background */
.navbar-main {
    padding: 10px 5%;
    background: var(--color-navbar-footer-bg);
    color: var(--color-text-light);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-icon-placeholder {
    font-size: 40px;
    color: var(--color-accent);
    margin-right: 10px;
}

.logo-icon-placeholder i {
    transform: rotate(-10deg);
}

.logo-text {
    display: flex;
    flex-direction: column;
    text-transform: uppercase;
    color: var(--color-text-light); 
}

.logo-title {
    font-size: var(--font-size-xl); 
    font-weight: bold;
    letter-spacing: 1px;
    padding-bottom: 2px;
    border-bottom: 2px solid var(--color-accent);
}

.logo-subtitle {
    font-size: 14px;
    letter-spacing: 2px;
    margin-top: 3px;
}

/* Styles for Bootstrap Navbar elements to maintain custom look */
.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links .nav-item {
    margin-left: 30px;
}

.nav-links .nav-link {
    text-decoration: none;
    color: var(--color-text-light);
    font-size: var(--font-size-base);
    padding: 5px 0;
    transition: color 0.3s, border-bottom 0.3s;
}

.nav-links .nav-link:hover {
    color: var(--color-accent); /* Use accent color for hover */
    border-bottom: 2px solid var(--color-accent);
}

/* Custom hamburger menu color (to match the dark blue background) */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.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%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ------------------------------------------Hero section------------------------------------------ */
.hero-banner {
    background-image: url("../images/hospital.png");
    background-size: cover;
    background-position: center;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--color-text-light);
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.1) 70%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 1000px;
    padding: 20px;
}

.headline {
    /* Adjusted: Now uses h1 variable, making it proportionally large but not overwhelming */
    font-size: var(--font-size-h1); 
    font-weight: 600;
    margin: 0 0 30px 0;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

.welcome-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 80px 5%;
    background-color: var(--color-bg-light);
    font-family: Arial, sans-serif;
    gap: 40px;
    max-width: 100%;
    margin: 0 auto;
}

.welcome-text-content {
    flex: 1;
    max-width: 50%;
    padding-right: 20px;
}

.welcome-heading {
    /* Adjusted: Now uses h1 variable */
    font-size: var(--font-size-h1); 
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--color-secondary-light);
}

.heading-underline {
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
    margin-bottom: 30px;
}

.welcome-description {
    font-size: var(--font-size-lg); 
    line-height: 1.6;
    color: #555;
}

.welcome-image-container {
    flex: 1;
    max-width: 50%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.welcome-image {
    width: 100%;
    height: auto;
    display: block;
}

.section-title {
    text-align: center;
    font-size: var(--font-size-h2); 
    color: var(--color-text-dark);
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background-color: var(--color-accent);
    margin: 10px auto 0;
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.feature-card {
    flex: 1 1 250px;
    max-width: 240px;
    background-color: #ffeef2;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.icon-wrapper {
    width: 100px;
    height: 100px;
    background-color: #fef5f7;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
}

.icon-wrapper i, .icon-wrapper svg {
    font-size: 50px !important; 
    color: var(--color-accent);
}

.feature-text {
    font-size: var(--font-size-lg); 
    font-weight: 600;
    color: var(--color-text-dark);
}

.doctor-cards-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
    width: 100%;
    align-items: center; 
}

.doctor1 {
    width: 50%;
    height: 500px;
}

.doctor-img {
    width: 100%; 
    height: 100%;
    object-fit: cover; 
}

.about-self {
    width: 50%;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left; 
}

.about-self h1 {
    font-size: var(--font-size-h1); 
    color: var(--color-primary-dark);
}

.about-self h3 {
    font-size: var(--font-size-xl); 
    color: var(--color-secondary-light);
}

.doctor-exp {
    font-size: var(--font-size-lg); 
}

/* ------------------------------------------Reviews section------------------------------------------ */

.reviews-section {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--color-bg-light); 
}

.review-display-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.overall-rating-card {
    background-color: var(--color-bg-light);
    padding: 20px;
    margin-right: 20px;
    text-align: center;
    border-right: 1px solid #eee;
    padding-right: 40px;
}

.overall-rating-card .score {
    display: block;
    font-size: 4em;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 5px;
}

.overall-rating-card .star-icon {
    font-size: 3em;
    color: #ff9800; 
    display: block;
}

.individual-reviews-wrapper {
    display: flex;
    overflow-x: auto; 
    gap: 20px;
    padding-bottom: 20px; 
    max-width: 80%; 
    flex-wrap: nowrap;
}

.review-card {
    background-color: var(--color-bg-light);
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    min-width: 280px; 
    flex-shrink: 0; 
    text-align: left;
    display: flex;
    flex-direction: column;
}

.reviewer-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #34a853; 
    color: var(--color-text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 17px;
    margin-right: 8px;
}

.name {
    font-weight: bold;
    font-size: var(--font-size-base);
}

.stars {
    color: #ff9800; 
    font-size: 1.3em;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.review-text {
    font-size: var(--font-size-base);
    line-height: 1.5;
    color: #666;
    margin-top: 0;
    margin-bottom: auto; 
}

.view-link {
    color: var(--color-secondary-light);
    text-decoration: none;
    font-size: var(--font-size-sm);
    margin-top: 10px;
}

.nav-arrow {
    font-size: 2em;
    color: #ccc;
    align-self: center;
    margin-left: 10px;
    cursor: pointer;
}

/* ------------------------------------------Footer------------------------------------------ */

.footer {
    /* Uses new solid color variable */
    background: var(--color-navbar-footer-bg);
    color: var(--color-text-light);
    padding: 60px 0 30px;
    font-family: Arial, sans-serif;
}

.footer-container {
    width: 85%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-box h2 {
    font-size: var(--font-size-h2); 
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-box h3 {
    font-size: var(--font-size-xl); 
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-box p {
    color: #cdd2e0;
    line-height: 1.6;
    font-size: var(--font-size-base);
}

.footer-box ul {
    list-style: none;
    padding: 0;
}

.footer-box ul li {
    margin-bottom: 10px;
    color: #d2d6e2;
}

.footer-box ul li a {
    color: #d2d6e2;
    text-decoration: none;
    font-size: var(--font-size-base);
    transition: 0.3s;
}

.footer-box ul li a:hover {
    color: var(--color-accent); /* Adjusted hover color for visibility */
}

/* ------------------------------------------Media Queries (Responsiveness)------------------------------------------ */

@media (max-width: 991.98px) {
    /* Navbar collapse styles */
    .nav-links {
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-top: 15px;
    }
    .nav-links .nav-item {
        margin: 5px 0;
    }
    .nav-links .nav-link:hover {
        border-bottom: none;
    }
}

@media (max-width: 900px) {
    /* General layout changes for medium screens */
    .welcome-section {
        flex-direction: column;
        padding: 40px 5%;
    }

    .welcome-text-content,
    .welcome-image-container {
        max-width: 100%;
        padding-right: 0;
    }

    .welcome-image-container {
        margin-top: 30px;
    }

    .doctor-cards-container {
        flex-direction: column;
        gap: 20px;
    }

    .doctor1,
    .about-self {
        width: 100%;
        max-width: none;
        height: auto;
        /* Centered doctor text on mobile */
        text-align: center; 
    }
    
    .doctor-img {
        height: 400px; 
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Tablet/Mobile screen adjustments */
    .navbar-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .social-icons {
        margin-top: 5px;
    }
    
    .headline {
        font-size: 2.2em; 
    }
    
    /* Reviews: Make score and star smaller on mobile/tablet (existing rule kept) */
    .overall-rating-card .score {
        font-size: 3em; 
    }

    .overall-rating-card .star-icon {
        font-size: 2.5em; 
    }

    .review-display-container {
        flex-direction: column;
        align-items: center;
    }

    .overall-rating-card {
        margin-right: 0;
        margin-bottom: 20px;
        padding-right: 20px;
        border-right: none;
        border-bottom: 1px solid #eee;
        width: 100%;
    }

    .individual-reviews-wrapper {
        max-width: 100%;
        justify-content: flex-start;
    }

    .cards-container {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .feature-card {
        max-width: 400px;
        width: 90%;
    }
}

@media (max-width: 600px) {
    /* Small mobile screen adjustments */
    .headline {
        font-size: 1.8em;
    }
    .hero-banner {
        height: 50vh;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}