/* Cards - components/cards.css */

/* Base Card Styles */
.card {
    background: var(--bg-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-light);
    transition: all var(--transition-normal);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.card-icon {
    width: 100%;
    height: 200px;
    border-radius: 18px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-xl);
    color: var(--text-white);
}

.card h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    font-weight: 600;
}

.card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.card .cta-button {
    margin-top: auto;
}

/* Program Cards */
.program-card ul {
    text-align:left; 
    margin: 1rem 0; 
    padding-left: 1.5rem;
}

.program-card li {
    padding-left:0.5rem;    
}

/* Speaker Cards */
.speaker-card {
    display: flex;
    gap: var(--spacing-lg);
    align-items: flex-start;
    background: var(--bg-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-light);
    transition: all var(--transition-normal);
    margin-bottom: var(--spacing-lg);
    position: relative;
    text-decoration: none;
}

.speaker-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.speaker-photo {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-full);
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: var(--font-size-xl);
    font-weight: 600;
    flex-shrink: 0;
}

.speaker-content {
    flex: 1;
}

.speaker-content h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
    font-weight: 600;
}

.speaker-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-lg);
}

.speaker-bio {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

.speaker-expertise {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
}

.expertise-tag {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: var(--font-size-sm);
    font-weight: 500;
}

/* LinkedIn icon overlay */
.linkedin-icon {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    width: 30px;
    height: 30px;
    background: #0077b5;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 16px;
    opacity: 1;
    transition: opacity var(--transition-normal);
}

.speaker-card:hover .linkedin-icon {
    transform: scale(1.1);
}

/* Story Cards */
.story-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-normal);
    margin-bottom: var(--spacing-2xl);
    width: 100%;
}

.story-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.story-header {
    background: var(--primary-gradient);
    color: var(--text-white);
    padding: var(--spacing-lg);
    position: relative;
}

.story-student {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.story-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-2xl);
    font-weight: 600;
    flex-shrink: 0;
    color: var(--text-white);
}

.story-info {
    flex: 1;
}

.story-info h3 {
    font-size: var(--font-size-xl);
    margin-bottom: 0.3rem;
    font-weight: 600;
    color: var(--text-white);
}

.story-details {
    font-size: 0.95rem;
    opacity: 0.9;
    color: var(--text-white);
}

.story-content {
    padding: var(--spacing-xl);
}

.story-quote {
    font-size: var(--font-size-lg);
    font-style: italic;
    color: #555;
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-left: var(--spacing-md);
    border-left: 4px solid var(--primary-color);
    line-height: 1.6;
}

.story-content > p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-base);
}

.story-impact {
    background: var(--bg-gradient);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-top: var(--spacing-md);
    border: 1px solid var(--border-color);
}

.story-impact h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-lg);
    font-weight: 600;
    text-align: center;
}

.impact-stats {
    display: flex;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-sm);
    justify-content: space-around;
    flex-wrap: wrap;
}

.impact-stat {
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.impact-stat strong {
    display: block;
    font-size: var(--font-size-xl);
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.3rem;
    line-height: 1.2;
}

.impact-stat span {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Compact Story Cards */
.story-card.compact {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all var(--transition-normal);
    margin-bottom: 0;
}

.story-card.compact:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.story-card.compact.featured {
    border: 2px solid var(--primary-color);
    position: relative;
}

.story-header.compact {
    background: none;
    padding: 0;
    margin-bottom: var(--spacing-sm);
}

.story-header.compact .story-student {
    gap: var(--spacing-sm);
}

.story-header.compact .story-avatar {
    width: 50px;
    height: 50px;
    font-size: var(--font-size-lg);
}

.story-header.compact h4 {
    margin: 0;
    font-size: var(--font-size-lg);
    color: var(--text-primary);
}

.story-header.compact p {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--primary-color);
    font-weight: 500;
}

.story-excerpt {
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: var(--font-size-sm);
}

.achievement-badge {
    background: var(--primary-gradient);
    color: var(--text-white);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: var(--font-size-xs);
    font-weight: 500;
    display: inline-block;
    margin-top: var(--spacing-sm);
}

/* Team Cards */
.team-card {
    display: flex;
    flex-direction: column;
    height: 100%; 
    text-align: center;
}

.team-card p[data-i18n*="location"] {
    margin-top: auto;
    padding-top: 1rem;
}

.team-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: var(--font-size-xl);
    font-weight: 600;
}

.team-photo-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.team-credential-list {
  list-style: none;
  padding-top: 10px;
  padding-left: 0;
  text-align: left;
  flex-grow: 1;
  margin: 0 auto;
  max-width: fit-content; 
}

.team-credential-list li {
  display: flex;
  width: 100%;
  margin-bottom: 0.5rem;
  text-align: left !important;
  align-items: flex-start;
}

/* Creates a custom, better-spaced bullet point */
.team-credential-list li::before {
  content: '•';
  color: #4A90E2; /* A nice accent color */
  font-weight: bold;
  font-size: 1.2rem;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

/* Alumni Cards */
.alumni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: var(--spacing-xl);
}

.alumni-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-normal);
    max-width: 350px;
    margin: 0 auto;
}

.alumni-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.alumni-header {
    background: var(--primary-gradient);
    color: var(--text-white);
    padding: var(--spacing-lg);
    text-align: center;
}

.alumni-image {
    width: 100%;
    height: 240px; 
    overflow: hidden;
}

.alumni-photo {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    object-position: center;
}

.alumni-avatar {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin: 0 auto var(--spacing-sm);
}

.alumni-name {
    font-size: var(--font-size-xl);
    margin-top: 0.5rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.alumni-role {
    opacity: 0.9;
    font-size: 0.95rem;
}

.alumni-content {
    padding: var(--spacing-lg);
    position:relative;
}

.alumni-content-text {
    font-style: italic;
    font-size: var(--font-size-md);
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0;
    padding-left: 1rem;
    padding-right: 1rem;
    position: relative;
    text-align: center;
}

.alumni-company {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
    font-weight: 600;
    font-size: var(--font-size-base);
}

.alumni-program {
    background: var(--bg-light);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

.alumni-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    justify-content: center;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
    font-size: var(--font-size-lg);
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-2px);
}

.card-image {
    margin-bottom: var(--spacing-md);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-normal);
}

.highlight-image {
    width: 100%;
    height: 200px;
    border-radius: 18px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-xl);
    color: var(--text-white);
    object-fit: cover;
    object-position: center;
}

.card:hover .highlight-image {
    transform: scale(1.05);
}
/* Coming Soon Card Styles */
.card.coming-soon {
    opacity: 0.5;
    position: relative;
}

.card.coming-soon:hover {
    transform: none;
    box-shadow: var(--shadow-light);
}

.card.coming-soon::after {
    content: 'Coming Soon';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(102, 126, 234, 0.95);
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 10;
}

.card.coming-soon .cta-button {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}

/* 防止點擊 */
.card.coming-soon * {
    pointer-events: none;
}

/* Apply Now Page */
/* Apply Page Styles - Matching Team/Program Design */

/* Application Form */
.application-form-page {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-light);
}

.form-section-apply {
    margin-bottom: var(--spacing-xl);
}

.form-section-apply:last-of-type {
    border-bottom: none;
    margin-bottom: var(--spacing-xl);
}

.form-section-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.section-icon {
    font-size: 1.5rem;
}

/* Form Groups */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 2px solid #e9ecef;
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    transition: border-color var(--transition-fast);
    font-family: var(--font-family);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.form-row:has(#photoUploadArea) {
    grid-template-columns: 1fr;
}

.form-hint {
    display: block;
    margin-top: var(--spacing-xs);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-style: italic;
}

/* Form Submit Section */
.form-submit-section {
    text-align: center;
    padding-top: var(--spacing-xl);
    border-top: 2px solid rgba(102, 126, 234, 0.1);
    margin-top: var(--spacing-xl);
}

.form-submit-section .cta-button {
    min-width: 250px;
    padding: 1rem 3rem;
    font-size: var(--font-size-lg);
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    transition: all var(--transition-normal);
}

.form-submit-section .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.form-submit-section .cta-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.form-disclaimer {
    margin-top: var(--spacing-md);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

/* Info Cards */
.apply-info-card {
    text-align: center;
    cursor: default;
}

.apply-info-card:hover {
    transform: translateY(-5px);
}

.info-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.apply-info-card h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.apply-info-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 文件上傳樣式 */
.file-input {
    padding: 8px;
    border: 2px dashed #667eea;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-input:hover {
    border-color: #764ba2;
    background-color: #f8faff;
}

.file-status {
    margin-top: 8px;
    font-size: 14px;
}

.file-status.uploading {
    color: #667eea;
}

.file-status.success {
    color: #10b981;
}

.file-status.error {
    color: #ef4444;
}

.form-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.optional {
    font-weight: normal;
    color: #999;
    font-size: 0.9em;
}

/* ===== 自定義文件上傳樣式 ===== */

.custom-file-upload {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    background: #f9fafb;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    min-height: 180px; /* Match height with other form elements context */
}

.custom-file-upload:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.custom-file-upload.drag-over {
    border-color: #667eea;
    background: #e0e7ff;
    transform: scale(1.02);
}

.file-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* 上傳圖標 */
.upload-icon {
    color: #667eea;
    opacity: 0.8;
}

.custom-file-upload:hover .upload-icon {
    opacity: 1;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* 上傳文字 */
.upload-text {
    margin: 0;
}

.upload-title {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 0.25rem 0;
}

.upload-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

/* 選擇文件按鈕 */
.select-file-btn {
    padding: 0.625rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.select-file-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.select-file-btn:active {
    transform: translateY(0);
}

/* 文件預覽 */
.file-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-top: 1rem;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.file-icon {
    color: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-details {
    text-align: left;
}

.file-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin: 0 0 0.25rem 0;
    word-break: break-all;
}

.file-size {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
}

/* 移除文件按鈕 */
.remove-file-btn {
    padding: 0.5rem;
    background: #fee2e2;
    color: #dc2626;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-file-btn:hover {
    background: #fecaca;
    transform: scale(1.1);
}

/* 上傳狀態 */
.file-status {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    display: none;
}

.file-status:not(:empty) {
    display: block;
}

.file-status.uploading {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.file-status.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.file-status.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* 響應式設計 */
@media (max-width: 640px) {
    .custom-file-upload {
        padding: 1.5rem 1rem;
    }
    
    .upload-icon svg {
        width: 36px;
        height: 36px;
    }
    
    .upload-title {
        font-size: 0.875rem;
    }
    
    .upload-subtitle {
        font-size: 0.75rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .application-form-page {
        padding: var(--spacing-lg);
        border-radius: var(--radius-lg);
    }

    .form-section-title {
        font-size: var(--font-size-lg);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-submit-section .cta-button {
        min-width: 200px;
        padding: 0.875rem 2rem;
        font-size: var(--font-size-base);
    }
}

@media (max-width: 480px) {
    .application-form-page {
        padding: var(--spacing-md);
    }

    .section-icon {
        font-size: 1.25rem;
    }

    .form-submit-section .cta-button {
        width: 100%;
        min-width: auto;
    }
}