/* Global Styles */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-color: #1f2937;
    --light-text: #6b7280;
    --background: #ffffff;
    --section-bg: #f3f4f6;
    --card-bg: #ffffff;
    
    /* Responsive font size variables */
    --base-font-size: clamp(14px, 1vw + 10px, 16px);
    --h1-font-size: clamp(2rem, 6vw, 3.5rem);
    --h2-font-size: clamp(1.8rem, 4vw, 2.5rem);
    --h3-font-size: clamp(1.2rem, 3vw, 1.5rem);
    --small-font-size: clamp(0.8rem, 2vw, 0.95rem);
    
    /* Expertise section colors - harmonized palette */
    --ml-color: #7c3aed;
    --teaching-color: #0ea5e9;
    --zen-color: #10b981;
    --semiconductor-color: #6366f1;
    --app-dev-color: #3b82f6;
    --sinology-color: #ea580c;
    --electronics-color: #0d9488;
    --management-color: #0891b2;
    --llm-color: #8b5cf6;
    --scroll-position: 0;
}

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

html {
    scroll-behavior: smooth;
    font-size: var(--base-font-size);
}

body {
    font-family: 'Poppins', 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    font-size: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 2rem);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: clamp(0.5rem, 2vw, 1.5rem);
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    padding: 0.25em 0.25em;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.menu-btn {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding-top: 4rem;
}

.hero-content h1 {
    font-size: var(--h1-font-size);
    margin-bottom: 1rem;
    color: var(--text-color);
}

.hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--light-text);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: var(--secondary-color);
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--section-bg);
}

.profile-image-container {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 auto;
    display: block;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: var(--h2-font-size);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.about h2:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.about-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    max-width: 100%;
}

.about-text {
    flex: 1;
    max-width: 100%;
}

.about-text p {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.skills {
    margin-top: 2rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.skill-tags span {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Projects Section */
.projects {
    padding: 6rem 0;
}

.projects h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    position: relative;
}

.projects h2:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

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

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--section-bg);
}

.contact h2 {
    position: relative;
    display: block;
    margin-bottom: 2.5rem;
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#contact-form input,
#contact-form textarea {
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    font-family: inherit;
}

#contact-form textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: var(--secondary-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    background: var(--text-color);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: rgba(255, 255, 255, 0.95);
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.nav-active {
        display: flex;
    }
    
    .nav-links li {
        margin: 0.5rem 0;
        width: 100%;
        text-align: center;
    }
    
    /* Position login/logout button at the bottom of menu */
    .nav-links li:has(#login-btn), 
    .nav-links li:has(#logout-btn) {
        order: 1;
    }
    
    /* Position language switcher after login/logout */
    .nav-links li.language-switcher {
        order: 2;
    }

    .menu-btn {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .skill-tags {
        justify-content: center;
    }
} 

/* About Section Updates */
.what-to-expect {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.what-to-expect h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.expect-list {
    list-style: none;
    padding: 0;
}

.expect-list li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    font-size: 1.1rem;
}

.expect-list li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

@media (max-width: 768px) {
    .about {
        padding: 4rem 1rem;
    }

    .about h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .about-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .about-text p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .what-to-expect {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }

    .what-to-expect h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .expect-list li {
        font-size: 1rem;
        padding-left: 1.5rem;
        margin-bottom: 0.8rem;
    }
}

@media (max-width: 480px) {
    .about {
        padding: 3rem 1rem;
    }

    .about h2 {
        font-size: 1.8rem;
    }

    .about-text p {
        font-size: 0.95rem;
    }

    .what-to-expect {
        padding: 1.2rem;
    }

    .what-to-expect h3 {
        font-size: 1.2rem;
    }

    .expect-list li {
        font-size: 0.95rem;
        padding-left: 1.2rem;
    }
}

/* Project Cards */
.project-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
}

.project-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: clamp(1rem, 2.8vw, 1.2rem);
}

.project-content p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-size: clamp(0.85rem, 2.2vw, 0.95rem);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.project-tags span {
    background: var(--section-bg);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    font-weight: 500;
}

/* Animation Classes */
.animate {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 

/* Blog Section */
.blog {
    padding: 80px 0;
    background: var(--section-bg);
}

.blog h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    position: relative;
}

.blog h2:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

@media (min-width: 1201px) {
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

.blog-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.6s ease-out forwards;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.blog-thumbnail {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    background-color: #f5f5f5;
}

.blog-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    z-index: 2;
}

.blog-thumbnail:hover img {
    transform: scale(1.05);
}

/* Thumbnail placeholder and loading styles */
.blog-thumbnail-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.blog-thumbnail-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    text-align: center;
    padding: 20px;
}

.blog-thumbnail-error i {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.7;
}

.blog-thumbnail-error span {
    font-size: 0.9rem;
}

/* Blog content styles */
.blog-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-title {
    font-size: clamp(1rem, 2.8vw, 1.2rem);
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
    transition: color 0.3s ease;
    min-height: 2.4em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card:hover .blog-title {
    color: var(--primary-color);
}

.blog-meta {
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    color: var(--text-secondary, #666);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.blog-meta .date {
    display: flex;
    align-items: center;
}

.blog-meta .date i {
    margin-right: 6px;
    opacity: 0.7;
}

.blog-preview {
    color: var(--light-text);
    font-size: clamp(0.85rem, 2.2vw, 0.95rem);
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-top: auto;
    flex-grow: 1;
}

/* Blog Popup */
.blog-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
}

.blog-popup {
    position: relative;
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    animation: popupFadeIn 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.blog-popup-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.blog-popup-header {
    position: relative;
    width: 100%;
}

.blog-popup-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.blog-popup-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    pointer-events: none;
}

.blog-popup-scroll-container {
    overflow-y: auto;
    max-height: calc(90vh - 300px);
    padding-bottom: 20px;
}

.blog-popup-content-wrapper {
    padding: 40px 50px;
    position: relative;
}

.blog-popup-title {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    color: var(--text-primary, #333);
    line-height: 1.2;
    font-weight: 700;
}

.blog-popup-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-secondary, #666);
    margin-bottom: 2.5rem;
    font-size: 1rem;
    align-items: center;
}

.blog-popup-meta span {
    display: flex;
    align-items: center;
}

.blog-popup-meta span.category {
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
    color: #555;
}

.blog-popup-meta span.date {
    display: flex;
    align-items: center;
}

.blog-popup-meta span.date i {
    margin-right: 6px;
    opacity: 0.7;
}

.blog-popup-content {
    line-height: 1.9;
    color: var(--text-color, #333);
    font-size: 1.1rem;
}

.blog-popup-content p {
    margin-bottom: 1.8rem;
}

.blog-popup-content h1,
.blog-popup-content h2,
.blog-popup-content h3 {
    margin: 2.5rem 0 1.2rem;
    line-height: 1.3;
}

.blog-popup-content ul,
.blog-popup-content ol {
    margin: 1.5rem 0;
    padding-left: 2.5rem;
}

.blog-popup-content li {
    margin-bottom: 0.8rem;
}

.blog-popup-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 2rem 0;
}

.blog-popup-content blockquote {
    border-left: 4px solid #ddd;
    padding-left: 20px;
    margin-left: 0;
    color: #555;
    font-style: italic;
}

.blog-popup-content code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

.blog-popup-content pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.blog-popup-content pre code {
    background: none;
    padding: 0;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .blog-popup-content-wrapper {
        padding: 30px 40px;
    }
    
    .blog-popup-title {
        font-size: 2rem;
    }
    
    .blog-popup-image {
        height: 250px;
    }
    
    .blog-popup .blog-thumbnail-placeholder {
        height: 250px;
    }
    
    .blog-popup-scroll-container {
        max-height: calc(90vh - 250px);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .blog-popup-image {
        height: 200px;
    }
    
    .blog-popup .blog-thumbnail-placeholder {
        height: 200px;
    }
    
    .blog-popup-scroll-container {
        max-height: calc(90vh - 200px);
    }
    
    .blog-popup-content-wrapper {
        padding: 25px 30px;
    }
    
    .blog-popup-title {
        font-size: 1.7rem;
    }
    
    .blog-popup-content {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .podcast-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* Ensure cards maintain height on mobile */
    .blog-card, .podcast-card {
        height: auto;
        min-height: 380px;
    }
    
    /* Blog popup styles */
    .blog-popup-content-wrapper {
        padding: 20px;
    }
    
    .blog-popup-title {
        font-size: 1.5rem;
    }
    
    .blog-popup-image {
        height: 180px;
    }
    
    .blog-popup .blog-thumbnail-placeholder {
        height: 180px;
    }
    
    .blog-popup-scroll-container {
        max-height: calc(90vh - 180px);
    }
}

/* Videos Section */
.videos {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.videos h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    position: relative;
}

.videos h2:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

#video-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
    width: 100%;
}

.video-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.6s ease-out forwards;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    cursor: pointer;
    background-color: #f0f0f0;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    z-index: 2;
}

.video-thumbnail:hover img {
    transform: scale(1.05);
}

/* Thumbnail placeholder and loading styles */
.thumbnail-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.thumbnail-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    text-align: center;
    padding: 20px;
}

.thumbnail-error i {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.7;
}

.thumbnail-error span {
    font-size: 0.9rem;
}

/* Play button overlay */
.video-thumbnail::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 30px;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 3;
}

.video-thumbnail:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-content {
    padding: 20px;
}

.video-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: clamp(1rem, 2.8vw, 1.2rem);
    color: #333;
}

.video-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.video-meta span {
    margin-right: 15px;
}

.video-description {
    color: var(--light-text);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.video-popup {
    position: relative;
    width: 85%;
    max-width: 1000px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto;
}

.video-iframe-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    margin: 0;
    overflow: hidden;
}

.video-responsive-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.video-responsive-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block; /* Ensure iframe is displayed as block */
}

.video-popup-headline {
    background: #1a1a1a;
    color: white;
    padding: 20px 25px;
    border-top: 1px solid #333;
    width: 100%;
}

.video-popup-headline h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #fff;
}

.video-popup-headline p {
    font-size: 1rem;
    line-height: 1.5;
    color: #ccc;
    margin-bottom: 0;
}

.video-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-popup-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .video-popup {
        width: 90%;
        max-width: 900px;
    }
}

@media (max-width: 768px) {
    .video-popup {
        width: 95%;
    }
    
    .video-popup-headline {
        padding: 15px 20px;
    }
    
    .video-popup-headline h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .video-popup-headline p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .video-popup-overlay {
        padding: 10px;
    }
    
    .video-popup {
        width: 100%;
    }
    
    .video-popup-headline {
        padding: 12px 15px;
    }
    
    .video-popup-headline h3 {
        font-size: 1.1rem;
    }
    
    .video-popup-headline p {
        font-size: 0.9rem;
    }
}

/* Show More Button */
.show-more-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px auto;
}

.show-more-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
    min-width: 200px;
    justify-content: center;
}

.show-more-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
}

.show-more-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.show-more-btn:hover i {
    transform: translateY(3px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .show-more-btn {
        width: 100%;
        justify-content: center;
    }
} 

/* Prevent body scroll when popup is open */
body.popup-open {
    overflow: hidden;
    height: 100%;
    width: 100%;
    position: fixed;
    top: calc(-1 * var(--scroll-position));
    left: 0;
}

/* Expertise Timeline Section */
.expertise-section {
    margin-top: 2rem;
    position: relative;
}

.expertise-section h3 {
    font-size: var(--h3-font-size);
    margin-bottom: 1.5rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
    line-height: 1.3;
    word-wrap: break-word;
    max-width: 100%;
}

/* For Chinese language, make the expertise heading text responsive */
html[lang="zh"] .expertise-section h3 {
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    white-space: normal;
    overflow-wrap: break-word;
    hyphens: auto;
}

.expertise-section h3:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.expertise-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
}

.expertise-item {
    display: flex;
    align-items: center;
    position: relative;
    transition: transform 0.3s ease;
}

.expertise-item:hover {
    transform: translateX(10px);
}

.expertise-bar-container {
    flex-grow: 1;
    height: 40px;
    background-color: var(--section-bg);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.expertise-bar {
    height: 100%;
    border-radius: 8px;
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 15px;
    color: white;
    font-weight: 500;
    transition: width 1.5s ease-in-out;
    width: 0;
    font-size: clamp(0.8rem, 2vw, 1rem);
}

.expertise-bar.animate {
    /* Animation handled by JavaScript */
}

.expertise-label {
    width: 220px;
    font-weight: 600;
    padding-right: 15px;
    text-align: right;
    color: var(--text-color);
    font-size: clamp(0.85rem, 2.2vw, 1rem);
}

.expertise-years {
    position: absolute;
    right: 15px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

.expertise-icon {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Expertise colors - updated with harmonious gradients */
.semiconductor .expertise-bar {
    background: linear-gradient(90deg, var(--semiconductor-color), #a5b4fc);
}

.ml .expertise-bar {
    background: linear-gradient(90deg, var(--ml-color), #c4b5fd);
}

.app-dev .expertise-bar {
    background: linear-gradient(90deg, var(--app-dev-color), #93c5fd);
}

.sinology .expertise-bar {
    background: linear-gradient(90deg, var(--sinology-color), #fdba74);
}

.teaching .expertise-bar {
    background: linear-gradient(90deg, var(--teaching-color), #7dd3fc);
}

.electronics .expertise-bar {
    background: linear-gradient(90deg, var(--electronics-color), #5eead4);
}

.management .expertise-bar {
    background: linear-gradient(90deg, var(--management-color), #67e8f9);
}

.llm .expertise-bar {
    background: linear-gradient(90deg, var(--llm-color), #c4b5fd);
}

.zen .expertise-bar {
    background: linear-gradient(90deg, var(--zen-color), #86efac);
}

/* Expertise section responsive styles */
@media (max-width: 768px) {
    .expertise-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .expertise-timeline {
        gap: 1rem;
    }
    
    .expertise-label {
        width: 100%;
        text-align: left;
        padding-right: 0;
        margin-bottom: 5px;
        font-size: 0.9rem;
    }
    
    .expertise-bar-container {
        width: 100%;
        height: 44px;
    }
    
    .expertise-item:hover {
        transform: translateX(0);
    }
    
    .expertise-bar {
        padding-left: 10px;
        font-size: 0.85rem;
    }
    
    .expertise-years {
        right: 10px;
        font-size: 0.85rem;
        font-weight: 600;
    }
    
    .expertise-icon {
        font-size: 1rem;
        margin-right: 6px;
    }
} 

@media (max-width: 480px) {
    .expertise-bar-container {
        height: 48px;
    }
    
    .expertise-bar {
        padding-left: 8px;
        font-size: 0.8rem;
        word-wrap: break-word;
        display: flex;
        align-items: center;
    }
    
    .expertise-years {
        right: 8px;
        font-size: 0.8rem;
        background-color: rgba(0, 0, 0, 0.2);
        padding: 2px 6px;
        border-radius: 4px;
    }
    
    /* Ensure text doesn't overflow */
    .expertise-bar span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 60%;
    }
}

/* Blog Popup Thumbnail Placeholder */
.blog-popup .blog-thumbnail-placeholder {
    position: relative;
    width: 100%;
    height: 300px;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.blog-popup .loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

.blog-popup .blog-thumbnail-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    text-align: center;
    padding: 40px;
}

.blog-popup .blog-thumbnail-error i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.7;
}

.blog-popup .blog-thumbnail-error span {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Mobile-specific fixes for Professional Expertise section */
@media screen and (max-width: 380px) {
    /* Increase height for more vertical space */
    .expertise-bar-container {
        height: 52px;
    }
    
    /* Improve text spacing and prevent overlap */
    .expertise-bar {
        padding-left: 6px;
        font-size: 0.75rem;
    }
    
    /* Make years of experience more visible */
    .expertise-years {
        right: 6px;
        font-size: 0.75rem;
        background-color: rgba(0, 0, 0, 0.25);
        padding: 2px 5px;
        border-radius: 4px;
        font-weight: 600;
    }
    
    /* Adjust icon size */
    .expertise-icon {
        font-size: 0.85rem;
        margin-right: 4px;
    }
    
    /* Ensure text doesn't get cut off */
    .expertise-bar span {
        max-width: 50%;
    }
    
    /* Reduce label font size */
    .expertise-label {
        font-size: 0.85rem;
        margin-bottom: 3px;
    }
    
    /* Special handling for long titles */
    .expertise-section h3 {
        font-size: 1.05rem;
        word-break: break-word;
        width: 100%;
        display: block;
    }
    
    html[lang="zh"] .expertise-section h3 {
        font-size: 0.9rem;
        line-height: 1.5;
        word-break: break-word;
    }
    
    /* Special handling for longer expertise names */
    .zen .expertise-label {
        font-size: 0.8rem;
        line-height: 1.2;
    }
}

/* iPhone SE and other very small screens */
@media screen and (max-width: 320px) {
    .expertise-bar-container {
        height: 56px;
    }
    
    .expertise-bar {
        padding-left: 5px;
        font-size: 0.7rem;
    }
    
    .expertise-years {
        font-size: 0.7rem;
        padding: 1px 4px;
    }
    
    .expertise-icon {
        font-size: 0.8rem;
        margin-right: 3px;
    }
    
    .expertise-bar span {
        max-width: 45%;
    }
    
    /* Adjust expertise title for very small screens */
    .expertise-section h3 {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    html[lang="zh"] .expertise-section h3 {
        font-size: 0.85rem;
    }
}

/* Global section heading styles */
section h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    position: relative;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Make sure the featured section headings have consistent underline style */
.courses h2::after,
.projects h2::after,
.videos h2::after,
.podcasts h2::after,
.blog h2::after {
    width: 60px;
}

/* Auth0 Login/Logout Buttons */
#login-btn, #logout-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: clamp(6px, 1.5vw, 8px) clamp(10px, 2.5vw, 16px);
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.75rem, 1.8vw, 0.9rem);
    transition: background-color 0.3s;
    margin-left: 0;
    white-space: nowrap;
}

#login-btn:hover, #logout-btn:hover {
    background-color: #45a049;
}

/* Mobile responsive adjustments for auth buttons */
@media (max-width: 768px) {
    #login-btn, #logout-btn {
        margin-top: 10px;
        width: 100%;
    }
} 

/* Profile Page Styles */
.profile-section {
    padding: 100px 0;
    min-height: 80vh;
}

.loading {
    text-align: center;
    font-size: 18px;
    margin: 30px 0;
}

.profile-content {
    display: flex;
    justify-content: center;
}

.profile-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    overflow: hidden;
}

.profile-header {
    background-color: #f5f5f5;
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.profile-picture {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.profile-header h3 {
    margin: 10px 0 5px;
    font-size: 24px;
}

.profile-header p {
    color: #666;
    margin: 0;
}

.profile-body {
    padding: 30px;
}

.profile-body h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

.profile-actions {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.profile-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    transition: background-color 0.3s;
}

.profile-btn:hover {
    background-color: #45a049;
} 

/* Error container styles */
.error-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.error-icon {
    color: #e74c3c;
    font-size: 48px;
    margin-bottom: 20px;
}

#error-message {
    color: #555;
    margin-bottom: 25px;
}

/* User metadata styles */
.user-metadata {
    margin-top: 15px;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
}

.metadata-item {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.metadata-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Secondary button style */
.profile-btn.secondary {
    background-color: #6c757d;
    margin-left: 10px;
}

.profile-btn.secondary:hover {
    background-color: #5a6268;
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 1rem;
}

.tab-btn {
    padding: 0.5rem 1.5rem;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--light-text);
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
}

.tab-btn:after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active:after {
    transform: scaleX(1);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@media (max-width: 480px) {
    .profile-tabs {
        flex-direction: column;
        gap: 0.5rem;
        border-bottom: none;
        padding-bottom: 0;
    }

    .tab-btn {
        width: 100%;
        padding: 0.75rem;
        text-align: center;
        border: 1px solid #e5e7eb;
        border-radius: 5px;
    }

    .tab-btn:after {
        display: none;
    }

    .tab-btn.active {
        background: var(--primary-color);
        color: white;
    }
} 

/* Profile link styling */
#profile-link a {
    color: var(--primary-color) !important;
    font-weight: 600 !important;
}

#profile-link a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    #profile-link a {
        margin: 10px 0;
        text-align: center;
        padding: 8px;
    }
} 

/* Podcast Section */
.podcasts {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.podcasts h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    position: relative;
}

.podcasts h2:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.podcast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.podcast-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
    cursor: pointer;
}

.podcast-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.podcast-thumbnail {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background-color: #f0f0f0;
}

.podcast-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.podcast-thumbnail:hover img {
    transform: scale(1.05);
}

.podcast-content {
    padding: 20px;
}

.podcast-content h3 {
    margin: 0 0 10px;
    font-size: clamp(1rem, 2.8vw, 1.2rem);
    font-weight: 600;
    color: #333;
}

.podcast-meta {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    color: #777;
}

.podcast-meta span {
    margin-right: 15px;
}

.podcast-description {
    font-size: clamp(0.85rem, 2.2vw, 0.95rem);
    line-height: 1.5;
    color: #555;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Podcast Popup */
.podcast-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow-y: auto;
    padding: 20px 0;
}

.podcast-popup {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    margin: auto;
}

.podcast-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s;
}

.podcast-popup-close:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.podcast-content-container {
    padding: 30px;
    overflow-y: auto;
    max-height: calc(85vh - 50px);
}

.podcast-image-container {
    width: 100%;
    max-width: 300px;
    margin: 0 auto 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.podcast-image-container img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 300px;
    object-fit: cover;
}

.podcast-player-container {
    width: 100%;
    max-width: 300px;
    margin: 0 auto 30px;
}

.podcast-player-container audio {
    width: 100%;
    border-radius: 30px;
    height: 40px;
}

.podcast-info {
    margin-bottom: 30px;
}

.podcast-info h3 {
    font-size: clamp(1.4rem, 3.5vw, 1.8rem);
    font-weight: 600;
    margin: 0 0 15px;
    color: #333;
}

#podcast-popup-meta {
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    color: #777;
    margin-bottom: 15px;
}

#podcast-popup-description {
    font-size: clamp(0.85rem, 2.2vw, 1rem);
    line-height: 1.6;
    color: #555;
}

/* Responsive adjustments for podcast section */
@media (max-width: 768px) {
    .podcast-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .podcast-popup {
        width: 95%;
        max-height: 80vh;
    }
    
    .podcast-content-container {
        padding: 20px;
        max-height: calc(80vh - 40px);
    }
    
    .podcast-image-container {
        max-width: 200px;
    }
    
    .podcast-image-container img {
        max-height: 200px;
    }
    
    .podcast-info h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .podcast-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* Ensure cards maintain height on mobile */
    .podcast-card {
        height: auto;
        min-height: 380px;
    }
    
    /* Improve popup for very small screens */
    .podcast-popup {
        width: 100%;
        max-height: 85vh;
        margin: 0 auto;
    }
    
    .podcast-content-container {
        padding: 15px;
        max-height: calc(85vh - 30px);
    }
    
    .podcast-image-container {
        max-width: 150px;
    }
    
    .podcast-image-container img {
        max-height: 150px;
    }
    
    .podcast-player-container {
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .podcast-info h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    #podcast-popup-meta {
        font-size: 14px;
        margin-bottom: 10px;
    }
}

/* Courses Section */
.courses {
    padding: 80px 0;
    background: var(--main-bg);
}

.courses h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    position: relative;
}

.courses h2:after {
    content: '';
    display: block;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.course-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.course-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: clamp(1rem, 2.8vw, 1.2rem);
}

.course-content p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-size: clamp(0.85rem, 2.2vw, 0.95rem);
}

.course-meta {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--secondary-text);
    font-size: clamp(0.75rem, 2vw, 0.9rem);
}

.course-meta i {
    margin-right: 5px;
    color: var(--primary-color);
}

.course-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.course-tags span {
    background: var(--section-bg);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    font-weight: 500;
}

/* Projects Section */
.projects {
    padding: 6rem 0;
}

.projects h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

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

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--section-bg);
}

.contact h2 {
    position: relative;
    display: block;
    margin-bottom: 2.5rem;
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#contact-form input,
#contact-form textarea {
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    font-family: inherit;
}

#contact-form textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: var(--secondary-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    background: var(--text-color);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .skill-tags {
        justify-content: center;
    }
} 

.three-line-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    line-height: 1.5;
    max-height: 4.5em; /* 3 lines × 1.5 line-height */
}

.course-description {
    color: #666;
    font-size: clamp(0.85rem, 2.2vw, 0.95rem);
    margin-top: 8px;
    line-height: 1.5;
}

/* AI Super Individual Roadmap Section */
.ai-roadmap {
    background-color: #f9f9ff;
    padding: 80px 0;
}

.roadmap-content {
    margin-top: 40px;
}

.roadmap-intro {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    line-height: 1.6;
    color: #555;
}

.roadmap-stages {
    margin-bottom: 60px;
}

.roadmap-stages h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: var(--h3-font-size);
}

.stage-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.stage-container::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 10%;
    width: 80%;
    height: 4px;
    background: linear-gradient(90deg, #4a6bdf, #37cfdc);
    z-index: 1;
}

.stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 180px;
    margin: 0 auto;
}

.stage-dot {
    width: 24px;
    height: 24px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.stage-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-color);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
}

.stage-desc {
    font-size: clamp(0.8rem, 1.8vw, 0.9rem);
    color: var(--text-color);
    opacity: 0.9;
    line-height: 1.4;
}

.stage:nth-child(2) .stage-dot {
    background-color: #5a7ae4;
}

.stage:nth-child(3) .stage-dot {
    background-color: #6a89e9;
}

.stage:nth-child(4) .stage-dot {
    background-color: #7998ee;
}

.stage:nth-child(5) .stage-dot {
    background-color: #89a7f3;
}

/* Abilities Section */
.abilities-section h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
}

.abilities-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
}

.ability-card {
    flex: 1;
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ability-card:nth-child(1) {
    border-top: 4px solid #4a9bdf;
}

.ability-card:nth-child(2) {
    border-top: 4px solid #f7a35c;
}

.ability-card:nth-child(3) {
    border-top: 4px solid #7ed56f;
}

.ability-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.ability-title {
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.ability-list {
    list-style: none;
    padding: 0;
}

.ability-list li {
    position: relative;
    padding: 10px 0 10px 30px;
    border-bottom: 1px solid #f0f0f0;
}

.ability-list li:last-child {
    border-bottom: none;
}

.ability-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

.ability-card:nth-child(1) .ability-list li::before {
    color: #4a9bdf;
}

.ability-card:nth-child(2) .ability-list li::before {
    color: #f7a35c;
}

.ability-card:nth-child(3) .ability-list li::before {
    color: #7ed56f;
}

/* Responsive styles */
@media (max-width: 900px) {
    .stage-container::before {
        left: 5%;
        width: 90%;
    }
}

@media (max-width: 768px) {
    .abilities-container {
        flex-direction: column;
    }
    
    .stage-container {
        flex-direction: column;
        align-items: flex-start;
        margin-left: 20px;
    }
    
    .stage-container::before {
        top: 0;
        left: 12px;
        width: 4px;
        height: 100%;
    }
    
    .stage {
        flex-direction: row;
        width: 100%;
        margin-bottom: 30px;
    }
    
    .stage-dot {
        margin-right: 15px;
        margin-bottom: 0;
    }
} 

/* Learning Resources Section */
.learning-resources {
    padding: 80px 0;
    background-color: #fff;
}

.resources-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 40px;
}

.resource-column {
    flex: 1;
    width: 48%;
    max-width: 48%;
}

.resource-category {
    text-align: center;
    margin-bottom: 30px;
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: #333;
    position: relative;
    padding-bottom: 15px;
}

.resource-category::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #8e44ad, #3498db);
}

.resource-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.resource-item {
    display: flex;
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}

.resource-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.resource-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    max-width: 50px;
    min-height: 50px;
    max-height: 50px;
    aspect-ratio: 1/1;
    box-sizing: border-box;
    border-radius: 50%;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.resource-icon i {
    color: white;
    font-size: 20px;
}

.resource-info h4 {
    margin: 0 0 10px;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    color: #333;
}

.resource-info p {
    margin: 0;
    color: #666;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    line-height: 1.5;
}

.resources-cta {
    text-align: center;
    margin-top: 50px;
}

.resources-button {
    display: inline-block;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(106, 17, 203, 0.2);
}

.resources-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(106, 17, 203, 0.3);
}

/* Colors for different resource types */
.resource-column:nth-child(1) .resource-icon {
    background: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%);
}

.resource-column:nth-child(2) .resource-icon {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

/* Responsive styles */
@media (max-width: 768px) {
    .resources-container {
        flex-direction: column;
        align-items: center;
    }
    
    .resource-column {
        width: 100% !important;
        max-width: 500px;
        margin-bottom: 30px;
    }
    
    .resource-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        max-width: 50px;
        min-height: 50px;
        max-height: 50px;
        flex-shrink: 0;
    }
    
    .resource-category {
        font-size: clamp(1rem, 2.8vw, 1.2rem);
    }
    
    .resource-info h4 {
        font-size: clamp(0.85rem, 2.2vw, 1rem);
    }
    
    .resource-info p {
        font-size: clamp(0.75rem, 1.8vw, 0.85rem);
    }
}

/* Enhance responsive typography throughout the site */
@media (max-width: 768px) {
    body {
        line-height: 1.5;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    section {
        padding: 3rem 0 !important;
    }
    
    p {
        font-size: clamp(0.9rem, 2.2vw, 1rem);
    }
    
    .what-to-expect h3 {
        font-size: clamp(1.1rem, 3vw, 1.3rem);
    }
    
    .expect-list li {
        font-size: clamp(0.85rem, 2.2vw, 1rem);
    }
    
    .nav-links a {
        font-size: 0.9rem;
    }
    
    .course-content h3, .project-content h3, .blog-title, .video-content h3, .podcast-content h3 {
        font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    }
    
    .course-content p, .project-content p, .blog-preview, .video-description, .podcast-description {
        font-size: clamp(0.8rem, 2vw, 0.9rem);
    }
    
    .course-meta, .podcast-meta, .blog-meta, .project-tags span, .course-tags span {
        font-size: clamp(0.7rem, 1.8vw, 0.85rem);
    }
}

@media (max-width: 480px) {
    html {
        --base-font-size: 14px;
    }
    
    .about-text p {
        font-size: 0.95rem;
    }
    
    .what-to-expect h3 {
        font-size: 1.2rem;
    }
    
    .ability-title {
        font-size: clamp(1rem, 5vw, 1.2rem);
    }
    
    .ability-list li {
        font-size: clamp(0.8rem, 4vw, 0.9rem);
        padding: 8px 0 8px 25px;
    }
    
    .resource-category {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    }
    
    .resource-info h4 {
        font-size: clamp(0.8rem, 2vw, 0.95rem);
    }
    
    .resource-info p {
        font-size: clamp(0.7rem, 1.5vw, 0.8rem);
    }
    
    .resource-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        max-width: 40px;
        min-height: 40px;
        max-height: 40px;
    }
    
    .resource-icon i {
        font-size: 16px;
    }
}

@media (max-width: 380px) {
    html {
        --base-font-size: 13px;
    }
    
    h2 {
        margin-bottom: 2rem !important;
    }
    
    .expertise-bar {
        font-size: 0.75rem;
    }
    
    .expertise-years {
        font-size: 0.75rem;
    }
    
    .resource-category {
        font-size: clamp(0.85rem, 2.2vw, 1rem);
    }
    
    .resource-info h4 {
        font-size: clamp(0.75rem, 1.8vw, 0.9rem);
    }
    
    .resource-info p {
        font-size: clamp(0.65rem, 1.4vw, 0.75rem);
    }
}

@media (max-width: 320px) {
    html {
        --base-font-size: 12px;
    }
    
    .expertise-label {
        font-size: 0.8rem;
    }
    
    .expertise-bar {
        font-size: 0.7rem;
    }
    
    .resource-icon {
        width: 35px;
        height: 35px;
        min-width: 35px;
        max-width: 35px;
        min-height: 35px;
        max-height: 35px;
        margin-right: 12px;
    }
    
    .resource-icon i {
        font-size: 14px;
    }
    
    .resource-info h4 {
        font-size: clamp(0.7rem, 1.6vw, 0.85rem);
        margin-bottom: 6px;
    }
    
    .resource-info p {
        font-size: clamp(0.6rem, 1.3vw, 0.7rem);
        line-height: 1.4;
    }
} 

/* Special fix for Chinese professional background title */
[data-i18n="professionalExpertise"] {
    font-size: clamp(0.85rem, 2.3vw, 1.1rem);
    word-break: break-word;
    line-height: 1.4;
    max-width: 100%;
    display: inline-block;
    white-space: normal;
}

@media (max-width: 480px) {
    [data-i18n="professionalExpertise"] {
        font-size: clamp(0.8rem, 2vw, 0.95rem);
        line-height: 1.5;
    }
}

/* For very small screens */
@media (max-width: 480px) {
    .resource-column {
        width: 100%;
        max-width: 100%;
    }
    
    .resource-item {
        min-height: auto;
        padding: 15px;
    }
    
    .resource-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        max-width: 40px;
        min-height: 40px;
        max-height: 40px;
        margin-right: 15px;
    }
}

.courses h2,
.projects h2,
.videos h2,
.podcasts h2,
.blog h2,
.contact h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

@media (max-width: 480px) {
    #login-btn, #logout-btn {
        padding: clamp(4px, 1vw, 6px) clamp(8px, 2vw, 10px);
        font-size: clamp(0.7rem, 1.5vw, 0.8rem);
    }
}

@media (max-width: 768px) {
    h2[data-i18n='userProfile'] {
        font-size: 16px; /* Adjust font size */
        margin-top: 20px; /* Add more top margin to push it down */
    }
}

/* Custom Social Icons for RedBook and WeChat */
.custom-social-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 5px;
}

.social-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.social-links i {
    font-size: 24px;
}

.social-label {
    position: absolute;
    bottom: -25px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.social-links a:hover .social-label {
    opacity: 1;
}

.redbook-link, .wechat-link {
    position: relative;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .social-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .social-links a {
        margin: 5px;
    }
}

/* Chinese heading style */
.cn-heading {
    color: var(--primary-color);
    margin-top: 10px;
    margin-bottom: 30px;
    position: relative;
}

.cn-heading:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Social Platform Cards */
.social-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-bottom: 50px;
}

.platform-card {
    display: flex;
    flex-direction: column;
    width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
}

.platform-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.platform-image {
    width: 100%;
    height: 300px;
    object-fit: contain;
    background-color: #f8f8f8;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.platform-info {
    padding: 20px;
    text-align: center;
}

.platform-info h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.platform-info p {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.platform-link {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.platform-link:hover {
    background-color: #3a8a3d;
}

/* Responsive styles for platform cards */
@media (max-width: 768px) {
    .social-platforms {
        flex-direction: column;
        align-items: center;
    }
    
    .platform-card {
        width: 100%;
        max-width: 350px;
    }
}

/* Add these styles at the end of the file */

/* 服务部分通用样式 */
.service-section {
    padding: 6rem 0;
    background-color: #f9f9f9;
    position: relative;
}

.service-section:nth-child(odd) {
    background-color: #fff;
}

.service-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1.5rem;
    width: 100%;
}

.service-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: block;
    margin-left: auto;
    margin-right: auto;
    font-weight: 700;
    text-align: center;
}

.service-header h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.service-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: var(--text-color);
    opacity: 0.9;
    max-width: 800px;
    margin: 1.5rem auto 0;
    text-align: center;
    line-height: 1.6;
}

.service-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.service-content.reverse {
    flex-direction: row-reverse;
}

.service-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.service-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.service-image img:hover {
    transform: scale(1.03);
}

.service-info {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.service-benefits h3, 
.service-offerings h3 {
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
    display: table;
    width: 100%;
}

.benefits-list li {
    margin-bottom: 1rem;
    display: table-row;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.benefits-list li .feature-column {
    display: table-cell;
    width: 1%;
    white-space: nowrap;
    padding-right: 1rem;
    vertical-align: top;
}

.benefits-list li .feature-column i {
    margin-right: 0.8rem;
}

.benefits-list li .description-column {
    display: table-cell;
    width: auto;
    vertical-align: top;
    padding-left: 0.5rem;
}

.benefits-list i {
    color: var(--primary-color);
    margin-top: 0.2rem;
}

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

.offering-card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offering-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.offering-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.offering-card h4 {
    font-size: clamp(1rem, 2.2vw, 1.1rem);
    margin-bottom: 0.8rem;
    color: var(--dark-color);
}

.offering-card p {
    font-size: clamp(0.8rem, 1.8vw, 0.9rem);
    color: var(--text-color);
}

.service-section .cta-button {
    align-self: flex-start;
    margin-top: 1rem;
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.service-section .cta-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .service-content {
        flex-direction: column;
    }
    
    .service-content.reverse {
        flex-direction: column;
    }
    
    .service-image {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .offerings-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .offerings-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .benefits-list {
        display: block;
    }
    
    .benefits-list li {
        display: block;
        margin-bottom: 1rem;
    }
    
    .benefits-list li .feature-column {
        display: block;
        width: auto;
        white-space: normal;
        padding-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .benefits-list li .description-column {
        display: block;
        width: auto;
        padding-left: 0;
    }
}

@media (max-width: 576px) {
    .service-section {
        padding: 3rem 0;
    }
    
    .offerings-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact options styles */
.contact-options {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.contact-option-card {
    flex: 1;
    background-color: #fff;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact h2 {
    position: relative;
    display: block;
    margin-bottom: 2.5rem;
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.option-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-option-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.contact-option-card p {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex: 1;
}

.option-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.option-link:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Style for the new select dropdown */
#inquiry-type {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', 'Noto Sans SC', sans-serif;
    font-size: 16px;
    color: var(--text-color);
    background-color: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8.825l-6-6 1.4-1.4 4.6 4.6 4.6-4.6 1.4 1.4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
}

/* Responsive styles for contact options */
@media (max-width: 992px) {
    .contact-options {
        flex-direction: column;
    }
    
    .contact-option-card {
        width: 100%;
        max-width: 100%;
    }
}

/* Section description styles */
.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--text-color);
    line-height: 1.6;
    position: relative;
    padding: 0 1rem;
}

/* Image placeholder styling */
.service-image.placeholder {
    background-color: #f2f2f2;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    position: relative;
    overflow: hidden;
}

.service-image.placeholder::before {
    content: attr(data-placeholder);
    font-size: 1.2rem;
    color: #888;
    text-align: center;
    padding: 2rem;
}

.contact-option-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.service-content-centered {
    display: flex;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.service-content-centered .service-info {
    max-width: 800px;
    width: 100%;
}

.service-content-centered .cta-button {
    margin: 2rem auto 0;
    display: block;
    text-align: center;
}


