/* ===== RESPONSIVE STYLES FOR HOME PAGE ===== */

@media (max-width: 1199px) {
    .hero-title {
        font-size: 68px;
        line-height: 80px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {

    /* Hide CTA button on Tablet Landscape to fix header overflow/squishing */
    .header-cta {
        display: none !important;
    }
}

@media (max-width: 991px) {

    /* Hide hero slider arrows on tablet & mobile (users can swipe) */
    .hero-area .swiper-button-prev,
    .hero-area .swiper-button-next,
    .hero-area [class*="nav-prev"],
    .hero-area [class*="nav-next"],
    .custom-hero-controls {
        display: none !important;
    }

    /* Hero Layout: Image on Top, Content on Bottom */
    .hero-area .row {
        flex-direction: column-reverse;
    }

    .hero-area .row>div:last-child {
        margin-bottom: 30px;
        /* Space between image and text */
    }

    section {
        padding: 80px 0;
    }

    /* CSS-only auto-sliding marquee for cert-bar on tablet & mobile */
    .cert-bar .container {
        padding: 0;
        overflow: hidden;
    }

    .cert-bar .row {
        display: flex;
        flex-wrap: nowrap;
        width: max-content;
        animation: certMarquee 10s linear infinite;
        padding-bottom: 0;
    }

    .cert-bar [class*="col-"] {
        flex: 0 0 auto;
        width: max-content;
        max-width: none;
        padding: 0 30px;
    }

    @keyframes certMarquee {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-100% + 100vw));
        }
    }

    .cert-item {
        margin-bottom: 0;
        flex-direction: row;
        text-align: left;
    }

    .hero-title {
        font-size: 56px;
        line-height: 64px;
    }

    .section-title {
        font-size: 38px;
        line-height: 46px;
    }

    .why-desc-col {
        padding-left: 15px;
        margin-top: 20px;
    }

    .facility-stats-layout {
        gap: 30px;
    }

    .stat-block-1 h3,
    .stat-block-2 h3 {
        font-size: 28px;
    }

    /* iPad & Mobile Landmark Overrides */
    .landmark-card {
        height: 150px;
    }

    .landmark-content {
        padding: 10px;
    }

    .landmark-title {
        font-size: 14px;
    }

    /* iPad & Mobile Footer Spacing */
    .site-footer {
        padding-top: 40px !important;
    }

    .footer-logo-divider {
        margin: 15px 0 !important;
    }

    /* iPad & Mobile Header Alignment */
    .site-header {
        height: auto;
        padding: 14px 0;
    }

    .facility-left-panel {
        margin-bottom: 40px;
    }
}

@media (max-width: 767px) {
    .facility-stats-layout {
        flex-direction: column;
        gap: 20px;
    }



    section {
        padding: 50px 0 !important;
    }

    .hero-area {
        padding: 0 0 40px 0;
    }

    .hero-title {
        font-size: 40px;
        line-height: 50px;
    }

    .hero-description {
        font-size: 14px;
        line-height: 22px;
        margin-bottom: 20px;
    }

    .hero-cta-group {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .hero-cta-group .btn-hero-primary,
    .hero-cta-group .btn-hero-outline {
        width: 100%;
        text-align: center;
        padding: 15px 20px;
    }

    .products-section .swiper-wrapper {
        margin-bottom: 40px;
    }


    .section-title {
        font-size: 32px;
        line-height: 40px;
    }

    .cert-bar {
        padding: 20px 0px !important;
        overflow: hidden;
    }

    .product-card-desc {
        font-size: 14px;
        line-height: 22px;
    }

    .why-subtitle-desc {
        font-size: 14px;
        line-height: 22px;
        ;
    }


    .why-divider {
        margin: 20px 0;
    }

    .industry-card {
        height: 250px;
    }

}

@media (max-width: 575px) {
    .hero-title {
        font-size: 32px;
        line-height: 42px;
    }

    .section-title {
        font-size: 28px;
        line-height: 36px;
    }

    .hero-subtitle {
        padding-left: 50px;
        font-size: 10px;
    }

    .hero-subtitle::before {
        width: 40px;
    }

    .product-card {
        padding: 15px;
    }

    .f-card {
        padding: 20px;
    }

    .products-tabs {
        flex-direction: column;
        width: 100%;
    }

    .products-tabs .nav-item {
        width: 100%;
    }

    .products-tabs .nav-link {
        width: 100%;
        text-align: center;
        margin-bottom: 5px;
    }
}

/* ===== ABOUT PAGE MOBILE RESPONSIVENESS ===== */
@media (max-width: 768px) {

    /* Reduce Section Padding */
    .about-intro,
    .about-heritage,
    .about-build,
    .about-journey,
    .about-approach,
    .about-guides,
    .about-quality {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    /* Adjust Titles */
    .section-title,
    .approach-title-custom,
    .about-heritage-title {
        font-size: 28px !important;
        line-height: 1.3 !important;
    }

    .section-subtitle {
        font-size: 11px !important;
    }

    /* Values Grid single column on mobile */
    .values-grid {
        grid-template-columns: 1fr !important;
    }

    /* Stats Cards Spacing */
    .about-stat-card {
        margin-bottom: 15px;
    }

    /* Vertical Timeline for Journey Section */
    .timeline-row {
        position: relative;
    }

    .timeline-row::before {
        content: '';
        position: absolute;
        left: 28px;
        /* Centers line behind 40px icons with 8px padding */
        top: 0;
        bottom: 0;
        width: 2px;
        background-color: rgba(11, 106, 46, 0.3);
        z-index: 0;
    }

    .timeline-node-col {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        margin-bottom: 25px;
        position: relative;
        z-index: 1;
        padding-left: 8px;
        /* Align with the vertical line */
    }

    .node-icon-wrap {
        margin: 10px 15px 0 0 !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
        flex-shrink: 0;
        display: flex !important;
        align-items: center;
        justify-content: center;
        border: 2px solid #fff;
        /* Optional: adds a border to separate from line */
    }

    .node-card {
        text-align: left !important;
        padding: 15px !important;
        width: 100%;
        position: relative;
    }

    .node-card::after,
    .node-card::before {
        display: none !important;
        /* Hide the top pointer diamond */
    }

    /* Background Images Overlay adjustments for readability */
    .heritage-bg-image,
    .approach-bg-image {
        opacity: 0.2 !important;
    }

    /* Spacing between text and content columns */
    .about-intro-text,
    .approach-header,
    .journey-header,
    .about-build-header {
        margin-bottom: 40px !important;
    }

    /* Certification Cards Adjustment */
    .cert-card {
        margin-bottom: 10px;
    }

    /* Center align left-column texts on mobile for better flow */
    .about-intro-text,
    .approach-header,
    .journey-header,
    .about-build-header {
        text-align: center;
    }

    .guides-lead-text,
    .about-heritage-text,
    .journey-desc,
    .approach-text-custom {
        text-align: center;
    }
}