/* --- 1. Variables & Global Reset --- */
:root {
    --primary: #2d2f97;    /* Deep Blue */
    --primary-dark: #1e207d;
    --secondary: #f12327;  /* Red */
    --secondary-dark: #d61b1f;
    --text-heading: #1a1a1a;
    --text-body: #555555;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --border-color: #e5e5e5;
    --shadow: 0 5px 20px rgba(0,0,0,0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', sans-serif; /* Modern Font */
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.7;
    color: var(--text-body);
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.2;
}

ul { list-style: none; }
a { text-decoration: none; display: inline-block; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.section { padding: 100px 0; }
.bg-light { background-color: var(--light-bg); }
.text-center { text-align: center; }

/* --- 2. Buttons --- */
.btn {
    padding: 14px 30px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
    border: 2px solid var(--secondary);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--secondary);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 12px 28px;
    font-weight: 600;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* --- 3. Top Bar --- */
.top-bar {
    background-color: var(--primary);
    color: rgba(255,255,255,0.8);
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-right: 25px;
}

.contact-info i {
    margin-right: 8px;
    color: var(--secondary);
}

.social-icons a {
    color: var(--white);
    margin-left: 15px;
    transition: 0.3s;
}

.social-icons a:hover { color: var(--secondary); }

/* --- 4. Main Navbar --- */
.main-header {
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 28px;
    color: var(--primary);
}

.logo span { color: var(--secondary); }

.nav-menu ul { display: flex; align-items: center; }

.nav-menu ul li { margin-left: 30px; }

.nav-menu ul li a {
    color: var(--text-heading);
    font-weight: 600;
    font-size: 15px;
    transition: 0.3s;
}

.nav-menu ul li a:hover, .nav-menu ul li a.active {
    color: var(--secondary);
}

.btn-nav {
    background: var(--secondary);
    color: var(--white) !important;
    padding: 10px 25px;
    border-radius: 30px;
}

.btn-nav:hover {
    background: var(--secondary-dark);
    color: var(--white) !important;
}

.hamburger { display: none; font-size: 24px; cursor: pointer; color: var(--primary); }

/* --- 5. Hero Section --- */
.hero-section {
    height: 85vh;
    background: url('https://images.unsplash.com/photo-1512678080530-7760d81faba6?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(45, 47, 151, 0.9) 0%, rgba(45, 47, 151, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.subtitle {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    color: var(--white);
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 35px;
    opacity: 0.9;
}

.hero-btns .btn { margin-right: 15px; }

/* --- 6. Stats Section --- */
.stats-section {
    background: var(--white);
    padding: 40px 0;
    margin-top: -60px; /* Overlap effect */
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    border-right: 1px solid #eee;
}

.stat-item:last-child { border-right: none; }

.stat-item i {
    font-size: 40px;
    color: var(--secondary);
    margin-bottom: 15px;
}

.stat-item h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 5px;
}

/* --- 7. About Section --- */
.about-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--primary);
    color: var(--white);
    padding: 30px;
    border-radius: 50%;
    width: 150px;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 5px solid var(--white);
}

.experience-badge h3 { color: var(--white); font-size: 2rem; margin-bottom: 0; }
.experience-badge p { font-size: 13px; margin: 0; line-height: 1.2; }

.about-content { flex: 1; }

.section-subtitle {
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-size: 14px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 25px;
}

.check-list {
    margin: 30px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.check-list li {
    font-weight: 600;
    display: flex;
    align-items: center;
}

.check-list li i {
    color: var(--secondary);
    margin-right: 10px;
    font-size: 18px;
}

/* --- 8. Departments Grid --- */
.section-header { margin-bottom: 60px; max-width: 700px; margin-left: auto; margin-right: auto; }

.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.dept-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.dept-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: transparent;
}

.dept-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--secondary);
    transition: 0.5s;
}

.dept-card:hover::before { width: 100%; }

.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(45, 47, 151, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 25px;
    transition: 0.3s;
}

.dept-card:hover .icon-box {
    background: var(--primary);
    color: var(--white);
}

.dept-card h3 { margin-bottom: 15px; }
.dept-card p { margin-bottom: 20px; color: var(--text-body); }
.dept-card a { color: var(--secondary); font-weight: 600; font-size: 14px; }
.dept-card a i { margin-left: 5px; transition: 0.3s; }
.dept-card a:hover i { margin-left: 10px; }

/* --- 9. Doctors Section --- */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.doctor-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.doctor-card:hover { transform: translateY(-10px); }

.doc-img {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.doc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.doctor-card:hover .doc-img img { transform: scale(1.1); }

.social-overlay {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    background: rgba(45, 47, 151, 0.9);
    padding: 15px;
    display: flex;
    justify-content: center;
    transition: 0.3s;
}

.doctor-card:hover .social-overlay { bottom: 0; }

.social-overlay a { color: var(--white); margin: 0 10px; }
.social-overlay a:hover { color: var(--secondary); }

.doc-info { padding: 25px; text-align: center; border-bottom: 3px solid transparent; transition: 0.3s; }
.doctor-card:hover .doc-info { border-bottom-color: var(--secondary); }
.doc-info h3 { font-size: 1.2rem; margin-bottom: 5px; color: var(--primary); }
.doc-info span { color: var(--secondary); font-size: 14px; font-weight: 600; }

/* --- 10. Emergency Strip --- */
.emergency-strip {
    background: var(--secondary);
    padding: 50px 0;
    color: var(--white);
}

.emergency-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-white-outline {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 18px;
}

.btn-white-outline:hover {
    background: var(--white);
    color: var(--secondary);
}

/* --- 11. Appointment Section --- */
.appointment-container {
    display: flex;
    box-shadow: var(--shadow);
    border-radius: 10px;
    overflow: hidden;
    background: var(--white);
}

.form-text {
    flex: 1;
    background: var(--primary);
    color: var(--white);
    padding: 60px;
}

.form-text .section-title, .form-text .section-subtitle { color: var(--white); }
.form-text p { opacity: 0.8; margin-bottom: 30px; }

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.info-item i {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--secondary);
}

.form-wrapper {
    flex: 1.5;
    padding: 60px;
}

.input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

input, select, textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    background: #f8f9fa;
    transition: 0.3s;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    background: var(--white);
}

.full-width { width: 100%; border: none; }

/* --- 12. Footer --- */
.main-footer {
    background: #151748;
    color: #b0b0b0;
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-logo { color: var(--white); margin-bottom: 20px; font-size: 30px; }
.footer-logo span { color: var(--secondary); }

.footer-widget h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-widget ul li { margin-bottom: 12px; }
.footer-widget ul li a { color: #b0b0b0; transition: 0.3s; }
.footer-widget ul li a:hover { color: var(--secondary); padding-left: 5px; }

.hours-list li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 8px;
}

.footer-socials a {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
    color: var(--white);
    transition: 0.3s;
}

.footer-socials a:hover { background: var(--secondary); }

.footer-bottom { padding: 25px 0; text-align: center; font-size: 14px; }

/* --- 13. Responsive Media Queries --- */
@media (max-width: 991px) {
    .navbar .nav-menu { display: none; } /* Mobile Menu hidden for now */
    .hamburger { display: block; }
    
    .hero-content h1 { font-size: 2.8rem; }
    
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item { border-right: none; border-bottom: 1px solid #eee; }
    
    .about-wrapper { flex-direction: column; }
    
    .appointment-container { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 576px) {
    .top-bar-content { flex-direction: column; gap: 10px; text-align: center; }
    .contact-info { display: flex; flex-direction: column; gap: 5px; }
    .contact-info span { margin: 0; }
    
    .hero-content h1 { font-size: 2rem; }
    .input-group { grid-template-columns: 1fr; }
    
    .emergency-content { flex-direction: column; text-align: center; gap: 20px; }
    
    .footer-grid { grid-template-columns: 1fr; }
}