/**
 * Responsive Styles
 *
 * @package Zestify
 */

/* Large devices (desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .d-lg-block { display: block; }
    .d-lg-none { display: none !important; }
    .d-lg-flex { display: flex; }
    .mx-lg-auto { margin-left: auto; margin-right: auto; }
    .row-cols-lg-3 > * { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .row-cols-lg-4 > * { flex: 0 0 25%; max-width: 25%; }
    .col-lg-1 { flex: 0 0 8.33333333%; max-width: 8.33333333%; }
    .col-lg-2 { flex: 0 0 16.66666667%; max-width: 16.66666667%; }
    .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
    .col-lg-4 { flex: 0 0 33.33333333%; max-width: 33.33333333%; }
    .col-lg-5 { flex: 0 0 41.66666667%; max-width: 41.66666667%; }
    .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
    .col-lg-7 { flex: 0 0 58.33333333%; max-width: 58.33333333%; }
    .col-lg-8 { flex: 0 0 66.66666667%; max-width: 66.66666667%; }
    .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
    .col-lg-10 { flex: 0 0 83.33333333%; max-width: 83.33333333%; }
    .col-lg-11 { flex: 0 0 91.66666667%; max-width: 91.66666667%; }
    .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
    .text-lg-left { text-align: left; }
    .text-lg-center { text-align: center; }
    .text-lg-right { text-align: right; }
    .justify-content-lg-end { justify-content: flex-end; }
    .justify-content-lg-center { justify-content: center; }
    .mb-lg-0 { margin-bottom: 0; }
    .mt-lg-0 { margin-top: 0; }
    .pl-lg-4 { padding-left: 30px; }
    .above-header.d-lg-block { display: block; }

    .slider-section + .info-section {
        margin-top: -3.55rem;
        position: relative;
        z-index: 2;
    }
}

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199px) {
    .main-menu > li > a {
        padding: 10px 12px;
        font-size: 14px;
    }
    .features-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
    .team-section .team-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
    .theme-main-heading h2 {
        font-size: 2.2rem;
    }
    .single-post-area .post-title {
        font-size: 34px;
    }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991px) {
    .main-navigation-area {
        display: none !important;
    }
    .main-mobile-nav {
        display: block !important;
    }
    .main-mobile-nav .mobile-right-icons {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-right: 15px;
    }
    .mobile-search-form {
        display: none;
        padding: 15px;
        background: #f8f9fa;
        border-top: 1px solid #e0e0e0;
    }
    .mobile-search-form.active {
        display: block;
    }
    .mobile-search-form form {
        display: flex;
        gap: 10px;
    }
    .mobile-search-form input {
        flex: 1;
        padding: 10px 15px;
        border: 1px solid #e0e0e0;
        border-radius: 5px;
        font-size: 14px;
    }
    .mobile-search-form button {
        background: var(--zestify-primary);
        color: #fff;
        border: none;
        padding: 10px 20px;
        border-radius: 5px;
        cursor: pointer;
    }

    /* Hamburger animate to X */
    .hamburger-menu .menu-collapsed.active .top-bun {
        transform: translateY(10px) rotate(45deg);
    }
    .hamburger-menu .menu-collapsed.active .meat {
        opacity: 0;
    }
    .hamburger-menu .menu-collapsed.active .bottom-bun {
        transform: translateY(-10px) rotate(-45deg);
    }
    .main-mobile-build .social-icons {
        display: flex;
        gap: 10px;
        padding: 20px 0 0;
        margin: 20px 0 0;
        border-top: 1px solid #eee;
        justify-content: center;
    }
    .main-mobile-build .social-icons li a {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--zestify-primary-light);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--zestify-primary);
        transition: var(--zestify-transition);
    }
    .main-mobile-build .social-icons li a:hover {
        background: var(--zestify-primary);
        color: #fff;
    }

    .info-section .info-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-section .pricing-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    .funfact-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    .team-section .team-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-section .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .banner-section .banner-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .blog-masonry {
        columns: 2;
    }

    .main-content h1 {
        font-size: 2.5rem;
    }
    .home-slider .swiper-slide > img {
        height: 450px;
    }
    .home-slider .swiper {
        height: 450px;
    }

    .service-section .service-grid.cols-3,
    .service-section .service-grid.cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .call-action-content {
        flex-direction: column;
        text-align: center;
    }
    .cta-info-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .page-with-sidebar {
        flex-direction: column;
    }
    .page-with-sidebar .sidebar-content {
        width: 100%;
    }
    .page-with-sidebar.left-sidebar {
        flex-direction: column;
    }

    .blog-posts.grid-2,
    .blog-posts.grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr);
    }

    .main-footer .row > div {
        margin-bottom: 30px;
    }

    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-12 { flex: 0 0 100%; max-width: 100%; }
    .row-cols-md-2 > * { flex: 0 0 50%; max-width: 50%; }

    .theme-main-heading h2 {
        font-size: 2rem;
    }

    .process-wrapper .col-lg-3:nth-child(2n) .process-item::after {
        display: none;
    }

    /* Single Post - Tablet */
    .single-post-area .post-title {
        font-size: 32px;
    }
    .single-post-area .post-content {
        padding: 30px;
    }
    .entry-content blockquote {
        padding: 15px 20px;
        font-size: 16px;
    }
    .entry-content table th,
    .entry-content table td {
        padding: 8px 10px;
        font-size: 14px;
    }
    .post-footer-meta {
        padding: 15px 30px;
    }
    .comments-area {
        padding: 30px;
    }
    .comment-list {
        margin-bottom: 30px;
    }
    .comment-avatar img {
        width: 45px;
        height: 45px;
    }
    .comment-body {
        gap: 15px;
    }
    .comment-author {
        font-size: 16px;
    }
    .author-bio-box {
        padding: 30px;
        gap: 25px;
    }
    .author-avatar img {
        width: 80px;
        height: 80px;
    }
    .nav-btn {
        padding: 20px;
    }
    .nav-title {
        font-size: 16px;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767px) {
    .container {
        padding: 0 15px;
    }
    .col-md-6, .col-sm-6 { flex: 0 0 100%; max-width: 100%; }
    .row-cols-md-2 > *, .row-cols-sm-2 > * { flex: 0 0 100%; max-width: 100%; }

    .info-section .info-wrapper {
        grid-template-columns: 1fr;
    }
    .pricing-section .pricing-wrapper {
        grid-template-columns: 1fr;
    }
    .funfact-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    .process-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-wrapper {
        grid-template-columns: 1fr;
    }
    .team-section .team-wrapper {
        grid-template-columns: 1fr;
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .gallery-section .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .banner-section .banner-grid {
        grid-template-columns: 1fr;
    }
    .blog-masonry {
        columns: 1;
    }

    .home-slider .swiper-slide > img {
        height: 350px;
    }
    .home-slider .swiper {
        height: 350px;
    }
    .main-content h1 {
        font-size: 2rem;
    }
    .main-content h4 {
        font-size: 13px;
    }
    .main-content p {
        font-size: 14px;
    }
    .slider-nav {
        display: none;
    }

    .section-title {
        font-size: 1.6rem;
    }
    .section-title-wrap {
        margin-bottom: 30px;
    }

    .service-section .service-grid.cols-3,
    .service-section .service-grid.cols-4 {
        grid-template-columns: 1fr;
    }

    .sidebar .widget {
        padding: 20px;
        margin-bottom: 25px;
    }
    .sidebar .widget-title,
    .sidebar .wp-block-heading {
        font-size: 1.1rem;
        padding-bottom: 10px;
        margin-bottom: 15px;
    }
    .sidebar .wp-block-latest-posts__list li {
        padding: 10px 0;
    }
    .sidebar .wp-block-latest-posts__list li a {
        font-size: 13px;
    }
    .sidebar .wp-block-categories-list li {
        padding: 8px 0;
    }
    .sidebar .wp-block-search__input {
        padding: 10px 12px;
        font-size: 13px;
    }
    .sidebar .wp-block-search__button {
        padding: 10px 15px;
        font-size: 13px;
    }
    .sidebar .wp-block-group.has-background {
        padding: 18px !important;
    }
    .sidebar .wp-block-group h4.wp-block-heading {
        font-size: 1rem;
    }
    .sidebar .wp-block-button__link {
        padding: 10px 15px;
        font-size: 13px;
    }
    .blog-posts.grid-2,
    .blog-posts.grid-3 {
        grid-template-columns: 1fr;
    }
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    .single-post-area .post-title {
        font-size: 26px;
        margin: 10px 0 20px;
    }
    .single-post-area .post-content {
        padding: 20px;
    }
    .entry-content p {
        font-size: 16px;
        line-height: 1.7;
    }
    .entry-content h2 {
        font-size: 1.5rem;
        margin-top: 30px;
    }
    .entry-content h3 {
        font-size: 1.25rem;
    }
    .entry-content blockquote {
        padding: 12px 15px;
        font-size: 15px;
        margin: 20px 0;
    }
    .entry-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
    .entry-content pre {
        font-size: 13px;
        padding: 15px;
    }
    .entry-content img.alignleft,
    .entry-content img.alignright {
        float: none;
        display: block;
        margin: 20px auto;
    }
    .post-footer-meta {
        padding: 15px 20px;
    }
    .post-tags a {
        padding: 4px 12px;
        font-size: 13px;
    }
    .author-bio-box {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    .author-avatar img {
        width: 70px;
        height: 70px;
    }
    .author-info h4 {
        font-size: 20px;
    }
    .post-navigation-wrapper .nav-links {
        flex-direction: column;
    }
    .nav-btn {
        width: 100%;
        padding: 18px;
    }
    .nav-title {
        font-size: 15px;
    }
    .comments-area {
        padding: 20px;
    }
    .comments-title,
    .comment-reply-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
    .comment-body {
        flex-direction: column;
        gap: 10px;
    }
    .comment-avatar img {
        width: 40px;
        height: 40px;
    }
    .comment-author {
        font-size: 15px;
    }
    .comment-reply-link-wrap {
        flex-direction: column;
        gap: 5px;
    }
    .children {
        margin-left: 15px;
    }
    .related-posts-title {
        font-size: 22px;
    }
    .related-post-thumb img {
        height: 160px;
    }
    .related-post-content {
        padding: 15px;
    }
    .related-post-content h4 {
        font-size: 15px;
    }
    .post-meta-list {
        gap: 8px;
        font-size: 12px;
    }
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .breadcrumb-content h1 {
        font-size: 1.8rem;
    }
    .breadcrumb-content {
        padding: 60px 0 30px;
    }
    .breadcrumb-area {
        min-height: 180px;
    }

    .timeline-wrapper::before {
        left: 20px;
    }
    .timeline-dot {
        left: 20px;
    }
    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: column;
        padding-left: 50px;
        text-align: left;
    }
    .timeline-content {
        width: 100%;
    }

    .countdown-value {
        font-size: 2rem;
        padding: 15px;
    }
    .funfact-count {
        font-size: 2rem;
    }

    .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
    .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575px) {
    .funfact-wrapper {
        grid-template-columns: 1fr;
    }
    .process-wrapper {
        grid-template-columns: 1fr;
    }
    .gallery-section .gallery-grid {
        grid-template-columns: 1fr;
    }
    .countdown-grid {
        gap: 15px;
    }
    .newsletter-form {
        flex-direction: column;
    }
    .cta-info-grid {
        grid-template-columns: 1fr !important;
    }
    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }

    .home-slider .swiper-slide > img {
        height: 300px;
    }
    .home-slider .swiper {
        height: 300px;
    }
    .main-content h1 {
        font-size: 1.5rem;
    }

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

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }

    .home-section, .st-py-default {
        padding: 50px 0;
    }

    /* Sidebar - Mobile Small */
    .sidebar .widget {
        padding: 15px;
        margin-bottom: 20px;
    }
    .sidebar .widget-title,
    .sidebar .wp-block-heading {
        font-size: 1rem;
    }
    .sidebar .wp-block-search__inside-wrapper {
        flex-direction: column;
    }
    .sidebar .wp-block-search__input {
        border-radius: var(--zestify-radius);
        border-right: 1px solid var(--zestify-border-color);
        margin-bottom: 8px;
    }
    .sidebar .wp-block-search__button {
        border-radius: var(--zestify-radius);
        width: 100%;
    }

    /* Breadcrumb - Mobile Small */
    .breadcrumb-content h1 {
        font-size: 1.5rem;
    }
    .breadcrumb-content {
        padding: 50px 0 25px;
    }
    .breadcrumb-area {
        min-height: 150px;
    }
    .breadcrumb-trail {
        font-size: 12px;
        gap: 3px;
    }
    .breadcrumb-trail a,
    .breadcrumb-trail .current {
        padding: 2px 6px;
    }

    /* Single Post - Mobile Small */
    .page-content-area {
        padding: 40px 0;
    }
    .single-post-wrapper {
        margin-bottom: 25px;
    }
    .single-post-area .post-title {
        font-size: 22px;
        margin: 8px 0 15px;
    }
    .single-post-area .post-content {
        padding: 15px;
    }
    .entry-content p {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 20px;
    }
    .entry-content h2 {
        font-size: 1.3rem;
        margin-top: 25px;
    }
    .entry-content h3 {
        font-size: 1.15rem;
    }
    .entry-content blockquote {
        padding: 10px 15px;
        font-size: 14px;
        margin: 15px 0;
    }
    .entry-content blockquote cite {
        font-size: 13px;
    }
    .post-footer-meta {
        padding: 12px 15px;
    }
    .post-tags .tag-label {
        display: block;
        margin-bottom: 8px;
    }
    .post-tags a {
        margin-bottom: 5px;
        display: inline-block;
    }
    .wp-link-pages {
        font-size: 14px;
    }
    .author-bio-box {
        padding: 20px;
        gap: 15px;
    }
    .author-avatar img {
        width: 60px;
        height: 60px;
    }
    .author-info h4 {
        font-size: 18px;
    }
    .author-info p {
        font-size: 14px;
    }
    .nav-btn {
        padding: 15px;
    }
    .nav-subtitle {
        font-size: 12px;
    }
    .nav-title {
        font-size: 14px;
    }
    .comments-area {
        padding: 15px;
    }
    .comments-title,
    .comment-reply-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    .comment-avatar img {
        width: 35px;
        height: 35px;
    }
    .comment-author {
        font-size: 14px;
    }
    .comment-date {
        font-size: 12px;
    }
    .comment-text p {
        font-size: 14px;
    }
    .comment-reply-link-wrap a {
        font-size: 12px;
    }
    .children {
        margin-left: 10px;
    }
    .related-posts-wrapper {
        margin-top: 30px;
    }
    .related-posts-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    .related-post-thumb img {
        height: 140px;
    }
    .related-post-content {
        padding: 12px;
    }
    .related-post-content h4 {
        font-size: 14px;
    }
    .post-meta-list {
        gap: 5px;
        font-size: 11px;
    }
    .post-meta-list li i {
        font-size: 10px;
    }
    .single-post-area .post-meta {
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* Print styles */
@media print {
    .main-header,
    .main-footer,
    .back-to-top,
    .preloader,
    .main-mobile-nav,
    .breadcrumb-area {
        display: none !important;
    }
    body {
        font-size: 12pt;
        color: #000;
    }
    a { color: #000; text-decoration: underline; }
}
