/* ============================================
   PERSONALIZED CLASSES PAGE STYLES
   ============================================ */

/* --- Layout Structure --- */
.page-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    /* Ratio adjusted to ~60/40 to widen right column. Max-width increased to preserve left column size. */
    gap: var(--space-2xl);
    position: relative;
    max-width: 1350px;
    margin: 0 auto;
    padding: var(--space-4xl) var(--space-xl);
    /* Top padding to clear fixed header if needed, but header has its own padding/position */
    padding-top: calc(85px + var(--space-xl));
    /* Adjust for header height */
}

/* 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;
    /* Context */
}

.fixed-content {
    position: sticky;
    top: 100px;
    /* Offset for header */
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    /* Make sure it fits in viewport */
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

/* --- Section Styles --- */
.section-title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

/* Hero Section (in Left Column) */
.local-hero {
    margin-bottom: var(--space-lg);
}

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

.local-hero-bullets {
    list-style: none;
    padding: 0;
    margin: var(--space-lg) 0;
}

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

.check-icon-small {
    width: 20px;
    height: 20px;
    color: var(--brand-primary);
    flex-shrink: 0;
}

.hero-teacher-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    margin-top: var(--space-lg);
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

/* What Happens Section */
.process-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.process-item {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.process-icon {
    width: 32px;
    height: 32px;
    background: rgba(41, 9, 166, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
    flex-shrink: 0;
}

/* Teacher Section */
.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);
}

.teacher-bio p {
    margin-bottom: var(--space-sm);
    font-size: var(--text-base);
}

.teacher-credentials {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--space-sm);
}

.credential-tag {
    font-size: var(--text-xs);
    font-weight: 600;
    background: var(--bg-primary);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
}

.teacher-quote {
    font-style: italic;
    color: var(--brand-primary);
    font-weight: 500;
}

/* 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);
}

.benefit-icon {
    font-size: 2rem;
    margin-bottom: var(--space-xs);
    display: block;
}

/* Testimonials */
.testimonials-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.testimonial-item {
    background: var(--bg-primary);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
}

.testimonial-author {
    font-weight: 700;
    margin-top: 8px;
    display: block;
    color: var(--brand-primary);
}

/* Next Steps */
.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 {
    position: relative;
}

.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;
}

/* GIRO Sticky Content */
.giro-title {
    font-size: var(--text-xl);
    font-weight: 800;
    margin-bottom: var(--space-xs);
    text-align: center;
}

.giro-summary {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.giro-cta-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.giro-trust {
    text-align: center;
    font-size: var(--text-xs);
    color: var(--text-light);
    margin-top: var(--space-xs);
}

.giro-divider {
    height: 1px;
    background: var(--border-color);
    margin: var(--space-lg) 0;
}

.giro-microcopy {
    text-align: center;
    font-size: var(--text-xs);
    color: var(--text-light);
    margin-top: 4px;
    /* close to button */
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .page-layout {
        grid-template-columns: 1fr;
        padding-top: var(--space-4xl);
        padding-bottom: 100px;
        /* Space for fixed bottom bar */
    }

    .content-scroll {
        grid-column: 1;
    }

    /* Transform Sidebar into Fixed Bottom Bar */
    .sidebar-fixed {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1000;
        background: white;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
        padding: var(--space-md);
        height: auto;
    }

    .fixed-content {
        position: static;
        box-shadow: none;
        border: none;
        padding: 0;
        max-height: none;
        overflow: visible;
        background: transparent;
    }

    /* Hide everything except buttons on mobile */
    .fixed-content>*:not(.sidebar-buttons) {
        display: none;
    }

    .sidebar-buttons {
        display: flex !important;
        gap: var(--space-sm);
        /* Keep as default row direction for side-by-side */
    }
}

/* Button Container & WhatsApp Button */
.sidebar-buttons {
    display: flex;
    gap: var(--space-sm);
    align-items: stretch;
    /* Ensure same height */
    width: 100%;
}

/* Adjust primary button in this context to take available space */
.sidebar-buttons .primary-button {
    flex: 1;
    margin-bottom: 0 !important;
    /* Override inline style or previous margin */
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    /* Approximate height of standard buttons, adjust if needed */
    height: auto;
    /* Allow it to stretch to match primary button */
    aspect-ratio: 1;
    /* Make it square */
    background-color: #25D366;
    /* WhatsApp Green */
    color: white;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.whatsapp-button:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.whatsapp-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}