/* ====================================
   Global Styles & Reset
   ==================================== */

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

:root {
    /* Color Palette - Inspired by Jewish tradition */
    --primary-color: #2c5f8d; /* Deep blue - like tallit */
    --secondary-color: #8b6f47; /* Warm gold */
    --accent-color: #c49a6c; /* Light gold */
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, #2c5f8d 0%, #4a7ba7 100%);
    --gradient-gold: linear-gradient(135deg, #c49a6c 0%, #8b6f47 100%);
}

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

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

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ====================================
   Container & Layout
   ==================================== */

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

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

.header {
    background: var(--gradient-primary);
    color: white;
    padding: 2rem 0;
    box-shadow: var(--shadow-md);
}

.header-content {
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.logo i {
    font-size: 2.5rem;
}

.logo h1 {
    font-size: 2.5rem;
    color: white;
    margin: 0;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 300;
}

/* ====================================
   Hero Section
   ==================================== */

.hero {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.95)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0 C150,80 350,80 600,50 C850,20 1050,20 1200,50 L1200,120 L0,120 Z" fill="%23f7fafc"/></svg>');
    padding: 4rem 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--gradient-gold);
    color: white;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.hero-title {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ====================================
   Buttons
   ==================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ====================================
   Video Section
   ==================================== */

.video-section {
    padding: 4rem 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 1.5rem;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

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

.video-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.video-info i {
    color: var(--accent-color);
}

/* ====================================
   Content Section
   ==================================== */

.content-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    margin-top: 2rem;
}

.main-content {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.main-content h3 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.main-content h3 i {
    color: var(--accent-color);
}

.main-content h4 {
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem;
    color: var(--secondary-color);
}

.main-content p {
    margin-bottom: 1.2rem;
    line-height: 1.9;
}

.main-content ul,
.main-content ol {
    margin: 1.5rem 0;
    padding-right: 1.5rem;
}

.main-content li {
    margin-bottom: 0.8rem;
    line-height: 1.8;
}

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

.intro-box {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
    padding: 2rem;
    border-radius: 10px;
    border-right: 4px solid var(--primary-color);
    margin-bottom: 2rem;
}

.intro-text {
    font-size: 1.15rem;
    line-height: 1.9;
    margin: 0;
}

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

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

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

.concept-card h4 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.quote-box {
    background: var(--gradient-primary);
    color: white;
    padding: 2.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    position: relative;
    box-shadow: var(--shadow-md);
}

.quote-box i {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    opacity: 0.3;
}

.quote-box p {
    font-size: 1.3rem;
    font-family: 'Frank Ruhl Libre', serif;
    line-height: 1.8;
    margin: 0 0 1rem 0;
}

.quote-box cite {
    font-style: normal;
    opacity: 0.9;
    font-size: 1rem;
}

.important-text {
    font-size: 1.1rem;
    background: #fffbf0;
    padding: 1.5rem;
    border-radius: 8px;
    border-right: 4px solid var(--accent-color);
}

.highlight-text {
    background: linear-gradient(120deg, #c49a6c 0%, #c49a6c 100%);
    background-repeat: no-repeat;
    background-size: 100% 30%;
    background-position: 0 85%;
    padding: 0.2rem 0;
    font-weight: 500;
}

.story-box {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
}

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

.practical-box {
    background: linear-gradient(135deg, #e6f7f1 0%, #d1f2e6 100%);
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    border-right: 4px solid #48bb78;
}

.practical-box h4 {
    color: #2f855a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.steps-list li {
    counter-increment: step-counter;
    position: relative;
    padding-right: 3rem;
    margin-bottom: 1.5rem;
}

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

.key-message {
    background: var(--gradient-gold);
    color: white;
    padding: 2.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: var(--shadow-lg);
}

.key-message p {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 1.2rem;
}

.key-message p:last-child {
    margin-bottom: 0;
}

/* ====================================
   Sidebar
   ==================================== */

.sidebar {
    position: relative;
}

.sticky-sidebar {
    position: sticky;
    top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cta-box {
    background: var(--gradient-primary);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.cta-box h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.cta-box p {
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.highlights-box {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.highlights-box h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

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

.highlights-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.highlights-list i {
    color: var(--accent-color);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.quote-box-small {
    background: linear-gradient(135deg, #fff9f0 0%, #fff5e6 100%);
    padding: 1.5rem;
    border-radius: 10px;
    border-right: 4px solid var(--accent-color);
    text-align: center;
}

.quote-box-small i {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.quote-box-small p {
    font-family: 'Frank Ruhl Libre', serif;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
    color: var(--text-primary);
}

.dedication {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    text-align: center;
}

.dedication h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.dedication p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.dedication .small {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ====================================
   About Section
   ==================================== */

.about-section {
    padding: 4rem 0;
    background: white;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.9;
}

.about-content p {
    margin-bottom: 1.5rem;
}

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

.footer {
    background: linear-gradient(135deg, #1a365d 0%, #2c5f8d 100%);
    color: white;
    padding: 3rem 0 1rem;
}

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

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

.footer-section p {
    opacity: 0.9;
    line-height: 1.7;
}

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

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

.footer-section ul li a {
    color: white;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
    text-decoration: underline;
}

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

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

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .sticky-sidebar {
        position: static;
    }

    .logo h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .main-content h3 {
        font-size: 1.5rem;
    }

    .quote-box p {
        font-size: 1.1rem;
    }

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

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .video-info {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ====================================
   Smooth Scrolling
   ==================================== */

html {
    scroll-behavior: smooth;
}

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

@media print {
    .header,
    .hero,
    .video-section,
    .sidebar,
    .footer {
        display: none;
    }

    .main-content {
        box-shadow: none;
    }
}