/* Base Styles */
:root {
    --primary-color: #4a6baf;
    --primary-dark: #375591;
    --primary-light: #6f8ac7;
    --secondary-color: #e86a33;
    --text-color: #333333;
    --text-light: #717171;
    --bg-color: #ffffff;
    --bg-alt: #f7f9fc;
    --border-color: #e0e0e0;
    --success: #28a745;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Vazirmatn", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    direction: rtl;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 60px 0;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 15px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: "";
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 40px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Header */
.site-header {
    padding: 15px 0;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
    margin-right: 10px;
}

.main-nav ul {
    display: flex;
}

.cart-icon {
    position: relative;
    display: inline-block;
    color: var(--text-color);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-nav ul li {
    /*margin-right: 20px;*/
    margin: 0px 20px 0px 20px;
}

.main-nav ul li:last-child {
    margin-right: 0;
}

.main-nav ul li a {
    padding: 8px 0;
    position: relative;
    color: var(--text-color);
    font-weight: 500;
}

.main-nav ul li a.active,
.main-nav ul li a:hover {
    color: var(--primary-color);
}

.main-nav ul li a.active::after,
.main-nav ul li a:hover::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    background-color: var(--bg-alt);
    padding: 80px 0;
}

.hero .container {
    display: flex;
    align-items: center;
}

.hero-content {
    flex: 1;
    padding-left: 30px;
}

.hero-image {
    flex: 1;
    animation: float 3s ease-in-out infinite;
    direction: ltr;
}

.animated-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.highlight {
    color: var(--primary-color);
    position: relative;
}

.highlight::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 8px;
    background-color: rgba(74, 107, 175, 0.2);
    bottom: 5px;
    right: 0;
    z-index: -1;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-light);
}

.code-svg {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Features Section */
.features {
    background-color: var(--bg-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--bg-alt);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-light);
}

/* Courses Section */
.courses {
    background-color: var(--bg-alt);
}

.courses-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.course-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-image {
    position: relative;
}

.course-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.course-content {
    padding: 20px;
}

.course-meta {
    display: flex;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.course-meta span {
    margin-left: 15px;
    display: flex;
    align-items: center;
}

.course-meta span i {
    margin-left: 5px;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.course-price {
    font-weight: 700;
    color: var(--primary-color);
}

/* Testimonials */
.testimonials {
    background-color: var(--bg-color);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--bg-alt);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-text {
    margin-bottom: 20px;
    font-style: italic;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-size: 4rem;
    color: rgba(74, 107, 175, 0.1);
    position: absolute;
    top: -20px;
    right: -10px;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 15px;
}

.author-info h4 {
    margin-bottom: 5px;
}

.author-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* CTA Section */
.cta {
    background-color: var(--primary-color);
    color: white;
    padding: 80px 0;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.cta h2 {
    margin-bottom: 20px;
}

.cta p {
    margin-bottom: 30px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 6px 0 0 6px;
    font-family: "Vazirmatn", Arial, sans-serif;
}

.newsletter-form button {
    border-radius: 0 6px 6px 0;
    background-color: var(--secondary-color);
}

.newsletter-form button:hover {
    background-color: #d55a29;
}

/* Footer */
.site-footer {
    background-color: #2d3748;
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo h3 {
    margin: 0;
    margin-right: 10px;
    font-size: 1.3rem;
}

.footer-about p {
    opacity: 0.8;
    line-height: 1.8;
}

.footer-links h3,
.footer-courses h3,
.footer-contact h3 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-courses h3::after,
.footer-contact h3::after {
    content: "";
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: 0;
    right: 0;
}

.footer-links ul li,
.footer-courses ul li,
.footer-contact ul li {
    margin-bottom: 12px;
}

.footer-links ul li a,
.footer-courses ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s, padding 0.3s;
}

.footer-links ul li a:hover,
.footer-courses ul li a:hover {
    color: white;
    padding-right: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact ul li i {
    margin-left: 10px;
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    margin-top: 20px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    transition: background-color 0.3s;
}

.social-link:hover {
    background-color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Animations */
@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Media Queries */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
    }

    .hero-content {
        text-align: center;
        padding-left: 0;
        margin-bottom: 40px;
    }

    .animated-title {
        font-size: 2.3rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-nav ul {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
    }

    .main-nav ul.active {
        display: flex;
    }

    .main-nav ul li {
        margin: 0;
        margin-bottom: 15px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        border-radius: 6px;
        margin-bottom: 10px;
    }

    .newsletter-form button {
        border-radius: 6px;
    }
}

@media (max-width: 576px) {
    section {
        padding: 40px 0;
    }

    .animated-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.6rem;
    }
}

/* Icon Fonts (Placeholder, would be replaced with actual icon font or SVG) */
.icon-time::before {
    content: "⏱";
}

.icon-level::before {
    content: "📊";
}

.icon-location::before {
    content: "📍";
}

.icon-phone::before {
    content: "📞";
}

.icon-email::before {
    content: "✉️";
}

.icon-instagram::before {
    content: "📷";
}

.icon-telegram::before {
    content: "📨";
}

.icon-twitter::before {
    content: "🐦";
}

.icon-linkedin::before {
    content: "🔗";
}

