/* =====================
   RESPONSIVE STYLES - COMPLETE
===================== */

/* ===============================
   NAVBAR RESPONSIVE
=============================== */
@media (max-width: 991px) {
    .nav-logo {
        height: 36px;
    }
    
    .dg-navbar {
        border-radius: 0 0 20px 20px;
        width: 100%;
        margin-top: 0;
        padding: 12px 20px;
    }
    
    .nav-link {
        text-align: center;
        margin: 8px 0;
    }
    
    .nav-link::after {
        bottom: -4px;
    }
    
    .btn-contact {
        margin: 16px auto 8px;
        display: inline-block;
        width: fit-content;
    }
}

/* ===============================
   HERO SLIDER RESPONSIVE
=============================== */

/* Large Devices (≤1200px) */
@media (max-width: 1200px) {
    .title {
        font-size: 38px;
    }

    .subheading {
        font-size: 17px;
    }

    .inner {
        max-width: 800px;
    }
}

/* Tablets (≤992px) */
@media (max-width: 992px) {
    .hero-slider,
    .carousel-cell {
        height: 100vh;

    }

    .title {
        font-size: 32px;
    }

    .subheading {
        font-size: 16px;
    }

    .tag {
        font-size: 16px;
    }

    .inner {
        padding: 0 30px;
        margin: 0 auto;
        text-align: center;
    }

    .flickity-prev-next-button {
        width: 50px;
        height: 50px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

/* Mobile Devices (≤768px) */
@media (max-width: 768px) {
    .hero-slider,
    .carousel-cell {
        height: 100vh;
        min-height: 550px;
        background-position:right;
    }

    .inner {
        padding: 0 20px;
        text-align: center;
    }

    .title {
        font-size: 26px;
        line-height: 1.3;
    }

    .subheading {
        font-size: 15px;
        margin-bottom: 25px;
    }

    .tag {
        font-size: 14px;
        letter-spacing: 1.5px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .btn-primary-custom,
    .btn-secondary-custom {
        width: 80%;
        text-align: center;
        padding: 12px 20px;
    }

    .flickity-prev-next-button {
        display: none; /* Hide arrows on mobile */
    }
    
    .flickity-page-dots {
        bottom: 20px;
    }
}

/* Small Mobile (≤480px) */
@media (max-width: 480px) {
    .hero-slider,
    .carousel-cell {
        height: 100vh;
        min-height: 500px;
    }

    .inner {
        padding: 15px;
    }

    .title {
        font-size: 22px;
    }

    .subheading {
        font-size: 13px;
    }

    .tag {
        font-size: 12px;
        margin-top: 35px;
    }

    .flickity-page-dots {
        bottom: 15px;
    }
    
    .btn-primary-custom,
    .btn-secondary-custom {
        width: 100%;
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* ===============================
   SECTION HEADERS RESPONSIVE
=============================== */
@media (max-width: 991px) {
    .section-title {
        font-size: 2rem;
        text-align: center;
    }

    .section-tag {
        text-align: center;
        display: block;
    }

    .section-text {
        text-align: justify;
    }
    
    .about-list {
        text-align: center;
    }
}

/* ===============================
   ABOUT SECTION RESPONSIVE
=============================== */
@media (max-width: 991px) {
    .about-section {
        padding: 40px 0;
    }
    
    .about-image {
        margin-bottom: 30px;
        text-align: center;
        /* max-width: 220px; */
    }
    
    .about-list li {
        justify-content: center;
    }
}

/* ===============================
   EXPERTISE SECTION RESPONSIVE
=============================== */
@media (max-width: 991px) {
    .expertise-box {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .expertise-section {
        padding: 40px 0;
    }
}

/* ===============================
   BENEFIT ITEMS RESPONSIVE
=============================== */
/* Tablet */
@media (max-width: 992px) {
    .benefit-text {
        font-size: 20px;
        padding: 30px 30px 30px 110px;
    }

    .benefit-icon {
        width: 110px;
        height: 110px;
    }

    .benefit-icon img {
        width: 110px;
        height: 110px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .benefit-item {
        flex-direction: column;
        text-align: center;
        margin-bottom: 20px;
    }

    .benefit-icon {
        position: relative;
        margin-bottom: 15px;
    }

    .benefit-text {
        padding: 20px;
        border-radius: 30px;
        font-size: 16px;
        text-align: center;
    }
}

/* ===============================
   KEY PRODUCTS SECTION RESPONSIVE
=============================== */
@media (max-width: 1199px) {
    .key-products-content {
        padding: 0 30px;
    }
}

@media (max-width: 991px) {
    .key-products-section {
        position: relative;
        padding: 40px 0;
    }
    
    .key-products-band {
        display: none !important;
    }
    
    .key-products-content::before {
        content: "OUR KEY PRODUCTS";
        font-family: 'Space Grotesk', system-ui, sans-serif;
        display: block;
        font-size: 28px;
        font-weight: 700;
        color: #22252A;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 30px;
        text-align: center;
        padding: 20px 0;
    }
    
    .product-brochure-card {
        height: auto;
        min-height: 380px;
        margin-bottom: 30px;
    }

    .product-bottom {
        padding: 25px;
    }

    .product-row {
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .key-products-content {
        padding: 0 20px;
    }
    
    .product-brochure-card {
        min-height: 360px;
    }
    
    .product-title {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .product-title {
        font-size: 18px;
    }

    .product-desc {
        font-size: 13px;
    }
    
    .product-code {
        font-size: 20px;
    }
    
    .product-tags span {
        font-size: 10px;
        padding: 4px 10px;
    }
}

/* ===============================
   BUYERS SECTION RESPONSIVE
=============================== */
/* Large Screen Adjust */
@media (max-width: 1200px) {
    .buyer-card-new {
        height: 380px;
    }

    .card-title h5 {
        font-size: 16px;
    }

    .card-desc {
        font-size: 13px;
    }
}

/* Tablet (992px ↓) */
@media (max-width: 992px) {
    .buyers-section {
        padding: 40px 0;
    }
    
    .buyers-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .buyer-card-new {
        width: calc(33.33% - 14px);
        margin-bottom: 0;
        height: 360px;
    }
}

/* Small Tablet (768px ↓) */
@media (max-width: 768px) {
    .buyer-card-new {
        width: calc(50% - 10px);
        height: 340px;
    }

    .card-title h5 {
        font-size: 15px;
    }

    .card-desc {
        font-size: 13px;
    }
}

/* Mobile (576px ↓) */
@media (max-width: 576px) {
    .buyers-row {
        flex-direction: column;
        gap: 20px;
    }

    .buyer-card-new {
        width: 100%;
        height: 320px;
    }

    /* Remove hover lift on touch devices */
    .buyer-card-new:hover {
        transform: none;
        box-shadow: none;
    }
}

/* ===============================
   CTA SECTION RESPONSIVE
=============================== */
@media (max-width: 768px) {
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-title {
        font-size: 28px;
    }

    .cta-text {
        font-size: 16px;
    }
    
    .cta-buttons .btn {
        display: block;
        margin: 10px auto;
        width: 80%;
    }
}

@media (max-width: 576px) {
    .cta-title {
        font-size: 24px;
    }
    
    .cta-text {
        font-size: 14px;
    }
    
    .cta-buttons .btn {
        width: 90%;
    }
}

/* ===============================
   CONTACT SECTION RESPONSIVE
=============================== */
@media (max-width: 768px) {
    .contact-section {
        padding: 40px 0;
    }
    
    .contact-box {
        margin-bottom: 30px;
        text-align: center;
    }
    
    .contact-form {
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .contact-box {
        padding: 20px;
    }
    
    .contact-form .form-control {
        padding: 10px;
    }
}

/* ===============================
   MAP SECTION RESPONSIVE
=============================== */
@media (max-width: 768px) {
    .map-container {
        height: 350px;
    }
    
    .map-container iframe {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .map-container {
        height: 300px;
    }
    
    .map-container iframe {
        padding: 10px;
    }
}

/* ===============================
   FOOTER RESPONSIVE
=============================== */
/* Large Tablets & Small Laptops (≤ 1199px) */
@media (max-width: 1199px) {
    .footer-main-band {
        padding: 60px 0 40px;
    }
}

/* Tablets (≤ 991px) */
@media (max-width: 991px) {
    .footer-main-band {
        padding: 50px 0 30px;
        text-align: center;
    }
    
    .footer-brand {
        margin-bottom: 20px;
    }
    
    .footer-main-band .footer-brand img {
        height: 80px;
    }
    
    .footer-desc {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .footer-heading {
        margin-top: 20px;
    }
    
    .quick-links {
        padding-left: 15px !important;
        text-align: center;
    }
    
    .footer-grid {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Large Mobile (≤ 767px) */
@media (max-width: 767px) {
    .footer-main-band {
        padding: 40px 0 20px;
    }
    
    .footer-main-band .footer-brand img {
        height: 70px;
    }
    
    .footer-desc {
        font-size: 13px;
        padding: 0 15px;
    }
    
    .footer-heading {
        font-size: 13px;
        margin-top: 15px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 20px;
    }
    
    .footer-item a {
        font-size: 13px;
    }
    
    .footer-text {
        font-size: 13px;
    }
    
    .quick-links {
        padding-left: 15px !important;
    }
}

/* Small Mobile (≤ 480px) */
@media (max-width: 480px) {
    .footer-main-band {
        padding: 30px 0 15px;
    }
    
    .footer-main-band .footer-brand img {
        height: 90px;
    }
    
    .footer-desc {
        font-size: 15px;
        padding: 0 10px;
    }
    
    .footer-heading {
        font-size: 12px;
        margin-bottom: 12px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
    }
    
    .footer-item a {
        font-size: 12px;
    }
    
    .footer-text {
        font-size: 12px;
    }
    
    .footer-label {
        font-size: 12px;
    }
    
    .footer-bottom-band {
        padding: 15px 0;
        font-size: 11px;
    }
    
    .quick-links {
        padding:  20px !important;
    }
}

/* ===============================
   SCROLL TO TOP BUTTON RESPONSIVE
=============================== */
/* Smaller button on mobile */
@media (max-width: 576px) {
    #scrollTopBtn {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
        font-size: 18px;
    }
}

/* ===============================
   GENERAL UTILITIES RESPONSIVE
=============================== */
@media (max-width: 575px) {
    .product-card {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .footer {
        text-align: center;
    }
    
    .reveal, .reveal-stagger {
        opacity: 1;
        transform: none;
    }
    
    .reveal.active, .reveal-stagger.active {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .col-lg-4, .col-lg-6, .col-lg-3, .col-lg-5 {
        padding-left: 10px;
        padding-right: 10px;
    }
}


/* ========== MOBILE & TABLET FIX - TEXT VISIBLE WITHOUT HOVER ========== */
/* Only changes behavior on touch devices and smaller screens */
/* All existing styles (colors, sizes, animations, overlays) remain intact */

@media (max-width: 991px) {
    
    /* Override the hidden description state */
    .buyer-card-new .card-desc {
        max-height: 200px !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        overflow: visible !important;
        transition: none !important;
    }
    
    /* Keep the text white on image overlay (original style preserved) */
    .buyer-card-new .card-text {
        color: #fff !important;
    }
    
    /* Keep original positioning */
    .buyer-card-new {
        height: 320px !important;
    }
    
    /* Ensure overlay remains visible */
    .buyers-section .overlay {
        display: block !important;
    }
    
    /* Remove any transform on hover that might affect text */
    .buyer-card-new:hover .card-desc {
        transform: translateY(0) !important;
    }
}

/* Tablet specific (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .buyer-card-new .card-desc {
        font-size: 13px;
        line-height: 1.5;
    }
}

/* Mobile specific (max-width: 767px) */
@media (max-width: 767px) {
    .buyer-card-new .card-desc {
        font-size: 12px;
        line-height: 1.45;
    }
    
    /* Adjust text spacing for better readability on small screens */
    .buyer-card-new .card-text {
        bottom: 20px;
        left: 15px;
        right: 15px;
    }
}