:root {
    --primary-yellow: #facc15;
    --dark-bg: #110902;
    --bg-primary: #110902;
    --bg-secondary: #1e1e1e;
    --card-bg: #1e1e1e;
    --text-primary: #f5f0e1;
    --text-secondary: #e0dacb;
    --border-color: #333;
    --dark-text: #121212;
    --header-bg: #0a0500;
}

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

body {
    background: #110902;
    color: #f5f0e1;
    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 #facc15, 0 0 10px #facc15, 0 0 15px #facc15
    }

    100% {
        box-shadow: 0 0 15px #facc15, 0 0 20px #facc15, 0 0 25px #facc15
    }
}

.main-header {
    position: sticky;
    top: 15px;
    width: 95%;
    max-width: 1200px;
    margin: 15px auto;
    border-radius: 50px;
    z-index: 999;
    background: rgba(10, 5, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 0;
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.2), 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(250, 204, 21, 0.15);
}

.main-header.scrolled {
    background: rgba(10, 5, 0, 0.9);
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.2), 0 4px 30px rgba(0, 0, 0, 0.3);
}


.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: 75px;
    width: auto;
    display: block
}

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

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

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

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

.hero {
    display: flex;
    flex-direction: row;
    /* الصورة شمال والكلام يمين */
    justify-content: space-between;
    align-items: center;
    padding: 40px 20px;
    background-color: #110902;
    position: relative;
    overflow: hidden;
    text-align: right;
    /* يخلي الكلام لليمين */
}

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

.hero .text {
    flex: 1 1 50%;
    padding: 10px 20px;
    position: relative;
    /* <<< ضروري عشان z-index يشتغل */
    z-index: 2;
    /* <<< يرفع الكلام والزر فوق .hero::before */
}

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

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

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

.hero .text a.btn:hover {
    background: #facc15
}

.hero .text a.btn.brown-btn {
    background: #facc15
}

.hero .text a.btn.brown-btn:hover {
    background: #facc15
}

.hero .image {
    flex: 1 1 50%;
    text-align: left;
}

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

@media (max-width:768px) {
    .hero {
        flex-direction: column-reverse
    }
}

.full-bg-section {
    width: 100%;
    background-color: #110902;
    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;
    max-width: 100%;
    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 #facc15);
    transition: transform 0.3s ease, filter 0.3s ease;
    z-index: 2
}

.study-years-slider {
    max-width: 1100px;
    margin: 80px auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px
}

.study-years-slider>a {
    flex: 0 0 calc(33.333% - 20px);
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

@media (max-width: 992px) {
    .study-years-slider>a {
        flex: 0 0 calc(50% - 20px);
    }
}

.study-year-card {
    flex: 1 1 30%;
    background: #1e1e1e;
    color: #f5f0e1;
    border-radius: 15px;
    padding: 30px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s
}

.study-year-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6)
}

.study-year-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
    border-bottom: 2px solid #facc15;
    display: inline-block;
    padding-bottom: 8px
}

.study-year-card p {
    font-size: 1.1rem;
    line-height: 1.4;
    color: #e0dacb
}

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

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

.courses-list {
    margin-top: 40px;
    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
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.5)
}

.course-card img {
    width: 100%;
    height: auto;
    object-fit: contain
}

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

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

.course-card .content p {
    color: #f5f0e1;
    font-size: 1rem
}

.custom-footer {
    position: relative;
    background-image: url('/assets/img/فوتر.png');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 500px 20px 80px;
    overflow: hidden
}

.footer-logo {
    position: relative;
    top: -80px;
    /* رفع اللوجو لفوق */
    margin-bottom: 10px;
}

.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
}

.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 {
    text-align: center;
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    /* أبيض ناصع */
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
    /* توهج ذهبي ناعم */
    margin-top: 15px;
}

.footer-menu a {
    color: #000000 !important;
    /* ذهبي ساطع */
    text-decoration: none;
    margin: 0 5px;
    font-weight: 800;
    transition: 0.3s ease;
}

.footer-menu a:hover {
    color: #ffe066 !important;
    /* أفتح عند المرور */
    text-shadow: 0 0 10px rgba(255, 255, 120, 0.8);
    /* لمعة عند الهوفر */
}

@media (max-width: 768px) {
    .social-icons {
        flex-direction: column;
        /* تحت بعض */
        align-items: flex-start;
        /* على الشمال */
        gap: 20px;
        margin-left: 15px;
        /* نوديهم شويه للشمال */
    }
}

@media (max-width:768px) {
    .footer-overlay {
        width: 200px;
        top: -60px
    }
}

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

    .hero .text h1 {
        font-size: 1.6rem
    }

    .hero .text p {
        font-size: 1rem
    }

    .hero .text a.btn {
        width: 90%;
        margin: 10px auto;
        display: block
    }

    .hero .image img {
        max-width: 90%;
        margin: 0 auto
    }
}

.full-bg-section.no-padding {
    padding: 0
}

.full-square-image {
    width: 100%;
    height: auto;
    display: block
}

@media (max-width:768px) {
    .study-years-slider {
        flex-direction: row;
    }

    .study-years-slider>a {
        flex: 0 0 100%;
    }
}

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

    .course-card img {
        height: auto
    }
}

@media (max-width:768px) {
    .custom-footer {
        padding: 250px 10px 30px;
        background-position: center top;
        text-align: center;
    }

    .custom-footer .social-icons {
        position: static;
        /* يشيل الوضع الثابت */
        flex-direction: row;
        /* يخليهم صف جنب بعض */
        justify-content: center;
        margin-top: 15px;
        /* مسافة تحت اللوجو */
    }
}

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

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

.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: #facc15;
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center
}

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

.register-form input,
.register-form select {
    width: 100%;
    background: #121212;
    color: #f5f0e1;
    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: #facc15;
    outline: none
}

.register-form button {
    width: 100%;
    background: #facc15;
    color: #121212;
    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: #facc15
}

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

.register-image img {
    aspect-ratio: 3 / 4;
    height: 900px;
    border-radius: 10px;
    object-fit: cover
}

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

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

    .register-image img {
        height: 400px
    }
}

.video-section {
    background: #110902;
    color: #f5f0e1;
    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: #facc15;
    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: #110902;
    color: #facc15;
    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: #facc15;
    color: #121212
}

.toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    color: #facc15;
    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)
}

.recommended-courses {
    background: #110902;
    padding: 40px 20px
}

.recommended-courses h3 {
    color: #facc15;
    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: #f5f0e1;
    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) {
    .recommended-courses img {
        margin-bottom: 30px;
        /* المسافة اللي تعجبك */
    }
}

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

.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: #facc15;
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center
}

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

.login-form input {
    width: 100%;
    background: #121212;
    color: #f5f0e1;
    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: #facc15;
    outline: none
}

.login-form button {
    width: 100%;
    background: #facc15;
    color: #121212;
    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: #facc15
}

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

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

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

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

.scrollable-courses {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center
}

.course-card {
    flex: 1 1 calc(33.333% - 40px);
    box-sizing: border-box;
    max-width: calc(33.333% - 40px)
}

@media (max-width:992px) {
    .course-card {
        flex: 1 1 calc(50% - 40px);
        max-width: calc(50% - 40px)
    }
}

@media (max-width:576px) {
    .course-card {
        flex: 1 1 100%;
        max-width: 100%
    }
}

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

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

.course-card {
    min-width: 300px;
    background: #1e1e1e;
    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: #facc15;
    font-size: 1.2rem;
    margin-bottom: 10px
}

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

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

.course-button:hover {
    background: #facc15
}

.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
}

h1,
h2 {
    text-align: center;
    color: #333
}

.stats {
    display: flex;
    justify-content: space-between;
    margin: 30px 0
}

.stat-box {
    flex: 1;
    background-color: #f7a600;
    margin: 0 10px;
    padding: 20px;
    border-radius: 10px;
    text-align: center
}

.stat-box h3 {
    font-size: 28px;
    color: #facc15;
    margin: 0
}

.stat-box p {
    margin-top: 10px;
    font-size: 16px;
    color: #555
}

form {
    display: flex;
    flex-direction: column
}

form label {
    margin-top: 15px;
    margin-bottom: 5px;
    color: #333;
    font-weight: bold
}

form input[type="text"],
form select,
form textarea,
form input[type="file"] {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box
}

form textarea {
    resize: vertical;
    min-height: 100px
}

form button[type="submit"],
button[type="button"] {
    margin-top: 25px;
    padding: 12px;
    background-color: #facc15;
    color: #fff;
    border: none;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease
}

form button[type="submit"]:hover,
button[type="button"]:hover {
    background-color: #1e1e1e
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center
}

.alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-weight: 600
}

.alert-error ul {
    list-style: none;
    margin: 0;
    padding: 0
}

.courses-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    justify-content: center;
    margin: 30px auto;
    max-width: 1200px;
    padding: 0 15px
}

.courses-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    justify-content: center;
    margin: 30px auto;
    max-width: 1200px;
    padding: 0 15px
}

.course-item {
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 15px;
    background: #fff;
    transition: box-shadow 0.3s ease, transform 0.3s ease
}

.course-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px)
}

.course-item img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: transform 0.3s ease
}

.course-item:hover img {
    transform: scale(1.05)
}

.course-button {
    display: inline-block;
    margin-top: 10px
}

.students-table-wrapper {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 16px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6);
    padding: 2rem 1.5rem;
    color: #f5f0e1
}

.students-table-wrapper h4 {
    color: #facc15;
    font-weight: 700;
    margin-bottom: 1.5rem
}

.students-table {
    color: #f5f0e1;
    border-color: #333
}

.students-table thead {
    background: #333;
    color: #facc15
}

.students-table tbody tr:nth-child(even) {
    background: #1a1a1a
}

.students-table tbody tr:nth-child(odd) {
    background: #121212
}

.students-table tbody tr:hover {
    background: #2e2e2e;
    color: #facc15
}

.students-table .badge {
    background: #facc15;
    color: #121212;
    padding: .45rem 1.1rem;
    font-size: .9rem;
    border-radius: 50px
}

.logout-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 10px;
    z-index: 1000
}

.logout-menu .logout-button {
    background: none;
    border: none;
    color: #facc15;
    cursor: pointer;
    font-weight: bold;
    padding: 5px 10px
}

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

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

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

.branch-image {
    transition: transform 0.3s ease-in-out
}

.branch-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2)
}

.main-btn {
    background-color: #ffcf85;
    color: #211009;
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease
}

.main-btn:hover {
    background-color: #e2b96d;
    color: #211009
}

.whatsapp-icon {
    width: 40px;
    height: auto;
    margin-top: -5px;
    /* ارفع الصورة لفوق */
}

.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;
}

.admin-login-card input[name="phone"]:focus,
.admin-login-card input[name="password"]:focus {
    color: #110902;
    /* لون أغمق شوية عند الكتابة */
}

select:invalid {
    color: #999;
}

.watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: 24px;
    color: rgba(255, 255, 255, 0.3);
    font-weight: bold;
    pointer-events: none;
    /* عشان ما يمنعش التحكم في الفيديو */
    white-space: nowrap;
}

/* Courses Page Styles */
.courses-page {
    background: var(--bg-primary);
    min-height: 100vh;
    padding: 40px 0;
    font-family: 'Cairo', sans-serif;
}

.page-title {
    text-align: center;
    color: #29a4de;
    margin-bottom: 40px;
    font-size: 2.5rem;
    text-shadow: 0 2px 10px rgba(41, 164, 222, 0.2);
}

.months-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.month-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.month-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-yellow);
}

.month-image {
    height: 180px;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 3rem;
}

.month-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.month-content {
    padding: 20px;
    text-align: center;
}

.month-title {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.action-btn {
    display: inline-block;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s;
    border: none;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
}

.btn-enter {
    background: linear-gradient(135deg, #2ed573 0%, #26af61 100%);
    color: white;
}

.btn-enter:hover {
    box-shadow: 0 0 15px rgba(46, 213, 115, 0.4);
}

.btn-subscribe {
    background: var(--primary-yellow);
    color: #121212;
}

.btn-subscribe:hover {
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.4);
    background: #e2b96d;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-box {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    border: 1px solid var(--primary-yellow);
    position: relative;
    animation: slideDown 0.3s ease-out;
    text-align: center;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
}

.code-input {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    text-align: center;
    font-family: monospace;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    outline: none;
}

.code-input:focus {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.2);
}

/* Month Page Styles */
.month-page {
    background: var(--bg-primary);
    min-height: 100vh;
    padding: 20px 0;
    font-family: 'Cairo', sans-serif;
}

.month-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.month-header {
    text-align: center;
    margin-bottom: 30px;
}

.month-header h1 {
    color: var(--primary-yellow);
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(250, 204, 21, 0.2);
}

/* Video Player Area */
.video-box {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.video-frame {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.video-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.no-video-msg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-yellow);
    font-size: 1.2rem;
    text-align: center;
    width: 100%;
}

/* Accordion List */
.lectures-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.lecture-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.lecture-item.active {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.1);
}

.lecture-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--card-bg);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.lecture-header:hover {
    background: var(--bg-secondary);
    color: var(--primary-yellow);
}

.lecture-item.active .lecture-header {
    background: var(--primary-yellow);
    color: var(--dark-text);
}

.lecture-content {
    padding: 25px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    animation: slideDown 0.3s ease-out;
    display: none;
}

.lecture-item.active .lecture-content {
    display: block;
}

.content-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.content-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.section-title {
    color: var(--primary-yellow);
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.buttons-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    min-height: 44px;
}

.action-btn:hover {
    border-color: var(--primary-yellow);
    color: var(--primary-yellow);
    transform: translateY(-2px);
    background: var(--bg-secondary);
}

.action-btn.primary {
    background: var(--primary-yellow);
    color: var(--dark-text);
    border: none;
}

.action-btn.primary:hover {
    box-shadow: 0 5px 15px rgba(250, 204, 21, 0.3);
    background: #e2b96d;
    color: var(--dark-text);
}

.action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--border-color);
    color: var(--text-secondary);
    border-color: var(--border-color);
    box-shadow: none;
    transform: none;
}

.lecture-header i {
    transition: transform 0.3s;
}

.lecture-item.active .lecture-header i {
    transform: rotate(180deg);
}

.group-item {
    background: var(--bg-secondary);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.group-label {
    display: block;
    color: var(--primary-yellow);
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1rem;
}

.group-buttons-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.group-buttons-row .action-btn {
    flex: 1;
    min-width: 120px;
    justify-content: center;
}

@media (max-width: 768px) {
    .month-header h1 {
        font-size: 1.8rem;
    }

    .lecture-header {
        font-size: 1rem;
        padding: 15px;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }

    .group-buttons-row {
        flex-direction: column;
    }

    .group-buttons-row .action-btn {
        width: 100%;
    }
}

/* تعديلات إضافية للتوافق مع الثيمات */
.lecture-header:hover {
    color: var(--primary-yellow);
}

.lecture-item.active .lecture-header {
    color: #121212;
    /* لون النص في حالة النشطة */
}

.code-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Results Page Styles */
.results-container {
    max-width: 1000px;
    margin: 30px auto;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.filters-section {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 250px;
}

.filter-group label {
    display: block;
    color: var(--primary-yellow);
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 1.1em;
}

.filter-select {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    font-family: 'Cairo', sans-serif;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:hover {
    border-color: var(--primary-yellow);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-yellow);
    box-shadow: 0 0 10px rgba(41, 164, 222, 0.3);
}

.filter-select option {
    background: var(--bg-primary);
    color: var(--text-secondary);
}

.results-grid {
    display: grid;
    gap: 20px;
}

.result-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    border-right: 5px solid var(--primary-yellow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.result-card:hover {
    transform: translateX(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.exam-title {
    color: var(--primary-yellow);
    font-size: 1.3em;
    font-weight: 700;
    flex: 1;
}

.score-badge {
    background: var(--primary-yellow);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.2em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.result-details {
    display: flex;
    gap: 30px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.detail-label {
    color: var(--primary-yellow);
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--primary-yellow);
}

.empty-state-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 1.3em;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .results-container {
        padding: 20px;
    }

    .filters-section {
        flex-direction: column;
    }

    .filter-group {
        min-width: 100%;
    }

    .result-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .score-badge {
        align-self: flex-start;
    }
}