/* Base Styles & Typography */
:root {
    --primary-red: #D20A1C;
    --dark-blue: #0E294B;
    --darker-blue: #0b1d35;
    --light-blue: #44638a;
    --light-gray: #F5F5F5;
    --light-gray2: #c0c0c0;
    --text-color: #555;
    --white: #FFF;
    --darker:#111111;
    --dark:#222222;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    padding-bottom: 64px;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensures the body is at least as tall as the screen */
    margin: 0;
    padding: 0;
}


.about-us-section,.product-page-section{flex-grow: 1;}



.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-red);
}

ul {
    list-style: none;
}

/* Utility Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 15px;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--white);
    border: 2px solid var(--primary-red);
}

.btn-primary:hover {
    background-color: #a00815;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.btn-secondary:hover {
    background-color: var(--primary-red);
    color: var(--white);
}

/* ---------------------------------- */
/* 1. Header & Navigation (Mobile First) */
/* ---------------------------------- */

.main-header {
    background: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid #eee;

    position: fixed; 
    width: 100%;     
    z-index: 1000;
    height: 110px;
    border-bottom: 6px solid var(--light-gray2);
}


.nav-bar {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on small screens */
    justify-content: space-between;
    align-items: center;
}

.logo {
    max-width: 128px;
    font-size: 32px;
    font-weight: 900;
    color: var(--dark-blue);
}


nav ul {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 10px 0;
}

nav ul li a {
    color: var(--dark-blue);
    padding: 10px 0;
    font-size: 16px;
    font-weight: 500;
    display: block;
}

nav ul li a.active {
    color: var(--primary-red);
    font-weight: bold;
}



/* ---------------------------------- */
/* 1.1. Mobile Sidebar (Off-Canvas Menu) */
/* ---------------------------------- */

#sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Darkens the main content */
    z-index: 1001; /* Below the sidebar (1060), but above everything else */
    display: none; /* Hidden by default */
    cursor: pointer;
    transition: opacity 0.5s;
}


.mobile-sidebar {
    height: 100%; /* Full height */
    width: 0; /* 0 width to start, hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1002; /* Higher than header (1000) and mobile-bottom-header (1000) */
    right: 0; /* Position from the right (RTL language) */
    background-color: var(--dark-blue); 
    overflow-x: hidden; /* Disable horizontal scroll */
    padding-top: 60px; /* Space from the top */
    transition: 0.5s; /* 0.5 second transition effect to slide in the sidebar */
    direction: rtl; /* Ensure content is right-to-left */

}

/* Sidebar links */
.mobile-sidebar a {
    padding: 15px 20px 15px 20px;
    text-decoration: none;
    font-size: 18px;
    color: var(--white);
    display: block;
    transition: 0.3s;
    text-align: right;
    border-bottom: 1px solid var(--darker-blue);
}

.mobile-sidebar a:hover {
    color: var(--primary-red);
    background-color: var(--darker-blue);
}

/* Close button */
.mobile-sidebar .closebtn {
    position: absolute;
    top: 0;
    left: 25px;
    font-size: 36px;
    margin-left: 50px;
    border-bottom: none;
}

/* Sidebar Contact Section */
.sidebar-contact {
    padding: 20px;
    margin-top: 30px;
}

.sidebar-contact h4 {
    color: var(--primary-red);
    margin-bottom: 15px;
    font-size: 16px;
    text-align: right;
}

.sidebar-contact a {
    border-bottom: none;
    padding: 10px 0;
    color: var(--light-gray2);
    font-size: 16px;
}


/* Sidebar Dropdown Styling (for nested menus) */
.sidebar-dropdown .dropdown-toggle {
    background-color: var(--darker-blue);
    position: relative;
    cursor: pointer;
}

.sidebar-dropdown-content {
    display: none; /* Hidden by default */
    background-color: #081a2f; /* Slightly darker shade */
    padding-right: 20px; /* Indent sub-items */
}

.sidebar-dropdown-content a {
    font-size: 16px;
    padding: 10px 20px;
    color: #aebfd1;
}

.sidebar-dropdown .dropdown-icon {
    position: absolute;
    left: 20px;
    transition: transform 0.3s ease;
}

.sidebar-dropdown.active .dropdown-icon {
    transform: rotate(180deg);
}


/* Add a class to darken the main content when sidebar is open */
.sidebar-open {
    /* Apply a slight overlay effect to the main content */
    filter: brightness(0.7);
    transition: filter 0.5s;
}

.thumbnail-strip {
    /* Style for the vertical strip of thumbnails */
    display: flex;
    flex-direction: column; /* Stack thumbnails vertically */
    gap: 10px;
    width: 10vh; /* Fixed width for the strip */
    height: 40vh;
    overflow-y: scroll;
}

.lightbox-thumbnail-strip {
    padding-left: 3vh;
    padding-right: 3vh;
    width: 70vh;
    overflow-x: scroll;
}

/* Adjust main content padding on small screens to avoid overlap with mobile-bottom-header */
@media (max-width: 719px) {
.lightbox-thumbnail-strip {
    padding-left: 3vh;
    padding-right: 3vh;
    width: 50vh;
    overflow-x: scroll;
}

    .thumbnail-strip {
    /* Style for the vertical strip of thumbnails */
    display: flex;
    flex-direction: column; /* Stack thumbnails vertically */
    gap: 10px;
    width: 20vh; /* Fixed width for the strip */
    height: 40vh;
    overflow-y: scroll;
}
    body.nav-open {
        overflow: hidden; /* Prevent background scrolling when sidebar is open */
    }
    /* We don't need the nav-open class for the filter effect as we are not using a content wrapper */
    /* If you wanted a full page overlay, you'd add another element and style it here */
}



/* ---------------------------------- */
/* 2. Hero Section */
/* ---------------------------------- */
/* Update your .hero-section and add styles for the new layers */
.hero-section {
    padding-top: 64px;
    background: linear-gradient(rgba(137, 130, 130, 0.5), rgba(0, 0, 0, 0.5)), url('img/preview-cycle/1.png') no-repeat center center/cover;
    height: 70vh; /* Reduced height for mobile */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
}

/* Base style for the stacked image layers */
.hero-image-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    background-size: cover;
    background-position: center center;
    
    /* The core of the fade effect: Transition opacity */
    transition: opacity 1.5s ease-in-out; 
    
    /* Layer 1 will start at opacity 1, Layer 2 will start at 0 (managed by JS) */
    opacity: 0; 
    
    /* Place layers behind the content */
    z-index: 1; 
}

/* The content must be higher than the image layers */
.hero-content {
    position: relative;
    z-index: 1; /* Ensures content is visible over the fading images */
    /* ... existing content styles (display: flex, justify-content: center, etc.) ... */
    height: 245px;

}

  .hero-content img{
        width: auto;
        height: 64px;
    }

.hero-content p {
    font-size: 14px;
    letter-spacing: 3px;
    font-weight: 300;
}

.hero-content h1 {
    font-size: 12vw; /* Use vw for responsiveness */
    font-weight: 900;
    margin: -10px 0;
    line-height: 1;
}

.hero-content .os {
    color: var(--primary-red);
    font-weight: 900;
    font-size: 8vw;
    position: relative;
    top: -3vw;
    display: inline-block;
}

/* ---------------------------------- */
/* 3. Services Section (Mobile: Stacked) */
/* ---------------------------------- */
.services-section {
    padding: 32px 0;
    background-color: var(--light-gray);
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.services-grid {
    max-width: 512px;
    margin: 0 auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.service-card {
    background: var(--white);
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    flex: 1;
    position: relative;
    z-index: 5;
}

.service-card h3 {
    color: var(--dark-blue);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.service-card-title img{
    max-width: 64px;
    max-height: 64px;
}


/* ---------------------------------- */
/* 4. News Section (Mobile: Stacked) */
/* ---------------------------------- */
.news-section {
    text-align: center;
    padding: 40px 0;
    background: var(--white);
}


.news-section h2,.services-section h2, .catalog h2{
    align-self: center;
    color: var(--dark-blue);
    text-transform: uppercase;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-red);
    display: inline-block;
    padding-bottom: 5px;
}


.news-grid {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        flex-direction: row; /* Horizontal layout */
        gap: 20px;
        margin-bottom: 32px;
    }

.news-item {
    flex: 1;
    padding: 12px;
    min-height: 150px;
    max-width: 210px;
    border-radius:3px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-color: #3C474E;
    
}


.news-item:hover {
        background-color: var(--dark-blue);
        cursor: pointer;
        max-width: 215px;
        transition: all 0.2s ease-in-out; /* Smooth transition for hover effects */

    }

.news-item h4 {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}



/* ---------------------------------- */
/* 5. Clients Section (Mobile: Single line, scrollable/wrapped) */
/* ---------------------------------- */
/* Clients Section */
.clients-section {
    display: none;
    background: var(--light-gray);
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid #ddd;
}

.clients-section h3 {
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.clients-section p {
    
    margin-bottom: 30px;
}

/* Carousel Wrapper */
.client-carousel-wrapper {
    
    position: relative; /* For absolute positioning of arrows */
    display: flex;
    align-items: center;
    justify-content: center; /* Center the entire carousel area */
    max-width: 100%; /* Limit the width of the carousel */
    margin: 30px auto; /* Center the wrapper itself */
    padding: 50px;
}

/* Scrollable Container */
.client-logos {
    display: flex;
    overflow-x: auto; /* Enable horizontal scrolling */
    scroll-behavior: smooth; /* Smooth scrolling for JavaScript */
    -webkit-overflow-scrolling: touch; /* Better scrolling on iOS */
    padding: 10px 0; /* Some vertical padding */
    gap: 30px; /* Space between logos */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
    width: 90%;
}

/* Hide scrollbar for Webkit browsers (Chrome, Safari) */
.client-logos::-webkit-scrollbar {
    display: none;
}

.logo-box {
    flex: 0 0 auto; /* Prevent items from shrinking */
    width: 128px; /* Standard width for each logo box */
    height: 86px; /* Standard height for each logo box */
    background: var(--white);
    border: 1px solid #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    filter: grayscale(0%); /* Optional: Color on hover */

}

.logo-box:hover {
    width: 200px;
    height: 86px;

}


.logo-box.active {
    width: 128px;
    height: 86px;

}

.logo-box img {
    max-width: 90%; /* Ensure logo fits within the box */
    max-height: 90%;
    object-fit: contain; /* Prevent distortion */
    opacity: 1;
    transition: all 0.3s ease;
}


/* Carousel Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    color: var(--white);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 50%;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.carousel-arrow:hover {
    background-color: rgba(0, 0, 0, 0.7);
}


.prev-arrow {
    background-color: transparent;
    margin-left: 8px;
    left: 0;
}

.prev-arrow img,.next-arrow img{
    max-width: 32px;
}


.next-arrow {
    background-color: transparent;
    margin-right: 8px;
    right: 0;
}


/* ---------------------------------- */
/* 6. Contact & Map Section (Mobile: Stacked) */
/* ---------------------------------- */
.contact-map-section {
    background: var(--dark-blue);
    padding-top: 50px;
    padding-bottom: 30px;
    position: relative;
    clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%); /* Adjusted clip-path for mobile */
    margin-top: -10px;
    z-index: 0;
}

.contact-content {
    display: flex;
    flex-direction: column; /* Stack vertically on mobile */
    gap: 20px;
    color: var(--white);
    padding-top: 60px; /* Reduced padding top */
}





/* --- Base Footer Styling (Mobile First) --- */

.site-footer {
    background-color: var(--dark-blue); /* Assuming var(--dark) is dark-blue or a similar dark shade */
    color: #cccccc; 
    padding: 30px 20px 0; /* Reduced top padding for mobile, added horizontal padding */
    text-align: right; 
}

.site-footer a {
    color: #aaaaaa;
    text-decoration: none;
    transition: color 0.3s;
}

.site-footer a:hover {
    color: var(--primary-red); 
}

/* --- Grid Layout for Columns (Mobile: Forced Stacked 1 Column) --- */

.footer-grid {
    display: grid;
    /* MOBILE DEFAULT: Single Column Stack */
    grid-template-columns: 1fr;
    direction: rtl;
    gap: 0; /* No grid gap in mobile for cleaner look */
    padding-bottom: 0; /* Remove padding here, use column padding */
    border-bottom: none; /* Reset this if it was applied elsewhere */
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 0; /* Vertical padding between stacked columns */
    border-bottom: 1px solid #333333; /* Separator line between stacked columns */
}

.footer-col:last-child {
    border-bottom: none; /* Remove separator on the last column */
}

.footer-col h4 {
    color: var(--white); 
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 15px; /* Reduced margin for mobile */
    font-weight: bold;
}

.footer-col ul {
    list-style: none;
    padding-right: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
    font-size: 14px;
}

/* Specific styling for Company Info column (Mobile Adjustments) */
.footer-col-info h5 {
    color: var(--white);
    font-size: 14px;
    margin-top: 10px;
    margin-bottom: 5px;
}

.footer-col-info p {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 10px; /* Space before buttons */
}

/* Button style for the footer links */
.btn-footer {
    display: block; /* Make buttons full-width for easier tapping */
    padding: 5px 0;
    margin-top: 5px;
    color: var(--primary-red);
    font-size: 13px;
    border: none;
    background: none;
    text-align: right;
}


/* --- Social Links Styling (Mobile: Centered within its column) --- */

.social-links {
    display: flex;
    justify-content: flex-start; /* Keep RTL alignment unless you want them centered */
    gap: 10px;
    margin-top: 15px;
}

/* Ensure the social column itself aligns to the right for RTL */
.footer-col-social {
    text-align: right;
}

.social-links a {
    width: 36px;
    height: 36px;
    background-color: #333333;
    border-radius: 50%;
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
}

/* --- Footer Bottom Bar --- */

.footer-bottom-bar {
    background-color: var(--darker-blue); /* Assuming var(--darker) is a shade of dark-blue */
    padding: 15px 20px;
    text-align: center;
    font-size: 12px;
    margin-bottom: 9vh; /* Space for mobile navigation bar */
 }






/* Mobile Bottom Header */
.mobile-bottom-header {    
    /* Position Fix */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 86px;
    
    /* Appearance */
    background-color: var(--dark-blue); /* Use your primary dark color */
    border-top: 2px solid #ffffff;
    z-index: 1000; /* Ensure it stays above everything else */
}

.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 86px; /* Standard mobile navigation height */
    padding: 0;
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1; /* Distribute space evenly */
    color: #aebfd1; /* Light gray for inactive links */
    font-size: 10px;
    text-decoration: none;
    padding: 18px 0;
    transition: color 0.2s;
    font-size:small;
}

.bottom-nav .nav-item i {
    font-size: 18px;
    margin-bottom: 3px;
}

.bottom-nav .nav-item.active {
    background-color: var(--light-blue); /* Use your primary dark color */
    color: var(--white); /* White for the active link */
    border: 2px solid var(--white);
}

.nav-item img{
    margin-bottom: 5px;
    max-width: 26px;
}

/* Ensure the bar is visible only on small screens */
.mobile-bottom-header {
    display: block; /* Show on mobile */
}



/* Base Styles for the Dropdown Menu */
.nav-dropdown {
    position: relative; /* Essential for positioning the submenu relative to the parent item */
}

.dropdown-menu {
    display: none; /* Hides the submenu by default */
    list-style: none;
    padding: 0;
    margin: 0;
    
    /* Mobile/Default Styling (stacked) */
    background-color: var(--light-gray); /* Lighter background to visually distinguish it */
    border-top: 1px solid #ddd;
}

/* Show the menu when the parent <li> has the 'active' class (set by JS) */
.nav-dropdown.active .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block; /* Important: Make the entire <li> area clickable/hoverable */
    padding: 10px 15px;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s; /* Smooth visual change */
}

/* 1. Feedback on Hover (Mouse over the link) */
.dropdown-menu li a:hover {
    background-color: var(--light-gray); /* Change background color */
    color: var(--dark-blue); /* Change text color */
}

/* 2. Feedback on Press/Click (When the link is actively pressed) */
.dropdown-menu li a:active {
    background-color: var(--primary-red); /* A stronger, immediate change */
    color: var(--white); /* White text on red background for contrast */
}

/* ================================== */
/* MEDIA QUERY: DESKTOP & TABLET LAYOUTS */
/* ================================== */

/* ================================== */
/* 7. Fullscreen Lightbox Modal Styles */
/* ================================== */

/* The Modal (Background) */
.lightbox-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2000; /* High z-index to cover everything */
    padding-top: 50px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity - The dim background */
}

/* Modal Content (Image Container) */
.lightbox-content {
    position: relative;
    margin: auto;
    display: block;
    width: 90%;
    max-width: 1000px;
    height: calc(100vh - 100px); /* Full view height minus padding */
    text-align: center;
}

/* The Main Image */
#lightbox-main-img {

    margin-top: 3vh;
    width: 95%;
    max-height: 85%; /* Leave space for thumbnails below */
    object-fit: contain; /* Ensure the full image is visible */
    cursor:crosshair; /* Indicate zoom/pan is possible (JS will handle this) */
}

/* Close Button (X) */
.lightbox-close-btn {
    border: 5px solid var(--white);
    background-color: #000000;
    border-radius: 32px;

    position: absolute;
    top: 4vh;
    right: 4vh; /* Top right corner for mobile exit */
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.lightbox-close-btn:hover,
.lightbox-close-btn:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Prev/Next Arrows */
.lightbox-prev, .lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    z-index: 2001;
}

.lightbox-prev {
    border: 5px solid var(--white);
    background-color: #000000;
    border-radius: 32px;

    left: 0;
    border-radius: 3px 0 0 3px;
}

.lightbox-next {
    border: 5px solid var(--white);
    background-color: #000000;
    border-radius: 32px;

    right: 0;
    border-radius: 3px 0 0 3px;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* Lightbox Thumbnails Strip */
.lightbox-thumbnail-strip {
    justify-self: center;
    text-align: center;
    padding: 10px 0;
    overflow-x: auto;
    white-space: nowrap; /* Keep images in a single line */
}

.lightbox-thumbnail-strip img {
    height: 70px;
    width: 70px;
    margin: 0 5px;
    object-fit: cover;
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.3s;
    border: 2px solid transparent;
}

.lightbox-thumbnail-strip img.active,
.lightbox-thumbnail-strip img:hover {
    opacity: 1;
    border-color: var(--primary-red);
}

/* Mobile Adjustments */
@media only screen and (max-width: 720px) {



    .lightbox-content {
        width: 100%;
        height: 100%;
        padding-top: 0;
        max-width: 100%;
    }
    .lightbox-modal {
        padding-top: 0;
    }
    .lightbox-prev, .lightbox-next {
        top: 40%;
    }
}


@media (min-width: 720px) {
 
.catalog{
    display: flex;
    flex-direction: column;
    text-align: center;
    padding-top: 128px;
    padding-bottom: 118px;
}


    .news-item:hover {
        background-color: var(--dark-blue);
        cursor: pointer;
        max-width: 340px;
        transition: all 0.2s ease-in-out; /* Smooth transition for hover effects */

    }


    .news-item {
        background-color: var(--dark-blue);
        cursor: pointer;
        max-width: 320px;
        transition: all 0.2s ease-in-out; /* Smooth transition for hover effects */

    }

    .mobile-header{
        display: none;
    }
    
    .nav-dropdown:hover .dropdown-menu {
        display: block;
    }

    .dropdown-menu {
        position: absolute; /* Take it out of the normal flow */
        right: 0; /* Position it starting from the right edge of the parent <li> */
        top: 100%; /* Place it right below the main link */
        min-width: 250px; /* Give it a decent minimum width */
        z-index: 1050; /* Ensure it stays on top of other content */
        background-color: var(--white); /* White background for clean look */
        box-shadow: 0 5px 15px rgba(0,0,0,0.15); /* Drop shadow */
        border: 1px solid #eee;
    }
    
    /* Adjust padding for the desktop sub-menu items */
    .dropdown-menu li a {
        padding: 10px 15px;
        color: var(--dark-blue);
        white-space: nowrap; /* Prevents text from wrapping */
    }


    .mobile-bottom-header {
        display: none; /* Hide on desktop */
    }
    
    /* And remove the body padding added for mobile */
    body {
        padding-bottom: 0;

    }
    
    /* 1. Header & Navigation */
    nav {
        display: block; /* Show navigation */
        width: auto;
        order: 0; 
    }

    nav ul {
        flex-direction: row; /* Horizontal navigation */
    }

    nav ul li a {
        padding: 0 15px;
    }

    .header-contact {
        display: block; /* Show contact details */
        display: flex;
        align-items: center;
    }

    .mobile_more{
        display: none;
    }

    .header-contact span {
        margin-right: 15px;
    }

    .hero-content img{
        width: auto;
        height: 128px;
    }

    .hero-content h1{
        font-size: 15vw;
        margin: -30px 0;
    }

    .hero-content .os {
        font-size: 10vw;
        top: -5vw;
    }

    /* 3. Services Section */
    .services-section {
        padding: 32px 0;
    }


    /* 1. Hide the button by default */
.service-card .btn-fingerprint {
    opacity: 0; /* Makes it invisible */
    transition: opacity 0.3s ease-in-out; /* Adds a smooth fade-in/out effect */
}

/* 2. Show the button when the parent .service-card is hovered */
.service-card:hover .btn-fingerprint {
    opacity: 1; /* Makes it fully visible */
}


.services-section h2{display: none;}
/* Optional: Basic styling for the card and button to make it look decent */
.service-card {
    max-height: 148px;
    min-width: 203px;
    max-width: 512px;
    border: 3px solid #ccc;
    padding-top: 16px;
    margin: 10px;
    text-align: center;
    cursor: pointer;
    background-color: #f9f9f9;
}

.service-card-title{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-top: -8px;
}

.service-card-title img{
    margin-right: 16px;
    max-width: 64px;
    max-height: 64px;
}


.service-card:hover {
    transform: translateY(-15px); /* Lifts it slightly */
    transition: all 0.2s ease-in-out; /* Smooth transition for hover effects */
}


    .services-grid {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        max-width: 1400px;
        flex-direction: row; /* Horizontal layout */
        margin-top: -8vh; /* Pull up higher */
    }


    
    /* 4. News Section */
    .news-section {
        margin-top: -48px;
        padding: 80px 0;
    }

.news-grid {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        flex-direction: row; /* Horizontal layout */
        margin-bottom: 0px;

    }

    .news-item h4 {
        font-size: 16px;
    }



.logo-box {
    width: 312px; /* Standard width for each logo box */
    height: 128px; /* Standard height for each logo box */
    filter: grayscale(50%); /* Optional: Color on hover */

}

.logo-box:hover {
    width: 380px;
    height: 180px;
    filter: grayscale(0%); /* Optional: Color on hover */


}


.logo-box img {
    max-width: 90%; /* Ensure logo fits within the box */
    max-height: 90%;
    object-fit: contain; /* Prevent distortion */
    opacity: 0.7; /* Optional: Make logos slightly transparent */
    transition: all 0.3s ease;
}


.logo-box img:hover {
    opacity: 1;
}


.logo-box.active {
    width: 300px;
    height: 126px;
    /* Add transition if it's not already on .logo-box */
    transition: all 0.3s ease-in-out; 
}

/* 2. Active State for the Image (Same as :hover img) */
.logo-box.active img {
    filter: grayscale(0%); 
    opacity: 1; 
    /* Add transition if it's not already on .logo-box img */
    transition: all 0.3s ease-in-out; 
}

.next-arrow{margin-right: 32px;}
.prev-arrow{margin-left: 32px;}



    .site-footer {
        background-color: var(--dark);
        padding: 60px 0 0; /* Restore larger padding for desktop */
    }

    /* --- Grid Layout for Columns (Desktop/Tablet: 4 Columns) --- */
    .footer-grid {
        /* This re-introduces the 4-column layout */
        grid-template-columns: repeat(4, minmax(150px, 1fr)); 
        gap: 128px;
        padding-bottom: 40px;
        border-bottom: none; /* Ensure no bottom border here */
    }

    /* Remove the separator lines and extra padding from the columns */
    .footer-col {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 0;
        border-bottom: none; 
        width: 200px;
    }


.footer-bottom-bar {
    margin-bottom: 0px; /* Space for mobile navigation bar */
 }


    /* Restore the social link alignment to the right of the column */
    .social-links {
        justify-content: flex-end; 
    }

    .mobile-sidebar {
        display: none;
    }

}

@media (max-width: 1025px) {

        .news-item:hover {
        background-color: var(--dark-blue);
        cursor: pointer;
        max-width: 270px;
        transition: all 0.2s ease-in-out; /* Smooth transition for hover effects */

    }


    .news-item {
        background-color: var(--dark-blue);
        cursor: pointer;
        max-width: 260px;
        transition: all 0.2s ease-in-out; /* Smooth transition for hover effects */

    }

    .logo{
        width: 86px;
        transition: all 0.3s ease;
    }


}

@media (max-width: 995px) {
    .catalog h2{
        margin-top: 96px;
        margin-left: 210PX;
    }

    .mobile-sidebar {
        display: block;
    }

    .nav-bar{
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
    }

    .logo{
        width: 128px;
        transition: all 0.3s ease;
        margin-right: 32px;
    }

.mobile_more{
    display: block;
    font-size: 32px;

}


.header-contact {
    display: none; /* Hide detailed contact info on mobile */
}

nav {
    display: none; 
    width: 100%;
    order: 3; /* Push nav below logo and contact */
}


}

@media (max-width: 500px){
    .thumbnail-strip {
    /* Style for the vertical strip of thumbnails */
    display: flex;
    flex-direction: column; /* Stack thumbnails vertically */
    gap: 10px;
    width: 70vh; /* Fixed width for the strip */
    height: 40vh;
    overflow-y: scroll;
}    
.lightbox-thumbnail-strip {
    padding-left: 3vh;
    padding-right: 3vh;
    width: 50vh;
    overflow-x: scroll;
}

    .catalog h2{
        margin-top: 96px;
        margin-left: 130PX;
    }

    .product-page-section {
    padding: 40px 0;
    background-color: #f8f8f8; /* Light background for contrast */
}


}

/* DESKTOP LAYOUT */
@media (min-width: 720px) {


    .catalog h2{
        margin-top: 0px;
        margin-left: 0PX;
    }


/* --- Global Containers --- */

/* Assume .container provides max-width and centering */
.product-page-section {
    padding: 40px 0;
    height: 67vh;
    background-color: #f8f8f8; /* Light background for contrast */
}

/* --- Product Grid Layout (The Core Layout) --- */
.product-content-grid {
    margin-top: 86px;
    display: grid;
    /* Define two columns: 40% for details, 60% for the gallery (swapped for RTL) */
    /* Adjust these percentages as needed, but this ratio is common. */
    grid-template-columns: 2fr 3fr; /* Example: 40% (Details) 60% (Gallery) */
    gap: 40px; /* Space between the two main columns */
}

}

/* For smaller screens (mobile view), switch to a single column */


@media (max-width: 995px) {
.lightbox-thumbnail-strip {
    padding-left: 3vh;
    padding-right: 3vh;
    width: 70vh;
    overflow-x: scroll;
}
    .product-content-grid {
        /* Stack the columns vertically, images on top */
        grid-template-columns: 1fr; 
        gap: 30px;
    }

    .product-page-section {
    padding: 40px 0;
    height: 100%;
    background-color: #f8f8f8; /* Light background for contrast */
}
}

.product-page-section {
    padding: 40px 0;
    background-color: #f8f8f8; /* Light background for contrast */
}
/* --- Gallery Styling --- */
.product-gallery {
    /* Set the gallery to use Flexbox or Grid for its internal components */
    display: flex;
    flex-direction: row; /* Thumbnails and main image side-by-side */
    gap: 15px;
}



.thumbnail-strip img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: border-color 0.2s;
}

.thumbnail-strip img:hover,
.thumbnail-strip img.active {
    border-color: #007bff; /* Highlight active/hovered thumbnail */
}

.main-image-box {
    /* The box containing the main image */
    flex-grow: 1; /* Takes up the remaining space */
    border: 1px solid #eee;
    padding: 10px;
    background: #fff;
    max-height: 500px; /* Limit image height */
}

#main-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures the whole image fits without cropping */
    cursor: pointer;
}

/* --- Details Styling --- */
#product-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
}

.product-category {
    font-size: 1rem;
    color: #666;
    margin-bottom: 60px;
}

.product-details {
    /* Optional: Add some spacing or background to the details column */
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-align: right;
}

#product-description {
    /* Style the description text */
    line-height: 1.8;
    color: #444;
    margin-bottom: 30px;
    padding: 10px 0;
}

/* CTA Button Styling (assuming you have btn and btn-primary elsewhere) */
.product-cta {
    display: inline-block; /* Essential for alignment */
    width: 100%; /* Make the CTA button full width of the details column */
    padding: 15px 25px;
    font-size: 1.1rem;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    background-color: #25D366; /* WhatsApp Green */
    color: white;
    transition: background-color 0.2s;
}

.product-cta:hover {
    background-color: #128C7E;
}


@media (max-width: 450px) {
.hero-section {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.news-item{
    padding: 1vh;
    min-height: 150px;
    max-width: 30vh;
}


.lightbox-thumbnail-strip {
    padding-left: 3vh;
    padding-right: 3vh;
    width: 45vh;
    overflow-x: scroll;
}


}