/* styles.css */
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* Style for h3 to make it bigger for research topics */
h3 {
    font-size: 1.75rem;  /* Adjust this value as needed */
    color: #003366;      /* Same as the theme color */
    font-weight: bold;   /* Bold for visibility */
    margin-bottom: 10px; /* Space below the header */
}

/* Style for h4 to make it smaller than h3 */
h4 {
    font-size: 1.0rem;  /* Adjust this to make it smaller */
    color: #003366;
    margin-top: 0;       /* Remove top margin */
    margin-bottom: 10px; /* Provide some space at the bottom */
}

/* Use the font in your styles */
body {
    font-family: 'Montserrat Italic', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
}
/* Ensure the header is properly centered */
.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0;
}

/* Adjust table layout for better alignment */
.header-table {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;  /* Ensures it does not stretch too wide */
    margin: auto;
}

/* Optional: Style for table cells to ensure proper alignment */
.header-table td {
    padding: 10px;
    text-align: center;
    vertical-align: middle;
}

.header-text {
    text-align: center;
}

/* Ensure images align properly */
.iss-logo, .saarland-logo {
    max-height: 200px;
    width: auto;
}

@media (max-width: 768px) {
    /* Reduce vertical space between sections */
    .header-text h1 {
        margin-bottom: 5px; /* Reduce spacing below titles */
        font-size: 1.2em !important; /* Ensure both have the same size */
        font-weight: bold; /* Keep consistency */
    }
    
    .header-text h2 {
        margin-bottom: 5px; /* Reduce spacing below titles */
        font-size: 0.8em !important; /* Ensure both have the same size */
        font-weight: bold; /* Keep consistency */
    }

    /* Hide logos on mobile */
    .iss-logo, .saarland-logo {
        display: none !important;
    }

    /* Adjust spacing for the logo container */
    .logo-container {
        margin: 0; /* Remove vertical spacing */
        padding: 5px 0;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0px; /* Reduce space between logos */
    }

    /* Reduce general vertical space */
    .header {
        padding: 10px 0; /* Reduce top and bottom padding */
    }
}

/* Center the header text */
.header-text {
    flex-grow: 1;
    text-align: center;
    color: #004a99;
}

.header-text h1 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #004a99; /* University blue color */
}

.header-text h2 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #004a99; /* University blue color */
}


/* Ensure header remains centered on mobile */
@media (max-width: 768px) {
    .header-table {
        flex-direction: column;
        text-align: center;
    }
}

/* Default Navigation (Desktop Mode) */
.navigation {
    display: flex;
    justify-content: center;
    background: #f8f8f8;
    padding: 10px 0;
    border-top: 1px solid #ddd;
}

/* Navigation Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 10px;  /* Reduced spacing for desktop */
    padding: 0;
    margin: 0;
}

.nav-links li {
    display: inline;
}

.nav-links a {
    text-decoration: none;
    color: #002f6c;
    font-weight: bold;
    padding: 6px 10px; /* Further reduced padding */
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #0056b3;
}

/* Hamburger Menu Button (Hidden in Desktop Mode) */
.menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .menu-icon {
        display: block !important; /* Force it to appear */
        position: absolute;
        top: 10px;
        right: 15px;
        font-size: 24px;
        cursor: pointer;
        z-index: 1001; /* Ensure it's above other elements */
    }

    .navigation {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
    }

    .nav-links {
        display: none; /* Hide by default */
        flex-direction: column;
        width: 100%;
        text-align: center;
        background: white;
        position: absolute;
        top: 60px;
        left: 0;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex !important;
    }


    .nav-links li {
        margin: 2px 0; /* Reduce vertical spacing */
        padding: 2px 0;
    }

    .nav-links a {
        display: block;
        text-decoration: none;
        padding: 2px 5px; /* Reduce padding */
        line-height: 1;
        font-weight: bold;
    }
}




/* Style for the description container */
.description {
    margin: 5px auto; /* Reduce top margin */
    padding: 15px;
    max-width: 800px;
    background-color: #f9f9f9; /* Light background for readability */
    border: 1px solid #ddd; /* Subtle border */
    border-radius: 5px; /* Rounded corners */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Soft shadow */
}

/* Style for the heading inside description */
.description h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #003366; /* University blue color */
}

/* Style for the paragraph inside description */
.description p {
    font-size: 16px;
    line-height: 1.6; /* Improve readability */
    color: #333; /* Darker text for better contrast */
    margin: 0; /* Remove unwanted spacing */
}

/* Ensure bold text is rendered properly */
.description p b {
    font-weight: bold; /* Explicitly define bold weight */
    color: #000; /* Optionally, make bold text slightly darker for emphasis */
}

/* Style for anchor links inside the description */
.description p a {
    color: #0066cc; /* Blue color for links */
    text-decoration: none; /* Remove underline by default */
    font-weight: bold; /* Make links bold */
}

.description p a:hover {
    text-decoration: underline; /* Add underline on hover */
    color: lightgrey; /* Slightly darker blue on hover */
    background-color: lightgrey; /* Darker blue on hover */
}


.content {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
}

.year-section {
    margin-bottom: 20px;
}

/* PUBLICATIONS */

.publication-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.publication-details {
    width: 95%; /* First column now takes 80% */
    vertical-align: top;
    padding-right: 5px;
}

.publication-tags {
    width: auto; /* Adjusts width dynamically */
    vertical-align: top; /* Aligns content to the top of the cell */
    text-align: left; /* Aligns tags to the left */
    white-space: normal; /* Allows normal wrapping for tags */
}

.publication-tags .tag {
    display: inline-block; /* Ensures tags are cohesive blocks */
    background-color: #f5f5f5; /* Light background for tags */
    color: #333; /* Text color */
    padding: 5px 10px; /* Adds padding inside the tags */
    margin: 2px; /* Adds spacing between tags */
    border-radius: 5px; /* Rounds the edges of the tags */
    font-size: 12px; /* Sets the font size */
    white-space: nowrap; /* Prevents tags from breaking into multiple lines */
}

.publication-tags .tag:not(:last-child)::after {
    content: ""; /* Removes the trailing comma */
}

.publication-divider {
    border: none;
    border-top: 1px solid #ddd;
    margin: 15px 0;
}

.publication-authors {
    font-size: 14px;
}

.publication-year {
    font-size: 14px;
    font-style: italic;
}

.publication-title {
    font-size: 14px;
    font-style: italic;
    font-weight: bold;
}

.publication-venue {
    font-size: 14px;
    font-style: italic;
}

.year-header {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* LINKS */

.link-btn {
    display: inline-block;
    padding: 5px 10px; /* Increased padding for margin before and after text */
    margin: 2px; /* Space between buttons */
    border-radius: 10px; /* Rounded corners */
    text-decoration: none; /* Remove underline */
    font-size: 10px; /* Adjust font size */
    font-weight: bold;
}

/* Adjusting colors for abstract, url, and bibtex */
/* Adjusting colors for abstract, url, and bibtex */
.link-btn.abstract {
    background-color: #d0e4ff; /* Lighter blue */
    color: #003366; /* Darker blue text */
}

.link-btn.url {
    background-color: #ffe5d0; /* Lighter orange */
    color: #993300; /* Darker orange text */
}

.link-btn.bibtex {
    background-color: #d0ffd0; /* Lighter green */
    color: #006600; /* Darker green text */
}

/* Adjusting colors for data and model */
.link-btn.data {
    background-color: #fff9d0; /* Lighter yellow */
    color: #665c00; /* Darker yellow text */
}

.link-btn.model {
    background-color: #ffd0e4; /* Lighter pink */
    color: #660033; /* Darker pink text */
}

/* Add hover effect for buttons */
.link-btn:hover {
    opacity: 0.9; /* Slight transparency on hover */
    cursor: pointer; /* Pointer cursor */
}


/* Optional: Styling for metadata like 'Published on' and 'Editor' */
.metadata span {
    display: block;
    margin-top: 5px;
    font-size: 0.9em;
    color: gray;
}

.overlay h3, .overlay p {
    margin: 5px 0;
}

.info {
    flex: 1;
}
.bio, .focus{
    margin-top: 15px;
}

.cv {
    margin-top: 15px;
}
.cv h3 {
    margin-bottom: 10px;
}
table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
td {
    padding: 5px;
    vertical-align: top;
}
td:first-child {
    width: 20%;
}
td:last-child a {
    text-decoration: none;
}
td:last-child a.green {
    color: green;
}
td:last-child a.blue {
    color: green;
}

img.logo {
    width: 100px;  /* Adjust width */
    height: auto;  /* Maintain aspect ratio */
    margin-right: 20px; /* Space between logos */
}

.logo-container {
    display: flex;              /* Aligns logos in a row */
    justify-content: center;    /* Centers the logos horizontally */
    gap: 30px;                  /* Adds space between logos */
    padding: 20px 0;            /* Adds some padding around the container */
}

.logo {
    height: 60px;               /* Adjust the height to fit in one line */
    width: auto;                /* Keeps the aspect ratio intact */
}

/* TEACHING */


.teaching {
    margin: 20px 0;
}

.teaching h3 {
    font-size: 20px;
    color: #003366; /* University blue */
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.teaching-list {
    list-style: none;
    padding: 0;
}

.teaching-list li {
    margin: 10px 0;
    font-size: 16px;
}

.teaching-list a.link {
    color: #003366; /* Neutral blue */
    text-decoration: none;
    font-weight: bold;
}

.teaching-list a.link:hover {
    text-decoration: underline;
}

.btn-outline {
    display: inline-block;
    margin: 10px 0;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    color: #003366; /* Neutral blue */
    text-decoration: none;
    border: 2px solid #003366; /* Outline button */
    border-radius: 5px;
    background-color: transparent;
    text-align: center;
}

.btn-outline:hover {
    background-color: #003366;
    color: white;
    text-decoration: none;
}


/* Overlay content */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark semi-transparent background */
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0; /* Initially hidden */
    transition: opacity 0.3s ease; /* Fade in effect */
    text-align: center;
}

.additional-info {
    display: none; /* Hide additional info initially */
    padding: 10px;
    background-color: #f4f4f4;
    font-size: 14px;
    text-align: left;
    border-top: 1px solid #ddd;
}

table {
    width: 100%;
    margin: 0px 0;
    border-collapse: collapse;
    /* text-align: center;*/
    table-layout: fixed;
}

td, th {
    vertical-align: top; /* Align content to the top */
    /* text-align: center;  Keep text centered horizontally */
    padding: 5px;       /* Ensure consistent padding */
}

tr {
    margin: 0; /* Remove margin */
}

/* TEAM and PROFILES */


/* Base Table Styles */
.team-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.profile-container {
    display: flex;
    justify-content: center;
}

.profile {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px; /* Reduce gap to bring text closer to image */
}

/* Ensure image is centered properly */
.profile-image {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 150px; /* Prevent shrinking */
}

.profile-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

/* Ensure text does not take unnecessary space */
.profile-details {
    max-width: 500px; /* Adjust to fit nicely */
}

/* Contact Information */
.contact {
    text-align: left;
    padding: 15px;
    vertical-align: top;
    font-size: 12px;  /* Adjust font size (smaller) */
    line-height: 1.4;  /* Improves readability */
}

.contact h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #004a99;
}

.contact a {
    color: #004a99;
    text-decoration: none;
}

.contact a:hover {
    text-decoration: underline;
}

/* Mobile View: Center everything */
@media (max-width: 768px) {
    .profile {
        flex-direction: column; /* Stack image and text */
        align-items: center; /* Center content */
        text-align: center; /* Center text */
    }
    
    .profile-image {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .profile-image img {
        width: 120px; /* Adjust size for mobile */
    }

    .contact-details {
        margin-top: 10px;
    }

    .contact {
        width: 100%;
        text-align: center;
        padding: 15px;
    }

    .contact h4, .contact p, .contact a {
        text-align: center;
    }
}


/* Team Container */
.team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px; /* Space between team members */
    max-width: 1000px;
    margin: auto;
}

/* Individual Team Member */
.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 30%; /* Each member takes 30% of the row */
}

/* Profile Image Styling */
.profile-img img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

/* Contact Information */
.contact {
    text-align: center;
    padding: 10px;
}

.contact h4 {
    font-size: 14px;
    font-weight: bold;
    color: #004a99;
}

.contact a {
    color: #004a99;
    text-decoration: none;
}

.contact a:hover {
    text-decoration: underline;
}

/* ✅ Responsive for Mobile: Stack team members vertically */
@media screen and (max-width: 768px) {
    .team-container {
        flex-direction: column;
        align-items: center;
    }

    .team-member {
        width: 100%;
        max-width: 300px;
    }

    .profile-img img {
        max-width: 120px;
        height: auto;
    }

    /* Hover Effect to Indicate Clickability */
    .profile-img:hover img {
        transform: scale(1.1);
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    }



    .contact {
        text-align: center;
        padding: 15px;
    }
}


/* PROJECTS */

.project-list {
    list-style-type: disc;
    padding-left: 20px;
}

.project-list li {
    margin-bottom: 20px;
}

footer {
    text-align: center;
    padding: 10px 0;
    background: #003366;
    color: white;
    margin-top: 20px;
}

a {
    color: #007BFF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* General Section Styles */
.section {
    margin-top: 40px;
}

.section h3 {
    font-size: 1.5rem; /* Consistent heading size */
    font-weight: bold;
    color: #003366; /* Consistent heading color */
    margin-bottom: 20px;
    text-align: left;
}

/* Unified Card Style for News and Research */
.section-item {
    background-color: #f9f9f9; /* Light background */
    border: 1px solid #ddd; /* Subtle border */
    padding: 15px 20px; /* Consistent padding */
    border-radius: 10px; /* Rounded corners */
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effects */
}

.section-item:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15); /* Slightly darker shadow */
}

.section-item h4 {
    font-size: 1.2rem; /* Uniform title size */
    font-weight: bold;
    color: #003366; /* Heading color */
    margin-top: 0; /* Remove extra space */
    margin-bottom: 10px; /* Consistent spacing */
}

.section-item p {
    font-size: 1rem; /* Standardized paragraph size */
    color: #555; /* Consistent text color */
    line-height: 1.6; /* Readable line spacing */
    margin-bottom: 10px; /* Consistent spacing between paragraphs */
}

.section-item a {
    color: #007BFF; /* Highlighted link color */
    text-decoration: none;
}

.section-item a:hover {
    text-decoration: underline; /* Underline on hover */
}

/* Metadata Styling for News */
.section-item .metadata {
    font-size: 0.9rem; /* Slightly smaller font size */
    color: #666; /* Gray for metadata */
    margin-top: 10px;
}

.section-item .metadata span {
    margin-right: 15px; /* Add space between metadata items */
}

.introduction {
    background-color: #f9f9f9; /* Light gray background for contrast */
    border: 1px solid #ddd; /* Subtle border for structure */
    border-radius: 10px; /* Rounded corners */
    padding: 20px; /* Spacing inside the box */
    margin-bottom: 20px; /* Space below the introduction */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
    font-size: 1rem; /* Standard font size */
    line-height: 1.6; /* Improve readability */
    color: #333; /* Darker text color for better contrast */
}

.introduction p {
    margin-bottom: 15px; /* Space between paragraphs */
}

.introduction a {
    color: #007BFF; /* Highlighted link color */
    text-decoration: none; /* No underline by default */
}

.introduction a:hover {
    text-decoration: underline; /* Underline on hover */
}

.contact-info {
    margin: 20px;
}
.title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 5px;
}

.details {
    font-size: 1em;
    line-height: 1.5;
}

.contact-details {
    font-size: 0.8em;
}

.contact {
    margin-top: 20px;
}

.contact ul {
    list-style: none;
    padding: 0;
}

.contact li {
    margin: 5px 0;
}

.contact a {
    color: #0066cc;
    text-decoration: none;
}

.contact a:hover {
    text-decoration: underline;
}
.email {
    display: inline-block;
    margin-top: 5px;
}

.profile-container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 20px;
}

.profile {
    display: flex;
    align-items: flex-start;
}

.profile-image img {
    width: 150px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.profile-details {
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Hover Effect to Indicate Clickability */
.profile-img:hover img {
    transform: scale(1.1);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}


/* Main Container */
.content-container, .publication-container, .project-container, .book-container {
    width: 90%;
    max-width: 1200px;
    background: #F9F9F9;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin: auto;  /* Align everything centrally */
}

/* Book & Journal Entry: Uniform layout */
.book-entry, .journal-entry {
    display: flex;
    flex-direction: row;
    align-items: flex-start;  /* Ensures text aligns at the top */
    gap: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    transition: transform 0.2s ease-in-out;
    margin-bottom: 10px; /* Adds additional spacing between projects */
}

/* Hover effect */
.book-entry:hover, .journal-entry:hover {
    transform: scale(1.02);
}

/* Image container (book & journal) */
.book-image, .journal-image {
    flex-shrink: 0;
    width: 150px;  /* Ensures uniform width */
    max-width: 150px;
}

.book-image img, .journal-image img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.2s ease-in-out;
}

/* Hover effect on images */
.book-image img:hover, .journal-image img:hover {
    transform: scale(1.1);
}

/* Text container (book & journal) */
.book-details, .journal-details {
    flex: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 600px;  /* Ensures text doesn't stretch too wide */
}

/* Author/Editor names */
.book-authors, .journal-role {
    font-size: 14px;
    font-weight: bold;
    color: #007BFF;
}

/* Book & Journal Titles */
.book-title, .journal-title {
    font-size: 18px;
    font-weight: bold;
    margin: 5px 0;
}

/* Venue/Journal Source */
.book-venue, .journal-source {
    font-size: 14px;
    color: #555;
}

/* Description Text */
.book-description, .journal-description {
    font-size: 14px;
    margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 600px) {
    .book-entry, .journal-entry {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .book-image, .journal-image {
        max-width: 120px;
    }
}



/* Individual Project Entry */
.project-entry {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: 1px solid #ddd;
    margin-bottom: 10px; /* Adds additional spacing between projects */
}

/* Hover Effect */
.project-entry:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Hover Effect */
.project-entry:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Image Section */
.project-image {
    flex-shrink: 0;
    width: 150px;
    max-width: 150px;
}

.project-image img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.2s ease-in-out;
}

.project-image img:hover {
    transform: scale(1.1);
}

/* Project Details Section */
.project-details {
    flex: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 600px;
}

/* Project Title */
.project-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.project-title a {
    text-decoration: none;
    color: #007BFF;
    transition: color 0.2s ease-in-out;
}

.project-title a:hover {
    color: #0056b3;
}

/* Project Meta Information */
.project-meta {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

/* Project Description */
.project-description {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .project-entry {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .project-image {
        max-width: 120px;
    }
}


/* Responsive Design for Small Screens */
@media screen and (max-width: 768px) {
    table, tbody, tr, td {
        display: block;
        width: 100%;
    }

    .project-image {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .project-image img {
        max-width: 100%; /* Adjust for smaller screens */
        height: auto;
    }

    .project-details {
        width: 100%;
        padding: 15px;
        text-align: left;
    }

    .project-title,
    .project-description {
        text-align: left;
    }
}



.button {
    display: inline-block;
    padding: 5px 15px; /* Adequate padding for spacing */
    font-size: 12px; /* Readable font size */
    border: none; /* Remove border */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor for better UX */
    text-align: center;
    text-decoration: none; /* Remove underline for links */
    height: 20px; /* Ensure consistent height */
    line-height: 20px; /* Center the text vertically */
}

.button.delete {
    background-color: #f44336; /* Red for Delete */
    color: white; /* White text */
}

.button.edit {
    background-color: #4CAF50; /* Green for Edit */
    color: white; /* White text */
}

.button:hover {
    opacity: 0.9; /* Slight dimming effect on hover */
}

/* Reset <a> styling to match <button> */
.button.edit, .button.delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none; /* Remove underline */
    vertical-align: middle;
}

/* News Table */
.news-table {
    width: 100%;
    border: 1px solid lightgrey;
    border-collapse: collapse;
    margin-bottom: 15px; /* Reduced spacing between articles */
}

/* Table Cells */
.news-table td {
    padding: 8px; /* Reduced padding for a more compact look */
    vertical-align: top;
}

/* Title Row */
.news-title {
    font-size: 18px;
    font-weight: bold;
    text-align: left;
    padding: 8px;
    word-wrap: break-word;
    white-space: normal;
    width: auto;
    border-bottom: 1px solid #ddd; /* Subtle separator for title */
}

/* Image Styling for News Section */
.news-image img {
    width: 150px; /* Limit the image width to 200px */
    height: auto; /* Maintain aspect ratio */
    border-radius: 5px; /* Add rounded corners */
    object-fit: cover; /* Crop the image properly */
    display: block; /* Removes unwanted inline spacing */
    margin: 0 auto; /* Center the image horizontally */
    transition: transform 0.3s ease; /* Smooth hover effect */
    transform: scale(0.9);
}

/* Hover Effect */
.news-image img:hover {
    transform: scale(1.1); /* Slightly increase the image size on hover */
    cursor: pointer; /* Show pointer cursor to indicate it's clickable */
}

/* Image & Content Row */
/* Style for news images */
.news-image img.clickable-image {
    width: 100%;
    max-width: 150px;
    height: auto;
    border-radius: 5px;
    object-fit: cover;
    cursor: pointer; /* Makes it clear the image is clickable */
    transition: transform 0.3s ease; /* Adds a smooth zoom effect */
}

.news-image img.clickable-image:hover {
    transform: scale(1.05); /* Slight zoom on hover for interactivity */
}

/* Ensure "No Image Available" message is subtle */
.news-image .text-muted {
    font-size: 12px;
    color: #6c757d; /* Bootstrap muted text color */
    text-align: center;
}

.image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent black background */
    display: none; /* Initially hidden */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it's above all other elements */
    cursor: pointer; /* Change cursor to indicate closable overlay */
}

.image-overlay img {
    max-width: 90%; /* Limit the image width to 90% of the screen */
    max-height: 90%; /* Limit the image height to 90% of the screen */
    border-radius: 8px; /* Add rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Add shadow for visibility */
    animation: fadeIn 0.3s ease; /* Smooth fade-in animation */
}

/* Fade-in animation for the image */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}



/* Content Area */
.news-content {
    font-size: 14px;
    margin-left: 5px; /* Adds a 5px margin to the left of the news content */
    line-height: 1.4; /* Reduced line height for tighter spacing */
    padding: 10px; /* Reduced padding for less vertical spacing */
    text-align: justify;
    overflow-wrap: break-word;
    white-space: normal;
    max-height: 6em; /* Limit height to show a concise preview */
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

/* Link style inside .news-content */
.news-content a {
    color: #007bff; /* Default link color */
    text-decoration: none; /* Remove underline by default */
    font-weight: bold; /* Make links bold */
    transition: color 0.3s ease, text-decoration 0.3s ease; /* Smooth transition */
}

/* Hover effect for links */
.news-content a:hover {
    color: #007bff; /* Slightly darker blue on hover */
    background-color: lightgrey; /* Light grey background on hover */
    text-decoration: underline; /* Add underline on hover */
}

/* Content Preview */
.news-preview {
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Show only first 4 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Expandable Text */
.news-text {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Limit lines on desktop */
    -webkit-box-orient: vertical;
    transition: max-height 0.3s ease-in-out;
    width: 100%; /* Ensure it takes full width of the parent container */
    text-align: left; /* Ensure text is left-aligned */
    margin-bottom: 10px; /* Add some spacing below the text */
}

.news-text.expanded {
    -webkit-line-clamp: unset; /* Remove line clamping */
    max-height: none; /* Allow full expansion */
}

.news-text p {
    margin: 0; /* Removes top and bottom margins */
    padding: 0 0 8px 0; /* Adds 8px padding at the bottom of each paragraph */
    line-height: 1.5; /* Adjusts line spacing */
}

/* Date Display */
.news-date {
    font-size: 12px; /* Slightly larger for readability */
    color: #6c757d; /* Subtle gray for secondary emphasis */
    margin-top: 5px;
    display: block;
}

/* Styling for the link icon */
.news-link {
    font-size: 16px; /* Ensures consistent size */
    text-decoration: none; /* Removes underline */
    color: #007bff; /* Blue color for the icon */
    display: inline-flex; /* Aligns properly with other inline-flex elements */
    align-items: center; /* Centers the icon vertically */
    justify-content: center; /* Centers horizontally */
    margin: 0; /* Removes extra margins */
    padding: 0; /* Removes extra padding */
    line-height: 1; /* Ensures consistent height */
    vertical-align: middle; /* Aligns with text or other inline elements */
    transition: color 0.3s ease, transform 0.3s ease; /* Smooth hover effects */
}

/* Hover effect for the news-link */
.news-link:hover {
    color: #0056b3; /* Darker blue on hover */
    transform: scale(1.1); /* Slightly enlarge the icon */
}


/* Container for aligning both the link and toggle button */
.link-toggle-container {
    display: flex;
    justify-content: flex-end; /* Align items to the right */
    align-items: center; /* Vertically align items */
    margin-bottom: 20px; /* Add spacing below */
    gap: 10px; /* Space between the link and the button */
    padding-left: 20px; /* Adds 20px space from the left */
}



/* Styling for the toggle button */
.toggle-button {
    background: none; /* Removes background color */
    border: none; /* Removes border */
    color: #007bff; /* Blue icon color */
    cursor: pointer; /* Pointer cursor */
    font-size: 16px; /* Matches font size with the link */
    display: inline-flex; /* Aligns properly with link */
    align-items: center; /* Vertically centers the icon */
    justify-content: center; /* Centers horizontally */
    padding: 0; /* Ensures no extra padding */
    margin: 0; /* Removes extra margins */
    line-height: 1; /* Consistent height with link */
    vertical-align: middle; /* Aligns with surrounding text */
    transition: color 0.3s ease, transform 0.3s ease; /* Adds hover effects */
}

/* Hover effect for the toggle button */
.toggle-button:hover {
    color: #0056b3; /* Darker blue on hover */
    transform: scale(1.1); /* Slightly enlarge the icon */
}

/* Ensure no shadow or circular background is applied */
.toggle-button:focus {
    outline: none; /* Ensures no outline appears when clicked */
    background: none; /* No background on focus */
}


/* Mobile Fix: Ensure full width and proper wrapping */
@media screen and (max-width: 768px) {
    .news-table {
        width: 100%;
        border-collapse: collapse;
    }

    .news-table tr {
        display: block;
        width: 100%;
    }

    .news-table td {
        display: block;
        width: 100%;
        text-align: left;
    }

    .news-content {
        width: 90% !important;
        max-height: none !important;
        margin-left: 5px; /* Moves text 5px to the right */
    }

    .news-text {
        -webkit-line-clamp: unset !important; /* No text restriction */
        max-height: none !important; /* Always show full content */
        overflow: visible;
        display: block;
    }

    /* Hide the toggle button on mobile */
    .toggle-button {
        display: none !important;
    }
}






    /* Style for the post title */
    .linkedin-post-item h4 {
        font-size: 14px; /* Slightly larger font size for better visibility */
        font-weight: bold;
        text-align: left;
        color: #003366; /* Neutral, professional color */
        margin-bottom: 10px; /* Space below the title */
    }

    /* Style for the "View Post on LinkedIn" link */
    .linkedin-post-item a {
        color: #0073b1; /* LinkedIn blue color */
        font-size: 16px; /* Comfortable reading size */
        text-decoration: none; /* Remove underline for a cleaner look */
        font-weight: bold;
    }

    /* Hover effect for the link */
    .linkedin-post-item a:hover {
        text-decoration: underline; /* Add underline on hover */
        color: #005580; /* Darker blue for hover effect */
    }

/* --- Modal Overlay (Dark Blue Transparent Background) --- */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 50, 0.8); /* Dark Blue Transparent */
    justify-content: center;
    align-items: center;
}

/* --- Show Modal (Fix for display issues) --- */
.modal.show {
    display: flex;
}

/* --- Fade-in Animation --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- Modal Content Box (Dark Blue Background) --- */
/* Modal (popup) container */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

/* Modal content (the enlarged image) */
.modal-content {
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
}

/* Close button */
.close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* --- Close Button (White) --- */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    color: white; /* White Close Button */
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: red;
}

/* --- Modal Title (White & Underlined) --- */
.modal-content h3 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    border-bottom: 2px solid #ffffff;
    padding-bottom: 10px;
}

/* --- Form Labels (Make Text White) --- */
.modal-content label {
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin: 10px 0 5px;
    color: white; /* White Labels */
    text-align: left;
}

/* --- Form Inputs, Dropdown & Textarea (Lighter Background) --- */
.modal-content input,
.modal-content select,
.modal-content textarea {
    width: calc(100% - 20px); /* Prevents full stretch */
    max-width: 95%; /* Ensures uniform width */
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #f7f7f7;
    color: black;
    display: block;
    margin: 8px auto; /* Adds uniform spacing */
    text-align: left;
}

/* --- Larger Textarea --- */
.modal-content textarea {
    min-height: 120px;
    resize: vertical;
}

/* --- Input Focus Effect --- */
.modal-content input:focus,
.modal-content select:focus,
.modal-content textarea:focus {
    border-color: #ffffff;
    box-shadow: 0px 0px 6px rgba(255, 255, 255, 0.5);
    background: white;
}

/* --- Modern Submit Button (White on Dark Blue) --- */
.modal-content button {
    width: 100%;
    background: white;
    color: #002366;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.modal-content button:hover {
    background: lightgray;
}

/* --- Placeholder Text Styling (Light Gray for Readability) --- */
.modal-content input::placeholder,
.modal-content textarea::placeholder {
    color: #ccc;
    font-size: 14px;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    padding: 10px;
    background: white;  /* Blue background */
    color: 002366;  /* White font */
    border-radius: 8px;
    transition: background 0.3s;
    margin-bottom: 10px; /* Adjust this value to increase spacing */
}



/* Default (not toggled) state */
.toggle-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white; /* Icon color */
    background: #D3D3D3; /* Blue background when NOT toggled */
    border-radius: 50%;
    transition: all 0.3s ease-in-out;
}

/* Active (toggled/open) state */
.expanded .toggle-icon {
    background: #0056b3; /* Darker blue when toggled */
}

/* Rotate icon when expanded */
.rotated {
    transform: rotate(180deg);
}

/* Hidden Content */
.section-content {
    display: none;
    padding: 20px;
    font-size: 16px;
    color: #333;
    line-height: 1.5;
    border-bottom: 1px solid #eee;
    background: #fafafa;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
}