﻿/* =============================================
   فایل ریسپانسیو مخصوص دستگاه‌های مختلف
   ============================================= */

/* موبایل‌های کوچک (کمتر از 576px) */
@media (max-width: 575.98px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    .top-bar {
        text-align: center;
    }

        .top-bar .col-md-6:last-child {
            text-align: center !important;
            margin-top: 10px;
        }

    .navbar-brand img {
        height: 45px;
    }

    .page-header {
        padding: 40px 0;
    }

        .page-header h1 {
            font-size: 1.8rem;
        }

    .carousel-caption {
        bottom: 30%;
        transform: translateY(30%);
    }

        .carousel-caption h1 {
            font-size: 1.3rem;
            margin-bottom: 10px;
        }

        .carousel-caption p {
            font-size: 0.8rem;
            margin-bottom: 15px;
        }

        .carousel-caption .btn {
            padding: 8px 20px;
            font-size: 0.9rem;
        }

    .carousel-indicators {
        bottom: 10px;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .feature-box {
        padding: 25px 15px;
    }

        .feature-box .icon-box {
            width: 60px;
            height: 60px;
            font-size: 24px;
        }

    .service-card {
        padding: 25px 15px;
    }

    .doctor-image {
        height: 200px;
    }

    .blog-image {
        height: 180px;
    }

    .blog-date {
        top: 10px;
        right: 10px;
        padding: 5px 10px;
    }

        .blog-date span:first-child {
            font-size: 18px;
        }

        .blog-date span:last-child {
            font-size: 11px;
        }

    .video-thumbnail {
        height: 160px;
    }

    .video-play-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .video-meta {
        flex-direction: column;
        gap: 5px;
    }

    .testimonial-item {
        padding: 15px;
        margin: 10px;
    }

    .testimonial-content .quote-icon {
        font-size: 30px;
    }

    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }

    .cta-section .btn-light {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .footer-widget h4 {
        font-size: 1.2rem;
    }

    .footer-bottom {
        text-align: center;
    }

        .footer-bottom .text-left {
            text-align: center !important;
            margin-top: 10px;
        }

    .sidebar-widget {
        padding: 20px;
    }

    .recent-posts li a {
        gap: 10px;
    }

        .recent-posts li a img {
            width: 50px;
            height: 50px;
        }

    .pagination .page-link {
        padding: 8px 15px;
    }

    .back-to-top {
        bottom: 10px;
        left: 10px;
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* تبلت‌های عمودی (576px تا 768px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .container {
        max-width: 540px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .carousel-caption h1 {
        font-size: 1.8rem;
    }

    .carousel-caption p {
        font-size: 1.1rem;
    }

    .doctor-image {
        height: 220px;
    }

    .blog-image {
        height: 200px;
    }

    .video-thumbnail {
        height: 180px;
    }
}

/* تبلت‌های افقی و لپ‌تاپ‌های کوچک (768px تا 992px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 2rem;
    }

    .carousel-caption h1 {
        font-size: 2rem;
    }

    .carousel-caption p {
        font-size: 1.2rem;
    }

    .doctor-image {
        height: 240px;
    }

    .blog-image {
        height: 220px;
    }

    .video-thumbnail {
        height: 200px;
    }
}

/* لپ‌تاپ‌های متوسط (992px تا 1200px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }

    .doctor-image {
        height: 260px;
    }

    .blog-image {
        height: 230px;
    }

    .video-thumbnail {
        height: 210px;
    }
}

/* صفحه‌نمایش‌های بزرگ (1200px به بالا) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}
