/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
    image-rendering: auto;
    image-rendering: smooth;
    image-rendering: high-quality;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c5aa0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-brand a:hover {
    color: #1e3d72;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
}

.nav-link:hover {
    color: #2c5aa0;
}

.nav-link:hover:not(.active) {
    background: rgba(44, 90, 160, 0.05);
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2c5aa0;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: #2c5aa0;
    background: rgba(44, 90, 160, 0.15);
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    border: 1px solid rgba(44, 90, 160, 0.2);
}

.nav-link.active::after {
    height: 3px;
    background: #2c5aa0;
    bottom: -8px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Page Header */
.page-header {
    padding: 120px 0 70px;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(44, 90, 160, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.page-header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-header-image {
    flex-shrink: 0;
}

.page-profile-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 25px rgba(44, 90, 160, 0.15), 0 3px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    image-rendering: auto;
    image-rendering: smooth;
    image-rendering: high-quality;
    image-rendering: -webkit-optimize-contrast;
    filter: contrast(1.02) brightness(1.01);
    will-change: transform;
}

.page-profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(44, 90, 160, 0.2), 0 4px 15px rgba(0, 0, 0, 0.12);
}

.page-header-text {
    text-align: left;
    flex: 1;
    max-width: 420px;
}

.page-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #2c5aa0; /* Fallback color matching the website header */
    margin-bottom: 0.4rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #1e293b 0%, #2c5aa0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -moz-background-clip: text;
    -moz-text-fill-color: transparent;
    position: relative;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    margin: 0 0 1rem 0;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

.last-updated {
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
}

.last-updated i {
    color: #9ca3af;
    font-size: 0.8rem;
}

.scholar-link {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.scholar-link:hover {
    color: #3730a3;
    text-decoration: underline;
}

.cv-update {
    font-size: 0.75rem;
    color: #aaa;
    font-style: italic;
    margin-left: 0.3rem;
    font-weight: 300;
}

.cv-note {
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    background: #f8f9fa;
    border-left: 3px solid #2c5aa0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cv-note i {
    color: #2c5aa0;
    font-size: 0.8rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 120px 0 80px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.greeting {
    display: block;
    font-size: 1.2rem;
    color: #666;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.name {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: #2c5aa0;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #666;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #2c5aa0;
    color: white;
}

.btn-primary:hover {
    background: #1e3d72;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #2c5aa0;
    border-color: #2c5aa0;
}

.btn-secondary:hover {
    background: #2c5aa0;
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #2c5aa0;
    border-color: #2c5aa0;
}

.btn-outline:hover {
    background: #2c5aa0;
    color: white;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #2c5aa0;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #1e3d72;
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    justify-content: center;
}

.image-container {
    position: relative;
    width: 300px;
    height: 300px;
    overflow: hidden;
    border-radius: 50%;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    image-rendering: auto;
    image-rendering: smooth;
    image-rendering: high-quality;
    image-rendering: -webkit-optimize-contrast;
    filter: contrast(1.02) brightness(1.01);
    will-change: transform;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c5aa0;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

.about-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-sidebar .research-link-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.about-sidebar .research-link-card i {
    font-size: 2.5rem;
    color: #2c5aa0;
    margin-bottom: 1rem;
}

.about-sidebar .research-link-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c5aa0;
    margin-bottom: 1rem;
}

.about-sidebar .research-link-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.about-sidebar .research-link-card .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 20px;
    font-weight: 600;
}

.about-text .lead {
    font-size: 1.2rem;
    color: #555;
    font-weight: 500;
    margin-bottom: 2rem;
}

.about-text .lead a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.about-text .lead a:hover {
    color: #2c5aa0;
    text-decoration: underline;
}

/* Bio box styling */
.bio-box {
    background: white;
    border-radius: 8px;
    border-left: 4px solid #2c5aa0;
    padding: 1.2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.bio-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.15);
}

.bio-box .lead {
    margin-bottom: 1.5rem;
}

.bio-box .lead:last-of-type {
    margin-bottom: 1rem;
}

.bio-box .cv-note {
    margin-bottom: 0;
}

/* General inline link styling */
.inline-link {
    color: #4a90e2 !important;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.inline-link:hover {
    color: #2c5aa0 !important;
    text-decoration: underline;
}

.about-details {
    margin: 2rem auto;
    display: grid;
    grid-template-columns: 11fr 9fr; /* 55% and 45% ratio */
    gap: 2rem;
    align-items: start;
    max-width: 1200px;
}

.detail-item {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 0;
    align-items: flex-start;
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

/* Ensure consistent content alignment */
.detail-item > div {
    flex: 1;
    min-width: 0; /* Prevent flex item from expanding beyond container */
}

.detail-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(44, 90, 160, 0.15);
}

.detail-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c5aa0;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(44, 90, 160, 0.1);
}

.positions-section h3::before {
    content: "";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f0b1";
    font-size: 1.5rem;
    color: #2c5aa0;
    margin-top: 0.2rem;
    min-width: 40px !important;
    max-width: 40px !important;
    background: rgba(44, 90, 160, 0.1) !important;
    padding: 8px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease;
    width: 40px !important;
    height: 40px !important;
    flex-shrink: 0;
}

.education-section h3::before {
    content: "";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f19d";
    font-size: 1.5rem;
    color: #2c5aa0;
    margin-top: 0.2rem;
    min-width: 40px !important;
    max-width: 40px !important;
    background: rgba(44, 90, 160, 0.1) !important;
    padding: 8px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease;
    width: 40px !important;
    height: 40px !important;
    flex-shrink: 0;
}

.teaching-section h3::before {
    content: "";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f51c";
    font-size: 1.5rem;
    color: #2c5aa0;
    margin-top: 0.2rem;
    min-width: 40px !important;
    max-width: 40px !important;
    background: rgba(44, 90, 160, 0.1) !important;
    padding: 8px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease;
    width: 40px !important;
    height: 40px !important;
    flex-shrink: 0;
}

.detail-item p {
    color: #666;
    line-height: 1.6;
}

/* Position and Education Lists */
.position-list, .education-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.position-item, .education-item {
    display: flex;
    flex-direction: column;
    padding: 1.2rem;
    margin-bottom: 1rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #2c5aa0;
    gap: 0.4rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.position-item:hover, .education-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.15);
}

.position-item:last-child, .education-item:last-child {
    margin-bottom: 0;
}

.position-title, .degree-title {
    font-weight: 600;
    color: #2c5aa0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.position-title::before {
    content: "";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f0b1";
    font-size: 0.9rem;
    color: #2c5aa0;
    background: rgba(44, 90, 160, 0.1);
    padding: 6px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.degree-title::before {
    content: "";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f19d";
    font-size: 0.9rem;
    color: #2c5aa0;
    background: rgba(44, 90, 160, 0.1);
    padding: 6px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.position-org, .degree-org {
    color: #555;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.position-org::before, .degree-org::before {
    content: "";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f3c5";
    font-size: 0.8rem;
    color: #2c5aa0;
    background: rgba(44, 90, 160, 0.1);
    padding: 4px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.position-date, .degree-date {
    color: #2c5aa0;
    font-size: 0.85rem;
    font-weight: 500;
    background: rgba(44, 90, 160, 0.1);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.position-description, .degree-description {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
    font-style: italic;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e0e0e0;
}

/* University Logo Styles */
.position-content, .education-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
}

.position-logo, .education-logo {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    padding: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.university-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0.9);
    transition: all 0.3s ease;
}

.position-item:hover .university-logo,
.education-item:hover .university-logo {
    filter: brightness(1);
    transform: scale(1.05);
}

.position-details, .education-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

/* Override emoji icons when using logos */
.position-content .position-title::before,
.education-content .degree-title::before {
    display: none;
}

.position-content .position-org::before,
.education-content .degree-org::before {
    display: none;
}

/* Awards Section */
.awards-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 1.5rem auto;
    max-width: 1200px;
}

.awards-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c5aa0;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(44, 90, 160, 0.1);
}

.awards-section h3::before {
    content: "";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f091";
    font-size: 1.5rem;
    color: #2c5aa0;
    margin-top: 0.2rem;
    min-width: 40px !important;
    max-width: 40px !important;
    background: rgba(44, 90, 160, 0.1) !important;
    padding: 8px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease;
    width: 40px !important;
    height: 40px !important;
    flex-shrink: 0;
}

.awards-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.award-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #2c5aa0;
    transition: all 0.3s ease;
}

.award-item:hover {
    transform: translateX(3px);
    box-shadow: 0 2px 10px rgba(44, 90, 160, 0.1);
}

.award-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.award-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.award-title {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    line-height: 1.3;
}

.award-description {
    color: #666;
    font-size: 0.8rem;
    line-height: 1.4;
    font-style: italic;
}

.award-year {
    color: #2c5aa0;
    font-weight: 600;
    font-size: 0.8rem;
    background: rgba(44, 90, 160, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    white-space: nowrap;
    align-self: flex-start;
}

/* Research Section */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.research-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.research-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

.research-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2c5aa0, #1e3d72);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.research-icon i {
    font-size: 1.5rem;
    color: white;
}

.research-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.research-card p {
    color: #666;
    line-height: 1.6;
}

.research-interests {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 3rem auto;
    max-width: 1200px;
}

.research-interests h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c5aa0;
    margin-bottom: 1.5rem;
    text-align: center;
}

.interests-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.tag {
    background: linear-gradient(135deg, #2c5aa0, #1e3d72);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.tag:hover {
    transform: scale(1.05);
}

/* Publications Section */
.publications {
    background: #f8f9fa;
}

/* Publication Filters */
.pub-filters {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-group, .sort-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.filter-group label, .sort-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.filter-buttons, .sort-buttons {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 2px solid #e9ecef;
    color: #666;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn:hover {
    border-color: #2c5aa0;
    color: #2c5aa0;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #2c5aa0;
    border-color: #2c5aa0;
    color: white;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

.sort-btn {
    background: white;
    border: 2px solid #e9ecef;
    color: #666;
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-btn:hover {
    border-color: #2c5aa0;
    color: #2c5aa0;
    transform: translateY(-2px);
}

.sort-btn.active {
    background: #2c5aa0;
    border-color: #2c5aa0;
    color: white;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

.publications-list {
    margin-bottom: 2rem;
}

.publication-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1rem;
    background: white;
    padding: 1rem;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    border-left: 3px solid #e3f2fd;
    opacity: 1;
    transform: scale(1);
}

.pub-cover {
    grid-column: 1;
    width: 80px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
    align-self: start;
}

.journal-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    transition: transform 0.2s ease;
}

.journal-cover:hover {
    transform: scale(1.02);
}

.pub-content {
    grid-column: 2;
    min-width: 0;
}

.publication-item.hidden {
    display: none;
}

.publication-item.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

.publication-item:hover {
    transform: translateX(3px);
    border-left-color: #2c5aa0;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.15);
}

/* .pub-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c5aa0;
    min-width: 45px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0.1rem;
    background: #e3f2fd;
    border-radius: 6px;
    height: fit-content;
    padding: 0.3rem 0.6rem;
} */

.pub-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 0.3rem;
    line-height: 1.3;
    flex: 1;
}

.pub-title-row {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.2rem;
    flex-wrap: wrap;
}

.pub-badges {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-end;
}

.pub-type-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    align-self: flex-start;
}

.pub-type-badge.journal {
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.pub-type-badge.conference {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}

.pub-type-badge.working {
    background: #fff3e0;
    color: #ef6c00;
    border: 1px solid #ffcc02;
}

.pub-open-access-badge {
    background: #f1f8e9;
    color: #4caf50;
    border: 1px solid #c8e6c9;
    font-size: 0.6rem;
    font-weight: 500;
    padding: 0.2rem 0.4rem;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.pub-open-access-badge:hover {
    background: #e8f5e8;
    border-color: #a5d6a7;
}

.pub-open-access-badge i {
    font-size: 0.55rem;
}

.pub-authors {
    color: #555;
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
    font-weight: 400;
}

.pub-venue-info {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}

.pub-venue {
    color: #666;
    font-style: italic;
    font-size: 0.85rem;
    font-weight: 400;
}

.pub-venue::after {
    content: " •";
    color: #ccc;
    margin: 0 0.3rem;
}

.pub-year {
    color: #888;
    font-size: 0.85rem;
    font-weight: 500;
}

.pub-links {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
}

.expand-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: auto;
}

.expand-btn:hover {
    background: #e9ecef;
    transform: scale(1.1);
}

.expand-btn i {
    font-size: 0.75rem;
    color: #6c757d;
    transition: all 0.3s ease;
}

.pub-abstract {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #2c5aa0;
    transition: all 0.3s ease;
}

.pub-abstract p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #495057;
}

.pub-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #2c5aa0;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.2rem 0.5rem;
    background: #f0f7ff;
    border-radius: 4px;
}

.pub-link:hover {
    color: #1e3d72;
    background: #e3f2fd;
}

.cv-section {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.cv-section i {
    font-size: 2.5rem;
    color: #2c5aa0;
    margin-bottom: 1rem;
    display: block;
}

.cv-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c5aa0;
    margin-bottom: 1rem;
}

.cv-section p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Teaching Section */
.teaching {
    background: #f8f9fa;
    padding: 3rem 0;
}

.teaching-content {
    max-width: 1200px;
    margin: 0 auto;
}

.teaching-summary {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    text-align: left;
    max-width: 100%;
}

.courses-container {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.course-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.course-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.course-logo {
    flex-shrink: 0;
}

.course-logo .university-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
}

.course-title-section {
    flex-grow: 1;
}

.course-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c5aa0;
    margin-bottom: 0.5rem;
}

.course-title-section .course-description {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
    margin-top: 0.5rem;
}

.course-details {
    margin-top: 1rem;
}

.course-periods {
    margin-bottom: 1.5rem;
}

.period-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #2c5aa0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.period-content {
    flex: 1;
}

.period-survey {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.period-item:last-child {
    margin-bottom: 0;
}

.period-term {
    display: block;
    font-weight: 600;
    color: #2c5aa0;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.period-programs {
    display: block;
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    font-style: italic;
}

.survey-score {
    background: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #f39c12;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    line-height: 1;
}

.survey-score .fas {
    color: #f39c12;
    font-size: 0.75rem;
    background: none !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    min-width: auto !important;
    max-width: auto !important;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
    margin-top: -1px;
}

.course-description {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

.student-comments {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.comments-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #2c5aa0;
    font-weight: 600;
    font-size: 0.9rem;
}

.comments-header .fas {
    font-size: 0.75rem;
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    width: auto !important;
    height: auto !important;
    min-width: auto !important;
    max-width: auto !important;
}

.comments-list {
    display: grid;
    gap: 0.5rem;
}

.comment-item {
    background: #f8f9fa;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border-left: 2px solid #2c5aa0;
    font-style: italic;
    color: #555;
    font-size: 0.85rem;
    line-height: 1.4;
}

.comment-item::before {
    content: '"';
    color: #2c5aa0;
    font-size: 1rem;
    font-weight: bold;
}

.comment-item::after {
    content: '"';
    color: #2c5aa0;
    font-size: 1rem;
    font-weight: bold;
}

.detail-item .fa-chalkboard-teacher {
    background: rgba(44, 90, 160, 0.1) !important;
    border-radius: 50% !important;
    padding: 12px !important;
    width: 56px !important;
    height: 56px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.course-role-badge {
    display: inline-block;
    background: #e3f2fd;
    color: #2c5aa0;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Responsive Design for Teaching Section */
@media (max-width: 768px) {
    .course-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .course-title {
        font-size: 1.2rem;
    }
    
    .period-item {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .period-survey {
        align-self: flex-start;
    }
    
    .survey-score {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .period-term {
        font-size: 1rem;
    }
    
    .teaching-summary {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .student-comments {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }
    
    .comment-item {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .comments-header {
        font-size: 0.85rem;
    }
}

/* Contact Section - Improved Layout */
.contact-content {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-intro {
    text-align: left;
    margin-bottom: 3rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #2c5aa0;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    max-width: 1200px;
}

.contact-intro:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.15);
}

.contact-intro p {
    font-size: 1.1rem;
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
    font-weight: 400;
}

/* Primary Contact Section */
.contact-primary {
    margin-bottom: 3rem;
}

.contact-primary h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c5aa0;
    margin-bottom: 1.5rem;
    text-align: center;
}

.primary-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: none;
    margin: 0;
}

.primary-contact-grid .contact-item.primary {
    display: flex;
    margin-bottom: 0;
    width: 100%;
}

.primary-contact-grid .contact-item.primary:last-child {
    margin-bottom: 0;
}

.contact-item.primary {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #2c5aa0;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.contact-item.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(44, 90, 160, 0.15);
}

.contact-item.primary .contact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #2c5aa0, #1e3d72);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item.primary .contact-icon i {
    font-size: 1.8rem;
    color: white;
}

/* Secondary Contact Section */
.contact-secondary {
    margin-bottom: 2rem;
}

.contact-secondary h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.contact-item.secondary {
    background: white;
    padding: 1.8rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-item.secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.contact-item.secondary .contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 2px solid #2c5aa0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.contact-item.secondary .contact-icon i {
    font-size: 1.3rem;
    color: #2c5aa0;
}

/* Contact Details Styling */
.contact-details h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.contact-item.primary .contact-details h3 {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}

.contact-details p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.contact-info {
    color: #333;
    font-weight: 500;
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: block;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #2c5aa0;
    color: white !important;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: #1e3d72;
    transform: translateY(-1px);
}

.contact-link {
    color: #2c5aa0 !important;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.contact-link:hover {
    color: #1e3d72 !important;
    text-decoration: underline;
}

/* CV Section in About */
.cv-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    margin-top: 2rem;
}

.cv-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c5aa0;
    margin-bottom: 1rem;
}

.cv-section p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Contact Section */
.contact {
    background: #f8f9fa;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-primary {
    grid-area: primary;
}

.contact-secondary {
    grid-area: secondary;
}

.contact-primary h2, .contact-secondary h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.primary-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.secondary-contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.contact-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.contact-icon {
    font-size: 2rem;
    color: #2c5aa0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f5ff;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-details {
    flex: 1;
}

.contact-details h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.contact-details p {
    color: #6b7280;
    margin-bottom: 1rem;
}

.contact-info {
    font-weight: 500;
    color: #374151;
    display: block;
    margin-bottom: 1rem;
}

.contact-btn {
    display: inline-block;
    background: #2c5aa0;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.contact-btn:hover {
    background: #1e3d72;
}

.contact-link {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #2c5aa0;
    transition: width 0.3s ease;
}

.contact-link:hover::after {
    width: 100%;
}

/* Footer */
.footer {
    background: #2c5aa0;
    color: white;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        padding: 1rem;
        display: block;
        margin: 0.5rem 1rem;
        border-radius: 8px;
    }
    
    .nav-link.active {
        background: rgba(44, 90, 160, 0.15);
        color: #2c5aa0;
        font-weight: 600;
        border: 1px solid rgba(44, 90, 160, 0.2);
    }
    
    .nav-link.active::after {
        display: none; /* Hide underline on mobile */
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Page header mobile fix */
    .page-header {
        padding: 100px 0 40px;
    }
    
    .page-header-content {
        flex-direction: column;
        gap: 25px;
        text-align: center;
        max-width: 90%;
    }
    
    .page-header-text {
        text-align: center;
        max-width: 100%;
    }
    
    .page-profile-image {
        width: 120px;
        height: 120px;
    }
    
    .page-title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 0.6rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .last-updated {
        font-size: 0.85rem;
        margin-top: 0.5rem;
        justify-content: center;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    /* Mobile hero image improvements */
    .hero-image {
        order: -1; /* Show image before text on mobile */
        margin-bottom: 1rem;
    }
    
    .image-container {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }
    
    .profile-image {
        border: 3px solid white;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
    
    .name {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    /* Center social links on mobile */
    .social-links {
        justify-content: center;
        margin: 1.5rem auto 0;
        max-width: 250px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 10px;
    }
    
    .about-details {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 100%;
        margin: 2rem 0;
    }
    
    /* Mobile responsive logo layout */
    .position-content, .education-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    
    .position-logo, .education-logo {
        width: 50px;
        height: 50px;
    }
    
    .position-details, .education-details {
        align-items: center;
        gap: 0.15rem;
    }
    
    .about-sidebar-integrated {
        grid-column: 1;
        grid-row: auto;
        gap: 1.5rem;
    }
    
    .about-sidebar {
        gap: 1.5rem;
    }
    
    /* Improve mobile about section styling */
    .about-text .lead {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .detail-item {
        background: white;
        padding: 1.5rem;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        margin-bottom: 1.5rem;
        flex-direction: column;
        text-align: center;
    }
    
    .detail-item h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
        text-align: center;
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .positions-section h3::before,
    .education-section h3::before,
    .teaching-section h3::before {
        align-self: center;
        margin-top: 0;
    }
    
    .detail-item p {
        text-align: center;
        line-height: 1.6;
    }
    
    /* Mobile styles for position and education lists */
    .position-item, .education-item {
        text-align: left;
        padding: 1rem;
        margin-bottom: 0.8rem;
    }
    
    /* Mobile styles for awards section */
    .awards-section {
        padding: 1.2rem;
        margin: 1.5rem 0;
    }
    
    .awards-section h3 {
        font-size: 1rem;
        margin-bottom: 1.2rem;
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .awards-section h3::before {
        align-self: center;
        margin-bottom: 0.5rem;
    }
    
    .award-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }
    
    .award-year {
        align-self: flex-start;
        font-size: 0.75rem;
        padding: 0.15rem 0.5rem;
    }
    
    .award-title {
        font-size: 0.85rem;
    }
    
    .award-description {
        font-size: 0.75rem;
    }
    
    .position-title, .degree-title {
        font-size: 1rem;
        margin-bottom: 0.4rem;
        justify-content: center;
        text-align: center;
    }
    
    .position-org, .degree-org {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
        justify-content: center;
        text-align: center;
    }
    
    .position-date, .degree-date {
        font-size: 0.8rem;
        align-self: center;
        text-align: center;
    }
    
    .about-sidebar .research-link-card {
        padding: 1.5rem;
        margin: 0;
    }
    
    .about-sidebar .research-link-card i {
        font-size: 2rem;
    }
    
    .about-sidebar .research-link-card h3 {
        font-size: 1.2rem;
    }
    
    .about-sidebar .research-link-card p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .cv-section {
        text-align: center;
        background: white;
        padding: 1.5rem;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        margin: 0;
    }
    
    .cv-section .btn {
        width: auto;
        max-width: 200px;
        margin: 1rem auto 0;
        display: block;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .skills-grid {
        gap: 1.5rem;
    }
    
    /* Contact Section Mobile Styles */
    .contact-intro {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .contact-intro p {
        font-size: 1rem;
    }
    
    .contact-primary {
        margin-bottom: 2rem;
    }
    
    .contact-primary h2,
    .contact-secondary h2 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .primary-contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-item.primary {
        padding: 1.8rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .contact-item.primary .contact-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto;
    }
    
    .contact-item.primary .contact-icon i {
        font-size: 1.6rem;
    }
    
    .secondary-contact-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1rem;
    }
    
    .contact-item.secondary {
        padding: 1.5rem;
    }
    
    .contact-item.secondary .contact-icon {
        width: 45px;
        height: 45px;
    }
    
    .contact-item.secondary .contact-icon i {
        font-size: 1.2rem;
    }
    
    .contact-details h3 {
        font-size: 1.1rem;
    }
    
    .contact-item.primary .contact-details h3 {
        font-size: 1.2rem;
    }
    
    .contact-info {
        font-size: 1rem;
    }
    
    .contact-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    
    .research-link-section {
        margin-top: 1.5rem;
    }
    
    .research-link-card {
        padding: 2rem 1.5rem;
        margin: 0 auto;
        max-width: 100%;
    }
    
    .research-link-card i {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .research-link-card h3 {
        font-size: 1.3rem;
    }
    
    .research-link-card p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .skill-category {
        padding: 1.5rem;
        margin: 0 auto;
        max-width: 100%;
    }
    
    .cv-section {
        text-align: center;
        background: white;
        padding: 2rem 1.5rem;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        margin: 2rem 0;
    }
    
    .cv-section .btn {
        width: auto;
        max-width: 180px;
        margin: 1rem auto 0;
        display: block;
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    /* Better mobile layout for cards */
    .research-grid,
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 10px;
    }
    
    .research-card,
    .course-card,
    .skill-category {
        max-width: 100%;
        margin: 0 auto;
        padding: 1.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 15px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 100%;
    }
    
    .contact-item {
        padding: 2rem 1.5rem;
        max-width: 100%;
        margin: 0 auto;
        background: white;
        border-radius: 15px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        text-align: center;
    }
    
    .contact-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1.5rem;
    }
    
    .contact-icon i {
        font-size: 1.8rem;
    }
    
    .contact-details h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        color: #2c5aa0;
    }
    
    .contact-details p {
        font-size: 1rem;
        margin-bottom: 1.2rem;
        line-height: 1.6;
    }
    
    .contact-details a {
        font-size: 1rem;
        font-weight: 600;
        padding: 8px 0;
        display: inline-block;
    }
    
    /* Mobile publication layout fix */
    .publication-item {
        grid-template-columns: 60px 1fr;
        gap: 0.8rem;
        padding: 0.8rem;
        margin: 0 5px 0.4rem;
    }
    
    .pub-cover {
        grid-column: 1;
        width: 60px;
        height: 75px;
    }
    
    .pub-title {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
        line-height: 1.3;
    }
    
    .pub-title-row {
        flex-direction: column;
        gap: 0.3rem;
        align-items: flex-start;
    }
    
    .pub-badges {
        gap: 0.25rem;
        align-items: flex-start;
    }
    
    .pub-type-badge {
        font-size: 0.6rem;
        padding: 0.15rem 0.4rem;
        align-self: flex-start;
    }
    
    .pub-open-access-badge {
        font-size: 0.5rem;
        padding: 0.12rem 0.3rem;
    }
    
    .pub-authors {
        font-size: 0.8rem;
           margin-bottom: 0.15rem;
    }
    
    .pub-venue-info {
        gap: 0.3rem;
        margin-bottom: 0.5rem;
    }
    
    .pub-venue {
        font-size: 0.8rem;
    }
    
    .pub-year {
        font-size: 0.8rem;
    }
    
    .pub-link {
        font-size: 0.7rem;
        padding: 0.1rem 0.3rem;
    }
    
    .interests-tags {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        text-align: center;
    }
    
    .cv-section .btn {
        width: auto !important;
        max-width: 180px !important;
        margin: 1rem auto 0 !important;
        display: block !important;
        padding: 10px 16px !important;
        font-size: 0.85rem !important;
    }
    
    /* Center social links on small mobile */
    .social-links {
        justify-content: center;
        margin: 1rem auto 0;
        max-width: 200px;
        gap: 0.8rem;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    /* Small mobile about section improvements */
    .about-text .lead {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .detail-item {
        padding: 1.2rem;
        margin-bottom: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .detail-item h3 {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .positions-section h3::before,
    .education-section h3::before,
    .teaching-section h3::before {
        align-self: center;
        margin-top: 0;
    }
    
    .cv-section {
        padding: 1.5rem 1rem;
        margin: 1.5rem 0;
    }
    
    .cv-section h3 {
        font-size: 1.2rem;
    }
    
    /* Research link section for small mobile */
    .research-link-card {
        padding: 1.5rem 1rem;
        margin: 1rem 0;
    }
    
    .research-link-card i {
        font-size: 2rem;
    }
    
    .research-link-card h3 {
        font-size: 1.2rem;
    }
    
    .research-link-card p {
        font-size: 0.95rem;
    }
    
    .research-link-card .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
    
    .course-header h4 {
        font-size: 1.1rem;
    }
    
    .rating-stars {
        font-size: 0.8rem;
    }
    
    .rating-value {
        font-size: 0.8rem;
        font-weight: 600;
        color: #2c5aa0;
    }
    
    .course-details {
        color: #666;
        margin-bottom: 1rem;
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .course-description {
        color: #555;
        line-height: 1.6;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    /* Smaller hero image for very small screens */
    .image-container {
        width: 150px;
        height: 150px;
    }
    
    .profile-image {
        border: 2px solid white;
    }
    
    /* Page header mobile fix for small screens */
    .page-header {
        padding: 90px 0 35px;
    }
    
    .page-profile-image {
        width: 100px;
        height: 100px;
        border: 3px solid rgba(255, 255, 255, 0.9);
    }

    .page-title {
        font-size: 1.9rem;
        line-height: 1.15;
    }
    
    .page-subtitle {
        font-size: 0.95rem;
    }

    .last-updated {
        font-size: 0.8rem;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .page-subtitle {
        font-size: 0.9rem;
    }
    
    .name {
        font-size: 2rem;
    }
    
    section {
        padding: 50px 0;
    }
    
    /* Smaller cards on very small screens */
    .research-grid,
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 5px;
    }
    
    .research-card,
    .course-card,
    .skill-category,
    .contact-item {
        padding: 1.8rem 1.2rem;
        max-width: 100%;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-content {
        padding: 0 10px;
    }
    
    .contact-item {
        padding: 1.8rem 1.2rem;
        border-radius: 12px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1.2rem;
    }
    
    .contact-icon i {
        font-size: 1.6rem;
    }
    
    .contact-details h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .contact-details p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .publication-item {
        grid-template-columns: 60px 1fr;
        gap: 0.6rem;
        padding: 0.6rem;
        margin: 0 5px 0.4rem;
    }
    
    .pub-number {
        position: absolute;
        top: 0.8rem;
        right: 0.8rem;
        font-size: 0.8rem;
        min-width: 30px;
        padding: 0.15rem 0.3rem;
    }
    
    .pub-content {
        grid-column: 2;
        padding-right: 2.2rem; /* Space for the number on small screens */
    }
    
    .pub-title {
        font-size: 0.9rem;
        line-height: 1.2;
    }
    
    .pub-title-row {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .pub-badges {
        gap: 0.25rem;
        align-items: flex-start;
    }
    
    .pub-type-badge {
        font-size: 0.6rem;
        padding: 0.15rem 0.4rem;
    }
    
    .pub-open-access-badge {
        font-size: 0.5rem;
        padding: 0.12rem 0.3rem;
    }
    
    .pub-authors {
        font-size: 0.8rem;
    }
    
    .pub-venue-info {
        gap: 0.3rem;
        margin-bottom: 0.5rem;
    }
    
    .pub-venue {
        font-size: 0.8rem;
    }
    
    .pub-year {
        font-size: 0.8rem;
    }
    
    .pub-link {
        font-size: 0.7rem;
        padding: 0.1rem 0.3rem;
    }
    
    .interests-tags {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        text-align: center;
    }
    
    .cv-section .btn {
        width: auto !important;
        max-width: 180px !important;
        margin: 1rem auto 0 !important;
        display: block !important;
        padding: 10px 16px !important;
        font-size: 0.85rem !important;
    }
    
    /* Center social links on small mobile */
    .social-links {
        justify-content: center;
        margin: 1rem auto 0;
        max-width: 200px;
        gap: 0.8rem;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    /* Small mobile about section improvements */
    .about-text .lead {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .detail-item {
        padding: 1.2rem;
        margin-bottom: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .detail-item h3 {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .positions-section h3::before,
    .education-section h3::before,
    .teaching-section h3::before {
        align-self: center;
        margin-top: 0;
    }
    
    .cv-section {
        padding: 1.5rem 1rem;
        margin: 1.5rem 0;
    }
    
    .cv-section h3 {
        font-size: 1.2rem;
    }
    
    /* Research link section for small mobile */
    .research-link-card {
        padding: 1.5rem 1rem;
        margin: 1rem 0;
    }
    
    .research-link-card i {
        font-size: 2rem;
    }
    
    .research-link-card h3 {
        font-size: 1.2rem;
    }
    
    .research-link-card p {
        font-size: 0.95rem;
    }
    
    .research-link-card .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
    
    .course-header h4 {
        font-size: 1.1rem;
    }
    
    .rating-stars {
        font-size: 0.8rem;
    }
    
    .rating-value {
        font-size: 0.8rem;
        font-weight: 600;
        color: #2c5aa0;
    }
    
    .course-details {
        color: #666;
        margin-bottom: 1rem;
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .course-description {
        color: #555;
        line-height: 1.6;
        font-size: 0.95rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Recent News Section */
.recent-news {
    padding: 5rem 0;
    background: #f8f9fa;
}

.news-header {
    text-align: center;
    margin-bottom: 3rem;
}

.news-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c5aa0;
    margin-bottom: 0.5rem;
}

.news-header p {
    font-size: 1.1rem;
    color: #666;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.news-item {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    gap: 1.2rem;
    transition: all 0.3s ease;
    align-items: flex-start;
}

.news-header-mobile {
    display: none;
}

.desktop-type {
    display: inline-block;
}

.mobile-date {
    display: none;
}

.news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(44, 90, 160, 0.12);
}

.news-date {
    background: #2c5aa0;
    color: white;
    border-radius: 8px;
    padding: 0.8rem;
    text-align: center;
    min-width: 70px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    flex-shrink: 0;
}

.news-date .month {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1;
}

.news-date .year {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}

.news-content {
    flex: 1;
    min-width: 0;
}

.news-type {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    letter-spacing: 0.5px;
}

.news-type.position {
    background: rgba(76, 175, 80, 0.12);
    color: #4caf50;
}

.news-type.achievement {
    background: rgba(255, 152, 0, 0.12);
    color: #ff9800;
}

.news-type.publication {
    background: rgba(33, 150, 243, 0.12);
    color: #2196f3;
}

.news-type.working-paper {
    background: rgba(156, 39, 176, 0.12);
    color: #9c27b0;
}

.news-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.news-content p {
    color: #666;
    line-height: 1.5;
    margin: 0;
    font-size: 0.95rem;
}

/* Recent Updates (About Page) */
.recent-updates {
    margin-top: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.recent-updates h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c5aa0;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.recent-updates h3 i {
    color: #2c5aa0;
    background: rgba(44, 90, 160, 0.1);
    padding: 8px;
    border-radius: 50%;
    font-size: 1rem;
}

.updates-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.update-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2c5aa0;
}

.update-date {
    background: #2c5aa0;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    min-width: fit-content;
}

.update-text {
    color: #666;
    line-height: 1.5;
    flex: 1;
}

.update-text strong {
    color: #2c5aa0;
    font-weight: 600;
}

/* Responsive Design for News */
@media (max-width: 768px) {
    /* Publication responsive layout for tablets */
    .publication-item {
        grid-template-columns: 70px 1fr;
        gap: 0.8rem;
        padding: 0.8rem;
    }
    
    .pub-cover {
        grid-column: 1;
        width: 70px;
        height: 88px;
    }
    
    .news-item {
        flex-direction: column;
        gap: 0.8rem;
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .news-header-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .news-header-mobile .news-date {
        align-self: flex-start;
        min-width: auto;
        width: auto;
        height: auto;
        padding: 0.3rem 0.8rem;
        border-radius: 15px;
        margin-bottom: 0;
        display: inline-flex;
        flex-direction: row;
        gap: 0.3rem;
        align-items: center;
        font-size: 0.8rem;
        order: 1;
        min-height: 24px;
        line-height: 1;
    }
    
    .news-header-mobile .news-date .month {
        font-size: 0.8rem;
        font-weight: 600;
        text-transform: uppercase;
        line-height: 1;
    }
    
    .news-header-mobile .news-date .year {
        font-size: 0.8rem;
        font-weight: 700;
        line-height: 1;
    }
    
    .news-header-mobile .news-type {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
        margin-bottom: 0;
        display: inline-flex;
        align-items: center;
        order: 2;
        min-height: 24px;
        line-height: 1;
    }
    
    .news-content {
        text-align: left;
        order: 3;
    }
    
    .news-content h3 {
        font-size: 1.2rem;
        line-height: 1.3;
        margin-bottom: 0.6rem;
        margin-top: 0;
    }
    
    .news-content p {
        font-size: 0.95rem;
        line-height: 1.6;
        text-align: left;
    }
    
    .news-type {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
        margin-bottom: 0.8rem;
        display: inline-block;
    }
    
    /* Hide desktop date and type, show mobile header */
    .news-item > .news-date {
        display: none;
    }
    
    .desktop-type {
        display: none;
    }
    
    .news-header-mobile {
        display: flex !important;
    }
    
    .mobile-date {
        display: inline-flex !important;
    }
    
    .news-header h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .recent-news {
        padding: 3rem 0;
    }
    
    .recent-news .container {
        padding: 0 1.5rem;
    }
    
    .update-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .update-date {
        align-self: flex-start;
    }
    
    /* Publication filters responsive */
    .pub-filters {
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .filter-group, .sort-group {
        gap: 0.6rem;
    }
    
    .filter-buttons, .sort-buttons {
        gap: 0.5rem;
    }
    
    .filter-btn, .sort-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Contact Section Mobile Responsive */
@media (max-width: 768px) {
    .contact-content {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .contact-intro {
        margin-bottom: 2rem;
        padding: 1.5rem;
    }
    
    .contact-intro p {
        font-size: 1rem;
        text-align: center;
    }
    
    .primary-contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .secondary-contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .contact-item.primary {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 1rem;
    }
    
    .contact-item.secondary {
        padding: 1.2rem;
    }
    
    .contact-item.primary .contact-icon {
        width: 60px;
        height: 60px;
    }
    
    .contact-item.primary .contact-icon i {
        font-size: 1.5rem;
    }
    
    .contact-item.secondary .contact-icon {
        width: 45px;
        height: 45px;
    }
    
    .contact-item.secondary .contact-icon i {
        font-size: 1.1rem;
    }
    
    .contact-details h3 {
        font-size: 1.2rem;
    }
    
    .contact-item.primary .contact-details h3 {
        font-size: 1.3rem;
    }
    
    .contact-primary h2,
    .contact-secondary h2 {
        font-size: 1.5rem;
        text-align: center;
    }
}
