/* 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: #000;
    background-color: #fff;
}

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

/* Typography - Elegant Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    color: #007BFF;
    text-shadow: 0 2px 4px rgba(0, 123, 255, 0.1);
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
    color: #333;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #007BFF, #28A745);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    color: #444;
    margin-bottom: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

h4 {
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 0.75rem;
}

/* Header Styles */
.header {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-bottom: 3px solid #007BFF;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    gap: 2rem;
}

.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;
}

.logo svg {
    flex-shrink: 0;
}

.logo-text h1 {
    font-size: 1.75rem;
    margin: 0;
    color: #007BFF;
    font-weight: 700;
}

.logo-text p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    font-weight: 500;
}

.slogan p {
    font-size: 0.85rem;
    color: #777;
    font-style: italic;
    margin: 0;
}

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

.digital-clock {
    text-align: right;
    font-weight: 600;
}

.digital-clock .time {
    font-size: 1.2rem;
    color: #007BFF;
}

.digital-clock .date {
    font-size: 0.85rem;
    color: #666;
}

.emergency-number {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.emergency-label {
    color: #dc3545;
    font-weight: 600;
}

.emergency-phone {
    color: #007BFF;
    font-weight: 600;
}

/* Running Text */
.running-text-container {
    background: linear-gradient(90deg, #007BFF, #28A745);
    color: white;
    padding: 0.75rem 0;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.running-text {
    white-space: nowrap;
    animation: scroll-left 60s linear infinite;
    font-weight: 500;
}

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

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

.running-controls {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Quick Actions */
.quick-actions {
    background: #f8f9fa;
    padding: 2rem 0;
    border-bottom: 1px solid #e9ecef;
}

.quick-actions .container {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    min-width: 200px;
    justify-content: center;
}

.action-btn.primary {
    background: #007BFF;
    color: white;
}

.action-btn.primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.action-btn.secondary {
    background: #28A745;
    color: white;
}

.action-btn.secondary:hover {
    background: #1e7e34;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Main Content */
.main-content {
    padding: 4rem 0;
}

.section {
    margin-bottom: 5rem;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 12px;
    border-left: 4px solid #007BFF;
}

.about-text h3 {
    color: #007BFF;
    margin-top: 2rem;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text ul {
    margin-left: 1.5rem;
    margin-top: 1rem;
}

.about-text li {
    margin-bottom: 0.5rem;
    color: #555;
}

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

.service-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #e9ecef;
}

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

.service-icon {
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: #333;
    margin-bottom: 1rem;
}

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

/* Schedule Section */
.schedule-controls {
    margin-bottom: 2rem;
}

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

.search-input, .filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    min-width: 250px;
}

.search-input:focus, .filter-select:focus {
    outline: none;
    border-color: #007BFF;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.schedule-container {
    position: relative;
}

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

.doctor-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
}

.doctor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

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

.doctor-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.doctor-specialty {
    font-size: 0.9rem;
    color: #007BFF;
    margin: 0.25rem 0 0 0;
}

.doctor-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-available {
    background: #d4edda;
    color: #155724;
}

.status-unavailable {
    background: #f8d7da;
    color: #721c24;
}

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

.schedule-days {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.day-tag {
    background: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.schedule-time {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

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

.article-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 1px solid #e9ecef;
}

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

.article-content {
    padding: 1.5rem;
}

.article-title {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #666;
}

.article-preview {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.read-more-btn {
    background: #007BFF;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s;
}

.read-more-btn:hover {
    background: #0056b3;
}

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

.testimonial-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #28A745;
}

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

.avatar-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #007BFF;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.testimonial-content p {
    font-style: italic;
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.testimonial-author strong {
    color: #333;
    display: block;
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: #666;
    font-size: 0.9rem;
}

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

.faq-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    background: #f8f9fa;
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

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

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007BFF;
    transition: transform 0.3s;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 1.5rem;
    margin: 0;
    color: #555;
    line-height: 1.6;
}

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

.policy-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.policy-card h3 {
    color: #007BFF;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

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

.policy-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
    color: #555;
}

.policy-card li:last-child {
    border-bottom: none;
}

.policy-card li:before {
    content: '✓';
    color: #28A745;
    font-weight: bold;
    margin-right: 0.75rem;
}

/* BMI Calculator */
.bmi-calculator {
    max-width: 600px;
    margin: 0 auto;
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

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

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

.form-group label {
    font-weight: 600;
    color: #333;
}

.form-group input {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #007BFF;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.calculate-btn {
    background: #007BFF;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.calculate-btn:hover {
    background: #0056b3;
}

.bmi-result {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #28A745;
}

.bmi-value h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.bmi-category {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.bmi-info {
    text-align: left;
}

.bmi-info h4 {
    color: #333;
    margin-bottom: 1rem;
}

.bmi-info ul {
    list-style: none;
    padding: 0;
}

.bmi-info li {
    padding: 0.25rem 0;
    color: #555;
}

/* Partners Section */
.partner-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.partner-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.partner-button-container {
    margin-top: 2rem;
}

.partner-btn {
    background: linear-gradient(135deg, #007BFF, #28A745);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.partner-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #333, #444);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-section h3 {
    color: white;
    border-bottom: 2px solid #007BFF;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ccc;
}

.contact-item svg {
    flex-shrink: 0;
    color: #007BFF;
}

.contact-item a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #007BFF;
}

.map-container {
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

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

/* 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);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

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

.modal.show .modal-content {
    transform: scale(1);
}

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

.modal-header h3 {
    margin: 0;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

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

.modal-body {
    padding: 2rem;
}

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

.modal-text {
    color: #555;
    line-height: 1.7;
    font-size: 1rem;
}

.partners-grid {
    display: grid;
    gap: 1.5rem;
}

.partner-item {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007BFF;
}

.partner-item h4 {
    color: #333;
    margin-bottom: 0.75rem;
}

.partner-item p {
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-style: italic;
}

.schedule-error, .articles-error {
    text-align: center;
    padding: 2rem;
    color: #dc3545;
    background: #f8d7da;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #333;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 3000;
    max-width: 300px;
}

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

.toast-content {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .header-right {
        align-items: center;
    }
    
    .digital-clock {
        display: none;
    }
    
    .logo-text h1 {
        font-size: 1.5rem;
    }
    
    .quick-actions .container {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .search-filter {
        flex-direction: column;
        align-items: center;
    }
    
    .search-input, .filter-select {
        width: 100%;
        max-width: 400px;
    }
    
    .schedule-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .policy-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header, .modal-body {
        padding: 1rem 1.5rem;
    }
    
    .bmi-calculator {
        margin: 0 1rem;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .running-text-container {
        padding: 0.5rem 0;
    }
    
    .running-controls {
        right: 10px;
    }
    
    .section {
        margin-bottom: 3rem;
    }
    
    .main-content {
        padding: 2rem 0;
    }
    
    .about-text {
        padding: 1.5rem;
    }
    
    .service-card, .testimonial-card, .policy-card {
        padding: 1.5rem;
    }
    
    .doctor-card {
        padding: 1rem;
    }
    
    .article-content {
        padding: 1rem;
    }
    
    .partner-btn {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
}

/* High contrast for accessibility */
@media (prefers-contrast: high) {
    .action-btn, .read-more-btn, .calculate-btn, .partner-btn {
        border: 2px solid currentColor;
    }
    
    .doctor-card, .service-card, .article-card {
        border: 2px solid #333;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .running-text {
        animation: none;
    }
    
    * {
        transition: none !important;
        animation: none !important;
    }
}
