/* Ensure the entire content is centered */
body {
    font-family: sans-serif;
    margin: 0 auto;
    /* Center the content horizontally */
    padding: 0;
    background-color: whitesmoke;
    width: 83.33%;
    /* 10 out of 12 columns (10/12 = 83.33%) */
    max-width: 1200px;
    /* Limit maximum width for large screens */
    box-sizing: border-box;
    /* Ensure padding and borders are included in the width */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 6px 20px rgba(0, 0, 0, 0.1);
    /* Soft shadow for highlight effect */
    border-radius: 10px;
    /* Optional: adds rounded corners for a softer look */
    /* padding: 0px 20px 0px 20px;  */
}

/* Navigation styling */
.nav-container {
    background-color: brown;
    border-radius: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    height: 50px; /* Initial height */
}

/* Left side navigation */
.left-side {
    display: flex;
    align-items: center;
    flex-direction: column; /* Stack text in two rows */
    text-align: left; /* Align text to the left */
}

/* Right side navigation */
.right-side {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 60%; /* Adjust the width for space */
}

/* Styling for each link */
.nav-container li {
    list-style: none;
}

.nav-container li a {
    color: white;
    text-decoration: none;
    padding: 10px;
}

.hero {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.hero-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: yellow;
    font-size: 2rem;
}

.hero-text h1 {
    font-size: 3rem;
    margin: 0;
}

/* Sohaib - I changed this to 2rem */
.hero-text p {
    font-size: 2rem;
    margin-top: 10px;
}


.left-side,
.right-side {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.left-side li,
.right-side li {
    display: inline-block;
}

.right-side li a,
.left-side li a {
    text-decoration: none;
    color: white;
    padding: 12px 14px;
    border-radius: 5px;
}

.right-side li a:hover,
.left-side li a:hover {
    background-color: sandybrown;
    
}

/* Main content and sidebar wrapper */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    /* Main content + fixed sidebar width */
    /* grid-gap: 20px; */
    margin: 0px 20px 0px 20px;
    background-color: #fff
}

/* Main content styling */
.content {
    padding: 20px;
    overflow-y: auto;
    max-height: 70vh;
    /* Limits the content height to 70% of the view */
    background-color: #fofofo
}

/* Sohaib - I added this piece of CSS */
    p.ref {text-align:right;
            font-size:16px;}

/* Sidebar styling */
.sidebar {
    position: sticky;
    top: 0;
    max-height: 70vh;
    background-color: #ddd;
    padding: 20px;
    border-left: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add shadow for a raised effect */
    border-radius: 10px;
    overflow-y: auto; /* Allows scrolling if content exceeds height */
}

.sidebar h3 {
    margin-bottom: 10px;
    color: #333;
}

.sidebar p {
    margin-bottom: 20px;
}


/* Footer styling */
.footer {
    background-color: brown;
    color: white;
    text-align: center;
    padding: 40px 20px;
    /* More padding for better spacing */
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    /* Stack the elements vertically */
    align-items: center;
    /* Center the content */
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.2);
    /* Add a shadow to elevate the footer */
    border-top-left-radius: 10px;
    /* Rounded corners for modern look */
    border-top-right-radius: 10px;
}

/* Styling for footer links */
.footer a {
    text-decoration: none;
    color: white;
    background-color: transparent;
    padding: 10px 20px;
    border-radius: 5px;
    margin: 5px 0;
    transition: background-color 0.3s ease, color 0.3s ease;
    /* Smooth transition for hover */
}

/* Hover effect for footer links */
.footer a:hover {
    background-color: sandybrown;
    /* Change background on hover */
    color: white;
    /* Ensure the text stays white */
}


/* Responsive design for tablets (max-width: 960px) */
@media screen and (max-width: 960px) {
    .container {
        width: 100%;

    }
    .hero {
        height: 350px;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
        /* Full width for content, sidebar below */
    }

    .sidebar {
        position: static;
    }
}

/* Responsive design for mobile devices (max-width: 600px) */
@media screen and (max-width: 600px) {
    body {
        width: 100%;
    }

    .nav-container {
        flex-direction: row;
        height: auto; /* Adjust the height */
        padding: 20px; /* Increase padding for better appearance */
    }

    .left-side {
        width: 40%; /* Make left-side smaller to fit */
        align-items: flex-start; /* Align the project text to left */
        font-size: 14px; /* Adjust font size */
        margin-bottom: 0; /* Keep alignment tight */
    }

    .right-side {
        width: 60%; /* Adjust width to balance layout */
        justify-content: space-between; /* Space out the right links */
        flex-wrap: wrap; /* Allow wrapping of links */
    }

    .right-side li {
        flex: 1;
        text-align: right;
        padding: 5px;
    }

    .nav-container li a {
        font-size: 14px;
        padding: 5px; /* Add padding to make them clickable */
    }
    .hero {
        height: 200px;
    }

    .right-side li,
    .left-side li {
        display: block;
        margin-right: 0;
        text-align: center;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
        /* No sidebar for mobile */
    }

    .footer {
        padding: 20px 10px;
        /* Reduce padding for smaller screens */
        font-size: 14px;
        /* Smaller font size for mobile */
        flex-direction: column;
    }

    .footer a {
        padding: 8px 15px;
        margin: 3px 0;
        /* Adjust margin for smaller screens */
    }
}