/* ==========================================================================
   OnlyMantra Learn Educational Portal Styles (/learn/ and /learn/{slug}/)
   Apple Native Frosted Glass + Ramabhadra Classical Hierarchy
   ========================================================================== */

:root {
    --om-learn-bg: #f8fafc;
    --om-learn-surface: rgba(255, 255, 255, 0.85);
    --om-learn-border: rgba(255, 255, 255, 0.95);
    --om-learn-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
    --om-learn-shadow-hover: 0 16px 32px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
}

.om-learn-hub-page {
    background-color: #f8fafc;
    min-height: 100vh;
    padding-bottom: 80px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', system-ui, sans-serif;
    color: #1e293b;
}

.om-learn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.om-learn-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--om-learn-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none !important;
    color: inherit !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-sizing: border-box;
}

.om-learn-card:hover {
    background: #ffffff;
    border-color: #fed7aa;
    transform: translateY(-3px);
    box-shadow: var(--om-learn-shadow-hover);
}

.om-learn-card-title {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px;
    letter-spacing: -0.02em;
}

.om-chant-card-sub {
    font-family: 'Ramabhadra', 'Mandali', 'Suranna', 'Noto Serif Telugu', sans-serif;
    font-size: 13px;
    color: #92400e;
    font-weight: 400;
    margin-bottom: 4px;
    letter-spacing: 0.2px;
}

.om-learn-card-desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 18px;
}

.om-learn-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.om-learn-cta {
    font-size: 12.5px;
    font-weight: 700;
    color: #ea580c;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: transform 0.15s ease;
}

.om-learn-card:hover .om-learn-cta {
    transform: translateX(3px);
}

/* Article inside Learn Guide */
.om-learn-article-body {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--om-learn-shadow);
}

.om-learn-article-body h2 {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 28px 0 12px;
    letter-spacing: -0.025em;
}

.om-learn-article-body h2:first-child {
    margin-top: 0;
}

.om-learn-article-body p {
    font-size: 15px;
    line-height: 1.75;
    color: #334155;
    margin-bottom: 18px;
}

.om-learn-article-body ul, 
.om-learn-article-body ol {
    margin: 0 0 20px 20px;
    color: #334155;
    font-size: 15px;
    line-height: 1.7;
}

.om-learn-article-body li {
    margin-bottom: 8px;
}

/* Article Reader View */
.om-learn-article-body {
    background: #ffffff;
    border: 1px solid #f0e6d6;
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    font-size: 16px;
    line-height: 1.8;
    color: #334155;
}

.om-learn-article-body h2 {
    font-family: 'Philosopher', 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    font-size: 24px;
    color: #0f172a;
    margin: 28px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0f2fe;
}

.om-learn-article-body h3 {
    font-size: 18px;
    color: #0369a1;
    margin: 20px 0 10px;
}

.om-prep-notice-box {
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    padding: 20px;
    margin: 24px 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.om-prep-notice-icon {
    font-size: 32px;
}

.om-prep-notice-text {
    font-size: 14px;
    line-height: 1.55;
    color: #475569;
}
