/* Global Mobile Fix */
* {
    box-sizing: border-box;
}
/* Premium Color Palette (Matched to Visiting Card) */
:root {
    --navy-blue: #0F2A4A;
    --gold: #C29B4C;
    --cream-bg: #F8F7F2;
    --light-gold: #f4ebd8;
    --bg-color: #f0f2f5;
    --text-dark: #2c3e50;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
}

/* Premium Header */
header {
    background-color: var(--cream-bg);
    padding: 20px 0 0 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding-bottom: 20px;
}

.brand-logo {
    width: 110px;
    mix-blend-mode: multiply;
}

.brand-text {
    border-left: 2px solid var(--gold);
    padding-left: 20px;
}

.brand-text h2 {
    color: var(--navy-blue);
    margin: 0;
    font-size: 2.5em;
    font-weight: 800;
}

.brand-text p {
    color: var(--gold);
    margin: 0;
    font-size: 1.1em;
    letter-spacing: 4px;
    font-weight: bold;
}

header nav {
    text-align: center;
    background-color: var(--navy-blue);
    padding: 12px 0;
}

header nav a {
    color: white;
    text-decoration: none;
    margin: 0 25px;
    font-size: 1.1em;
    font-weight: 500;
    transition: color 0.3s;
}

header nav a:hover {
    color: var(--gold);
}

/* Premium Card Layout */
.premium-card {
    background-color: white;
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border-top: 5px solid var(--gold);
    scroll-margin-top: 240px;
}

h3 {
    color: var(--navy-blue);
    font-size: 1.8em;
    border-bottom: 2px solid var(--light-gold);
    padding-bottom: 10px;
    margin-top: 0;
}

.section-subtitle {
    color: #7f8c8d;
    margin-bottom: 25px;
}

/* Search Bar */
.search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

input[type="text"] {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
}

input[type="text"]:focus {
    border-color: var(--gold);
    outline: none;
}

button {
    background-color: var(--navy-blue);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s;
}

button:hover {
    background-color: var(--gold);
    color: var(--navy-blue);
}

#search-result {
    font-size: 1.1em;
    margin-top: 15px;
}

/* Premium Doctor Grid */
.doctor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.doc-card {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: #fafafa;
    display: flex;
    flex-direction: column; /* Makes the card a flexible column */
}

.doc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.doc-photo {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: top;
    border-bottom: 3px solid var(--gold);
}

.doc-info {
    padding: 20px;
    display: flex;
    flex-direction: column; 
    flex-grow: 1; /* Magic: Forces the info section to fill all empty space */
}

.doc-info h4 {
    color: var(--navy-blue);
    margin: 0 0 5px 0;
    font-size: 1.4em;
}

.qualification {
    color: var(--gold);
    font-weight: bold;
    margin: 0 0 10px 0;
}

.specialty {
    font-size: 0.9em;
    color: #666;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

.call-btn {
    display: block;
    background-color: #27ae60;
    color: white;
    text-decoration: none;
    padding: 12px 0; /* Removed side padding so it perfectly fits */
    border-radius: 25px;
    font-weight: bold;
    transition: background-color 0.3s;
    margin-top: auto; /* Magic: Always pushes the button to the absolute bottom */
    white-space: nowrap;
    width: 100%; /* Makes all buttons the exact same uniform width */
    box-sizing: border-box;
}

.call-btn:hover {
    background-color: #219a52;
}

/* Facilities Grid */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.facility-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: var(--cream-bg);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--gold);
}

.facility-item .icon {
    font-size: 2em;
}

/* Footer */
footer {
    background-color: var(--navy-blue);
    color: white;
    text-align: center;
    padding: 40px 20px 20px 20px;
    margin-top: 60px;
}

.footer-details {
    margin-bottom: 20px;
}

.map-btn {
    display: inline-block;
    background-color: white;
    color: var(--navy-blue);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.map-btn:hover {
    background-color: var(--gold);
    color: white;
}

.copyright {
    font-size: 0.9em;
    opacity: 0.7;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
    margin-top: 20px;
}
/* ========================================= */
/* 📱 MOBILE RESPONSIVENESS FIXES            */
/* ========================================= */
@media (max-width: 768px) {
    
    /* 1. Stack the Header Neatly */
    .header-content {
        flex-direction: column; /* Stacks logo on top of text */
        gap: 10px;
        padding-bottom: 10px;
    }
    
    .brand-logo {
        width: 80px; /* Slightly smaller logo for phones */
    }
    
    .brand-text {
        border-left: none; /* Removes the vertical line */
        border-top: 2px solid var(--gold); /* Puts the line on top instead */
        padding-left: 0;
        padding-top: 10px;
        text-align: center;
    }
    
    .brand-text h2 {
        font-size: 1.8em; /* Smaller text to fit the screen */
    }

    /* 2. Squeeze the Navigation Menu */
    header nav a {
        margin: 0 10px; /* Less gap between links */
        font-size: 1em;
    }

    /* 3. Adjust the Premium Cards */
    .premium-card {
        margin: 20px 15px; /* Adds space outside the card so it doesn't touch the phone edge */
        padding: 25px 20px; /* Reduces inside padding so text has more room */
    }

    h3 {
        font-size: 1.5em; /* Smaller headings */
    }

    /* 4. Stack the Search Bar */
    .search-container {
        flex-direction: column; /* Puts the search button under the text box */
    }

    button {
        width: 100%; /* Makes the search button span full width */
    }
}