* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth; /* Smooth scrolling for in-page navigation */
}

/* Header Styles */
header {
    background-color: #000;
    color: #fff;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    transform: translateY(0);
    transition: transform 0.25s ease-in-out;
}   

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    border-bottom: 1px solid #333;
} 

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 50px;
    border-radius: 50px;
} 

.logo-area h1 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
} 

.social-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-links a {
    color: #ff0000; /* Red Icons as requested */
    font-size: 1.2rem;
    transition: 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    color: #fff;
    filter: drop-shadow(0 0 5px #ff0000);
}

/* Navigation Bar */
.nav-bar {
    background-color: #000;
    padding: 8px 0;
} 

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 10px;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 6px 12px;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
} 

.nav-links li a i {
    font-size: 1rem;
}

.nav-links li a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8); /* Mwangaza effect */
}

/* Red Vertical Dividers */
.divider {
    width: 2px;
    height: 20px;
    background-color: #ff0000;
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    transition: background-image 1s ease-in-out; /* Smooth transition */
    position: relative;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.5); /* Darkens image for text readability */
    height: 100%;
    width: 100%;
    display: flex;
    align-items: flex-end; /* Place content at bottom */
    justify-content: flex-start; /* Align left */
    text-align: left;
    padding-left: 1.5%; /* nudged further left */
    padding-bottom: 6%;
}  

.hero-content {
    color: white;
    padding: 20px 0 20px 0;
    padding-left: 0;
    max-width: 800px;
    text-align: left;
    transform: translateX(-8px); /* small left nudge */
}  

.main-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem); /* medium size with responsive scaling */
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.1;
    color: rgb(255, 255, 255);
    
}

.sub-title {
    font-size: clamp(1rem, 2.2vw, 1.4rem);
    font-weight: 300;
    margin-top: 6px;
    
} 

/* hero slider controls */
.hero-btn {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.18);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    color: #000;
    transition: background 0.3s, opacity 0.3s;
    backdrop-filter: blur(4px);
    z-index: 2; /* keep behind hero text */
    opacity: 0.65;
    pointer-events: auto;
}
.hero-btn:hover {
    background: rgba(255, 255, 255, 0.32);
    opacity: 0.9;
}
.prev-btn {
    left: 8px; /* move slightly inside so it doesn't get cut */
}
.next-btn {
    right: 8px;
}

.hero-dots {
    position: absolute;
    bottom: 18px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 4;
}
.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s;
}
.hero-dot.active {
    background: rgba(255, 255, 255, 0.9);
}

/* Responsive Menu (Mobile) */
.menu-toggle {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    text-align: right;
    padding-right: 20px;
}

/* Container for spacing */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 0;
}

/* Titles and Lines */
.section-title {
    text-align: center;
    font-size: 2rem;
    color: #000;
    margin-bottom: 10px;
}

.title-line {
    width: 80px;
    height: 3px;
    background-color: #ff0000;
    margin: 0 auto 30px auto;
}

.title-line-left {
    width: 50px;
    height: 3px;
    background-color: #ff0000;
    margin-bottom: 15px;
}

/* About Text & Images */
.about-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    color: #000;
    line-height: 1.8;
    margin-bottom: 40px;
}

.about-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 60px;
}

.about-images img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 1px;
}

/* Why/Vision/Mission Grid */
.vision-mission-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.custom-bullets {
    list-style: none;
}

.custom-bullets li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-bullets i {
    color: #ff0000;
}

.v-block, .m-block {
    margin-bottom: 30px;
}

/* Focus Cards */
.focus-section {
    background-color: #f9f9f9;
}

.focus-cards {
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Aligns side cards to bottom */
    gap: 20px;
    padding-top: 40px;
}

.card {
    background: #fff;
    padding: 30px;
    text-align: center;
    border: 1px solid #ddd;
    transition: 0.3s ease;
    width: 33%;
    position: relative;
    border-radius: 20px;
}

.card-center {
    height: 350px; /* Taller as requested */
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-side {
    height: 280px; /* Shorter as requested */
}

.focus-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #000;
}

/* Image logo inside each focus card */
.card .focus-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
    margin: 0 auto 18px auto;
}

.genuine-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.genuine-tag {
    display: inline-block;
    background: transparent;
    color: #000;
    font-weight: 700;
    padding: 8px 12px;
}

/* Hover overlay that rises from bottom to top */
.card {
    overflow: hidden;
}
.card::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, rgba(4, 24, 48, 0.95) 0%, rgba(4, 24, 48, 0.95) 100%);
    z-index: 1;
    transition: height 350ms cubic-bezier(.2,.9,.2,1);
    transform-origin: bottom;
}
.card * {
    position: relative;
    z-index: 2;
}
.card:hover::after {
    height: 100%;
}
.card:hover {
    color: #fff;
}
.card:hover p {
    color: #fff;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Card Hover Logic */
.card:hover {
    background-color: #ff0000; /* Red background on hover */
    color: #000; /* Text stays black as requested */
}

.card:hover .focus-icon {
    color: #000;
}

.genuine-tag {
    display: block;
    margin-top: 20px;
    font-weight: bold;
    color: #000;
    font-size: 0.8rem;
}

/* Brands Focus Section Styles */
.brands-focus {
    background-color: #000; /* Pure Black Background */
    color: #ffffff;
    padding: 80px 0;
}

.header-group {
    margin-bottom: 40px;
    text-align: left;
}

.focus-title {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

/* Grid layout: 5 items per row on large screens */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

.brand-card {
    background: #111; /* Slightly lighter than background to see the card */
    border: 1px solid #333;
    border-radius: 10px;
    padding: 25px 15px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.brand-card:hover {
    transform: translateY(-5px);
    border-color: #580202; /* Red border on hover */
}

.brand-img-box {
    width: 100%;
    height: 140px; /* Taller so logos fit comfortably */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    padding: 10px; /* Space around logos to avoid cropping */
    background: #000000; /* White card to make logos visible on dark background */
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.brand-img-box img {
    max-width: 90%; /* Allow logos to be larger */
    max-height: 100%;
    object-fit: contain;
    filter: none; /* Keep original logo colors */
}

/* Responsive: scale down on small screens */
@media (max-width: 768px) {
    .brand-img-box {
        height: 100px;
        padding: 6px;
    }
    .brand-img-box img {
        max-width: 95%;
    }
}

.brand-card h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
    height: 2.5rem; /* Ensures title height stays consistent */
    display: flex;
    align-items: center;
    justify-content: center;
}

.discover-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: transparent;
    color: #fff;
    border: 2px solid #ff0000;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 4px;
    transition: 0.3s ease;
}

.discover-btn:hover {
    background-color: #ff0000;
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
}

/* General Layout Settings */
.brands-offered {
    background-color: #ffffff;
    padding: 80px 0;
}

.muxa-brand-section {
    background-color: #000000;
    padding: 80px 0;
}

/* Header hidden class for scroll behavior */
.header-hidden {
    transform: translateY(-110%);
}

/* Responsive tweaks: show hamburger, wrap nav links into two rows on small screens */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .nav-links {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }
    .nav-links .divider {
        display: none;
    }
    .nav-links li {
        flex: 0 0 calc(25% - 8px); /* 4 items per row */
        text-align: center;
    }
    .nav-links li a {
        display: block;
        padding: 8px 6px;
        font-size: 0.95rem;
    }

    /* Hero adjustments for small screens: keep titles bottom-left and scale down */
    .hero-overlay {
        padding-left: 1.5%; /* nudged further left on mobile */
        padding-bottom: 4%;
        align-items: flex-end;
        justify-content: flex-start;
    }
    .hero-content {
        max-width: 90%;
        padding: 12px 0;
        transform: translateX(-4px); /* smaller nudge on mobile */
    }
    .main-title {
        font-size: 1.4rem;
    }
    .sub-title {
        font-size: 1rem;
    }

    /* adjust slider controls on small screens */
    .hero-btn {
        padding: 8px 12px;
        font-size: 1.4rem;
    }
    .hero-dots {
        bottom: 10px;
        gap: 4px;
    }
    .hero-dot {
        width: 10px;
        height: 10px;
    }
}

.title-left {
    text-align: left;
    font-size: 2.5rem;
    color: #000;
    margin-bottom: 10px;
}

.white-text {
    color: #fff !important;
}

.line-left {
    width: 60px;
    height: 4px;
    background-color: #000; /* Black line for white section */
    margin-bottom: 25px;
}

.red-line {
    background-color: #ff0000; /* Red accent line for black section */
}

.description-text {
    max-width: 800px;
    line-height: 1.8;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

/* Brands Big Card */
.brands-big-card {
    background: #fdfdfd;
    border: 1px solid #eee;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.brands-grid-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
}

.brand-item img {
    width: 100%;
    max-height: 80px;
    object-fit: contain;
    transition: transform 0.4s ease;
    cursor: pointer;
}

/* Tilt Hover Effect */
.brand-item:hover img {
    transform: rotate(10deg) scale(1.1); /* Tilts as requested */
}

/* MUXA Brand Styles */
.muxa-big-card {
    background: #111;
    border: 1px solid #333;
    padding: 50px 20px;
    border-radius: 20px;
}

.muxa-logo-header {
    text-align: center;
    margin-bottom: 40px;
}

.muxa-logo-header img {
    height: 100px;
    border-radius: 50px;
}

.muxa-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 per row for Instagram-style sizing */
    gap: 20px;
}

.product-item {
    background: #fff;
    padding: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 350px;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.product-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}   

/* Products Section Styling */
.products-section {
    background-color: #ffffff;
    padding: 80px 0;
}

.section-title-main {
    text-align: center;
    color: #000000;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.title-line-red {
    width: 100px;
    height: 4px;
    background-color: #ff0000;
    margin: 0 auto 30px auto;
}

.products-description {
    text-align: center;
    color: #333;
    max-width: 900px;
    margin: 0 auto 50px auto;
    line-height: 1.8;
    font-size: 1rem;
}

/* Category Grid */
.products-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 cards per row as per your sketch */
    gap: 40px;
}

/* Main Category Card */
.category-card {
    background-color: #000000;
    padding: 30px;
    border-radius: 15px;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    cursor: pointer;
    overflow: visible; /* allow expanded images to overflow */
    position: relative; /* needed for z-index control */
}

/* Hover effect: Card Expands */
.category-card:hover {
    transform: scale(1.03); /* Inatanuka kidogo */
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.category-name {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-align: center;
    transition: color 0.3s;
}

.category-card:hover .category-name {
    color: #ff0000; /* Name changes to red on hover */
}

/* Samples Grid inside Card */
.product-samples {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 4 products in 2x2 grid */
    gap: 15px;
}

.sample-box {
    background-color: #ffffff;
    border-radius: 10px;
    height: 180px;
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible; /* allow the scaled image to overflow */
    position: relative;
    transition: box-shadow 0.3s ease;
}

.sample-box:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    z-index: 10; /* raise above other sample boxes */
}

.sample-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

/* Individual Product Hover Effect */
.sample-box:hover img {
    transform: scale(1.65); /* make image grow and overlap neighbors */
}

/* Testimonials Section Styling */
.testimonials-section {
    background-color: #f5f5f5; /* Milky White Background */
    padding: 80px 0;
}

.section-desc {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
    color: #555;
    font-style: italic;
}

/* Testimonial Grid */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2x2 grid as per sketch */
    gap: 30px;
}

/* Individual Card */
.testimonial-card {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    border-color: #ff0000;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.customer-logo {
    width: 60px;
    height: 60px;
    background: #f9f9f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    overflow: hidden;
}

.customer-logo img {
    width: 80%;
    height: auto;
}

.quote-icon {
    color: #ff0000;
    font-size: 1.5rem;
    opacity: 0.3;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 25px;
    position: relative;
}

.company-footer {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.company-name {
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Contact Section Styling */
.contact-section {
    background-color: #ffffff;
    padding: 80px 0;
}

.branch-category-title {
    font-size: 1.5rem;
    margin: 40px 0 20px 0;
    text-transform: uppercase;
    color: #333;
    border-left: 5px solid #ff0000;
    padding-left: 15px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* Branch Card */
.branch-card {
    background: #fdfdfd;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.branch-card:hover {
    border-color: #ff0000;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 0, 0, 0.05);
}

.branch-card h4 {
    margin-bottom: 15px;
    color: #000;
    font-size: 1.1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Layout for Logo + Info */
.branch-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.branch-logo-circle {
    width: 60px;
    height: 60px;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.branch-logo-circle img {
    width: 70%;
    height: auto;
}

.branch-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-item {
    text-decoration: none;
    color: #555;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.2s;
}

.contact-item i {
    color: #000; /* Default black icons */
    width: 15px;
    text-align: center;
}

/* Hover effects for contact links */
a.contact-item:hover {
    color: #ff0000;
}

a.contact-item:hover i {
    color: #ff0000;
    transform: scale(1.2);
}


/* --- Contact Section Styles --- */
.contact-section {
    background-color: #ffffff;
    padding: 80px 0;
}

.branch-category-title {
    font-size: 1.4rem;
    margin: 40px 0 20px 0;
    color: #000;
    text-transform: uppercase;
    font-weight: 700;
    border-left: 4px solid #ff0000;
    padding-left: 15px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.branch-card {
    background: #fff;
    border: 1px solid #eeeeee;
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.branch-card:hover {
    transform: translateY(-5px);
    border-color: #ff0000;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.branch-card h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #ff0000;
}

.branch-content {
    display: flex;
    gap: 20px;
    align-items: center;
}

.branch-logo-circle {
    width: 70px;
    height: 70px;
    border: 2px solid #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.branch-logo-circle img {
    width: 70%;
    height: auto;
    border-radius: 50px;
}

.branch-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item {
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
}

.contact-item i {
    color: #000;
    width: 15px;
    font-size: 1.1rem;
}

/* Red Hover Effect */
.contact-item:hover {
    color: #ff0000;
}

.contact-item:hover i {
    color: #ff0000;
}

/* --- Footer Styles --- */
.main-footer {
    background-color: #000000; /* Pure black */
    color: #ffffff;
    padding: 60px 0 20px 0;
    font-family: 'Poppins', sans-serif;
}

.footer-top-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    border-bottom: 1px solid #333; /* Separation line */
    padding-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

/* Logo Side */
.footer-logo-circle {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.footer-logo-circle img {
    width: 70%;
    border-radius: 50px;
}

.ready-text {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.footer-desc {
    font-size: 0.9rem;
    color: #bbb;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Social Tooltips */
.social-icons {
    display: flex;
    gap: 20px;
}

.social-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-item a {
    color: #fff;
    font-size: 1.5rem;
    transition: 0.3s;
}

.social-tooltip {
    position: absolute;
    bottom: 40px;
    background: #ff0000;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.7rem;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    white-space: nowrap;
}

/* Tooltip arrow */
.social-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #ff0000 transparent transparent transparent;
}

.social-item:hover .social-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-5px);
}

.social-item:hover a {
    color: #ff0000;
}

/* Links & Contacts Side */
.hashtag-text {
    color: #ff0000;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.footer-sub-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-sub-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: #ff0000;
}

.quick-links {
    list-style: none;
    padding: 0;
}

.quick-links li {
    margin-bottom: 10px;
}

.quick-links a {
    color: #bbb;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.quick-links a:hover {
    color: #ff0000;
    padding-left: 5px;
}

.quick-contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quick-contact-info p, .quick-contact-info a {
    color: #bbb;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-contact-info i {
    color: #ff0000;
}

.quick-contact-info a:hover {
    color: #fff;
}

/* Footer Bottom Bar */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    font-size: 0.85rem;
    color: #777;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-top-row {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-logo-circle, .footer-sub-title::after {
        margin: 0 auto 15px auto;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
}

/* Media Queries */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .branch-content {
        flex-direction: column;
        text-align: center;
    }
    
    .branch-details {
        align-items: center;
    }
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .branch-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .branch-details {
        align-items: center;
    }
}


/* Media Queries for Mobile */
@media (max-width: 768px) {
    .testimonial-grid {
        grid-template-columns: 1fr; /* Stack cards on mobile */
    }
    
    .testimonial-card {
        padding: 25px;
    }
}


/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    .products-categories-grid {
        grid-template-columns: 1fr; /* Stack cards on tablet/mobile */
    }
}

@media (max-width: 768px) {
    .section-title-main {
        font-size: 2rem;
    }
    
    .sample-box {
        height: 100px;
    }
}


/* Media Queries */
@media (max-width: 1024px) {
    .muxa-products-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 per row on medium screens for larger product tiles */
    }

    /* Make MUXA product tiles larger on medium screens */
    .product-item {
        height: 150px; /* Increased height for better visibility */
    }

    .product-item img {
        max-height: 95%;
    }
}

@media (max-width: 768px) {
    .brands-grid-display {
        grid-template-columns: repeat(3, 1fr);
    }
    .muxa-products-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 per row on mobile */
    }
    .title-left {
        font-size: 1.8rem;
    }
}


/* Media Queries for Responsiveness */
@media (max-width: 1200px) {
    .brands-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 per row on tablets */
    }
}

/* Ensure contact grids show 4 columns on wide desktops to save vertical space */
@media (min-width: 1200px) {
    .contact-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 per row on smaller tablets */
    }
    .focus-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .brands-grid {
        grid-template-columns: 1fr; /* 1 per row on mobile phones */
    }
    .brand-card {
        padding: 30px 20px;
    }
}


/* Media Queries for Mobile */
@media (max-width: 768px) {
    .about-text, .about-images, .vision-mission-row, .focus-cards {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: center;
    }
    
    .card {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 992px) {
    .top-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    /* Mobile: hide menu by default but use a wrapped row layout when active
       so links form multiple compact rows instead of a long vertical column. */
    .nav-links {
        display: none; /* Hidden by default on mobile */
        flex-direction: row; /* row layout when visible */
        flex-wrap: wrap; /* allow links to wrap into multiple rows */
        width: 100%;
        gap: 8px;
        justify-content: center;
    }

    .nav-links.active {
        display: flex;
        padding: 10px 5%;
        background-color: #000; /* match header background */
        border-top: 1px solid #222;
    }

    /* Make each link compact so the menu doesn't become too tall */
    .nav-links li {
        flex: 0 0 auto;
        margin: 6px 4px;
    }

    .nav-links li a {
        padding: 8px 12px;
        background: rgba(255,255,255,0.03);
        border-radius: 6px;
        display: block;
    }

    .menu-toggle {
        display: block;
    }

    .divider {
        display: none; /* Hide dividers on mobile for cleaner layout */
    }
}