﻿/* --- Global Reset & Variables --- */
:root {
    --primary-color: #0056b3;
    --accent-green: #295333;
    --light-bg: #f4f4f4;
    --dark-bg: #35312A;
    --text-color: #333;
    --light-text: #fff;
    --font-family: 'Roboto', Arial, sans-serif;
    --header-height: 70px;
}



/* --- 1. Main Container & Layout Setup --- */
.main-section-container {
    /* Enables side-by-side layout (the key to your fix) */
    display: flex;
    /* Puts space between the two columns */
    justify-content: space-between;
    /* Adds space around the entire block */
    padding: 30px 50px;
    /* Ensures boxes start at the top */
    align-items: flex-start;
}

/* --- 2. Email Alerts Box (Left Column) --- */
.email-alerts-box {
    width: 40%; /* Keeps it a bit narrower */
    padding: 10px 0;
}

    .email-alerts-box h3 {
        font-size: 1.5em;
        font-weight: bold;
        margin-bottom: 10px;
    }

/* Style the sign-up button outside the green box */
.sign-up-button {
    background-color: white;
    color: black;
    border: 1px solid black;
    padding: 8px 15px;
    font-size: 0.8em;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 15px; /* Separate it from the text */
}

/* --- 3. Investor Relations Box (Right Column) --- */
.investor-relations-box {
    width: 55%; /* Makes it slightly wider than the Email Alerts */
    background-color: #386A45; /* The dark green color */
    color: white;
    padding: 20px;
    box-sizing: border-box;
}

/* Investor Relations Header (for the title and the 'VIEW' button) */
.ir-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

    .ir-header h2 {
        font-size: 1.8em;
        font-weight: bold;
    }

/* Style the 'VIEW INVESTOR RELATIONS' button inside the green box */
.view-ir-button {
    background-color: transparent;
    color: white;
    border: 1px solid white;
    padding: 8px 15px;
    font-size: 0.8em;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 600;
}

.company-name, .date {
    font-size: 0.9em;
    margin-bottom: 5px;
}

.date {
    margin-bottom: 15px;
}

/* --- 4. Stock Data Grid Layout --- */
.stock-data-grid {
    /* Creates the two-row, horizontal layout */
    display: grid;
    /* Defines 4 equal columns for the first row's data points */
    grid-template-columns: repeat(4, 1fr);
    gap: 15px 5px; /* Vertical and horizontal spacing */
    text-align: left;
}

.stock-item {
    display: flex;
    flex-direction: column; /* Stack label and value vertically */
}

    .stock-item .label {
        font-size: 0.8em;
        opacity: 0.8;
        margin-bottom: 3px;
    }

    .stock-item .value {
        font-size: 1.1em;
        font-weight: bold;
    }

/* Make Day Range and Year Range span two columns each to fill the width */
.range-item {
    grid-column: span 2;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    padding-top: var(--header-height);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    color: var(--accent-green);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
}

    a:hover {
        text-decoration: underline;
    }

/* --- Fixed Header Styling (Desktop Base) --- */
.main-header.fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--light-text);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    height: var(--header-height);
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo a {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-green);
    text-decoration: none;
    text-transform: uppercase;
}

/* DESKTOP NAV STYLING */
.main-nav {
    display: flex;
}

    .main-nav ul {
        list-style: none;
        display: flex;
    }

        .main-nav ul li {
            margin-left: 20px;
        }

            .main-nav ul li a {
                color: var(--text-color);
                font-size: 0.75rem;
                padding: 5px 0;
                font-weight: 400;
                letter-spacing: 0.5px;
            }

.search-icon i {
    font-size: 1rem;
    color: var(--text-color);
    cursor: pointer;
}

/* MOBILE NAV CONTROLS (Hidden by default) */
.menu-toggle {
    display: none;
}

/* --- Hero Section --- */
.hero-image-top {
    height: 300px;
    background: url('placeholder-dubai.jpg') no-repeat center center/cover;

}

.hero-text-area {
    padding: 50px 0;
    text-align: left;

}

    .hero-text-area h1 {
        font-size: 4.5rem;
        font-weight: 700;
        color: var(--dark-bg);
        margin-bottom: 15px;
        line-height: 1.1;
        text-transform: uppercase;
    }


.video-section {
    padding: 100px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 50px;
    padding-bottom: 50px;
    margin: 0;
}

.video-placeholder {
    width: 80%;
    height: 60%;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--light-text);
    font-size: 3rem;
    font-weight: 700;
    margin: 0 auto;
    max-width: 80%;
    padding-left: 50px;
    padding-right: 50px;
    position: relative;
    padding-bottom: 45%; 
    height: 0;
    overflow: hidden;
    /* Add a high z-index to bring the video to the front */
    z-index: 10
}

    /* ADD THIS NEW CSS BLOCK */
    .video-placeholder video {
        /* 1. Position the video absolutely within the relative placeholder */
        position: absolute;
        top: 0;
        left: 0;
        /* 2. Crucially, make it fill the placeholder's calculated space */
        width: 100%;
        height: 100%;
        /* 3. Ensure the video scales correctly (optional, but good practice) */
        object-fit: cover;
    }

.news-section {
    padding: 50px 0;
    background-color: var(--light-bg);
}

.commitment-section.dark-image-bg {
    /* 2. Control how the image is displayed */
    background-size: cover; /* Ensures the image covers the entire section */
    background-position: center center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents the image from tiling */
    /* Optional: Add a dark overlay to make white text more readable */
    position: relative;
    z-index: 1; /* Make sure the section is above any pseudo-element */
}

    /* Optional: Add a subtle overlay for better text contrast */
    .commitment-section.dark-image-bg::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.4); /* 40% opaque black overlay */
        z-index: 2; /* Place the overlay over the image */
    }

/* Ensure content is above the overlay */
.commitment-section .container {
    position: relative;
    z-index: 3;
}

    .news-section h2 {
        font-size: 2rem;
        font-weight: 450;
    }

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.news-controls i {
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
}

.news-carousel-container {
    display: flex;
    overflow-x: scroll;
    padding: 10px 0;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

    .news-carousel-container::-webkit-scrollbar {
        display: none;
    }

.news-item {
    min-width: 350px;
    min-height: 350px;
    flex-shrink: 0;
    background: var(--light-text);
    padding: 30px;
    margin-right: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* --- Stats Section --- */
.stats-section {
    padding: 60px 0;
    background-color: var(--light-text);
}

    .stats-section h2 {
        font-size: 2rem;
        margin-bottom: 40px;
        font-weight: 300;
        text-align: center;
    }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-item {
    color: var(--light-text);
    padding: 30px 20px;
    text-align: center;
    background-color: var(--accent-green);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

/* --- Commitment Section --- */
.commitment-section {
    padding: 150px 0;
    background: url('../video/background_image.jpg') no-repeat center center/cover;
    background-color: #d86800;
    position: relative;
    color: var(--light-text);
    text-align: left;
}

    .commitment-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);
    }

.commitment-card {
    position: relative;
    z-index: 2;
    max-width: 500px;
}

    .commitment-card h2 {
        font-size: 2rem;
        margin-bottom: 20px;
        font-weight: 300;
        line-height: 1.2;
    }

.commitment-button {
    display: inline-block;
    background-color: var(--light-text);
    color: var(--text-color);
    padding: 12px 30px;
    font-weight: 700;
    font-size: 0.8rem;
}

/* --- Email & IR Section --- */
.email-ir-section {
    padding: 40px 0;
    background-color: var(--light-text);
}

    .email-ir-section .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        border-top: 1px solid #ddd;
        border-bottom: 1px solid #ddd;
        padding: 30px 0;
    }

.email-alerts {
    display: flex;
    align-items: center;
    flex-basis: 40%;
}

.investor-relations-box {
    flex-basis: 55%;
    padding: 20px;
    color: var(--light-text);
    background-color: var(--accent-green);
}

.stock-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

/* --- Footer --- */
.main-footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 30px 0;
}

    .main-footer .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.8rem;
        flex-wrap: wrap;
    }

.copyright-info {
    display: flex;
    align-items: center;
}

/* ========================================================= */
/* --- TABLET AND MOBILE STYLES (Max 992px) --- */
/* ========================================================= */
@media (max-width: 992px) {
    /* --- HEADER AND NAVIGATION --- */

    /* Show the hamburger icon */
    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--accent-green);
        order: 3;
    }

    /* Hide desktop nav and search */
    .main-nav {
        display: none;
    }

    .search-icon.desktop-only {
        display: none;
    }

    /* 1. Mobile Menu Styling (Hidden by default) */
    .main-nav.mobile-friendly-nav {
        max-height: 73vh; /* 'vh' stands for viewport height */
        /* This is the key fix */
        overflow-y: scroll; /* or auto, which adds scrollbar only when needed */
        /* Ensure it's positioned correctly */
        position: fixed; /* or absolute, depending on implementation */
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--dark-bg);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

        /* 2. Menu State when OPEN */
        .main-nav.mobile-friendly-nav.open {
            display: block;
        }

        .main-nav.mobile-friendly-nav ul {
            flex-direction: column;
            width: 100%;
            padding: 10px 0;
        }

            .main-nav.mobile-friendly-nav ul li {
                margin: 0;
                border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            }

                .main-nav.mobile-friendly-nav ul li:last-child {
                    border-bottom: none;
                }

                .main-nav.mobile-friendly-nav ul li a {
                    color: var(--light-text);
                    font-size: 1rem;
                    padding: 15px 5%;
                    display: block;
                    width: 100%;
                    text-transform: uppercase;
                }

    /* Hero/Video Adjustments */
    .hero-text-area h1 {
        font-size: 2rem;
    }

    .video-placeholder {
        padding: 50px 0;
        font-size: 2rem;
    }

    /* News Carousel Adjustment */
    .news-item {
        min-width: 45vw; /* Tablet: 2 cards partially visible */
    }

    .news-section .container {
        padding-left: 0;
        padding-right: 0;
    }

    .news-header, .all-news-link {
        padding: 0 5%;
    }

    /* Stats Section Adjustments */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr); /* Tablet: 2 columns */
        gap: 15px;
    }

    /* Commitment Section Adjustments */
    .commitment-section {
        padding: 100px 0;
        text-align: center;
    }

    .commitment-card {
        max-width: 100%;
    }

    /* Email/IR Section Adjustments */
    .email-ir-section .container {
        flex-direction: column;
        gap: 20px;
        padding: 20px 0;
    }

    .email-alerts, .investor-relations-box {
        flex-basis: 100%;
        width: 100%;
    }

    .email-alerts {
        flex-direction: column;
        align-items: flex-start;
    }

    .stock-info-grid {
        grid-template-columns: repeat(2, 1fr); /* Tablet IR stock data: 2 columns */
    }

    /* Footer Adjustments */
    .main-footer .container {
        flex-direction: column;
        text-align: center;
    }

    .copyright-info {
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-top: 15px;
    }

    .legal-links a {
        margin: 0 10px;
        display: inline-block;
    }
}
.view-link {
    /* Appearance: Border, Background, Text Color */
    border: 1px solid #000; /* Thin black border */
    background-color: transparent; /* Transparent background */
    color: #000; /* Black text */
    /* Layout: Padding and Display */
    display: inline-block; /* Allows padding and width/height properties */
    padding: 15px 30px; /* Adjust internal space: 15px top/bottom, 30px left/right */
    margin-top: 30px; /* Add some space above the button, matching the image */
    /* Text Style: Remove underline, make text uppercase, set font size */
    text-decoration: none; /* Remove default underline from the <a> tag */
    text-transform: uppercase;
    font-size: 0.8rem; /* Use a small font size */
    font-weight: 500; /* Medium weight, if using a font like Poppins or Roboto */
    /* Optional: Add a subtle transition for hover effects */
    transition: all 0.2s ease-in-out;
}

    /* Optional: Hover Effect for better UX */
    .view-link:hover {
        background-color: #000; /* Fill button with black */
        color: #fff; /* Change text to white */
        cursor: pointer; /* Ensure the mouse shows the pointer icon */
    }
.news-controls {
    display: flex; /* Arrange buttons in a row */
    gap: 15px; /* Space between the buttons */
    /* Add any positioning for the news-controls container if needed */
    /* e.g., margin-top: 20px; to separate from news content */
}

.control-button {
    /* Basic Button Reset */
    border: none; /* Remove default button border */
    background-color: transparent; /* Transparent background */
    cursor: pointer; /* Show pointer cursor on hover */
    padding: 0; /* Remove default padding */
    margin: 0; /* Remove default margin */
    /* Shape and Border */
    width: 50px; /* Adjust size as needed */
    height: 50px; /* Make it a perfect circle */
    border-radius: 50%; /* Rounded shape */
    border: 1px solid #dcdcdc; /* Light gray border as in the image */
    /* Centering the Icon */
    display: flex; /* Use flexbox to center the icon */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    /* Icon Styling */
    color: #444; /* Dark gray for the icon */
    font-size: 1.2rem; /* Adjust icon size */
    /* Optional: Transition for smooth hover effects */
    transition: all 0.2s ease-in-out;
}

    /* Optional: Hover Effect */
    .control-button:hover {
        border-color: #a0a0a0; /* Slightly darker border on hover */
        color: #000; /* Darker icon on hover */
        box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Subtle shadow */
    }

    /* If you need to make the arrows look sharper or larger */
    .control-button i {
        font-weight: 900; /* For solid Font Awesome icons, ensures bold appearance */
    }
.hero-image-top {
    /* Define a height and width for the container */
    width: 100%;
    height: 60vh; /* Example height: 60% of the viewport height */
    overflow: hidden; /* Ensures video stays within bounds */
    position: relative; /* Needed if you add overlay text/content */
}

    .hero-image-top video {
        /* Make the video element fill its container */
        position: absolute;
        top: 50%;
        left: 50%;
        /* Standard technique to center and cover the area */
        min-width: 100%;
        min-height: 100%;
        width: auto;
        height: auto;
        transform: translate(-50%, -50%);
        object-fit: cover; /* Ensures video fills and crops if aspect ratios differ */
        z-index: -1; /* Pushes the video behind any overlaid text/content */
    }

@media (max-width: 768px) {
    footer {
        flex-direction: column; /* Stacks items vertically */
        text-align: center; /* Centers the text */
        padding: 15px;
    }
}

/* ========================================================= */
/* --- SMALL MOBILE PHONE STYLES (Max 576px) --- */
/* ========================================================= */
@media (max-width: 576px) {
    .hero-image-top {
        height: 200px;
    }

    .hero-text-area {
        padding: 30px 0;
    }

        .hero-text-area h1 {
            font-size: 1.8rem;
        }

    /* News Carousel Adjustment */
    .news-item {
        min-width: 85vw; /* Mobile: Nearly full width for easy viewing */
    }

    .news-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-controls {
        margin-top: 10px;
    }

    /* Stats Section Adjustments */
    .stats-grid {
        grid-template-columns: 1fr; /* Mobile: 1 column */
        gap: 10px;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Commitment Section Adjustments */
    .commitment-section {
        padding: 60px 0;
    }

    .commitment-card h2 {
        font-size: 1.5rem;
    }

    /* Email/IR Section Adjustments */
    .stock-info-grid {
        grid-template-columns: 1fr; /* Mobile IR stock data: 1 column */
        gap: 5px;
    }

    /* Footer Adjustments */
    .legal-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 10px;
    }

        .legal-links a {
            margin: 5px 0;
        }

    .main-section-container {
        display: flex; /* Enables side-by-side layout */
        justify-content: space-between; /* Pushes them to the edges */
        /* or use grid */
    }

    .investor-relations-box {
        width: 45%; /* Example width */
        background-color: #386A45; /* The specific dark green color */
        padding: 20px;
    }

    .email-alerts-box {
        width: 45%; /* Example width, same as the other box */
    }


}


/* Ensure the parent list item can position the sub-menu */
.main-nav ul li.has-submenu {
    position: relative;
}

/* Base style for the dropdown */
.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute; /* Key for desktop dropdown */
    top: 100%; /* Position below the main link */
    left: 0;
    background-color: var(--light-text); /* Use a light background for visibility */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    z-index: 1001; /* Ensure it's above the header */
    display: none; /* HIDE by default */
}

    /* Style the submenu links */
    .submenu li {
        border: none !important; /* Remove mobile border from sub-menu items */
    }

    .submenu a {
        color: var(--text-color) !important; /* Override white mobile text color */
        padding: 10px 15px !important;
        text-transform: none !important; /* Keep capitalization normal in dropdown */
    }

/* Show the submenu on hover (Desktop functionality) */
.has-submenu:hover > .submenu {
    display: block;
}



.main-nav ul li.has-sub-menu {
    position: relative;
}

/* 2. Hide the submenu by default and position it absolutely */
.ul-header-submenu {
    position: absolute;
    top: 100%; /* Position right below the parent link */
    left: 0;
    z-index: 1001; /* Ensure it stays on top of other content */
    display: none; /* Crucial: Hidden by default */
    width:300px;
    background-color: black; /* Use a white background */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    padding: 10px 0;
}

/* 3. Show the submenu when the parent is hovered */
.main-nav ul li.has-sub-menu:hover > .ul-header-submenu {
    display: block;
}

/* 4. Sub-menu link styling cleanup */
.ul-header-submenu ul {
    display: block; /* Make the nested list vertical */
}

    .ul-header-submenu ul li {
        margin: 0;
        border: none;
    }

        .ul-header-submenu ul li a {
            color: #fff; /* Use dark text color */
            padding: 8px 20px;
            font-size: 0.85rem;
            font-weight: 400;
            text-transform: none; /* Keep capitalization normal */
        }

            .ul-header-submenu ul li a:hover {
                background-color: tomato; /* Highlight on hover */
                text-decoration: none;
            }

/* --- Modal Container Styles (General) --- */
.ul-search-form-wrapper,
.ul-search-form-wrapper1 {
    /* Fixed position to cover the whole viewport */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark overlay for background */
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000; /* Ensure it is on top of other elements */
    /* Hide by default (your JavaScript will toggle this) */
    display: none;
    /* You might use a class like 'is-visible' or 'active' to show it */
    /* Center the content vertically and horizontally */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Styling for the form area itself */
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
}

    /* Make sure the form content doesn't take up the whole screen width */
    .ul-search-form-wrapper > form,
    .ul-search-form-wrapper1 > form {
        width: 90%;
        max-width: 400px; /* Limit the size of the pop-up box */
        background: white; /* Optional: Give the internal form a background */
        padding: 30px;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

/* --- Form Element Styles --- */

/* Style for the search form wrappers inside the modal */
.ul-search-form {
    margin-bottom: 15px;
    width: 100%;
}

.ul-search-form-right {
    width: 100%;
}

/* Style for the actual input fields */
.ul-search-form-wrapper input[type="text"],
.ul-search-form-wrapper input[type="password"],
.ul-search-form-wrapper1 input[type="text"],
.ul-search-form-wrapper1 input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    font-size: 16px;
    background-color: #f8f8f8;
    color: #333;
}

/* Style for the submit button */
.ul-btn {
    width: 100%;
    padding: 15px;
    background-color: #007bff; /* Primary button color */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    margin-top: 10px;
    transition: background-color 0.3s;
}

    .ul-btn:hover {
        background-color: #0056b3;
    }

/* --- Close Button Style --- */

/* Position the close button (flaticon-close) in the corner of the modal */
.ul-search-closer,
.ul-search-closer1 {
    position: absolute; /* Relative to the form wrapper */
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: white; /* Color on the dark overlay */
    cursor: pointer;
    transition: color 0.2s;
}

    .ul-search-closer:hover,
    .ul-search-closer1:hover {
        color: #ccc;
    }
/* Start by hiding the modals */
.ul-search-form-wrapper,
.ul-search-form-wrapper1 {
    display: none; /* Hidden by default */
}

    /* Only display the modal when the 'is-visible' class is present */
    .ul-search-form-wrapper.is-visible,
    .ul-search-form-wrapper1.is-visible {
        display: flex; /* Show the modal */
    }


/* --- Modal Background and Centering (From previous steps) --- */
.ul-search-form-wrapper,
.ul-search-form-wrapper1 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none; /* Controlled by JS's .is-visible */
    align-items: center;
    justify-content: center;
    flex-direction: column; /* Allows form and button to stack if needed */
}

    .ul-search-form-wrapper.is-visible,
    .ul-search-form-wrapper1.is-visible {
        display: flex;
    }

    /* Style for the centered form content box */
    .ul-search-form-wrapper form,
    .ul-search-form-wrapper1 form,
    .modal-content-box { /* Using the new class for consistency */
        width: 90%;
        max-width: 400px;
        background: white;
        padding: 30px;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        box-sizing: border-box;
    }

/* --- Close Button Positioning & Styling --- */

.ul-search-closer,
.ul-search-closer1 {
    position: absolute;
    /* Calculate position relative to the centered 400px box */
    /* top: 50% - (half the form height), then offset up */
    /* right: 50% - (half the form width, 200px), then offset right */

    top: calc(50% - 220px); /* Adjust 220px up from center to be above the form */
    right: calc(50% - 210px); /* Adjust 210px right from center to be next to the form */
    /* Make the button look good and clickable */
    background: #fff;
    color: #333;
    width: 30px; /* Size of the container */
    height: 30px;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 1001;
    transition: background-color 0.2s;
}

    .ul-search-closer i,
    .ul-search-closer1 i {
        font-size: 16px; /* Adjust icon size */
        vertical-align: middle;
    }

    .ul-search-closer:hover,
    .ul-search-closer1:hover {
        background: #f0f0f0;
        color: #000;
    }
/*
 * IMPORTANT: You need to replace 'your-background-image.jpg'
 * with the actual path to your image.
 */

.page-header {
    /* Set the height for the header section */
    height: 400px;
    /* Use the background image and cover the area */
    background: url('your-background-image.jpg') center center no-repeat;
    background-size: cover;
    /* Apply a purple overlay using a linear gradient */
    /* Adjust the opacity (0.8) and color (e.g., #5c2c9d) to match your desired purple */
    background-color: #386A45;
    /* You need to repeat the image URL here for the overlay to work correctly */
    /* Flexbox for perfect vertical and horizontal centering */
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    text-align: center;
    /* Ensure the content is visible over the background */
    color: #ffffff;
}

    /* Optional: A max-width container to group content if needed */
    .page-header .container {
        padding: 0 15px; /* Add some padding on the sides */
        /* Add a max-width if you want to keep the content from stretching too wide */
        /* max-width: 1200px; */
    }

    /* Style the Main Title */
    .page-header h1 {
        font-size: 3.5rem; /* Large font size for the title */
        font-weight: 600; /* Semi-bold */
        margin-bottom: 20px; /* Space below the title */
        line-height: 1.2;
    }

/* Style the Breadcrumb Navigation */
.breadcrumb-nav {
    font-size: 1rem;
    padding: 8px 20px; /* Padding for the container/background effect */
    border: 1px solid rgba(255, 255, 255, 0.5); /* Light border for the 'box' look */
    display: inline-block; /* Make the border only wrap the content */
    border-radius: 5px; /* Subtle rounded corners */
}

    .breadcrumb-nav a,
    .breadcrumb-nav span {
        color: #ffffff;
        text-decoration: none;
        transition: color 0.2s; /* Smooth transition for hover */
    }

        .breadcrumb-nav a:hover {
            /* Optional: Slightly brighter color on hover */
            color: #f0f0f0;
        }

    .breadcrumb-nav .separator {
        margin: 0 8px; /* Space around the separator slash */
        opacity: 0.7; /* Make the slash slightly less prominent */
    }

/* Basic body reset for better demo viewing */
body {
    margin: 0;
    font-family: Arial, sans-serif; /* Use a common font */
}


.main-nav a {
    text-decoration: none; /* Crucial: Removes the underline */
    color: var(--nav-text-color);
    display: block;
    padding: 15px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.count-badge {
    /* Shape and Color */
    display: inline-flex; /* Use flex for centering */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
    background-color: #007bff; /* Blue background color */
    color: white; /* White text color */
    
    /* Sizing */
    width: 24px; /* Set width */
    height: 24px; /* Set height (must match width for a circle) */
    font-size: 14px; /* Adjust text size */
    font-weight: bold; /* Make the number stand out */
    line-height: 1; /* Helps with vertical alignment */
    
    /* Make it a Circle */
    border-radius: 50%; /* Makes the square shape into a circle */
    
    /* Positioning (Optional: if you want it to float near something) */
    /* For example: position: absolute; top: -5px; right: -5px; */
}
@media (max-width: 768px) {
    .count-badge {
        /* Shape and Color */
        margin-left:30px;
        display: inline-flex; /* Use flex for centering */
        align-items: center; /* Center vertically */
        justify-content: center; /* Center horizontally */
        background-color: #007bff; /* Blue background color */
        color: white; /* White text color */
        /* Sizing */
        width: 24px; /* Set width */
        height: 24px; /* Set height (must match width for a circle) */
        font-size: 14px; /* Adjust text size */
        font-weight: bold; /* Make the number stand out */
        line-height: 1; /* Helps with vertical alignment */
        /* Make it a Circle */
        border-radius: 50%; /* Makes the square shape into a circle */
        /* Positioning (Optional: if you want it to float near something) */
        /* For example: position: absolute; top: -5px; right: -5px; */
    }

    .mobile-friendly-nav ul {
        /* Crucial for single-line display and scrolling: */
        white-space: nowrap;
        overflow-x: auto; /* Enables horizontal scroll bar */
        overflow-y: hidden; /* Prevents vertical scroll */
        /* Ensure it takes up available width to determine overflow point */
        width: 100%;
        /* Better scrolling experience on touch devices */
        -webkit-overflow-scrolling: touch;
        /* Remove default list styling */
        padding: 0;
        margin: 0;
        list-style: none;
    }

        .mobile-friendly-nav ul li {

            padding: 0 10px;
        }

    /* If the nav container itself has unnecessary padding, you might need to adjust it: */
    .main-nav.mobile-friendly-nav {
        /* Example: Removes padding that might hide the left edge */
        padding-left: 0;
        padding-right: 0;
    }
}

.has-sub-menu .ul-header-submenu {
    display: none;
    /* Add other styling for mobile appearance (e.g., background color) */
}

/* Submenu is shown when the 'open' class is applied by JavaScript */
.has-sub-menu.open .ul-header-submenu {
    display: block;
}