/* ======================================
   Global Styles & Reset
   ====================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c5282;
    --secondary-color: #805ad5;
    --accent-color: #dd6b20;
    --success-color: #38a169;
    --warning-color: #d69e2e;
    --danger-color: #e53e3e;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --bg-gray: #edf2f7;
    --border-color: #e2e8f0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Heebo', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-primary);
    background-color: #ffffff;
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ======================================
   Typography
   ====================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-top: 2.5rem; }
h3 { font-size: 1.5rem; margin-top: 2rem; }
h4 { font-size: 1.25rem; margin-top: 1.5rem; }

p {
    margin-bottom: 1.2rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

/* ======================================
   Header
   ====================================== */
.site-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo h1 {
    color: white;
    font-size: 1.5rem;
    margin: 0;
    font-weight: 700;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* ======================================
   Main Content Layout
   ====================================== */
.main-content {
    padding: 2rem 0 4rem;
    background-color: var(--bg-light);
}

.main-content > .container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

/* ======================================
   Breadcrumbs
   ====================================== */
.breadcrumbs {
    padding: 1rem 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    grid-column: 1 / -1;
}

.breadcrumbs .separator {
    margin: 0 0.5rem;
}

.breadcrumbs .current {
    color: var(--text-primary);
    font-weight: 500;
}

/* ======================================
   Lesson Content
   ====================================== */
.lesson-content {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 2.5rem;
}

.lesson-header {
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 3px solid var(--primary-color);
    margin-bottom: 2rem;
}

.lesson-title {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.lesson-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    color: var(--text-secondary);
    font-size: 1rem;
}

.lesson-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lesson-meta i {
    color: var(--accent-color);
}

/* ======================================
   Video Section
   ====================================== */
.video-section {
    margin: 2rem 0;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* ======================================
   Content Boxes
   ====================================== */
.summary-box,
.highlight-box,
.info-box,
.example-box,
.quote-box,
.definition-box,
.story-box,
.special-box,
.action-box {
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    border-right: 5px solid;
}

.summary-box {
    background: linear-gradient(135deg, #e6f7ff 0%, #f0f9ff 100%);
    border-color: var(--primary-color);
}

.summary-box h3 {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.highlight-box {
    background: linear-gradient(135deg, #fff5e6 0%, #fffaf0 100%);
    border-color: var(--accent-color);
}

.highlight-box.special {
    background: linear-gradient(135deg, #f3e8ff 0%, #faf5ff 100%);
    border-color: var(--secondary-color);
}

.info-box {
    background: linear-gradient(135deg, #e6f7ff 0%, #f0f9ff 100%);
    border-color: var(--primary-color);
}

.info-box.warning {
    background: linear-gradient(135deg, #fff9e6 0%, #fffef0 100%);
    border-color: var(--warning-color);
}

.example-box {
    background: linear-gradient(135deg, #f0fff4 0%, #f7fffa 100%);
    border-color: var(--success-color);
}

.example-box.inspiration {
    background: linear-gradient(135deg, #fef5ff 0%, #fff5fc 100%);
    border-color: var(--secondary-color);
}

.quote-box {
    background: linear-gradient(135deg, #f7f7f7 0%, #fafafa 100%);
    border-color: var(--text-secondary);
    font-style: italic;
    font-size: 1.1rem;
    text-align: center;
    padding: 2rem;
}

.quote-box.special {
    background: linear-gradient(135deg, #fff5f5 0%, #fffafa 100%);
    border-color: var(--danger-color);
    font-weight: 500;
}

.quote-box .quote {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.6;
    color: var(--text-primary);
}

.definition-box {
    background: linear-gradient(135deg, #f3e8ff 0%, #faf5ff 100%);
    border-color: var(--secondary-color);
}

.story-box {
    background: linear-gradient(135deg, #fffaeb 0%, #fffef5 100%);
    border-color: var(--warning-color);
}

.special-box {
    background: linear-gradient(135deg, #fef5e7 0%, #fff9f0 100%);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-lg);
}

.action-box {
    background: linear-gradient(135deg, #e6fffa 0%, #f0fffe 100%);
    border-color: #38b2ac;
}

/* ======================================
   Lists
   ====================================== */
.styled-list,
.action-list {
    list-style: none;
    padding-right: 0;
}

.styled-list li {
    padding: 0.8rem 0 0.8rem 1.5rem;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.styled-list li:last-child {
    border-bottom: none;
}


.action-list li {
    padding: 0.7rem 0 0.7rem 2rem;
    position: relative;
}

.action-list li i {
    position: absolute;
    right: 0;
    color: var(--success-color);
    font-size: 1.2rem;
}

.steps-list {
    counter-reset: step-counter;
    list-style: none;
    padding-right: 0;
}

.steps-list li {
    counter-increment: step-counter;
    padding: 1rem 0 1rem 3rem;
    position: relative;
    margin-bottom: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1.2rem 1.5rem 1.2rem 4rem;
}

.steps-list li:before {
    content: counter(step-counter);
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* ======================================
   Two Columns Layout
   ====================================== */
.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.column {
    padding: 1.5rem;
    border-radius: 10px;
    background: var(--bg-light);
    border-right: 4px solid var(--primary-color);
}

.column.success {
    background: linear-gradient(135deg, #f0fff4 0%, #f7fffa 100%);
    border-color: var(--success-color);
}

.column.warning {
    background: linear-gradient(135deg, #fff9e6 0%, #fffef0 100%);
    border-color: var(--warning-color);
}

.column h4 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ======================================
   Tables
   ====================================== */
.comparison-table {
    margin: 2rem 0;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

th {
    padding: 1.2rem;
    text-align: right;
    font-weight: 600;
    font-size: 1.1rem;
}

td {
    padding: 1.2rem;
    border-bottom: 1px solid var(--border-color);
}

tbody tr:hover {
    background-color: var(--bg-light);
}

tbody tr:last-child td {
    border-bottom: none;
}

td i {
    margin-left: 0.5rem;
}

.fa-times-circle {
    color: var(--danger-color);
}

.fa-check-circle {
    color: var(--success-color);
}

/* ======================================
   Text Emphasis
   ====================================== */
.key-principle {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    margin: 1rem 0;
}

.highlight-text {
    background: linear-gradient(135deg, #fff5e6 0%, #fffaf0 100%);
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    font-weight: 500;
    display: inline-block;
    margin: 0.5rem 0;
}

.important-text {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-primary);
}

.quote.big {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.6;
    margin: 1.5rem 0;
}

/* ======================================
   Levels List
   ====================================== */
.levels-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.level {
    padding: 1.5rem;
    border-radius: 10px;
    background: var(--bg-light);
    border-right: 4px solid var(--text-secondary);
    transition: var(--transition);
}

.level:hover {
    transform: translateX(-5px);
    box-shadow: var(--shadow);
}

.level.highlight {
    background: linear-gradient(135deg, #fff5e6 0%, #fffaf0 100%);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-lg);
}

.level h4 {
    margin-top: 0;
    color: var(--primary-color);
}

/* ======================================
   Key Points
   ====================================== */
.key-points {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.point {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.point:hover {
    transform: translateX(-5px);
    box-shadow: var(--shadow-lg);
}

.point .number {
    min-width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.point p {
    margin: 0;
    line-height: 1.6;
}

/* ======================================
   Story Content
   ====================================== */
.story-content {
    font-size: 1.05rem;
    line-height: 1.9;
}

.story-content .moral {
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

/* ======================================
   Lesson Navigation
   ====================================== */
.lesson-navigation {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 10px;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.nav-btn.prev {
    justify-content: flex-start;
}

.nav-btn.next {
    justify-content: flex-end;
    grid-column: 3;
}

.nav-btn.home {
    justify-content: center;
    grid-column: 2;
    background: linear-gradient(135deg, var(--accent-color) 0%, #f56565 100%);
}

.nav-btn i {
    font-size: 1.3rem;
}

.nav-btn small {
    display: block;
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 400;
}

/* ======================================
   Sidebar
   ====================================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.widget {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.widget h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.lessons-list {
    list-style: none;
    padding: 0;
}

.lessons-list li {
    margin-bottom: 0.8rem;
}

.lessons-list li.current {
    background: var(--bg-light);
    border-radius: 6px;
    padding: 0.5rem;
}

.lessons-list li.current a {
    font-weight: 600;
    color: var(--primary-color);
}

.lessons-list a {
    display: block;
    padding: 0.7rem;
    border-radius: 6px;
    transition: var(--transition);
}

.lessons-list a:hover {
    background: var(--bg-light);
    transform: translateX(-3px);
}

/* CTA Widget */
.widget.cta {
    background: linear-gradient(135deg, #f3e8ff 0%, #faf5ff 100%);
    border: 2px solid var(--secondary-color);
}

.widget.cta h3 {
    color: var(--secondary-color);
}

.cta-button {
    display: block;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #9f7aea 100%);
    color: white;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 1rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: white;
}

/* Share Widget */
.share-buttons {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.share-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn.facebook {
    background: #3b5998;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.email {
    background: #ea4335;
}

/* ======================================
   Footer
   ====================================== */
.site-footer {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #cbd5e0;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
    transform: translateX(-3px);
    display: inline-block;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e0;
}

/* ======================================
   Responsive Design
   ====================================== */
@media (max-width: 1024px) {
    .main-content > .container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: -1;
    }
    
    .two-columns {
        grid-template-columns: 1fr;
    }
    
    .lesson-navigation {
        grid-template-columns: 1fr;
    }
    
    .nav-btn.home {
        grid-column: 1;
        order: 3;
    }
    
    .nav-btn.next {
        grid-column: 1;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }
    
    .lesson-title {
        font-size: 2rem;
    }
    
    .lesson-content {
        padding: 1.5rem;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .lesson-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .quote.big {
        font-size: 1.2rem;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .lesson-content {
        padding: 1rem;
    }
    
    .summary-box,
    .highlight-box,
    .info-box,
    .example-box,
    .quote-box,
    .definition-box,
    .story-box,
    .special-box,
    .action-box {
        padding: 1rem;
    }
    
    .nav-btn {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .point {
        flex-direction: column;
        text-align: center;
    }
    
    .point .number {
        margin: 0 auto;
    }
}

/* ======================================
   Print Styles
   ====================================== */
@media print {
    .site-header,
    .breadcrumbs,
    .video-section,
    .lesson-navigation,
    .sidebar,
    .site-footer,
    .share-buttons {
        display: none;
    }
    
    .lesson-content {
        box-shadow: none;
        padding: 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    h1 { font-size: 20pt; }
    h2 { font-size: 16pt; }
    h3 { font-size: 14pt; }
}

/* ======================================
   Animations
   ====================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section {
    animation: fadeIn 0.6s ease-out;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}