/* ===========================
   Global Styles
   =========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c5f8d;
    --secondary-color: #4a8cc2;
    --accent-color: #d4af37;
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #6a6a6a;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.15);
}

body {
    font-family: 'Heebo', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-light);
    direction: rtl;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Frank Ruhl Libre', serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.1rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

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

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

/* ===========================
   Header Styles
   =========================== */

.site-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 2rem 0 0;
    box-shadow: var(--shadow-md);
}

.header-content {
    text-align: center;
    padding-bottom: 1.5rem;
}

.site-title {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.site-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    font-weight: 300;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 0;
    background: rgba(0,0,0,0.1);
}

.nav-link {
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255,255,255,0.1);
    border-bottom-color: var(--accent-color);
}

.nav-link i {
    font-size: 1.1rem;
}

/* ===========================
   Main Content
   =========================== */

.main-content {
    padding: 2rem 0;
}

.breadcrumbs {
    padding: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--text-medium);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.breadcrumbs .separator {
    color: var(--border-color);
}

/* ===========================
   Lesson Article
   =========================== */

.lesson-article {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 2rem;
}

.lesson-header {
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 3px solid var(--accent-color);
}

.lesson-number {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.lesson-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    color: var(--text-medium);
    font-size: 0.95rem;
}

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

.meta-item i {
    color: var(--secondary-color);
}

/* ===========================
   Video Container
   =========================== */

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===========================
   Content Boxes
   =========================== */

.summary-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-right: 5px solid var(--secondary-color);
    padding: 2rem;
    margin: 2rem;
    border-radius: 8px;
}

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

.summary-box h3 i {
    font-size: 1.8rem;
    color: var(--accent-color);
}

.highlight-box {
    background: #fff8dc;
    border-right: 4px solid var(--accent-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.info-box {
    background: #e8f5e9;
    border-right: 4px solid var(--success-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.warning-box {
    background: #fff3e0;
    border-right: 4px solid var(--warning-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.key-concept {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    border: 2px solid #9c27b0;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.key-concept h4 {
    color: #6a1b9a;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.example-box {
    background: #f1f8e9;
    border-right: 4px solid #8bc34a;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.example-box h5 {
    color: #558b2f;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.quote-box {
    background: #fafafa;
    border-right: 5px solid var(--accent-color);
    padding: 2rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
    border-radius: 8px;
}

.quote-box p {
    color: var(--text-medium);
    margin-bottom: 1rem;
}

.quote-box cite {
    display: block;
    text-align: left;
    color: var(--primary-color);
    font-weight: 600;
    font-style: normal;
    margin-top: 1rem;
}

/* ===========================
   Content Sections
   =========================== */

.lesson-content {
    padding: 2rem;
}

.content-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.content-section:last-child {
    border-bottom: none;
}

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

.section-title i {
    font-size: 1.8rem;
    color: var(--accent-color);
}

.section-content {
    font-size: 1.05rem;
    line-height: 1.9;
}

.emphasis {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* ===========================
   Lists
   =========================== */

.styled-list {
    list-style: none;
    margin: 1.5rem 0;
    padding-right: 0;
}

.styled-list li {
    padding: 0.8rem 0 0.8rem 1rem;
    border-right: 3px solid var(--secondary-color);
    margin-bottom: 0.8rem;
    background: linear-gradient(to left, transparent, rgba(74, 140, 194, 0.05));
    border-radius: 4px;
}

.styled-list li strong {
    color: var(--primary-color);
}

/* ===========================
   Two Column Layout
   =========================== */

.two-column-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.concept-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.concept-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.concept-card h4 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.concept-card h4 i {
    color: var(--accent-color);
    font-size: 1.8rem;
}

.concept-card .subtitle {
    color: var(--text-medium);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.concept-card ul {
    list-style: none;
    margin: 1rem 0;
}

.concept-card ul li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--border-color);
}

.concept-card ul li:last-child {
    border-bottom: none;
}

/* ===========================
   Tool Cards
   =========================== */

.tool-card {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cc 100%);
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    padding: 2rem;
    margin: 1.5rem 0;
    box-shadow: var(--shadow-md);
}

.tool-card h4 {
    color: #b8860b;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.tool-card h4 i {
    font-size: 1.5rem;
}

.tool-card ol,
.tool-card ul {
    margin: 1rem 0;
    padding-right: 1.5rem;
}

.tool-card li {
    margin: 0.8rem 0;
    padding-right: 0.5rem;
}

/* ===========================
   Takeaway Cards
   =========================== */

.highlight-section {
    background: linear-gradient(135deg, #fff5f8 0%, #ffe0ec 100%);
    border: 3px solid #e91e63;
    border-radius: 12px;
    padding: 2rem;
}

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

.takeaway-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s ease;
}

.takeaway-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.takeaway-card .number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.takeaway-card h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.takeaway-card p {
    color: var(--text-medium);
    font-size: 0.95rem;
    margin: 0;
}

.main-message {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 12px;
    padding: 2.5rem;
    margin: 2rem 0;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.main-message h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.main-message .big-text {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 1.5rem 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.main-message p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
}

/* ===========================
   Next Lesson Box
   =========================== */

.next-lesson-box {
    background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%);
    border: 2px solid #3f51b5;
    border-radius: 12px;
    padding: 2rem;
}

.next-lesson-box h4 {
    color: #283593;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.next-lesson-box ul {
    margin: 1rem 0;
    padding-right: 1.5rem;
}

.next-lesson-box li {
    margin: 0.8rem 0;
    color: var(--text-dark);
}

/* ===========================
   Questions Box
   =========================== */

.questions-box {
    background: #f3f4f6;
    border-radius: 12px;
    padding: 2rem;
}

.questions-box ol {
    counter-reset: question-counter;
    list-style: none;
    margin: 1.5rem 0;
}

.questions-box ol li {
    counter-increment: question-counter;
    margin: 1.5rem 0;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    position: relative;
    padding-right: 3rem;
}

.questions-box ol li:before {
    content: counter(question-counter);
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.questions-box .tip {
    background: #fff8dc;
    border-right: 4px solid var(--accent-color);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.questions-box .tip i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* ===========================
   Tags and Sharing
   =========================== */

.tags-section {
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-top: 1px solid var(--border-color);
}

.tags-section h4 {
    color: var(--text-medium);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    background: white;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.share-section {
    padding: 1.5rem 2rem;
    background: white;
    border-top: 1px solid var(--border-color);
}

.share-section h4 {
    color: var(--text-medium);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    color: white;
}

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

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

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.telegram {
    background: #0088cc;
}

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

/* ===========================
   Comments Section
   =========================== */

.comments-section {
    padding: 2rem;
    background: #f8f9fa;
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 12px 12px;
}

.comments-section h3 {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.comments-note {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0;
}

.contact-info i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.contact-info a {
    color: var(--text-dark);
}

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

/* ===========================
   Footer
   =========================== */

.site-footer {
    background: linear-gradient(135deg, #1a3a52 0%, var(--primary-color) 100%);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

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

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

.footer-section p {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
}

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

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

.footer-section ul li a {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
    text-decoration: underline;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255,255,255,0.7);
}

.footer-bottom a {
    color: rgba(255,255,255,0.9);
}

.footer-bottom a:hover {
    color: white;
    text-decoration: underline;
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.4rem; }
    
    .site-title {
        font-size: 2rem;
    }
    
    .main-nav {
        flex-wrap: wrap;
    }
    
    .nav-link {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .lesson-title {
        font-size: 1.8rem;
    }
    
    .lesson-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .lesson-content,
    .lesson-header {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .two-column-grid {
        grid-template-columns: 1fr;
    }
    
    .takeaway-grid {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .lesson-content,
    .lesson-header {
        padding: 1rem;
    }
    
    .main-message .big-text {
        font-size: 1.4rem;
    }
}

/* ===========================
   Print Styles
   =========================== */

@media print {
    .site-header,
    .main-nav,
    .breadcrumbs,
    .video-container,
    .share-section,
    .comments-section,
    .site-footer {
        display: none;
    }
    
    .lesson-article {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    body {
        background: white;
    }
}