*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, button, input, textarea {
    font-family: 'Inter', sans-serif;
}

:root {
    --bg-light: #ffffff;
    --bg-alt: #f8f9fa;
    --card-bg: #ffffff;
    --card-border: #e5e7eb;
    --text-main: #111827;
    --text-muted: #6b7280;
    --accent: #800020;         
    --accent-hover: #600018;   
    --transition: all 0.3s ease;
    --bg: #fafafa;
    --surface: #ffffff;
    --text-light: #999999;
    --border: #eaeaea;
    --radius: 8px;
    --bg-main: #ffffff; /* Solid white background variable for header */
}

html {
    height: 100%;
    overflow-y: auto;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Home Page Viewport Lock (Desktop Only) */
body.home-page {
    height: 100vh;
    height: 100dvh;
    margin: 0;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
}

body.home-page .site-header {
    width: 100%;
    background: var(--bg-main) !important;
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-shrink: 0;
}

body.home-page .main-content {
    flex: 1;
    width: 100%;
    overflow: hidden !important;
    position: relative;
    height: auto;
}

body.home-page .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/header_img.png') no-repeat center center/cover;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;     
    justify-content: center; 
}

body.home-page .hero-inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 2.5rem 1.5rem; 
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transform: translateY(-12px); 
}

/* Solid Fill Navigation Header */
.site-header {
    width: 100%;
    background-color: var(--bg-main) !important; /* Force solid fill */
    background: var(--bg-main) !important;
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-shrink: 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap; 
    background-color: var(--bg-main); /* Ensure container has solid background */
}

.brand-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0; 
}

.site-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}

.company-details {
    display: flex;
    flex-direction: column;
    min-width: 0; 
}

.company-details h1 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; 
}

.company-details span {
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--accent);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

/* General / Sub-pages Main Content (Prevents bottom-sticking and adds breathing room) */
.main-content {
    width: 100%;
}

body:not(.home-page) .main-content {
    min-height: calc(100vh - 70px);
    height: auto;
    padding-bottom: 5rem; /* Generous bottom padding so content never sticks to the footer/edge */
}

.page-padding {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.hero-background {
    position: relative;
    width: 100%;
    height: 100%;
    padding-top: 80px;
    background: url('../images/header_img.png') no-repeat center center/cover;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82));
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 850px;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

.hero-contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.hero-contact-info .separator {
    color: var(--accent);
    font-weight: bold;
}

.hero-text {
    max-width: 700px;
    margin-bottom: 1.5rem; 
}

.hero-text h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    word-break: break-word;
}

.hero-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.85rem;
    line-height: 1.5;
}

/* Announcement Slider */
.announcement-slider {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 650px;
    text-align: left; 
}

.slider-container {
    position: relative;
    min-height: 100px;
    overflow: hidden;
    width: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateX(20px);
}

.slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.slide .badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(128, 0, 32, 0.08);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.slide h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.slide p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.slider-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    border-top: 1px solid var(--card-border);
    padding-top: 1rem;
}

.slider-controls button {
    background: none;
    border: 1px solid var(--card-border);
    color: var(--text-main);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.slider-controls button:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.slider-dots {
    display: flex;
    gap: 0.4rem;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--card-border);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--accent);
    width: 20px;
    border-radius: 4px;
}

.content-container {
    max-width: 1000px;
    margin: 2rem auto 4rem auto;
    padding: 0 1.5rem;
    width: 100%;
}

.content-container h2 {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.content-container > p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

/* .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: var(--bg-alt);
    border: 1px solid var(--card-border);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
} */

.about-hero-section {
    width: 100%;
    margin-bottom: 4rem;
}

.about-hero-section > h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.about-content-block {
    width: 100%;
    overflow: hidden; 
}

.about-image-wrapper {
    float: left;
    width: 340px;         
    max-width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--bg-alt);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    margin-right: 1.25rem;    
    margin-bottom: 1.25rem;  
}

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

.about-content-block p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    text-align: justify;       
    text-justify: inter-word;
}

.about-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
    flex-wrap: wrap;
    gap: 1.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 38px;
    height: 38px;
    background: var(--bg-alt);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: translateY(-2px);
}

.btn-brochure {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.team-section {
    margin-bottom: 5rem;
}

.section-header {
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.team-card {
    background: var(--bg-alt);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.team-avatar {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #e5e7eb;
    overflow: hidden;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(10%);
    transition: var(--transition);
}

.team-card:hover .team-avatar img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

.team-info {
    padding: 1.5rem;
}

.team-info h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.team-role {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.team-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.alumni-section {
    border-top: 1px solid var(--card-border);
    padding-top: 4rem;
}

.alumni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.alumni-card {
    background: var(--bg-alt);
    border: 1px solid var(--card-border);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: var(--transition);
}

.alumni-card:hover {
    border-color: var(--text-muted);
}

.alumni-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

.alumni-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.alumni-tenure {
    font-size: 0.75rem;
    color: var(--accent);
    margin-top: 0.5rem;
    font-weight: 500;
}

/* .openings-intro {
    margin-bottom: 3.5rem;
}

.openings-intro p + p {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
} */

/* .minimal-contact-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.minimal-contact-card {
    background: var(--bg-alt);
    border: 1px solid var(--card-border);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-decoration: none;
    transition: var(--transition);
}

.minimal-contact-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
} 

.contact-icon-box {
    width: 42px;
    height: 42px;
    background: rgba(128, 0, 32, 0.08);
    color: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.minimal-contact-card:hover .contact-icon-box {
    background: var(--accent);
    color: white;
}

.contact-text-box {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.card-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.card-value {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}*/

.openings-hero-card h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.openings-hero-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 700px;
}

.urgent-opening-card {
    background: var(--bg-alt);
    border: 2px solid var(--accent); 
    border-radius: 16px;
    padding: 2.25rem;
    margin-bottom: 3.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(128, 0, 32, 0.05);
}

.urgent-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    background: rgba(128, 0, 32, 0.1);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
}

.urgent-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.urgent-meta {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.urgent-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 800px;
    text-align: justify;
}

.urgent-action {
    padding-top: 0.5rem;
}

.openings-hero-card {
    background: linear-gradient(135deg, rgba(128, 0, 32, 0.04), rgba(128, 0, 32, 0.01));
    border: 1px solid var(--card-border);
    border-left: 4px solid var(--accent); /* Maroon accent indicator */
    padding: 2.5rem;
    border-radius: 16px;
    margin-bottom: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.hero-lhs {
    flex: 1;
}

.hero-lhs h2 {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.hero-lhs p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: justify;
}

.hero-rhs {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-left: 1px solid var(--card-border);
    padding-left: 2.5rem;
}

.hero-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.hero-contact-item i {
    color: var(--accent);
    font-size: 1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.hero-contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-contact-val {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
    line-height: 1.4;
}

.work-intro {
    margin-bottom: 2.5rem;
}

.work-intro p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    text-align: justify;
}

.work-slider-wrapper {
    background: var(--bg-alt);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 4rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.work-slider-container {
    position: relative;
    width: 100%;
    min-height: 400px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--bg-light);
}

.work-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.work-slide.active {
    opacity: 1;
    visibility: visible;
}

.work-slide-img-box {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.work-slide-img-box video {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    background: #000;
}

.work-slide-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.work-slide-caption-box {
    padding: 1.25rem 1.5rem;
    background: var(--bg-alt);
    border-top: 1px solid var(--card-border);
}

.work-slide-caption-box h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.work-slide-caption-box p {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
}

.work-slider-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--card-border);
}

.work-slider-controls button {
    background: none;
    border: 1px solid var(--card-border);
    color: var(--text-main);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.work-slider-controls button:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.work-slider-dots {
    display: flex;
    gap: 0.4rem;
}

.projects-detail-section h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.project-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--bg-alt);
    border: 1px solid var(--card-border);
    padding: 1.75rem;
    border-radius: 12px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.project-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.project-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.project-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* .section-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
} 

.minimal-contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    max-width: 750px;
}

.minimal-contact-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--card-border);
    gap: 2rem;
}

.minimal-label-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.minimal-label-group i {
    color: var(--accent);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.minimal-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: -0.2px;
}

.minimal-value {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: right;
    line-height: 1.5;
    text-decoration: none;
    transition: var(--transition);
}

.link-hover:hover {
    color: var(--accent);
}*/

.btn-primary {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

/* .btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--card-border);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    align-self: flex-start;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
} */

.timeline-group {
            margin-bottom: 3.5rem;
        }

        .major-period-title {
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--text-main);
            margin-bottom: 1.5rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid var(--text-main);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .pub-category-group {
            margin-bottom: 2rem;
        }

        .pub-category-title {
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--text-muted);
            margin-bottom: 1rem;
            font-weight: 600;
        }

        /* Year Box Container */
        .pub-year-box {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 1.5rem;
            margin-bottom: 1.5rem;
            transition: var(--transition);
        }

        .pub-year-box:hover {
            border-color: #d1d1d1;
            box-shadow: 0 4px 12px rgba(0,0,0,0.03);
        }

        /* Year Header with explicit line above and below */
        .pub-year-header {
            font-size: 1.05rem;
            font-weight: 600;
            color: var(--accent);
            margin-bottom: 1.25rem;
            padding: 0.6rem 0;
            border-top: 1px solid var(--border);
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(128, 0, 32, 0.015); /* Subtle tint for extra visual distinction */
        }

        /* Stack of publications inside the same year box */
        .year-pubs-list {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
        }

        .pub-entry {
            padding-bottom: 1.25rem;
            border-bottom: 1px solid #f2f2f2;
        }

        .pub-entry:last-child {
            padding-bottom: 0;
            border-bottom: none;
        }

        .pub-meta-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.3rem;
        }

        .pub-badge {
            display: inline-block;
            padding: 0.15rem 0.5rem;
            background: rgba(128, 0, 32, 0.06);
            color: var(--accent);
            font-size: 0.68rem;
            font-weight: 600;
            border-radius: 20px;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .pub-title {
            font-size: 1.05rem;
            font-weight: 500;
            color: var(--text-main);
            margin-bottom: 0.25rem;
            text-decoration: none;
            display: inline-block;
        }

        .pub-title:hover {
            color: var(--accent);
        }

        .pub-authors {
            font-size: 0.9rem;
            color: var(--text-muted);
            margin-bottom: 0.5rem;
        }

        .pub-links {
            display: flex;
            gap: 1rem;
            font-size: 0.85rem;
        }

        .pub-links a {
            color: var(--text-main);
            text-decoration: none;
            font-weight: 500;
            border-bottom: 1px dotted var(--text-muted);
        }

        .pub-links a:hover {
            color: var(--accent);
            border-color: var(--accent);
        }
        
.pub-year-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.pub-year-header {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1.25rem;
    padding: 0.6rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(128, 0, 32, 0.015);
}

.year-pubs-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.pub-entry {
    padding-bottom: 1rem;
    border-bottom: 1px solid #f2f2f2;
}

.pub-entry:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

/* Inline Citation Styling */
.pub-citation-line {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.pub-citation-line .pub-title-link {
    color: var(--text-main);
    font-weight: 500;
    text-decoration: none;
}

.pub-citation-line .pub-title-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

.pub-citation-line i {
    color: var(--text-main);
}

.site-footer {
    text-align: center;
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--card-border);
    color: var(--text-muted);
    font-size: 0.85rem;
    width: 100%;
    background: var(--bg-light);
}

@media (max-width: 900px) {
    body.home-page {
        height: auto !important;
        overflow-y: auto !important;
    }

    body.home-page .main-content {
        height: auto !important;
        overflow: visible !important;
        padding-bottom: 3rem;
    }

    body.home-page .hero-background {
        position: relative !important;
        height: auto !important;
        min-height: calc(100vh - 70px);
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding-top: 2rem;
        transform: none !important; /* Removes desktop optical lift on mobile */
    }

    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .slider-container {
        position: relative;
        min-height: 150px;
        overflow: hidden;
        width: 100%;
    }
    
    .hero-text h2 {
        font-size: 2.2rem;
    }

    .hamburger {
        display: block !important;
        cursor: pointer;
        z-index: 1100;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-main) !important; 
        background: var(--bg-main) !important;
        border-bottom: 1px solid var(--card-border);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08); 
        z-index: 2000; 
        display: none;
    }

    .nav-menu.active {
        display: flex !important;
        flex-direction: column;
    }

    .nav-menu ul {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        list-style: none;
        width: 100%;
        background-color: var(--bg-main); /* Solid background fill */
    }

    .nav-menu ul li a {
        display: block;
        padding: 0.5rem 0;
        color: var(--text-main);
        font-weight: 500;
    }

    .about-hero-section {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: left;
    }

    .work-slide-img-box {
        height: 220px;
    }

    /* .minimal-contact-item {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .minimal-value {
        text-align: left;
        padding-left: 1.75rem;
    } */

    .header-container {
        padding: 0.75rem 1rem; 
        gap: 0.5rem;
    }

    .brand-box {
        gap: 0.5rem;
        min-width: 0;
        flex: 1; 
    }

    .site-logo {
        width: 30px;
        height: 30px;
    }

    .company-details h1 {
        font-size: 0.9rem; 
        white-space: normal; 
        overflow: visible;
        text-overflow: clip;
    }

    .company-details span {
        display: none; 
    }

    .content-container {
        padding: 0 1rem;
    }

    .openings-hero-card {
        flex-direction: column;
        align-items: stretch;
        gap: 2rem;
        padding: 2rem;
    }

    .hero-rhs {
        border-left: none;
        border-top: 1px solid var(--card-border);
        padding-left: 0;
        padding-top: 1.5rem;
    }

    .urgent-opening-card {
        padding: 1.5rem;
    }
    
    .urgent-content h3 {
        font-size: 1.25rem;
    }

    .about-actions-bar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    .btn-brochure {
        justify-content: center;
    }

    .about-image-wrapper {
        float: none;
        width: 100%;
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
}