@media only screen and (max-width:498.98px) {
    #content main .table-data .head h3 {
        font-size: 18px;
    }
}

@media only screen and (max-width:767.98px) {
    .siteHeader {
        margin: 0 0rem;
        padding: 6px 0.5rem;
    }


    .sec1Content h2 {
        font-size: clamp(1.8rem, 6vw, 2.4rem);
        line-height: 1.15;
    }

    .sec1Content p {
        font-size: clamp(12px, 3.2vw, 14px);
        margin-top: 0.6rem;
        line-height: 1.35;
    }

    .commonSec {
        padding: 1rem 1rem;
    }

    .sec1 {
        min-height: 18rem;
        background-image: url(../img/headerBG.jpg);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: right center;
    }

    .aboutSec {
        grid-template-columns: 100%;
        gap: 1rem;
    }

    .aboutSec .aboutLft .abtBG {
        display: none;
    }

    .aboutSec .aboutRight p {
        margin-top: 0;
        margin-left: 0;
    }

    .aboutSec .aboutRight h2 {
        font-size: 3rem;
        margin-left: 0;
    }

    .categoriesGrid,
    .busInfoSec,
    .footerSec,
    .categoryGrid,
    .productDesc,
    .productDescLft {
        grid-template-columns: repeat(1, 1fr);
        gap: 1rem;
    }

    .busInfoSec .busCard:not(:last-child) {
        border-bottom: 2px solid var(--primary_clr);
        border-right: 0;
    }

    .categories .categoryCard {
        min-width: 100%;
    }

    .footerCard:not(:last-child) {
        border-right: 0;
        border-bottom: 3px solid var(--primary_clr);
    }

    .siteHeader img {
        height: 45px;
    }

    .productDescLft .productDescLft1 {
        grid-area: 2;
        flex-direction: row;
        gap: 1rem;
    }

    .productDescLft1 img {
        height: 6rem;
    }

    .productDescRght {
        padding: 0 0;
    }
}

@media only screen and (min-width:768px) and (max-width:1098.98) {}

@media only screen and (min-width:1099px) {}

/* ==================== HOME PAGE RESPONSIVE CUSTOM STYLING ==================== */

@media only screen and (max-width: 767.98px) {
    .siteHeader {
        width: 100% !important;
        margin: 0 !important;
        padding: 6px 10px !important;
        border-radius: 0 0 15px 15px !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 10000 !important;
        display: block !important;
        background: #ffffff !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    }

    .siteHeader img {
        height: 42px !important;
    }

    .siteHeader ul.siteNav {
        display: none !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        padding: 10px 0 !important;
        background: #ffffff !important;
        border-top: 1px solid #eee !important;
        border-radius: 8px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
        margin-top: 10px !important;
    }

    .siteHeader ul.siteNav.show {
        display: flex !important;
    }

    .siteHeader ul.siteNav li {
        width: 100% !important;
        display: block !important;
    }

    .siteHeader ul.siteNav li a {
        font-size: 15px !important;
        display: block !important;
        width: 100% !important;
        padding: 12px 20px !important;
        color: #333 !important;
        border-bottom: 1px solid #f8f9fa !important;
        white-space: nowrap !important;
    }

    .siteHeader ul.siteNav li a:hover {
        background-color: #f1f5f9 !important;
        color: var(--primary_clr) !important;
    }

    .siteHeader ul.siteNav li.mobile-phone {
        display: none !important;
    }

    /* Blog Grid listing and Category Grid listings */
    .categoryGrid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        padding: 1rem !important;
    }

    .categoryGrid .categoryCard {
        border-radius: 12px !important;
        padding: 0.6rem !important;
        box-shadow: 6px 6px 0px var(--primary_clr) !important;
        margin-bottom: 0.5rem;
    }

    .categoryGrid .categoryCard:nth-child(even) {
        box-shadow: 6px 6px 0px var(--secondary_clr) !important;
    }

    .categoryGrid .categoryCard h3 {
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        margin-bottom: 6px !important;
    }

    .categoryBody .categoryGrid .categoryCard img {
        width: 100% !important;
        height: 12rem !important;
        aspect-ratio: 1/1 !important;
        object-fit: contain !important;
        border-radius: 8px !important;
    }

    .categoryGrid .categoryCard p {
        font-size: 0.78rem !important;
        line-height: 1.4 !important;
        margin-top: 6px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    /* Single Blog post responsiveness */
    .categoryBody .commonSec h1 {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
    }

    .categoryBody .commonSec img:not(.categoryCard img) {
        max-height: 250px !important;
        object-fit: cover !important;
    }

    .categoryBody .commonSec div {
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
    }

    .home-page .ind.siteBody {
        margin-top: 0;
    }

    .commonSec {
        padding: 1rem 1rem !important;
    }

    .home-page .sec1 {
        min-height: auto;
        padding: 3rem 1rem;
        background-position: right center;
        background-size: cover;
    }

    .sec1Content,
    .home-page .sec1Content {
        max-width: 58% !important;
        width: 58% !important;
    }

    .home-page .sec1Content h2 {
        font-size: clamp(1.7rem, 6.5vw, 2.3rem);
        line-height: 1.15;
        text-align: left;
        word-wrap: break-word;
    }

    .home-page .sec1Content p {
        font-size: clamp(12px, 3.2vw, 14px);
        line-height: 1.35;
        text-align: left;
        margin: 0.6rem 0 0 0;
        max-width: 100%;
        word-wrap: break-word;
    }

    .home-page .aboutSec {
        grid-template-columns: 100%;
        gap: 2.5rem;
        padding: 2.5rem 1rem;
    }

    .home-page .aboutSec .aboutLft .abtBG {
        display: none;
    }

    .home-page .aboutSec .aboutLft img {
        width: 100%;
    }

    .home-page .aboutSec .aboutRight {
        align-items: center;
        text-align: center;
    }

    .home-page .aboutSec .aboutRight p {
        text-align: center;
        font-size: 1rem;
    }

    .home-page .aboutSec .aboutRight h2 {
        font-size: 2rem;
        text-align: center;
    }

    .home-page h4.site_Head {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .home-page .categoriesSec {
        padding: 2.5rem 1rem;
    }

    /* Force 4-column grid for categories on index.php in a well-adjusted way */
    .home-page .categoriesGrid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
    }

    .home-page .categoriesGrid .categoryCard {
        border-radius: 8px !important;
        border-width: 2px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
    }

    .home-page .categoriesGrid .categoryCard img {
        padding: 5px 5px 2px 5px !important;
    }

    .home-page .categoriesGrid .categoryCard h5 {
        font-size: 8px !important;
        line-height: 1.1 !important;
        padding: 4px 2px !important;
        min-height: 2.2rem !important;
    }

    .busInfoSec {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.4rem !important;
        padding: 1.5rem 0.4rem !important;
    }

    .busInfoSec .busCard {
        padding: 0.3rem !important;
        gap: 0.2rem !important;
    }

    .busInfoSec .busCard img {
        width: 32px !important;
        height: 32px !important;
        margin-bottom: 0.1rem !important;
    }

    .busInfoSec .busCard h5 {
        font-size: 0.65rem !important;
        line-height: 1.2 !important;
    }

    .busInfoSec .busCard p {
        font-size: 0.55rem !important;
        line-height: 1.2 !important;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .busInfoSec .busCard:not(:last-child) {
        border-bottom: 0 !important;
        border-right: 1px solid rgba(99, 137, 76, 0.2) !important;
    }

    .home-page .categoryGridInd {
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
        justify-content: center;
    }

    .home-page .categoryGridInd i {
        display: block;
        font-size: 24px;
        padding: 0 5px;
        cursor: pointer;
    }

    .home-page .categories {
        flex-direction: row;
        gap: 15px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scrollbar-width: none;
        /* Hide scrollbar for Firefox */
        -ms-overflow-style: none;
        /* Hide scrollbar for IE/Edge */
    }

    .home-page .categories::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar for Webkit browsers */
    }

    .home-page .categories .categoryCard {
        min-width: 100%;
        /* margin-top: 4rem; */
        padding: 3rem 1.2rem 1.5rem 1.2rem !important;
        position: relative !important;
        scroll-snap-align: start;
        box-sizing: border-box;
    }

    .home-page .categories .categoryCard::before {
        content: "" !important;
        width: 84px !important;
        height: 84px !important;
        background: var(--lightgrey) !important;
        border-radius: 50% !important;
        position: absolute !important;
        top: 0 !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 1 !important;
        display: block !important;
    }

    .home-page .categories .categoryCard img {
        width: 84px !important;
        height: 84px !important;
        border-radius: 50% !important;
        border: 4px solid var(--secondary_clr) !important;
        position: absolute !important;
        top: 0 !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        display: block !important;
        object-fit: cover !important;
        z-index: 2 !important;
    }

    .footerSecOuter {
        padding: 1.5rem 1rem !important;
    }

    .footerSec {
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 1.2rem !important;
    }

    .footerCard {
        padding: 0 !important;
        align-items: center !important;
        text-align: center !important;
        gap: 0.5rem !important;
    }

    .footerCard p {
        justify-content: center !important;
        text-align: center !important;
    }

    .footerCard:not(:last-child) {
        border-right: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
        padding-bottom: 1.2rem !important;
    }

    .get-directions-btn {
        margin-left: 5px !important;
        margin-top: 2px !important;
        display: inline-flex !important;
    }

    /* Mobile Footer 2-Column Grid Layout */
    .get-directions-desktop {
        display: none !important;
    }

    .get-directions-container-mobile {
        display: flex !important;
        justify-content: center !important;
    }

    .get-directions-container-mobile .get-directions-btn {
        margin: 0 !important;
        display: inline-flex !important;
    }

    .footer-bottom-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        align-items: center !important;
        width: 100% !important;
        margin-top: 12px !important;
    }

    .phone-block {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .phone-block p {
        margin: 0 !important;
        justify-content: center !important;
        text-align: center !important;
    }

    /* Display social icons on mobile */
    .siteHeader .socialSpan {
        display: flex !important;
        justify-content: center !important;
        margin: 5px auto 0 auto !important;
        gap: 0.8rem !important;
    }

    /* Mobile Search Bar */
    .search_sec {
        position: relative !important;
        right: auto !important;
        max-width: 100% !important;
        width: 100% !important;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06) !important;
        padding: 8px 10px !important;
        border-radius: 18px !important;
    }

    .search_sec.active,
    .search_sec:hover {
        right: auto !important;
    }

    .search_sec .search_in {
        width: 100% !important;
    }

    /* Booking Page mobile responsiveness fixes */
    .booking-container {
        margin: 1rem 0.5rem !important;
        border-radius: 12px !important;
    }

    .form-content {
        padding: 15px 12px !important;
    }

    .booking-container .section {
        padding: 12px !important;
        border-radius: 12px !important;
    }
}

@media only screen and (min-width: 768px) and (max-width: 1024.98px) {
    .siteHeader {
        width: 95% !important;
        margin: 0 auto !important;
        padding: 10px 20px !important;
    }

    .categoryGrid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.5rem !important;
        padding: 2rem !important;
    }

    .home-page .commonSec {
        padding: 3rem 2rem;
    }

    .home-page .aboutSec {
        gap: 2rem;
        padding: 3rem 2rem;
    }

    .home-page .aboutSec .aboutRight h2 {
        font-size: 2.6rem;
    }

    .home-page .categoriesGrid {
        grid-template-columns: repeat(4, 1fr) !important;
        /* Keep 4 columns but adjust sizes */
        gap: 1rem;
    }

    .home-page .categoriesGrid .categoryCard h5 {
        font-size: 0.9rem !important;
        min-height: 3.5rem !important;
    }

    .home-page .categoriesSec {
        padding: 3rem 2rem;
    }

    .busInfoSec {
        padding: 3rem 1.5rem !important;
    }

    .busInfoSec .busCard {
        padding: 0.5rem !important;
    }

    .footerSecOuter {
        padding: 2rem 2rem !important;
    }

    .footerCard {
        padding: 0 0.8rem !important;
        gap: 0.5rem !important;
    }
}

@media only screen and (max-width: 767.98px) {

    /* Blog Page Responsive Styles */
    .blog-hero {
        flex-direction: column !important;
        padding: 24px 20px !important;
        text-align: center;
        border-radius: 16px !important;
        gap: 20px !important;
        width: 95% !important;
    }

    .blog-hero-content {
        padding-right: 0 !important;
    }

    .blog-hero-content h1 {
        font-size: 28px !important;
    }

    .blog-hero-content p {
        font-size: 14px !important;
    }

    .blog-hero-image {
        flex: 0 0 100% !important;
        max-width: 280px;
        margin: 0 auto;
    }

    .blog-container {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        margin-top: 30px !important;
        width: 95% !important;
    }

    .featured-blog-card {
        flex-direction: column !important;
    }

    .featured-card-img {
        flex: 0 0 180px !important;
        width: 100% !important;
    }

    .featured-card-img img {
        min-height: 180px !important;
    }

    .featured-card-body {
        padding: 20px !important;
    }

    .featured-card-body h2 {
        font-size: 18px !important;
    }

    .latest-articles-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .blog-cta-banner {
        flex-direction: column !important;
        padding: 24px !important;
        border-radius: 16px !important;
        gap: 30px !important;
        width: 95% !important;
    }

    .cta-left {
        flex-direction: column !important;
        text-align: center;
        gap: 20px !important;
    }

    .cta-img-container {
        flex: 0 0 120px !important;
        max-width: 120px;
        margin: 0 auto;
    }

    .cta-text h2 {
        font-size: 20px !important;
    }

    .cta-text p {
        font-size: 14px !important;
    }

    .cta-right {
        flex: 0 0 100% !important;
        border-left: none !important;
        border-top: 1px dashed rgba(252, 157, 51, 0.3) !important;
        padding-left: 0 !important;
        padding-top: 24px !important;
    }
}