/* ===================================
   Responsive Design
   =================================== */

/* Tablet (768px - 1024px) */
@media screen and (max-width:  1024px) {
    :root {
        --spacing-xl: 2.5rem;
        --spacing-xxl: 3rem;
    }

    .container {
        padding: 0 var(--spacing-md);
    }

    /* Hero */
    .hero-content . container {
        grid-template-columns: 1fr;
    }

    . hero-title {
        font-size: 2.5rem;
    }

    .hero-image {
        order: -1;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns:  repeat(2, 1fr);
    }

    /* About */
    .about-content {
        grid-template-columns:  1fr;
    }

    /* Services */
    .services-grid {
        grid-template-columns:  repeat(2, 1fr);
    }

    /* Doctors */
    .doctors-grid {
        grid-template-columns:  repeat(2, 1fr);
    }

    /* News */
    .news-grid {
        grid-template-columns:  repeat(2, 1fr);
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Doctor Detail */
    .doctor-card-detail {
        grid-template-columns: 1fr;
    }

    /* Service Detail */
    .service-detail-card {
        grid-template-columns: 1fr;
    }

    . service-detail-icon {
        margin:  0 auto;
    }

    /* Why Choose */
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Appointment */
    .appointment-wrapper {
        grid-template-columns: 1fr;
    }

    /* News Layout */
    .news-layout {
        grid-template-columns:  1fr;
    }

    /* Contact */
    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    . contact-wrapper {
        grid-template-columns: 1fr;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns:  repeat(3, 1fr);
    }
}

/* Mobile (max-width: 768px) */
@media screen and (max-width: 768px) {
    :root {
        --font-size-base: 14px;
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
        --spacing-xxl: 2.5rem;
    }

    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }

    /* Header */
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--white);
        flex-direction: column;
        padding: var(--spacing-lg);
        box-shadow: var(--shadow-lg);
        transition: var(--transition-base);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    . nav-menu a {
        padding: var(--spacing-md);
        border-bottom: 1px solid var(--light-gray);
    }

    .nav-toggle {
        display: block;
    }

    /* Hero */
    .hero {
        padding: var(--spacing-xl) 0;
    }

    . hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    . hero-description {
        font-size: 1rem;
    }

    . hero-buttons {
        flex-direction: column;
    }

    .hero-buttons . btn {
        width: 100%;
    }

    . hero-image-wrapper {
        height: 300px;
    }

    . hero-icon {
        font-size: 6rem;
    }

    . float-icon {
        font-size: 2rem;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns:  1fr;
        gap: var(--spacing-md);
    }

    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    . stat-number {
        font-size: 2rem;
    }

    /* Page Header */
    .page-header h1 {
        font-size: 2rem;
    }

    . page-header p {
        font-size: 1rem;
    }

    /* Services */
    .services-grid {
        grid-template-columns:  1fr;
    }

    . service-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }

    /* Doctors */
    .doctors-grid {
        grid-template-columns: 1fr;
    }

    .doctor-image {
        width: 120px;
        height: 120px;
        font-size: 3rem;
    }

    /* News */
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-featured-image {
        height: 250px;
        font-size: 4rem;
    }

    . news-image {
        height: 180px;
        font-size:  3rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    /* About */
    .about-image-wrapper {
        height: 300px;
    }

    . about-image-wrapper i {
        font-size: 6rem;
    }

    /* Why Choose */
    .why-grid {
        grid-template-columns: 1fr;
    }

    /* Form */
    .form-row {
        grid-template-columns: 1fr;
    }

    /* Appointment Features */
    .feature-item {
        flex-direction: column;
        text-align: center;
    }

    /* News Meta */
    .news-meta {
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    /* Pagination */
    .pagination {
        gap: var(--spacing-xs);
    }

    .page-link {
        width: 35px;
        height: 35px;
        font-size: 0.875rem;
    }

    /* Sidebar */
    .category-list li a {
        font-size: 0.875rem;
    }

    . popular-post {
        flex-direction: column;
        text-align: center;
    }

    .popular-post-icon {
        margin:  0 auto;
    }

    /* Gallery */
    .filter-buttons {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
        justify-content: center;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-image {
        height: 200px;
        font-size: 3rem;
    }

    /* Lightbox */
    .lightbox-image {
        width: 100%;
        height: 400px;
        font-size: 5rem;
    }

    . lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }

    . lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    . lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right:  10px;
    }

    /* Contact */
    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .social-links-large {
        grid-template-columns: 1fr;
    }

    /* FAQ */
    .faq-question h3 {
        font-size: 1rem;
    }

    .faq-question h3 i {
        display: none;
    }

    /* Scroll Top */
    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1.25rem;
    }

    /* Toast */
    .toast {
        right: 10px;
        left: 10px;
        top: 90px;
    }

    /* Service Meta */
    .service-meta {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .service-meta . btn {
        width: 100%;
    }
}

/* Small Mobile (max-width: 480px) */
@media screen and (max-width: 480px) {
    :root {
        --font-size-base: 14px;
    }

    . container {
        padding: 0 var(--spacing-sm);
    }

    /* Hero */
    .hero-title {
        font-size:  1.75rem;
    }

    . hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-image-wrapper {
        height: 250px;
    }

    /* Buttons */
    .btn {
        padding: 0.75rem 1.25rem;
        font-size:  0.875rem;
    }

    /* Page Header */
    .page-header {
        padding: var(--spacing-lg) 0;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    /* Stats */
    .stat-item {
        padding: var(--spacing-md);
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns:  1fr;
    }

    . gallery-image {
        height: 250px;
    }

    /* Service Detail Icon */
    .service-detail-icon {
        width: 120px;
        height: 120px;
        font-size:  3rem;
    }

    /* News Featured */
    .news-featured-image {
        height: 200px;
        font-size: 3rem;
    }

    /* About */
    .about-image-wrapper {
        height: 250px;
    }

    . about-image-wrapper i {
        font-size: 5rem;
    }

    /* Map */
    .map-container {
        height: 250px;
    }

    . map-placeholder i {
        font-size: 3rem;
    }

    /* Lightbox */
    .lightbox-image {
        height: 300px;
        font-size: 4rem;
    }

    /* Section Spacing */
    section {
        padding: var(--spacing-xl) 0;
    }

    . section-header {
        margin-bottom: var(--spacing-lg);
    }

    .section-title {
        font-size: 1.75rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .nav-toggle,
    .scroll-top,
    .cta,
    .footer {
        display: none;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    .container {
        max-width: 100%;
    }
}