/* ===========================
   GLOBAL RESET & BASE STYLES
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    line-height: 1.6;
    background-color: #fff;
    color: #333;
}

/* ===========================
   HOSPITAL THEME COLORS
   =========================== */
:root {
    /* Hospital Color Palette */
    --primary: #0066cc;              /* Medical blue */
    --primary-light: #4da6ff;        /* Light medical blue */
    --primary-dark: #1a365d;         /* Deep medical blue */
    --secondary: #00a86b;            /* Medical green */
    --accent: #ff6b6b;               /* Emergency red */
    --text-light: #f8fbff;           /* Clean white-blue */
    --grey-light: #f7fafc;           /* Light background */
    --grey-dark: #718096;            /* Professional gray */
    --success: #e4e4e4;              /* Health green */
    --warning: #ed8936;              /* Caution orange */
    --error: #e53e3e;                /* Alert red */
    --border: #e2e8f0;               /* Border color */
    --card-bg: #ffffff;              /* Card background */
    --shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
}

/* ===========================
   UTILITIES
   =========================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.btn {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    box-shadow: var(--shadow);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.3);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.btn-large {
    padding: 0.9rem 1.8rem;
    font-size: 1rem;
}

.btn-full {
    display: block;
    width: 100%;
}

/* ===========================
   HEADER & NAV
   =========================== */
.header {
    background: var(--card-bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
}

.nav-brand {
    display: flex;
    align-items: center;
}
.nav-brand .logo i {
    font-size: 1.8rem;
    color: #28a745;
}
.brand-text {
    margin-left: 0.5rem;
}
.brand-text h1 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    font-weight: 700;
    letter-spacing: -0.5px;
}
.brand-text p {
    font-size: 0.8rem;
    color: var(--grey-dark);
}
/* Right-side mobile menu */
.nav-menu {
    position: fixed;
    top: 0;
    right: -250px; 
    width: 250px;
    height: 100vh;
    background-color: var(--background-color);
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: right 0.3s ease-in-out;
    z-index: 999;
}

/* Show menu when active */
.nav-menu.active {
    right: 0;
}

/* Mobile only */
@media (max-width: 768px) {
    .nav-menu {
        display: flex;
    }
}

.nav-link {
    color: var(--grey-dark);
    text-decoration: none;
    font-weight: 500;
}
.nav-link:hover {
    color: var(--primary);
    transition: color 0.3s ease;
}

.nav-buttons {
    display: flex;
    gap: 0.5rem;
}

.nav-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary);
    transition: color 0.3s ease;
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
    background-size: cover;
    background-position: center;
    color: white;
    padding: 4rem 0;
}
.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.hero-text p {
    font-size: 1rem;
}
.hero-text .highlight {
    font-weight: bold;
    color: var(--primary-light);
}
.hero-buttons {
    margin-top: 1.5rem;
}
.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}
.stat-number {
    font-size: 2rem;
    font-weight: bold;
}

/* ===========================
   SECTIONS
   =========================== */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}
.section-header h2 {
    color: var(--primary-dark);
    font-weight: 700;
    letter-spacing: -0.5px;
}
.section-header p {
    color: var(--grey-dark);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.service-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    border-left: 4px solid var(--secondary);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.2);
    border-color: var(--primary);
}
.service-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}
.service-price {
    margin-top: 0.5rem;
    color: var(--primary);
    font-weight: bold;
    font-family: 'Inter', monospace;
}

/* Doctors Grid */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.doctor-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    border-left: 4px solid var(--secondary);
}
.doctor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.2);
    border-color: var(--primary);
}
.doctor-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonial-container {
    text-align: center;
}
.testimonial {
    max-width: 600px;
    margin: auto;
}
.testimonial-photo {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 0.5rem;
}
.testimonial-stars {
    color: gold;
    margin-bottom: 0.5rem;
}
.testimonial blockquote {
    font-style: italic;
    margin-bottom: 0.5rem;
}
.testimonial-author span {
    display: block;
    font-size: 0.8rem;
    color: var(--grey-dark);
}
.testimonial-dots {
    margin-top: 1rem;
}
.dot {
    height: 10px;
    width: 10px;
    margin: 0 3px;
    background-color: var(--grey-dark);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}
.dot.active {
    background-color: var(--primary);
}

/* CTA */
.cta {
    padding: 60px 20px;
    background: linear-gradient(
        rgba(176, 193, 211, 0.8),
        rgba(0, 123, 255, 0.8)
    ),
    url("../Pictures/nurse-measuring-patient-blood-pressure.jpg") center/cover no-repeat;
    color: white;
    text-align: center;
}

/* ===========================
   ABOUT PAGE SPECIFIC STYLES
   =========================== */

/* Hero section for About page */
.about-hero {
    background: url('../Pictures/nurse-measuring-patient-blood-pressure.jpg') center/cover no-repeat;
    padding: 5rem 0;
    text-align: center;
    color: var(--text-light);
    position: relative;
}
.about-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}
.about-hero .container {
    position: relative;
    z-index: 1;
}
.about-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.about-hero p {
    font-size: 1.2rem;
}

/* About content */
.about-content {
    background: var(-);
    padding: 3rem 0;
}
.about-content h2 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.about-content p {
    max-width: 800px;
    margin: 0 auto 1rem auto;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--grey-dark);
    text-align: center;
}

/* Testimonials section */
.testimonials {
    padding: 3rem 0;
    background: white;
    text-align: center;
}
.testimonials h2 {
    color: var(--primary-dark);
    margin-bottom: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.testimonial {
    display: none;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1rem;
    color: var(--grey-dark);
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.testimonial.active {
    display: block;
}
.testimonial h4 {
    margin-top: 1rem;
    font-weight: bold;
    color: var(--primary);
}

/* Dots navigation */
.testimonial-dots {
    margin-top: 1rem;
}
.testimonial-dots .dot {
    height: 12px;
    width: 12px;
    background-color: var(--grey-dark);
    border-radius: 50%;
    display: inline-block;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.testimonial-dots .dot.active {
    background-color: var(--primary);
}
.testimonial-dots .dot:hover {
    background-color: var(--primary-light);
}

/* Image enhancements */
img.enhanced-img {
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    border: 1px solid var(--border);
}
img.enhanced-img:hover {
    transform: scale(1.03);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-hero h1 {
        font-size: 2rem;
    }
    .about-hero p {
        font-size: 1rem;
    }
    .about-content p {
        padding: 0 1rem;
    }
}
.profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}

.profile-img:hover {
    transform: scale(1.05);
}

.upload-btn {
    cursor: pointer;
}
/* Auth Container */
.auth-container {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--text-light) 0%, var(--grey-light) 100%);
    padding: 2rem 0;
}

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    margin-bottom: 2rem;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--primary-dark);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
}

/* Auth Content */
.auth-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.auth-title {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title h1 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.auth-title p {
    color: var(--grey-dark);
    font-size: 1.125rem;
}

/* User Type Selector */
.user-type-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    background-color: var(--grey-light);
    border-radius: 8px;
    padding: 4px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--border);
}

.user-type-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    background: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--grey-dark);
    font-weight: 500;
}

.user-type-btn.active {
    background-color: var(--card-bg);
    color: var(--primary);
    box-shadow: var(--shadow);
}

.user-type-btn:hover:not(.active) {
    color: var(--primary-dark);
}

/* Auth Form */
.auth-form {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 2rem;
    border: 1px solid var(--border);
}

.form-title {
    text-align: center;
    margin-bottom: 2rem;
}

.form-title h2 {
    font-size: 1.75rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.form-title p {
    color: var(--grey-dark);
}

/* Section Divider */
.section-divider {
    border-top: 2px solid var(--border);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.section-divider h3 {
    color: var(--primary-dark);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Password Input */
.password-input {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--grey-dark);
    cursor: pointer;
    padding: 4px;
}

.password-toggle:hover {
    color: var(--primary);
}

/* Form Options */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-group label {
    margin: 0;
    font-weight: normal;
    color: var(--grey-dark);
    font-size: 0.875rem;
}

/* Loading State */
.btn-loading {
    display: none;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Auth Divider */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--border);
}

.auth-divider span {
    background-color: var(--card-bg);
    color: var(--grey-dark);
    padding: 0 1rem;
    font-size: 0.875rem;
}

/* Social Buttons */
.social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}



/* ===========================
   REGISTER SECTION
   =========================== */
#register {
    background: linear-gradient(
            rgba(255, 255, 255, 0.85),
            rgba(255, 255, 255, 0.85)
        ),
        url("../Pictures/portrait-young-female-doctor-scrubs-protective-face-mask-preparing-anesthesia-machine-before-operation\ \(1\).jpg") center/cover no-repeat;
    padding: 4rem 2rem;
}

#register .register-container {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

#register h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

#register p {
    font-size: 1rem;
    color: var(--grey-dark);
    margin-bottom: 2rem;
    line-height: 1.6;
}

#register form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#register input,
#register select {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--card-bg);
}

#register input:focus,
#register select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

#register button {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

#register button:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.3);
}

#register button:active {
    transform: scale(0.98);
}

/* Responsive */
@media (max-width: 768px) {
    #register .register-container {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
}

/* ===========================
   POLICY POPUP STYLES
   =========================== */
.policy-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.policy-popup {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.policy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
}

.policy-header h2 {
    margin: 0;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.policy-content {
    padding: 1.5rem;
}

.policy-content h4 {
    color: var(--primary);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.policy-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #eee;
    text-align: center;
}

/* Image Styles for GhanaHealth+ */

/* Hero Background Images */
.hero-bg-1 { background-image: url('../Pictures/nurse-measuring-patient-blood-pressure.jpg'); }
.hero-bg-2 { background-image: url('../Pictures/blur-hospital.jpg'); }
.hero-bg-3 { background-image: url('../Pictures/retired-woman-patient-with-protection-face-mask-signing-medical-documents-medical-appointment-hospital-office-therapist-nurse-explaining-sickness-diagnosis-discussing-medication-treatment.jpg'); }

/* Service Card Images */
.service-img-1 { background-image: url('../Pictures/front-view-doctor-wearing-white-coat.jpg'); }
.service-img-2 { background-image: url('../Pictures/cheerful-ethnic-doctor-with-arms-crossed.jpg'); }
.service-img-3 { background-image: url('../Pictures/nurse-preparing-their-shift.jpg'); }

/* Doctor Profile Images */
.doctor-img-1 { background-image: url('../Pictures/portrait-african-american-woman-working-as-doctor.jpg'); }
.doctor-img-2 { background-image: url('../Pictures/male-working-as-paediatrician.jpg'); }
.doctor-img-3 { background-image: url('../Pictures/man-working-as-paediatrician.jpg'); }

/* Common Image Styles */
.bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin: 10px 0;
}

/* Responsive Images */
@media (max-width: 768px) {
    .gallery-image {
        height: 150px;
    }
}

/* Medical Image Enhancements */
.service-img, .doctor-photo, .testimonial-photo {
    transition: transform 0.3s ease, filter 0.3s ease;
    border-radius: 8px;
}

.service-img:hover, .doctor-photo:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,123,255,0.8), rgba(40,167,69,0.6));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* CSS file to replace inline styles */

/* Hero section background */
.hero {
    background-image: url('../Pictures/nurse-measuring-patient-blood-pressure.jpg');
}

/* About section image styling */
.about .enhanced-img {
    max-width: 100%;
    margin: 1.5rem 0;
}

/* Footer bottom spacing */
.footer-bottom .separator {
    margin: 0 8px;
}

/* Register page background */
.register-container {
    background-image: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), url('../Pictures/medicine-uniform-healthcare-medical-workers-day-concept.jpg');
    background-size: cover;
    background-attachment: fixed;
}

/* Emergency card background */
.emergency-card {
    background-image: linear-gradient(rgba(220,53,69,0.9), rgba(220,53,69,0.9)), url('../Pictures/african-american-therapist-doctor-listening-patient-lungs-using-stethoscope-discussing-medical-expertise-with-therapist-sick-young-woman-resting-bed-recovering-after-surgery-hospital-ward.jpg');
    background-size: cover;
    color: white;
}