/* --- Global Styles & Color Variables --- */
:root {
    --primary-dark: #261B62;
    /* R38 G27 B98 */
    --primary-light: #282165;
    /* R40 G33 B101 */
    --accent-red: #BE000D;
    /* R190 G0 B13 */
    --accent-dark-red: #8C0009;
    /* R140 G0 B9 */
    --text-light: #f8f9fa;
    --text-dark: #212529;
    --light-grey-bg: #f8f9fa;
    /* Bootstrap's bg-light */
    --subtle-bg: #fdfdff;
    /* A very light off-white or light purple tint */
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    padding-top: 70px;
    /* Adjust if navbar height changes */
    scroll-behavior: smooth;
}

/* --- Navbar Styling --- */
.navbar {
    background-color: rgba(38, 27, 98, 0.95);
    /* var(--primary-dark) with slight transparency */
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    /* Adjust if your logo has different dimensions */
    filter: brightness(0) invert(1);
    /* Makes logo white if it's dark */
}

.navbar-brand {
    color: var(--text-light) !important;
    font-weight: bold;
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.75) !important;
    margin-left: 10px;
    margin-right: 10px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--text-light) !important;
    font-weight: 600;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


/* --- Hero Section Styling --- */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    color: var(--text-light);
    min-height: calc(100vh - 70px);
    /* Full viewport height minus navbar */
    padding: 60px 0;
}

.hero-section h1 {
    font-size: 3.5rem;
    /* Responsive font size can be added via Bootstrap classes too */
    margin-bottom: 0.5rem;
}

.hero-section h2 {
    font-size: 1.75rem;
    font-weight: 300;
    opacity: 0.9;
}

.hero-section .lead {
    font-size: 1.15rem;
    opacity: 0.85;
    margin-bottom: 2rem;
}

/* --- Hero Section Styling --- */
/* ... (other hero styles remain the same) ... */

.hero-buttons .btn {
    min-width: 200px;
    /* Ensures buttons have a nice minimum width */
    text-align: center;
}

@media (max-width: 767.98px) {

    /* Small screens (Bootstrap's <md breakpoint) */
    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Centers buttons when stacked */
    }

    .hero-buttons .btn {
        width: 80%;
        /* Makes stacked buttons take up significant width */
        max-width: 300px;
        /* But not too wide */
    }

    .hero-buttons .btn:last-child {
        /* Remove bottom margin from last stacked button */
        margin-bottom: 0 !important;
    }
}

/* --- General Section Styling --- */
section {
    padding: 80px 0;
    /* Increased padding for more space */
}

.section-title {
    font-weight: 700;
    color: var(--primary-dark);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-red);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* --- Button Styling --- */
.btn-primary {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    padding: 12px 25px;
    font-weight: 600;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-dark-red);
    border-color: var(--accent-dark-red);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.7);
    color: rgba(255, 255, 255, 0.9);
    padding: 12px 25px;
    font-weight: 600;
}

.btn-outline-light:hover {
    background-color: var(--text-light);
    color: var(--primary-dark);
}


/* --- Scope Section (Feature Box) --- */
.feature-box {
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}

.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--primary-light);
    /* Slightly lighter shade */
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.feature-box:hover .icon-circle {
    background-color: var(--accent-red);
}

/* --- Brands Section --- */
.bg-light-subtle {
    /* For sections with slightly off-white background */
    background-color: var(--subtle-bg);
}

.brand-logo {
    max-height: 80px;
    /* Adjust as needed */
    /* filter: grayscale(100%); */
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.brand-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- CUBOT Specific Styling --- */
.cubot-highlight {
    /* For hero section */
    color: #FFD700;
    /* Gold color for emphasis, or use your accent red */
    /* background-color: var(--accent-red);
    padding: 0.1em 0.3em;
    border-radius: 4px; */
    font-weight: bold;
}

.cubot-highlight-text {
    /* For body text */
    color: var(--accent-red);
    font-weight: bold;
}

#cubot .card-title {
    color: var(--primary-dark);
}

.cubot-icon {
    color: var(--accent-red);
}

/* --- Carousel Styling --- */
#brandsProductCarousel .carousel-item,
#cubotProductCarousel .carousel-item {
    background-color: #f8f9fa;
    /* Light grey background (Bootstrap's bg-light color) */
    /* Or use #ffffff for a pure white background if preferred */
    height: 500px;
    /* Define a fixed height for the carousel items for consistency */
    /* Adjust this height as needed to best fit your product images */
}

#brandsProductCarousel .carousel-item img,
#cubotProductCarousel .carousel-item img {
    width: 100%;
    height: 100%;
    /* Make image take full height of its .carousel-item parent */
    object-fit: contain;
    /* This is the key change: fits the entire image within the area */
    object-position: center;
    /* Ensures the image is centered within the item */
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.65);
    /* Slightly more opaque caption background */
    border-radius: 5px;
    padding: 1rem;
    /* Add more padding to caption */
    bottom: 1.25rem;
    /* Adjust caption position if needed */
}

/* Optional: Ensure carousel controls are clearly visible if background is very light */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.3);
    /* Add a subtle background to icons */
    border-radius: 50%;
    padding: 15px;
    /* Increase clickable area and icon size slightly */
}

.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* --- Contact Section --- */
#contact a {
    color: var(--accent-red);
}

#contact a:hover {
    color: var(--accent-dark-red);
    text-decoration: underline !important;
}

.primary-icon {
    color: var(--primary-dark);
}

.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    position: relative;
    height: 0;
}

.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}

#contactForm .form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.25rem rgba(40, 33, 101, 0.25);
}


/* --- Footer Styling --- */
footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
}

footer p {
    margin-bottom: 0.5rem;
}


/* --- Utility Classes --- */
.shadow-sm {
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075) !important;
}

.shadow {
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
        /* Adjust if navbar height is different on mobile */
    }

    .hero-section {
        min-height: auto;
        padding: 40px 0;
        text-align: center;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section h2 {
        font-size: 1.5rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .feature-box {
        margin-bottom: 20px;
    }

    .brand-logos .col-6 {
        margin-bottom: 15px;
        /* Space out logos more on small screens */
    }

    #contact .col-lg-6 {
        margin-bottom: 30px;
    }
}


/* --- CUBOT Product Showcase Grid --- */
.cubot-showcase .section-subtitle {
    /* A slightly different style for subtitles within a section */
    font-weight: 600;
    color: var(--primary-dark);
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 1rem;
    /* Adjusted margin */
}

.cubot-showcase .section-subtitle::after {
    content: '';
    position: absolute;
    display: block;
    width: 50px;
    height: 3px;
    /* Slightly thicker */
    background: var(--accent-red);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.product-card {
    border: 1px solid #e9ecef;
    /* Lighter border */
    border-radius: 0.375rem;
    /* Bootstrap's default card radius */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.2rem rgba(0, 0, 0, 0.1) !important;
    /* Slightly adjusted shadow */
}

.product-card-img {
    max-height: 220px;
    /* Adjust max height as needed for your images */
    width: auto;
    /* Let width adjust to keep aspect ratio */
    max-width: 100%;
    /* Ensure it doesn't overflow card padding */
    object-fit: contain;
    /* Ensures the whole image is visible without cropping */
    margin-top: 1rem;
    /* Some space above image */
    margin-bottom: 0.5rem;
}

.product-card .card-title {
    font-size: 1.1rem;
    /* Slightly smaller for card titles */
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.product-card .card-text.small {
    font-size: 0.85em;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.product-card .btn-outline-primary {
    border-color: var(--accent-red);
    color: var(--accent-red);
    font-weight: 500;
    font-size: 0.875rem;
    /* Small button text */
    padding: 0.4rem 0.8rem;
}

.product-card .btn-outline-primary:hover {
    background-color: var(--accent-red);
    color: #fff;
}

/* For consistent card heights when descriptions vary */
.product-card .card-body {
    display: flex;
    flex-direction: column;
}

.product-card .card-body .btn {
    margin-top: auto;
    /* Pushes button to the bottom */
}

/* --- CUBOT Category Showcase (Discover More style) --- */
.cubot-category-showcase .section-subtitle {
    font-weight: 600;
    color: var(--primary-dark);
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 1rem;
}

.cubot-category-showcase .section-subtitle::after {
    /* Optional: underline for this subtitle */
    content: '';
    position: absolute;
    display: block;
    width: 50px;
    height: 3px;
    background: var(--accent-red);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.category-item-link {
    text-decoration: none;
    display: block;
    height: 100%;
    /* Ensure link takes full height of its container if used in flex/grid */
}

.category-item {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 0.375rem;
    /* Bootstrap's default card radius */
    overflow: hidden;
    height: 200px;
    /* Default height for smaller category items */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.category-item:hover {
    transform: scale(1.03);
}

.category-item-large {
    height: 100%;
    /* Takes full height of its col-lg-5 parent */
    min-height: 415px;
    /* (200px + 200px + 15px gutter) approx. height of 2 small items + gap */
}

@media (max-width: 991.98px) {

    /* Below LG breakpoint */
    .category-item-large {
        min-height: 250px;
        /* Adjust height for medium screens if needed */
        height: 250px;
    }

    .category-item {
        /* Standardize height on medium screens for better stacking */
        height: 180px;
    }
}

@media (max-width: 767.98px) {

    /* Below MD breakpoint */
    .category-item,
    .category-item-large {
        height: 150px;
        /* Smaller height for smaller items when they stack */
        min-height: 150px;
    }
}


.category-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    /* Dark overlay for text readability */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    transition: background-color 0.3s ease;
}

.category-item:hover .category-item-overlay {
    background-color: rgba(38, 27, 98, 0.6);
    /* Use your primary dark color with more opacity on hover */
}

.category-item-overlay h4 {
    color: #fff;
    font-weight: bold;
    margin: 0;
    font-size: 1.3rem;
    /* Adjust as needed */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

@media (max-width: 767.98px) {

    /* On smaller screens (below md), ensure full width for category items */
    .cubot-category-showcase .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .category-item-overlay h4 {
        font-size: 1.1rem;
    }
}

/* --- CUBOT In-Depth Device Showcases (cubot.net style rows) --- */
.cubot-in-depth-features .section-subtitle {
    font-weight: 700;
    /* Bold subtitle */
    color: var(--primary-dark);
    position: relative;
    padding-bottom: 15px;
    /* More padding for subtitle */
    margin-bottom: 2.5rem !important;
    /* More space below subtitle */
}

.cubot-in-depth-features .section-subtitle::after {
    content: '';
    position: absolute;
    display: block;
    width: 70px;
    /* Longer underline */
    height: 3px;
    background: var(--accent-red);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.product-feature-row {
    border-bottom: 1px solid #e9ecef;
    /* Light separator line */
}

.product-feature-row:last-of-type {
    /* Use last-of-type to target the actual last row */
    border-bottom: none;
    margin-bottom: 0 !important;
    /* Remove bottom margin from the very last row */
    padding-bottom: 0 !important;
    /* Remove bottom padding from the very last row */
}

.product-feature-text-col {
    padding: 1rem 1.5rem;
    /* Add some padding around the text content */
}

.product-feature-title {
    font-size: 2.25rem;
    /* Larger title like on cubot.net */
    font-weight: 700;
    color: var(--text-dark);
    /* Or var(--primary-dark) */
    margin-bottom: 1.5rem !important;
}

.product-feature-list {
    padding-left: 0;
    /* Remove default ul padding */
    max-width: 400px;
    /* Constrain width of feature list for better readability */
}

.product-feature-list li {
    font-size: 1.1rem;
    /* Slightly larger feature text */
    color: #555;
    margin-bottom: 0.8rem;
    display: flex;
    /* Align icon and text nicely */
    align-items: center;
}

.product-feature-list .feature-icon {
    color: var(--accent-red);
    /* Accent color for the bullet icon */
    font-size: 0.5em;
    /* Make bullet smaller relative to text */
    margin-right: 0.75rem;
    /* Space after icon */
    transform: translateY(-1px);
    /* Fine-tune vertical alignment */
}

.btn-cubot-learn-more {
    background-color: #343a40;
    /* Dark gray/black button like on cubot.net */
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    /* Generous padding */
    border-radius: 25px;
    /* Rounded pill shape */
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    /* Allows margin and padding */
    margin-top: 1rem;
}

.btn-cubot-learn-more:hover {
    background-color: var(--accent-red);
    /* Your accent red on hover */
    color: #fff;
    transform: translateY(-2px);
}

.product-showcase-img {
    border-radius: 15px !important;
    /* More pronounced rounded corners for the image */
    object-fit: cover;
    /* Or contain, depending on image aspect ratios */
    /* You might need to set explicit max-height or aspect ratio control if images vary a lot */
}

/* Responsive adjustments for text alignment */
@media (max-width: 767.98px) {

    /* MD breakpoint and below */
    .product-feature-title {
        font-size: 1.8rem;
        /* Slightly smaller title on mobile */
    }

    .product-feature-list li {
        font-size: 1rem;
    }

    .product-feature-list {
        margin-left: auto;
        margin-right: auto;
        /* Center the list on mobile if text is centered */
    }

    .product-feature-text-col {
        text-align: center !important;
        /* Center text on mobile */
    }

    .product-feature-image-col {
        margin-bottom: 1.5rem;
        /* Space below image on mobile when stacked */
    }
}