:root {
    --job-orange: #ff6b00;
    --job-blue: #0066cc;
    --job-bg-gray: #fcfcfc;
    --job-border: #f0f0f0;
}

.hero {
    padding: 100px 20px;
    text-align: center;
    background-image: url("../assets/hero.png");
    /* ملف الـ SVG المتعرج اللي في الخلفية */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    height: 100vh;
}

.hero h1 {
    font-size: clamp(20px, 5vw, 40px);
    font-weight: 500;
    margin: 0 auto 20px;
    line-height: 1.4;
}

.hero p {
    color: #00000070;
    margin-bottom: 40px;
    font-size: 24px;
    font-weight: 300;
    margin-right: 25%;
    margin-left: 25%;
}

/* شريط البحث */
.search-container {
    display: flex;
    background: white;
    max-width: 850px;
    margin: 0 auto;
    border-radius: 10px;
    padding: 20px 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.search-container input {
    flex: 2;
    border: none;
    padding: 10px 20px;
    outline: none;
    font-size: 1rem;
}

.search-container select {
    border: none;
    padding: 0 15px;
    outline: none;
    color: #555;
}

.btn-search {
    background: #ff6b00;
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
}

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

.tag {
    background: #ffffff;
    padding: 8px 20px;
    border-radius: 17px;
    font-size: 18px;
    font-weight: 400;
    color: #7c8599;
    transition: 0.3s;
    box-shadow: 3px 3px 10.8px 0px #00000005;
}

.tag:hover {
    background: #ff6b00;
    color: white;
}

/* قسم الإحصائيات */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding: 25px 20px;
    background: #ffffff;
    margin-bottom: 50px;
    border-radius: 10px;
    border: 1px solid #0000001a;
    box-shadow: 0px 2.71px 4.4px 0px #c0c0c007;
}

.stat-card {
    text-align: center;
    border-left: 1px solid #eee;
}

.stat-card:last-child {
    border-left: none;
}

.stat-card img {
    width: 40px;
    margin-bottom: 15px;
}

.stat-card h3 {
    font-size: 24px;
    font-weight: 500;
    color: #0f5bc3;
}

.stat-card p {
    color: #7c8493;
    font-size: 18px;
    font-weight: 400;
    padding-bottom: 15px;
}

/*courses*/
/* حاوية السكشن */
.courses-section {
    padding: 60px 30px;
    background-color: #ffffff;
    border-radius: 10px;
    border: 1px solid #00000012;
    margin-bottom: 50px;
}

/* الهيدر */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.header-content h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 5px;
}

.header-content p {
    color: #727272;
    font-size: 18px;
    font-weight: 400;
}

.view-all {
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

/* الشبكة (4 كروت في الصف) */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* تصميم الكارت */
.course-card {
    background: #fefefe;
    border: 1px solid #f5f5f5f5;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.course-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
    border-color: #ddd;
}

/* أيقونات الكروت */
.icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.icon-wrapper img {
    width: 40px;
    height: 40px;
}

/* ألوان الخلفيات للأيقونات كما في الصورة */
.orange-bg {
    background-color: #fff5f0;
}

.purple-bg {
    background-color: #f5f5ff;
}

.blue-bg {
    background-color: #f0f9ff;
}

.course-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #0f5bc3;
    margin-bottom: 8px;
}

.course-card span {
    font-size: 16px;
    font-weight: 400;
    color: #7c8493;
    margin-bottom: 8px;
}

/*eslamiat-section*/
.eslamiat-section {
    padding: 60px 30px;
    background-color: #ffffff;
    border-radius: 10px;
    border: 1px solid #00000012;
    margin-bottom: 50px;
}

.eslamiat-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* podcast-section */
.podcast-section {
    padding: 60px 30px;
    background-color: #ffffff;
    border-radius: 10px;
    border: 1px solid #00000012;
    margin-bottom: 50px;
}

.podcast-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 أعمدة */
    gap: 20px;
}

.podcast-card {
    border: 1px solid #f0f0f0;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.podcast-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    border-color: #eee;
}

/* الجزء العلوي من الكارت */
.card-top {
    display: flex;
    justify-content: flex-end;
    /* لترتيب الأيقونة يمين النص */
    gap: 15px;
    margin-bottom: 25px;
    text-align: right;
}

.card-info h3 {
    font-size: 18px;
    font-weight: 500;
    color: #000000;
    margin-bottom: 5px;
}

.card-info p {
    font-size: 16px;
    font-weight: 400;
    color: #7c8493;
    line-height: 1.4;
}

.icon-circle.green {
    border: 2px solid #22c55e;
    background: #f0fdf4;
}

.icon-circle.orange {
    border: 2px solid #f97316;
    background: #fff7ed;
}

.icon-circle.blue {
    border: 2px solid #3b82f6;
    background: #eff6ff;
}

/* الجزء السفلي من الكارت */
.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f9f9f9;
    padding-top: 15px;
}

.episodes-count {
    background: #f8f9fa;
    padding: 5px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #3b82f6;
    /* لون عداد الحلقات */
    font-size: 14px;
    font-weight: 400;
}

.arrow-link {
    width: 30px;
    height: 30px;
    border: 1px solid #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
}

.arrow-link:hover {
    background: #f0f0f0;
    color: var(--primary-color);
}

.bottom-container {
    display: flex;
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    /* يخلي العداد يمين والسهم شمال */
    align-items: center;
    margin-top: auto;
    /* يضمن إن الجزء ده دايماً في قاع الكارت حتى لو النص قصير */
    padding-top: 15px;
    border-top: 1px solid #f5f5f5;
    /* الخط الرفيع اللي بيفصل الكارت */
}

/* تنسيق عداد الحلقات */
.episodes-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #f0f7ff;
    /* لون خلفية خفيف */
    padding: 6px 12px;
    border-radius: 20px;
    color: #3b82f6;
    /* لون النص والأيقونة الأزرق */
    font-size: 13px;
    font-weight: bold;
}

.headphone-icon {
    color: #3b82f6;
}

/* تنسيق دائرة السهم */
.action-arrow {
    width: 32px;
    height: 32px;
    border: 1px solid #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    transition: all 0.3s ease;
}

.action-arrow:hover {
    background-color: #ff6b00;
    /* يقلب برتقالي عند التمرير */
    border-color: #ff6b00;
    color: white;
}

/*jobs*/
/* الألوان الأساسية من الديزاين */
:root {
    --job-orange: #ff6b00;
    --job-blue: #0066cc;
    --job-bg-gray: #fcfcfc;
    --job-border: #f0f0f0;
}

.jobs-section {
    padding: 50px 0;
    direction: rtl;
    font-family: "Cairo", sans-serif;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.header-text h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.header-text p {
    color: #888;
    font-size: 14px;
    margin: 5px 0 0;
}

/* شبكة الوظائف */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 أعمدة */
    gap: 25px;
}

.job-card {
    background: #fff;
    border: 1px solid var(--job-border);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    cursor: pointer;
}

.job-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transform: translateY(-5px);
}

/* الهيدر الداخلي للكارت */
.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.company-info {
    display: flex;
    gap: 15px;
}

.title-meta h3 {
    font-size: 20px;
    color: #25324b;
    font-weight: 500;
    margin: 0;
}

.brand-name {
    color: #25324b;
    font-weight: 500;
    font-size: 16px;
    margin: 5px 0;
}

.category {
    color: #aaa;
    font-size: 12px;
}

.company-logo {
    width: 65px;
    height: 65px;
    border-radius: 50px;
    border: 1px solid #00000008;
    object-fit: cover;
    padding: 1px;
    flex-shrink: 0;
}

.bookmark-btn {
    background: none;
    padding: 8px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 8px;
}

.btn {
    border: none;
    background: none;
}

/* الميتا والوصف */
.job-post-meta {
    display: flex;
    gap: 8px;
    flex-direction: column;
    font-size: 12px;
    color: #bbb;
    margin-bottom: 15px;
    align-items: flex-end;
}

.job-post-meta .source {
    background: #edf4fd;
    display: flex;
    gap: 4px;
    font-size: 8px;
    color: #0d5cea;
    align-items: center;
    padding: 3px 8px;
    border-radius: 5px;
    width: max-content;
    height: 20px;
}

.job-description {
    font-size: 10px;
    font-weight: 300;
    color: #1b1a1aad;
    line-height: 1.6;
    margin-bottom: 10px;
    padding: 8px;
    border-top: 1px solid #00000014;
}

.title {
    font-size: 8px;
    font-weight: 400;
    color: #00000061;
}

.sub-title {
    color: #000000;
    font-size: 10px;
    font-weight: 400;
}

.job-details-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9fb;
    border-radius: 5px;
    margin-bottom: 15px;
    padding: 10px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    /* عشان كل عنصر ياخد مساحة متساوية */
    justify-content: center;
    position: relative;
    font-size: 11px;
    color: #555;
}

/* إضافة الخط الفاصل العمودي */
.detail-item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 0;
    /* يوضع الخط على يسار كل عنصر ماعدا الأخير */
    top: 20%;
    height: 60%;
    width: 1px;
    background-color: #e0e0e0;
    /* لون الخط الفاصل الرمادي الرفيع */
}

.detail-item span {
    white-space: nowrap;
}

.apply-now-btn {
    background: var(--job-orange);
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 400;
    font-size: 12px;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.2);
}

.details-link {
    color: var(--job-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 10px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.job-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.time {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 8px;
    font-weight: 400;
    color: #1b1a1aad;
}

/* --- ريسبونسف الموبايل --- */
@media (max-width: 1100px) {
    .jobs-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .jobs-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        text-align: center;
        border-right: none;
        padding-bottom: 15px;
    }

    .job-card-footer {
        flex-direction: column;
        gap: 15px;
    }

    .apply-now-btn {
        width: 100%;
        text-align: center;
    }

    .stat-card {
        border-left: 0;
    }
    .stat-card:nth-child(odd) {
        border-left: 1px solid #eee;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.jobs-section {
    padding: 60px 30px;
    background-color: #ffffff;
    border-radius: 10px;
    border: 1px solid #00000012;
    margin-bottom: 50px;
}

.scholarships-section {
    padding: 60px 30px;
    background-color: #ffffff;
    border-radius: 10px;
    border: 1px solid #00000012;
    margin-bottom: 50px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 30px;
    font-weight: 500;
    color: #000;
    margin-bottom: 15px;
}

.scholarships-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    /* المسافة بين الكروت في الفيجما */
}

.scholar-card {
    border: 1px solid #eaeaea;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.card-image img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.card-content {
    padding: 16px;
    text-align: right;
}

.card-content h3 {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 7px 0;
    color: #333;
}

.status {
    color: #7c8493;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
}

/* صف البيانات السفلي */
.card-meta {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #f5f5f5;
    padding-top: 10px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #7c8493;
    font-size: 12px;
    font-weight: 400;
}

/* الخط الفاصل اللي بين الموقع والتاريخ */
.meta-separator {
    width: 1px;
    height: 14px;
    background-color: #eee;
}

/*footer*/

/* ريسبونسف الموبايل */
@media (max-width: 992px) {
    .scholarships-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .scholarships-grid {
        grid-template-columns: 1fr;
    }
}

/* الموبايل */
@media (max-width: 1100px) {
    .jobs-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .jobs-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        height: auto;
    }
    .hero-content {
        display: flex;
        flex-direction: column-reverse;
        gap: 20px;
    }
}

/* الموبايل */
@media (max-width: 992px) {
    .podcast-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .eslamiat-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .mobile-menu-btn {
        display: flex;
    }
}

@media (max-width: 600px) {
    .podcast-grid {
        grid-template-columns: 1fr;
    }

    .eslamiat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .jobs-section {
        padding: 60px 10px;
    }
}

/* Responsive للموبايل */
@media (max-width: 992px) {
    .courses-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .search-container {
        flex-direction: column;
        gap: 15px;
    }

    .job-details-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .detail-item:not(:last-child)::after {
        display: none;
    }

    /* .company-info {
        flex-direction: column;
    } */
}

@media (max-width: 768px) {
    .site-footer {
        padding-top: 250px;
        /* زيادة المساحة لأن الصندوق العائم هياخد مساحة طولية أكبر */
    }

    .newsletter-floating {
        top: -180px;
        /* تعديل مكانه ليتناسب مع زيادة الطول */
    }

    .newsletter-content {
        flex-direction: column;
        /* العناصر تحت بعضها في الموبايل */
        text-align: center;
        gap: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        /* عمود واحد فقط */
        text-align: center;
        gap: 30px;
    }

    .footer-brand {
        order: -1;
        /* جعل اللوجو والوصف يظهروا في الأول فوق الروابط */
        align-items: center;
    }

    .social-links {
        justify-content: center;
        /* توسيط أيقونات السوشيال ميديا */
    }

    .newsletter-text h3 {
        font-size: 18px;
    }

    .newsletter-form {
        flex-direction: column;
        /* المدخل والزرار تحت بعض */
        background: transparent;
        gap: 10px;
    }

    .newsletter-form input {
        border-radius: 10px;
        width: 100%;
    }

    .newsletter-form button {
        width: 100%;
    }

    .hero p {
        margin-right: 0px;
        margin-left: 0px;
    }
}

.main-categories-footer .circles-grid h4 {
    color: #0f5bc3;
    font-size: 20px;
    font-weight: 600;
}

.main-categories-footer .circles-grid span {
    color: #7c8493;
    font-size: 18px;
    font-weight: 400;
}

#mys-wrapper,
#mys-content {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
}

#mys-content {
    height: auto !important;
}

#mys-content * {
    max-width: 100% !important;
    box-sizing: border-box;
}
