/* Sections and Layout - layout/sections.css */

/* Base Section Styles */
.section {
    padding: var(--spacing-lg) var(--spacing-lg);
}

.section.with-navbar {
    padding-top: calc(var(--navbar-height) + var(--spacing-2xl));
    padding-bottom: var(--spacing-2xl);
}

.section.with-navbar + .section {
    padding-top: var(--spacing-xl); /* Reduced top padding for better flow */
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: var(--font-size-xl);
    color: var(--text-secondary);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid System */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

/* Stats Section */
.stats-section {
    background: var(--primary-gradient);
    color: var(--text-white);
    padding: var(--spacing-2xl) var(--spacing-lg);
    text-align: center;
    margin: var(--spacing-xl) 0 0 0;
}

.stats-section .section-title {
    color: var(--text-white) !important;
    margin-bottom: var(--spacing-lg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.stats-grid.expanded {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--spacing-md);
}

.stat-item {
    background: rgba(255,255,255,0.1);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: transform var(--transition-normal);
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--text-white);
}

.stat-item p {
    font-size: var(--font-size-lg);
    opacity: 0.9;
    line-height: 1.4;
    color: var(--text-white);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    z-index: 2;
    position: relative;
    padding: 0 var(--spacing-lg);
}

.hero h1 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
    color: #ffffff;
}

.hero p {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.highlight-item {
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: var(--spacing-sm);
    background: var(--bg-light);
    border-radius: var(--radius-lg);
}

.highlight-icon {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-xs);
}

.highlight-item h4 {
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-align: left;
}

.highlight-item p {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    line-height: 1.4;
    text-align: left;
}

/* Success Stories Grid */
.success-stories-grid {
    margin-bottom: var(--spacing-3xl);
}

.stories-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

/* Program Highlights Section */
.program-highlights {
    background: var(--bg-gradient);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin: var(--spacing-lg) 0;
    border: 1px solid var(--border-color);
}

.program-highlights h3 {
    margin: 0 0 var(--spacing-md) 0;
    font-size: 20px;
    color: var(--text-primary);
    text-align: center;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-sm);
}

.highlight-grid .highlight-item {
    background: var(--bg-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    text-align: center;
}

.highlight-grid .highlight-item h4 {
    margin: 0 0 var(--spacing-xs) 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

.highlight-grid .highlight-item p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
}

/* Previous Program Section */
/* Program Gallery Container */
.program-gallery-container {
    max-width: 1200px;
    margin: 2rem auto;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
}

/* Main Gallery Display */
.program-main-gallery {
    position: relative;
    overflow: hidden;
}

.program-slide {
    display: none;
    width: 100%;
    animation: fadeIn 0.5s ease-in-out;
}

.program-slide.active {
    display: block;
}

.program-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);  /* 增加透明度 */
    backdrop-filter: blur(10px);  /* 添加模糊效果 */
    border: 1px solid rgba(255, 255, 255, 0.5);
    /* border: none; */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #333;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 20;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.program-nav:hover {
    background: rgba(102, 126, 234, 0.8);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.program-nav-prev {
    left: 20px;
}

.program-nav-next {
    right: 20px;
}

/* Program Dots Navigation */
.program-dots-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: #f8faff;
}

.program-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(102, 126, 234, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.program-dot.active {
    background: #667eea;
    transform: scale(1.2);
}

.program-dot:hover {
    background: rgba(102, 126, 234, 0.6);
}

/* Program Info Panel */
.program-info-panel {
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.program-info-panel h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.program-info-panel p {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
    line-height: 1.5;
}

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

/* Program Intro Section - Combined header and highlights */
.program-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
    margin-bottom: 3rem;
}

.program-intro-section {
    background: linear-gradient(135deg, #f8faff 0%, #e8f2ff 100%);
    padding: 1rem 3rem 2rem 3rem;
}

/* Program Header */
.program-header {
    padding: 1rem 3rem 0.8rem 3rem;
    text-align: center;
    background: linear-gradient(135deg, #f8faff 0%, #e8f2ff 100%);
}

.program-header h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 700;
}

.program-dates {
    color: #667eea;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.program-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.6;
}

.content-section {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.content-section h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
    text-align: center;
}

.program-highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    justify-items: center;
}

.highlight-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    text-align: left;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
    width: 100%;
}

.highlight-icon {
    color: #667eea;
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.highlight-item h4 {
    margin: 0 0 var(--spacing-xs) 0;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
}

.highlight-item p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.highlight-content {
    flex: 1;
}

.gallery-section-full {
    background: white;
    padding: 2rem;
}

.gallery-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.main-gallery {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.main-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* FAQ Section */
.faq-section {
    padding: var(--spacing-2xl) var(--spacing-lg);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    margin-top: var(--spacing-xl);
}

.faq-item {
    margin-bottom: var(--spacing-md);
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s var(--transition-normal);
}

.faq-item:hover {
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.1);
}

.faq-question {
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.faq-arrow {
    font-size: var(--font-size-sm);
    color: var(--primary-color);
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.faq-item.active .faq-arrow {
    color: white;
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background: white;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: var(--spacing-lg);
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Application Process Section */
.application-section {
    padding: var(--spacing-2xl) var(--spacing-lg);
}

.application-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.application-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all var(--transition-normal);
}

.application-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
}

.application-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.application-card h3 {
    color: var(--primary-color);
    /* margin-bottom: var(--spacing-md); */
    font-size: var(--font-size-xl);
    text-align: center;
    background: rgba(102, 126, 234, 0.1);
    padding: var(--spacing-md) 0;
}

.application-card ul {
    padding-left: var(--spacing-md);
    margin: var(--spacing-md) 0;
}

.application-card li {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Fee Structure */
.fee-structure {
    margin: var(--spacing-md) 0;
}

.fee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.fee-item:last-child {
    border-bottom: none;
}

.fee-amount {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-color);
}

.fee-description {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.fee-includes,
.fee-additional {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin: var(--spacing-sm) 0;
    line-height: 1.5;
}

.discounts {
    margin-top: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: rgba(102, 126, 234, 0.05);
    border-radius: var(--radius-sm);
}

.discount-item {
    font-size: var(--font-size-sm);
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
}

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

/* Deadline */
.deadline-info {
    text-align: center;
}

.deadline-date {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--primary-color);
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
}

.deadline-info p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.5;
    text-align: left;
}

/* Application Options */
.application-options {
    margin-top: var(--spacing-3xl);
    padding-top: var(--spacing-xl);
    border-top: 2px solid rgba(102, 126, 234, 0.1);
}

.application-options h3 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xl);
    font-size: var(--font-size-xl);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-xl);
}

.option-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(102, 126, 234, 0.1);
    transition: all var(--transition-normal);
}

.option-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.2);
}

.option-card h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-lg);
    text-align: center;
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid rgba(102, 126, 234, 0.1);
}

.option-steps {
    margin-top: var(--spacing-lg);
}

.step {
    display: flex;
    margin-bottom: var(--spacing-lg);
    align-items: flex-start;
}

.step:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 30px;
    height: 30px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--font-size-sm);
    margin-right: var(--spacing-md);
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    line-height: 1.5;
}

.step-content strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: var(--spacing-xs);
}

.step-content span {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

/* Team Section */ 
.about-section {
    padding: var(--spacing-2xl) var(--spacing-lg);
}

.section.with-navbar + .about-section {
    padding-top: var(--spacing-xl);
}

.about-section + .section {
    padding-top: var(--spacing-xl);
}

.about-intro {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.about-intro .section-title {
    margin-bottom: var(--spacing-md);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.about-card {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all var(--transition-normal);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
}

.about-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.about-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-xl);
    text-align: center;
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.about-card p:last-child {
    margin-bottom: 0;
}

/* Statistics Section */
.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
    padding: var(--spacing-xl) 0;
}

.stat-card {
    text-align: center;
    padding: var(--spacing-lg);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Partnerships Section */
.partnership-logo {
    font-size: 1.8rem;
    min-width: 50px;
    text-align: center;
}

.partnership-content h4 {
    color: var(--text-white);
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-size-md);
}

.partnership-content p {
    color: var(--text-white);
    font-size: var(--font-size-sm);
    margin: 0;
}