.container {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}


header {
    text-align: center;        /* Centers all text inside header */
    padding: 20px 20px;
}

/* Center the H1 explicitly (optional because header already centers it) */
header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* Scrolling text animation */
.scrolling-wrapper {
    max-width: 100%;           /* stays within mobile width */
    overflow: hidden;      /* hides overflow */
}

.scrolling-text {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    animation: scroll-left 30s linear infinite;
    font-size: 1.5rem;
}

.scrolling-text:hover {
    animation-play-state: paused;
}

/* The animation itself */
@keyframes scroll-left {
    0% {
        transform: translateX(50%);   /* start off-screen to the right */
    }
    100% {
        transform: translateX(-100%);  /* move fully off-screen to the left */
    }
}


nav {
    background: #222; /* Dark background */
    padding: 15px;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;          /* makes items horizontal */
    justify-content: center; /* centers them horizontally */
    gap: 50px;               /* space between menu items */
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
}

/* Ensure the navigation menu links don't get the white box */
nav ul li {
    background: none !important; /* Removes any background */
    padding: 0; /* Reset padding */
    margin: 0 15px; /* Keep space between items */
}

/* Fix navigation menu links */
nav ul li a {
    background: none !important; /* Remove any white box */
    padding: 10px 15px; /* Keep the clickable area */
    color: white; /* Keep text white */
    display: inline; /* Prevent stretching */
    border-radius: 0; /* Ensure no extra styling */
}

/* Hover effect for navigation */
nav ul li a:hover {
    background: #444;
    border-radius: 5px;
}


/* Style for social media icons */
.social-links {
    display: flex;
    justify-content: center; /* Align icons */
    gap: 15px;
    margin-top: 20px;
}

/* Control the size of the icons */
.social-links img {
    width: 40px;  /* Set width */
    height: 40px; /* Set height */
    object-fit: contain; /* Maintain aspect ratio */
    transition: transform 0.3s ease;
}

/* Slight hover effect */
.social-links img:hover {
    transform: scale(1.1); /* Slight zoom on hover */
}

/* Style for the publication sections */
section {
    margin: 20px;
    padding: 20px;
    background: #f4f4f4;
    border-radius: 10px;
}

/* Style for the publication list */
ul {
    list-style-type: none;
    padding: 0;
}

ul li {
    background: white;
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

/* Style for publication links */
/* Apply the box style only to publication list items */
section ul li {
    background: white;
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

ul li a:hover {
    text-decoration: underline;
}

.reverse-list {
    counter-reset: publication-counter; /* Initialize counter */
    list-style: none; /* Remove default bullets */
    padding: 0;
}

.reverse-list li {
    counter-increment: publication-counter; /* Increase counter */
    background: white;
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Auto-number each list item in reverse */
.reverse-list li::before {
    content: "#" counter(publication-counter); /* Add number */
    font-weight: bold;
    color: #0073e6;
    position: absolute;
    left: -25px;
}

/* Reverse the order */
.reverse-list {
    display: flex;
    flex-direction: column-reverse;
}

section img {
    display: block;
    float: left;
    margin: 0 auto;
    margin-right: 20px;
    margin-bottom: 20px;
    width: 100%; /* Adjust width as needed */
    max-width: 250px; /* Ensures it doesn't exceed 400px */
    height: auto; /* Keeps aspect ratio */
    border-radius: 10px; /* Optional: Adds rounded corners */
}

.social-links {
    display: flex;
    flex-direction: column; /* Makes it vertical */
    gap: 10px; /* Spacing between items */
    align-items: start; /* Align items to the left */
}

.social-item {
    display: flex;
    align-items: center; /* Align text and icon */
    text-decoration: none;
    color: black; /* Adjust color as needed */
    font-size: 16px;
}

.icon {
    width: 24px; /* Adjust size */
    height: 24px;
    margin-right: 8px; /* Space between icon and text */
}

.section {
    background-color: white;
    margin: 10px 0;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background 0.3s;
}

.section:hover {
    background-color: #e0e0e0;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
}

.section-content {
    display: none; /* Hide details initially */
    padding-top: 10px;
    font-size: 14px;
}

.active .section-content {
    display: block; /* Show content when active */
}


/* Carousel Section */
.home-carousel {
    width: 100%;          /* Full screen width */
    margin: 20px 0;
}

.carousel-single {
    position: relative;
    width: 100%;        /* full screen width */
    height: 500px;      /* fixed height */
    overflow: hidden;
    background: #fff;
}

.carousel-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide img {
    position: absolute;
    top: 50%;               /* vertical center */
    left: 50%;              /* horizontal center */
    transform: translate(-50%, -50%); /* center both axes */
    max-height: 100%;       /* fit height */
    max-width: 100%;        /* fit width */
    width: auto;            /* maintain aspect ratio */
    height: auto;           /* maintain aspect ratio */
    display: none;
    transition: opacity 1s ease;
}

.carousel-slide img.active {
    display: block;
    opacity: 1;
}

/* Prev/Next buttons */
.carousel-single .prev,
.carousel-single .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    background: rgba(0,0,0,0.3);
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    z-index: 2;
}

.carousel-single .prev { left: 10px; }
.carousel-single .next { right: 10px; }

.carousel-single .prev:hover,
.carousel-single .next:hover {
    background: rgba(0,0,0,0.6);
}

