/* -------------------------------------------------------------
   SUBPAGES ADDITIONAL STYLING
------------------------------------------------------------- */

/* Subpage Hero Header */
.subpage-hero {
    position: relative;
    padding: 120px 0 60px 0;
    background: linear-gradient(135deg, var(--bg-dark), var(--primary-dark));
    color: white;
    text-align: center;
    overflow: hidden;
}

.subpage-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.subpage-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
}

.breadcrumb a:hover {
    color: var(--accent-color);
}

.breadcrumb-separator {
    color: #64748b;
}

/* Detail Section Grid */
.detail-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.detail-card {
    background-color: var(--bg-card-light);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 48px;
    margin-bottom: 40px;
}

.detail-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 24px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-text {
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Timeline Layout for About subpage */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0 auto;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 8px;
    width: 2px;
    background-color: #e2e8f0;
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid white;
    box-shadow: var(--shadow-sm);
}

.timeline-year {
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 4px;
}

.timeline-content {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Detailed profiles for Members subpage */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.profile-card {
    background-color: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    padding: 32px;
    border-top: 4px solid var(--primary-color);
    transition: var(--transition-smooth);
}

.profile-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(13, 148, 136, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.profile-meta h4 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
}

.profile-meta span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.profile-details-list {
    list-style: none;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-details-list li strong {
    color: var(--text-dark);
    display: inline-block;
    width: 100px;
}

/* Stats tables for Results subpage */
.stats-table-wrapper {
    overflow-x: auto;
    margin-top: 24px;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.stats-table th {
    background-color: #f1f5f9;
    color: var(--text-dark);
    font-weight: 700;
    padding: 16px;
    border-bottom: 2px solid #cbd5e1;
}

.stats-table td {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    color: var(--text-muted);
}

.stats-table tr:hover {
    background-color: #f8fafc;
}

.rank-badge {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #cbd5e1;
    color: var(--text-dark);
    text-align: center;
    line-height: 24px;
    font-size: 0.8rem;
    font-weight: 700;
}

.rank-badge.rank-1 { background-color: #fef08a; color: #854d0e; }
.rank-badge.rank-2 { background-color: #e2e8f0; color: #475569; }
.rank-badge.rank-3 { background-color: #ffedd5; color: #9a3412; }

/* Trial form for Schedule subpage */
.trial-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 576px) {
    .form-row-2 {
        grid-template-columns: 1fr;
    }
}

/* Calendar Specific Layout Adjustments to maximize Google Spreadsheet space */
.detail-section .container {
    max-width: 1400px; /* Expand max container width from standard to 1400px to allow more room for tables */
    transition: var(--transition-smooth);
}

.detail-card.calendar-card {
    padding: 40px 24px; /* Reduce horizontal padding from 48px to 24px to expand spreadsheet embed width */
}

@media (max-width: 768px) {
    .detail-card.calendar-card {
        padding: 24px 12px; /* For mobile, even less padding to fit screen */
    }
}
