@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;600&display=swap');

body {
    font-family: 'Vazirmatn', sans-serif;
    background: linear-gradient(to bottom right, #f9f9f9, #eceef3);
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===== Navbar (Header) ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 12px 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    flex-wrap: nowrap;
    margin-left: 0%;
    margin-right: 40%;
    border-bottom-right-radius: 100px;

}

.navbar .nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    margin-left: 1%;
}

.mybtn {
    background: transparent;
    color: #555;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}

.mybtn:hover {
    background: #6f42c1;
    color: white;
    border-color: #6f42c1;
    box-shadow: 0 3px 10px rgba(111, 66, 193, 0.2);
}

.welcome {
    font-weight: bold;
    color: #6f42c1;
}

/* ===== فرم‌های ورود و ثبت‌نام ===== */
.kind {
    text-align: center;
    color: #6f42c1;
    margin-bottom: 50px;
    font-size: 15px;
    text-decoration: none;
}

form {
    max-width: 500px;
    background: white;
    padding: 60px;
    margin: 80px auto;
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-in-out;
    text-align: center;
    direction: rtl;
}

form h1 {
    text-align: center;
    color: #6f42c1;
    margin-bottom: 50px;
    font-size: 32px;
}

input[type="text"],
input[type="password"] {
    width: 88%;
    padding: 15px;
    margin: 6px 0;
    /* فاصله عمودی کمتر شد */
    border: 2px solid #ddd;
    border-radius: 15px;
    font-size: 22px;
    transition: all 0.3s ease;
    text-align: right;
    display: block;
    margin-left: 50px;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #6f42c1;
    box-shadow: 0 0 15px rgba(111, 66, 193, 0.2);
    outline: none;
}



input[type="submit"] {
    width: 100%;
    padding: 20px;
    background: #6f42c1;
    color: white;
    font-weight: bold;
    cursor: pointer;
    border: none;
    border-radius: 15px;
    margin-top: 30px;
    font-size: 22px;
    transition: all 0.3s ease;
}

input[type="submit"]:hover {
    background: #59359c;
    transform: scale(1.02);
}

form+a.mybtn {
    display: block;
    text-align: center;
    margin-top: 30px;
    font-size: 18px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 15px;
}

/* ===== بخش معرفی مدرس ===== */
.about-section {
    width: 100%;
    background: linear-gradient(to right, #fff, #f3e8ff);
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    text-align: center;
    gap: 40px;
}

.about-content {
    flex: 1 1 500px;
    max-width: 600px;
    color: #333;
    animation: fadeIn 1s ease;
}

.about-content h1 {
    font-size: 40px;
    color: #6f42c1;
    margin-bottom: 15px;
}

.about-content h3 {
    font-size: 22px;
    margin-bottom: 20px;
}

.about-content h3 span {
    color: #9c27b0;
}

.about-content .desc {
    font-size: 18px;
    line-height: 1.9;
    margin-bottom: 25px;
}

.about-content .highlight {
    background: #fff3cd;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.about-content .call {
    font-size: 20px;
    font-weight: bold;
    margin: 25px 0;
    color: #6f42c1;
}

.about-content .contact {
    font-size: 18px;
    margin-bottom: 20px;
}

.cta-btn {
    background: linear-gradient(45deg, #6f42c1, #9c27b0);
    color: white;
    padding: 14px 40px;
    border: none;
    border-radius: 10px;
    font-size: 20px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(111, 66, 193, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.cta-btn:hover {
    background: linear-gradient(45deg, #9c27b0, #6f42c1);
    transform: scale(1.05);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== گالری ===== */
/* ===== گالری بزرگ و ریسپانسیو ===== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* ستون‌های بزرگ‌تر */
    gap: 25px;
    /* فاصله بین عکس‌ها */
    padding: 30px;
    /* فاصله از لبه‌ها */
}

.gallery img {
    width: 100%;
    height: 350px;
    /* ارتفاع بزرگ‌تر */
    object-fit: cover;
    border-radius: 50%;
    /* گوشه‌های گرد */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    /* سایه پررنگ‌تر و حرفه‌ای */
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    cursor: pointer;
}

.gallery img:hover {
    transform: scale(1.12);
    /* بزرگ شدن واضح هنگام هاور */
    box-shadow: 0 15px 40px rgba(111, 66, 193, 0.5);
    /* سایه جذاب هنگام هاور */
}

/* نمایش روی موبایل */



/* ===== ریسپانسیو ===== */
@media (max-width: 992px) {
    .about-content h1 {
        font-size: 32px;
    }

    .about-content .desc,
    .about-content .highlight {
        font-size: 16px;
    }
}

//


@media (max-width: 480px) {
    .navbar {
        flex-direction: row;
        justify-content: space-between;
        border-bottom-right-radius: 0;
    }

    .navbar .nav-links {
        flex-wrap: nowrap;
        gap: 4px;
    }

    .about-content h1 {
        font-size: 26px;
    }

    .cta-btn {
        font-size: 18px;
        padding: 10px 25px;
    }
}

.notification {
    background: #ffdddd;
    color: #d8000c;
    border: 1px solid #d8000c;
    padding: 12px;
    margin: 15px auto;
    width: 300px;
    text-align: center;
    border-radius: 6px;
    animation: fadeIn 0.5s ease-in-out;
}



@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    text-align: center;
    color: #6f42c1;
    font-size: xx-large;
    margin: 20px auto;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 30px;
}

.log {
    text-align: right;
    color: #6f42c1;
    font-size: xx-large;
    margin: 20px auto;
    margin-left: 00px;
}
}

.mybtnn {
    margin-left: 200px;
    background: transparent;
    color: #555;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}

.mybtnn:hover {
    background: #6f42c1;
    color: white;
    border-color: #6f42c1;
    box-shadow: 0 3px 10px rgba(111, 66, 193, 0.2);
}

.peste h1 {
    color: #6f42c1;
    text-align: center;
    margin-top: 100px;
}

.peste {
    background-color: #ab7eff2a;
    margin: 200px auto;
    margin-top: 100px;
    border-radius: 20px;
}

/* ====== استایل کلی ====== */
body {
    font-family: 'Vazirmatn', sans-serif;
    background: #f8f9fa;
    color: #333;
    margin: 0;
    padding: 0;
}

/* ====== هدر (Navbar) ====== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 12px 30px;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.12);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom-right-radius: 80px;
    flex-wrap: wrap;
    background-color: #ffffff31;
}

.navbar a {
    background: transparent;
    color: #6f42c1;
    text-decoration: none;
    padding: 8px 16px;
    margin: 4px;
    border-radius: 8px;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.navbar a:hover {
    background: #6f42c1;
    color: white;
    border-color: #6f42c1;
    box-shadow: 0 3px 10px rgba(111, 66, 193, 0.2);
}

.logo {
    font-size: 1.4rem;
    color: #6f42c1;
    font-weight: bold;
    margin-left: 20px;

}

#cart-count {
    background: red;
    color: white;
    padding: 2px 6px;
    border-radius: 50%;
    font-size: 12px;
    margin-left: 5px;
}

/* ====== فرم ====== */
.container {
    max-width: 1000px;
    background: white;
    margin: 30px auto;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.4s ease-in-out;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.12);
}

h2 {
    color: #6f42c1;
    text-align: center;
    margin-bottom: 25px;
}

form input,
form button {
    display: block;
    width: 100%;
    margin-bottom: 15px;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 12px;
    transition: 0.3s;
}

form input:focus {
    border-color: #6f42c1;
    box-shadow: 0 0 10px rgba(111, 66, 193, 0.1);
    outline: none;
}

form button {
    background: #6f42c1;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

form button:hover {
    background: #59359c;
    transform: scale(1.03);
}

/* ====== جدول دوره‌ها ====== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    overflow: hidden;
}

th,
td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

th {
    background: #6f42c1;
    color: white;
    font-weight: bold;
}

tr:hover {
    background: #f3e8ff;
    transition: 0.3s;
}

td img {
    border-radius: 8px;

}

/* ====== نوتیفیکیشن ====== */
.notification {
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    animation: fadeIn 0.4s ease-in-out;
}

.notification.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.notification.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ====== انیمیشن ====== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#input {
    width: 494px;
}


.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* کارت دوره */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.course-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: center;
    transition: transform 0.2s;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

.course-card h3 {
    font-size: 1.1rem;
    margin: 10px 0;
}

.course-card p {
    font-size: 0.95rem;
    color: #444;
}

.add-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 12px;
    background: #2575fc;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s;
}

.add-btn:hover {
    background: #1a5ed1;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: #f8f9fc;
    margin: 0;
    padding: 0;
    color: #333;
}

/* بخش کارت سبد خرید */
.cart {
    max-width: 800px;
    margin: 60px auto;
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.8s ease-in-out;
}

/* عنوان */
.cart h2 {
    text-align: center;
    color: #6a1b9a;
    font-size: 28px;
    margin-bottom: 20px;
    position: relative;
}

.cart h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #6a1b9a;
    margin: 10px auto 0;
    border-radius: 5px;
}

/* جدول */
.cart table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.cart table th,
.cart table td {
    border-bottom: 1px solid #ddd;
    padding: 15px;
    text-align: center;
}

.cart table th {
    background: #f3e5f5;
    color: #6a1b9a;
}

/* دکمه‌ها */
.mybtn,
.cart a {
    display: inline-block;
    background: #6a1b9a;
    color: #fff;
    padding: 12px 25px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.mybtn:hover,
.cart a:hover {
    background: #8e24aa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(106, 27, 154, 0.3);
}

/* پیام سبد خالی */
.cart p {
    text-align: center;
    font-size: 18px;
    color: #777;
    margin-bottom: 20px;
    animation: pulse 1.5s infinite;
}

/* انیمیشن */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .cart {
        padding: 20px;
        margin: 20px;
    }

    .cart table th,
    .cart table td {
        padding: 10px;
        font-size: 14px;
    }

    .mybtn {
        padding: 10px 18px;
        font-size: 14px;
    }

    .gallery img {
        height: 300px;

    }
}

/* ریسپانسیو */
@media (max-width: 600px) {
    .navbar nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .navbar nav a {
        margin: 5px;
    }
}

@media (max-width: 768px) {
    .navbar {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: center;
        padding: 5px;
        margin: 0 auto;
        border-bottom-right-radius: 0px;
        gap: 5px;
    }


    .navbar .nav-links {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 5px;
        white-space: nowrap;
        overflow-x: auto;
        padding: 0px 0px;
    }

    .mybtn {
        font-size: 14px;
        padding: 0px 0px;
        flex-shrink: 0;
        margin: 20px;
    }

    #mmd {
        margin-left: 100px;
    }

}

}

}