* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background: #ffffff;
    color: #121212;
    line-height: 1.5;
    direction: rtl;
}

a {
    text-decoration: none;
    color: inherit;
}

.glow {
    animation: glow-effect 1.5s infinite alternate;
}

@keyframes glow-effect {
    0% {
        box-shadow: 0 0 5px #483D8B, 0 0 10px #483D8B, 0 0 15px #483D8B;
    }

    100% {
        box-shadow: 0 0 15px #483D8B, 0 0 20px #483D8B, 0 0 25px #483D8B;
    }
}

.main-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 999;
    background: #483D8B;
    padding: 10px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.main-header .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
}

.main-header .logo img {
    height: 60px;
    width: auto;
    display: block;
}

.main-header nav ul {
    list-style: none;
    display: flex;
    gap: 10px;
}

.main-header nav ul li a {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s;
}

.main-header nav ul li a:hover {
    color: #e0f7fa;
}

@media (max-width: 768px) {
    .main-header nav {
        padding: 7px 8px;
    }
}

.hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 40px 20px;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #ffffff;
    opacity: 0.3;
    z-index: 1;
}

.hero .text {
    flex: 1 1 400px;
    padding: 10px 20px;
    position: relative;
    z-index: 2;
}

.hero .text h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #121212;
}

.hero .text p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: #444;
}

.hero .text a.btn {
    display: inline-block;
    background: #483D8B;
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 700;
    transition: background 0.3s;
}

.hero .text a.btn:hover {
    background: #7A73D1;
}

.hero .image {
    flex: 1 1 300px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero .image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 20px 10px;
    }

    /* إلغاء أي مسافة تحت السيكشن الأول */
    .hero,
    .hero .text,
    .hero .image {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    /* إلغاء المسافة فوق صورة المرحلة الإعدادية */
    section[aria-label="سنوات الدراسة"],
    section[aria-label="سنوات الدراسة"]>div {
        margin-top: 0 !important;
        padding-top: 0 !important;
        text-align: center !important;
        /* محاذاة الصورة في النص */
    }

    section[aria-label="سنوات الدراسة"] img {
        display: block;
        margin: 0 auto !important;
        /* ترجيع الصورة للوسط */
    }
}



.full-bg-section {
    width: 100%;
    background-color: #1e1e1e;
    padding: 30px 10px;
    overflow: hidden;
}

.full-bg-section .image-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.animated-img {
    width: 320px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-in-out;
}

.animated-img.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .animated-img {
        width: 280px;
    }
}

.animated-img:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 0 20px #483D8B);
    transition: transform 0.3s ease, filter 0.3s ease;
    z-index: 2;
}

/* بطاقات السنوات الدراسية */
.study-years-slider {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.study-year-card {
    width: 300px;
    border: 1px solid #ccc;
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.3s;
    padding: 0;
    /* مهم */
}

.study-year-card img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    display: block;
    cursor: pointer;
}

.option-link {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    background-color: #211009;
    /* لون الخلفية */
    color: #fff8f0;
    /* لون الخط */
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s ease;
}

.option-link:hover {
    background-color: #ffcf85;
    color: #211009;
}

/* استجابة البطاقات */
@media (max-width: 768px) {
    .study-years-slider {
        flex-direction: column;
        align-items: center;
    }

    .study-year-card {
        width: 90%;
        flex: none;
    }
}

section {
    padding: 40px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #483D8B;
    text-align: center;
}

.courses-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.course-card {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.course-card {
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.course-card:hover {
    transform: translateY(-6px);
}

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

.course-card .content h3 {
    color: #211009;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.course-card .content p {
    color: #333;
    font-size: 1rem;
    margin-bottom: 12px;
}

.course-button {
    background: #483D8B;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.course-button:hover {
    background: #7A73D1;
}

.course-button.brown {
    background: #211009;
}

.course-button.brown:hover {
    background: #ffcf85;
    color: #211009;
}

/* كورسات مقترحة */
.recommended-courses {
    background: #1e1e1e;
    padding: 40px 20px;
}

.recommended-courses h3 {
    color: #7A73D1;
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.recommended-courses .courses-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.recommended-courses .courses-list a {
    background: #121212;
    color: #ffffff;
    border: 1px solid #333;
    border-radius: 10px;
    text-align: center;
    padding: 15px 10px;
    transition: transform .3s;
    font-weight: 600;
}

.recommended-courses .courses-list a:hover {
    transform: translateY(-6px);
}

.recommended-courses .courses-list img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* تحسين الكورسات على الشاشات الصغيرة */
@media (max-width: 768px) {
    .courses-list {
        grid-template-columns: 1fr;
    }

    .course-card img {
        height: auto;
    }
}

.custom-footer {
    position: relative;
    background-image: url('/assets/img/شريط.png');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    text-align: center;
    padding: 100px 20px 80px;
    overflow: hidden;
}

.footer-logo {
    max-width: 650px;
    height: auto;
    display: block;
    position: relative;
    top: -150px;
    /* مرتفع على الشاشات الكبيرة */
    margin: 0 auto 20px;
    transform: scale(0.6);
    transform-origin: center;
    z-index: 5;
}



.social-icons {
    display: flex;
    justify-content: center;
    gap: 150px;
    flex-wrap: wrap;
    margin: 20px 0;
    position: relative;
    top: 0 !important;
    /* يلغي تأثير أي top سابق */
}


.footer-overlay {
    width: 300px;
    height: auto;
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.footer-content {
    position: relative;
    z-index: 3;
}

.footer-logo-second {
    max-width: 400px;
    height: auto;
    margin: -200px auto 55px;
    display: block;
    position: relative;
    z-index: 5;
    transform: scale(1) translateY(50px);
    transform-origin: center
}

.footer-overlay-inside {
    width: 120px;
    height: auto;
    margin-bottom: 15px;
    object-fit: contain;
}

.social-icons {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    justify-content: center;
    /* شكلها عادي على الشاشات الكبيرة */
}

.social-icons img {
    width: 35px;
    /* حجم مناسب */
    height: auto;
}



.social-icons a {
    z-index: 21;
    position: relative
}

.footer-menu a {
    color: #a09bc5;
    text-decoration: none;
    margin: 0 5px;
    background: url('images/bacg.png') no-repeat center center;
}

footer {
    background: #000;
    color: #7A73D1;
    text-align: center;
    padding: 25px 10px;
    margin-top: 40px;
    font-size: .95rem;
}

/* تحسين الفوتر على الموبايل */
@media (max-width: 768px) {
    .custom-footer {
        padding: 50px 10px 30px;
        background-position: center top;
        text-align: center;
    }

    .footer-logo {
        top: -20px;
        left: 132%;
        transform: translateX(-50%) scale(0.6);
        /* يحافظ على التصغير ويظبط التمركز */
        position: relative;
    }

    .footer-logo-second {
        order: 2;
        max-width: 150px;
        transform: scale(1.1) translateY(-20px);
        margin: 0 auto 30px;
    }

    .social-icons {
        order: 1;
        flex-wrap: wrap;
        gap: 35px;
        justify-content: center;
        margin: 30px auto 60px;
        padding: 0 10px;
    }

    .social-icons img {
        width: 28px;
        height: 28px;
        position: relative;
        top: 0;
    }

    .footer-menu {
        font-size: 0.9rem;
        margin-top: 20px;
    }

    .footer-menu a {
        display: inline-block;
        margin: 0 8px;
    }

    .footer-overlay {
        width: 200px;
        top: -60px;
    }

    .footer-overlay-inside {
        width: 100px;
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    img[alt="السنوات الدراسية"] {
        max-width: 80% !important;
    }
}

.register-page {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 40px;
    padding: 60px 20px;
}

.register-form {
    flex: 1 1 420px;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6);
}

.register-form h2 {
    color: #a09bc5;
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
}

.register-form label {
    display: block;
    color: #f8f8ff;
    margin-bottom: 6px;
    font-weight: 600;
}

.register-form input,
.register-form select {
    width: 100%;
    background: #121212;
    color: #ffffff;
    border: 1px solid #555;
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-size: 0.95rem;
    transition: border 0.3s;
}

.register-form input:focus,
.register-form select:focus {
    border-color: #483D8B;
    outline: none;
}

.register-form button {
    width: 100%;
    background: #483D8B;
    color: #f8f8ff;
    border: none;
    border-radius: 30px;
    padding: 12px 0;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: 14px;
}

.register-form button:hover {
    background: #7A73D1;
}

.register-image {
    flex: 1 1 360px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.register-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .register-page {
        padding: 40px 15px;
    }

    .register-form {
        padding: 30px 20px;
    }
}

.login-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 40px;
    padding: 60px 20px;
    max-width: 1100px;
    margin: 50px auto;
}

.login-form {
    flex: 1 1 420px;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6);
}

.login-form h2 {
    color: #a09bc5;
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
}

.login-form label {
    display: block;
    color: #f8f8ff;
    margin-bottom: 6px;
    font-weight: 600;
}

.login-form input {
    width: 100%;
    background: #121212;
    color: #ffffff;
    border: 1px solid #555;
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-size: 0.95rem;
    transition: border 0.3s;
}

.login-form input:focus {
    border-color: #a09bc5;
    outline: none;
}

.login-form button {
    width: 100%;
    background: #483D8B;
    color: #f8f8ff;
    border: none;
    border-radius: 30px;
    padding: 12px 0;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: 14px;
}

.login-form button:hover {
    background: #483D8B;
}

.login-image {
    flex: 1 1 360px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .login-container {
        padding: 40px 15px;
        flex-direction: column-reverse;
    }

    .login-form {
        padding: 30px 20px;
    }
}

/* قسم عرض الفيديو */
.video-section {
    background: #746cc0;
    color: #ffffff;
    padding: 40px 20px;
    border-radius: 15px;
    max-width: 1100px;
    margin: 40px auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .6);
}

.video-section video {
    width: 100%;
    max-width: 900px;
    border: 1px solid #333;
    border-radius: 10px;
    display: block;
    margin: 20px auto;
    background: #000;
}

.lecture-title {
    color: #f8f8ff;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.6rem;
}

.lecture-list-container {
    max-width: 900px;
    margin: 0 auto;
}

.lecture-list {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
}

.lecture-list li {
    background: #121212;
    color: #f8f8ff;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 10px 15px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background .3s;
}

.lecture-list li:hover {
    background: #1e1e1e;
}

.lecture-list li.active {
    background: #e0e0e0;
    color: #121212;
}

.toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    color: #483D8B;
    font-weight: 700;
}

.toggle-arrow {
    transition: transform .3s;
}

.toggle-arrow.open {
    transform: rotate(90deg);
}

.instructor-section {
    text-align: center;
    margin: 40px 0;
}

.instructor-section img {
    max-width: 280px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .6);
}

/* كورسات قابلة للتمرير */
.scrollable-courses {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 20px;
    margin-top: 30px;
    padding: 10px 0;
}

.scrollable-courses::-webkit-scrollbar {
    height: 8px;
}

.scrollable-courses::-webkit-scrollbar-thumb {
    background: #483D8B;
    border-radius: 4px;
}

.course-card {
    min-width: 300px;
    background: #333333;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
}

.course-card:hover {
    transform: translateY(-6px);
}

.course-card img {
    width: 100%;
    height: auto;
    border-radius: 0;
    object-fit: cover;
}

.course-card .content {
    padding: 15px;
}

.course-card .content h3 {
    color: #f8f8ff;
    font-size: 1.2rem;
    margin-bottom: 10px;
}


.course-card .content p {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 12px;
}

.course-button {
    background: #483D8B;
    color: #f8f8ff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.course-button:hover {
    background: #a09bc5;
}

.arrow {
    cursor: pointer;
    transition: transform .3s ease;
    margin-right: 6px;
}

.open>.arrow {
    transform: rotate(90deg);
}

.sub-lectures {
    display: none;
    margin-right: 20px;
}

.sub-lectures li {
    margin: 4px 0;
}

/* radio group */
.radio-group {
    display: flex;
    gap: 20px;
    margin: 10px 0;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
    color: #ffffff;
}

.logout-menu .logout-button:hover {
    color: #d4af37
}

.user-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-left: 10px
}

.logout-menu {
    background-color: #0B1D51;
    border: 1px solid #ffcf85;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 150px;
    text-align: right;
}

.logout-menu .logout-button {
    background: none;
    border: none;
    color: #ff0000;
    cursor: pointer;
    font-weight: bold;
    padding: 5px 10px;
    width: 100%;
    text-align: right;
}

.logout-menu .logout-button:hover {
    color: #d4af37;
}

.recommended-courses.full-width-section {
    width: 100%;
    max-width: 100%;
    padding: 50px 30px;
    background-color: #ffffff;
    /* الخلفية المطلوبة */
}

/* شبكة الكورسات */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

/* كرت الكورس */
.course-card {
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 15px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
}

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

/* محتوى الكورس */
.course-card .content {
    padding: 20px;
}

.course-card .content h3 {
    color: #211009;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.course-card .content p {
    color: #333;
    font-size: 1rem;
    margin-bottom: 10px;
}

/* زر الاشتراك */
.course-button {
    background-color: #483D8B;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.course-button:hover {
    background-color: #7A73D1;
}

/* زر الدخول (بني) */
.course-button.brown {
    background-color: #211009;
}

.course-button.brown:hover {
    background-color: #ffcf85;
    color: #211009;
}

.exam-container {
    max-width: 900px;
    margin: 50px auto;
    background: #fff8f0;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.exam-container h2 {
    text-align: center;
    color: #483D8B;
    margin-bottom: 20px;
}

.instructions {
    background: #ffcf85;
    padding: 15px;
    border-radius: 8px;
    color: #211009;
    font-weight: bold;
    margin-bottom: 25px;
    text-align: center;
}

.question {
    margin-bottom: 20px;
}

.question-title {
    font-weight: bold;
    color: #211009;
    margin-bottom: 10px;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.submit-wrapper {
    text-align: center;
    margin-top: 30px;
}

.exam-result {
    text-align: center;
    margin-top: 20px;
    font-weight: bold;
    font-size: 18px;
    color: #211009;
}

.container {
    max-width: 800px;
    margin: 50px auto;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

h2 {
    text-align: center;
    color: #211009;
    font-size: 26px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.instructions {
    background-color: #483D8B;
    padding: 18px;
    border-radius: 14px;
    margin-bottom: 30px;
    color: #ffffff;
    font-weight: bold;
    text-align: center;
    font-size: 18px;
}

.question {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.question-title {
    margin-bottom: 12px;
    font-weight: bold;
    font-size: 18px;
    color: #211009;
}

.options label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    background-color: #fff8f0;
    border: 1px solid #483D8B;
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    font-size: 16px;
    position: relative;
}

.options input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #483D8B;
    border-radius: 50%;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
    position: relative;
}

.options input[type="radio"]:checked {
    background-color: #211009;
    border-color: #ffcf85;
}

.options input[type="radio"]::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 10px;
    height: 10px;
    background-color: #211009;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.options input[type="radio"]:checked::before {
    opacity: 1;
}

.options label:hover {
    background-color: #fff0d0;
    transform: scale(1.02);
}


.submit-btn {
    background-color: #483D8B;
    color: #ffcf85;
    border: none;
    padding: 14px 30px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

.submit-btn:hover {
    background-color: #3a1b0d;
}

#result {
    color: #211009;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    margin-top: 30px;
}

.welcome-heading {
    font-size: 32px;
    line-height: 1.6;
    color: #211009;
    text-align: center;
    margin-bottom: 20px;
}

.year-options a,
.year-options button {
    display: inline-block;
    padding: 8px 16px;
    margin: 5px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    border: none;
    cursor: pointer;
    min-width: 70px;
}

/* الأزرار المقفولة */
.year-options button {
    background-color: #483D8B;
    color: #fff;
    cursor: not-allowed;
}

/* الروابط المفعّلة */
.year-options a {
    background-color: #483D8B;
    color: #fff;
    text-decoration: none;
}

.success-message {
    background-color: #28a745;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.admin-login-container {
    min-height: 100vh;
    background: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
}

.admin-login-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 380px;
}

.admin-login-card h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 22px;
}

.admin-login-card input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.admin-login-card input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.4);
}

.admin-login-card button {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.admin-login-card button:hover {
    background: #0056b3;
}

.error {
    background: #f8d7da;
    color: #842029;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background: #ffffff;
    color: #121212;
    line-height: 1.5;
    direction: rtl;
}

a {
    text-decoration: none;
    color: inherit;
}

.glow {
    animation: glow-effect 1.5s infinite alternate;
}

@keyframes glow-effect {
    0% {
        box-shadow: 0 0 5px #483D8B, 0 0 10px #483D8B, 0 0 15px #483D8B;
    }

    100% {
        box-shadow: 0 0 15px #483D8B, 0 0 20px #483D8B, 0 0 25px #483D8B;
    }
}

.main-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 999;
    background: #483D8B;
    padding: 10px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.main-header .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
}

.main-header .logo img {
    height: 60px;
    width: auto;
    display: block;
}

.main-header nav ul {
    list-style: none;
    display: flex;
    gap: 10px;
}

.main-header nav ul li a {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s;
}

.main-header nav ul li a:hover {
    color: #e0f7fa;
}

@media (max-width: 768px) {
    .main-header nav {
        padding: 7px 8px;
    }
}

.hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 40px 20px;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #ffffff;
    opacity: 0.3;
    z-index: 1;
}

.hero .text {
    flex: 1 1 400px;
    padding: 10px 20px;
    position: relative;
    z-index: 2;
}

.hero .text h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #121212;
}

.hero .text p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: #444;
}

.hero .text a.btn {
    display: inline-block;
    background: #483D8B;
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 700;
    transition: background 0.3s;
}

.hero .text a.btn:hover {
    background: #7A73D1;
}

.hero .image {
    flex: 1 1 300px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero .image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 20px 10px;
    }

    /* إلغاء أي مسافة تحت السيكشن الأول */
    .hero,
    .hero .text,
    .hero .image {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    /* إلغاء المسافة فوق صورة المرحلة الإعدادية */
    section[aria-label="سنوات الدراسة"],
    section[aria-label="سنوات الدراسة"]>div {
        margin-top: 0 !important;
        padding-top: 0 !important;
        text-align: center !important;
        /* محاذاة الصورة في النص */
    }

    section[aria-label="سنوات الدراسة"] img {
        display: block;
        margin: 0 auto !important;
        /* ترجيع الصورة للوسط */
    }
}



.full-bg-section {
    width: 100%;
    background-color: #1e1e1e;
    padding: 30px 10px;
    overflow: hidden;
}

.full-bg-section .image-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.animated-img {
    width: 320px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-in-out;
}

.animated-img.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .animated-img {
        width: 280px;
    }
}

.animated-img:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 0 20px #483D8B);
    transition: transform 0.3s ease, filter 0.3s ease;
    z-index: 2;
}

/* بطاقات السنوات الدراسية */
.study-years-slider {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.study-year-card {
    width: 300px;
    border: 1px solid #ccc;
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.3s;
    padding: 0;
    /* مهم */
}

.study-year-card img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    display: block;
    cursor: pointer;
}

.option-link {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    background-color: #211009;
    /* لون الخلفية */
    color: #fff8f0;
    /* لون الخط */
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s ease;
}

.option-link:hover {
    background-color: #ffcf85;
    color: #211009;
}

/* استجابة البطاقات */
@media (max-width: 768px) {
    .study-years-slider {
        flex-direction: column;
        align-items: center;
    }

    .study-year-card {
        width: 90%;
        flex: none;
    }
}

section {
    padding: 40px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #483D8B;
    text-align: center;
}

.courses-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.course-card {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.course-card {
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.course-card:hover {
    transform: translateY(-6px);
}

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

.course-card .content h3 {
    color: #211009;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.course-card .content p {
    color: #333;
    font-size: 1rem;
    margin-bottom: 12px;
}

.course-button {
    background: #483D8B;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.course-button:hover {
    background: #7A73D1;
}

.course-button.brown {
    background: #211009;
}

.course-button.brown:hover {
    background: #ffcf85;
    color: #211009;
}

/* كورسات مقترحة */
.recommended-courses {
    background: #1e1e1e;
    padding: 40px 20px;
}

.recommended-courses h3 {
    color: #7A73D1;
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.recommended-courses .courses-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.recommended-courses .courses-list a {
    background: #121212;
    color: #ffffff;
    border: 1px solid #333;
    border-radius: 10px;
    text-align: center;
    padding: 15px 10px;
    transition: transform .3s;
    font-weight: 600;
}

.recommended-courses .courses-list a:hover {
    transform: translateY(-6px);
}

.recommended-courses .courses-list img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* تحسين الكورسات على الشاشات الصغيرة */
@media (max-width: 768px) {
    .courses-list {
        grid-template-columns: 1fr;
    }

    .course-card img {
        height: auto;
    }
}

.custom-footer {
    position: relative;
    background-image: url('/assets/img/شريط.png');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    text-align: center;
    padding: 100px 20px 80px;
    overflow: hidden;
}

.footer-logo {
    max-width: 650px;
    height: auto;
    display: block;
    position: relative;
    top: -150px;
    /* مرتفع على الشاشات الكبيرة */
    margin: 0 auto 20px;
    transform: scale(0.6);
    transform-origin: center;
    z-index: 5;
}



.social-icons {
    display: flex;
    justify-content: center;
    gap: 150px;
    flex-wrap: wrap;
    margin: 20px 0;
    position: relative;
    top: 0 !important;
    /* يلغي تأثير أي top سابق */
}


.footer-overlay {
    width: 300px;
    height: auto;
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.footer-content {
    position: relative;
    z-index: 3;
}


.footer-overlay-inside {
    width: 120px;
    height: auto;
    margin-bottom: 15px;
    object-fit: contain;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 150px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.social-icons img {
    width: 30px;
    height: 30px;
    position: relative;
    top: -190px;
}

.footer-menu a {
    color: #a09bc5;
    text-decoration: none;
    margin: 0 5px;
    background: url('images/bacg.png') no-repeat center center;
}

footer {
    background: #000;
    color: #7A73D1;
    text-align: center;
    padding: 25px 10px;
    margin-top: 40px;
    font-size: .95rem;
}

/* تحسين الفوتر على الموبايل */
@media (max-width: 768px) {
    .custom-footer {
        padding: 50px 10px 30px;
        background-position: center top;
        text-align: center;
    }

    .footer-logo {
        top: -20px;
        left: 132%;
        transform: translateX(-50%) scale(0.6);
        /* يحافظ على التصغير ويظبط التمركز */
        position: relative;
    }

    .footer-logo-second {
        order: 2;
        max-width: 150px;
        transform: scale(1.1) translateY(-20px);
        margin: 0 auto 30px;
    }

    .social-icons {
        order: 1;
        flex-wrap: wrap;
        gap: 35px;
        justify-content: center;
        margin: 30px auto 60px;
        padding: 0 10px;
    }

    .social-icons img {
        width: 28px;
        height: 28px;
        position: relative;
        top: 0;
    }

    .footer-menu {
        font-size: 0.9rem;
        margin-top: 20px;
    }

    .footer-menu a {
        display: inline-block;
        margin: 0 8px;
    }

    .footer-overlay {
        width: 200px;
        top: -60px;
    }

    .footer-overlay-inside {
        width: 100px;
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    img[alt="السنوات الدراسية"] {
        max-width: 80% !important;
    }
}

.register-page {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 40px;
    padding: 60px 20px;
}

.register-form {
    flex: 1 1 420px;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6);
}

.register-form h2 {
    color: #a09bc5;
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
}

.register-form label {
    display: block;
    color: #f8f8ff;
    margin-bottom: 6px;
    font-weight: 600;
}

.register-form input,
.register-form select {
    width: 100%;
    background: #121212;
    color: #ffffff;
    border: 1px solid #555;
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-size: 0.95rem;
    transition: border 0.3s;
}

.register-form input:focus,
.register-form select:focus {
    border-color: #483D8B;
    outline: none;
}

.register-form button {
    width: 100%;
    background: #483D8B;
    color: #f8f8ff;
    border: none;
    border-radius: 30px;
    padding: 12px 0;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: 14px;
}

.register-form button:hover {
    background: #7A73D1;
}

.register-image {
    flex: 1 1 360px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.register-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .register-page {
        padding: 40px 15px;
    }

    .register-form {
        padding: 30px 20px;
    }
}

.login-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 40px;
    padding: 60px 20px;
    max-width: 1100px;
    margin: 50px auto;
}

.login-form {
    flex: 1 1 420px;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6);
}

.login-form h2 {
    color: #a09bc5;
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
}

.login-form label {
    display: block;
    color: #f8f8ff;
    margin-bottom: 6px;
    font-weight: 600;
}

.login-form input {
    width: 100%;
    background: #121212;
    color: #ffffff;
    border: 1px solid #555;
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-size: 0.95rem;
    transition: border 0.3s;
}

.login-form input:focus {
    border-color: #a09bc5;
    outline: none;
}

.login-form button {
    width: 100%;
    background: #483D8B;
    color: #f8f8ff;
    border: none;
    border-radius: 30px;
    padding: 12px 0;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: 14px;
}

.login-form button:hover {
    background: #483D8B;
}

.login-image {
    flex: 1 1 360px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .login-container {
        padding: 40px 15px;
        flex-direction: column-reverse;
    }

    .login-form {
        padding: 30px 20px;
    }
}

/* قسم عرض الفيديو */
.video-section {
    background: #746cc0;
    color: #ffffff;
    padding: 40px 20px;
    border-radius: 15px;
    max-width: 1100px;
    margin: 40px auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .6);
}

.video-section video {
    width: 100%;
    max-width: 900px;
    border: 1px solid #333;
    border-radius: 10px;
    display: block;
    margin: 20px auto;
    background: #000;
}

.lecture-title {
    color: #f8f8ff;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.6rem;
}

.lecture-list-container {
    max-width: 900px;
    margin: 0 auto;
}

.lecture-list {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
}

.lecture-list li {
    background: #121212;
    color: #f8f8ff;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 10px 15px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background .3s;
}

.lecture-list li:hover {
    background: #1e1e1e;
}

.lecture-list li.active {
    background: #e0e0e0;
    color: #121212;
}

.toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    color: #483D8B;
    font-weight: 700;
}

.toggle-arrow {
    transition: transform .3s;
}

.toggle-arrow.open {
    transform: rotate(90deg);
}

.instructor-section {
    text-align: center;
    margin: 40px 0;
}

.instructor-section img {
    max-width: 280px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .6);
}

/* كورسات قابلة للتمرير */
.scrollable-courses {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 20px;
    margin-top: 30px;
    padding: 10px 0;
}

.scrollable-courses::-webkit-scrollbar {
    height: 8px;
}

.scrollable-courses::-webkit-scrollbar-thumb {
    background: #483D8B;
    border-radius: 4px;
}

.course-card {
    min-width: 300px;
    background: #333333;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
}

.course-card:hover {
    transform: translateY(-6px);
}

.course-card img {
    width: 100%;
    height: auto;
    border-radius: 0;
    object-fit: cover;
}

.course-card .content {
    padding: 15px;
}

.course-card .content h3 {
    color: #f8f8ff;
    font-size: 1.2rem;
    margin-bottom: 10px;
}


.course-card .content p {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 12px;
}

.course-button {
    background: #483D8B;
    color: #f8f8ff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.course-button:hover {
    background: #a09bc5;
}

.arrow {
    cursor: pointer;
    transition: transform .3s ease;
    margin-right: 6px;
}

.open>.arrow {
    transform: rotate(90deg);
}

.sub-lectures {
    display: none;
    margin-right: 20px;
}

.sub-lectures li {
    margin: 4px 0;
}

/* radio group */
.radio-group {
    display: flex;
    gap: 20px;
    margin: 10px 0;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
    color: #ffffff;
}

.logout-menu .logout-button:hover {
    color: #d4af37
}

.user-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-left: 10px
}

.logout-menu {
    background-color: #0B1D51;
    border: 1px solid #ffcf85;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 150px;
    text-align: right;
}

.logout-menu .logout-button {
    background: none;
    border: none;
    color: #ff0000;
    cursor: pointer;
    font-weight: bold;
    padding: 5px 10px;
    width: 100%;
    text-align: right;
}

.logout-menu .logout-button:hover {
    color: #d4af37;
}

.recommended-courses.full-width-section {
    width: 100%;
    max-width: 100%;
    padding: 50px 30px;
    background-color: #ffffff;
    /* الخلفية المطلوبة */
}

/* شبكة الكورسات */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

/* كرت الكورس */
.course-card {
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 15px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
}

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

/* محتوى الكورس */
.course-card .content {
    padding: 20px;
}

.course-card .content h3 {
    color: #211009;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.course-card .content p {
    color: #333;
    font-size: 1rem;
    margin-bottom: 10px;
}

/* زر الاشتراك */
.course-button {
    background-color: #483D8B;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.course-button:hover {
    background-color: #7A73D1;
}

/* زر الدخول (بني) */
.course-button.brown {
    background-color: #211009;
}

.course-button.brown:hover {
    background-color: #ffcf85;
    color: #211009;
}

.exam-container {
    max-width: 900px;
    margin: 50px auto;
    background: #fff8f0;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.exam-container h2 {
    text-align: center;
    color: #483D8B;
    margin-bottom: 20px;
}

.instructions {
    background: #ffcf85;
    padding: 15px;
    border-radius: 8px;
    color: #211009;
    font-weight: bold;
    margin-bottom: 25px;
    text-align: center;
}

.question {
    margin-bottom: 20px;
}

.question-title {
    font-weight: bold;
    color: #211009;
    margin-bottom: 10px;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.submit-wrapper {
    text-align: center;
    margin-top: 30px;
}

.exam-result {
    text-align: center;
    margin-top: 20px;
    font-weight: bold;
    font-size: 18px;
    color: #211009;
}

.container {
    max-width: 800px;
    margin: 50px auto;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

h2 {
    text-align: center;
    color: #211009;
    font-size: 26px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.instructions {
    background-color: #483D8B;
    padding: 18px;
    border-radius: 14px;
    margin-bottom: 30px;
    color: #ffffff;
    font-weight: bold;
    text-align: center;
    font-size: 18px;
}

.question {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.question-title {
    margin-bottom: 12px;
    font-weight: bold;
    font-size: 18px;
    color: #211009;
}

.options label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    background-color: #fff8f0;
    border: 1px solid #483D8B;
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    font-size: 16px;
    position: relative;
}

.options input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #483D8B;
    border-radius: 50%;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
    position: relative;
}

.options input[type="radio"]:checked {
    background-color: #211009;
    border-color: #ffcf85;
}

.options input[type="radio"]::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 10px;
    height: 10px;
    background-color: #211009;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.options input[type="radio"]:checked::before {
    opacity: 1;
}

.options label:hover {
    background-color: #fff0d0;
    transform: scale(1.02);
}


.submit-btn {
    background-color: #483D8B;
    color: #ffcf85;
    border: none;
    padding: 14px 30px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

.submit-btn:hover {
    background-color: #3a1b0d;
}

#result {
    color: #211009;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    margin-top: 30px;
}

.welcome-heading {
    font-size: 32px;
    line-height: 1.6;
    color: #211009;
    text-align: center;
    margin-bottom: 20px;
}

.year-options a,
.year-options button {
    display: inline-block;
    padding: 8px 16px;
    margin: 5px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    border: none;
    cursor: pointer;
    min-width: 70px;
}

/* الأزرار المقفولة */
.year-options button {
    background-color: #483D8B;
    color: #fff;
    cursor: not-allowed;
}

/* الروابط المفعّلة */
.year-options a {
    background-color: #483D8B;
    color: #fff;
    text-decoration: none;
}

.success-message {
    background-color: #28a745;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.admin-login-container {
    min-height: 100vh;
    background: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
}

.admin-login-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 380px;
}

.admin-login-card h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 22px;
}

.admin-login-card input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.admin-login-card input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.4);
}

.admin-login-card button {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.admin-login-card button:hover {
    background: #0056b3;
}

.error {
    background: #f8d7da;
    color: #842029;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
}

#user-trigger {
    color: #ffffff;
}
.custom-footer {
    position: relative;
    background-image: url('/assets/img/شريط.png'); /* الخلفية */
    background-size: cover;
    background-position: center;
    color: #ffffff;
    text-align: center;
    padding: 100px 20px 80px;
    overflow: hidden;
}

/* طبقة شفافة فوق الصورة لو حابب */
.custom-footer .footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); 
    z-index: 1;
}

.footer-container {
    position: relative;
    z-index: 2; /* فوق الطبقة الشفافة */
    max-width: 1200px;
    margin: 0 auto;
}

.footer-title {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: bold;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.social-icons img {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    filter: brightness(0) invert(1);
}

.social-icons a:hover img {
    transform: scale(1.15);
    opacity: 0.85;
}

.footer-text {
    font-size: 14px;
    opacity: 0.85;
}

.footer-text a {
    color: #ffcf40;
    text-decoration: none;
    font-weight: bold;
}

.footer-text a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
    .footer-title {
        font-size: 16px;
    }
    .social-icons {
        gap: 15px;
    }
    .social-icons img {
        width: 26px;
        height: 26px;
    }
    .footer-text {
        font-size: 13px;
    }
}
