/* CSS Variables */
:root {
    --primary-color: #0D47A1;
    --accent-color: #FFC107;
    --dark-blue: #0a3a82;
    --light-gray: #F5F7FA;
    --dark-gray: #333333;
    --text-color: #333333;
    --white-color: #FFFFFF;
    --font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    --container-width: 1200px;
    --border-radius: 8px;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white-color);
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.grid { display: grid; }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.gap-30 { gap: 30px; }
.text-center { text-align: center; }

/* Header */
.header {
    background-color: var(--white-color);
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}
.header.scrolled {
    box-shadow: var(--shadow);
}
.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.header__logo img {
    height: 90px;
    display: block;
}
.header__nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}
.header__nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 17px; /* Increased font size */
    position: relative;
    padding: 5px 0;
}
.header__nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}
.header__nav a:hover::after,
.header__nav a.active::after {
    width: 100%;
}
.header__actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn--primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}
.btn--primary:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
}
.btn--outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.btn--outline:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}
.btn--large {
    padding: 14px 32px;
    font-size: 18px;
}

/* Hero Section */
.hero {
    background-color: var(--light-gray);
    padding: 100px 0;
    text-align: center;
}
.hero__title {
    font-size: 48px;
    color: var(--primary-color);
    font-weight: 900;
}
.hero__subtitle {
    font-size: 18px;
    max-width: 650px;
    margin: 20px auto 40px;
    color: #555;
}
.hero__actions .btn {
    margin: 0 10px;
}

/* Partners Section */
.partners {
    background-color: #fff;
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}
.partners__title {
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #777;
    margin-bottom: 20px;
}
.partners__logos {
    display: grid; /* Changed to Grid */
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    align-items: center;
    gap: 40px; /* Increased gap */
    max-width: 900px; /* Constrain max width for better alignment */
    margin: 0 auto; /* Center the grid container */
}
.partners__logos img {
    height: 55px; /* Increased height */
    width: auto;
    max-width: 150px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    justify-self: center; /* Center image in grid cell */
}
.partners__logos img:hover {
    opacity: 1;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-title {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.section-subtitle {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    color: #555;
}

/* Card Styles */
.card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}
.card__icon {
    background-color: var(--light-gray);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.card__icon img {
    height: 40px;
    width: auto;
}
.card__title {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.card__text {
    font-size: 15px;
    line-height: 1.6;
}

/* Features Section */
.features {
    background-color: var(--light-gray);
}
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.feature-item__icon {
    background-color: var(--white-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.feature-item__icon img {
    height: 30px;
    width: auto;
}
.feature-item__title {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

/* Experts Section */
.experts {
    background-color: #fff;
}
.expert-card {
    text-align: center;
}
.expert-card__img {
    width: 100%;
    max-width: 200px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 5px solid var(--white-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.expert-card__name {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 5px;
}
.expert-card__title {
    font-size: 15px;
    color: #666;
}

/* Footer */
.footer {
    background-color: var(--dark-gray);
    color: var(--white-color);
    padding: 60px 0 30px;
}
.footer__main {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
}
.footer__logo {
    height: 80px;
    margin-bottom: 15px;
}
.footer__slogan {
    font-size: 15px;
    color: #ccc;
}
.footer__title {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--accent-color);
}
.footer__links ul, .footer__contact p {
    list-style: none;
    padding: 0;
}
.footer__links a {
    color: #ccc;
    text-decoration: none;
    line-height: 2.2;
    transition: color 0.3s ease;
}
.footer__links a:hover {
    color: var(--white-color);
}
.footer__contact p {
    color: #ccc;
    margin-bottom: 10px;
    line-height: 1.6;
}
.footer__contact a {
    color: var(--white-color);
    text-decoration: none;
}
.footer__contact a:hover {
    color: var(--accent-color);
}
.footer__bottom {
    border-top: 1px solid #555;
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
    color: #aaa;
}
.footer__bottom p {
    margin-bottom: 5px;
}

/* Page Hero for internal pages */
.page-hero {
    padding: 60px 0;
    background-color: var(--light-gray);
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}
.page-hero__title {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.page-hero__subtitle {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
    color: #555;
}

/* Styles for the solutions page content */
.solution-section {
    padding-top: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid #eee;
}
.solution-section:first-child {
    padding-top: 0;
}
.solution-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.solution-section__header {
    text-align: center;
    margin-bottom: 40px;
}
.solution-section__title {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 8px;
}
.solution-section__subtitle {
    font-size: 18px;
    color: #666;
}
.solution-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}
.solution-list li {
    margin-bottom: 15px;
    font-size: 16px;
    position: relative;
    padding-left: 30px;
}
.solution-list li::before {
    content: '\2713'; /* Checkmark character */
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 2px;
    font-weight: bold;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    z-index: 1001;
}
.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    transition: all 0.3s ease-in-out;
}

/* Achievements Section */
.achievements {
    background-color: var(--light-gray);
}
.stat-card {
    background-color: var(--white-color);
    padding: 30px;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.stat-card__number {
    font-size: 40px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}
.stat-card__label {
    font-size: 16px;
    color: #555;
}

/* Case Studies Section */
.case-studies {
    background-color: #fff;
}
.case-study-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
}
.case-study-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.case-study-item:nth-child(even) .case-study-item__content {
    order: 2;
}
.case-study-item__category {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--accent-color);
    color: var(--dark-gray);
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
}
.case-study-item__title {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.case-study-item__text {
    font-size: 16px;
    line-height: 1.8;
}
.case-study-item__image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* About Page */
.about-intro {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: center;
}
.about-intro__text p {
    line-height: 2;
    text-align: justify;
}
.about-intro__image {
    text-align: center;
}
.about-intro__image img {
    max-width: 80%;
    opacity: 0.8;
}
.culture-section {
    background-color: var(--light-gray);
}
.value-list {
    list-style: none;
    padding: 0;
    text-align: left;
}
.value-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}
.value-list li::before {
    content: '\2713';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.contact-card {
    padding: 30px;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
}
.contact-card h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* News Page */
.news-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}
.news-card__image {
    width: 100%;
    object-fit: cover;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}
.news-card__content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.news-card__category {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--light-gray);
    color: var(--primary-color);
    border-radius: 15px;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 15px;
    align-self: flex-start;
}
.news-card__title {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.4;
}
.news-card__meta {
    font-size: 14px;
    color: #777;
    margin-bottom: 15px;
}
.news-card__excerpt {
    font-size: 15px;
    margin-bottom: 20px;
    flex-grow: 1;
}
.news-card__link {
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    align-self: flex-start;
}
.news-card__link:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .header__nav { display: none; }
    .header__actions .btn { display: none; }
    .hamburger-menu { display: block; }

    .header__nav.is-active {
        display: block;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white-color);
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    }
    .header__nav.is-active ul {
        flex-direction: column;
        padding: 15px 0;
        gap: 0;
    }
    .header__nav.is-active li {
        text-align: center;
    }
    .header__nav.is-active a {
        display: block;
        padding: 15px;
    }
    .header__nav a::after { display: none; }

    .grid-cols-4, .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero__title { font-size: 40px; }
    .section-title { font-size: 32px; }
    .footer__main { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .grid-cols-4, .grid-cols-2, .grid-cols-3 {
        grid-template-columns: 1fr;
    }
    .hero__title { font-size: 32px; }
    .section-title { font-size: 28px; }
    .partners__logos img { height: 25px; }
    .case-study-item {
        grid-template-columns: 1fr;
    }
    .case-study-item:nth-child(even) .case-study-item__content {
        order: 0; /* Reset order for single column */
    }
    .about-intro {
        grid-template-columns: 1fr;
    }
    .footer__qr-codes {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
}

/* Experts Page - List Layout */
.expert-list-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.expert-list-item {
    display: flex;
    flex-direction: row;
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
    align-items: flex-start;
}

.expert-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.expert-list-item__photo {
    width: 180px;
    flex-shrink: 0;
}

.expert-list-item__photo img {
    width: 100%;
    height: 180px;
    border-radius: 50%;
    object-fit: cover; /* This ensures the image covers the area without distortion */
    border: 4px solid var(--light-gray);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.expert-list-item__details {
    flex-grow: 1;
}

.expert-list-item__name {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 700;
}

.expert-list-item__title {
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
    font-weight: 500;
}

.expert-list-item__bio {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    text-align: justify;
}

/* Responsive adjustments for the expert list */
@media (max-width: 768px) {
    .expert-list-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .expert-list-item__photo {
        width: 150px;
        margin-bottom: 20px;
    }

    .expert-list-item__photo img {
        height: 150px;
    }

    .expert-list-item__bio {
        text-align: left;
    }
}

/* University Logos Section */
.university-logos {
    background-color: var(--light-gray);
}
.university-logos__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 25px;
    justify-content: center;
}
.university-logo-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    width: 140px;
    height: 140px;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.university-logo-card img {
    max-width: 110px;
    max-height: 110px;
    object-fit: contain;
}


/* Footer QR Codes Container */
.footer__qr-codes {
    margin-top: 20px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Individual QR Code */
.footer__qr-code {
    text-align: center;
    flex: 1;
}
.footer__qr-code img {
    width: 140px;
    height: 140px;
    border-radius: var(--border-radius);
    border: 2px solid var(--white-color);
    display: block;
    margin: 0 auto;
}
.footer__qr-code p {
    font-size: 13px;
    color: #ccc;
    margin-top: 10px;
    line-height: 1.3;
}

/* Floating Contact Button & Modal */
.floating-contact-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 999;
    transition: transform 0.3s ease;
}
.floating-contact-btn:hover {
    transform: scale(1.1);
}
.floating-contact-btn img {
    width: 32px;
    height: 32px;
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}
.modal-overlay.active {
    display: flex;
}
.modal-content {
    background: var(--white-color);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
}
.modal-content img {
    max-width: 250px;
    display: block;
}
.modal-content p {
    margin-top: 15px;
    font-size: 16px;
    color: var(--dark-gray);
}
.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}
.modal-close:hover {
    color: var(--dark-gray);
}