/* ============================================
   OSCAR ACOSTA PROFESSIONAL WEBSITE - STYLESHEET
   ============================================ */

:root {
    /* Colors - LTSI Branding */
    --primary-color: #003d80;
    --secondary-color: #0052a3;
    --accent-color: #0066cc;
    --accent-light: #4d94ff;
    --ltsi-blue: #003d80;
    --ltsi-light-blue: #4d94ff;
    --text-dark: #2c3e50;
    --text-light: #ecf0f1;
    --bg-light: #f5f7fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);

    /* Typography */
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-serif: 'Georgia', serif;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* Transitions */
    --transition: all 0.3s ease;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-light);
}

ul {
    list-style: none;
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */

.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: var(--spacing-sm);
    z-index: 9999;
    background: var(--bg-white);
    padding: var(--spacing-sm);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.lang-btn {
    background: var(--bg-light);
    border: 2px solid transparent;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.lang-btn:hover {
    background: var(--accent-light);
    color: white;
}

.lang-btn.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section {
    padding: var(--spacing-2xl) 0;
}

.section.bg-light {
    background-color: var(--bg-light);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xl);
    color: var(--primary-color);
    text-align: center;
    position: relative;
    padding-bottom: var(--spacing-lg);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: var(--spacing-2xl);
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    padding: var(--spacing-lg) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Refined Social Bar Styling */
.nav-social {
    display: flex;
    gap: 1.25rem; /* Precise spacing */
    margin-left: 2rem;
    align-items: center;
    list-style: none; /* Ensures no dots appear */
}

.nav-social li a {
    color: rgba(255, 255, 255, 0.8); /* Softer white for professional look */
    font-size: 1.2rem;
    padding: 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05); /* Very subtle background box */
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Smoother animation */
}

.nav-social li a:hover {
    color: #ffffff; /* Brighter on hover */
    background: rgba(255, 255, 255, 0.15); /* More visible box */
    border-color: var(--accent-light); /* Uses your existing light blue */
    transform: translateY(-3px); /* Subtle lift */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Tooltip style for icon description */
.nav-social li a:after {
    display: none; /* Keep it clean unless you want text labels */
}


.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
    margin: 0;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-xl);
    align-items: center;
}

.nav-menu li a {
    color: var(--text-light);
    font-weight: 500;
    transition: var(--transition);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 4px;
}

.nav-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-light);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 2px;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--primary-color);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu.active {
        max-height: 400px;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        display: block;
        padding: var(--spacing-md) var(--spacing-lg);
        border-radius: 0;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, #15294b 0%, #1a3b6d 100%);
    color: var(--text-light);
    padding: 4rem var(--spacing-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
    color: white;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-2xl);
    opacity: 0.95;
    font-style: italic;
}

.project-funders {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin-top: var(--spacing-lg);
}

.project-funders img {
    height: 54px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    opacity: 0.9;
}
.project-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    text-decoration: none;
    color: inherit;
}
.project-link:hover h3 {
    text-decoration: underline;
    color: var(--accent-color);
}
.project-link:hover .project-logo {
    transform: scale(1.05);
}

.project-card h3 a {
    color: inherit;
    text-decoration: none;
}

.project-card h3 a:hover {
    text-decoration: underline;
}

.project-card a:hover {
    color: var(--accent-light);
    text-decoration: none;
}
.project-funders img:hover {
    opacity: 1;
    transform: scale(1.05);
}

.erapermed-logo {
    height: 43px !important;
}

.msca-logo {
    height: 90px !important; /* Increased from 60px to 100px */
    width: auto;
    object-fit: contain;
    margin-right: 10px; /* Space between the two logos */
}
.project-card .bretagne-logo-small {
    height: 40px !important; /* Slightly smaller than the MSCA logo */
    width: auto;
    opacity: 0.9;
}

/* Ensure they sit perfectly side-by-side */
.project-card .project-funders {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Aligns them to the left next to each other */
    gap: 10px;
}

/* Layout for the Bretagne logo and text stack */
.bretagne-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

/* Styling for the Boost Program link */
.boost-text {
    font-size: 0.75rem; /* Very small text */
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.boost-text:hover {
    color: var(--accent-light);
    text-decoration: underline;
}



.hero-meta {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    margin-bottom: var(--spacing-2xl);
    flex-wrap: wrap;
}

.badge {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-links {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: var(--spacing-md) var(--spacing-2xl);
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.cta-button:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-button.secondary {
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid var(--text-light);
}

.cta-button.secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.hero-accent {
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 1;
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem var(--spacing-lg);
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--spacing-2xl);
    align-items: start;
}

.about-photo {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.profile-image {
    width: 180px;
    height: 220px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: var(--shadow-md);
    border: 3px solid var(--accent-color);
    margin-bottom: var(--spacing-lg);
}

.affiliations-logos {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    width: 100%;
}

.affiliations-logos .logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    transition: var(--transition);
}

.affiliations-logos .logo-item:hover {
    border-color: transparent;
    box-shadow: none;
    transform: scale(1.08);
}

.affiliations-logos .logo-item img {
    height: 70px;
    width: auto;
    max-width: 100%;
    filter: none;
    opacity: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
}

.about-text h4 {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

.about-text p {
    color: #555;
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.about-text ul {
    list-style: disc;
    padding-left: var(--spacing-lg);
}

.about-text ul li {
    margin-bottom: var(--spacing-md);
    color: #666;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.expertise-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.expertise-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.stat-card {
    background: var(--bg-light);
    padding: var(--spacing-xl);
    border-radius: 8px;
    border: 2px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
}

.stat-label {
    color: #666;
    font-weight: 500;
    margin: 0;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .profile-image {
        width: 180px;
        height: 240px;
        margin: 0 auto;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   RESEARCH SECTION
   ============================================ */

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--spacing-md);
}

.research-card {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    border: none;
    padding: var(--spacing-lg);
    border-radius: 6px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
}

.research-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--accent-light), var(--accent-color));
}

.research-card i {
    font-size: 1.8rem;
    color: white;
    margin-bottom: var(--spacing-md);
}

.research-card h3 {
    font-size: 0.95rem;
    color: white;
    margin-bottom: 0;
    font-weight: 600;
    line-height: 1.3;
}

.research-card p {
    display: none;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
}

.project-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: var(--spacing-xl);
    border-radius: 8px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.project-card:first-child {
    background: var(--bg-white);
    color: inherit;
}

.project-card:first-child .project-card h3,
.project-card:first-child h3 {
    color: var(--primary-color);
}

.project-card:first-child .project-acronym,
.project-card:first-child .project-meta {
    color: var(--text-dark);
}

.project-card:first-child p {
    color: var(--text-dark);
}

.project-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
    transform: translateY(-3px);
}

.project-card:nth-child(2) {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.project-card:nth-child(2)::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%; 
    height: 90%;
    background-image: url('../images/twincart-logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.2; 
    z-index: -1;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: var(--spacing-md);
}

.project-title-with-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.project-logo {
    height: 60px;
    width: auto;
    max-width: 70px;
    object-fit: contain;
    transition: var(--transition);
    cursor: pointer;
}

.project-card:first-child:hover .project-logo {
    transform: scale(1.3);
}

.project-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin: 0;
}

.project-badge {
    background: var(--accent-color);
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.project-acronym {
    font-style: italic;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.project-card p {
    color: #666;
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.project-meta {
    display: flex;
    gap: var(--spacing-md);
    font-size: 0.9rem;
    color: #888;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* ============================================
   PUBLICATIONS SECTION
   ============================================ */

.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.publication-card {
    background: var(--bg-white);
    padding: var(--spacing-xl);
    border-radius: 8px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.publication-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.pub-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2rem;
}

.publication-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.publication-card p {
    color: #666;
    margin-bottom: var(--spacing-lg);
    font-size: 0.95rem;
}

.resource-link {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
}

.resource-link:hover {
    background: var(--accent-light);
    transform: translateX(3px);
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-2xl);
}

.contact-item {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--bg-light);
    border-radius: 8px;
    transition: var(--transition);
}

.contact-item:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-5px);
}

.contact-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: var(--spacing-lg);
}

.contact-item:hover i {
    color: white;
}

.contact-item h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

.contact-item:hover h4 {
    color: white;
}

.contact-item a {
    color: var(--accent-color);
    font-weight: 600;
}

.contact-item:hover a {
    color: white;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: linear-gradient(135deg, var(--ltsi-blue) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

.footer-logos {
    display: flex;
    justify-content: center;
    gap: var(--spacing-2xl);
    align-items: center;
    margin-bottom: var(--spacing-2xl);
    padding: 1.5rem 2rem;
    background-color: white;
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-item img {
    height: 60px;
    width: auto;
    opacity: 1;
    transition: var(--transition);
    filter: none;
}

.logo-item.large-logo img {
    height: 80px;
}

.footer-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--accent-light);
    padding-left: var(--spacing-sm);
}

.social-links {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    font-size: 1.5rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: var(--spacing-lg);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.funder-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.funder-logos img {
    height: 50px;
    width: auto;
    filter: none;
    opacity: 0.85;
    transition: var(--transition);
}

.funder-logos img:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* ============================================
   SCIENTIFIC EVENTS SECTION
   ============================================ */

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.event-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    padding: var(--spacing-xl);
    border-radius: 8px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.event-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: var(--spacing-md);
}

.event-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin: 0;
}

.event-badge {
    background: var(--accent-color);
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.event-acronym {
    font-style: italic;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.event-card p {
    color: #666;
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.event-meta {
    display: flex;
    gap: var(--spacing-md);
    font-size: 0.9rem;
    color: #888;
    margin-bottom: var(--spacing-lg);
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.event-link {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
}

.event-link:hover {
    background: var(--accent-light);
    transform: translateX(3px);
}

/* ============================================
   NEWS SECTION
   ============================================ */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.news-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    padding: var(--spacing-xl);
    border-radius: 8px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.news-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.news-date {
    background: var(--accent-color);
    color: white;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: var(--spacing-md);
}

.news-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    font-size: 1.2rem;
}

.news-card p {
    color: #666;
    line-height: 1.7;
}

.news-link {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
    margin-top: var(--spacing-md);
}

.news-link:hover {
    background: var(--accent-light);
    transform: translateX(3px);
}

/* ============================================
   POSITIONS PAGE STYLES
   ============================================ */

.positions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
}

.position-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: var(--spacing-2xl);
    border-radius: 8px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.position-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
    transform: translateY(-3px);
}

.position-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-xl);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: var(--spacing-lg);
}

.position-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin: 0;
    flex: 1;
}

.position-badge {
    background: var(--accent-color);
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    margin-left: var(--spacing-lg);
}

.position-section {
    margin-bottom: var(--spacing-xl);
}

.position-section h4 {
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.position-section p {
    color: #666;
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.position-section ul {
    list-style: disc;
    padding-left: var(--spacing-lg);
    margin: 0;
}

.position-section ul li {
    margin-bottom: var(--spacing-sm);
    color: #666;
    line-height: 1.6;
}

.position-section strong {
    color: var(--primary-color);
    font-weight: 600;
}

.why-join {
    background: var(--bg-light);
    padding: var(--spacing-2xl);
    border-radius: 8px;
    margin-top: var(--spacing-2xl);
    text-align: center;
}

.why-join h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
}

.why-join p {
    color: #666;
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    .section {
        padding: var(--spacing-xl) 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .research-grid,
    .projects-grid,
    .publications-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .language-switcher {
        top: 70px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-lg: 1rem;
        --spacing-xl: 1.5rem;
        --spacing-2xl: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .cta-button {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: 0.9rem;
    }

    .language-switcher {
        top: 60px;
        right: 5px;
        gap: var(--spacing-xs);
    }

    .lang-btn {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.8rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .navbar,
    .footer,
    .hamburger,
    .language-switcher {
        display: none;
    }

    .section {
        page-break-inside: avoid;
    }
}
