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

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

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

/* Toast Notification */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #2E8B57;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
    max-width: 300px;
}

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

.toast.error {
    background: #e74c3c;
}

.toast.success {
    background: #27ae60;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #1e40af 0%, #2E8B57 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.header-container {
    padding: 20px 20px 15px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.logo i {
    font-size: 3rem;
    color: #ffffff;
}

.logo-text h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.logo-text p {
    font-size: 1rem;
    opacity: 0.9;
    font-style: italic;
}

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

.digital-clock {
    background: rgba(255,255,255,0.1);
    padding: 10px 15px;
    border-radius: 8px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.digital-clock span {
    display: block;
    font-weight: 600;
}

#dayDate {
    font-size: 0.9rem;
    opacity: 0.9;
}

#currentTime {
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.emergency-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(220, 38, 38, 0.9);
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    animation: pulse 2s infinite;
}

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

/* Running Text */
.running-text-container {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

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

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

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

.running-text-control {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

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

/* Navigation */
.main-nav {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.nav-btn, .whatsapp-btn {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-btn:hover, .whatsapp-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

.whatsapp-btn {
    background: #25D366;
    border-color: #25D366;
}

.whatsapp-btn:hover {
    background: #22c55e;
    border-color: #22c55e;
}

/* Main Content */
.main-content {
    padding-top: 40px;
}

.section {
    padding: 60px 0;
    border-bottom: 1px solid #f0f0f0;
}

.section:last-child {
    border-bottom: none;
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1e40af;
    margin-bottom: 50px;
    position: relative;
}

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

.section-description {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-card {
    background: #f8fafc;
    padding: 30px;
    border-radius: 12px;
    border-left: 5px solid #2E8B57;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-card h3 {
    color: #1e40af;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

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

.about-card li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
}

.about-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2E8B57;
    font-weight: bold;
}

/* Services Section */
.services-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-card i {
    font-size: 3rem;
    color: #2E8B57;
    margin-bottom: 20px;
}

.service-card h3 {
    color: #1e40af;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* Doctor Schedule */
.schedule-controls {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.schedule-controls input,
.schedule-controls select {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    min-width: 200px;
}

.schedule-controls input:focus,
.schedule-controls select:focus {
    outline: none;
    border-color: #2E8B57;
}

.loading {
    text-align: center;
    padding: 50px;
    color: #666;
}

.loading i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #2E8B57;
}

.error-message {
    text-align: center;
    padding: 30px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
}

.doctor-schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.doctor-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.doctor-card:hover {
    border-color: #2E8B57;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.doctor-card.available {
    border-color: #22c55e;
    background: linear-gradient(135deg, #f0fff4 0%, #dcfce7 100%);
}

.doctor-card.unavailable {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.doctor-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 8px;
}

.doctor-specialty {
    color: #2E8B57;
    font-weight: 500;
    margin-bottom: 15px;
}

.doctor-schedule {
    margin-bottom: 15px;
}

.schedule-days {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.day-tag {
    background: #e2e8f0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #475569;
}

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

.doctor-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.status-available {
    color: #22c55e;
}

.status-unavailable {
    color: #ef4444;
}

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

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.article-content {
    padding: 25px;
}

.article-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-excerpt {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

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

.read-more-btn {
    background: linear-gradient(135deg, #1e40af, #2E8B57);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.read-more-btn:hover {
    transform: translateY(-2px);
}

/* Testimonials */
.testimonials-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

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

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    position: relative;
}

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

.stars {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.testimonial-card p {
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #555;
}

.testimonial-author strong {
    color: #1e40af;
}

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

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

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

.faq-question {
    background: #f8fafc;
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

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

.faq-question h3 {
    color: #1e40af;
    margin: 0;
}

.faq-question i {
    color: #2E8B57;
    transition: transform 0.3s ease;
}

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

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

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

/* Policies Section */
.policies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.policy-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.policy-card:hover {
    border-color: #2E8B57;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.policy-card i {
    font-size: 2.5rem;
    color: #2E8B57;
    margin-bottom: 20px;
}

.policy-card h3 {
    color: #1e40af;
    margin-bottom: 15px;
}

/* BMI Calculator */
.bmi-calculator {
    max-width: 600px;
    margin: 0 auto;
    background: #f8fafc;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.bmi-form {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

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

.input-group input:focus {
    outline: none;
    border-color: #2E8B57;
}

.calculate-btn {
    background: linear-gradient(135deg, #1e40af, #2E8B57);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

.calculate-btn:hover {
    transform: translateY(-2px);
}

.bmi-result {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    text-align: center;
    border-left: 5px solid #2E8B57;
}

.bmi-value h3 {
    font-size: 1.5rem;
    color: #1e40af;
    margin-bottom: 10px;
}

.bmi-category {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.bmi-info {
    color: #666;
    line-height: 1.6;
}

.bmi-chart {
    background: white;
    padding: 20px;
    border-radius: 8px;
}

.bmi-chart h3 {
    text-align: center;
    color: #1e40af;
    margin-bottom: 20px;
}

.chart-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 6px;
    font-weight: 600;
}

.chart-item.underweight { background: #dbeafe; color: #1d4ed8; }
.chart-item.normal { background: #dcfce7; color: #166534; }
.chart-item.overweight { background: #fed7aa; color: #c2410c; }
.chart-item.obese { background: #fecaca; color: #dc2626; }

/* Partners Section */
.partners-btn {
    background: linear-gradient(135deg, #1e40af, #2E8B57);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.partners-btn:hover {
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1e40af 0%, #2E8B57 100%);
    color: white;
    padding: 50px 0 20px;
}

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

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.contact-item i {
    width: 20px;
    color: #93c5fd;
}

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

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    opacity: 0.8;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
}

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

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.close:hover {
    color: #dc2626;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.partner-item {
    background: #f8fafc;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.partner-item:hover {
    border-color: #2E8B57;
    transform: translateY(-3px);
}

.partner-item i {
    font-size: 2.5rem;
    color: #2E8B57;
    margin-bottom: 15px;
}

.partner-item h3 {
    color: #1e40af;
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        padding: 15px;
    }
    
    .header-top {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .logo-text h1 {
        font-size: 1.8rem;
    }
    
    .digital-clock {
        display: none;
    }
    
    .main-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-btn, .whatsapp-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    .schedule-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .schedule-controls input,
    .schedule-controls select {
        width: 100%;
        max-width: 300px;
    }
    
    .bmi-calculator {
        padding: 25px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo-text h1 {
        font-size: 1.5rem;
    }
    
    .logo-text p {
        font-size: 0.9rem;
    }
    
    .section h2 {
        font-size: 1.8rem;
    }
    
    .running-text {
        font-size: 0.9rem;
    }
    
    .service-card,
    .about-card,
    .policy-card {
        padding: 20px;
    }
    
    .testimonial-card {
        padding: 20px;
    }
    
    .modal-content {
        padding: 15px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .running-text {
        animation: none;
    }
    
    .emergency-contact {
        animation: none;
    }
    
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .modal {
        display: none !important;
    }
    
    .main-content {
        padding-top: 0;
    }
    
    .section {
        page-break-inside: avoid;
        border-bottom: none;
    }
}
