/*
 * Srimad Gita Content Pages Stylesheet
 * Aesthetic: Sacred Manuscript - Modern Contemplative
 * For: use-case, solution, features, topics, lessons, and other content pages
 * Harmonizes with verse-styles.css for visual consistency
 */

/* ============================================
   FONTS - Elegant, spiritual typography
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Crimson+Pro:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Noto+Sans+Devanagari:wght@400;500;600;700&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

/* ============================================
   CSS VARIABLES - Sacred Color Palette
   ============================================ */
:root {
    /* Primary Colors - Temple inspired */
    --saffron: #E85A19;
    --saffron-light: #FF7B3D;
    --saffron-dark: #C44A10;
    --saffron-glow: rgba(232, 90, 25, 0.15);
    --gold: #C9A227;
    --gold-light: #E8C547;
    --gold-shimmer: rgba(201, 162, 39, 0.2);

    /* Sacred Backgrounds */
    --cream: #FDF8F3;
    --cream-warm: #FAF4ED;
    --parchment: #F5EDE4;
    --temple-white: #FFFCF7;

    /* Deep Contrasts */
    --deep-blue: #1A1A2E;
    --ink: #2D2D3A;
    --charcoal: #3D3D4D;
    --slate: #5A5A6E;

    /* Text Colors */
    --text-primary: #2D2D3A;
    --text-secondary: #5A5A6E;
    --text-muted: #7A7A8E;
    --text-light: rgba(255, 255, 255, 0.9);
    --text-sanskrit: #1A1A2E;

    /* Semantic Colors */
    --success: #2E7D32;
    --success-light: #E8F5E9;
    --warning: #F57C00;
    --warning-light: #FFF3E0;

    /* Guna Colors */
    --sattva: #4A90A4;
    --sattva-light: #E3F2FD;
    --rajas: #E85A19;
    --rajas-light: #FFF3E0;
    --tamas: #5C6BC0;
    --tamas-light: #E8EAF6;

    /* Borders & Shadows */
    --border-soft: rgba(201, 162, 39, 0.3);
    --border-warm: rgba(232, 90, 25, 0.2);
    --shadow-soft: 0 4px 20px rgba(26, 26, 46, 0.08);
    --shadow-medium: 0 8px 30px rgba(26, 26, 46, 0.1);
    --shadow-elevated: 0 12px 40px rgba(26, 26, 46, 0.12);
    --shadow-glow: 0 0 60px rgba(232, 90, 25, 0.1);

    /* Spacing Scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;

    /* Typography Scale */
    --text-xs: 0.875rem;
    --text-sm: 1rem;
    --text-base: 1.125rem;
    --text-lg: 1.25rem;
    --text-xl: 1.5rem;
    --text-2xl: 2rem;
    --text-3xl: 2.5rem;
    --text-4xl: 3.5rem;
    --text-5xl: 4.5rem;

    /* Layout */
    --max-width: 1200px;
    --content-width: 900px;
    --narrow-width: 720px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

/* ============================================
   BASE RESET & GLOBAL STYLES
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Crimson Pro', 'EB Garamond', Georgia, serif;
    font-size: var(--text-base);
    line-height: 1.8;
    color: var(--text-primary);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Subtle ambient background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(ellipse at 20% 20%, var(--saffron-glow) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, var(--gold-shimmer) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
    margin-bottom: var(--space-md);
}

a {
    color: var(--saffron);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--saffron-light);
}

ul, ol {
    margin-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

li {
    margin-bottom: var(--space-xs);
    line-height: 1.7;
}

strong {
    font-weight: 600;
    color: var(--saffron);
}

em {
    font-style: italic;
    color: var(--text-secondary);
}

/* ============================================
   LAYOUT CONTAINERS
   ============================================ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ============================================
   NAVIGATION - Elegant sticky header
   ============================================ */
.navbar {
    background: var(--temple-white);
    border-bottom: 1px solid var(--border-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-md) var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
}

.nav-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
}

.nav-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--saffron);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    font-family: 'Crimson Pro', serif;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    text-decoration: none;
    padding: var(--space-xs) 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--saffron);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--saffron);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.download-btn {
    background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-light) 100%);
    color: var(--temple-white);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.nav-link.download-btn::after {
    display: none;
}

.nav-link.download-btn:hover {
    color: var(--temple-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(232, 90, 25, 0.3);
}

/* ============================================
   HERO SECTION - Majestic opening
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--deep-blue) 0%, #0D0D1A 100%);
    color: var(--temple-white);
    padding: var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 30% 30%, rgba(232, 90, 25, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 70%, rgba(201, 162, 39, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--cream) 0%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: var(--content-width);
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: var(--text-5xl);
    font-weight: 600;
    color: var(--temple-white);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero-subtitle {
    font-family: 'EB Garamond', serif;
    font-size: var(--text-xl);
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Statistics */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-family: 'Crimson Pro', serif;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-md) var(--space-xl);
    font-family: 'Crimson Pro', serif;
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-light) 100%);
    color: var(--temple-white);
    box-shadow: 0 4px 20px rgba(232, 90, 25, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(232, 90, 25, 0.5);
    color: var(--temple-white);
}

.btn-secondary {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--deep-blue);
}

/* ============================================
   CONTENT SECTIONS - Main body styling
   ============================================ */
.content-section {
    padding: var(--space-3xl) 0;
    position: relative;
}

.content-section.bg-light {
    background: var(--cream-warm);
}

.content-section h2 {
    font-size: var(--text-3xl);
    color: var(--deep-blue);
    margin-bottom: var(--space-md);
    text-align: center;
    position: relative;
}

.content-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--saffron), var(--gold));
    margin: var(--space-md) auto 0;
    border-radius: 2px;
}

.section-intro {
    font-family: 'EB Garamond', serif;
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--text-secondary);
    text-align: center;
    max-width: var(--narrow-width);
    margin: 0 auto var(--space-xl);
    line-height: 1.9;
}

/* ============================================
   CRISIS STATISTICS - Problem awareness
   ============================================ */
.crisis-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.crisis-item {
    background: var(--temple-white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
    border-left: 4px solid var(--saffron);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.crisis-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-elevated);
}

.crisis-item h3 {
    font-size: var(--text-xl);
    color: var(--saffron);
    margin-bottom: var(--space-md);
}

.crisis-item p {
    margin-bottom: var(--space-md);
}

.crisis-item ul {
    list-style: none;
    margin-left: 0;
}

.crisis-item li {
    padding: var(--space-xs) 0;
    padding-left: var(--space-lg);
    position: relative;
}

.crisis-item li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: bold;
}

/* ============================================
   TEACHING BLOCKS - Sanskrit verse sections
   ============================================ */
.teaching-block {
    background: var(--temple-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.teaching-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--saffron), var(--gold), var(--saffron));
}

.teaching-block h3 {
    font-size: var(--text-xl);
    color: var(--deep-blue);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--border-soft);
}

/* Sanskrit Verse Styling */
.sanskrit-verse {
    background: linear-gradient(135deg, var(--cream-warm) 0%, var(--parchment) 100%);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    margin: var(--space-lg) 0;
    text-align: center;
    position: relative;
    border: 1px solid var(--border-soft);
}

.sanskrit-verse::before,
.sanskrit-verse::after {
    content: '॥';
    position: absolute;
    font-family: 'Noto Sans Devanagari', serif;
    font-size: var(--text-2xl);
    color: var(--gold);
    opacity: 0.5;
}

.sanskrit-verse::before {
    top: var(--space-md);
    left: var(--space-lg);
}

.sanskrit-verse::after {
    bottom: var(--space-md);
    right: var(--space-lg);
}

.sanskrit-verse .sanskrit,
.sanskrit-verse p.sanskrit {
    font-family: 'Noto Sans Devanagari', 'Mangal', serif;
    font-size: var(--text-2xl);
    font-weight: 500;
    line-height: 2;
    color: var(--text-sanskrit);
    margin-bottom: var(--space-md);
}

.sanskrit-verse .transliteration,
.sanskrit-verse p.transliteration {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.sanskrit-verse .translation,
.sanskrit-verse p.translation {
    font-family: 'Crimson Pro', serif;
    font-size: var(--text-base);
    color: var(--text-primary);
    background: var(--temple-white);
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--saffron);
    text-align: left;
    margin-top: var(--space-md);
}

.teaching-explanation {
    margin-top: var(--space-lg);
}

.teaching-explanation p:first-of-type {
    font-size: var(--text-lg);
    line-height: 1.9;
}

.teaching-explanation ul {
    background: var(--cream-warm);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    list-style: none;
    margin-left: 0;
}

.teaching-explanation li {
    padding: var(--space-sm) 0;
    padding-left: var(--space-lg);
    position: relative;
    border-bottom: 1px solid var(--border-soft);
}

.teaching-explanation li:last-child {
    border-bottom: none;
}

.teaching-explanation li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--saffron);
}

/* ============================================
   DHARMA FRAMEWORK - Principles section
   ============================================ */
.dharma-framework {
    background: var(--temple-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-top: var(--space-xl);
    box-shadow: var(--shadow-soft);
}

.dharma-framework h3 {
    font-size: var(--text-xl);
    color: var(--deep-blue);
    margin-bottom: var(--space-md);
}

.practical-application {
    background: var(--cream-warm);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-top: var(--space-lg);
}

.practical-application h4 {
    font-size: var(--text-lg);
    color: var(--saffron);
    margin-bottom: var(--space-md);
}

.boundary-examples {
    display: grid;
    gap: var(--space-md);
}

.boundary-item {
    background: var(--temple-white);
    padding: var(--space-lg);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--gold);
}

.boundary-item strong {
    display: block;
    font-size: var(--text-base);
    color: var(--deep-blue);
    margin-bottom: var(--space-xs);
}

.boundary-item p {
    margin-bottom: 0;
    color: var(--text-secondary);
}

/* ============================================
   THREE GUNAS SYSTEM - Time management
   ============================================ */
.gunas-system {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.guna-item {
    background: var(--temple-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.guna-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.guna-item:nth-child(1)::before {
    background: var(--sattva);
}

.guna-item:nth-child(2)::before {
    background: var(--rajas);
}

.guna-item:nth-child(3)::before {
    background: var(--tamas);
}

.guna-item h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-md);
}

.guna-item:nth-child(1) h3 { color: var(--sattva); }
.guna-item:nth-child(2) h3 { color: var(--rajas); }
.guna-item:nth-child(3) h3 { color: var(--tamas); }

.practical-tip {
    background: var(--cream-warm);
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    margin-top: var(--space-md);
    font-size: var(--text-sm);
    border-left: 3px solid var(--gold);
}

.practical-tip strong {
    display: block;
    color: var(--deep-blue);
    margin-bottom: var(--space-xs);
}

/* Guna Daily Schedule */
.guna-daily-schedule {
    background: var(--temple-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-top: var(--space-xl);
    box-shadow: var(--shadow-soft);
}

.guna-daily-schedule h3 {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
}

.time-block {
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
}

.time-block.sattva {
    background: var(--sattva-light);
    border: 2px solid var(--sattva);
}

.time-block.rajas {
    background: var(--rajas-light);
    border: 2px solid var(--rajas);
}

.time-block.tamas {
    background: var(--tamas-light);
    border: 2px solid var(--tamas);
}

.time-block .time {
    font-family: 'Cormorant Garamond', serif;
    font-size: var(--text-xl);
    font-weight: 600;
    display: block;
    margin-bottom: var(--space-xs);
}

.time-block.sattva .time { color: var(--sattva); }
.time-block.rajas .time { color: var(--rajas); }
.time-block.tamas .time { color: var(--tamas); }

.time-block .guna {
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-size: var(--text-base);
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.time-block .activities ul {
    list-style: none;
    margin: 0;
    text-align: left;
}

.time-block .activities li {
    padding: var(--space-xs) 0;
    font-size: var(--text-sm);
}

/* ============================================
   INTEGRATION METHODS - Spiritual practices
   ============================================ */
.integration-methods {
    display: grid;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.method-item {
    background: var(--temple-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-soft);
}

.method-item h3 {
    font-size: var(--text-xl);
    color: var(--deep-blue);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--gold);
}

.micro-practices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.practice {
    background: var(--cream-warm);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--saffron);
}

.practice strong {
    display: block;
    font-size: var(--text-base);
    color: var(--deep-blue);
    margin-bottom: var(--space-xs);
}

.practice p {
    margin-bottom: 0;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* ============================================
   ROUTINE CATEGORIES - Daily schedules
   ============================================ */
.routine-categories {
    display: grid;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.routine-category {
    background: var(--temple-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-soft);
}

.routine-category h3 {
    font-size: var(--text-xl);
    color: var(--deep-blue);
    margin-bottom: var(--space-xs);
}

.routine-category > p {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.routine-timeline {
    position: relative;
    padding-left: var(--space-xl);
}

.routine-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--saffron), var(--gold));
    border-radius: 2px;
}

.routine-item {
    position: relative;
    padding-bottom: var(--space-lg);
    padding-left: var(--space-md);
}

.routine-item::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--space-xl) - 6px);
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--saffron);
    border-radius: 50%;
    border: 3px solid var(--temple-white);
}

.routine-item .time {
    font-family: 'Cormorant Garamond', serif;
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--saffron);
    display: block;
    margin-bottom: var(--space-xs);
}

.routine-item .activity {
    background: var(--cream-warm);
    padding: var(--space-md);
    border-radius: var(--radius-sm);
}

.routine-item .activity strong {
    display: block;
    color: var(--deep-blue);
    margin-bottom: var(--space-xs);
}

.routine-item .activity p {
    margin-bottom: 0;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.routine-flexibility {
    background: var(--cream-warm);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
}

.routine-flexibility h4 {
    color: var(--saffron);
    margin-bottom: var(--space-md);
}

/* Routine Principles */
.routine-principles {
    background: var(--temple-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-top: var(--space-xl);
    box-shadow: var(--shadow-soft);
}

.routine-principles h3 {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.principle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
}

.principle {
    background: var(--cream-warm);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border-top: 3px solid var(--gold);
}

.principle strong {
    display: block;
    color: var(--deep-blue);
    margin-bottom: var(--space-xs);
}

.principle p {
    margin-bottom: 0;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* ============================================
   SUCCESS STORIES - Testimonials
   ============================================ */
.success-stories {
    display: grid;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.story {
    background: var(--temple-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.story-header {
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--charcoal) 100%);
    padding: var(--space-lg);
    color: var(--temple-white);
}

.story-header h3 {
    color: var(--temple-white);
    margin-bottom: var(--space-xs);
}

.story-header .industry {
    font-family: 'Crimson Pro', serif;
    font-size: var(--text-sm);
    color: var(--gold);
}

.story-content {
    padding: var(--space-xl);
}

.challenge,
.solution,
.results {
    margin-bottom: var(--space-lg);
}

.challenge strong,
.solution strong,
.results strong {
    display: block;
    font-size: var(--text-base);
    color: var(--deep-blue);
    margin-bottom: var(--space-sm);
}

.challenge p,
.solution p {
    background: var(--cream-warm);
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    font-style: italic;
}

.results ul {
    background: var(--success-light);
    padding: var(--space-lg);
    border-radius: var(--radius-sm);
    list-style: none;
    margin-left: 0;
    border-left: 3px solid var(--success);
}

.results li::before {
    content: '✓';
    color: var(--success);
    font-weight: bold;
    margin-right: var(--space-xs);
}

.key-insight {
    background: linear-gradient(135deg, var(--saffron-glow), var(--gold-shimmer));
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--saffron);
}

.key-insight strong {
    display: block;
    color: var(--saffron);
    margin-bottom: var(--space-xs);
}

.key-insight em {
    font-family: 'EB Garamond', serif;
    font-size: var(--text-lg);
    color: var(--text-primary);
    font-style: italic;
}

/* Common Themes */
.common-themes {
    background: var(--temple-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-top: var(--space-xl);
    box-shadow: var(--shadow-soft);
}

.common-themes h3 {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
}

.theme {
    background: var(--cream-warm);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--gold);
}

.theme strong {
    display: block;
    color: var(--deep-blue);
    margin-bottom: var(--space-xs);
}

.theme p {
    margin-bottom: 0;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* ============================================
   FAQ SECTION - Questions and answers
   ============================================ */
.faq-list {
    max-width: var(--content-width);
    margin: var(--space-xl) auto 0;
}

.faq-item {
    background: var(--temple-white);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-medium);
}

.faq-item h3 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--temple-white);
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--charcoal) 100%);
    padding: var(--space-lg);
    margin: 0;
    cursor: pointer;
    position: relative;
    transition: background 0.3s ease;
}

.faq-item h3:hover {
    background: linear-gradient(135deg, var(--charcoal) 0%, var(--deep-blue) 100%);
}

.faq-item h3::after {
    content: '✦';
    position: absolute;
    right: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: var(--text-sm);
}

.faq-answer {
    padding: var(--space-lg);
    display: none;
}

.faq-answer p {
    margin-bottom: var(--space-md);
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* ============================================
   CTA SECTION - App download
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--deep-blue) 0%, #0D0D1A 100%);
    padding: var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 30% 30%, rgba(232, 90, 25, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 70%, rgba(201, 162, 39, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: var(--content-width);
    margin: 0 auto;
}

.cta-section h2 {
    font-size: var(--text-3xl);
    color: var(--temple-white);
    margin-bottom: var(--space-md);
}

.cta-section h2::after {
    background: linear-gradient(90deg, var(--gold), var(--saffron));
}

.cta-section > .container > p,
.cta-content > p {
    font-family: 'EB Garamond', serif;
    font-size: var(--text-lg);
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-xl);
}

/* App Features Grid */
.app-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
    text-align: left;
}

.feature {
    background: rgba(255, 255, 255, 0.05);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.feature:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}

.feature h4 {
    font-size: var(--text-base);
    color: var(--gold);
    margin-bottom: var(--space-sm);
}

.feature p {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

/* Download Buttons */
.download-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
    margin-bottom: var(--space-lg);
}

.download-btn {
    transition: transform 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-3px);
}

.download-btn img {
    height: 50px;
    width: auto;
}

/* QR Codes */
.qr-codes {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-top: var(--space-lg);
}

.qr-code {
    text-align: center;
}

.qr-code img {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-sm);
    background: white;
    padding: var(--space-xs);
}

.qr-code span {
    display: block;
    margin-top: var(--space-xs);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   RELATED CONTENT - Links section
   ============================================ */
.related-content {
    background: var(--cream-warm);
    padding: var(--space-2xl) 0;
}

.related-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.related-category h3 {
    font-size: var(--text-lg);
    color: var(--saffron);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--border-soft);
}

.related-category ul {
    list-style: none;
    margin: 0;
}

.related-category li {
    padding: var(--space-xs) 0;
}

.related-category a {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.related-category a:hover {
    color: var(--saffron);
    padding-left: var(--space-xs);
}

/* ============================================
   FOOTER - Site footer
   ============================================ */
.footer {
    background: var(--deep-blue);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-section h4 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--gold);
    font-size: var(--text-base);
    margin-bottom: var(--space-md);
}

.footer-section p {
    font-size: var(--text-sm);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.footer-section ul {
    list-style: none;
    margin: 0;
}

.footer-section li {
    margin-bottom: var(--space-xs);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-sm);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--saffron-light);
}

.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: var(--text-xs);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--saffron);
    color: var(--temple-white);
}

.app-download-footer {
    display: flex;
    gap: var(--space-sm);
}

.app-download-footer a {
    padding: var(--space-xs) var(--space-sm);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
}

.app-download-footer a:hover {
    background: var(--saffron);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: var(--text-sm);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 var(--space-xs);
}

.footer-bottom a:hover {
    color: var(--saffron-light);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --text-4xl: 3rem;
        --text-5xl: 3.5rem;
        --space-3xl: 6rem;
    }
}

@media (max-width: 768px) {
    :root {
        --text-base: 1rem;
        --text-lg: 1.125rem;
        --text-xl: 1.25rem;
        --text-2xl: 1.75rem;
        --text-3xl: 2rem;
        --text-4xl: 2.5rem;
        --text-5xl: 3rem;
        --space-lg: 2rem;
        --space-xl: 3rem;
        --space-2xl: 4rem;
        --space-3xl: 5rem;
    }

    .container {
        padding: 0 var(--space-md);
    }

    .nav-menu {
        display: none;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .crisis-stats,
    .gunas-system {
        grid-template-columns: 1fr;
    }

    .schedule-grid,
    .micro-practices,
    .principle-grid,
    .theme-grid {
        grid-template-columns: 1fr;
    }

    .app-features {
        grid-template-columns: 1fr;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .qr-codes {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links,
    .app-download-footer {
        justify-content: center;
    }

    .sanskrit-verse::before,
    .sanskrit-verse::after {
        display: none;
    }
}

@media (max-width: 480px) {
    :root {
        --text-3xl: 1.75rem;
        --text-4xl: 2rem;
        --text-5xl: 2.5rem;
    }

    .hero {
        padding: var(--space-2xl) 0;
    }

    .content-section {
        padding: var(--space-2xl) 0;
    }

    .teaching-block,
    .dharma-framework,
    .method-item,
    .routine-category,
    .story,
    .faq-item {
        border-radius: var(--radius-md);
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    body::before,
    .navbar,
    .cta-section,
    .footer,
    .hero::after,
    .download-buttons,
    .qr-codes {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .hero {
        background: none;
        color: black;
        padding: var(--space-lg) 0;
    }

    .hero h1,
    .hero-subtitle {
        color: black;
    }

    .content-section {
        padding: var(--space-lg) 0;
    }

    .teaching-block,
    .crisis-item,
    .story {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a:focus,
button:focus {
    outline: 3px solid var(--saffron);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: high) {
    :root {
        --saffron: #D14800;
        --gold: #9A7B00;
        --text-primary: #000;
        --text-secondary: #333;
    }
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */
@media (prefers-color-scheme: dark) {
    :root {
        --cream: #1A1A2E;
        --cream-warm: #232338;
        --parchment: #2A2A40;
        --temple-white: #2D2D45;
        --text-primary: #E8E8F0;
        --text-secondary: #A8A8B8;
        --text-muted: #787888;
        --border-soft: rgba(201, 162, 39, 0.2);
    }

    body::before {
        background-image:
            radial-gradient(ellipse at 20% 20%, rgba(232, 90, 25, 0.1) 0%, transparent 50%),
            radial-gradient(ellipse at 80% 80%, rgba(201, 162, 39, 0.08) 0%, transparent 50%);
    }

    .content-section h2 {
        color: var(--gold);
    }

    .crisis-item,
    .teaching-block,
    .guna-item,
    .method-item,
    .routine-category,
    .faq-item {
        background: var(--temple-white);
    }

    .sanskrit-verse {
        background: linear-gradient(135deg, var(--parchment) 0%, var(--cream-warm) 100%);
    }

    .story-header {
        background: linear-gradient(135deg, var(--charcoal) 0%, var(--ink) 100%);
    }
}
