/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Blue color scheme */
    --primary-navy: #1e3a8a;
    --primary-blue: #2563eb;
    --primary-bright: #3b82f6;
    --primary-light: #60a5fa;
    --primary-lighter: #93c5fd;

    /* Text colors */
    --text-dark: #1a202c;
    --text-medium: #4a5568;
    --text-light: #718096;

    /* Background colors */
    --bg-white: #ffffff;
    --bg-light: #f7fafc;
    --bg-gray: #edf2f7;
    --bg-dark: #1a202c;

    /* Other colors */
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 8px rgba(30, 58, 138, 0.08);
    --shadow-md: 0 4px 16px rgba(30, 58, 138, 0.12);
    --shadow-lg: 0 8px 32px rgba(30, 58, 138, 0.16);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.section-gray {
    background: var(--bg-light);
}

/* ===== Header & Navigation ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo svg {
    width: 160px;
    height: auto;
    flex-shrink: 0;
}

.logo-svg {
    width: 50px;
    height: auto;
    flex-shrink: 0;
}

.logo-svg .st0 {
    /* fill: var(--primary-blue); */
    fill: #ff6a00;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.logo-title {
    font-size: 1.1rem;
    font-weight: 700;
    /* color:   var(--primary-blue); */
    color: #ff6a00;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.65rem;
    font-weight: 500;
    /* color: var(--text-medium); */
    color: #ff6a00;
    ;
    letter-spacing: 0.01em;
    margin: 0;
    line-height: 1.2;
    /* text-transform: lowercase; */
}

.logo-groupname {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-blue);
    /* letter-spacing: 0.09rem; */
    margin: 0;
    line-height: 1;
    white-space: nowrap;
    /* text-transform: lowercase; */
    display: inline;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* ===== Introduction Section ===== */
.introduction {
    background: var(--bg-white);
    padding-top: 120px;
    padding-bottom: 4rem;
}

.intro-opening {
    max-width: 1000px;
    margin: 0 auto 4rem;
    text-align: center;
}

.intro-opening p {
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--text-medium);
    font-weight: 400;
}

/* Three-Card Layout */
.intro-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.center {
    text-align: center;
}

.intro-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.intro-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.intro-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-blue);
    text-align: center;
}

.intro-card-link {
    margin-top: auto;
    padding: 0.8rem 1.5rem;
    background: var(--primary-blue);
    color: var(--bg-white);
    text-decoration: none;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.intro-card-link:hover {
    background: var(--primary-navy);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Card 1: Recent News */
.news-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.news-list-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.news-list-item:last-child {
    border-bottom: none;
}

.news-item-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.news-item-date {
    font-size: 0.85rem;
    color: var(--primary-blue);
    font-weight: 500;
}

/* Card 2: Highlight */
.intro-card-highlight {
    background: linear-gradient(to bottom, var(--bg-light) 0%, var(--bg-white) 0%);
}

.highlight-image {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.highlight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.highlight-content {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.section-subtitle {
    text-align: center;
}

.highlight-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.highlight-description {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.6;
}

/* Card 3: Group Lead */
.lead-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-blue);
    box-shadow: var(--shadow-sm);
}

.lead-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lead-info {
    text-align: center;
    margin-bottom: 1.5rem;
}

.lead-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 0.8rem;
}

.lead-bio {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.6;
    text-align: justify;
}

.btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--bg-white);
}

.btn-primary:hover {
    background: var(--primary-navy);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--bg-white);
    transform: translateY(-2px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Section Titles ===== */
.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-navy);
    text-align: center;
    margin-bottom: 3rem;
}

/* ===== About Section ===== */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

/* ===== Card Grid Layout ===== */

/* ===== Grid width =====  repeat(auto-fit, minmax(260px, 1fr)) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card-grid-three {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.badges-container {
    display: inline-block;
    margin-bottom: 0.5rem;
}


/* Master Thesis Badge */
.master-thesis-badge {
    /* display: inline-block; */
    display: inline;
    background: var(--bg-white);
    color: var(--primary-blue);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.1rem 0.5rem;
    border: 1px solid var(--primary-blue);
    border-radius: 50px;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    /* text-transform: uppercase; */
    letter-spacing: 0.05em;
    white-space: nowrap;
    width: fit-content;
}

.running-badge {
    /* display: inline-block; */
    display: inline;
    background: var(--bg-white);
    color: #ff4d4d;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.1rem 0.5rem;
    border: 1px solid #ff4d4d;
    border-radius: 50px;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    /* text-transform: uppercase; */
    letter-spacing: 0.05em;
    white-space: nowrap;
    width: fit-content;
}

.value-badge {
    /* display: inline-block; */
    display: inline;
    background: var(--bg-white);
    color: #82e600;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.1rem 0.5rem;
    border: 1px solid #82e600;
    border-radius: 50px;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    /* text-transform: uppercase; */
    letter-spacing: 0.05em;
    white-space: nowrap;
    width: fit-content;
}

.fraunhofer-badge {
    /* display: inline-block; */
    display: inline;
    background: var(--bg-white);
    color: #179C7D;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.1rem 0.5rem;
    border: 1px solid #179C7D;
    border-radius: 50px;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    /* text-transform: uppercase; */
    letter-spacing: 0.05em;
    white-space: nowrap;
    width: fit-content;
}

.card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    width: 100%;
    /* image hight */
    height: 150px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-date {
    font-size: 0.9rem;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-title {
    font-size: 1.0rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.card-description {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.card-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.card-link:hover {
    color: var(--primary-navy);
    transform: translateX(5px);
}

.section-footer {
    text-align: center;
    margin-top: 3rem;
}

/* ===== Publication & Master Program Buttons ===== */

.publication-authors {
    font-size: 0.8rem;
    color: var(--text-medium);
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1;
}

.publication-buttons {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.master-program-button {
    margin-top: auto;
}

.pub-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.pub-btn svg {
    flex-shrink: 0;
}

.pub-btn-pdf {
    background: var(--primary-blue);
    color: var(--bg-white);
}

.pub-btn-pdf:hover {
    background: var(--primary-navy);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.pub-btn-github {
    background: var(--text-dark);
    color: var(--bg-white);
}

.pub-btn-github:hover {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pub-btn-springer {
    background: white;
    color: black;
    border: 2px solid #0c2850;

}

.pub-btn-springer:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pub-btn-disabled {
    background: var(--bg-gray);
    color: var(--text-light);
    cursor: not-allowed;
    opacity: 0.6;
}

.pub-btn-disabled:hover {
    background: var(--bg-gray);
    transform: none;
    box-shadow: none;
}

.master-program-button .pub-btn {
    width: 100%;
}

/* ===== Fade In Animation ===== */
.fade-in {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Team Section ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 4rem;
}

.team-member-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.team-member-photo {
    width: 180px;
    height: 180px;
    margin: 0 auto 2rem;
    ;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-blue);
    box-shadow: var(--shadow-sm);
}


.team-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-bottom: 0px;
}

.team-member-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.team-member-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 0.3rem;
}

.team-member-role {
    font-size: 1rem;
    color: var(--text-medium);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.team-member-email {
    font-size: 0.95rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.team-member-email:hover {
    color: var(--primary-navy);
    text-decoration: underline;
}

.team-member-interests {
    text-align: left;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
}

.team-member-interests strong {
    font-size: 0.9rem;
    color: var(--text-dark);
    display: block;
    margin-bottom: 0.5rem;
}

.team-member-interests p {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.5;
}

/* Master Students Section */
.master-students-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 3px solid var(--primary-blue);
}

.master-students-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 2rem;
    text-align: center;
}

.master-students-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1130px;
    margin: 0 auto;
}

.master-student-item {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-blue);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.master-student-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.student-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-navy);
    display: block;
    margin-bottom: 0.5rem;
}

.student-thesis {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.6;
    display: block;
}

/* ===== Contact Section ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info-section h3,
.contact-form-section h3 {
    font-size: 1.8rem;
    color: var(--primary-navy);
    margin-bottom: 1.5rem;
}

.contact-info-section p {
    font-size: 1.1rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item h4 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-item p {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.7;
}

.contact-item a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-navy);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.map-placeholder {
    margin-top: 4rem;
    background: var(--bg-gray);
    padding: 4rem;
    border-radius: 12px;
    text-align: center;
    font-size: 1.5rem;
    color: var(--text-light);
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: var(--bg-white);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-section p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer-logo {
    width: 180px;
    height: auto;
    margin-bottom: 1.5rem;
    display: block;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.7rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.social-links a:hover {
    color: var(--bg-white);
    background: var(--primary-blue);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
}

/* ===== Responsive Design ===== */
@media (max-width: 968px) {
    .intro-cards-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .team-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }

    .master-students-list {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        width: 100%;
        padding: 2rem;
        box-shadow: var(--shadow-md);
        transition: left 0.3s ease;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Responsive logo */
    .logo svg {
        width: 120px;
    }

    .logo-groupname {
        font-size: 0.9rem;
        white-space: normal;
        max-width: 150px;
    }

    /* Projects page responsive */
    .projects-page {
        padding-top: 100px;
    }

    .projects-header h1 {
        font-size: 2.2rem;
    }

    .projects-header p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .projects-container {
        padding: 0 1.5rem 4rem;
    }

    /* Publications page responsive */
    .publications-page {
        padding-top: 100px;
    }

    .publications-header h1 {
        font-size: 2.2rem;
    }

    .publications-header p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .publications-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .publications-container {
        padding: 0 1.5rem 4rem;
    }

    /* Teaching page responsive */
    .teaching-page {
        padding-top: 100px;
    }

    .teaching-header h1 {
        font-size: 2.2rem;
    }

    .teaching-header p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .teaching-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .teaching-container {
        padding: 0 1.5rem 4rem;
    }

    /* News archive responsive */
    .news-archive-page {
        padding-top: 100px;
    }

    .news-archive-header h1 {
        font-size: 2.2rem;
    }

    .news-archive-header p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .news-archive-container {
        padding: 0 1.5rem 4rem;
    }

    .news-archive-list {
        grid-template-columns: 1fr;
    }

    .news-archive-item {
        padding: 1.5rem;
    }

    .intro-opening p {
        font-size: 1.1rem;
    }

    .introduction {
        padding-top: 100px;
    }

    .section-title {
        font-size: 2rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 4rem 0;
    }

    .container {
        padding: 0 1.5rem;
    }

    .footer-logo {
        width: 140px;
    }
}

@media (max-width: 480px) {

    /* Responsive logo for mobile */
    .logo svg {
        width: 90px;
    }

    .logo-groupname {
        font-size: 0.75rem;
        white-space: normal;
        max-width: 110px;
        line-height: 1.2;
    }

    /* Projects/Publications/Teaching actions responsive */
    .project-actions,
    .publication-actions,
    .teaching-actions {
        flex-direction: column;
    }

    .pub-action-btn {
        width: 100%;
    }

    /* News archive mobile */
    .news-archive-title {
        font-size: 1.2rem;
    }

    .news-archive-date {
        font-size: 0.85rem;
    }

    .intro-opening p {
        font-size: 1rem;
    }

    .intro-card {
        padding: 1.5rem;
    }

    .intro-card-title {
        font-size: 1.3rem;
    }

    .lead-photo {
        width: 120px;
        height: 120px;
    }

    .team-member-photo {
        width: 150px;
        height: 150px;
    }

    .team-member-card {
        padding: 1.5rem;
    }

    .publication-buttons {
        flex-direction: column;
    }

    .pub-btn {
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .logo-svg {
        width: 35px;
    }

    .logo-title {
        font-size: 0.9rem;
    }

    .logo-subtitle {
        font-size: 0.55rem;
    }

    .master-thesis-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }
}

/* ===== Projects Page Styles ===== */
.projects-page {
    background: var(--bg-light);
    padding-top: 120px;
    min-height: 100vh;
}

.projects-header {
    background: var(--bg-white);
    padding: 3rem 0;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-sm);
}

.projects-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-navy);
    text-align: center;
    margin-bottom: 1rem;
}

.projects-header p {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-medium);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(auto, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: var(--bg-gray);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.project-authors {
    font-size: 1rem;
    color: var(--text-medium);
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.project-description {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

/* ===== Publications Page Styles ===== */
.publications-page {
    background: var(--bg-light);
    padding-top: 120px;
    min-height: 100vh;
}

.publications-header {
    background: var(--bg-white);
    padding: 3rem 0;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-sm);
}

.publications-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-navy);
    text-align: center;
    margin-bottom: 1rem;
}

.publications-header p {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-medium);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.publications-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
}

.publications-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(260px, 1fr));
    gap: 2.5rem;
}

.publication-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.publication-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.publication-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: var(--bg-gray);
}

.publication-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.publication-card:hover .publication-image img {
    transform: scale(1.05);
}

.publication-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.publication-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.publication-authors {
    font-size: 1rem;
    color: var(--text-medium);
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.publication-description {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.publication-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

/* ===== Teaching Page Styles ===== */
.teaching-page {
    background: var(--bg-light);
    padding-top: 120px;
    min-height: 100vh;
}

.teaching-header {
    background: var(--bg-white);
    padding: 3rem 0;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-sm);
}

.teaching-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-navy);
    text-align: center;
    margin-bottom: 1rem;
}

.teaching-header p {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-medium);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.teaching-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
}

.teaching-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(auto, 1fr));
    gap: 2.5rem;
}

.teaching-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.teaching-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.teaching-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: var(--bg-gray);
}

.teaching-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.teaching-card:hover .teaching-image img {
    transform: scale(1.05);
}

.teaching-content {
    padding: 1.0rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.teaching-title {
    font-size: 1.0rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.teaching-authors {
    font-size: 1rem;
    color: var(--text-medium);
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.teaching-description {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    text-align: justify;
}

.teaching-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

/* ===== Shared Action Button Styles ===== */
.pub-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.1rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.pub-action-btn svg {
    flex-shrink: 0;
}

.pub-action-btn.pdf {
    background: var(--primary-blue);
    color: var(--bg-white);
}

.pub-action-btn.pdf:hover {
    background: var(--primary-navy);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.pub-action-btn.github {
    background: var(--text-dark);
    color: var(--bg-white);
}

.pub-action-btn.github:hover {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pub-action-btn.disabled {
    background: var(--bg-gray);
    color: var(--text-light);
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
}

.pub-action-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Teaching page button override */
.teaching-page .pub-action-btn {
    padding: 0.9rem 1.2rem;
    border-radius: 8px;
    font-size: 1rem;
}

/* ===== News Archive Page Styles ===== */
.news-archive-page {
    background: var(--bg-light);
    padding-top: 120px;
    min-height: 100vh;
}

.news-archive-header {
    background: var(--bg-white);
    padding: 3rem 0;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-sm);
}

.news-archive-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-navy);
    text-align: center;
    margin-bottom: 1rem;
}

.news-archive-header p {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-medium);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.news-archive-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
}

.news-archive-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.news-archive-item {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.news-archive-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--primary-blue);
}

.news-archive-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.news-archive-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin: 0;
    line-height: 1.4;
}

.news-archive-date {
    font-size: 0.95rem;
    color: var(--primary-blue);
    font-weight: 600;
    margin: 0;
}

/* ===== Utility Classes ===== */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}