.dynamic-courses-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: #f8f9fa; 
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    padding-top: 130px; 
    padding-bottom: 80px;
}


.section-title span,
.hero-text-area .section-title span {
    color: #E65100 !important;
}

.moving-bg-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150vw;
    transform: translate(-50%, -50%) rotate(-10deg); 
    z-index: 1;
    pointer-events: none; 
    opacity: 1; 
}

.marquee-row { width: 100%; overflow: hidden; margin-bottom: 20px; }
.marquee-track { display: flex; width: max-content; will-change: transform; }

.marquee-track span {
    white-space: nowrap;
    font-size: 6rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    color: rgba(0, 35, 102, 0.04); 
    -webkit-text-stroke: 2px rgba(0, 35, 102, 0.15); 
    padding-right: 50px; 
}

.marquee-row.orange-row .marquee-track span {
    -webkit-text-stroke: 2px rgba(237, 119, 27, 0.3); 
    color: rgba(237, 119, 27, 0.05);
}

.marquee-row.left .marquee-track { animation: scrollLeft 40s linear infinite; }
.marquee-row.right .marquee-track { animation: scrollRight 40s linear infinite; }

@keyframes scrollLeft { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes scrollRight { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }


.courses-content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-text-area {
    text-align: center;
    margin-bottom: 60px;
}

.hero-text-area .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #002366; 
    margin-bottom: 10px;
    position: relative;
}

.hero-text-area .section-title::after {
    content: '';
    display: block;
    width: 140px;
    height: 5px;
    margin: 15px auto 30px auto;
    border-radius: 3px;
    background: linear-gradient(90deg, #ED771B, #002366); 
}

.hero-text-area .section-subtitle {
    font-size: 1.2rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.hero-text-area .handwritten-highlight {
    background-image: url('../assets/icons/handwritten-line.svg');
    background-size: 100% 90%;
    background-repeat: no-repeat;
    background-position: bottom center;
    padding-bottom: 5px;
    color: inherit;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.pricing-card {
    background: #ffffff; 
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 35, 102, 0.08); 
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 35, 102, 0.12);
    border-color: #E65100; 
}

.card-header {
    padding: 30px 25px 20px;
    background: #f8f9fa; 
    border-bottom: 1px solid rgba(0,0,0,0.03);
}
.card-header h3 { font-size: 1.4rem; margin-bottom: 10px; color: #002366; font-weight: 800;}
.card-desc { font-size: 0.95rem; color: #555; line-height: 1.5; }

.card-features { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.card-features ul { list-style: none; padding: 0; margin: 0 0 20px 0; }
.card-features ul li { display: flex; align-items: center; margin-bottom: 12px; font-size: 0.95rem; color: #444; font-weight: 600;}
.card-features ul li .icon { color: #002366; margin-inline-end: 10px; font-size: 1.1rem; }

.check-list li .check { color: #ED771B; margin-inline-end: 10px; font-size: 1.1rem; }


.accordion-container { margin-top: 10px; }
.acc-item { margin-bottom: 8px; border: 1px solid rgba(0,0,0,0.04); border-radius: 8px; overflow: hidden; background: #ffffff; }
.acc-btn { 
    width: 100%; background: transparent; border: none; padding: 12px 15px; 
    text-align: start; font-weight: 700; color: #002366; cursor: pointer; 
    display: flex; justify-content: space-between; font-family: inherit;
    transition: color 0.3s ease; 
}

.acc-btn:hover,
.acc-btn.active {
    color: #E65100; 
}

.acc-btn.active .chevron { transform: rotate(180deg); }
.acc-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding: 0 15px; }
.acc-content p { font-size: 0.85rem; padding: 10px 0; border-top: 1px solid rgba(0,0,0,0.03); margin: 0; color: #555;}

.outcome-box { 
    margin-top: auto; padding: 15px; 
    background: rgba(237, 119, 27, 0.05); 
    border-radius: 8px; border-left: 4px solid #ED771B; 
    font-size: 0.9rem; color: #333; 
}
html[dir="rtl"] .outcome-box { border-left: none; border-right: 4px solid #ED771B; }

@media (max-width: 768px) {
    .marquee-track span { font-size: 4rem; }
    .hero-text-area .section-title { font-size: 2rem; }
    .hero-text-area .section-title::after { width: 100px; }
    .grid-container { grid-template-columns: 1fr; }
}