/* ══════════════════════════════════════════════════════════════════════════════
   MAEDS-SKM Standard Shared Layout & Hero Architecture
   Psychoterapia.no
   ══════════════════════════════════════════════════════════════════════════════ */

/* 1. Main container & page frame expansions */
.main-content:has(.maeds-container),
body.maeds-modern-layout .main-content {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.maeds-container {
    width: 100%;
    max-width: 1240px;
    margin: 30px auto 60px;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible;
}

/* 2. Modern Hero Section */
.hero-modern-section {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #F8F7F3;
    border-radius: 24px 24px 0 0;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.hero-modern-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 3.5rem 2.5rem 4rem;
}

.hero-modern-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-modern-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--psych-gold, #947600);
    margin-bottom: 1rem;
    display: block;
}

.hero-modern-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.3rem, 4vw, 3.2rem);
    line-height: 1.15;
    color: #172033;
    margin-bottom: 1.4rem;
    font-weight: 500;
}

.hero-modern-title em {
    font-style: italic;
    color: var(--psych-gold, #947600);
    font-weight: 400;
}

.hero-modern-lead {
    font-size: 1.08rem;
    line-height: 1.68;
    color: #4b5563;
    margin-bottom: 2rem;
    max-width: 540px;
}

.hero-modern-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.hero-modern-chips span {
    padding: 0.45rem 1.1rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    font-size: 0.85rem;
    color: #374151;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.hero-modern-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 1rem;
}

.hero-modern-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.hero-modern-btn--primary {
    background: var(--psych-gold, #947600);
    color: #ffffff !important;
    border: 1px solid var(--psych-gold, #947600);
}

.hero-modern-btn--primary:hover {
    background: #7a6100;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(148, 118, 0, 0.25);
}

.hero-modern-btn--secondary {
    background: #ffffff;
    color: #1f2937 !important;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.hero-modern-btn--secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    transform: translateY(-2px);
}

/* Hero visual / aside badge */
.hero-modern-visual {
    position: relative;
}

.hero-modern-panel {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 2.2rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.hero-modern-panel-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--psych-gold, #947600);
    margin-bottom: 1.2rem;
}

.hero-modern-acronym {
    display: grid;
    gap: 0.6rem;
    margin-bottom: 1.4rem;
}

.hero-modern-acronym span {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: #1f2937;
    background: #f3f4f6;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.hero-modern-note {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 1.4rem;
}

.hero-modern-meta {
    border-top: 1px solid #e5e7eb;
    padding-top: 1.2rem;
    display: grid;
    gap: 0.6rem;
}

.hero-modern-meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
}

.hero-modern-meta-row strong {
    color: #111827;
}

.hero-modern-meta-row span {
    color: #6b7280;
}

/* 3. Content Hub: Modern Editorial Layout */
.maeds-content-hub {
    display: block;
    max-width: 1140px;
    margin: 0 auto;
    padding: 3rem 2.5rem 4rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-top: none;
    border-radius: 0 0 24px 24px;
}

.maeds-content-hub:has(.maeds-side-column) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
}

.maeds-main-column {
    min-width: 0;
}

.maeds-side-column {
    position: relative;
}

.maeds-side-column .page-toc-container {
    position: sticky;
    top: 90px;
}

/* 4. Responsive Breakpoints */
@media (max-width: 1024px) {
    .hero-modern-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .maeds-content-hub {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2.5rem 1.5rem 3.5rem;
    }
    
    .maeds-side-column {
        order: -1;
    }
    
    .maeds-side-column .page-toc-container {
        position: static;
    }
}

@media (max-width: 640px) {
    .hero-modern-container {
        padding: 2.5rem 1.25rem 3rem;
    }
    
    .hero-modern-title {
        font-size: 2.2rem;
    }
    
    .hero-modern-actions {
        flex-direction: column;
    }
    
    .hero-modern-btn {
        width: 100%;
    }
}
