@media (max-width: 992px) {
    .hero-grid, .doctor-inner, .contact-grid, .testi-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero h1 {
        font-size: 2rem;
    }
    .container {
        padding: 0 20px;
    }
    .hero {
        padding: 110px 0 50px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        max-height: 600px;
        gap: 12px;
    }
    .gallery-item {
        height: 160px;
        border-radius: 18px;
    }
}

@media (max-width: 600px) {
    .header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        padding: 8px 0;
    }
    
    .header-inner {
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .logo {
        order: 1;
    }
    
    .logo h2 {
        font-size: 0.85rem;
        line-height: 1.2;
    }
    .logo p {
        font-size: 0.55rem;
    }
    
    .nav {
        order: 2;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .nav a {
    font-size: 0.73rem;
    padding: 5px 9px;
    white-space: nowrap;
}
    
    .nav .btn-appoint {
        order: 10;
        width: auto;
        text-align: center;
        margin: 6px auto 0;
        padding: 10px 30px;
        font-size: 0.85rem;
        background: linear-gradient(135deg, #C9A03D, #b08a2e);
        color: white;
        border-radius: 30px;
        display: inline-block;
    }
    
    .hero {
        padding-top: 160px;
    }
    .hero-badge {
        margin-top: 10px;
        margin-bottom: 15px;
        font-size: 0.75rem;
        padding: 6px 14px;
        position: relative;
        z-index: 5;
    }
    .hero h1 {
        font-size: 1.6rem;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        max-height: 600px;
        gap: 12px;
    }
    .gallery-item {
        height: 160px;
    }
    .articles-grid {
        grid-template-columns: 1fr;
    }
    .articles-section {
        border-radius: 30px;
        margin: 10px;
    }
    .testi-grid {
        grid-template-columns: 1fr;
        max-height: 300px;
        overflow-y: auto;
    }
    section {
        padding: 40px 0;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .benefits {
        margin: 10px;
        border-radius: 30px;
    }
    .doctor-info {
        padding: 25px;
    }
    .doctor-img {
        min-height: 250px;
    }
    .contact-info {
        padding: 20px;
    }
    .contact-grid {
        gap: 25px;
    }
    .chat-modal {
        width: 340px;
        height: 500px;
        right: 10px;
        bottom: 80px;
    }
    .message span {
        max-width: 85%;
        padding: 10px 14px;
        font-size: 13px;
    }
    .chat-header h4 {
        font-size: 0.9rem;
    }
    .chat-ai-float {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
    .float-contact-container {
        bottom: 15px;
        left: 15px;
        gap: 8px;
    }
    .main-contact-btn {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    .contact-menu-item {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    .contact-menu {
        gap: 8px;
    }
    .hero-stats {
        gap: 12px;
        justify-content: center;
    }
    .stat {
        padding: 8px 12px;
        min-width: 80px;
    }
    .stat-number {
        font-size: 1.5rem !important;
    }
    .stat-label {
        font-size: 0.7rem;
    }
    .video-wrapper {
        border-radius: 25px !important;
    }
    .video-wrapper video {
        height: auto !important;
        aspect-ratio: 16/9;
    }
    .video-overlay h3 {
        font-size: 0.9rem !important;
        margin-top: 12px !important;
    }
    .video-overlay p {
        font-size: 0.7rem !important;
    }
    .play-button-circle {
        width: 60px !important;
        height: 60px !important;
    }
    .steps-grid {
        gap: 15px;
    }
    .step-card {
        padding: 20px 12px;
    }
    .step-card h3 {
        font-size: 1rem;
    }
    .step-card p {
        font-size: 0.8rem;
    }
    .benefits-grid {
        gap: 15px;
    }
    .benefit-card {
        padding: 20px 15px;
    }
    .benefit-card h3 {
        font-size: 1rem;
    }
    .benefit-card p {
        font-size: 0.8rem;
    }
    .testi-card {
        padding: 18px;
    }
    .testi-card p {
        font-size: 0.85rem;
    }
    .dates-list {
        justify-content: center;
    }
    .article-card-title {
        font-size: 0.95rem;
    }
    .article-card-excerpt {
        font-size: 0.75rem;
    }
    
    .enamad-badge {
        width: 100px;
        height: 110px;
        padding: 10px;
        font-size: 0.6rem;
    }
    .enamad-badge .badge-title {
        font-size: 0.65rem;
    }
    .enamad-badge .badge-subtitle {
        font-size: 0.5rem;
    }
    
    /* تاریخ امروز */
    .today-box {
        font-size: 0.6rem !important;
        padding: 4px 8px !important;
        z-index: 1001;
        background: rgba(13,107,99,0.08) !important;
        border-radius: 20px !important;
    }
    
    .today-box {
    font-size: 0.6rem !important;
    padding: 4px 8px !important;
    z-index: 1001;
    background: rgba(13,107,99,0.08) !important;
    border-radius: 20px !important;
    order: 1 !important;
    width: auto !important;
    margin: 0 !important;
}
    
    /* مودال */
    .modal-appointment {
        max-width: 95% !important;
        max-height: 85vh !important;
        border-radius: 18px !important;
    }
    .modal-appointment-header {
        padding: 12px 16px !important;
        border-radius: 18px 18px 0 0 !important;
    }
    .modal-appointment-header h3 {
        font-size: 0.9rem !important;
    }
    .modal-appointment-body {
        padding: 14px !important;
    }
    #appointmentModalForm input,
    #appointmentModalForm select,
    #appointmentModalForm textarea {
        padding: 10px 14px !important;
        margin: 5px 0 !important;
        font-size: 0.8rem !important;
        border-radius: 20px !important;
    }
    .modal-date-slots {
        padding: 10px !important;
    }
    .modal-dates-list {
        max-height: 140px !important;
        gap: 6px !important;
    }
    .modal-dates-list .date-card {
        min-width: 60px !important;
        padding: 6px 8px !important;
        font-size: 0.7rem !important;
        border-radius: 10px !important;
    }
    .modal-hours-list {
        gap: 6px !important;
    }
    .modal-hours-list .hour-badge {
        padding: 6px 12px !important;
        font-size: 0.75rem !important;
    }
    .modal-submit-btn {
        padding: 12px !important;
        font-size: 0.9rem !important;
        margin-top: 10px !important;
    }
    .modal-note {
        font-size: 0.65rem !important;
        margin-top: 8px !important;
    }
    .modal-close-btn {
        width: 28px !important;
        height: 28px !important;
        font-size: 14px !important;
    }
    
    /* سویچر زبان */
    #langSwitcher {
        top: auto !important;
        bottom: 90px !important;
        right: 10px !important;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .gallery-item {
        height: 140px;
    }
}