/* ============================================
   PAGES.CSS — Page-specific Styles
   ============================================ */

/* ========== HOME PAGE ========== */

/* About section with inline photo */
.about-section {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 1em;
}

.about-photo {
    width: 120px;
    height: 150px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border-light);
}

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

.about-text {
    flex: 1;
}

/* Awards list */
.awards-list {
    list-style: disc;
    padding-left: 1.8em;
}

.awards-list li {
    margin-bottom: 0.5em;
    line-height: 1.6;
    color: var(--text-primary);
}

/* Courses grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
    list-style: none;
    padding: 0;
}

.courses-grid li {
    padding: 10px 16px;
    background: var(--bg-sidebar);
    border-radius: 6px;
    font-size: 0.93rem;
    color: var(--text-primary);
    border-left: 3px solid var(--accent-red);
    transition: background var(--transition-fast);
}

.courses-grid li:hover {
    background: var(--accent-red-light);
}

/* CV Download Button */
.cv-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--accent-red);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.93rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: 0 2px 8px rgba(139, 26, 26, 0.25);
    margin: 8px 0 4px 0;
}

.cv-download-btn svg {
    width: 16px;
    height: 16px;
    stroke: #fff;
    flex-shrink: 0;
}

.cv-download-btn:hover {
    background: var(--accent-red-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(139, 26, 26, 0.35);
}

.cv-download-btn:active {
    transform: translateY(0);
}

/* Education list */
.education-list {
    list-style: none;
    padding: 0;
}

.education-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.education-list li:last-child {
    border-bottom: none;
}

.education-list .degree {
    font-weight: 600;
    color: var(--text-heading);
    font-size: 1rem;
}

.education-list .institution {
    color: var(--text-secondary);
    font-size: 0.93rem;
}

.education-list .year {
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* Experience list */
.experience-list {
    list-style: none;
    padding: 0;
}

.experience-list li {
    padding: 10px 0;
    padding-left: 16px;
    border-left: 2px solid var(--border-light);
    margin-bottom: 6px;
    line-height: 1.6;
}

.experience-list li .role {
    font-weight: 600;
    color: var(--text-heading);
}

.experience-list li .period {
    color: var(--text-muted);
    font-size: 0.88rem;
    display: block;
}

/* ========== VIDEOS SECTION ========== */

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 1em;
}

.videos-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.videos-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.video-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow var(--transition-fast), transform var(--transition-fast);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.4s ease forwards;
}

.video-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

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

.video-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium), opacity var(--transition-fast);
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.08);
}

.video-thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background var(--transition-fast);
}

.video-card:hover .video-thumbnail::after {
    background: rgba(0, 0, 0, 0.4);
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.video-play-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--accent-red);
    margin-left: 3px;
}

.video-card:hover .video-play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.video-info {
    padding: 14px 16px;
}

.video-title {
    font-family: var(--font-body);
    font-size: 0.93rem;
    font-weight: 500;
    color: var(--text-heading);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-date {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.video-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ========== RESEARCH PAGE ========== */

/* Project cards */
.projects-section {
    margin-top: 1em;
}

.project-card {
    padding: 24px 0;
    border-bottom: 1px solid var(--border-light);
}

.project-card:last-child {
    border-bottom: none;
}

.project-card h3 {
    margin-top: 0;
    font-size: 1.15rem;
}

.project-card-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.project-image {
    width: 200px;
    height: 140px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border-light);
}

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

/* Placeholder for projects without images */
.project-image.placeholder {
    background: linear-gradient(135deg, #e8e0d8 0%, #d4ccc4 50%, #c8bfb7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--border-medium);
}

.project-image.placeholder .placeholder-icon {
    font-size: 2.5rem;
    color: var(--text-muted);
    opacity: 0.5;
}

.project-details {
    flex: 1;
}

.project-details p {
    margin-bottom: 0.6em;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.project-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.project-meta span {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--bg-sidebar);
    padding: 3px 10px;
    border-radius: 12px;
}

/* Two-column project grid for past projects (like reference) */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 1em;
}

.project-grid-item {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.project-grid-item h3 {
    margin-top: 0;
}

.project-grid-item .project-image {
    width: 100%;
    max-width: 240px;
    height: 160px;
}

/* ========== STUDENTS PAGE ========== */

.students-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0 2em 0;
    font-size: 0.93rem;
}

.students-table thead {
    background: var(--bg-sidebar);
}

.students-table th {
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    color: var(--text-heading);
    border-bottom: 2px solid var(--border-medium);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.students-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: top;
    line-height: 1.5;
}

.students-table tr:hover td {
    background: var(--accent-red-light);
}

.students-table .student-name {
    font-weight: 500;
    color: var(--text-heading);
    white-space: nowrap;
}

.students-table .student-sr {
    width: 40px;
    text-align: center;
    color: var(--text-muted);
}

/* ========== PUBLICATIONS PAGE ========== */

.publications-section {
    margin-top: 0.5em;
}

.pub-list {
    list-style: none;
    padding: 0;
    counter-reset: pub-counter;
}

.pub-list li {
    counter-increment: pub-counter;
    padding: 12px 0 12px 40px;
    border-bottom: 1px solid var(--border-light);
    position: relative;
    line-height: 1.65;
    font-size: 0.93rem;
    color: var(--text-primary);
}

.pub-list li:last-child {
    border-bottom: none;
}

.pub-list li::before {
    content: "[" counter(pub-counter) "]";
    position: absolute;
    left: 0;
    top: 12px;
    font-weight: 600;
    color: var(--accent-red);
    font-size: 0.88rem;
    width: 34px;
    text-align: right;
}

.pub-list .pub-title {
    font-weight: 500;
}

.pub-list .pub-venue {
    font-style: italic;
    color: var(--text-secondary);
}

.pub-list .pub-doi {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

.pub-list .pub-link {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 2px 8px;
    background: var(--accent-red-light);
    border-radius: 4px;
    color: var(--accent-red);
    margin-left: 4px;
    transition: all var(--transition-fast);
}

.pub-list .pub-link:hover {
    background: var(--accent-red);
    color: #fff;
}

/* ========== CONTACT PAGE ========== */

.contact-block {
    margin: 1.5em 0;
}

.contact-block dt {
    font-weight: 600;
    color: var(--text-heading);
    margin-top: 1em;
    font-size: 0.95rem;
}

.contact-block dd {
    margin-left: 0;
    padding-left: 20px;
    margin-top: 4px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.contact-block dd a {
    word-break: break-all;
}

/* ========== COURSES PAGE ========== */

.section-intro {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5em;
}

.courses-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.course-item {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 20px 24px;
    transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.course-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.course-item h3 {
    color: var(--accent-red);
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.course-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* ========== CV PAGE ========== */

.cv-section {
    max-width: 800px;
}

.cv-intro {
    color: var(--text-secondary);
    margin-bottom: 2em;
    font-size: 1rem;
    line-height: 1.7;
}

.cv-download-box {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    margin-bottom: 2em;
}

.cv-icon {
    margin-bottom: 20px;
}

.cv-icon svg {
    width: 64px;
    height: 64px;
    stroke: var(--accent-red);
}

.cv-download-box h2 {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
}

.cv-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.cv-highlights {
    background: var(--bg-sidebar);
    border-radius: 8px;
    padding: 24px;
}

.cv-highlights h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.highlight-item {
    text-align: center;
}

.highlight-number {
    display: block;
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent-red);
    font-family: var(--font-heading);
}

.highlight-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========== LAB PAGE ========== */

.lab-section {
    max-width: 900px;
}

.lab-intro {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5em;
}

.lab-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 2em;
}

.lab-image {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.lab-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-medium);
}

.lab-image:hover img {
    transform: scale(1.02);
}

.lab-features h2,
.lab-research h2 {
    margin-top: 2em;
    margin-bottom: 1em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-item {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 20px;
}

.feature-icon {
    margin-bottom: 12px;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--accent-red);
}

.feature-item h3 {
    font-size: 1rem;
    margin: 0 0 8px 0;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.research-areas {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.research-areas li {
    background: var(--bg-sidebar);
    padding: 12px 16px;
    border-radius: 6px;
    border-left: 3px solid var(--accent-red);
    font-size: 0.95rem;
}

/* ========== FAQ PAGE ========== */

.faq-section {
    max-width: 800px;
}

.faq-intro {
    color: var(--text-secondary);
    margin-bottom: 2em;
    font-size: 1rem;
    line-height: 1.7;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.faq-item {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 24px;
}

.faq-item h3 {
    color: var(--text-heading);
    font-size: 1.05rem;
    margin-top: 0;
    margin-bottom: 12px;
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* ========== PERSONAL PAGE ========== */

.personal-section {
    max-width: 800px;
}

.personal-intro {
    color: var(--text-secondary);
    margin-bottom: 2em;
    font-size: 1rem;
    line-height: 1.7;
}

.debate-club-section h2 {
    margin-bottom: 1em;
}

.debate-content {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}

.debate-content p {
    margin-bottom: 1em;
}

.debate-content h3 {
    color: var(--text-heading);
    font-size: 1.1rem;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}

.process-list {
    padding-left: 1.5em;
    margin-bottom: 1.5em;
}

.process-list li {
    margin-bottom: 0.75em;
}

.past-films {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 2em;
}

.film-item {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 16px 20px;
}

.film-item h4 {
    color: var(--accent-red);
    font-size: 1rem;
    margin: 0 0 8px 0;
}

.film-item p {
    margin: 0;
    color: var(--text-secondary);
}

.club-mission {
    background: var(--bg-sidebar);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 2em;
}

.quote-section {
    background: var(--bg-white);
    border-left: 4px solid var(--accent-red);
    padding: 24px;
    margin: 2em 0;
    border-radius: 0 6px 6px 0;
}

.quote-section blockquote {
    margin: 0;
}

.quote-section blockquote p {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-heading);
    margin: 0;
}

.quote-attribution {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 12px;
    margin-bottom: 0;
}

.outreach-section h2 {
    margin-bottom: 1em;
}

.outreach-list {
    list-style: disc;
    padding-left: 1.5em;
    color: var(--text-secondary);
}

.outreach-list li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

/* ========== ROBOTS PAGE ========== */

.robot-videos-section {
    margin-top: 3em;
    padding-top: 2em;
    border-top: 1px solid var(--border-light);
}

.robot-videos-section h2 {
    margin-bottom: 0.5em;
}

.robot-videos-section p {
    color: var(--text-secondary);
    margin-bottom: 1em;
}

.video-links {
    list-style: none;
    padding: 0;
}

.video-links li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.video-links li:last-child {
    border-bottom: none;
}

.video-links a {
    color: var(--accent-red);
    font-weight: 500;
}

.video-links a:hover {
    text-decoration: underline;
}

/* ========== LINKS PAGE ========== */

.links-section {
    max-width: 800px;
}

.links-intro {
    color: var(--text-secondary);
    margin-bottom: 2em;
    font-size: 1rem;
    line-height: 1.7;
}

.profile-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 3em;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 24px;
    text-decoration: none;
    transition: box-shadow var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast);
}

.profile-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: var(--accent-red);
}

.profile-icon {
    flex-shrink: 0;
}

.profile-icon svg {
    width: 48px;
    height: 48px;
}

.linkedin .profile-icon svg {
    fill: #0077B5;
}

.google-scholar .profile-icon svg {
    fill: #4285F4;
}

.profile-info {
    flex: 1;
}

.profile-info h3 {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    color: var(--text-heading);
}

.profile-info p {
    margin: 0 0 6px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.profile-url {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.profile-arrow svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-muted);
}

.profile-card:hover .profile-arrow svg {
    stroke: var(--accent-red);
}

.other-links h2 {
    margin-bottom: 1em;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-sidebar);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 16px 20px;
    text-decoration: none;
    color: var(--text-heading);
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.quick-link:hover {
    background: var(--accent-red-light);
    border-color: var(--accent-red);
}

.link-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-red);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
}

.link-text {
    font-weight: 500;
}

/* ========== RESPONSIVE: TABLET ========== */

@media (max-width: 900px) {
    .project-image {
        width: 160px;
        height: 110px;
    }

    .project-meta {
        gap: 8px;
    }

    .projects-grid {
        gap: 16px;
    }
}

/* ========== RESPONSIVE: MOBILE ========== */

@media (max-width: 768px) {

    /* --- Home --- */
    .about-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-photo {
        width: 100px;
        height: 125px;
    }

    .cv-download-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .courses-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .courses-grid li {
        font-size: 0.88rem;
        padding: 8px 14px;
    }

    .experience-list li {
        padding-left: 12px;
    }

    .experience-list li .role {
        font-size: 0.93rem;
    }

    .experience-list li .period {
        font-size: 0.82rem;
    }

    .awards-list li {
        font-size: 0.9rem;
    }

    /* --- Videos --- */
    .videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }

    .video-info {
        padding: 12px 14px;
    }

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

    .video-play-icon {
        width: 48px;
        height: 48px;
    }

    .video-play-icon svg {
        width: 20px;
        height: 20px;
    }

    /* --- Research --- */
    .project-card {
        padding: 16px 0;
    }

    .project-card h3 {
        font-size: 1rem;
    }

    .project-card-content {
        flex-direction: column;
        gap: 12px;
    }

    .project-image {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 16/10;
        border-radius: 8px;
    }

    .project-details p {
        font-size: 0.9rem;
    }

    .project-meta {
        gap: 6px;
    }

    .project-meta span {
        font-size: 0.78rem;
        padding: 2px 8px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* --- Students --- */
    /* Convert table to cards on mobile */
    .students-table {
        font-size: 0.88rem;
    }

    .students-table thead {
        display: none;
    }

    .students-table tbody,
    .students-table tr {
        display: block;
    }

    .students-table tr {
        padding: 14px 16px;
        margin-bottom: 10px;
        background: var(--bg-white);
        border-radius: 10px;
        border: 1px solid var(--border-light);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        transition: box-shadow var(--transition-fast);
    }

    .students-table tr:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    }

    .students-table tr:hover td {
        background: transparent;
    }

    .students-table td {
        display: block;
        padding: 2px 0;
        border-bottom: none;
        text-align: left;
    }

    .students-table .student-sr {
        display: none;
    }

    .students-table .student-name {
        font-size: 1rem;
        font-weight: 600;
        color: var(--accent-red);
        margin-bottom: 4px;
    }

    .students-table td:last-child {
        font-size: 0.82rem;
        color: var(--text-muted);
        font-weight: 500;
        margin-top: 6px;
        padding-top: 6px;
        border-top: 1px solid var(--border-light);
    }

    /* --- Publications --- */
    .pub-list li {
        padding: 10px 0 10px 32px;
        font-size: 0.86rem;
        line-height: 1.6;
    }

    .pub-list li::before {
        width: 28px;
        top: 10px;
        font-size: 0.82rem;
    }

    .pub-list .pub-link {
        font-size: 0.78rem;
        padding: 1px 6px;
    }

    /* --- Courses --- */
    .courses-list {
        gap: 12px;
    }

    .course-item {
        padding: 16px;
    }

    /* --- CV --- */
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .highlight-number {
        font-size: 1.5rem;
    }

    /* --- Lab --- */
    .lab-gallery {
        grid-template-columns: 1fr;
        gap: 16px;
    }

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

    .research-areas {
        grid-template-columns: 1fr;
    }

    /* --- FAQ --- */
    .faq-list {
        gap: 16px;
    }

    .faq-item {
        padding: 16px;
    }

    /* --- Links --- */
    .profile-card {
        flex-direction: column;
        text-align: center;
    }

    .profile-info h3 {
        font-size: 1rem;
    }

    .quick-links-grid {
        grid-template-columns: 1fr;
    }

    /* --- Contact --- */
    .contact-block dd {
        padding-left: 0;
        font-size: 0.9rem;
    }

    .contact-block dt {
        font-size: 0.9rem;
    }
}

/* ========== RESPONSIVE: SMALL MOBILE ========== */

@media (max-width: 480px) {
    .about-photo {
        width: 80px;
        height: 100px;
    }

    .cv-download-btn {
        font-size: 0.85rem;
        padding: 10px 16px;
    }

    .pub-list li {
        padding-left: 28px;
        font-size: 0.83rem;
    }

    .pub-list li::before {
        width: 24px;
        font-size: 0.78rem;
    }

    .experience-list li .role {
        font-size: 0.88rem;
    }

    .students-table tr {
        padding: 12px 12px;
    }

    .project-meta span {
        font-size: 0.75rem;
    }
}