/* =============================================
   PAGE STYLES — All 8 pages
   ============================================= */

/* ---- HERO SECTIONS ---- */
.page-hero {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f3ed;
    overflow: hidden;
    text-align: center;
    padding: 5rem var(--container-padding) 4rem;
    border-bottom: 1px solid #e8dfd4;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: none;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeInUp 0.6s ease;
}

.page-hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: clamp(1.0625rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

/* Homepage Hero — Special (full image bg) */
.home-hero {
    height: 600px;
    min-height: 600px;
    background: #f7f3ed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 1px solid #e8dfd4;
}

.home-hero .hero-bg {
    position: absolute;
    inset: 0;
}

.home-hero .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.08;
}

.home-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(247, 243, 237, 0.88);
}

.home-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    animation: fadeInUp 0.7s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.home-hero h1 {
    font-size: clamp(2.75rem, 6vw, 4.25rem);
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 1.25rem;
    line-height: 1.12;
    text-align: center;
    letter-spacing: -0.01em;
}

.home-hero .hero-subtitle {
    font-size: clamp(1.125rem, 2.2vw, 1.375rem);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 780px;
    margin: 0 auto 2rem;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(26, 86, 50, 0.08);
    border: 1px solid rgba(26, 86, 50, 0.2);
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.02em;
}

.hero-badge svg {
    width: 18px;
    height: 18px;
    stroke: var(--primary);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- STATS SECTION ---- */
.stats-section {
    background: #ffffff;
    padding: 3.5rem 0;
    border-bottom: 1px solid #e8dfd4;
    border-top: 1px solid #e8dfd4;
}

.stats-grid {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: var(--radius-lg);
    background: #ffffff;
    border: 1px solid #f0ebe4;
    transition: all var(--transition);
}

.stat-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 0.75rem;
    color: #ffffff;
    background: var(--primary);
    border-radius: var(--radius-lg);
}

.stat-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    font-weight: 600;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* ---- SECTION TITLES ---- */
.section {
    padding: 5rem 0;
}

.section-muted {
    background: #faf6f1;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 780px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---- RESEARCH CARDS (Homepage) ---- */
.research-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.research-card .card-image {
    height: 12rem;
}

.research-card .card-content {
    padding: 1.5rem;
}

.research-card .card-icon-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.research-card .card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: rgba(26, 86, 50, 0.08);
    color: var(--primary);
    flex-shrink: 0;
}

.research-card .card-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
}

.research-card h3 {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 700;
}

.research-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.0625rem;
}

/* ---- TEAM CARDS (Homepage) ---- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.team-card {
    text-align: center;
}

.team-card .card-image-container {
    aspect-ratio: 1;
}

.team-card .card-image {
    height: 100%;
}

.team-card .card-content {
    padding: 1.25rem;
}

.team-card h3 {
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.team-card .team-title {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.team-card .team-focus {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.team-card .btn {
    width: 100%;
    transition: all var(--transition);
}

.team-card:hover .btn {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

/* ---- PUBLICATION CARDS ---- */
.pub-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pub-card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    background: var(--background);
    transition: all var(--transition-slow);
}

.pub-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border);
}

.pub-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.pub-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pub-citation-count {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--background-muted);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.pub-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.pub-meta {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.pub-description {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.pub-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.pub-tag {
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    background: var(--background-muted);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    font-weight: 500;
}

.pub-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
}

.pub-doi {
    font-size: 0.8125rem;
    color: var(--accent);
    font-weight: 500;
}

.pub-actions {
    display: flex;
    gap: 0.5rem;
}

/* ---- TABS ---- */
.tabs-container {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 2rem;
    background: var(--background-muted);
    border-radius: var(--radius-lg);
    padding: 0.25rem;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.tab-btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius);
    transition: all var(--transition);
    font-family: var(--font-sans);
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    background: var(--background);
    color: var(--primary);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ---- ABOUT PAGE ---- */
.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.mv-card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    background: var(--background);
}

.mv-card .mv-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    background: var(--background-muted);
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.mv-card .mv-icon svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
}

.mv-card h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.mv-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.about-lab-section {
    background: var(--background);
    padding: 3.5rem 0;
}

.about-lab-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-lab-content p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.core-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.value-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: all var(--transition-slow);
}

.value-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.value-card .value-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: rgba(26, 86, 50, 0.08);
    color: var(--primary);
}

.value-card h4 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.value-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ---- TEAM PAGE ---- */
.researcher-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--background);
    margin-bottom: 2rem;
    transition: all var(--transition-slow);
}

.researcher-card:hover {
    box-shadow: var(--shadow-lg);
}

.researcher-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    align-self: start;
    border-radius: var(--radius-xl) 0 0 var(--radius-xl);
}

.researcher-info {
    padding: 2rem 2rem 2rem 0;
}

.researcher-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
}

.researcher-role {
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.375rem;
}

.researcher-focus {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.researcher-bio {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    text-align: justify;
}

.read-more-toggle {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    margin-bottom: 1.25rem;
    cursor: pointer;
    transition: color var(--transition);
}

.read-more-toggle:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.researcher-bio-full .researcher-bio {
    margin-top: 0;
    margin-bottom: 0;
    text-align: justify;
}

.researcher-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.researcher-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    font-size: 0.875rem;
}

.researcher-stat strong {
    font-weight: 700;
    color: var(--primary);
}

.scholar-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--primary);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: 0.5rem;
    transition: color var(--transition);
}

.scholar-link:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .researcher-card {
        grid-template-columns: 1fr;
    }

    .researcher-img {
        min-height: 240px;
    }

    .researcher-info {
        padding: 1.5rem;
    }
}

/* ---- RESEARCH PAGE ---- */
.research-detail-hero {
    position: relative;
    height: 400px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 2rem;
}

.research-detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.research-detail-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}

.research-detail-hero h3 {
    font-size: 1.75rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.research-detail-hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    max-width: 600px;
}

.project-card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    transition: all var(--transition);
}

.project-card:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.project-card h4 {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.0625rem;
    margin-bottom: 0.375rem;
}

.project-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ---- TEACHING PAGE ---- */
.philosophy-card {
    border-left: 4px solid var(--primary);
    background: var(--background);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-sm);
}

.philosophy-card h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.375rem;
    margin-bottom: 0.75rem;
}

.philosophy-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.course-card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    transition: all var(--transition-slow);
}

.course-card:hover {
    box-shadow: var(--shadow-md);
}

.course-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.course-card h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

.course-card .course-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.course-card .course-desc {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* ---- NEWS PAGE ---- */
.news-featured {
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid var(--border-light);
    transition: all var(--transition-slow);
}

.news-featured:hover {
    box-shadow: var(--shadow-lg);
}

.news-featured img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.news-featured .news-content {
    padding: 2rem;
}

.news-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.25rem;
    transition: all var(--transition-slow);
}

.news-item:hover {
    box-shadow: var(--shadow-md);
}

.news-item img {
    width: 100%;
    height: 100%;
    min-height: 160px;
    object-fit: cover;
}

.news-item-content {
    padding: 1.5rem 1.5rem 1.5rem 0;
}

.news-date {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.news-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.news-excerpt {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
}

.read-more:hover {
    color: var(--accent);
}

@media (max-width: 640px) {
    .news-item {
        grid-template-columns: 1fr;
    }

    .news-item img {
        height: 200px;
    }

    .news-item-content {
        padding: 1.25rem;
    }
}

/* ---- CONTACT PAGE ---- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-info-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.contact-info-card:hover {
    box-shadow: var(--shadow-sm);
}

.contact-info-card .info-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: rgba(26, 86, 50, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-card .info-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
}

.contact-info-card h4 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
}

.contact-info-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.contact-form-section {
    background: var(--background);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2rem;
}

.contact-form-section h3 {
    font-size: 1.375rem;
    margin-bottom: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--background);
    color: var(--text-primary);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 86, 50, 0.1);
}

.form-textarea {
    min-height: 140px;
    resize: vertical;
}

.form-submit {
    width: 100%;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .mission-vision-grid {
        grid-template-columns: 1fr;
    }

    .core-values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .research-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .core-values-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 1.75rem;
    }
}

/* Page transition */
.page-enter {
    animation: fadeInUp 0.4s ease forwards;
}