/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
}

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

/* Header Styles */
.header {
    background: linear-gradient(135deg, #065f46 0%, #047857 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
}

.logo-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.logo-text h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.logo-text span {
    font-size: 0.9rem;
    opacity: 0.9;
}

.slogan {
    font-size: 0.9rem;
    opacity: 0.9;
    font-style: italic;
    margin-left: 66px;
}

.header-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.digital-clock {
    font-size: 1.2rem;
    font-weight: 600;
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    backdrop-filter: blur(10px);
}

.emergency-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.emergency-label {
    font-size: 0.8rem;
    opacity: 0.9;
}

.emergency-number {
    color: #fbbf24;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.emergency-number:hover {
    color: #f59e0b;
}

/* Running Text Styles */
.running-text-container {
    background: #fbbf24;
    color: #1a1a1a;
    padding: 0.8rem 0;
    position: relative;
    overflow: hidden;
}

.running-text {
    white-space: nowrap;
    animation: scroll-left 30s linear infinite;
    padding-right: 100px;
}

.running-text.paused {
    animation-play-state: paused;
}

.running-text-control {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.1);
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.running-text-control:hover {
    background: rgba(0,0,0,0.2);
}

@keyframes scroll-left {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Quick Actions */
.quick-actions {
    padding: 2rem 0;
    background: #f8fafc;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button Styles */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 60px;
}

.btn-primary {
    background: linear-gradient(135deg, #065f46 0%, #047857 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(6, 95, 70, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary svg, .btn-secondary svg {
    width: 20px;
    height: 20px;
}

/* Section Styles */
section {
    padding: 4rem 0;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #065f46;
    position: relative;
}

section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    margin: 1rem auto;
    border-radius: 2px;
}

/* About Section */
.about-section {
    background: #f8fafc;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #374151;
}

.vision-mission {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.vision, .mission {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.vision h3, .mission h3 {
    color: #065f46;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.mission ul {
    text-align: left;
    list-style: none;
}

.mission li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.mission li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* Statistics Section */
.stats-section {
    background: linear-gradient(135deg, #065f46 0%, #047857 100%);
    color: white;
}

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

.stat-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: rgba(251, 191, 36, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 30px;
    height: 30px;
    color: #fbbf24;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #fbbf24;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #10b981;
}

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

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon svg {
    width: 30px;
    height: 30px;
    color: white;
}

.service-card h3 {
    color: #065f46;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: #6b7280;
    line-height: 1.6;
}

/* Schedule Section */
.schedule-section {
    background: #f8fafc;
}

.schedule-controls {
    margin-bottom: 2rem;
}

.search-filter {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.search-input, .filter-select {
    padding: 0.8rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    min-width: 250px;
    transition: border-color 0.3s ease;
}

.search-input:focus, .filter-select:focus {
    outline: none;
    border-color: #10b981;
}

.loading {
    text-align: center;
    padding: 3rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #10b981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.doctor-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #10b981;
}

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

.doctor-card.specialty-umum {
    border-left-color: #3b82f6;
}

.doctor-card.specialty-gigi {
    border-left-color: #f59e0b;
}

.doctor-card.specialty-anak {
    border-left-color: #ef4444;
}

.doctor-card.specialty-bedah {
    border-left-color: #8b5cf6;
}

.doctor-card.specialty-spesialis {
    border-left-color: #10b981;
}

.doctor-header {
    display: flex;
    justify-content: between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.doctor-info h3 {
    color: #065f46;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.doctor-specialty {
    background: #e0f2fe;
    color: #065f46;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
}

.availability-status {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-available {
    background: #dcfce7;
    color: #16a34a;
}

.status-not-available {
    background: #fef2f2;
    color: #dc2626;
}

.doctor-schedule {
    margin-top: 1rem;
}

.schedule-item {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.schedule-day {
    font-weight: 600;
    color: #374151;
}

.schedule-time {
    color: #6b7280;
}

.error-message {
    text-align: center;
    padding: 2rem;
    background: #fef2f2;
    border-radius: 8px;
    color: #dc2626;
    margin: 1rem 0;
}

/* Articles Section */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.article-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.article-card h3 {
    color: #065f46;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-preview {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.read-more-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: linear-gradient(135deg, #059669, #10b981);
    transform: translateY(-1px);
}

/* Testimonials Section */
.testimonials-section {
    background: #f8fafc;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: #10b981;
    font-family: serif;
}

.testimonial-content {
    margin-bottom: 1.5rem;
    padding-top: 1rem;
}

.testimonial-content p {
    color: #374151;
    font-style: italic;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
}

.author-info h4 {
    color: #065f46;
    margin-bottom: 0.2rem;
}

.author-info span {
    color: #6b7280;
    font-size: 0.9rem;
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #065f46;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.active {
    padding: 0 1.5rem 1.5rem;
    max-height: 200px;
}

.faq-answer p {
    color: #6b7280;
    line-height: 1.6;
}

/* Policies Section */
.policies-section {
    background: #f8fafc;
}

.policies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.policy-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.policy-card h3 {
    color: #065f46;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.policy-card ul {
    list-style: none;
}

.policy-card li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: #374151;
    line-height: 1.5;
}

.policy-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* BMI Calculator */
.bmi-calculator {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.bmi-form {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-weight: 600;
    color: #065f46;
}

.input-group input {
    padding: 0.8rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #10b981;
}

.bmi-result {
    text-align: center;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #10b981;
}

.bmi-score {
    margin-bottom: 1rem;
}

.bmi-label {
    display: block;
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.bmi-value {
    font-size: 3rem;
    font-weight: 700;
    color: #065f46;
}

.bmi-category {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.bmi-advice {
    color: #6b7280;
    line-height: 1.6;
}

.category-underweight { color: #3b82f6; }
.category-normal { color: #10b981; }
.category-overweight { color: #f59e0b; }
.category-obese { color: #ef4444; }

/* Partners Section */
.partners-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    color: #6b7280;
}

.partners-button-container {
    text-align: center;
}

.partners-btn {
    font-size: 1.2rem;
    padding: 1rem 2rem;
}

/* Contact Section */
.contact-section {
    background: #f8fafc;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.contact-details h3 {
    color: #065f46;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-details p, .contact-details div {
    color: #374151;
    line-height: 1.6;
}

.whatsapp-link, .email-link {
    color: #10b981;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.whatsapp-link:hover, .email-link:hover {
    color: #059669;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo .logo {
    pointer-events: auto;
    margin-bottom: 1rem;
}

.footer-logo .logo-text h3 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.footer-logo .logo-text span {
    opacity: 0.8;
}

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

.footer-section h4 {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

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

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #fbbf24;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

.modal-header h2 {
    color: #065f46;
    font-size: 1.5rem;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #ef4444;
}

.modal-body {
    padding: 2rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.article-content {
    line-height: 1.8;
    color: #374151;
}

/* Partners Modal Specific */
.partners-list {
    display: grid;
    gap: 2rem;
}

.partner-category h3 {
    color: #065f46;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #10b981;
    padding-bottom: 0.5rem;
}

.partner-category ul {
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.partner-category li {
    padding: 0.5rem 0;
}

.partner-category a {
    color: #10b981;
    text-decoration: none;
    transition: color 0.3s ease;
}

.partner-category a:hover {
    color: #059669;
    text-decoration: underline;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #065f46;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 3000;
}

.toast.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .header-info {
        align-items: center;
    }
    
    .digital-clock {
        display: none;
    }
    
    .slogan {
        margin-left: 0;
        text-align: center;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid, .testimonials-grid, .policies-grid {
        grid-template-columns: 1fr;
    }
    
    .schedule-grid {
        grid-template-columns: 1fr;
    }
    
    .search-filter {
        flex-direction: column;
        align-items: center;
    }
    
    .search-input, .filter-select {
        width: 100%;
        max-width: 300px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .vision-mission {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header, .modal-body {
        padding: 1.5rem;
    }
    
    .bmi-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
    }
    
    .logo-text h1 {
        font-size: 1.5rem;
    }
    
    .running-text {
        font-size: 0.9rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    section h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .doctor-card, .service-card, .article-card {
        padding: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .bmi-calculator {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .header, .running-text-container, .quick-actions, .footer {
        display: none;
    }
    
    .modal {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .doctor-card, .service-card, .article-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .running-text {
        animation: none;
        transform: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary, .btn-secondary {
        border: 2px solid currentColor;
    }
    
    .doctor-card, .service-card, .article-card {
        border: 2px solid #000;
    }
    
    .modal-content {
        border: 3px solid #000;
    }
}

/* Focus Styles for Better Accessibility */
button:focus, a:focus, input:focus, select:focus {
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
}

/* Smooth Scrolling Enhancement */
html:focus-within {
    scroll-behavior: smooth;
}
