/* ==========================================================================
   Future Academy — Services & Courses Stylesheet (services.css)
   Extends core design tokens and components from home.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Service Page Hero Section
   -------------------------------------------------------------------------- */
.service-hero {
    padding-top: 7.5rem;
    padding-bottom: 4rem;
    background: radial-gradient(circle at 50% 0%, var(--primary-glow) 0%, transparent 70%);
    position: relative;
    overflow: hidden;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-image: radial-gradient(var(--hero-grid-color) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.65;
    pointer-events: none;
    z-index: 0;
}

.service-hero-content {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.service-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    background: var(--bg-surface);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xs);
}

.service-breadcrumb a {
    color: var(--primary);
    font-weight: 500;
}

.service-breadcrumb a:hover {
    text-decoration: underline;
}

.service-breadcrumb i {
    font-size: 0.75rem;
    color: var(--text-subtle);
}

.service-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.3rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.18;
    color: var(--text-main);
    letter-spacing: -0.025em;
    margin-bottom: 1.25rem;
}

.service-hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.service-hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.25rem;
}

.service-hero-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.service-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.95rem;
    border-radius: var(--radius-full);
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    box-shadow: var(--shadow-xs);
}

.service-badge-pill i {
    color: var(--primary);
}

/* --------------------------------------------------------------------------
   2. Service Overview & Key Facts Box
   -------------------------------------------------------------------------- */
.service-details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.service-main-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.service-main-content h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 2rem;
    margin-bottom: 1rem;
    letter-spacing: -0.015em;
}

.service-main-content h2:first-of-type {
    margin-top: 0;
}

.service-main-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.service-lead-text {
    font-size: 1.15rem !important;
    font-weight: 500;
    color: var(--text-main) !important;
    line-height: 1.8 !important;
    border-left: 3px solid var(--primary);
    padding-left: 1.25rem;
    margin-bottom: 1.75rem !important;
}

/* Key Facts Sidebar Card */
.service-sidebar {
    position: sticky;
    top: 6rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.quick-facts-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.quick-facts-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.quick-facts-title i {
    color: var(--primary);
}

.quick-facts-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quick-fact-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border-subtle);
}

.quick-fact-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.quick-fact-label {
    font-size: 0.825rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-subtle);
}

.quick-fact-value {
    font-size: 0.975rem;
    font-weight: 600;
    color: var(--text-main);
}

.quick-fact-value a {
    color: var(--primary);
}

.quick-fact-value a:hover {
    text-decoration: underline;
}

.sidebar-cta-box {
    background: linear-gradient(135deg, var(--bg-surface-elevated) 0%, var(--bg-subtle) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.sidebar-cta-box h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.sidebar-cta-box p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.sidebar-cta-box .btn {
    width: 100%;
}

/* --------------------------------------------------------------------------
   3. Subjects Grid
   -------------------------------------------------------------------------- */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin: 1.75rem 0;
}

.subject-item-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all var(--transition-fast);
}

.subject-item-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.subject-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background-color: var(--primary-glow);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.subject-info h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.subject-info p {
    font-size: 0.875rem !important;
    color: var(--text-muted) !important;
    line-height: 1.45 !important;
    margin-bottom: 0 !important;
}

/* --------------------------------------------------------------------------
   4. Academic Pillars / Feature Grid
   -------------------------------------------------------------------------- */
.pedagogy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin: 1.75rem 0;
}

.pedagogy-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition-fast);
}

.pedagogy-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.pedagogy-badge {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.pedagogy-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.pedagogy-card p {
    font-size: 0.9rem !important;
    color: var(--text-muted) !important;
    line-height: 1.55 !important;
    margin-bottom: 0 !important;
}

/* --------------------------------------------------------------------------
   5. Related Courses & Cross-Linking Grid
   -------------------------------------------------------------------------- */
.related-courses-section {
    padding: 4.5rem 0;
    background-color: var(--bg-subtle);
    border-top: 1px solid var(--border-color);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.related-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all var(--transition-normal);
}

.related-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.related-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.related-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background-color: var(--primary-glow);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.related-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.related-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.related-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap var(--transition-fast);
}

.related-link:hover {
    gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   6. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .service-details-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .service-hero {
        padding-top: 6rem;
        padding-bottom: 3rem;
    }

    .service-main-content {
        padding: 1.75rem 1.25rem;
        border-radius: var(--radius-lg);
    }

    .subjects-grid {
        grid-template-columns: 1fr;
    }

    .pedagogy-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .service-hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .service-hero-actions .btn {
        width: 100%;
    }
}
