/* ============================================================
   Custom Styles — Academic Premium Redesign
   ============================================================ */


/* ---------- 1. Combined Hero + About Section ---------- */
.hero-about {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: 3rem;
}

.hero-about .container {
    position: relative;
    z-index: 2;
}

.hero-name {
    font-family: inherit;
    font-size: 4rem;
    font-weight: 700;
    color: #1a1e2c;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-family: inherit;
    font-size: 1.4rem;
    font-weight: 400;
    color: #666;
    margin-bottom: 1.75rem;
}

.hero-bio {
    color: #444;
    font-size: 1.125rem;
    line-height: 1.5;
    margin-bottom: 1.75rem;
}

.hero-bio a {
    color: #1a1e2c;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.15);
    transition: border-color 0.2s;
}

.hero-bio a:hover {
    border-color: #e77500;
    color: #1a1e2c;
    text-decoration: none;
}

/* Icon Dock */
.icon-dock {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.75rem;
}

.icon-dock a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: #e8e9eb;
    color: #555;
    font-size: 1.2rem;
    transition: all 0.25s ease;
    text-decoration: none;
}

.icon-dock a:hover {
    transform: translateY(-3px);
    background: #1a1e2c;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-decoration: none;
}

/* CTA Buttons */
.hero-cta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
}

.hero-btn-primary {
    background: #c00000;
    color: #fff;
    border: 2px solid #c00000;
}

.hero-btn-primary:hover {
    background: #a00000;
    border-color: #a00000;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(192,0,0,0.3);
}

.hero-btn-outline {
    background: transparent;
    color: #1a1e2c;
    border: 2px solid rgba(0,0,0,0.2);
}

.hero-btn-outline:hover {
    border-color: #1a1e2c;
    color: #1a1e2c;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Avatar */
.hero-avatar-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.hero-avatar {
    width: 100%;
    max-width: 300px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    object-fit: cover;
    aspect-ratio: 1;
}

/* Scroll hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll-hint a {
    color: rgba(0,0,0,0.25);
    transition: color 0.3s;
}

.hero-scroll-hint a:hover {
    color: rgba(0,0,0,0.5);
    text-decoration: none;
}

@media (max-width: 768px) {
    .hero-about { min-height: auto; padding-top: 100px; padding-bottom: 2rem; }
    .hero-name { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-avatar { max-width: 200px; margin-bottom: 2rem; }
    .hero-scroll-hint { display: none; }
}

/* ---------- 2. News Section ---------- */
/* Match news links to hero-bio link style */
.zmdi-hc-ul a {
    color: #1a1e2c;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.15);
    transition: border-color 0.2s;
}

.zmdi-hc-ul a:hover {
    border-color: #e77500;
    color: #1a1e2c;
    text-decoration: none;
}
.news-scroll-container {
    max-height: 420px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.news-scroll-container::-webkit-scrollbar {
    width: 4px;
}

.news-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.news-scroll-container::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 4px;
}

.news-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.news-item {
    display: flex;
    gap: 0.85rem;
    padding: 0.6rem 0;
    align-items: flex-start;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.6;
}

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

.news-date-tag {
    display: inline-block;
    min-width: 72px;
    padding: 0.2rem 0.55rem;
    background: #1a1e2c;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    font-family: 'Inter', 'Roboto', monospace;
    border-radius: 4px;
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 3px;
}

.news-pinned .news-date-tag {
    background: #e77500;
}

.news-text {
    flex: 1;
    font-size: 0.92rem;
    color: #444;
}

.news-text a {
    color: #1a1e2c;
    font-weight: 500;
}

/* ---------- 3. Projects — Card with Teaser ---------- */
.project-card {
    display: flex;
    gap: 1.75rem;
    padding: 1.75rem 0;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
}

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

.project-teaser {
    flex-shrink: 0;
    width: 260px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.project-teaser img,
.project-teaser video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.project-card:hover .project-teaser img,
.project-card:hover .project-teaser video {
    transform: scale(1.03);
}

.project-info {
    flex: 1;
}

.project-info h4 {
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-info h4 a {
    color: #1a1e2c;
    text-decoration: none;
    transition: color 0.2s;
}

.project-info h4 a:hover {
    color: #e77500;
}

.project-desc {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.project-badge {
    display: inline-block;
    padding: 0.28rem 0.7rem;
    background: #eef1f5;
    color: #444;
    font-size: 0.76rem;
    font-weight: 500;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.project-badge:hover {
    background: #1a1e2c;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .project-card {
        flex-direction: column;
    }
    .project-teaser {
        width: 100%;
    }
}

/* ---------- 4. Zebra Striping ---------- */
.section-white {
    background-color: #fff;
}

.section-light {
    background-color: #f8f9fa;
}

/* ---------- 5. Card hover in Explore ---------- */
.card-info {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-info:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
