/**
 * ============================================
 * CLINIC FRONTEND - PUBLIC PAGES STYLES
 * ============================================
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #10b981;
    --accent: #8b5cf6;
    --dark: #1f2937;
    --gray: #6b7280;
    --light: #f3f4f6;
    --white: #ffffff;
    --border: #e5e7eb;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
}

/* ============================================
   RESET
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background: var(--white);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Language Switcher */
.lang-switcher {
    margin-left: 1rem;
}

.lang-select {
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary);
    border-radius: 8px;
    background: white;
    color: var(--dark);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-select:hover {
    background: var(--primary);
    color: white;
}

.lang-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

/* Mobile Language Switcher */
@media (max-width: 768px) {
    .lang-switcher {
        margin: 1rem 0;
    }

    .lang-select {
        width: 100%;
    }
}

/* ============================================
   TOP NAVBAR
   ============================================ */
.top-navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.nav-inner {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-logo i { font-size: 1.6rem; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-links a {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    color: var(--dark);
    transition: all 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--primary);
    color: var(--white);
}

.nav-links .btn-login-nav {
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
}

.nav-links .btn-login-nav:hover {
    background: var(--primary-dark);
}

/* Mobile menu */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

/* ============================================
   HERO SLIDESHOW
   ============================================ */
.hero-slideshow {
    position: relative;
    width: 100%;
    height: 550px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
}

.slide.active { opacity: 1; }

.slide-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
}

.slide-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 600px;
    padding: 0 40px;
}

.slide-content h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.slide-content p {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.slide-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--primary);
    color: var(--white);
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.slide-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Slide navigation dots */
.slide-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.slide-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.slide-dot.active {
    background: var(--white);
    transform: scale(1.2);
}

/* Slide arrows */
.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 50px; height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-arrow:hover { background: rgba(255,255,255,0.4); }
.slide-arrow.prev { left: 20px; }
.slide-arrow.next { right: 20px; }

/* ============================================
   SECTION STYLES
   ============================================ */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--light);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--gray);
    font-size: 1.05rem;
}

.section-title .title-line {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ============================================
   CATEGORIES GRID
   ============================================ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid var(--border);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.category-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: var(--white);
}

.category-icon.bg-blue { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.category-icon.bg-green { background: linear-gradient(135deg, #059669, #10b981); }
.category-icon.bg-purple { background: linear-gradient(135deg, #7c3aed, #8b5cf6); }
.category-icon.bg-red { background: linear-gradient(135deg, #dc2626, #ef4444); }
.category-icon.bg-orange { background: linear-gradient(135deg, #d97706, #f59e0b); }
.category-icon.bg-teal { background: linear-gradient(135deg, #0d9488, #14b8a6); }
.category-icon.bg-pink { background: linear-gradient(135deg, #db2777, #ec4899); }
.category-icon.bg-indigo { background: linear-gradient(135deg, #4338ca, #6366f1); }

.category-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.category-card p {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Category card with image */
.category-card-img {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid var(--border);
}

.category-card-img:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.category-card-img .cat-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.category-card-img .cat-info {
    padding: 1.2rem;
    text-align: center;
}

/* ============================================
   DOCTORS GRID
   ============================================ */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.doctor-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid var(--border);
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.doctor-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: linear-gradient(135deg, #dbeafe, #ede9fe);
    display: flex;
    align-items: center;
    justify-content: center;
}

.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-image .doctor-placeholder {
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.5;
}

.doctor-info {
    padding: 1.5rem;
}

.doctor-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: var(--dark);
}

.doctor-specialty {
    display: inline-block;
    background: #dbeafe;
    color: var(--primary);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.doctor-info p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.doctor-info .doctor-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.doctor-info .doctor-contact i {
    width: 16px;
    color: var(--primary);
}

.doctor-actions {
    padding: 0 1.5rem 1.5rem;
}

.btn-book {
    display: block;
    width: 100%;
    padding: 0.7rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
}

.btn-book:hover {
    background: var(--primary-dark);
}

/* ============================================
   APPOINTMENT FORM SECTION
   ============================================ */
.appointment-section {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%);
    color: var(--white);
    padding: 5rem 0;
}

.appointment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.appointment-info h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.appointment-info p {
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.appointment-features {
    list-style: none;
}

.appointment-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.appointment-features li i {
    width: 30px; height: 30px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.appointment-form-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
}

.appointment-form-card h3 {
    color: var(--dark);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    color: var(--dark);
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 0.7rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
    color: var(--dark);
    background: var(--white);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.btn-submit {
    width: 100%;
    padding: 0.85rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ============================================
   WHY CHOOSE US / STATS
   ============================================ */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-item .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-item .stat-label {
    color: var(--gray);
    font-size: 1rem;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
}

.feature-card .feature-icon {
    width: 70px; height: 70px;
    border-radius: 16px;
    background: #dbeafe;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.8rem;
    color: var(--primary);
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature-card p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.8);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-col p,
.footer-col li {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    list-style: none;
}

.footer-col a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s;
}

.footer-col a:hover { color: var(--white); }

.footer-col .footer-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.7rem;
}

.footer-col .footer-contact i {
    color: var(--primary);
    width: 16px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ============================================
   LOGIN PAGE STYLES (standalone)
   ============================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    padding: 2rem;
}

.login-box {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-xl);
}

.login-box .login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-box .login-header i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.login-box .login-header h1 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 0.3rem;
}

.login-box .login-header p {
    color: var(--gray);
    font-size: 0.9rem;
}

.login-box .form-group label {
    font-weight: 600;
}

.login-box .btn-submit {
    margin-top: 0.5rem;
}

.login-box .login-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.login-box .login-footer a {
    color: var(--primary);
    font-weight: 500;
}

.login-creds {
    background: #f0f9ff;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--gray);
    border: 1px solid #bfdbfe;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        border-top: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-links.open { display: flex; }
    
    .hero-slideshow { height: 400px; }
    
    .slide-content h1 { font-size: 1.8rem; }
    .slide-content p { font-size: 1rem; }
    
    .appointment-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    
    .section { padding: 3rem 0; }
    .section-title h2 { font-size: 1.6rem; }
    
    .slide-arrow { display: none; }
}

@media (max-width: 480px) {
    .hero-slideshow { height: 350px; }
    .slide-content { padding: 0 20px; }
    .slide-content h1 { font-size: 1.5rem; }
    .stats-row { grid-template-columns: 1fr 1fr; gap: 1rem; }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   DOCTOR CARD ENHANCEMENTS
   ============================================ */
.doctor-rating-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 0.5rem;
}

.doctor-rating-stars span {
    margin-left: 6px;
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 500;
}

.doctor-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
}

.doctor-image {
    position: relative;
}

.btn-view-profile {
    display: block;
    width: 100%;
    padding: 0.6rem;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
    margin-bottom: 0.5rem;
}

.btn-view-profile:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    position: relative;
    transition: all 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.testimonial-card::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.15;
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.testimonial-author-info strong {
    display: block;
    font-size: 0.95rem;
    color: var(--dark);
}

.testimonial-author-info span {
    font-size: 0.8rem;
    color: var(--gray);
}

.testimonial-stars {
    margin-bottom: 1rem;
}

.testimonial-stars i {
    color: #fbbf24;
    font-size: 0.9rem;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, transparent 50%);
    animation: pulse-bg 8s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: white;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
}

.cta-btn:hover {
    background: var(--primary-dark, #1e40af);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}

/* ============================================
   DOCTOR PROFILE PAGE
   ============================================ */
.profile-page {
    background: #f8fafc;
}

.profile-hero {
    position: relative;
    padding: 4rem 0 3rem;
    overflow: hidden;
}

.profile-hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 280px;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 40%, #7c3aed 100%);
    z-index: 0;
}

.profile-hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(to top, #f8fafc, transparent);
}

.profile-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    gap: 2.5rem;
    padding-top: 2rem;
}

.profile-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar-img {
    width: 180px;
    height: 180px;
    border-radius: 20px;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.profile-avatar-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 20px;
    background: linear-gradient(135deg, #dbeafe, #ede9fe);
    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.6;
}

.profile-status-badge {
    position: absolute;
    bottom: 10px;
    right: -10px;
    background: #10b981;
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.profile-hero-info h1 {
    font-size: 2.2rem;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.profile-specialty-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.profile-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 1rem;
}

.profile-rating span {
    margin-left: 8px;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.profile-hero-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.profile-mini-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
}

.profile-mini-stat i {
    color: #fbbf24;
}

.profile-book-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 2rem;
    background: white;
    color: var(--primary);
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.profile-book-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    background: var(--primary);
    color: white;
}

/* Profile Content Grid */
.profile-content {
    padding: 2rem 0 4rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
}

/* Profile Cards */
.profile-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.profile-card-header {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 1.05rem;
    color: #1f2937;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-card-header i {
    color: var(--primary);
}

.profile-card-body {
    padding: 1.5rem;
}

.profile-bio {
    color: #4b5563;
    line-height: 1.8;
    font-size: 0.95rem;
}

.profile-empty {
    text-align: center;
    padding: 2rem;
    color: #9ca3af;
}

.profile-empty i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.4;
}

/* Events List */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.event-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.event-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.event-date-badge {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    color: white;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.event-day {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
}

.event-month {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.85;
}

.event-details h4 {
    font-size: 1rem;
    color: #1f2937;
    margin-bottom: 0.3rem;
}

.event-details p {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: #9ca3af;
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.event-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.event-type-badge.seminar { background: #dbeafe; color: #2563eb; }
.event-type-badge.workshop { background: #fef3c7; color: #d97706; }
.event-type-badge.consultation { background: #d1fae5; color: #059669; }
.event-type-badge.holiday { background: #fce7f3; color: #db2777; }
.event-type-badge.other { background: #f3f4f6; color: #6b7280; }

/* Reviews */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.review-item {
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.75rem;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.review-stars {
    display: flex;
    gap: 2px;
}

.review-stars i {
    font-size: 0.75rem;
}

.review-date {
    margin-left: auto;
    font-size: 0.8rem;
    color: #9ca3af;
}

.review-text {
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Review Form */
.review-form-wrap {
    border-top: 1px solid #e5e7eb;
    padding-top: 1.5rem;
    margin-top: 1rem;
}

.review-form-wrap h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    gap: 4px;
    margin-bottom: 0.5rem;
}

.star-rating-input input {
    display: none;
}

.star-rating-input label {
    cursor: pointer;
    font-size: 1.5rem;
    color: #d1d5db;
    transition: color 0.2s;
}

.star-rating-input input:checked ~ label,
.star-rating-input label:hover,
.star-rating-input label:hover ~ label {
    color: #fbbf24;
}

/* Contact List in Sidebar */
.profile-contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.profile-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.profile-contact-item i {
    width: 36px;
    height: 36px;
    background: #eef2ff;
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.profile-contact-item small {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profile-contact-item span {
    font-size: 0.9rem;
    color: #1f2937;
    font-weight: 500;
}

/* Availability */
.availability-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.availability-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.avail-day {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.9rem;
}

.avail-time {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
}

/* Profile CTA Card */
.profile-card-cta {
    background: linear-gradient(135deg, #eef2ff, #faf5ff);
    border: 2px solid #c7d2fe;
}

/* Profile Responsive */
@media (max-width: 992px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .profile-hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-hero-info h1 {
        font-size: 1.6rem;
    }

    .profile-hero-stats {
        justify-content: center;
    }

    .profile-avatar-img,
    .profile-avatar-placeholder {
        width: 140px;
        height: 140px;
    }

    .event-item {
        flex-direction: column;
    }
}

/* ============================================
   FORM INPUTS (Public Pages)
   ============================================ */
.form-input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: var(--white);
    color: var(--dark);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    color: var(--dark);
    font-size: 0.9rem;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.7rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

/* Alert Messages (Public Pages) */
.alert {
    padding: 0.85rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

/* ============================================
   SOCIAL MEDIA LINKS (Profile Page)
   ============================================ */
.profile-social-links {
    display: flex;
    gap: 10px;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.social-facebook  { background: #1877f2; }
.social-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-twitter   { background: #1da1f2; }
.social-linkedin  { background: #0a66c2; }
.social-whatsapp  { background: #25d366; }

/* ============================================
   FILE UPLOAD AREA (Public Pages)
   ============================================ */
.file-upload-area {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--light);
}

.file-upload-area:hover {
    border-color: var(--primary);
    background: #eef2ff;
}

.file-upload-area i.fa-cloud-upload-alt {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.file-upload-area p {
    color: var(--dark);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.file-upload-area small {
    color: var(--gray);
    font-size: 0.8rem;
}

/* ============================================
   FULL RESPONSIVE FIXES
   ============================================ */

/* Navbar responsive */
@media (max-width: 768px) {
    .frontend-nav .container {
        flex-wrap: wrap;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: white;
        padding: 1rem 0;
        gap: 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li a {
        padding: 0.6rem 1rem;
        display: block;
    }

    .mobile-toggle {
        display: flex !important;
    }

    .lang-switcher {
        margin-left: 0;
        padding: 0.5rem 1rem;
    }
}

/* Hero responsive */
@media (max-width: 600px) {
    .hero-slideshow {
        min-height: 55vh;
    }

    .slide-content h1 {
        font-size: 1.6rem;
    }

    .slide-content p {
        font-size: 0.95rem;
    }
}

/* Doctors grid responsive */
@media (max-width: 900px) {
    .doctors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .doctors-grid {
        grid-template-columns: 1fr;
    }

    .doctor-card {
        max-width: 100%;
    }

    .doctor-actions {
        flex-direction: column;
    }

    .doctor-actions a {
        width: 100%;
        text-align: center;
    }
}

/* Features grid responsive */
@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Stats bar responsive */
@media (max-width: 576px) {
    .stats-bar .container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat-item {
        text-align: center;
    }
}

/* Booking form responsive */
@media (max-width: 576px) {
    .booking-form .form-row {
        flex-direction: column;
    }

    .booking-form .form-row .form-group {
        width: 100%;
    }
}

/* Testimonials responsive */
@media (max-width: 576px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* Profile page responsive */
@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-hero-content {
        flex-direction: column;
        text-align: center;
    }

    .profile-hero-stats {
        justify-content: center;
    }

    .profile-book-btn {
        margin: 0 auto;
    }
}

/* Footer responsive */
@media (max-width: 576px) {
    .site-footer .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* CTA responsive */
@media (max-width: 576px) {
    .cta-section h2 {
        font-size: 1.5rem;
    }

    .cta-section p {
        font-size: 0.95rem;
    }
}
