* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-image: url('GeoresImages/4fon.jpg'); /* Add your image path here */
    background-size: cover; /* This will make the image cover the entire background */
    background-position: center; /* This will center the image */
    background-repeat: no-repeat; /* This will prevent the image from repeating */
}
.container {
    max-width: 1200px; 
    margin: 0 auto;
    padding: 0 1rem;
}

header {
    color: #333;
    padding: 1rem 0;
    width: 100%;
    height:10%;
    position: relative;
    display: flex;
    justify-content: center; 
    align-items: center; 
    background-image: url("/GeoresImages/header.jpg");
    background-position: center;
    background-size:cover;
    background-repeat: no-repeat;
    z-index: 1; /* Ensure header is on top */
    overflow: hidden; /* Ensure the gradient does not spill out of the header */
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 80%);
    pointer-events: none; /* Ensures the pseudo-element does not interfere with user interactions */
    z-index: -1; /* Place it behind the header content */
}


.header-info {
    position: absolute;
    box-sizing: border-box;
    background: rgba(200, 200, 200, 0.7);
    color: #333;
    border-left: 1px solid #ddd;
}

.header-info.upper-right {
    right: calc(1rem + 250px);
    top: 0;
}

.header-info.lower-right {
    right: calc(1rem + 250px);
    bottom: 0;
    border-top: 1px solid #ddd;
}

header .container {
    display: flex;
    justify-content: center; 
    align-items: center; 
}

header img {
    height: 150px; 
    margin-left: 0;
    position: relative; 
    left: 0; 
    top: 50%; 
}

.main-menu {
    color: #333; 
    padding: 0 0;
    width: 100%;
    margin-bottom: 1rem; 
    margin-top: 1rem;
}

.main-menu .container {
    max-width: 1200px; 
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.main-menu ul {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
}

.main-menu ul li {
    margin: 0; 
}

.main-menu ul li a {
    color: #fff; 
    text-decoration: none;
    padding: 0.4rem 2.5rem;
    display: block;
    border: 1px solid #007bff; 
    border-radius: 5px;
    background: darkblue; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); 
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
    margin: 0 0.5rem;
    margin-bottom: 1rem;
}

.main-menu ul li a:hover {
    background: #0056b3; 
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); 
}

.wrapper {
    display: flex;
    max-width: 1200px; 
    margin: 0 auto;
    padding: 0 1rem; 
}

.sidebar {
    width: 300px; 
    border:0.5px solid lightgray;
    background: #f4f4f4;
    padding: 1rem;
    margin-top: 0;
    opacity:0.9;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    font-size:18px;
}

.sidebar ul li {
    margin: 10px 0;
    position: relative;
}

.sidebar ul li a {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 0.5rem;
    transition: background 0.3s;
}

.sidebar ul li a:hover {
    background: #ddd;
    border-radius: 5px;
}

/* General Dropdown Styles */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    left: 100%; /* Position to the right of the parent li */
    top: 0; /* Align with the top of the parent li */
}

/* Show Dropdown on Hover */
.dropdown:hover .dropdown-content {
    display: block;
}
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown Content Image Style */
.dropdown-content img {
    width: 100%;
    height: auto;
}

/* Style for Dropdown Text */
.dropdown-content p {
    margin: 0;
    padding: 12px 16px;
}

/* Ensure each dropdown-content is relative to its parent */
.sidebar ul li {
    position: relative;
    margin: 10px 0;
}

.main-content {
    flex: 1;
    padding: 1rem;
    background: #f4f4f4;
    border: none;
    margin-left: 1rem;
    font-size: 16px !important;
    max-width: 100%; 
    opacity:0.9;
}

@media (max-width: 768px) {
    .main-menu ul {
        flex-direction: column;
        font-size:14px;
    }

    .main-menu ul li {
        margin: 0; 
        font-size:14px;
    }

    .cta-button {
        padding: 8px 16px;
        font-size:14px;
    }

    #hero p {
        font-size:14px;
    }

    form button {
        padding: 8px;
        font-size:14px;
    }

    .sidebar {
        width: 100%;
        margin-bottom: 1rem;
        border-right: none;
        border-top: 1px solid #292727;
        font-size:14px;
    }

    .main-content {
        margin: 0; 
        width: 100%; 
        font-size:14px;
    }
    
    .main-content img {
float:left;
    }

    .header-info.upper-right, .header-info.lower-right {
        right: 1rem;
        font-size:14px;
    }
}

/* Adjustments for screens with max-width 480px */
@media (min-width: 100px) and (max-width: 500px) {
    .main-menu {
        margin-bottom: 1rem; /* Space between main-menu and sidebar */
        font-size:14px;
    }
     .main-content img {
float:left;
    }

    .sidebar {
        width: 100%;
        margin-bottom: 1rem;
        border-right: none;
        border-top: 1px solid #ddd;
        position: relative; /* Ensure it's positioned correctly */
        z-index: 2; /* Make sure it appears above the main content */
        text-align:center;
        align-items:center;
        font-size:14px;
    }

    .main-content {
        margin: 0; 
        width: 100%; 
        padding: 0.5rem; 
        z-index: 1; /* Ensure it's below the sidebar */
        font-size:14px;
    }

    .wrapper {
        flex-direction: column;
        display: flex;
    }
    #hero p {
        font-size:14px;
    }
}

   



.sidebar h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    font-size:18px;
}

.sidebar ul li {
    margin: 10px 0;
}

.sidebar ul li a {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 0.5rem;
    transition: background 0.3s;
}

.sidebar ul li a:hover {
    background: #ddd;
    border-radius: 5px;
}

.main-content {
    flex: 1;
    padding: 1rem;
    background: #f4f4f4;
    border: none;
    margin-left: 1rem; 
    font-size:15px !important;
}

.main-content ul,
.main-content li {
    font-size: 18px; 
}

.main-content h2,
.main-content h3,
.main-content p,
.main-content ol {
    font-size: 18px; 
}

/* Hero Section */
#hero {
    background: #f4f4f4;
    padding: 2rem 0;
    text-align: center;
}

#hero .container {
    max-width: 1200px;
    margin: 0 auto;
}

#hero h2 {
    margin-bottom: 10px;
}

#hero p {
    font-size: 1.2rem;
}

.cta-button {
    display: inline-block;
    background: #007bff; 
    color: #fff;
    padding: 10px 30px;
    text-decoration: none;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); 
    transition: background 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    background: #0056b3; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); 
}

#services {
    padding: 2rem 0;
    background: #e2e2e2;
    text-align: center;
}

#services .container {
    max-width: 1200px; 
    margin: 0 auto;
}

.service {
    margin-bottom: 1.5rem;
}

#about {
    padding: 2rem 0;
    text-align: center;
}

#about .container {
    max-width: 1200px; 
    margin: 0 auto;
}

#contact {
    padding: 2rem 0;
    background: #f4f4f4;
}

#contact .container {
    max-width: 1200px; 
    margin: 0 auto;
}

form {
    max-width: 600px;
    margin: auto;
}

form label {
    display: block;
    margin: 10px 0 5px;
}

form input, form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
}

form button {
    background: #007bff;
    color: #fff;
    padding: 10px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); 
    transition: background 0.3s, box-shadow 0.3s;
}

form button:hover {
    background: #0056b3;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

footer {
    background: #333;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
}

footer .container {
    max-width: 1200px; 
    margin: 0 auto;
}

/* Adjustments for smaller screens */
@media (max-width: 768px) {
    .main-menu ul {
        flex-direction: column;
    }

    .main-menu ul li {
        margin: 0; 
    }

    .cta-button {
        padding: 8px 16px;
    }

    #hero p {
        font-size: 1rem;
    }

    form button {
        padding: 8px;
    }

    .sidebar {
        width: 100%;
        margin-bottom: 1rem;
        border-right: none;
        border-top: 1px solid #ddd;
        justify-content:center;
        align-items:center;
        text-align:center;
    }

    .main-content {
        margin: 0; 
        width: 100%; 
    }

    .header-info.upper-right, .header-info.lower-right {
        right: 1rem;
    }
}

/* Adjustments for smaller screens */
@media (max-width: 1000px) {
    .main-menu {
        margin-bottom: 1rem; /* Space between main-menu and sidebar */
    }

    .sidebar {
        width: 100%;
        margin-bottom: 1rem;
        border-right: none;
        border-top: 1px solid #ddd;
        position: relative; /* Ensure it's positioned correctly */
        z-index: 2; /* Make sure it appears above the main content */
        justify-content:center;
        align-items:center;
        text-align:center;
    }

    .main-content {
        margin: 0; 
        width: 100%; 
        padding: 0.5rem; 
        z-index: 1; /* Ensure it's below the sidebar */
    }
    .main-content li{
        font-size:16px;
    }

    .wrapper {
        flex-direction: column;
        display: flex;
    }
}


/* Dropdown Parent */
.sidebar ul li.dropdown > a {
    cursor: pointer;
    font-weight: bold;
}


/* General Dropdown Styles */
.sidebar ul li .dd1 {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.7s ease-out, opacity 0.5s ease-out;
    padding: 0;
}

/* Show Dropdown when active */
.sidebar ul li.active .dd1 {
    max-height: 500px; /* Adjust as needed based on content */
    opacity: 1;
    padding: 0; /* Adjust padding as needed */
}



.sidebar ul li {
    border: 1px solid #ccc; /* Border around <li> */
    border-radius: 4px; /* Optional: rounded corners */
    margin-bottom: 4px; /* Space between list items */
    padding: 8px; /* Padding inside <li> */
    background-color: #f9f9f9; /* Background color for <li> */
}


table {
    width: 100%;
    border-collapse: collapse; /* Ensures borders are collapsed into a single line */
    margin-bottom: 20px; /* Adds space below the table */
}
td {
    border: 2px solid black; /* Defines a 2px solid border */
    padding: 10px; /* Adds padding inside each cell */
    vertical-align: top; /* Aligns content to the top of each cell */
}
.level-1 {
    font-weight: bold; /* Light gray background for level-1 cells */
    border-bottom: 2px solid #000; /* Bottom border for distinction */
}
.level-2 {
     /* Slightly darker gray background for level-2 cells */
    border-bottom: 2px solid #000; /* Lighter border for distinction */
}
.level-3{
    font-weight:bold;
}
/* Additional styles to add space between rows */
tr {
    margin-bottom: 10px; /* Adds space between rows */
}

p {
    text-align:justify;
}
.main-content li {
    text-align:justify;
}

.sidebar ul li.active > a {
    background-color: lightgreen; /* Change background color to green */
    /* Change text color to white for better contrast */
}

.sidebar ul li {
    text-align:center;
}

/* Main menu button styles */

/* Style for the overlay */
.image-overlay {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Black background with opacity */
    z-index: 1000; /* Sit on top of other content */
    justify-content: center;
    align-items: center;
    overflow: auto; /* Enable scrolling if needed */
}

img:hover {
    cursor:pointer;
}
/* Style for the enlarged image */
.enlarged-image {
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    display: block;
}

