/**
 * Mobile Responsive Styles for Outwork Website
 * These styles ensure mobile compatibility without affecting desktop view
 */

/* ===== GLOBAL MOBILE RESPONSIVE ===== */
@media (max-width: 1199px) {
    /* Header adjustments */
    .header.axil-header {
        padding: 15px 0 !important;
        position: relative;
        z-index: 100;
    }

    .header-wrap {
        padding: 0 20px;
        max-width: 100% !important;
        display: flex;
        align-items: center;
    }

    .header-wrap .row {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 0;
    }

    .logo {
        flex-shrink: 0;
    }

    .logo img {
        max-height: 50px;
        width: auto;
        display: block;
    }

    /* Container adjustments */
    .container,
    .container-fluid {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* Navigation adjustments */
    .mainmenu-wrapper,
    .mainmenu-nav {
        display: none !important;
    }

    /* Hamburger menu */
    .hamburger-menu {
        display: flex !important;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        padding: 10px;
        z-index: 101;
    }

    .hamburger-menu .hamburger-inner {
        display: flex;
        align-items: center;
    }

    .hamburger-menu .icon i {
        font-size: 24px;
        color: #333;
    }

    /* Header search adjustments */
    .header-search {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .header-search .blog-search {
        max-width: 200px;
    }

    /* All header styles */
    .header-style-1,
    .header-style-2,
    .header-style-3,
    .header-style-4,
    .header-style-5 {
        padding: 15px 0 !important;
    }

    /* Header columns responsive */
    .header-wrap > .row > [class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
    }

    .axil-mainmenu-withbar {
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
    }
}

@media (max-width: 991px) {
    /* Header */
    .header.axil-header {
        padding: 12px 0 !important;
        width: 100% !important;
    }

    .header-wrap {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100%;
    }

    .header-wrap .row {
        margin: 0 !important;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .logo {
        flex: 0 0 auto;
    }

    .logo img {
        max-height: 45px;
        width: auto;
        height: auto;
    }

    /* Ensure hamburger menu is visible */
    .hamburger-menu {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .mainmenu-wrapper,
    .mainmenu-nav {
        display: none !important;
    }

    /* Header row adjustments */
    .header-wrap .row > [class*="col-"] {
        padding-left: 8px;
        padding-right: 8px;
        flex: 0 0 auto;
    }

    /* Center column with hamburger */
    .axil-mainmenu-withbar {
        flex: 0 0 auto !important;
        max-width: none !important;
        width: auto !important;
        display: flex !important;
        align-items: center;
    }

    /* Header search adjustments */
    .header-search {
        margin-left: auto;
        display: flex;
        align-items: center;
        flex: 0 0 auto;
    }

    .header-search .blog-search {
        max-width: 180px;
    }

    .header-search .axil-search.form-group input {
        font-size: 14px;
        padding: 8px 35px 8px 12px;
    }

    /* Meta bar */
    .metabar-block {
        display: flex;
        align-items: center;
    }

    .metabar-block li {
        margin-left: 10px;
    }

    /* Hide header top on tablets */
    .header-top {
        display: none;
    }

    /* Container */
    .container,
    .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Typography */
    h1 {
        font-size: 32px !important;
    }

    h2 {
        font-size: 28px !important;
    }

    h3 {
        font-size: 24px !important;
    }

    h4 {
        font-size: 20px !important;
    }

    p {
        font-size: 15px;
    }

    /* Spacing */
    .section-gap {
        padding: 50px 0;
    }

    /* Header specific styles for all header types */
    .header-style-1,
    .header-style-2,
    .header-style-3,
    .header-style-4,
    .header-style-5 {
        padding: 12px 0 !important;
    }

    /* Hide desktop search on smaller tablets */
    .d-none.d-sm-block.col-lg-3.col-md-3.col-sm-3 .blog-search {
        max-width: 150px;
    }
}

@media (max-width: 768px) {
    /* Header */
    .header.axil-header {
        padding: 10px 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    .header-wrap {
        padding: 0 12px !important;
        max-width: 100% !important;
        width: 100%;
    }

    .header-wrap .row {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        margin: 0 !important;
        width: 100%;
        flex-wrap: nowrap !important;
    }

    .logo {
        flex: 0 0 auto;
        max-width: 150px;
    }

    .logo img {
        max-height: 40px;
        width: auto;
        height: auto;
    }

    /* Logo column */
    .header-wrap .row .col-6,
    .header-wrap .row .col-sm-6,
    .header-wrap .row .col-md-3,
    .header-wrap .row .col-lg-3,
    .header-wrap .row .col-xl-2 {
        flex: 0 0 auto !important;
        max-width: none !important;
        width: auto !important;
    }

    /* Menu column */
    .axil-mainmenu-withbar {
        flex: 0 0 auto !important;
        max-width: none !important;
        width: auto !important;
        display: flex !important;
        align-items: center !important;
    }

    /* Hamburger menu */
    .hamburger-menu {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 8px;
    }

    .hamburger-menu .icon,
    .hamburger-menu .hamburger-inner .icon {
        font-size: 22px;
        display: flex;
        align-items: center;
    }

    .hamburger-menu .icon i {
        font-size: 22px;
    }

    /* Hide desktop navigation */
    .mainmenu-wrapper,
    .mainmenu-nav {
        display: none !important;
    }

    /* Mobile search wrapper */
    .mobile-search-wrapper {
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        flex: 0 0 auto;
        gap: 8px;
    }

    /* Hide desktop search, show mobile search */
    .d-none.d-sm-block {
        display: none !important;
    }

    .mobile-search-wrapper.d-block.d-sm-none {
        display: flex !important;
    }

    /* Search icon button */
    .search-mobile-icon {
        display: flex;
        align-items: center;
    }

    .search-mobile-icon button {
        background: transparent;
        border: none;
        font-size: 18px;
        padding: 8px;
        cursor: pointer;
        color: #333;
        display: flex;
        align-items: center;
    }

    /* Mobile search form */
    .large-mobile-blog-search {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: #fff;
        padding: 15px;
        z-index: 9999;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        display: none;
    }

    .large-mobile-blog-search.active {
        display: block !important;
    }

    .axil-search-mobile.form-group {
        width: 100%;
        margin: 0;
    }

    .axil-search-mobile.form-group input {
        width: 100%;
        padding: 12px 40px 12px 15px;
        font-size: 14px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
    }

    /* Cart icon */
    .metabar-block {
        display: flex;
        align-items: center;
    }

    .metabar-block li.icon a {
        font-size: 18px;
        padding: 8px;
    }

    /* Container */
    .container,
    .container-fluid {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Buttons */
    .axil-button,
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* Typography */
    h1 {
        font-size: 28px !important;
        line-height: 1.3;
    }

    h2 {
        font-size: 24px !important;
    }

    h3 {
        font-size: 20px !important;
    }

    h4 {
        font-size: 18px !important;
    }

    p {
        font-size: 14px;
        line-height: 1.7;
    }

    /* Spacing */
    .section-gap {
        padding: 40px 0;
    }

    .mb--60,
    .mb--40 {
        margin-bottom: 30px;
    }

    .mt--60,
    .mt--40 {
        margin-top: 30px;
    }

    /* Header specific styles for all header types */
    .header-style-1 .header-wrap,
    .header-style-2 .header-wrap,
    .header-style-3 .header-wrap,
    .header-style-4 .header-wrap,
    .header-style-5 .header-wrap {
        display: flex;
        align-items: center;
    }

    /* Ensure proper flex behavior */
    .header-wrap > .row {
        width: 100%;
        flex: 1;
    }
}

@media (max-width: 576px) {
    /* Header */
    .header.axil-header {
        padding: 8px 0 !important;
        width: 100% !important;
    }

    .header-wrap {
        padding: 0 10px !important;
        max-width: 100% !important;
        width: 100%;
    }

    .logo {
        max-width: 120px;
    }

    .logo img {
        max-height: 35px;
        width: auto;
        height: auto;
    }

    /* Header layout for very small screens */
    .header-wrap .row {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        margin: 0 !important;
        width: 100%;
        flex-wrap: nowrap !important;
    }

    .header-wrap .row > [class*="col-"] {
        padding-left: 5px !important;
        padding-right: 5px !important;
        flex: 0 0 auto !important;
    }

    /* Logo takes minimal space */
    .header-wrap .logo {
        flex-shrink: 0;
    }

    /* Hamburger and search icons */
    .hamburger-menu {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 6px;
    }

    .hamburger-menu .icon,
    .hamburger-menu .hamburger-inner .icon {
        font-size: 20px;
    }

    .hamburger-menu .icon i {
        font-size: 20px;
    }

    /* Mobile search */
    .mobile-search-wrapper {
        display: flex !important;
        align-items: center;
        gap: 6px;
    }

    .search-mobile-icon button {
        padding: 6px;
        font-size: 16px;
    }

    /* Cart icon adjustments */
    .metabar-block {
        display: flex;
        align-items: center;
    }

    .metabar-block li {
        margin-left: 6px;
    }

    .metabar-block li.icon a {
        font-size: 16px;
        padding: 6px;
    }

    /* Mini cart count badge */
    .mini-cart .aw-cart-count {
        font-size: 10px;
        min-width: 16px;
        height: 16px;
        line-height: 16px;
    }

    /* Container */
    .container,
    .container-fluid {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* Typography */
    h1 {
        font-size: 24px !important;
    }

    h2 {
        font-size: 22px !important;
    }

    h3 {
        font-size: 19px !important;
    }

    h4 {
        font-size: 17px !important;
    }

    p {
        font-size: 14px;
    }

    /* Buttons */
    .axil-button,
    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    /* Spacing */
    .section-gap {
        padding: 30px 0;
    }

    .mb--60,
    .mb--40 {
        margin-bottom: 20px;
    }

    .mt--60,
    .mt--40 {
        margin-top: 20px;
    }

    /* Header sticky adjustments */
    .header-sticky.sticky {
        padding: 6px 0 !important;
    }

    .header-sticky.sticky .logo img {
        max-height: 32px;
    }
}

/* ===== FOOTER RESPONSIVE ===== */
@media (max-width: 991px) {
    /* Footer Area */
    .axil-footer-area {
        padding: 50px 0 20px;
        width: 100% !important;
        max-width: 100% !important;
    }

    .footer-area {
        padding: 50px 0 30px;
    }

    /* Footer Mainmenu */
    .footer-mainmenu {
        padding: 40px 0;
        width: 100% !important;
    }

    .footer-mainmenu .container {
        max-width: 100% !important;
        padding: 0 15px !important;
    }

    .footer-mainmenu .row {
        margin: 0 -10px;
        display: flex;
        flex-wrap: wrap;
    }

    .footer-mainmenu .row > [class*="col-"] {
        padding: 0 10px;
        margin-bottom: 30px;
        flex: 0 0 50%;
        max-width: 50%;
    }

    /* Footer Widgets */
    .footer-widget {
        margin-bottom: 30px;
        width: 100%;
    }

    .footer-widget-item {
        padding: 0;
        width: 100%;
    }

    .footer-widget .widget-title,
    .footer-widget-item .widget-title {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .footer-widget ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .footer-widget ul li {
        margin-bottom: 8px;
    }

    .footer-widget ul li a {
        font-size: 14px;
        color: #666;
        transition: color 0.3s;
    }

    .footer-widget ul li a:hover {
        color: #6a4bc5;
    }

    /* Footer Top */
    .footer-top {
        padding: 30px 0;
        width: 100% !important;
    }

    .footer-top .container {
        max-width: 100% !important;
        padding: 0 15px !important;
    }

    .footer-top .row {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-top .logo {
        margin-bottom: 20px;
        text-align: center;
    }

    .footer-top .logo img {
        max-height: 50px;
        width: auto;
    }

    /* Social Icons */
    .social-icon {
        justify-content: center;
        margin-top: 15px;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .follow-title {
        text-align: center;
        width: 100%;
        margin-bottom: 15px !important;
    }

    /* Copyright Area */
    .copyright-area {
        padding: 20px 0;
        width: 100% !important;
    }

    .copyright-area .container {
        max-width: 100% !important;
        padding: 0 15px !important;
    }

    .copyright-area .row {
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .copyright-left,
    .copyright-right {
        text-align: center !important;
        width: 100%;
    }

    .copyright-left ul {
        justify-content: center;
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .copyright-left ul li a {
        color: #666;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    /* Footer Area */
    .axil-footer-area {
        padding: 40px 0 15px;
        width: 100% !important;
        max-width: 100vw !important;
    }

    .footer-area {
        padding: 40px 0 20px;
    }

    /* Footer Mainmenu */
    .footer-mainmenu {
        padding: 30px 0;
        width: 100% !important;
    }

    .footer-mainmenu .row {
        display: flex;
        flex-wrap: wrap;
        margin: 0 !important;
    }

    .footer-mainmenu .row > [class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 25px;
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Footer Widgets */
    .footer-widget {
        margin-bottom: 25px;
        width: 100%;
    }

    .footer-widget .widget-title,
    .footer-widget-item .widget-title {
        font-size: 17px;
        margin-bottom: 12px;
    }

    .footer-widget ul {
        padding-left: 0;
        list-style: none;
    }

    .footer-widget ul li a {
        font-size: 13px;
        display: block;
        padding: 5px 0;
    }

    /* Footer Top */
    .footer-top {
        padding: 25px 0;
        width: 100% !important;
    }

    .footer-top .container,
    .footer-mainmenu .container,
    .copyright-area .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
        max-width: 100% !important;
    }

    .footer-top .row {
        display: flex;
        flex-direction: column;
        text-align: center;
        margin: 0 !important;
    }

    .footer-top .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
        width: 100%;
    }

    .footer-top .logo {
        margin-bottom: 15px;
        text-align: center;
    }

    .footer-top .logo img {
        max-height: 45px;
        max-width: 200px;
    }

    /* Social Icons */
    .social-icon.md-size {
        font-size: 16px;
    }

    .social-icon {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        padding: 0;
        list-style: none;
    }

    .social-icon li {
        margin: 5px 8px;
    }

    .d-flex.justify-content-start {
        justify-content: center !important;
        flex-direction: column;
        align-items: center;
    }

    /* Copyright */
    .copyright-area {
        padding: 15px 0;
        width: 100% !important;
    }

    .copyright-area .row {
        display: flex;
        flex-direction: column;
        text-align: center;
        margin: 0 !important;
    }

    .copyright-area .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
        margin-top: 15px;
        width: 100%;
    }

    .copyright-left,
    .copyright-right {
        text-align: center !important;
    }

    .copyright-left ul {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
        padding: 0;
        list-style: none;
        margin: 0;
    }

    .copyright-right p,
    .copyright-left p {
        font-size: 13px;
        margin: 0;
    }

    /* Footer Border */
    .footer-widget-item.axil-border-right {
        border-right: none !important;
    }
}

@media (max-width: 576px) {
    /* Footer Area */
    .axil-footer-area {
        padding: 30px 0 10px;
        width: 100% !important;
        max-width: 100vw !important;
    }

    .footer-area {
        padding: 30px 0 15px;
    }

    /* Footer Mainmenu - Single Column */
    .footer-mainmenu {
        padding: 25px 0;
        width: 100% !important;
    }

    .footer-mainmenu .row {
        margin: 0 !important;
    }

    .footer-mainmenu .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Footer Widgets */
    .footer-widget {
        width: 100%;
        text-align: center;
    }

    .footer-widget .widget-title,
    .footer-widget-item .widget-title {
        font-size: 16px;
        margin-bottom: 10px;
        text-align: center;
    }

    .footer-widget ul {
        padding-left: 0;
        list-style: none;
        text-align: center;
    }

    .footer-widget ul li {
        margin-bottom: 6px;
    }

    .footer-widget ul li a {
        font-size: 13px;
        display: inline-block;
        padding: 5px 0;
    }

    /* Footer Top */
    .footer-top {
        padding: 20px 0;
        width: 100% !important;
    }

    .footer-top .container,
    .footer-mainmenu .container,
    .copyright-area .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
        max-width: 100% !important;
    }

    .footer-top .logo {
        text-align: center;
    }

    .footer-top .logo img {
        max-height: 40px;
        max-width: 180px;
    }

    /* Social Icons */
    .social-icon {
        justify-content: center;
    }

    .social-icon li {
        margin: 3px 6px;
    }

    .social-icon li a {
        font-size: 14px;
        width: 35px;
        height: 35px;
        line-height: 35px;
    }

    .follow-title {
        font-size: 15px;
        text-align: center;
        width: 100%;
    }

    /* Copyright */
    .copyright-area {
        padding: 12px 0;
        width: 100% !important;
    }

    .copyright-area .row {
        margin: 0 !important;
    }

    .copyright-left ul {
        gap: 8px;
        justify-content: center;
    }

    .copyright-left ul li a,
    .copyright-right p {
        font-size: 12px;
    }
}

/* ===== ADDITIONAL UTILITY CLASSES ===== */
@media (max-width: 991px) {
    .hide-on-tablet {
        display: none !important;
    }

    .show-on-tablet {
        display: block !important;
    }

    /* Ensure all text is readable */
    body {
        font-size: 15px;
        line-height: 1.6;
    }

    /* Buttons responsive */
    .btn,
    .axil-button,
    button:not(.hamburger-menu):not(.search-mobile-icon button):not(.mobile-close) {
        padding: 12px 24px;
        font-size: 14px;
        border-radius: 8px;
    }
}

@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }

    .show-on-mobile {
        display: block !important;
    }

    /* Flex utilities */
    .mobile-center {
        text-align: center !important;
    }

    .mobile-full-width {
        width: 100% !important;
    }

    /* Touch-friendly clickable areas */
    a, button, input[type="submit"], .hamburger-menu {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Readable text */
    body {
        font-size: 14px;
        line-height: 1.7;
    }

    /* Smooth scrolling */
    html {
        scroll-behavior: smooth;
    }
}

/* ===== ACCESSIBILITY & TOUCH IMPROVEMENTS ===== */
@media (max-width: 768px) {
    /* Larger touch targets */
    .hamburger-menu,
    .mobile-close,
    .search-mobile-icon button,
    .category-checkbox-wrapper {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Better form inputs */
    input[type="text"],
    input[type="email"],
    input[type="search"],
    textarea,
    select {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 12px !important;
        border-radius: 8px;
    }

    /* Focus states for accessibility */
    a:focus,
    button:focus,
    input:focus,
    .hamburger-menu:focus {
        outline: 2px solid #6a4bc5;
        outline-offset: 2px;
    }
}

/* ===== IMAGES & MEDIA RESPONSIVE ===== */
@media (max-width: 768px) {
    img {
        max-width: 100%;
        height: auto;
    }

    .wp-block-image img {
        width: 100%;
        height: auto;
    }

    iframe,
    video {
        max-width: 100%;
    }

    .embed-responsive {
        position: relative;
        display: block;
        width: 100%;
        padding: 0;
        overflow: hidden;
    }

    .embed-responsive::before {
        padding-top: 56.25%; /* 16:9 aspect ratio */
        display: block;
        content: "";
    }

    .embed-responsive iframe,
    .embed-responsive video {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }
}

/* ===== BLOG POSTS & CONTENT ===== */
@media (max-width: 991px) {
    .post-content,
    .entry-content {
        padding: 20px;
    }

    .post-thumbnail img {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .post-content,
    .entry-content {
        padding: 15px;
    }

    .post-meta {
        font-size: 13px;
    }

    .post-meta > * {
        margin-right: 10px;
    }
}

/* ===== MAIN WRAPPER ===== */
@media (max-width: 991px) {
    .main-wrapper {
        padding: 30px 0;
    }
}

@media (max-width: 768px) {
    .main-wrapper {
        padding: 20px 0;
    }
}

@media (max-width: 576px) {
    .main-wrapper {
        padding: 15px 0;
    }
}

/* ===== HOME PAGE / FRONT PAGE RESPONSIVE ===== */
@media (max-width: 1200px) {
    /* Home page container */
    .custom-blog-grid-wrapper .container-fluid {
        max-width: 100% !important;
        padding: 35px 20px !important;
    }
}

@media (max-width: 991px) {
    /* Home page container */
    .custom-blog-grid-wrapper .container-fluid {
        padding: 30px 15px !important;
        max-width: 100% !important;
    }

    /* Ensure home page is fully responsive */
    .custom-blog-grid-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    /* Posts grid - 2 columns on tablets */
    .posts-grid-container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 18px !important;
        width: 100% !important;
    }

    .post-card {
        width: 100% !important;
        max-width: 100% !important;
    }

    .post-card:nth-child(1),
    .post-card:nth-child(2),
    .post-card:nth-child(n+3) {
        grid-column: span 1 !important;
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    /* Home page container */
    .custom-blog-grid-wrapper {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    .custom-blog-grid-wrapper .container-fluid {
        padding: 25px 12px !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Make sure all elements are responsive */
    .custom-blog-grid-wrapper * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Posts grid - FORCE 1 FULL WIDTH COLUMN on mobile */
    .posts-grid-container {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-auto-columns: 100% !important;
        gap: 24px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .post-card {
        width: 100% !important;
        max-width: 100% !important;
        grid-column: 1 / -1 !important;
    }

    .post-card:nth-child(1),
    .post-card:nth-child(2),
    .post-card:nth-child(n+3) {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Clean mobile post card design */
    .post-card {
        border-radius: 16px !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
    }

    /* Thumbnail styling */
    .post-card-thumbnail {
        height: 200px !important;
        border-radius: 16px 16px 0 0 !important;
    }

    .post-card:nth-child(1) .post-card-thumbnail,
    .post-card:nth-child(2) .post-card-thumbnail,
    .post-card:nth-child(n+3) .post-card-thumbnail {
        height: 200px !important;
        border-radius: 16px 16px 0 0 !important;
    }

    /* Content spacing */
    .post-card-content {
        padding: 16px !important;
    }

    /* Title styling - prominent */
    .post-card-title {
        font-size: 15px !important;
        font-weight: 600 !important;
        line-height: 1.4 !important;
        margin-bottom: 0 !important;
        color: #1a1a1a !important;
        -webkit-line-clamp: 2 !important;
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    /* Hide excerpt, metadata, and category badge on mobile for clean design */
    .post-card-excerpt {
        display: none !important;
    }

    .post-card-meta {
        display: none !important;
    }

    .post-category-badge {
        display: none !important;
    }
}

@media (max-width: 576px) {
    /* Home page container */
    .custom-blog-grid-wrapper {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    .custom-blog-grid-wrapper .container-fluid {
        padding: 20px 10px !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Posts grid - FORCE 1 FULL WIDTH COLUMN */
    .posts-grid-container {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-auto-columns: 100% !important;
        gap: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .post-card {
        width: 100% !important;
        max-width: 100% !important;
        grid-column: 1 / -1 !important;
    }

    .post-card:nth-child(1),
    .post-card:nth-child(2),
    .post-card:nth-child(n+3) {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Clean card design */
    .post-card {
        border-radius: 14px !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06) !important;
    }

    /* Smaller thumbnails on very small screens */
    .post-card-thumbnail {
        height: 180px !important;
        border-radius: 14px 14px 0 0 !important;
    }

    .post-card:nth-child(1) .post-card-thumbnail,
    .post-card:nth-child(2) .post-card-thumbnail,
    .post-card:nth-child(n+3) .post-card-thumbnail {
        height: 180px !important;
        border-radius: 14px 14px 0 0 !important;
    }

    /* Adjust content padding */
    .post-card-content {
        padding: 14px !important;
    }

    .post-card-title {
        font-size: 14px !important;
        font-weight: 600 !important;
        line-height: 1.4 !important;
        margin-bottom: 0 !important;
    }

    /* Keep elements hidden on small screens */
    .post-card-excerpt {
        display: none !important;
    }

    .post-card-meta {
        display: none !important;
    }

    .post-category-badge {
        display: none !important;
    }
}

/* ===== PAGE TITLE / BREADCRUMB RESPONSIVE ===== */
@media (max-width: 991px) {
    .page-title-area,
    .breadcrumb-area {
        padding: 40px 0;
    }

    .page-title-area .container,
    .breadcrumb-area .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .page-title,
    .breadcrumb-title {
        font-size: 28px !important;
    }
}

@media (max-width: 768px) {
    .page-title-area,
    .breadcrumb-area {
        padding: 30px 0;
    }

    .page-title,
    .breadcrumb-title {
        font-size: 24px !important;
    }

    .breadcrumb-list {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .page-title-area,
    .breadcrumb-area {
        padding: 25px 0;
    }

    .page-title,
    .breadcrumb-title {
        font-size: 22px !important;
    }
}

/* ===== MOBILE MENU RESPONSIVE ===== */

/* Mobile menu base styles */
.popup-mobilemenu-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-mobile-menu-show .popup-mobilemenu-area {
    opacity: 1 !important;
    visibility: visible !important;
}

.popup-mobilemenu-area .inner {
    position: absolute;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background: #ffffff;
    overflow-y: auto;
    transition: all 0.4s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
}

.popup-mobile-menu-show .popup-mobilemenu-area .inner {
    right: 0 !important;
}

/* Mobile menu top section */
.mobile-menu-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e6e6e6;
}

.mobile-menu-top .logo img {
    max-height: 40px;
}

.mobile-close {
    cursor: pointer;
    padding: 10px;
}

.mobile-close .icon {
    font-size: 24px;
    color: #333;
    transition: color 0.3s;
}

.mobile-close .icon:hover {
    color: #6a4bc5;
}

/* Mobile menu navigation */
.mobile-menu-wrapper,
.popup-mobilemenu-area .mainmenu-nav {
    padding: 20px;
}

.popup-mobilemenu-area .mainmenu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popup-mobilemenu-area .mainmenu li {
    border-bottom: 1px solid #f0f0f0;
}

.popup-mobilemenu-area .mainmenu li a {
    display: block;
    padding: 12px 0;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}

.popup-mobilemenu-area .mainmenu li a:hover {
    color: #6a4bc5;
}

/* Submenu styles */
.popup-mobilemenu-area .submenu,
.popup-mobilemenu-area .megamenu-sub-menu {
    display: none;
    list-style: none;
    padding-left: 20px;
    margin: 0;
}

.popup-mobilemenu-area .submenu.active,
.popup-mobilemenu-area .megamenu-sub-menu.active {
    display: block;
}

.popup-mobilemenu-area .has-children > a {
    position: relative;
    padding-right: 30px;
}

.popup-mobilemenu-area .has-children > a::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Pro';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s;
}

.popup-mobilemenu-area .has-children > a.open::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Hamburger menu button */
.hamburger-menu {
    cursor: pointer !important;
    padding: 8px;
    display: none;
    z-index: 100;
    position: relative;
}

.hamburger-menu * {
    pointer-events: none;
}

.hamburger-menu .hamburger-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger-menu .hamburger-inner .icon {
    font-size: 24px;
    color: #333;
    transition: color 0.3s;
    display: block;
}

.hamburger-menu:hover .hamburger-inner .icon {
    color: #6a4bc5;
}

.hamburger-menu:active {
    transform: scale(0.95);
}

@media (max-width: 1199px) {
    /* Show hamburger menu */
    .hamburger-menu {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Hide desktop menu */
    .mainmenu-wrapper {
        display: none !important;
    }

    /* Mobile menu adjustments */
    .popup-mobilemenu-area {
        display: block !important;
    }

    .popup-mobilemenu-area .inner {
        width: 300px;
    }

    .popup-mobilemenu-area .mainmenu li a {
        font-size: 15px;
        padding: 10px 0;
    }
}

@media (max-width: 576px) {
    .popup-mobilemenu-area .inner {
        width: 280px;
        max-width: 85vw;
    }

    .popup-mobilemenu-area .mainmenu li a {
        font-size: 14px;
        padding: 8px 0;
    }

    .mobile-menu-top {
        padding: 15px;
    }

    .mobile-menu-wrapper,
    .popup-mobilemenu-area .mainmenu-nav {
        padding: 15px;
    }
}

/* ===== ENSURE NO HORIZONTAL SCROLL ===== */
@media (max-width: 991px) {
    html {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        position: relative;
    }

    .main-content {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    .header-wrap,
    .footer-wrap,
    .main-wrapper {
        max-width: 100vw !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    /* Ensure all rows and containers stay within bounds */
    .row {
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .container,
    .container-fluid {
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    /* Prevent any element from causing horizontal scroll */
    * {
        box-sizing: border-box !important;
    }

    img,
    video,
    iframe {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Fix header from overflowing */
    .header.axil-header {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    .header-wrap > .row {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Fix footer from overflowing */
    .axil-footer-area {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    .footer-mainmenu,
    .footer-top,
    .copyright-area {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
}

@media (max-width: 768px) {
    /* Additional mobile fixes */
    .header-wrap .row > [class*="col-"] {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    /* Ensure footer widgets don't overflow */
    .footer-widget,
    .footer-widget-item {
        max-width: 100% !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
    }

    /* Make sure social icons wrap properly */
    .social-icon {
        flex-wrap: wrap !important;
    }
}

@media (max-width: 576px) {
    /* Very small screens - tighten everything */
    .header-wrap .row > [class*="col-"] {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    /* Category filters should wrap */
    .category-checkboxes {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ===== LANDSCAPE ORIENTATION ADJUSTMENTS ===== */
@media (max-width: 768px) and (orientation: landscape) {
    .header.axil-header {
        padding: 6px 0;
    }

    .logo img {
        max-height: 35px;
    }

    .section-gap {
        padding: 30px 0;
    }
}
