/* CSS Variables for Consistency */
:root {
    --primary-color: #004466;
    --accent-color: #F4B223;
    --background-light: #F9FAFB;
    --background-dark: #F8F9FA;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --white: #FFFFFF;
    --shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
/* General Styles */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem;
    direction: rtl;
}
/* Hero Section */
.teen-course-hero {
    background: linear-gradient(135deg, var(--background-light) 0%, #E5E7EB 100%);
    padding: 4rem 2rem;
    border-radius: 16px;
    margin-bottom: 3rem;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.hero-image img.product-thumbnail {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.hero-image img.product-thumbnail:hover {
    transform: scale(1.01);
}
.hero-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}
.hero-info .instructor {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}
.course-meta {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}
.course-description p, .course-description2 p {
    font-size: 17px !important;
    line-height: 36px !important;
}
.course-meta li {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.course-meta li::before {
    content: \"•\";
    color: var(--accent-color);
    font-size: 1.5rem;
}
.product-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}
.product-add-to-cart .quantity {
    display: none !important;
}
.product-add-to-cart .button {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.product-add-to-cart .button:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.urgency-note {
    font-size: 1.125rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}
.countdown-timer {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}
/* Course Description - افزایش فونت */
.course-description {
    background: var(--white);
    padding: 4rem 2rem;
    border-radius: 16px;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
}
.course-description h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
}
.course-description p {
    font-size: 1.25rem; /* افزایش فونت */
    line-height: 1.9; /* بهبود خوانایی */
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}
/* Social Proof Section */
.social-proof {
    background: var(--background-light);
    padding: 4rem 2rem;
    border-radius: 16px;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
}
.social-proof h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
}
.testimonials-carousel {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding-bottom: 1rem;
}
.testimonial-item {
    min-width: 300px;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}
.testimonial-item video {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.testimonial-item p {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}
.testimonial-item cite {
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: normal;
}
/* Course Topics - Tabbed Navigation */
.course-topics {
    background: linear-gradient(135deg, var(--background-light) 0%, #E5E7EB 100%);
    padding: 4rem 2rem;
    border-radius: 16px;
    margin-bottom: 3rem;
}
.course-topics h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
}
.tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}
.tab-nav button {
    background: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    border: 1px solid var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}
.tab-nav button.active {
    background: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}
.tab-panel {
    display: none;
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.tab-panel.active {
    display: block;
}
.tab-panel ul {
    list-style: none;
    padding: 0;
}
.tab-panel li {
    font-size: 1.125rem;
    color: var(--text-dark);
    padding: 0.75rem 0;
    position: relative;
}
.tab-panel li::before {
    content: \"✔\";
    color: var(--accent-color);
    margin-left: 0.5rem;
}
.micro-cta {
    display: inline-block;
    margin-top: 1rem;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
}
.micro-cta:hover {
    background: var(--primary-color);
    color: var(--white);
}
.course-topics p {
    font-size: 1.25rem;
    line-height: 1.9;
    color: var(--text-dark);
    margin-top: 2rem;
}
/* CTA Section */
.course-cta {
    background: var(--white);
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary-color);
}
.course-cta h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.course-cta p {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
}
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.cta-buttons .product-price {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0.5rem 0;
    color: var(--primary-color);
}
.cta-buttons .product-add-to-cart .button {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    transition: var(--transition);
}
.cta-buttons .product-add-to-cart .button:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
/* Modal for Quick Purchase */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow);
    text-align: center;
}
.close-modal {
    float: left;
    font-size: 1.5rem;
    cursor: pointer;
}
/* Exit Intent Overlay */
.exit-overlay {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    align-items: center;
    justify-content: center;
}
.exit-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    max-width: 400px;
    text-align: center;
}
.exit-content .button {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: inline-block;
}
/* Related Courses Section */
.related-courses {
    padding: 60px 0;
    background: #f8f9fa;
}

.related-courses h2 {
    text-align: center;
    font-size: 2em;
    color: #2c3e50;
    margin-bottom: 40px;
}

.related-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.related-product-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.related-product-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-product-item h3 {
    padding: 15px 20px 10px;
    font-size: 1.2em;
    color: #2c3e50;
    margin: 0;
    line-height: 1.3;
}

.related-product-item p {
    padding: 0 20px 15px;
    color: #7f8c8d;
    font-size: 0.95em;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-product-item .price {
    padding: 0 20px 20px;
    font-size: 1.1em;
    font-weight: bold;
    color: #e74c3c;
    display: block;
}
/* Responsive Design - تنظیم فونت برای موبایل */
@media (max-width: 1200px) {
    .container { padding: 1.5rem; }
    .hero-grid { gap: 2rem; }
}
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-info h1 { font-size: 2.2rem; }
    .hero-image, .hero-info { text-align: center; }
}
@media (max-width: 768px) {
    .container { padding: 1rem; }
    .course-description p, .course-topics p { font-size: 1.125rem; }
    .tab-nav { flex-direction: column; align-items: center; }
    .course-description h2, .course-topics h2, .social-proof h2 { font-size: 2rem; }
    .course-cta h2 { font-size: 1.75rem; }
    .cta-buttons { flex-direction: column; align-items: center; gap: 1rem; }
    .hero-info h1 { font-size: 2rem; }
}
@media (max-width: 480px) {
    .hero-info h1 { font-size: 1.75rem; }
    .course-description h2, .course-topics h2, .social-proof h2 { font-size: 1.75rem; }
    .course-cta h2 { font-size: 1.5rem; }
    .product-add-to-cart .button { padding: 0.875rem 2rem; font-size: 1rem; }
    .course-description, .course-topics, .teen-course-hero, .course-cta, .social-proof { padding: 3rem 1rem; }
}