/* General Styles */
body {
    font-family: 'Georgia', serif;
    background-color: #f7f7f7;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    text-align: justify;
}

.container {
    width: 85%;
    margin: 0 auto;
    padding-top: 20px;
}

/* Header Styles */
header {
    background: #004080;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
}

header h1 {
    margin: 0;
    font-size: 2.2em; /* Reduced font size */
    font-weight: normal;
}

header .authors {
    font-size: 1.3em; /* Slightly smaller than the title */
    margin: 0px 0; /* Less spacing */
    color: #ffffff; /* A lighter color to differentiate from the title */
}

/* Navigation Bar Styles */
nav {
    position: relative; /* Position relative to manage dropdown positioning */
    margin-top: 20px;
    text-align: center;
    background-color: #e6e6e6;
    padding: 10px;
    border-radius: 5px;
}

.nav-toggle {
    display: none; /* Hide by default, show on mobile */
    background-color: #004080;
    color: #fff;
    border: none;
    padding: 10px 15px;
    font-size: 1.1em;
    cursor: pointer;
    border-radius: 5px;
}

.nav-dropdown {
    display: flex; /* Show links in a row by default */
    justify-content: center;
    gap: 15px;
}

.nav-dropdown a {
    color: #004080;
    text-decoration: none;
    font-weight: bold;
}

.nav-dropdown a:hover {
    text-decoration: underline;
}

/* Section Styles */
section {
    background: #fff;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

section h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #004080;
}

section p {
    font-size: 1.1em;
    line-height: 1.8;
}

/* Journal Information Section */
.journal-info {
    margin-top: 20px;
}

/* Publications List */
ul.publications {
    list-style: none;
    padding: 0;
}

ul.publications li {
    background: #f0f0f0;
    margin: 10px 0;
    padding: 10px;
    border-left: 4px solid #004080;
    border-radius: 3px;
    text-align: justify;
}

ul.publications li a {
    color: #004080;
    text-decoration: none;
    font-weight: bold;
}

ul.publications li a:hover {
    text-decoration: underline;
}

ul.publications li .citation {
    display: block;
    font-size: 1em;
    color: #000000;
    margin-top: 0.2em;
    text-align: justify;
}

ul.publications li .open-icon {
    font-size: 1.2em;
    vertical-align: middle;
    margin-left: 10px;
}

/* Download and Export Citation Buttons */
.download-button, .export-citation-button {
    display: inline-block;
    padding: 12px 24px; /* Larger padding for a bigger button */
    font-size: 1.1em; /* Match font size with text */
    color: #fff;
    border-radius: 5px;
    text-align: center;
    margin: 10px 0;
    text-decoration: none;
    border: none;
}

.download-button {
    background-color: #004080;
}

.download-button:hover {
    background-color: #003366;
}

.export-citation-button {
    background-color: #28a745; /* Green color */
}

.export-citation-button:hover {
    background-color: #218838;
}

/* Footer Styles */
footer {
    background: #004080;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
    font-size: 0.9em;
}

footer p {
    margin: 0;
    padding: 5px;
}

.social-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 10px 0;
}

.social-icons a {
    color: #fff;
    text-decoration: none;
    text-align: center;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    background: #fff;
}

.social-icons span {
    display: block;
    margin-top: 5px;
}

.social-icons a:hover .social-icon {
    opacity: 0.8;
}

/* Introduction Section with Profile Photo */
.intro-container {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    gap: 20px;
}

.intro-left {
    flex: 3;
    max-width: 300px;
    text-align: center;
}

.profile-photo {
    width: 75%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.profile-details {
    margin-top: 20px;
    line-height: 1.6;
}

.profile-details p {
    margin: 5px 0;
}

.profile-details a {
    color: #004080;
    text-decoration: none;
}

.profile-details a:hover {
    text-decoration: underline;
}

.intro-right {
    flex: 2;
    text-align: justify;
}

.intro-right h2 {
    margin-top: 0;
}

.intro-right p {
    font-size: 1.1em;
    line-height: 1.8;
}

/* Publisher's Site Button */
.publishers-site-button {
    display: inline-block;
    padding: 12px 24px; /* Consistent padding */
    font-size: 1.1em; /* Match font size with text */
    color: #fff;
    background-color: #992b03; /* Blue color */
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    margin: 10px 0;
    border: none;
}

.publishers-site-button:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

/* Experience Section */
.experience-section {
    background: #f9f9f9;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.experience-section h2 {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: #004080;
}

.experience-item {
    margin-bottom: 15px;
}

.experience-item h3 {
    font-size: 1.2em;
    margin-bottom: 5px;
    color: #333;
}

.experience-item p {
    font-size: 1em;
    line-height: 1.8;
    margin: 0;
}

/* Media Queries */

/* Styles for devices with a max width of 768px (Tablets and smaller screens) */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    header h1 {
        font-size: 1.8em; /* Smaller font size for smaller screens */
    }

    nav {
        padding: 5px;
    }

    nav a {
        font-size: 0.9em; /* Slightly smaller font size */
        margin: 0 10px; /* Less margin */
    }

    .intro-container {
        flex-direction: column; /* Stack elements vertically */
        text-align: center; /* Center text */
    }

    .profile-photo {
        width: 50%; /* Smaller profile photo */
    }

    .publishers-site-button, .download-button, .export-citation-button {
        padding: 10px 20px; /* Smaller button padding */
        font-size: 1em; /* Slightly smaller font size */
    }
}

/* Styles for devices with a max width of 480px (Mobile phones) */
@media (max-width: 480px) {
    header {
        padding: 15px 0; /* Less padding for mobile */
    }

    header h1 {
        font-size: 1.5em; /* Even smaller font size */
    }

    .container {
        width: 100%; /* Full width for mobile */
        padding: 10px; /* Less padding */
    }

    nav a {
        display: block; /* Stack links vertically */
        margin: 5px 0; /* Adjust margin */
    }

    .intro-container {
        gap: 10px; /* Less gap between elements */
    }

    .profile-photo {
        width: 60%; /* Adjust size for mobile */
    }

    .nav-dropdown {
        display: none; /* Hide dropdown by default on mobile */
        flex-direction: column; /* Stack links vertically */
        position: absolute;
        top: 60px; /* Position it below the header */
        right: 10px; /* Align it to the right */
        background-color: #e6e6e6;
        border-radius: 5px;
        padding: 10px;
        width: 90%; /* Adjust width as needed */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        text-align: center; /* Center align text */
    }

    .nav-dropdown.show {
        display: flex; /* Show the dropdown when active */
    }

    .nav-toggle {
        display: block; /* Show toggle button on mobile */
    }
}
