:root {
    --fudan-red: #922043;
    --fudan-red-light: #8b0014;
    --fudan-gold: #d4a23a;
    --fudan-gold-light: #f6da89;
    --fudan-gold-gradient: linear-gradient(135deg, #d4a23a 0%, #f6da89 50%, #b27b19 100%);
    --text-dark: #222222;
    --text-gray: #444444;
    --text-light: #666666;
    --bg-light: #f9f9f9;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.text-red {
    color: var(--fudan-red);
}

.text-gold {
    color: var(--fudan-gold);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--fudan-red);
    color: var(--white);
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--fudan-red);
    cursor: pointer;
}

.btn:hover {
    background-color: transparent;
    border-color: var(--fudan-red);
    color: var(--fudan-red);
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-inner {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-dark);
    text-transform: uppercase;
}

.nav-menu a:hover {
    color: var(--fudan-red);
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 120px 0 80px;
    background-image: linear-gradient(rgba(146, 32, 67, 0.9), rgba(34, 34, 34, 0.8)), url('../img/background.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.stat-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 20px 30px;
    border-left: 4px solid var(--fudan-gold);
    max-width: 300px;
    text-align: left;
}

.stat-box strong {
    display: block;
    color: var(--fudan-gold);
    font-size: 20px;
    margin-bottom: 5px;
}

.stat-box span {
    font-size: 14px;
    opacity: 0.9;
}

/* Section Common */
.section {
    padding: 80px 0;
}

.section-bg {
    background-color: var(--bg-light);
}

.section-title {
    font-size: 32px;
    color: var(--fudan-red);
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--fudan-gold-gradient);
}

.section-subtitle {
    text-align: center;
    margin-top: -30px;
    margin-bottom: 50px;
    color: var(--text-light);
}

/* Value Prop (Integrate/Attain) */
.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.value-card {
    background: var(--white);
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-top: 3px solid var(--fudan-red);
    transition: transform 0.3s;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-card h3 {
    font-size: 20px;
    color: var(--fudan-red);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.value-card h3 i {
    color: var(--fudan-gold);
}

.value-card p {
    color: var(--text-gray);
    font-size: 15px;
}

.dual-heading {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    font-size: 24px;
    font-weight: bold;
    color: var(--text-dark);
}

.dual-heading span {
    color: var(--fudan-red);
    position: relative;
}

/* Why Choose */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-box {
    text-align: center;
    padding: 30px 20px;
}

.feature-icon-lg {
    font-size: 48px;
    color: var(--fudan-gold);
    margin-bottom: 20px;
    display: block;
}

.feature-box h3 {
    margin-bottom: 15px;
    color: var(--fudan-red);
}

/* Curriculum */
.curriculum-flow {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 50px;
}

.flow-step {
    flex: 1;
    min-width: 150px;
    text-align: center;
    position: relative;
}

.flow-step h4 {
    color: var(--fudan-red);
    margin-bottom: 10px;
    font-size: 18px;
}

.flow-step p {
    font-size: 13px;
    color: var(--text-light);
}

.curriculum-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.curriculum-category h4 {
    background: var(--fudan-red);
    color: var(--white);
    padding: 10px 15px;
    margin-bottom: 15px;
    font-size: 16px;
    display: inline-block;
}

.curriculum-category ul li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.testi-card {
    background: var(--white);
    padding: 40px;
    border-top: 5px solid var(--fudan-gold);
    border-left: none;
    /* Changed to top border for centered layout */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.testi-author {
    display: flex;
    flex-direction: row;
    align-items: center;
    /* Vertically center the split layout */
    text-align: left;
    gap: 40px;
    /* Spacious gap */
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.testi-identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 180px;
    /* Fixed width for avatar column */
    flex-shrink: 0;
    gap: 15px;
}

.testi-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--fudan-gold);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.testi-identity h4 {
    color: var(--fudan-red);
    font-size: 19px;
    font-weight: 700;
    margin: 0;
    text-align: center;
    line-height: 1.4;
}

.testi-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.testi-title {
    font-size: 15px;
    color: var(--text-dark);
    display: block;
    margin-bottom: 3px;
    font-weight: 500;
}

.testi-batch {
    font-size: 14px;
    color: var(--text-light);
    display: block;
    margin-bottom: 8px;
}

.testi-location {
    font-size: 13px;
    font-weight: bold;
    color: var(--fudan-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
}

.testi-content {
    font-style: italic;
    color: var(--text-gray);
    font-size: 16px;
    line-height: 1.8;
}

/* Admissions Table */
.table-container {
    overflow-x: auto;
}

.admission-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.admission-table th,
.admission-table td {
    padding: 15px 20px;
    border: 1px solid #eee;
    text-align: left;
    vertical-align: top;
}

.admission-table th {
    background-color: var(--fudan-red);
    color: var(--white);
    font-weight: 500;
    border-bottom: 4px solid var(--fudan-gold);
    /* Added Gold Border */
}

.admission-table tr:nth-child(even) {
    background-color: #fcfcfc;
}

.admission-table td strong {
    color: var(--fudan-red);
    display: flex;
    align-items: center;
    gap: 8px;
}

.admission-table td strong::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 14px;
    background-color: var(--fudan-gold);
    border-radius: 2px;
}

.admission-note {
    margin-top: 25px;
    padding: 20px;
    background-color: #fffbf0;
    border-left: 4px solid var(--fudan-gold);
    border-radius: 4px;
    font-size: 14px;
    color: var(--text-gray);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.admission-note i {
    color: var(--fudan-gold);
    font-size: 18px;
    margin-top: 2px;
}

.admission-note a {
    color: var(--fudan-red);
    text-decoration: underline;
    font-weight: 500;
}

/* Contact Box */
.contact-box {
    background: var(--fudan-red);
    color: var(--white);
    padding: 50px 60px;
    margin-top: 60px;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(146, 32, 67, 0.15);
}

.contact-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center content */
    gap: 60px;
    /* Increased gap */
}

.contact-info-side {
    text-align: left;
    flex: 1;
    /* Allow text to take remaining space */
    max-width: 600px;
}

.contact-box h3 {
    font-size: 36px;
    /* Increased from 28px */
    margin-bottom: 25px;
    color: var(--fudan-gold);
    display: inline-block;
    border-bottom: 2px solid rgba(212, 162, 58, 0.4);
    padding-bottom: 8px;
}

.contact-details p {
    margin: 12px 0;
    font-size: 16px;
    line-height: 1.8;
}

.contact-phone-group {
    margin-top: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-phone-group strong {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-phone-group i {
    color: var(--fudan-gold);
    font-size: 32px;
    margin-right: 15px;
}

.phone-number {
    font-size: 48px;
    /* Increased from 36px */
    font-weight: 800;
    color: var(--fudan-gold);
    font-family: Impact, "Arial Black", sans-serif;
    letter-spacing: 1px;
    line-height: 1;
}

.contact-note {
    margin-top: 30px;
    padding-top: 20px;
    font-size: 14px;
    opacity: 0.7;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-qr-side {
    flex-shrink: 0;
}

.contact-qr-box {
    background: var(--white);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    width: 220px;
    /* Increased size */
}

.contact-qr-box img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
}

.contact-qr-box span {
    color: var(--fudan-red);
    font-weight: bold;
    font-size: 16px;
    /* Slightly larger text */
    display: block;
}

@media (max-width: 768px) {
    .contact-inner {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .contact-info-side {
        text-align: center;
    }

    .contact-phone-group {
        justify-content: center;
        flex-direction: column;
        gap: 5px;
    }
}

/* Footer */
footer {
    background-color: #333;
    color: #ccc;
    padding: 40px 0;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 768px) {

    /* Header & Nav */
    .header-inner {
        height: auto;
        padding: 15px 0;
        flex-direction: column;
    }

    .nav-menu {
        display: none;
    }

    /* Hero */
    .hero {
        padding-top: 60px;
        /* Reduced from 120px */
        padding-bottom: 40px;
    }

    .hero h1 {
        /* Fixed selector from .hero-content h1 */
        font-size: 28px;
        /* Slightly smaller for better fit */
        margin-top: 0;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .stat-box {
        width: 100%;
        max-width: 400px;
    }

    /* Highlight */
    #highlight {
        margin-top: -50px;
        /* Reduction for mobile */
        padding: 25px 20px;
    }

    .highlight-container {
        justify-content: center;
        gap: 20px;
    }

    .highlight-item {
        width: 100%;
        /* Stack items or rely on wrap */
        justify-content: center;
    }

    .highlight-text {
        text-align: left;
    }

    /* Grids */
    .why-grid,
    .value-grid,
    .testimonial-grid {
        /* Explicitly enforcing 1 col */
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .value-grid {
        grid-template-columns: 1fr;
        /* Override auto-fit */
    }

    /* Testimonials - Split Layout Adaptation */
    .testi-card {
        padding: 30px 20px;
    }

    .testi-author {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .testi-identity {
        width: 100%;
        align-items: center;
    }

    .testi-details {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    /* Contact Box */
    .contact-box {
        padding: 40px 20px;
        margin-top: 40px;
    }

    .contact-inner {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .contact-info-side {
        text-align: center;
        max-width: 100%;
    }

    .contact-phone-group {
        justify-content: center;
        flex-direction: column;
        gap: 10px;
    }

    .contact-qr-side {
        order: -1;
    }

    /* Admission Table Mobile Card View */
    .admission-table,
    .admission-table tbody,
    .admission-table tr,
    .admission-table td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .admission-table thead {
        display: none;
    }

    .admission-table tr {
        margin-bottom: 20px;
        border: 1px solid #eee;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        background: var(--white);
    }

    .admission-table td {
        padding: 15px;
        position: relative;
        text-align: left;
        border: none;
        border-bottom: 1px solid #f9f9f9;
        overflow-wrap: break-word;
    }

    .admission-table td:first-child {
        background-color: var(--fudan-red-light);
        color: var(--white);
    }

    .admission-table td:first-child strong {
        color: var(--white);
    }

    /* Labels */
    .admission-table td:nth-child(2):nth-last-child(2)::before {
        content: "Fudan University EMBA";
        display: block;
        font-size: 12px;
        color: var(--fudan-gold);
        font-weight: bold;
        margin-bottom: 5px;
    }

    .admission-table td:nth-child(3)::before {
        content: "Fudan-Taiwan University EMBA";
        display: block;
        font-size: 12px;
        color: var(--fudan-gold);
        font-weight: bold;
        margin-bottom: 5px;
    }
}

/* Highlight Module Redesign */
#highlight {
    background: var(--white);
    border-radius: 12px;
    padding: 35px 40px;
    margin-top: -100px;
    /* Pull upwards to bridge Hero and Content */
    margin-bottom: 70px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    /* Soft diffuse shadow */
    position: relative;
    z-index: 20;
    /* Ensure it floats above */
    border-bottom: 4px solid var(--fudan-gold);
    /* Gold accent */
}

.highlight-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 18px;
    transition: transform 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-3px);
}

.highlight-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
    border: 1px solid rgba(212, 162, 58, 0.3);
    color: var(--fudan-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.highlight-text {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-dark);
    line-height: 1.3;
}