/* إعداد عام */

* {
    user-select: none;
}

body {
    font-family: "Tahoma", sans-serif;
    margin: 0;
    padding: 0;
    background: #f9f9f9;
    color: #333;
    line-height: 1.6;
}


/* ====== Toast container ====== */

.atp {
    display: flex;
    margin-right: 15px;
}

.studyou {
    font-size: 20px;
}

.text {
    margin-left: 5px;
    font-size: 20px;
    color: #6a5acd;
    font-weight: bolder;
}

.text2 {
    font-size: 20px;
    font-size: 20px;
    color: #058f5c;
}

.error {
    display: flex;
    justify-content: center;
}

.promo-link-sign {
    text-decoration: underline;
    font-weight: bold;
}

#site-toasts {
    position: fixed;
    top: 18px;
    z-index: 9999;
    width: calc(100% - 40px);
    max-width: 820px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    padding: 0 20px;
    direction: rtl;
}


/* ====== Toast base ====== */

.toast {
    width: 150px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(2, 6, 23, 0.45);
    color: #fff;
    font-weight: 600;
    font-family: "Cairo", "Tajawal", sans-serif;
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    transition: transform 300ms ease, opacity 280ms ease;
    position: fixed;
    top: 10px;
}


/* أيقونة */

.toast .toast-icon {
    max-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px;
    flex-shrink: 0;
}

.toast svg {
    color: #fff;
}


/* النص */

.toast .toast-text {
    flex: 1 1 auto;
    font-size: 1rem;
    text-align: center;
}


/* ====== أنواع ====== */

.toast-success {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.95), rgba(5, 150, 105, 0.95));
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.toast-error {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.95), rgba(220, 38, 38, 0.95));
    border: 1px solid rgba(239, 68, 68, 0.25);
}


/* حالة الظهور */

.toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.buy-btn {
    height: 40px;
    width: 110px;
    font-family: 'Courier New', Courier, monospace;
    border: none;
    border-radius: 5px;
    background-color: #0db276;
}

.buy-btn:hover {
    background-color: #058f5c;
    cursor: pointer;
}

.buy-btn:active {
    background-color: #596a64;
}

.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 10;
}

.popup-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    z-index: 20;
    width: 300px;
}

.popup-message h2 {
    margin-top: 0;
    color: #333;
}

.buttons {
    margin-top: 25px;
    display: flex;
    justify-content: space-around;
}

.buttons button {
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.confirm-btn {
    background-color: #28a745;
    color: white;
}

.confirm-btn:hover {
    background-color: #218838;
}

.cancel-btn {
    background-color: #dc3545;
    color: white;
}

.cancel-btn:hover {
    background-color: #c82333;
}

.hidden {
    display: none !important;
}

.upload-btn {
    height: 40px;
    width: 40px;
    position: fixed;
    bottom: 20px;
    left: 20px;
    border: 2px solid black;
    border-radius: 50%;
    text-align: center;
}


/* الهيدر */

.header-nav .promo {
    background-color: #6a5acd;
}

.promo {
    background-color: #6a5acd;
}

.card-des {
    font-size: 20px;
}

.num {
    font-size: 30px;
    margin: 0;
}

.navbar {
    width: 90%;
    min-height: 75px;
    background: #fff;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    border-bottom: 1px solid #ddd;
    flex-wrap: wrap;
    margin-top: 10px;
    border-radius: 20px;
    margin-right: 5%;
    position: fixed;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: #0a8d5e;
}

.list-icon {
    display: none;
}

span {
    font-size: 14px;
    color: #888;
}

.navbar a {
    margin: 0 5px;
    text-decoration: none;
    color: #555;
}

.nav a {
    display: block;
}

.nav {
    margin: 0 5px;
    text-decoration: none;
    color: #555;
    font-size: 14px;
    margin-left: 20px;
}


.btn {
    background: #0a8d5e;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}


/* القسم الرئيسي */

.promo {
    display: flex;
    justify-content: center;
    flex-direction: row;
}

.promo-img-container {
    margin-top: 30px;
}

.promo-img {
    height: 400px;
    width: 430px;
    margin-top: 30px;
}

.promo-text-container {
    max-width: 500px;
    flex: 1;
    margin-top: 30px;
}

.hero {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-between;
    direction: rtl;
    gap: 30px;
    margin-top: 50px;
}

.hero h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 16px;
    color: #ffffff;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.stats div h2 {
    color: #05da8c;
    margin: 0;
}


/* المسارات */

.courses {
    text-align: center;
    padding: 50px 20px;
}

.cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}


/* الكروت */

.card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    width: 350px;
    text-align: right;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.card .tags {
    margin: 15px 0;
}

.card .tags span {
    background: #eee;
    padding: 5px 10px;
    border-radius: 8px;
    margin: 3px;
    display: inline-block;
    font-size: 13px;
}

.price-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.salary {
    font-weight: bold;
    color: #0a8d5e;
    display: inline;
}


/* ألوان خاصة */

.purple {
    border-top: 6px solid #6a5acd;
}

.green {
    border-top: 6px solid #0a8d5e;
}

.card-img {
    width: 100%;
    height: 150px;
}

.contact-section {
    padding: 4rem 0;
    /* py-16 */
    background-color: #fff;
    /* bg-white */
}

.contact-container {
    max-width: 1280px;
    /* max-w-7xl */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}


/* ==================
   العنوان
   ================== */

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    /* mb-12 */
}

.section-title {
    font-size: 1.875rem;
    /* text-3xl */
    font-weight: 700;
    /* font-bold */
    color: #111827;
    /* text-gray-900 */
    margin-bottom: 1rem;
    /* mb-4 */
}

.title-underline {
    width: 5rem;
    /* w-20 */
    height: 0.25rem;
    /* h-1 */
    background-color: #6a5acd;
    /* bg-indigo-600 */
    margin-left: auto;
    margin-right: auto;
}


/* ==================
   محتوى القسم
   ================== */

.contact-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    /* gap-12 */
}

@media (min-width: 768px) {
    .contact-content-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ==================
   معلومات التواصل
   ================== */

.contact-info-container {
    padding: 1.5rem;
}

.contact-subtitle {
    font-size: 1.25rem;
    /* text-xl */
    font-weight: 600;
    /* font-semibold */
    color: #111827;
    /* text-gray-900 */
    margin-bottom: 1.5rem;
    /* mb-6 */
}

.contact-text {
    color: #4b5563;
    /* text-gray-600 */
    margin-bottom: 2rem;
    /* mb-8 */
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /* space-y-4 */
}

.contact-detail-item {
    display: flex;
    align-items: center;
}


/* أيقونات التواصل */

.icon-bg {
    background-color: #eef2ff;
    /* bg-indigo-100 */
    padding: 0.75rem;
    /* p-3 */
    border-radius: 9999px;
    /* rounded-full */
    margin-right: 1rem;
    /* mr-4 */
}

.icon-color {
    color: #6a5acd;
    /* text-indigo-600 */
    width: 1.5rem;
    height: 1.5rem;
}

.detail-text {
    color: #374151;
    /* text-gray-700 */
}


/* ==================
   نموذج التواصل
   ================== */

.contact-form-container {
    padding: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    /* space-y-6 */
}

.form-label {
    display: block;
    font-size: 0.875rem;
    /* text-sm */
    font-weight: 500;
    /* font-medium */
    color: #374151;
    /* text-gray-700 */
    margin-bottom: 0.5rem;
    /* mb-2 */
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    /* px-4 py-3 */
    border: 1px solid #d1d5db;
    /* border-gray-300 */
    border-radius: 0.5rem;
    /* rounded-lg */
    transition: all 0.2s ease-in-out;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #6a5acd;
    /* focus:border-indigo-500 */
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.5);
    /* focus:ring-2 focus:ring-indigo-500 */
}

.submit-button {
    width: 100%;
    background-color: #6a5acd;
    /* bg-indigo-600 */
    color: #fff;
    /* text-white */
    font-weight: 500;
    /* font-medium */
    padding: 0.75rem 1.5rem;
    /* py-3 px-6 */
    border-radius: 0.5rem;
    /* rounded-lg */
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.submit-button:hover {
    background-color: #6a5acd;
    /* hover:bg-indigo-700 */
}


/*
 * هذا الملف يحتوي على جميع الأنماط والتنسيقات اللازمة لإنشاء
 * تذييل (footer) مطابق للصورة.
 */


/* ==================
   الأنماط العامة والأساسية
   ================== */


/* ==================
   تذييل الصفحة
   ================== */

.site-footer {
    background-color: #6a5acd;
    /* bg-gray-900 */
    padding: 3rem 0;
    /* py-12 */
}

.footer-container {
    max-width: 1280px;
    /* max-w-7xl */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    /* gap-8 */
    margin-bottom: 2rem;
    /* mb-8 */
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .footer-info {
        grid-column: span 2 / span 2;
    }
}


/* ==================
   معلومات التذييل
   ================== */

.footer-title {
    font-size: 1.5rem;
    /* text-2xl */
    font-weight: 700;
    /* font-bold */
    margin-bottom: 1rem;
    /* mb-4 */
}

.footer-description {
    color: #9ca3af;
    /* text-gray-400 */
    margin-bottom: 1.5rem;
    /* mb-6 */
}


/* روابط وسائل التواصل الاجتماعي */

.social-links {
    display: flex;
    gap: 1rem;
    /* space-x-4 */
}

.social-icon-link {
    color: #9ca3af;
    /* text-gray-400 */
    transition: color 0.2s ease-in-out;
}

.social-icon-link:hover {
    color: #ffffff;
    /* hover:text-white */
}


/* ==================
   روابط الأقسام
   ================== */

.footer-links-column {
    margin-bottom: 1rem;
}

.column-title {
    font-size: 1.125rem;
    /* text-lg */
    font-weight: 600;
    /* font-semibold */
    margin-bottom: 1rem;
    /* mb-4 */
}

.link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    /* space-y-2 */
}

.footer-link {
    color: #9ca3af;
    /* text-gray-400 */
    text-decoration: none;
    font-size: 0.875rem;
    /* text-sm */
    transition: color 0.2s ease-in-out;
}

.footer-link:hover {
    color: #ffffff;
    /* hover:text-white */
}


/* ==================
   الجزء السفلي من التذييل
   ================== */

.footer-bottom {
    border-top: 1px solid #1f2937;
    /* border-gray-800 */
    padding-top: 2rem;
    /* pt-8 */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.copyright-text {
    color: #9ca3af;
    /* text-gray-400 */
    font-size: 0.875rem;
    /* text-sm */
    margin-bottom: 1rem;
    /* mt-4 */
}

@media (min-width: 768px) {
    .copyright-text {
        margin-bottom: 0;
    }
}

.privacy-links {
    display: flex;
    gap: 1.5rem;
    /* space-x-6 */
}


/* ========================= */


/* 🎯 Responsive Styles */


/* ========================= */


/* للشاشات الأصغر من 992px */

@media (min-width: 601px) {
    .nav, .logo, .text-of-logo2 {
        display: none;
    }
    .text-of-logo {
        margin-right: 10px;
    }
      .navbar {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
}

@media (min-width: 601px) and (max-width: 992px) {
    .promo-text-container {
        margin-top: 0;
    }
    .btn {
        margin-top: 10px;
    }
    .cards {
        gap: 20px;
    }
    .hero {
        gap: 0;
        display: flex;
        justify-content: center;
        flex-direction: column;
    }
}


/* للشاشات الأصغر من 600px (موبايل) */

.nav1 {
    margin-left: 7px;
}

.classes-btn {
    cursor: pointer;
    display: inline;
    margin: 0 5px;
    text-decoration: none;
    color: #555;
    font-size: 16px;
}

a {
    display: inline;
}

.nav1 {
    display: flex;
}

.nav {
    display: flex;
}
@media (max-width: 600px) {
    .text-of-logo {
        display: none;
    }
    .text-of-logo2 {
        margin-left: 10px;
    }
    
    .nav1 {
        display: none;
    }
    .hero {
        display: flex;
        justify-content: center;
        flex-direction: column;
    }
    .hero h1 {
        font-size: 24px;
        margin-top: 0;
    }
    .hero p {
        font-size: 14px;
    }
    .stats div h2 {
        font-size: 20px;
    }
    .card {
        width: 100%;
    }
    .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #fff;
        border-bottom: 1px solid #e6def8;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }
    .material-symbols-outlined {
        font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24
    }
    .nav {
        border-radius: 10px;
        flex-direction: column;
        width: 30%;
        margin-top: 40px;
        position: absolute;
        top: 30px;
        text-decoration: none;
        justify-content: center;
        align-items: center;
        background-color: #f9f9f9;
    }
    .nav .classes-btn {
        padding: 10px;
        margin: 0 5px;
    }

    .list-icon {
        display: flex;
        margin-top: 5px;
        margin-right: 8px;
    }
    a {
        padding: 10px;
        color: #0a8d5e;
        color: #0a8d5e;
        display: inline;
    }
    .btn {
        max-width: 200px;
    }
    .hero {
        display: flex;
        justify-content: center;
        flex-direction: column;
    }
    .promo-img {
        height: 350px;
        width: 340px;
        /* height: 320px;
        width: 330px; */
        margin-top: 50px;
        gap: 0;
    }
    .promo-text-container {
        margin-top: 0;
    }
}