/* Major Detail Page Styles */
body {
    font-family: 'Noto Sans Thai', sans-serif;
    background-color: #f8f9fa;
    line-height: 1.6;
}

.page-header {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.page-header img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.program-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.program-title h1 {
    margin: 0;
    font-weight: 600;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.content-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.info-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 1.5rem;
    border-left: 5px solid #667eea;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.info-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.info-label {
    font-weight: 600;
    color: #495057;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.info-label i {
    margin-right: 0.5rem;
    color: #667eea;
}

.info-content {
    color: #6c757d;
    line-height: 1.7;
    font-size: 1rem;
}

.section-title {
    font-family: 'db_helvethaica_x65_med', 'Noto Sans Thai', sans-serif;
    font-weight: 600;
    color: #495057;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #667eea;
    position: relative;
    font-size: 1.75rem;
}

.section-title:before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: #764ba2;
}

.section-title i {
    margin-right: 0.5rem;
    color: #667eea;
}

.avatar-wrapper {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #eee;
    margin: 0 auto 1rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 4px solid #f8f9fa;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.avatar-wrapper:hover {
    transform: scale(1.05);
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 50%;
}

.person-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.person-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.person-name {
    font-weight: 600;
    color: #495057;
    margin-top: 1rem;
    font-size: 1.1rem;
}

.person-role {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.head-card {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    border-radius: 20px;
    color: white;
    box-shadow: 0 10px 30px rgba(23, 162, 184, 0.3);
    border: none;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.sidebar-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    margin-bottom: 2rem;
    overflow: hidden;
}

.sidebar-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    text-align: center;
    font-family: 'db_helvethaica_x65_med', 'Noto Sans Thai', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
}

.sidebar-card-body {
    padding: 1.5rem;
}

.big-button {
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    padding: 1rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-bottom: 1rem;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.big-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    text-decoration: none;
}

.big-button i {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
    border: none;
}

.breadcrumb {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-size: 1.2em;
    color: #6c757d;
}

.gallery-container {
    margin-top: 2rem;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.gallery-item img {
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .program-title {
        padding: 1.5rem;
    }
    
    .program-title h1 {
        font-size: 2rem;
    }
    
    .content-card {
        padding: 1.5rem;
    }
    
    .page-header img {
        height: 200px;
    }
    
    .avatar-wrapper {
        width: 120px;
        height: 120px;
    }
    
    .info-grid {
        gap: 1rem;
    }
    
    .info-item {
        padding: 1rem;
    }
}
