/* Dr. Benny Medical Website Custom Styles */
/* Medical Color Scheme */

:root {
    --primary-color: #1e40af; /* Deep medical blue */
    --accent-color: #0d9488; /* Soft teal */
    --success-color: #059669; /* Green for confirmations */
    --error-color: #dc2626; /* Red for errors */
    --background-color: #ffffff; /* Clean white */
    --light-bg: #f8fafc; /* Light grey */
    --text-primary: #374151; /* Dark grey for readability */
    --text-secondary: #6b7280; /* Soft grey for secondary text */
    --border-color: #d1d5db; /* Light border color */
    --dark-bg: #1f2937; /* Dark background */
    --text-light: #ffffff; /* White text */
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
}

.main-content {
    min-height: calc(100vh - 76px - 300px); /* Viewport height minus navbar and footer */
    margin-top: 120px; /* Account for contact banner (40px) + navbar (80px) */
}

/* Adjust main content margin for mobile */
@media (max-width: 768px) {
    .main-content {
        margin-top: 140px; /* Increased margin for mobile to account for taller navigation */
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-primary);
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-success {
    background-color: var(--accent-color) !important;
    margin-bottom: 0 !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

/* Contact Banner */
.contact-banner {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 8px 0;
    font-size: 14px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
}

.contact-banner .contact-info {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-direction: row;
}

.contact-banner .contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.contact-banner .contact-item:hover {
    opacity: 0.8;
}

.contact-banner .contact-item i {
    font-size: 16px;
    opacity: 0.9;
    width: 16px;
    text-align: center;
}

.professional-info {
    font-weight: 600;
    letter-spacing: 0.5px;
    color: white;
    opacity: 0.95;
}

/* Professional Navigation Styles */
.utility-nav {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 0.5rem 0;
}

.utility-nav .nav-link {
    color: #6c757d !important;
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    transition: color 0.2s ease;
}

.utility-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Main Navigation */
.main-nav {
    background: white;
    box-shadow: var(--shadow);
    padding: 15px 0;
    position: fixed;
    top: 40px; /* Height of contact banner */
    left: 0;
    right: 0;
    z-index: 1030;
    transition: all 0.3s ease;
}

/* Ensure navbar never hides on scroll */
.main-nav.navbar {
    transform: none !important;
    transition: none !important;
}

.main-nav.navbar-scrolled {
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.main-nav .navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.main-nav .nav-link {
    color: #495057 !important;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    transition: color 0.2s ease;
    border-radius: 4px;
    margin: 0 0.15rem;
}

.main-nav .navbar-nav {
    margin-right: 1rem !important;
}

.main-nav .navbar-nav.me-auto {
    margin-right: 0.5rem !important;
}

.main-nav .navbar-nav.me-3 {
    margin-right: 1rem !important;
}

.main-nav .navbar-nav:last-child {
    margin-left: 0;
}

.main-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background-color: #f8f9fa;
}

.main-nav .nav-link.active {
    color: var(--primary-color) !important;
    background-color: #e3f2fd;
    font-weight: 600;
}

.main-nav .appointment-btn {
    margin-left: 0.25rem;
}

.appointment-btn {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    margin-left: 0.5rem;
}

.appointment-btn:hover {
    background-color: #1e3a8a;
    border-color: #1e3a8a;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
}

.alert-bar {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
    margin: 0;
    border-radius: 0;
    border-top: none;
    border-bottom: 1px solid #ffeaa7;
}

.alert-bar .alert-link {
    color: #533f03;
    text-decoration: underline;
}

.alert-bar .btn-close {
    padding: 0.5rem;
}

/* Hero Section - Baptist Health Style */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-background {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.9) 0%, rgba(59, 130, 246, 0.8) 50%, rgba(96, 165, 250, 0.7) 100%), url('../images/dr-benny-hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 80px 0;
    position: relative;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

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

.hero-text-overlay {
    padding: 2rem 0;
}

.welcome-line {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.welcome-text {
    font-size: 1.125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    margin-right: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.welcome-accent {
    width: 4px;
    height: 30px;
    background: #10b981;
    border-radius: 2px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Hero Image Styling - Baptist Health Style */
.hero-image-container {
    position: relative;
    display: inline-block;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-image-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.hero-image-placeholder {
    max-width: 500px;
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 3rem;
    position: relative;
}

.hero-image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.placeholder-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.placeholder-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 2;
}

.placeholder-text {
    font-size: 1.125rem;
    opacity: 0.9;
    margin: 0;
    position: relative;
    z-index: 2;
}

.hero-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(30, 64, 175, 0.8));
    padding: 30px 20px 20px;
    color: white;
    text-align: center;
}

.overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.overlay-icon {
    font-size: 2rem;
    color: white;
    margin-bottom: 5px;
}

.overlay-text {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

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

.card-header {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    font-weight: 600;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #1e3a8a;
    border-color: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

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

/* Service Cards */
.service-card {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: var(--text-light);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

/* Testimonials */
.testimonial-card {
    background: var(--text-light);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 0 10px 10px 0;
    margin-bottom: 1.5rem;
}

.testimonial-rating {
    color: #ffc107;
    margin-bottom: 1rem;
}

/* Horizontal Scrolling Testimonials */
.testimonials-scroll-container {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.testimonials-scroll-wrapper {
    display: flex;
    gap: 30px;
    animation: scrollTestimonials 60s linear infinite;
    width: max-content;
}

.testimonials-scroll-wrapper:hover {
    animation-play-state: paused;
}

.testimonial-item {
    min-width: 350px;
    max-width: 350px;
    flex-shrink: 0;
}

.testimonial-item .testimonial-card {
    height: 100%;
    margin-bottom: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

@keyframes scrollTestimonials {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive adjustments for testimonials */
@media (max-width: 768px) {
    .testimonial-item {
        min-width: 300px;
        max-width: 300px;
    }
    
    .testimonials-scroll-wrapper {
        gap: 20px;
    }
}

/* Blog Cards */
.blog-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.blog-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Video Cards */
.video-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* Ensure video cards are always visible */
.video-section {
    position: relative;
    z-index: 1;
}

.video-item {
    position: relative;
    z-index: 1;
}

/* Modal z-index to ensure it's above video cards */
.modal {
    z-index: 1050;
}

.modal-backdrop {
    z-index: 1040;
}

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

.video-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #f8f9fa;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(30, 64, 175, 0.9);
    color: var(--text-light);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 2;
}

.video-card:hover .play-button {
    background: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
}

.video-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    color: var(--text-primary);
}

.video-card .card-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    flex: 1;
    line-height: 1.5;
}

.video-card .badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
}

.video-card small {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 2px solid var(--border-color);
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 64, 175, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Appointment Form */
.appointment-form {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Contact Information */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.contact-item i {
    font-size: 1rem;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.contact-item span,
.contact-item a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
    word-wrap: break-word;
}

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

/* Office Hours */
.office-hours {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hour-item {
    color: #d1d5db;
    line-height: 1.4;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hour-item:last-child {
    border-bottom: none;
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border-top: 3px solid var(--primary-color);
    margin-top: 0 !important;
}

.footer-section {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.footer-section h5 {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-section h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
}

.footer-section p {
    line-height: 1.6;
    color: #d1d5db;
    flex-grow: 1;
}

/* Social Media Links */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-link:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-link {
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-link:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-link i {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Contact Information */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.contact-item i {
    margin-top: 2px;
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.contact-item span,
.contact-item a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Office Hours */
.office-hours {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hour-item {
    color: #d1d5db;
    line-height: 1.4;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hour-item:last-child {
    border-bottom: none;
}

/* Footer Bottom */
.footer-bottom-links {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

.footer-bottom-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-bottom-links a:hover {
    color: var(--accent-color);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-section {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .footer-section h5::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
        margin-top: 1rem;
    }
    
    footer .contact-item {
        justify-content: center;
        text-align: left;
    }
    
    footer .contact-item i {
        margin-top: 0;
    }
    
    .footer-bottom-links {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .office-hours {
        align-items: center;
    }
}

/* Doctor Profile */
.doctor-profile {
    background: var(--text-light);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.doctor-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
}

/* Statistics */
.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--text-light);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

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

.stat-label {
    font-weight: 600;
    color: var(--text-dark);
}

/* Alert Messages */
.alert {
    border-radius: 10px;
    border: none;
    padding: 1rem 1.5rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Loading Spinner */
.spinner-border {
    color: var(--primary-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #1e3a8a;
    color: var(--text-light);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-banner {
        padding: 10px 0;
        font-size: 13px;
    }
    
    .contact-banner .contact-info {
        gap: 20px;
        justify-content: center;
        margin-bottom: 8px;
        flex-direction: row;
    }
    
    .contact-banner .contact-item {
        white-space: nowrap;
    }
    
    .professional-info {
        text-align: center !important;
        font-size: 13px;
    }
    
    .utility-nav .navbar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .utility-nav .nav-link {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* Move navigation menu down on mobile */
    .main-nav {
        top: 60px !important; /* Increased from 40px to 60px */
        padding: 12px 0;
    }
    
    .main-nav .navbar-brand {
        font-size: 1.25rem;
    }
    
    .main-nav .nav-link {
        padding: 0.5rem 0.75rem;
        margin: 0 0.125rem;
    }
    
    /* Ensure mobile navigation is properly visible */
    .main-nav .navbar-collapse {
        background: white;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        margin-top: 10px;
        padding: 10px;
    }
    
    .main-nav .navbar-nav {
        margin: 0 !important;
    }
    
    .main-nav .navbar-nav .nav-link {
        padding: 12px 16px;
        border-radius: 6px;
        margin: 2px 0;
    }
    
    .appointment-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        margin: 8px 0;
        width: 100%;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .welcome-text {
        font-size: 1rem;
    }
    
    .hero-image-placeholder {
        max-width: 400px;
        height: 300px;
    }
    
    .placeholder-icon {
        font-size: 4rem;
    }
    
    .placeholder-title {
        font-size: 1.5rem;
    }
    
    .placeholder-text {
        font-size: 1rem;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .appointment-form {
        padding: 1.5rem;
    }
    
    .doctor-image {
        width: 150px;
        height: 150px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .back-to-top {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
    
    .main-content {
        min-height: auto;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000ff;
        --accent-color: #008080;
        --text-primary: #000000;
        --text-light: #ffffff;
    }
}

/* Reduced motion support */
/* Health Tools Icons */
.health-tool-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.health-tool-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Health Tool Cards - New Design */
.health-tool-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    background: white;
    overflow: hidden;
}

.health-tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.health-tool-card .card-body {
    padding: 2rem 1.5rem;
}

.tool-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.tool-icon i {
    font-size: 2rem;
    color: white;
}

.health-tool-card:hover .tool-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.health-tool-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.health-tool-card .card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.health-tool-card .btn-outline-primary {
    border-width: 2px;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.health-tool-card .btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
} 

/* Footer Contact Information */
footer .contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

footer .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
    padding: 0;
}

footer .contact-item i {
    font-size: 1rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--accent-color);
    line-height: 1;
}

footer .contact-item span,
footer .contact-item a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
    word-wrap: break-word;
    line-height: 1.4;
    flex: 1;
}

footer .contact-item a:hover {
    color: var(--accent-color);
} 

/* Value Cards for About Page */
.value-card {
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

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

.value-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.value-card:hover .value-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.value-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    text-align: center;
}

.value-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    text-align: center;
    margin: 0;
} 

/* Page Hero Section (matching health tools design) */
.page-hero {
    background: var(--primary-color);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.page-hero .hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.page-hero .hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.page-hero .hero-buttons {
    margin-top: 2rem;
}

.page-hero .btn {
    margin: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.page-hero .btn-light {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.page-hero .btn-light:hover {
    background: transparent;
    color: white;
    border-color: white;
}

.page-hero .btn-outline-light {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.page-hero .btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    border-color: white;
} 

.main-nav .navbar-collapse {
    justify-content: flex-end;
}

.main-nav .navbar-nav.ms-auto {
    margin-left: auto !important;
    margin-right: 1rem !important;
}

.main-nav .appointment-btn {
    margin-left: 0.5rem;
    margin-right: 0;
} 

@media (max-width: 991.98px) {
    .main-nav .navbar-collapse {
        justify-content: flex-start;
        margin-top: 1rem;
    }
    
    .main-nav .navbar-nav.ms-auto {
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 1rem;
    }
    
    .main-nav .appointment-btn {
        margin-left: 0;
        margin-bottom: 1rem;
    }
} 

/* Video Grid Layout */
.video-item {
    margin-bottom: 2rem;
}

.video-item .video-card {
    height: 100%;
    min-height: 380px;
}

/* Three-column layout adjustments */
@media (min-width: 992px) {
    .video-item .video-card {
        min-height: 420px;
    }
    
    .video-card .card-title {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .video-card .card-text {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

/* Responsive Video Cards */
@media (max-width: 768px) {
    .video-thumbnail {
        aspect-ratio: 16/9;
    }
    
    .video-card .card-body {
        padding: 1rem;
    }
    
    .video-card .card-title {
        font-size: 1rem;
    }
    
    .video-card .card-text {
        font-size: 0.85rem;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .video-item {
        margin-bottom: 1.5rem;
    }
    
    .video-card .card-body {
        padding: 0.875rem;
    }
    
    .video-card .card-title {
        font-size: 0.95rem;
    }
    
    .video-card .card-text {
        font-size: 0.8rem;
    }
} 

/* Language Switcher */
.nav-item.dropdown .dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 150px;
}

.nav-item.dropdown .dropdown-item {
    padding: 8px 16px;
    color: #333;
    transition: all 0.3s ease;
}

.nav-item.dropdown .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #0d6efd;
}

.nav-item.dropdown .dropdown-item.active {
    background-color: #0d6efd;
    color: white;
}

.nav-item.dropdown .dropdown-item.active:hover {
    background-color: #0b5ed7;
    color: white;
}

.nav-item.dropdown .dropdown-toggle::after {
    margin-left: 5px;
}

/* Language switcher responsive */
@media (max-width: 768px) {
    .nav-item.dropdown .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0;
        box-shadow: none;
        border: 1px solid #dee2e6;
        border-radius: 0;
    }
} 

/* Mobile Navigation Improvements */
@media (max-width: 768px) {
    /* Move navigation menu further down on mobile */
    .main-nav {
        top: 80px !important; /* Increased from 60px to 80px */
        padding: 12px 0;
    }
    
    /* Ensure mobile navigation is properly visible */
    .main-nav .navbar-collapse {
        background: white;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        margin-top: 10px;
        padding: 10px;
    }
    
    .main-nav .navbar-nav {
        margin: 0 !important;
    }
    
    .main-nav .navbar-nav .nav-link {
        padding: 12px 16px;
        border-radius: 6px;
        margin: 2px 0;
    }
    
    .appointment-btn {
        margin: 8px 0;
        width: 100%;
        text-align: center;
    }
    
    /* Ensure logo is visible */
    .main-nav .navbar-brand {
        display: flex !important;
        align-items: center;
        font-size: 1.25rem;
    }
    
    .main-nav .navbar-brand img {
        width: 35px !important;
        height: 35px !important;
        border-radius: 50%;
        object-fit: cover;
        margin-right: 8px;
    }
} 