/* ===== SHARED PAGE STYLES ===== */

/* Page Hero Banner (used on all inner pages) */
.page-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background-color: var(--bg-dark);
}

.page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
        rgba(15, 23, 42, 0.4) 0%,
        rgba(15, 23, 42, 0.95) 100%);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 60px;
}

.page-hero-content .hero-tag {
    opacity: 1;
    animation: none;
}

.page-hero-content h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 400;
    color: #fff;
    line-height: 1.1;
    max-width: 800px;
    margin-bottom: 16px;
}

.page-hero-content h1 em {
    font-style: italic;
    color: var(--gold);
}

.page-hero-content p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 560px;
    font-weight: 300;
    line-height: 1.7;
}

/* Breadcrumbs */
.breadcrumbs {
    background: var(--bg-warm);
    padding: 16px 40px;
    border-bottom: 1px solid var(--border-solid);
}

.breadcrumbs-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.breadcrumbs .separator {
    color: var(--border-solid);
}

.breadcrumbs .current {
    color: var(--text);
    font-weight: 500;
}

/* Page Content */
.page-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 40px;
}

.page-content-narrow {
    max-width: 860px;
    margin: 0 auto;
    padding: 100px 40px;
}

/* Two-Column Layout */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.two-col-offset {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: start;
}

/* Content Typography */
.page-content h2,
.page-content-narrow h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 400;
    color: var(--text);
    margin-bottom: 24px;
    line-height: 1.2;
}

.page-content h2 em,
.page-content-narrow h2 em {
    font-style: italic;
    color: var(--accent);
}

.page-content h3,
.page-content-narrow h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 16px;
    margin-top: 48px;
}

.page-content p,
.page-content-narrow p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

.page-content p strong,
.page-content-narrow p strong {
    color: var(--text);
    font-weight: 500;
}

/* Values / Features Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-top: 64px;
}

.value-card {
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-solid);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gold);
    transition: width 0.4s ease;
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.value-card:hover::before {
    width: 100%;
}

.value-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: var(--accent);
    font-weight: 600;
    line-height: 1;
    margin-bottom: 20px;
    opacity: 0.3;
}

.value-card h4 {
    font-size: 1.1rem;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 12px;
}

.value-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 48px;
    margin-top: 64px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15px;
    width: 1px;
    height: 100%;
    background: var(--border-solid);
}

.timeline-item {
    position: relative;
    padding-bottom: 48px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 6px;
    width: 12px;
    height: 12px;
    background: var(--bg);
    border: 2px solid var(--accent);
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:hover::before {
    background: var(--gold);
    border-color: var(--gold);
}

.timeline-year {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-item h4 {
    font-size: 1rem;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 8px;
}

.timeline-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0;
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border-solid);
    margin: 64px 0;
}

.stats-row .stat-box {
    background: var(--bg-card);
    padding: 40px 32px;
    text-align: center;
}

.stats-row .stat-box .stat-val {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: var(--accent);
    font-weight: 600;
    line-height: 1;
    margin-bottom: 8px;
}

.stats-row .stat-box .stat-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Full-width Image Banner */
.image-banner {
    width: 100%;
    max-width: 100%;
    padding: 0;
    overflow: hidden;
}

.image-banner img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* Regulation / Info Boxes */
.info-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.info-box {
    background: var(--bg-warm);
    padding: 32px;
    border-left: 3px solid var(--accent);
}

.info-box h4 {
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 12px;
}

.info-box p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0;
}

/* Team Extended */
.team-detail-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 48px;
    margin-bottom: 64px;
    padding-bottom: 64px;
    border-bottom: 1px solid var(--border-solid);
    align-items: start;
}

.team-detail-grid:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.team-detail-img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.team-detail-info h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--text);
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 4px;
}

.team-detail-info .team-role {
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
    display: block;
}

.team-detail-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 16px;
}

.team-detail-info .team-meta {
    display: flex;
    gap: 32px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-solid);
}

.team-detail-info .team-meta div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.team-detail-info .team-meta label {
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.team-detail-info .team-meta span {
    font-size: 0.9rem;
    color: var(--text);
}

/* Contact Page Full Form */
.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* Map placeholder */
.map-container {
    width: 100%;
    height: 400px;
    background: var(--bg-warm);
    border: 1px solid var(--border-solid);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Careers / Job Listings */
.job-listing {
    padding: 32px 0;
    border-bottom: 1px solid var(--border-solid);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    transition: padding-left 0.3s ease;
}

.job-listing:hover {
    padding-left: 12px;
}

.job-listing:first-child {
    padding-top: 0;
}

.job-listing h4 {
    font-size: 1.1rem;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 8px;
}

.job-listing .job-meta {
    display: flex;
    gap: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.job-listing .job-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.job-apply {
    font-size: 0.8rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.job-apply:hover {
    color: var(--accent);
}

.job-apply::after {
    content: '→';
    transition: transform 0.3s ease;
}

.job-apply:hover::after {
    transform: translateX(4px);
}

/* CTA Banner */
.cta-banner {
    background: var(--bg-dark);
    padding: 100px 40px;
    text-align: center;
    width: 100%;
    max-width: 100%;
}

.cta-banner-inner {
    max-width: 700px;
    margin: 0 auto;
}

.cta-banner h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #fff;
    font-weight: 400;
    margin-bottom: 20px;
}

.cta-banner h2 em {
    font-style: italic;
    color: var(--gold);
}

.cta-banner p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    margin-bottom: 40px;
}

.cta-banner .cta-btn {
    background: var(--gold);
    color: var(--text);
    border: none;
    padding: 16px 40px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cta-banner .cta-btn:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 169, 110, 0.3);
}

/* ===== INNER PAGE RESPONSIVE ===== */
@media (max-width: 1024px) {
    .two-col,
    .two-col-offset,
    .contact-page-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .values-grid,
    .info-boxes {
        grid-template-columns: 1fr;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-detail-grid {
        grid-template-columns: 1fr;
    }

    .team-detail-img {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .page-hero {
        min-height: 320px;
    }

    .page-hero-content {
        padding: 0 24px 40px;
    }

    .breadcrumbs {
        padding: 12px 24px;
    }

    .page-content,
    .page-content-narrow {
        padding: 64px 24px;
    }

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

    .job-listing {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .team-detail-info .team-meta {
        flex-direction: column;
        gap: 16px;
    }

    .cta-banner {
        padding: 64px 24px;
    }
}