/* Reset default list styling */
nav ul {
    list-style-type: none; /* Remove the bullet points */
    margin: 0; /* Remove default margin */
    padding: 0; /* Remove default padding */
    text-align: center; /* Center the menu */
    display: flex;        /* Use flex for better control */
    justify-content: center;
    flex-wrap: wrap;      /* Allow items to wrap on smaller screens */
}

/* Style the list items */
nav ul li {
    display: inline-block; /* Display items horizontally */
    margin: 0 20px; /* Space between the menu items */
}

/* Style the anchor (links) inside the list items */
nav ul li a {
    text-decoration: none; /* Remove underline */
    font-size: 18px; /* Set font size */
    color: #333; /* Set text color */
    padding: 10px 15px; /* Add padding around the links */
    transition: background-color 0.3s ease; /* Smooth hover transition */
}

/* Change color on hover */
nav ul li a:hover {
    background-color: #007BFF; /* Blue background on hover */
    color: white; /* White text color on hover */
    border-radius: 5px; /* Rounded corners on hover */
}

/* Footer styling */
footer p {
    background-color: #333;  /* Solid dark background */
    color: #fff !important;  /* Bright white text color */
    text-align: center;
    padding: 10px 0;
    opacity: 1 !important;  /* Ensure the footer is fully opaque */
    z-index: 9999;  /* Make sure footer stays on top */
    position: relative;  /* Required to make z-index work */
}

/* Body and html defaults */
body, html {
    color: #333;  /* Default text color */
    scroll-behavior: smooth; /* Enables smooth scrolling */
}

/* SLIDER CODE STARTS HERE */

/* Slider Container */
.slider-container {
    width: 100%;
    max-width: 100%;
    height: 100%; /* You can adjust this value */
    position: relative;
    overflow: hidden;
    margin-bottom: 0px; /* Space below the slider */
    display: flex;            /* Flexbox to center images */
    justify-content: center;  /* Center the slider horizontally */
    align-items: center;      /* Center the slider vertically */
}

/* Slider */
.slider {
    display: flex;
    justify-content: center;  /* Center the slider horizontally */
    align-items: center;      /* Center the slider vertically */
    transition: transform 0.5s ease;
    width: 100%;  /* Ensure the slider takes full width */
}

/* Individual Images */
.slider img {
    width: auto;
    height: auto;
    object-fit: cover; /* Ensures images cover the entire slider space */
}

/* SLIDER CODE ENDS HERE */

/* Style for each image and description */
.img-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 10px;
}

.img-wrapper img {
    width: 100%;
    height: auto;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.img-wrapper img:hover {
    transform: scale(1.1);
}

.img-wrapper p {
    margin-top: 10px;
    font-size: 14px;
    color: #555;
    text-align: center;
}

/* Back to top link */
.back-to-top {
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.back-to-top:hover {
    text-decoration: underline;
    color: #0056b3;
}

/* ======================================== */
/* RESPONSIVE STYLES */
/* ======================================== */

/* Tablets (max-width: 1024px) */
@media (max-width: 1024px) {
    nav ul li {
        margin: 5px 15px; /* reduce spacing */
    }

    nav ul li a {
        font-size: 16px; /* slightly smaller text */
        padding: 8px 12px;
    }

    .img-wrapper p {
        font-size: 13px;
    }
}

/* Mobile devices (max-width: 600px) */
@media (max-width: 600px) {
    nav ul li {
        display: block; /* stack menu items vertically */
        margin: 5px 0;
    }

    nav ul li a {
        font-size: 16px;
        padding: 10px;
        display: block;
    }

    .slider-container {
        flex-direction: column; /* stack if needed */
    }

    .slider img {
        width: 100%; /* full width for small screens */
        height: auto;
    }

    .img-wrapper {
        margin: 5px 0;
    }

    .img-wrapper p {
        font-size: 12px;
        margin-top: 5px;
    }
}

/* Grid layouts for exams/publications */
#exam-container, #publications-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    justify-content: center;
}

/* Tablet */
@media (max-width: 1024px) {
    #exam-container, #publications-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile */
@media (max-width: 600px) {
    #exam-container, #publications-container {
        grid-template-columns: repeat(1, 1fr);
    }
}
