/* ============================================
   LINGSPEAK PAGE SPECIFICS
   1. Personalized Classes Layout
   2. Services Detail Layout
   ============================================ */

/* 1. PERSONALIZED CLASSES PAGE */
.page-layout-personalized {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-2xl);
    position: relative;
    max-width: 1350px;
    margin: 0 auto;
    padding: var(--space-4xl) var(--space-xl);
    padding-top: calc(85px + var(--space-xl));
}

/* Left Column */
.content-scroll {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

/* Right Column (Sticky) */
.sidebar-fixed {
    grid-column: 2;
    position: relative;
}

.fixed-content {
    position: sticky;
    top: 100px;
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

/* Page Specific Hero */
.local-hero h1 {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: 800;
    margin-bottom: var(--space-md);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.local-hero-bullets li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: var(--text-base);
}

/* Teacher Profile Spec */
.teacher-profile {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.teacher-photo-secondary {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: var(--shadow-md);
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.benefit-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    text-align: center;
    transition: var(--transition-base);
}

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

/* Steps Diagram */
.steps-diagram {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    position: relative;
    padding-left: 20px;
    border-left: 2px solid var(--border-color);
    margin-left: 10px;
}

.step-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand-primary);
    border: 2px solid white;
}

/* 2. SERVICES DETAIL */
.service-section.alt-bg {
    background-color: #f8faff;
}

.service-grid-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.service-grid.reverse .service-content {
    order: 2;
}

.service-grid.reverse .service-image-wrapper {
    order: 1;
}

.service-image-wrapper {
    position: relative;
    height: 500px;
    width: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: transform 0.4s ease;
}

/* Responsive Overrides */
@media (max-width: 992px) {
    .page-layout-personalized {
        grid-template-columns: 1fr;
        padding-top: var(--space-4xl);
    }

    .sidebar-fixed {
        order: -1;
        margin-bottom: var(--space-xl);
    }

    .fixed-content {
        position: relative;
        top: 0;
        box-shadow: none;
        border: none;
        padding: 0;
    }

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

    .service-grid.reverse .service-content {
        order: 1;
    }

    .service-grid.reverse .service-image-wrapper {
        order: 2;
    }
}