/* Extended Styles for Additional Pages */

/* Page Header */
.page-header {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-color: #fafaf8;
    color: #202020;
    padding: 110px 0 90px;
    text-align: center;
    margin-bottom: 30px;
    border-top: 1px solid rgba(0, 33, 71, 0.06);
    border-bottom: 1px solid rgba(0, 33, 71, 0.06);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.page-header::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(circle at 50% 50%, rgba(56, 138, 221, 0.10), transparent 70%);
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.page-header h1 {
    position: relative;
    z-index: 1;
    font-size: clamp(2.3rem, 4vw, 3.6rem);
    line-height: 1.08;
    margin-bottom: 14px;
    color: #111111;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.page-header p {
    position: relative;
    z-index: 1;
    font-size: 1.08rem;
    margin-bottom: 0;
    color: #454545;
    text-shadow: none;
    letter-spacing: 0.01em;
}

/* Cover Section */
.cover-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-color: #fafaf8;
    padding: 100px 0;
    color: #202020;
    text-align: center;
    border-top: 1px solid rgba(0, 33, 71, 0.06);
    border-bottom: 1px solid rgba(0, 33, 71, 0.06);
}

.cover-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.cover-section::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(circle at 50% 50%, rgba(56, 138, 221, 0.10), transparent 70%);
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    pointer-events: none;
}

.cover-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
        width: auto;
}

.cover-text {
    flex: 1;
    text-align: left;
}

.cover-text h1 {
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    line-height: 1.05;
    margin-bottom: 20px;
    color: #111111;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.cover-text p {
    font-size: 1.22rem;
    margin-bottom: 12px;
    color: #454545;
    text-shadow: none;
}

.cover-text .hero-typing {
    color: #111111;
}

.cover-text .hero-typing-prefix,
.cover-text .hero-typing-target,
.cover-text .hero-typing-cursor {
    color: #111111;
}

.cover-text .hero-typing-target {
    color: #0f2a4a;
}

.cover-buttons {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    margin-top: 30px;
}

.btn {
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.primary-btn {
    background-color: #002147;
    color: #ffffff;
    border: 2px solid #002147;
}

.primary-btn:hover {
    background-color: #0c3a6a;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 33, 71, 0.18);
}

.secondary-btn {
    background-color: transparent;
    color: #002147;
    border: 2px solid #002147;
}

.secondary-btn:hover {
    background-color: #002147;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 33, 71, 0.18);
}

.cover-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.cover-image img {
    width: 300px;
    height: 300px;
    /* Square shape with slightly rounded corners */
    border-radius: 15px;
    object-fit: cover;
    border: 5px solid #ffffff;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Shared section separator */
.section-divider {
    border-bottom-color: rgba(0, 33, 71, 0.12);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Research Timeline — Mind-Map Style (global copy) */
.timeline-section {
    padding: 40px 0;
}

.timeline-section h2 {
    color: var(--primary-color);
    margin-bottom: 8px;
}

.timeline-note {
    color: #666;
    margin-bottom: 18px;
}

.timeline-mindmap {
    position: relative;
    display: grid;
    gap: 22px;
    align-items: start;
    padding: 12px 0 30px 0;
}

.timeline-mindmap::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 10px;
    bottom: 10px;
    width: 3px;
    background: linear-gradient(180deg, rgba(0,0,0,0.06), rgba(0,0,0,0.02));
    transform: translateX(-50%);
    z-index: 1;
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    width: 100%;
    padding: 18px 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(250,251,255,0.85));
    border: 1px solid rgba(15, 23, 42, 0.04);
    box-shadow: 0 12px 30px rgba(12,18,30,0.06);
    backdrop-filter: blur(6px);
    z-index: 2;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(18px) scale(0.995);
    transition: opacity 0.7s cubic-bezier(.2,.9,.2,1), transform 0.7s cubic-bezier(.2,.9,.2,1), box-shadow 0.25s ease;
}

.timeline-item.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.timeline-item:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px rgba(12,18,30,0.12);
}

.timeline-item:nth-child(odd) {
    justify-self: start;
    margin-right: 40px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    justify-self: end;
    margin-left: 40px;
    text-align: left;
}

.timeline-item::before {
    content: "";
    position: absolute;
    top: 28px;
    width: 36px;
    height: 2px;
    background: linear-gradient(90deg, rgba(0,0,0,0.06), rgba(0,0,0,0.02));
    z-index: 1;
}

.timeline-item:nth-child(odd)::before {
    right: -36px;
}

.timeline-item:nth-child(even)::before {
    left: -36px;
}

.timeline-item::after {
    content: "";
    position: absolute;
    top: 19px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--secondary-color);
    box-shadow: 0 6px 18px rgba(38, 95, 255, 0.12);
    z-index: 3;
}

.timeline-item:nth-child(odd)::after {
    right: -9px;
    transform: translateX(50%);
}

.timeline-item:nth-child(even)::after {
    left: -9px;
    transform: translateX(-50%);
}

.timeline-year {
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--secondary-color), #2b6be6);
    color: white;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(43,107,230,0.12);
    flex: 0 0 auto;
}

.timeline-content h3 {
    margin: 0 0 6px 0;
    color: var(--dark-color);
    font-size: 1.05rem;
}

.timeline-content p {
    margin: 4px 0;
    color: #444;
    line-height: 1.6;
    font-size: 0.96rem;
}

@media (min-width: 1000px) {
    .timeline-mindmap {
        grid-template-columns: repeat(2, 1fr);
    }
}

.design-1 {
    --bg: #0c1626;
    --fg: #f2f0e6;
    --muted: #a9b2c4;
    --accent: #d3a94b;
    --accent2: #9db4e0;
    --card-bg: #101d33;
    --card-line: #1e2f4d;
    --line-color: #233757;
    --radius: 14px;
    --display-font: 'Playfair Display', serif;
    --body-font: 'Cormorant Garamond', serif;
    --mono-font: 'IBM Plex Mono', monospace;
    --shadow: 0 16px 40px rgba(0,0,0,.35);
    --dot-size: 14px;
    --display-weight: 700;
}

.timeline-section.design-1 {
    padding: clamp(56px,8vw,110px) 0;
    background: var(--bg-color, #f8f9fa);
    color: var(--text-color, #111111);
    font-family: var(--font-main, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif);
    --fg: var(--text-color, #111111);
    --muted: #6b7280;
    --card-bg: #ffffff;
    --card-line: #e5e7eb;
    --line-color: #d1d5db;
    --shadow: 0 10px 30px rgba(0,0,0,.08);
    /* Use blue accents to match Publications section */
    --accent: var(--secondary-color);
    --accent2: var(--secondary-color);
    --body-font: var(--font-main, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif);
    --display-font: 'Playfair Display', serif;
}

.timeline-section.design-1 h2 {
    font-family: var(--display-font);
    font-size: clamp(28px,4vw,40px);
    margin-top: 10px;
    color: var(--fg);
}

.timeline-section.design-1 .timeline-note {
    color: #576574;
    font-size: 1.05rem;
}

.timeline-section.design-1.tpl-A .head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto clamp(40px,6vw,80px);
    padding: 0 24px;
}

.timeline-section.design-1.tpl-A .head .tl-eyebrow {
    color: var(--accent);
}

.timeline-section.design-1.tpl-A .head h2 {
    font-family: var(--display-font);
    font-size: 2.3rem;
    margin-top: 10px;
    font-weight: var(--display-weight,700);
    color: var(--primary-color, #002147);
    letter-spacing: var(--display-tracking,-0.01em);
}

.timeline-section.design-1.tpl-A .head h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background: var(--accent);
    margin: 16px auto 0;
}

.timeline-section.design-1.tpl-A .spine {
    position: relative;
    max-width: 980px;
    margin: 0 auto;
    padding: 20px 0 30px;
}

.timeline-section.design-1.tpl-A .spine::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--line-color);
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-section.design-1.tpl-A .card {
    background: var(--card-bg);
    border: 1px solid var(--card-line);
    border-radius: var(--radius,14px);
    padding: 22px 24px;
    box-shadow: var(--shadow);
    max-width: 440px;
}

.timeline-section.design-1.tpl-A .card {
    border-left: 3px solid var(--accent);
}

.timeline-section.design-1.tpl-A .row:nth-child(odd) .card {
    margin-left: auto;
    text-align: left;
}

.timeline-section.design-1.tpl-A .row:nth-child(even) {
    direction: rtl;
}

.timeline-section.design-1.tpl-A .row:nth-child(even) .card,
.timeline-section.design-1.tpl-A .row:nth-child(even) .dotcol {
    direction: ltr;
}

.timeline-section.design-1.tpl-A .row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    align-items: start;
    margin-bottom: var(--gap, 10px);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.timeline-section.design-1.tpl-A .row .dotcol {
    display: flex;
    justify-content: center;
    padding-top: 6px;
    position: relative;
}

.timeline-section.design-1.tpl-A .row.in-view {
    opacity: 1;
    transform: translateY(0);
}

.timeline-section.design-1.tpl-A .dot {
    width: var(--dot-size,16px);
    height: var(--dot-size,16px);
    border-radius: var(--dot-radius,50%);
    background: var(--card-bg);
    border: 3px solid var(--accent);
    z-index: 2;
}

.timeline-section.design-1.tpl-A .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.timeline-section.design-1.tpl-A .step {
    font-family: var(--mono-font,inherit);
    font-size: 11px;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: .08em;
}

/* Make Step 1 and Step 2 labels black */
.timeline-section.design-1.tpl-A .row:nth-child(1) .step,
.timeline-section.design-1.tpl-A .row:nth-child(2) .step {
    color: #111111;
}

.timeline-section.design-1.tpl-A .date {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}

.timeline-section.design-1.tpl-A .card h3 {
    font-family: var(--display-font);
    font-size: 1.4rem;
    font-weight: var(--h3-weight,700);
    margin-bottom: 2px;
    color: var(--primary-color, #002147);
}

.timeline-section.design-1.tpl-A .card .org {
    font-size: 13px;
    color: var(--accent2,var(--accent));
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-section.design-1.tpl-A .card p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #666;
}

/* Tag badges for timeline cards */
.timeline-section.design-1.tpl-A .card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.timeline-section.design-1.tpl-A .card-tags .tag {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    background: #0f2a4a; /* deep navy blue for all tags */
    border: 1px solid rgba(0,33,71,0.12);
}
.timeline-section.design-1.tpl-A .card-tags .tag.academic { background: #0f2a4a !important; }
.timeline-section.design-1.tpl-A .card-tags .tag:where(.research, .leadership, .publication) { background: #0f2a4a !important; }
.timeline-section.design-1.tpl-A .card-tags .tag.leadership { background: #0f2a4a !important; }
.timeline-section.design-1.tpl-A .card-tags .tag.publication { background: #0f2a4a !important; }

.collapsible-content {
    max-height: 0; /* collapsed by default */
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.25s ease;
    padding-top: 0;
}
.collapsible-content.expanded {
    max-height: 2000px; /* large enough to show full content */
    padding-top: 8px;
}
.collapse-toggle {
    margin-top: 12px;
    display: inline-block;
    background: transparent;
    border: 0;
    color: var(--primary-color);
    font-weight: 700;
    cursor: pointer;
    padding: 6px 0;
}
.collapse-toggle:focus {
    outline: 2px dashed rgba(0,33,71,0.12);
    outline-offset: 4px;
}

/* Make timeline cards use the site's main font to match other sections */
.timeline-section.design-1.tpl-A .card,
.timeline-section.design-1.tpl-A .card p,
.timeline-section.design-1.tpl-A .card .org,
.timeline-section.design-1.tpl-A .card h3 {
    font-family: var(--font-main);
}

/* Make odd-side cards visually match the publication box (blue left border, softer shadow) */
.timeline-section.design-1.tpl-A .row:nth-child(odd) .card {
    border-left: 5px solid var(--secondary-color) !important;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08) !important;
    background: #ffffff !important;
}

/* Ensure card text colors align with publication styling */
.timeline-section.design-1.tpl-A .row:nth-child(odd) .card p,
.timeline-section.design-1.tpl-A .row:nth-child(odd) .card .org {
    color: #576574;
}

.timeline-section.design-1.tpl-A .row:nth-child(odd) .card {
    margin-left: auto;
}

.timeline-section.design-1.tpl-A .row:nth-child(even) .card {
    margin-right: auto;
}

.timeline-section.design-1.tpl-A .row:nth-child(odd) .card,
.timeline-section.design-1.tpl-A .row:nth-child(even) .card {
    text-align: left;
}

.timeline-section.design-1.tpl-A .row:nth-child(odd)::before,
.timeline-section.design-1.tpl-A .row:nth-child(even)::before {
    content: "";
    position: absolute;
    top: 30px;
    width: 36px;
    height: 2px;
    background: linear-gradient(90deg, rgba(0,33,71,.85), rgba(52,152,219,.4));
    z-index: 1;
}

.timeline-section.design-1.tpl-A .row:nth-child(odd)::before {
    right: -36px;
}

.timeline-section.design-1.tpl-A .row:nth-child(even)::before {
    left: -36px;
}

.timeline-section.design-1.tpl-A .row:nth-child(odd)::after,
.timeline-section.design-1.tpl-A .row:nth-child(even)::after {
    content: "";
    position: absolute;
    top: 22px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(0,33,71,.08);
    z-index: 3;
}

/* Enforce consistent blue palette across all timeline elements */
.timeline-section.design-1.tpl-A {
    color: var(--text-color);
}
.timeline-section.design-1.tpl-A .card {
    background: #ffffff !important;
    border-left: 5px solid var(--secondary-color) !important;
}
.timeline-section.design-1.tpl-A .card h3 {
    color: var(--primary-color) !important;
}
.timeline-section.design-1.tpl-A .card .org,
.timeline-section.design-1.tpl-A .card .date {
    color: var(--secondary-color) !important;
}
.timeline-section.design-1.tpl-A .meta .step {
    color: var(--primary-color) !important;
}
.timeline-section.design-1.tpl-A .dot {
    border-color: var(--secondary-color) !important;
}
.timeline-section.design-1.tpl-A .row:nth-child(odd)::before,
.timeline-section.design-1.tpl-A .row:nth-child(even)::before {
    background: linear-gradient(90deg, rgba(0,33,71,.85), rgba(52,152,219,.4)) !important;
}
.timeline-section.design-1.tpl-A .row:nth-child(odd)::after,
.timeline-section.design-1.tpl-A .row:nth-child(even)::after {
    background: var(--secondary-color) !important;
    box-shadow: 0 0 0 6px rgba(52,152,219,.12) !important;
}
.timeline-section.design-1.tpl-A .card p {
    color: #555 !important;
}
.collapse-toggle {
    color: var(--primary-color) !important;
}

.timeline-section.design-1.tpl-A .row:nth-child(odd)::after {
    right: -9px;
    transform: translateX(50%);
}

.timeline-section.design-1.tpl-A .row:nth-child(even)::after {
    left: -9px;
    transform: translateX(-50%);
}

@media (max-width: 999px) {
    .timeline-section.design-1.tpl-A .spine::before {
        left: 22px;
        transform: none;
    }
    .timeline-section.design-1.tpl-A .row {
        grid-template-columns: 44px 1fr;
    }
    .timeline-section.design-1.tpl-A .row .dotcol {
        grid-column: 1;
        padding-top: 4px;
    }
    .timeline-section.design-1.tpl-A .card {
        grid-column: 2;
        max-width: none;
        margin-left: 0 !important;
    }
    .timeline-section.design-1.tpl-A .row:nth-child(even) {
        direction: ltr;
    }
}

@media (max-width: 999px) {
    .design-1 .timeline-mindmap::before {
        left: 22px;
        transform: none;
    }

    .design-1 .timeline-item {
        width: 100%;
        margin: 0 0 14px 30px;
        text-align: left;
    }

    .design-1 .timeline-item:nth-child(odd),
    .design-1 .timeline-item:nth-child(even) {
        justify-self: start;
        margin: 0;
    }

    .design-1 .timeline-item::before {
        left: -36px;
        right: auto;
        top: 26px;
    }

    .design-1 .timeline-item::after {
        left: -18px;
        transform: none;
    }
}

/* About Page */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

.about-text h2 {
    color: var(--primary-color);
    margin-top: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.about-text h2 i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.about-text h3 {
    color: var(--dark-color);
    margin: 20px 0 10px 0;
}

.education-item, .experience-item, .certificate-item {
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--bg-color);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.education-item:hover, .experience-item:hover, .certificate-item:hover, .sidebar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.education-item h3, .experience-item h3, .certificate-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.education-item h4, .experience-item h4 {
    color: var(--secondary-color);
    margin: 10px 0;
}

.certificate-link {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 15px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.certificate-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.skills-section h3 {
    color: var(--primary-color);
    margin: 20px 0 10px 0;
}

.skills-list {
    columns: 2;
    column-gap: 30px;
    margin-bottom: 20px;
}

.skills-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #ddd;
    break-inside: avoid;
}

.skills-list li:before {
    content: "▶";
    color: var(--secondary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.sidebar-card {
    background-color: var(--bg-color);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.sidebar-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.sidebar-card h3 i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.quick-facts li, .interests-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #ddd;
}

.quick-facts li:last-child, .interests-list li:last-child {
    border-bottom: none;
}

.quick-facts li i, .interests-list li i {
    color: var(--secondary-color);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Research Page */
.research-figure {
    margin: 20px 0;
    text-align: center;
}

/* Connection section modern layout */
.connection-section .connect-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}
.connection-section .contact-card {
    background: #ffffff;
    border: 1px solid rgba(0,33,71,0.06);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.connection-section .contact-card p {
    color: #444;
    line-height: 1.6;
}
.connection-section .contact-card .primary-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.connection-section .social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.connection-section .social-grid .social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 10px;
    background: linear-gradient(180deg, #f8fbff 0%, #f3f7fb 100%);
    border-radius: 10px;
    border: 1px solid rgba(0,33,71,0.06);
    color: var(--primary-color);
}
.connection-section .social-grid .social-link i {
    font-size: 20px;
    color: var(--primary-color);
}
.connection-section .social-grid .social-link span {
    font-size: 0.9rem;
    color: #223;
}

@media (max-width: 900px) {
    .connection-section .connect-grid {
        grid-template-columns: 1fr;
    }
    .connection-section .social-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Generic interactive card styles */
.interactive-card {
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
    will-change: transform, box-shadow;
    cursor: pointer;
    border-radius: 10px;
}
.interactive-card:hover,
.interactive-card.hovered {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 18px 36px rgba(4,30,66,0.08);
}
.interactive-card:focus {
    outline: none;
}
.interactive-card:focus-visible {
    box-shadow: 0 0 0 4px rgba(15,42,74,0.12);
}

.interactive-summary {}
.interactive-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 260ms ease, opacity 220ms ease;
    opacity: 0;
}
.interactive-card.is-expanded .interactive-details {
    max-height: 800px;
    opacity: 1;
}

.interactive-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
}
.interactive-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(15,42,74,0.12);
}

/* Small helper for accessibility-visible focus on interactive links inside cards */
.interactive-card a:focus-visible {
    outline: 3px solid rgba(15,42,74,0.12);
    outline-offset: 2px;
}

.research-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.research-figure p {
    font-style: italic;
    color: #666;
    margin: 0;
}

.research-overview {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.research-overview h2, .research-areas h2, .research-projects h2, .research-methods h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.research-overview h2 i, .research-areas h2 i, .research-projects h2 i, .research-methods h2 i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.research-areas-sequential {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 30px 0;
}

.research-area-box {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--secondary-color);
    text-align: justify;
}

.research-area-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.research-area-box h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-color);
    text-align: center;
}

.research-area-box h3 i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.research-area-box p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.research-area-box p strong {
    color: var(--primary-color);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.project-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 0.9rem;
}

.status {
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.lab {
    background-color: var(--light-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.method-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.method-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.method-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.method-card ul {
    text-align: left;
    margin-top: 20px;
}

.method-card li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.method-card li:before {
    content: "▶";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    top: 0;
}

/* Publications Page */
.publications-intro {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    text-align: justify;
}

.publications-intro h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.publications-intro h2 i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.publications-intro p {
    line-height: 1.7;
    margin-bottom: 15px;
}

.publication-status-box, .research-focus-box, .future-work-box {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border-left: 4px solid var(--secondary-color);
    text-align: justify;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.publication-status-box:hover, .research-focus-box:hover, .future-work-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.publication-status-box h3, .research-focus-box h3, .future-work-box h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-color);
}

.publication-status-box h3 i, .research-focus-box h3 i, .future-work-box h3 i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.publication-status-box p, .research-focus-box p, .future-work-box p {
    line-height: 1.7;
    margin-bottom: 15px;
}

.focus-area {
    margin: 25px 0;
    padding: 20px;
    background-color: var(--bg-color);
    border-radius: 10px;
}

.focus-area h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.focus-area h4 i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.focus-area p {
    line-height: 1.7;
    margin-bottom: 0;
}

/* Professional Publication Item */
.publication-item {
    background-color: white;
    padding: 35px;
    margin-bottom: 35px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.publication-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-left-color: var(--primary-color);
}

.publication-header h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.4;
    font-weight: 600;
}

.publication-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.publication-authors {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
}

.publication-author {
    display: inline-block;
}

.publication-author.corresponding strong {
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
}

.publication-author.corresponding strong::after {
    content: '*';
    position: absolute;
    top: -5px;
    right: -12px;
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.author-et-al {
    font-style: italic;
    color: #777;
}

.publication-journal {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.journal-name {
    font-style: italic;
    color: var(--primary-color);
    font-weight: 500;
}

.journal-publisher {
    color: #666;
    font-size: 0.95rem;
}

.publication-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    align-items: center;
}

.publication-date,
.publication-doi {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.95rem;
}

.publication-date i,
.publication-doi i {
    color: var(--secondary-color);
    width: 18px;
}

.publication-doi a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.publication-doi a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.publication-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    padding-top: 10px;
}

.pdf-link,
.article-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #f8f9fa;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.pdf-link:hover,
.article-link:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pdf-link i,
.article-link i {
    font-size: 1rem;
}

/* Advisor Page */
.advisor-intro {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    text-align: justify;
}

.advisor-intro h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.advisor-intro h2 i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.advisor-intro p {
    line-height: 1.7;
    margin-bottom: 15px;
}

.teaching-intro {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    text-align: justify;
}

.teaching-intro h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.teaching-intro h2 i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.teaching-intro p {
    line-height: 1.7;
    margin-bottom: 15px;
}

.teaching-single-box {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.teaching-header-full {
    text-align: left;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--secondary-color);
}

.teaching-header-full h2 {
    color: var(--primary-color);
    margin: 0 0 10px 0;
    text-align: left;
}

.teaching-header-full p {
    margin: 5px 0;
    text-align: left;
}

.teaching-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.teaching-media {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.teaching-media img {
    width: 320px;
    height: 320px;
    border-radius: 0;
    object-fit: cover;
    border: 3px solid var(--light-color);
    object-position: center;
}

.syllabus-download {
    margin-top: 15px;
    text-align: center;
    width: 100%;
}

.download-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    font-size: 0.9rem;
}

.download-btn:hover {
    background-color: #1a4b8c;
    color: white;
}

.teaching-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.teaching-details p {
    line-height: 1.6;
    margin-bottom: 12px;
    text-align: justify;
}

.teaching-box {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    width: 100%;
}

.teaching-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.teaching-item {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.teaching-photo {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.teaching-photo img {
    width: 320px;
    height: 320px;
    border-radius: 0;
    object-fit: cover;
    border: 3px solid var(--light-color);
    object-position: center;
}

.teaching-info {
    flex: 1;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.teaching-info p {
    line-height: 1.6;
    margin-bottom: 12px;
    text-align: justify;
}

.teaching-photo {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.teaching-photo h3 {
    color: var(--primary-color);
    margin: 0 0 5px 0;
    text-align: center;
    font-size: 1.1rem;
}

.teaching-position-small {
    font-size: 0.9rem;
    margin: 0;
    text-align: center;
}

.teaching-platform-small {
    font-size: 0.9rem;
    margin: 0 0 10px 0;
    text-align: center;
}

.syllabus-download {
    margin-top: 15px;
    text-align: center;
    width: 100%;
}

.download-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    font-size: 0.9rem;
}

.download-btn:hover {
    background-color: #1a4b8c;
    color: white;
}

.teaching-header {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.teaching-header h2 {
    color: var(--primary-color);
    margin: 0 0 10px 0;
    text-align: left;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.teaching-position {
    font-size: 1.1em;
    margin: 5px 0;
    text-align: left;
}

.teaching-platform {
    font-size: 1.1em;
    margin: 5px 0;
    text-align: left;
}

/* Responsive design for teaching section */
@media (max-width: 768px) {
    .teaching-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .teaching-media img {
        width: 250px;
        height: 250px;
    }
    
    .teaching-details {
        width: 100%;
    }
    
    .teaching-header-full {
        text-align: left;
    }
}

.advisors-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.advisor-item {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 30px;
}

.advisor-photo img {
    width: 150px;
    height: 150px;
    min-width: 150px;
    min-height: 150px;
    border-radius: 16px;
    object-fit: cover;
    border: 3px solid var(--light-color);
    object-position: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.teaching-photo img {
    width: 200px;
    height: 200px;
    border-radius: 0;
    object-fit: cover;
    border: 3px solid var(--light-color);
    object-position: center;
}

.advisor-info h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
}

.advisor-info p {
    line-height: 1.7;
    text-align: justify;
}

.advisor-role {
    font-weight: 600;
    color: #334155;
    margin-bottom: 10px;
}

.advisor-bio {
    margin-bottom: 14px;
    color: #475569;
}

.advisor-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.advisor-link-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.advisor-link-item:hover {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    transform: translateY(-1px);
}

.advisor-link-item i {
    color: inherit;
}

.advisor-impact {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin: 40px 0;
    border-left: 4px solid var(--secondary-color);
    text-align: justify;
}

.advisor-impact h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.advisor-impact h2 i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.advisor-impact p {
    line-height: 1.7;
    margin-bottom: 15px;
}

/* Protocols Page */
.protocols-intro {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    text-align: justify;
}

.protocols-intro h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.protocols-intro h2 i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.protocols-intro p {
    line-height: 1.7;
    margin-bottom: 15px;
}

.protocol-categories {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.protocol-categories h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.protocol-categories h3 i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.research-categories {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.research-categories h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.research-categories h3 i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.category-btn {
    padding: 12px 25px;
    background-color: var(--bg-color);
    border: 1px solid #ddd;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.category-btn:hover, .category-btn.active {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.protocols-list {
    margin: 40px 0;
}

.protocol-item {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border-left: 4px solid var(--secondary-color);
}

.protocol-header {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-color);
    flex-wrap: wrap;
}

.protocol-header h3 {
    color: var(--primary-color);
    margin-bottom: 0;
    flex: none;
    text-align: center;
}

.protocol-header h3 i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.protocol-meta {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.date, .difficulty {
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 20px;
    margin-bottom: 5px;
}

.date {
    background-color: var(--bg-color);
}

.difficulty {
    background-color: var(--secondary-color);
    color: white;
    font-weight: 600;
}

.protocol-summary h4 {
    color: var(--primary-color);
    margin: 20px 0 10px 0;
}

.protocol-summary h5 {
    color: var(--dark-color);
    margin: 15px 0 10px 0;
}

.protocol-summary p {
    line-height: 1.7;
    margin-bottom: 15px;
    text-align: justify;
}

.protocol-summary ol, .protocol-summary ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.protocol-summary li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.protocol-summary table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.protocol-summary th, .protocol-summary td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.protocol-summary th {
    background-color: var(--bg-color);
    font-weight: 600;
}

.protocol-request {
    position: relative;
    overflow: hidden;
    background-color: #14161a;
    color: #f5f7fb;
    padding: 50px;
    border-radius: 10px;
    text-align: center;
    margin: 50px 0;
    box-shadow: 0 12px 30px rgba(12, 18, 30, 0.18);
}

.protocol-request::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.8;
    pointer-events: none;
}

.protocol-request::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(127, 119, 221, 0.18) 0%, transparent 45%),
        linear-gradient(245deg, rgba(56, 138, 221, 0.14) 0%, transparent 45%);
    pointer-events: none;
}

.protocol-request h2,
.protocol-request p,
.protocol-request a,
.protocol-request .btn {
    position: relative;
    z-index: 1;
}

.protocol-request h2 {
    color: #ffffff;
    margin-bottom: 20px;
}

.protocol-request h2 i {
    margin-right: 10px;
}

.protocol-request .btn {
    background-color: #ffffff;
    color: #14161a;
    border: none;
    margin-top: 20px;
}

.protocol-request .btn:hover {
    background-color: #dfe6ff;
    color: #14161a;
}

/* Resources Page */
.resources-layout {
    display: flex;
    gap: 30px;
    margin: 40px 0;
    flex-direction: row-reverse; /* This puts the sidebar on the right */
}

.sidebar {
    flex: 0 0 250px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    align-self: flex-start;
    position: sticky;
    top: 100px; /* Align with the resources-intro section */
}

.sidebar-content h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.sidebar-content h3 i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.sidebar-filters {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-category-btn {
    padding: 12px 15px;
    background-color: var(--bg-color);
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-align: left;
}

.sidebar-category-btn:hover, .sidebar-category-btn.active {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.main-content {
    flex: 1;
}

/* Responsive adjustments for resources page */
@media screen and (max-width: 768px) {
    .resources-layout {
        flex-direction: column;
    }
    
    .sidebar {
        flex: none;
        position: static;
    }
}

.resources-intro {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    text-align: left;
}

.resources-intro h2 {
    color: var(--primary-color);
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
    display: block;
    align-items: center;
    gap: 10px;
}

.resources-intro h2 i {
    color: var(--secondary-color);
}

.resources-intro p {
    line-height: 1.7;
    margin: 0;
    max-width: 860px;
}

.resources-categories {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.resources-categories h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.resources-categories h2 i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.category-btn {
    padding: 12px 25px;
    background-color: var(--bg-color);
    border: 1px solid #ddd;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.category-btn:hover, .category-btn.active {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.resources-list {
    margin: 40px 0;
}

.resources-intro {
    text-align: left;
    margin-bottom: 26px;
}

.resource-item h3 {
    position: relative;
    display: block;
    width: 100%;
    padding: 0 48px 20px;
    margin: 0 auto 20px auto;
    text-align: center;
    color: var(--primary-color);
    border-bottom: 1px solid var(--light-color);
}

.resource-item h3 i:first-child {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 0;
}

.resource-item {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border-left: 4px solid var(--secondary-color);
}

.resource-item h3 i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.resource-item h3 .toggle-icon {
    margin-left: 8px;
    cursor: pointer;
    transition: transform 180ms ease;
}

.resource-item h3 .toggle-icon:hover {
    transform: translateY(-1px);
}

.resource-item h4 {
    color: var(--primary-color);
    margin: 20px 0 10px 0;
}

.resource-item h5 {
    color: var(--dark-color);
    margin: 15px 0 10px 0;
}

.resource-details .tool-item {
    background-color: var(--bg-color);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.resource-details .tool-item:last-child {
    margin-bottom: 0;
}

.resource-details .tool-item h4, .resource-details .tool-item h5 {
    margin-top: 0;
}

.resource-details p {
    line-height: 1.7;
    margin-bottom: 15px;
    text-align: justify;
}

.resource-link {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.resource-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Gallery Page */
.gallery-intro {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    text-align: justify;
}

.gallery-intro h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.gallery-intro h2 i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.gallery-intro p {
    line-height: 1.7;
    margin-bottom: 15px;
}



.gallery-grid-wrapper {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin: 40px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 250px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item.expanded {
    grid-column: span 2;
    grid-row: span 2;
    height: 500px;
}

.gallery-info {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin: 40px 0;
    border-left: 4px solid var(--secondary-color);
    text-align: justify;
}

.gallery-info h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.gallery-info h2 i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.gallery-info p {
    line-height: 1.7;
    margin-bottom: 15px;
}

.gallery-info h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin: 50px 0;
}

.contact-info h2, .contact-form h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form h2 {
    margin-top: 0;
}

.contact-details {
    margin: 30px 0;
}

.contact-item {
    display: flex;
    margin-bottom: 30px;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 20px;
    min-width: 30px;
    margin-top: 5px;
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.social-links-large {
    margin-top: 40px;
    padding: 20px 0;
}

.social-links-large h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--bg-color);
    border-radius: 50%;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-5px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.contact-map {
    margin: 50px 0;
}

.contact-map h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.map-placeholder {
    background-color: var(--bg-color);
    height: 300px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Protocol Steps */
.step {
    background-color: var(--bg-color);
    padding: 15px;
    margin: 15px 0;
    border-left: 4px solid var(--secondary-color);
    border-radius: 0 5px 5px 0;
    transition: all 0.3s ease;
}

.step:hover {
    background-color: #e9ecef;
    transform: translateX(5px);
}

.step strong {
    color: var(--primary-color);
}

/* Protocol Heading */
.protocol-header h3 {
    position: relative;
    display: block;
    width: 100%;
    padding: 0 12px;
    text-align: center;
}

.protocol-header h3 i:first-child {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 0;
}

.protocol-header h3 .expand-icon {
    display: none;
}

.protocol-header h3:hover {
    background-color: transparent;
}

/* Protocol References */
.protocol-summary h6 {
    color: var(--primary-color);
    margin: 20px 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--light-color);
}

.protocol-summary a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.protocol-summary a:hover {
    color: var(--primary-color);
}

/* Protocol Note */
.note {
    background-color: #e3f2fd;
    border-left: 4px solid var(--secondary-color);
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 5px 5px 0;
}

.note strong {
    color: var(--primary-color);
}

/* Resources Controls */
.resources-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 30px 0;
    gap: 20px;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 12px 20px 12px 40px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

.control-buttons {
    display: flex;
    gap: 10px;
}

.control-buttons .btn {
    padding: 10px 15px;
    font-size: 0.9rem;
}

/* Tool Item Interactivity */
.tool-item {
    transition: all 0.3s ease;
    position: relative;
}

.tool-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 5px;
    z-index: 1000;
    flex-direction: column;
}

.dropdown:hover .dropdown-menu {
    display: flex;
}

.dropdown-menu .category-btn {
    border-radius: 0;
    text-align: left;
    width: 100%;
    margin: 0;
    border: none;
    border-bottom: 1px solid #eee;
}

.dropdown-menu .category-btn:last-child {
    border-bottom: none;
    border-radius: 0 0 5px 5px;
}

.dropdown-menu .category-btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Synchronization Protocol */

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    /* Cover Section - Mobile */
    .cover-section {
        padding: 120px 0 100px 0;
        height: auto;
    }
    
    .cover-content {
        flex-direction: column;
        gap: 30px;
        padding: 0 15px;
        align-items: center;
    }
    
    .cover-text {
        text-align: center;
    }
    
    .cover-text h1 {
        font-size: 2.5rem;
    }
    
    .cover-text p {
        font-size: 1.2rem;
    }
    
    .cover-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cover-image {
        justify-content: center;
        display: flex;
        width: 100%;
    }
    
    .cover-image img {
        width: 200px;
        height: 200px;
    }
    
    /* Advisor Section - Mobile */
    .advisor-item {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .advisor-photo img {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }
    
    .about-grid,
    .advisor-profile,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin: 30px 0;
    }
    
    .project-grid,
    .methods-grid,
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .protocol-header,
    .publication-header {
        flex-direction: column;
    }
    
    .protocol-meta,
    .pub-type {
        text-align: left;
        margin: 15px 0 0 0;
    }
    
    /* Research Timeline — Mind-Map Style */
    .timeline-section {
        padding: 40px 0;
    }

    .timeline-section h2 {
        color: var(--primary-color);
        margin-bottom: 8px;
    }

    .timeline-note {
        color: #666;
        margin-bottom: 18px;
    }

    .timeline-mindmap {
        position: relative;
        display: grid;
        gap: 22px;
        align-items: start;
        padding: 12px 0 30px 0;
    }

    /* central spine */
    .timeline-mindmap::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 10px;
        bottom: 10px;
        width: 3px;
        background: linear-gradient(180deg, rgba(0,0,0,0.06), rgba(0,0,0,0.02));
        transform: translateX(-50%);
        z-index: 1;
        border-radius: 2px;
    }

    .timeline-item {
        position: relative;
        width: 100%;
        padding: 18px 20px;
        border-radius: 14px;
        background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(250,251,255,0.85));
        border: 1px solid rgba(15, 23, 42, 0.04);
        box-shadow: 0 12px 30px rgba(12,18,30,0.06);
        backdrop-filter: blur(6px);
        z-index: 2;
        display: flex;
        gap: 14px;
        align-items: flex-start;
        opacity: 0;
        transform: translateY(18px) scale(0.995);
        transition: opacity 0.7s cubic-bezier(.2,.9,.2,1), transform 0.7s cubic-bezier(.2,.9,.2,1), box-shadow 0.25s ease;
    }

    .timeline-item.in-view {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    .timeline-item:hover {
        transform: translateY(-8px) scale(1.01);
        box-shadow: 0 20px 40px rgba(12,18,30,0.12);
    }

    /* alternate sides */
    .timeline-item:nth-child(odd) {
        justify-self: start;
        margin-right: 40px;
        text-align: right;
    }

    .timeline-item:nth-child(even) {
        justify-self: end;
        margin-left: 40px;
        text-align: left;
    }

    /* connector to spine */
    .timeline-item::before {
        content: "";
        position: absolute;
        top: 28px;
        width: 36px;
        height: 2px;
        background: linear-gradient(90deg, rgba(0,0,0,0.06), rgba(0,0,0,0.02));
        z-index: 1;
    }

    .timeline-item:nth-child(odd)::before {
        right: -36px;
    }

    .timeline-item:nth-child(even)::before {
        left: -36px;
    }

    /* dot at spine */
    .timeline-item::after {
        content: "";
        position: absolute;
        top: 19px;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: var(--secondary-color);
        box-shadow: 0 6px 18px rgba(38, 95, 255, 0.12);
        z-index: 3;
    }

    .timeline-item:nth-child(odd)::after {
        right: -9px;
        transform: translateX(50%);
    }

    .timeline-item:nth-child(even)::after {
        left: -9px;
        transform: translateX(-50%);
    }

    .timeline-year {
        min-width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(180deg, var(--secondary-color), #2b6be6);
        color: white;
        border-radius: 10px;
        font-weight: 700;
        box-shadow: 0 6px 18px rgba(43,107,230,0.12);
        flex: 0 0 auto;
    }

    .timeline-content h3 {
        margin: 0 0 6px 0;
        color: var(--dark-color);
        font-size: 1.05rem;
    }

    .timeline-content p {
        margin: 4px 0;
        color: #444;
        line-height: 1.6;
        font-size: 0.96rem;
    }

    @media (min-width: 1000px) {
        .timeline-mindmap {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 999px) {
        .timeline-item,
        .timeline-mindmap::before {
            width: 100%;
        }

        .timeline-mindmap::before {
            left: 8px;
            transform: none;
            width: 3px;
        }

        .timeline-item {
            width: 100%;
            margin: 0 0 14px 30px;
            text-align: left;
        }

        .timeline-item::before {
            left: -36px;
            right: auto;
            top: 26px;
        }

        .timeline-item::after {
            left: -18px;
            transform: none;
        }
    }
    
    .protocol-actions,
    .publication-links {
        flex-direction: column;
    }
    
    .research-interests {
        columns: 1;
    }
    
    .tools-list,
    .learning-resources {
        grid-template-columns: 1fr;
    }
    
    .gallery-item.expanded {
        grid-column: span 1;
        grid-row: span 1;
        height: 250px;
    }
    
    /* Contact Page Mobile Improvements */
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .contact-item i {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .social-links-large h3 {
        margin-bottom: 20px;
    }
    
    .social-icons {
        flex-wrap: wrap;
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    /* Reduce hover effect on mobile for better touch experience */
    .social-icon:hover {
        transform: translateY(-2px);
    }
}

/* Mobile SE and smaller screens */
@media screen and (max-width: 480px) {
    /* Cover Section - Small Mobile */
    .cover-section {
        padding: 90px 0 50px 0;
        height: auto;
    }
    
    .cover-image {
        justify-content: center;
        display: flex;
        width: 100%;
    }
    
    .cover-content {
        gap: 20px;
        padding: 0 10px;
        align-items: center;
    }
    
    .cover-text h1 {
        font-size: 2rem;
    }
    
    .cover-text p {
        font-size: 1rem;
    }
    
    .cover-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .cover-image img {
        width: 150px;
        height: 150px;
        border: 3px solid #ddd;
    }
    
    /* Advisor Section - Small Mobile */
    .advisor-item {
        padding: 20px;
    }
    
    .advisor-photo img {
        width: 100px;
        height: 100px;
    }
    
    .advisor-info h3 {
        font-size: 1.2rem;
    }
    
    .advisor-info p {
        font-size: 0.95rem;
    }
    
    /* Page Header - Small Mobile */
    .page-header {
        padding: 60px 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    /* Contact Page - Small Mobile Improvements */
    .contact-grid {
        gap: 20px;
        margin: 20px 0;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .social-icons {
        gap: 12px;
        flex-wrap: wrap;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}



/* Highlight effect for interactive elements */
.highlight-hover {
    transition: all 0.3s ease;
    cursor: pointer;
}

.highlight-hover:hover {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2px 4px;
    border-radius: 4px;
    color: #007bff;
}
