/* css/style.css - Global Design System and Stylesheet for Hiramani Memorial Hospital */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #0d7a87;
    --primary-light: #159dae;
    --primary-dark: #095760;
    --secondary: #10b981;
    --secondary-light: #34d399;
    --accent: #f59e0b;
    --danger: #ef4444;
    --success: #10b981;
    --dark: #0f172a;
    --gray-dark: #1e293b;
    --gray-medium: #64748b;
    --gray-light: #cbd5e1;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html, body {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--gray-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark);
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
    background: var(--gray-light);
    border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gray-medium);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulseEmergency {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-white);
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--bg-white);
}
.btn-secondary:hover {
    background-color: #0d9488;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-danger {
    background-color: var(--danger);
    color: var(--bg-white);
}
.btn-danger:hover {
    background-color: #dc2626;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
}

/* Header & Navigation */
.header-contact-bar {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-white);
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.header-contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.header-contacts {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.contact-item strong {
    color: var(--accent);
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-normal);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.logo span {
    color: var(--secondary);
}

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

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gray-dark);
}

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

/* Hero Carousel */
.hero-carousel {
    position: relative;
    height: 550px;
    overflow: hidden;
    background-color: var(--dark);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity var(--transition-slow);
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 10;
}

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

.carousel-content {
    position: relative;
    z-index: 20;
    max-width: 750px;
    padding: 50px 8%;
    color: var(--bg-white);
    animation: slideInLeft var(--transition-slow) forwards;
}

.carousel-content h1 {
    font-size: 3rem;
    color: var(--bg-white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.carousel-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.carousel-nav {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    display: flex;
    gap: 15px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition-fast);
}

.carousel-dot.active {
    background-color: var(--primary);
    transform: scale(1.2);
}

/* Section Styling */
.section {
    padding: 80px 20px;
}

.section-alt {
    background-color: var(--bg-white);
}

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

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary);
    border-radius: var(--radius-sm);
}

.section-header p {
    color: var(--gray-medium);
    font-size: 1.1rem;
}

/* Emergency Contacts Section */
.emergency-strip {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: var(--bg-white);
    padding: 30px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-top: -50px;
    position: relative;
    z-index: 100;
}

.emergency-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.emergency-card {
    display: flex;
    align-items: center;
    gap: 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding-right: 15px;
}

.emergency-card:last-child {
    border-right: none;
}

.emergency-icon {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emergency-info h3 {
    color: var(--bg-white);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.emergency-info p {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
}

/* Specialties Grid */
.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.specialty-card {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border-top: 4px solid transparent;
}

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

.specialty-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(13, 122, 135, 0.1);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.specialty-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.specialty-card p {
    color: var(--gray-medium);
}

/* Mission Smile Gallery */
.mission-smile-sec {
    background-color: #f1f8f9;
}

.mission-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 220px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: var(--bg-white);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
    padding-bottom: 20px;
    background: linear-gradient(transparent, rgba(13, 122, 135, 0.95));
}

/* Hidden items and animation */
.hidden-gallery-item {
    display: none;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hidden-gallery-item.show-item {
    display: block;
    animation: fadeInUp 0.5s ease forwards;
}

.gallery-actions {
    text-align: center;
    margin-top: 40px;
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 15000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 30px;
    color: var(--bg-white);
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 15002;
    transition: color var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--danger);
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    color: var(--bg-white);
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15002;
    transition: all var(--transition-normal);
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.08);
}

.lightbox-prev {
    left: 35px;
}

.lightbox-next {
    right: 35px;
}

.lightbox-content-wrapper {
    max-width: 80%;
    max-height: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 15001;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox-modal.active .lightbox-content-wrapper {
    transform: scale(1);
}

.lightbox-content-wrapper img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    border: 3px solid rgba(255, 255, 255, 0.15);
}

.lightbox-caption {
    color: var(--bg-white);
    margin-top: 15px;
    font-size: 1.15rem;
    font-weight: 600;
    text-align: center;
    font-family: var(--font-heading);
    background: rgba(13, 122, 135, 0.85);
    padding: 8px 24px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .lightbox-prev, .lightbox-next {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    .lightbox-prev {
        left: 15px;
    }
    .lightbox-next {
        right: 15px;
    }
    .lightbox-content-wrapper {
        max-width: 90%;
    }
    .lightbox-close {
        top: 20px;
        right: 25px;
        font-size: 2.2rem;
    }
}

/* Careers Section Forms */
.career-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 50px;
    align-items: center;
}

.career-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.career-info ul {
    list-style: none;
    margin: 20px 0;
}

.career-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-weight: 500;
}

.career-info li i {
    color: var(--secondary);
}

.career-form-card {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 122, 135, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Footer styling */
footer {
    background-color: var(--dark);
    color: #94a3b8;
    padding: 60px 20px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--bg-white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid #334155;
    text-align: center;
    font-size: 0.85rem;
}

/* Authentication Page Styles */
.auth-wrapper {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    background-color: var(--bg-white);
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 40px;
    animation: fadeIn 0.4s ease;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--gray-medium);
}

.auth-alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.auth-alert-danger {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

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

.gender-select {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.gender-option {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* Dashboard Layout */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: linear-gradient(180deg, var(--dark) 0%, var(--gray-dark) 100%);
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    transition: var(--transition-normal);
}

.sidebar-brand {
    padding: 24px;
    border-bottom: 1px solid #334155;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
    flex-grow: 1;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.sidebar-menu li a:hover, .sidebar-menu li a.active {
    color: var(--bg-white);
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--primary);
}

.sidebar-menu li a.active {
    background-color: rgba(255, 255, 255, 0.08);
}

.sidebar-footer {
    padding: 20px 24px;
    border-top: 1px solid #334155;
}

.main-content {
    flex-grow: 1;
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.dashboard-header {
    background-color: var(--bg-white);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.user-profile-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(13, 122, 135, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.dashboard-body {
    padding: 40px;
    flex-grow: 1;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-info {
    min-width: 0;
}

.stat-info h3 {
    font-size: 0.9rem;
    color: var(--gray-medium);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-info p {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    word-break: break-word;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.primary {
    background-color: rgba(13, 122, 135, 0.1);
    color: var(--primary);
}

.stat-icon.accent {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--accent);
}

/* Table Card */
.table-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 30px;
    margin-bottom: 30px;
}

.table-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.custom-table th {
    padding: 14px 16px;
    border-bottom: 2px solid var(--bg-light);
    color: var(--gray-medium);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.custom-table td {
    padding: 16px;
    border-bottom: 1px solid var(--bg-light);
    font-size: 0.95rem;
}

.custom-table tbody tr:hover {
    background-color: #f8fafc;
}

/* Status Badges */
.badge {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.badge-pending {
    background-color: #fef3c7;
    color: #d97706;
}

.badge-active {
    background-color: #dbeafe;
    color: #2563eb;
}

.badge-completed {
    background-color: #d1fae5;
    color: #059669;
}

/* Video Consultation Layout */
.consult-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 30px;
    height: calc(100vh - 200px);
    min-height: 500px;
}

.video-container {
    background-color: #020617;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
}

.video-screen {
    flex-grow: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remote-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #0f172a;
}

.local-video-pip {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 160px;
    height: 120px;
    background-color: #1e293b;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.local-video-pip video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: #64748b;
    text-align: center;
}

.video-placeholder i {
    font-size: 4rem;
}

.video-controls {
    background-color: #0f172a;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #334155;
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
}

.control-btn:hover {
    background-color: #475569;
}

.control-btn.danger {
    background-color: var(--danger);
}

.control-btn.danger:hover {
    background-color: #dc2626;
}

/* Side prescription panel */
.prescription-panel {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 25px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.prescription-panel h3 {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--bg-light);
    padding-bottom: 10px;
}

/* Responsive Styles & Grid Utilities */
.dashboard-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 30px;
    align-items: start;
}

.dashboard-grid > * {
    min-width: 0;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.6rem;
    color: var(--primary);
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1010;
    line-height: 1;
}

.sidebar-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
    padding: 5px;
}

.sidebar-close {
    display: none;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
}
.sidebar-close:hover {
    color: var(--bg-white);
}

@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .consult-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    .video-container {
        height: 450px;
    }
    .sidebar {
        width: 80px;
    }
    .sidebar .brand-text {
        display: none;
    }
    .sidebar .sidebar-menu span, .sidebar .sidebar-footer span {
        display: none;
    }
    .sidebar-menu li a {
        justify-content: center;
        padding: 14px;
    }
}

@media (max-width: 768px) {
    .header-contact-bar {
        font-size: 0.75rem;
        padding: 10px 5px;
    }
    .header-contact-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .header-contacts {
        justify-content: center;
        gap: 8px;
        width: 100%;
    }
    .contact-item {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .nav-toggle {
        display: block;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
        gap: 15px;
        z-index: 999;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    .nav-links .btn {
        width: 100%;
    }
    .carousel-content h1 {
        font-size: 2.2rem;
    }
    .emergency-container {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    .emergency-card {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-bottom: 15px;
        padding-right: 0;
    }
    .specialties-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    .mission-gallery {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    .career-split {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    .footer-container {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    
    /* Mobile Sidebar overlay drawer */
    .sidebar-toggle {
        display: block;
    }
    .sidebar-close {
        display: block;
    }
    .sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        height: 100vh;
        z-index: 1001;
        width: 260px;
        box-shadow: var(--shadow-xl);
        transition: left var(--transition-normal);
    }
    .sidebar.active {
        left: 0;
    }
    .sidebar .brand-text {
        display: inline;
    }
    .sidebar .sidebar-menu span, .sidebar .sidebar-footer span {
        display: inline;
    }
    .sidebar-menu li a {
        justify-content: flex-start;
        padding: 14px 24px;
    }
    .sidebar-brand {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 24px 15px;
    }
    
    .dashboard-header {
        padding: 20px;
        justify-content: flex-start;
        gap: 15px;
    }
    .dashboard-body {
        padding: 20px;
    }
    
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .table-card {
        padding: 15px;
    }
    .career-form-card {
        padding: 20px;
    }
    .stat-card {
        padding: 15px;
    }
    .dashboard-body {
        padding: 15px;
    }
}

/* Video Hero Section */
.hero-video-section {
    position: relative;
    height: 650px;
    background-image: url('https://images.unsplash.com/photo-1586773860418-d3b3da96a3ef?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.45);
    z-index: 2;
}

.hero-video-content {
    position: relative;
    z-index: 3;
    text-align: center;
    width: 100%;
    max-width: 700px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
}

.hero-title {
    color: white;
    font-size: 2.2rem;
    font-family: var(--font-heading);
    text-shadow: 0 4px 15px rgba(0,0,0,0.6);
    text-align: center;
    line-height: 1.2;
    font-weight: 500;
}

.hero-subtitle {
    color: white;
    font-size: 1.25rem;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
    text-align: center;
    max-width: 850px;
    line-height: 1.6;
}

.hero-search-container {
    position: relative;
    width: 100%;
    max-width: 550px;
}

.hero-search-input {
    width: 100%;
    padding: 16px 55px 16px 24px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.hero-search-input::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.hero-search-input:focus {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.hero-search-container .search-icon {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.2rem;
    cursor: pointer;
}

.hero-appointment-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #00A5FF;
    color: white;
    padding: 15px 38px;
    border-radius: 50px;
    font-size: 1.15rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 165, 255, 0.45);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.hero-appointment-btn:hover {
    background-color: #008be0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 165, 255, 0.65);
    color: white;
}

.hero-appointment-btn .arrow {
    font-size: 1.3rem;
    transition: transform 0.2s ease;
    line-height: 1;
}

.hero-appointment-btn:hover .arrow {
    transform: translateX(5px);
}

/* Landing Page Transparent Navbar */
.navbar-home {
    position: fixed;
    top: 40px;
    left: 0;
    width: 100%;
    background-color: transparent;
    box-shadow: none;
    transition: all 0.3s ease;
}

.navbar-home.scrolled {
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.navbar-home .logo {
    color: white;
}
.navbar-home.scrolled .logo {
    color: var(--primary);
}

.navbar-home .nav-links a {
    color: rgba(255, 255, 255, 0.9);
}
.navbar-home.scrolled .nav-links a {
    color: var(--gray-dark);
}

.navbar-home .nav-toggle {
    color: white;
}
.navbar-home.scrolled .nav-toggle {
    color: var(--primary);
}

.navbar-home .nav-links a:hover, 
.navbar-home .nav-links a.active {
    color: #00A5FF;
}
.navbar-home.scrolled .nav-links a:hover, 
.navbar-home.scrolled .nav-links a.active {
    color: var(--primary);
}

@media (max-width: 768px) {
    .navbar-home {
        position: sticky !important;
        top: 0 !important;
        background-color: var(--bg-white) !important;
        box-shadow: var(--shadow-sm) !important;
    }
    .navbar-home .logo {
        color: var(--primary) !important;
    }
    .navbar-home .nav-toggle {
        color: var(--primary) !important;
    }
    .navbar-home .nav-links a {
        color: var(--gray-dark) !important;
    }
    .hero-video-section {
        height: auto;
        min-height: 500px;
        padding: 60px 20px;
    }
    .hero-video-content {
        gap: 20px !important;
        padding: 10px !important;
    }
    .hero-title {
        font-size: 1.8rem !important;
        font-weight: 500 !important;
    }
    .hero-subtitle {
        font-size: 1.05rem !important;
    }
    .hero-search-input {
        font-size: 1rem;
        padding: 14px 45px 14px 20px;
    }
    .hero-appointment-btn {
        font-size: 1.05rem;
        padding: 13px 30px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem !important;
        font-weight: 500 !important;
    }
    .hero-subtitle {
        font-size: 0.95rem !important;
    }
    .hero-video-section {
        min-height: 420px;
        padding: 40px 15px;
    }
    .logo {
        font-size: 1.1rem !important;
    }
    .logo img {
        height: 30px !important;
        width: 30px !important;
    }
    .dashboard-body {
        padding: 10px;
    }
    .table-card {
        padding: 10px;
    }
    .career-form-card {
        padding: 15px;
    }
    .stat-card {
        padding: 12px;
    }
}

/* Responsive Form Row Grid Utilities */
.form-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-row-grid-pincode {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 15px;
}

@media (max-width: 576px) {
    .form-row-grid,
    .form-row-grid-pincode {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }
    .profile-details {
        display: none;
    }
    .dashboard-header h2 {
        font-size: 1.2rem;
    }
    .dashboard-header {
        padding: 15px 10px;
        gap: 10px;
    }
}

/* Doctors Grid & Cards Showcase */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.doctor-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(13, 122, 135, 0.15);
}

.doctor-image-wrapper {
    width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
    background-color: #f1f5f9;
}

.doctor-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: transform var(--transition-normal);
}

.doctor-card:hover .doctor-image-wrapper img {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .doctors-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        margin-top: 25px;
    }
}

@media (max-width: 576px) {
    .doctors-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin-top: 20px;
    }
}

/* Homepage Content Additions (Education, Social Programs & Success Stories) */

/* Education Section */
.edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.edu-info-card {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border-left: 5px solid var(--primary);
    display: flex;
    flex-direction: column;
}

.edu-info-card h3 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.edu-info-card p {
    color: var(--gray-medium);
    margin-bottom: 25px;
    line-height: 1.75;
}

.edu-facilities-card {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border-left: 5px solid var(--secondary);
}

.edu-facilities-card h3 {
    font-size: 1.6rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.facilities-list {
    list-style: none;
    padding: 0;
}

.facilities-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.98rem;
    color: var(--gray-dark);
}

.facilities-list li i {
    color: var(--secondary);
    font-size: 1.1rem;
    margin-top: 4px;
}

/* Success Stories Section */
.success-stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.success-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border-top: 4px solid var(--primary-light);
    display: flex;
    flex-direction: column;
    padding: 35px 30px;
}

.success-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--secondary);
}

.success-icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.success-card.cleft-card .success-icon-wrapper {
    background-color: rgba(13, 122, 135, 0.1);
    color: var(--primary);
}

.success-card.tech-card .success-icon-wrapper {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--accent);
}

.success-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--dark);
}

.success-card p {
    color: var(--gray-medium);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

