/* Responsive Styles for Dentoamigo Theme */

/* --- General --- */
@media (max-width: 1024px) {
    img {
        max-width: 100%;
        height: auto;
    }
}

/* --- Tablet and Smaller (up to 1024px) --- */
@media (max-width: 1024px) {
    .navbar-nav .nav-item {
        margin: 0 5px;
    }
    .navbar-nav .nav-link {
        font-size: 18px;
    }
    .container {
        padding-right: 20px;
        padding-left: 20px;
    }
}

/* --- Tablet and Mobile (up to 768px) --- */
@media (max-width: 768px) {
    /* Header */
    .navbar-brand img {
        width: 220px;
        max-width: 100%;
    }
    .navbar-toggler {
        padding: .25rem .5rem;
        font-size: 1rem;
    }
    .navbar-collapse {
        background-color: #f8f9fa;
        padding: 15px;
        border-radius: 0.5rem;
        margin-top: 10px;
        border: 1px solid #ddd;
    }
    .navbar-nav .nav-item {
        margin: 8px 0;
    }
    .nav-link {
        font-size: 1rem;
        text-align: center;
        padding: 0.5rem;
    }
    .dropdown-menu {
        text-align: center;
        border: none;
        background-color: #f0f0f0;
    }

    /* Typography */
    h1, .h1, .display-4 {
        font-size: 2.2rem;
    }
    h2, .h2 {
        font-size: 1.8rem;
    }
    h3, .h3 {
        font-size: 1.5rem;
    }
    h4, .h4 {
        font-size: 1.2rem;
    }

    /* Layout and Spacing */
    .content-area {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    .services-section {
        padding-top: 80px;
        padding-bottom: 40px;
        margin-top: -60px;
    }
    .appointment-section {
        padding: 40px 15px;
    }

    /* Blog Cards */
    .blog-card-container {
        flex-direction: column;
        gap: 0;
    }
    .blog-card {
        flex: 1 1 100%;
        margin-bottom: 25px;
        width: 100%;
    }
    .blog-card__title {
        font-size: 1.4rem;
    }

    /* Sidebar */
    .widget-area, #secondary {
        display: none;
    }

    /* Footer */
    footer .row > .col-xl-6 {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center;
        margin-bottom: 30px;
    }
    .social-handle {
        justify-content: center !important;
        margin-top: 20px;
    }
    .footer-widgets ul {
        padding-left: 0;
    }
    .copywrite-section .text-center {
        font-size: 0.875rem;
    }
}

/* --- Mobile Only (up to 576px) --- */
@media (max-width: 576px) {
    .navbar-brand img {
        width: 180px;
    }

    h1, .h1, .display-4 {
        font-size: 1.8rem;
    }
    h2, .h2 {
        font-size: 1.5rem;
    }
    .blog-card__title {
        font-size: 1.2rem;
    }
    .call-action {
        font-size: 1.1rem;
    }

    /* Single Post Meta */
    .single .text-center .d-flex {
        flex-direction: column;
        gap: 5px !important;
    }

    /* Footer */
    .footer-widgets h5 {
        font-size: 1.25rem;
    }
    .social-handle a {
        margin: 0 5px;
    }
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float img {
      width: 50px;
      height: 50px;
    }
}

/* --- Small Mobile (up to 360px) --- */
@media (max-width: 360px) {
    .navbar-brand img {
        width: 150px;
    }
    h1, .h1, .display-4 {
        font-size: 1.6rem;
    }
    h2, .h2 {
        font-size: 1.3rem;
    }
}
