@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@200;300;400;500;700;800;900&display=swap&family=Readex+Pro:wght@160..700&display=swap&family=Lalezar&display=swap');
@import url('../fontawesome-v6.6.0/css/all.css');




body {
    font-family: "Tajawal", "Readex Pro", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bacground-body);
    color: var(--color-body);
    direction: rtl;
    text-align: right;


}

.card-header,
.card-footer {
    z-index: 1;
}

/*nav*/
.navbar,
.offcanvas {
    font-family: 'Tajawal', sans-serif;
}

.navbar {
    direction: rtl;
    background-color: var(--background-nav);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.17), inset 0 -1px 0 rgba(255, 255, 255, 0.25);
    position: sticky;
    top: 0px;
    z-index: 9;
}

.Logo-navbar .navbar-brand {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}

.navbar-toggler:focus,
.navbar-toggler:active {
    box-shadow: none;
}

.navbar-nav {
    margin: 0 10%;
}

.navbar .container-fluid {
    max-width: 1200px;
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--background-nav);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #fff;
    opacity: .8;
}

.navbar-nav .nav-link:hover {
    opacity: 1;
}

.navbar-nav .nav-link.active {
    opacity: 1;
}

.box-Logo .navbar-brand::before {
    content: "";
    display: block;
    width: 130px;
    height: 130px;
    background: url('/assets/img/site/zamayl-t.png') 0 0 no-repeat;
    background-size: cover;
}


.navbar .box-Logo .navbar-brand {
    font-size: 1rem;
    font-weight: 600;
}




.nav-offcanvas {
    background: var(--background-nav-offcanvas);
    color: var(--color-nav-offcanvas);
}


.offcanvas {
    direction: rtl;
    max-width: 330px;
}

.offcanvas-mneu .btn-close {
    top: 20px;
    left: 20px;
    position: absolute;
}

.offcanvas-header {
    background: var(--color-site);
    background: var(--offcanvas-header-background);
}



.offcanvas-header-Logo {
    margin: 0 auto;
}

.offcanvas-header .btn-close-custom {
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    padding: .25em .25em;
    color: var(--color-body);
    font-size: 25px;
    border: 0;
    border-radius: .375rem;
    opacity: .5;
    top: 20px;
    left: 20px;
    position: absolute;
    background-color: transparent;
}

.btn-close-custom:hover {
    color: var(--color-body);
    text-decoration: none;
    opacity: .75;
}

.offcanvas-header .btn-close-custom {
    padding: calc(var(--bs-offcanvas-padding-y)* .5) calc(var(--bs-offcanvas-padding-x)* .5);
    margin-top: calc(-.5* var(--bs-offcanvas-padding-y));
    margin-left: calc(-.5* var(--bs-offcanvas-padding-x));
    margin-bottom: calc(-.5* var(--bs-offcanvas-padding-y));
}

.border-offcanvas-logo {
    margin: 5px 10px 10px;
    border-bottom: 1px solid var(--input-border-color);
}

.offcanvas-items {
    margin: 10px 0;
}

.offcanvas-items a {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 7px;
    font-size: 1.05rem;
    padding: 0.5rem;
    width: 100%;
    font-weight: 500;
    color: var(--color-body);
    text-decoration: none;
    background: 0 0;
    border: 0;
    border-radius: 5px;
    transition: all .1s ease-out;
}

.offcanvas-items a .icon-item-left {
    margin-left: 0;
    margin-right: auto;
}

.offcanvas-items a .icon-item-right {
    color: var(--color-site-in-dark);
    font-size: 1.2rem;
}

.offcanvas-items .icon-item-right {
    width: 20px;
    text-align: center;
}


.offcanvas-items a:active .icon-item-right,
.offcanvas-items a:hover .icon-item-right {
    color: var(--color-body);
}

.offcanvas-items a:hover {
    color: var(--color-body);
}

.offcanvas-items a:active,
.offcanvas-items a.active {
    color: var(--color-body);

}

.btn-offcanvas-search {
    background-color: var(--background-nav);
    color: #fff;
}

.btn-offcanvas-search:hover {
    background-color: var(--background-nav-active);
    color: #fff;
}

.offcanvas-menu .icon-item-left {
    transform: rotate(-90deg);
    transform-origin: 0.5em 50%;
    transition: transform .35s ease;
}

.offcanvas-menu.collapsed .icon-item-left {
    transform: rotate(0deg);
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgb(121 82 179 / 31%);
    border-color: var(--background-nav);
}

.btn-search {
    opacity: .8;
    background-color: var(--background-nav);
    color: #fff;
    border: 1px solid rgb(255 255 255 / 25%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn.btn-search:active,
.btn-search:hover {
    background-color: var(--background-nav-active);
    color: #fff;
    border: 1px solid rgb(255 255 255 / 35%);
}

.btn-search:active,
.offcanvas .btn-search {
    opacity: 1;
}

.form-nav:focus,
.btn-close:focus {
    box-shadow: 0 0 0 0.25rem rgb(121 82 179 / 31%);
    border-color: var(--background-nav-active);
}

@media (max-width: 868px) {
    .navbar-nav {
        margin: 0 20px;
    }
}





/*end nav*/
























.student-answer {
    background-color: #303030;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 8px;
}

.student-answer h4 {
    color: #007BFF;
}

.exam-container {
    position: relative;
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 12px;
    background-color: var(--container-background);
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.5);
}

.id-exam-page {
    font-weight: 600;
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: #7272729c;
}

.id-exam-page::after {
    content: '#';
}

h1,
h2,
h3 {
    color: var(--color-body);
}



.ltr {
    direction: ltr;
    text-align: left;
}

.rtl {
    direction: rtl;
    text-align: right;
}

.options {
    list-style-type: none;
    padding-left: 0;
}

.option {
    margin-bottom: 12px;
    display: flex;
    align-items: center;

}

.option input[type="radio"] {
    accent-color: #00BFFF;
}

/*
.btn-submit {
display: inline-block;
padding: 10px 20px;
margin-top: 20px;
background-color: #76ff03;
color: #121212;
border: none;
border-radius: 8px;
cursor: pointer;
font-size: 16px;
transition: background-color 0.3s ease;
}

.btn-submit:hover {
background-color: #64dd17;
}
*/
.btn-submit {
    margin: 10px auto;
    display: block;
}


.result-container {
    padding: 20px;
    border-radius: 12px;
    background-color: var(--card-background-color);
    color: var(--container-color);
    margin: 15px 0;
}

/* Comments Panel - Facebook Style */
.comments-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comments-panel.show {
    opacity: 1;
    visibility: visible;
}

.comments-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.comments-container {
    position: relative;
    z-index: 1051;
    width: 90%;
    max-width: 680px;
    max-height: 85vh;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.comments-panel.show .comments-container {
    transform: scale(1);
}

.comments-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 85vh;
}

.comments-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 20px 24px;
    flex-shrink: 0;
}

.comment-input-section {
    background: white;
    border-bottom: 1px solid #e9ecef;
    padding: 16px 24px;
    flex-shrink: 0;
}

.comments-content {
    flex: 1;
    overflow-y: auto; /* single scroll container */
    padding: 0;
}

.comments-header h5 {
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    font-size: 1.2rem;
    flex: 1;
}

.comments-header #closeCommentsBtn {
    background: #6c757d;
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.comments-header #closeCommentsBtn:hover {
    background: #5a6268;
}

/* Comment Input Area - Facebook Style */
.comments-actions {
    padding: 16px 24px;
    border-bottom: 1px solid #e9ecef;
    background: white;
    flex-shrink: 0;
}

.comment-input-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.comment-input-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #e9ecef;
}

.comment-input-field {
    flex: 1;
    position: relative;
}

/* Main comment textarea (bottom composer) */
.comment-input-section .comment-input-field textarea {
    width: 100%;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 12px 50px 12px 16px; /* leave space for send button */
    resize: none; /* grow programmatically for smooth control */
    font-size: 14px;
    line-height: 1.5;
    background: #f8f9fa;
    transition: height 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    min-height: 44px;
    max-height: 50vh; /* allow large but not full-screen */
    overflow-y: auto; /* keep scrollable */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}
.comment-input-section .comment-input-field textarea::-webkit-scrollbar { width: 0; height: 0; }

.comment-input-section .comment-input-field textarea:focus {
    outline: none;
    border-color: #007bff;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.comments-actions textarea {
    width: 100%;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 12px 50px 12px 16px;
    resize: none;
    font-size: 14px;
    line-height: 1.4;
    background: #f8f9fa;
    transition: all 0.2s ease;
    min-height: 44px;
    max-height: 120px;
}

.comments-actions textarea:focus {
    outline: none;
    border-color: #007bff;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.comment-send-btn {
    position: absolute;
    left: 8px; /* stick to left edge of the textbox */
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
}

.comment-send-btn:hover:not(:disabled) {
    background: #0056b3;
    transform: translateY(-50%) scale(1.05);
}

.comment-send-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Comments List */
.comments-list {
    flex: 1;
    /* Disable inner scrolling to avoid double scroll */
    overflow: visible;
    padding: 0;
    margin: 0;
}

.comments-list::-webkit-scrollbar {
    width: 6px;
}

.comments-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.comments-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.comments-list::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Individual Comment - Facebook Style */
.comment-item {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    transition: background 0.2s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInComment 0.3s ease forwards;
}

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

.comment-body {
    flex: 1;
    position: relative;
}

.comment-item:hover {
    background: rgba(0, 0, 0, 0.01);
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #e9ecef;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.comment-avatar:hover {
    transform: scale(1.05);
}

.comment-body {
    flex: 1;
    min-width: 0;
}

/* Comment Bubble */
.comment-content {
    background: #f1f3f4;
    border-radius: 18px;
    padding: 12px 16px;
    display: inline-block;
    max-width: 100%;
    position: relative;
    margin-bottom: 4px;
}

.comment-meta {
    display: block;
    margin-bottom: 4px;
}

.comment-author {
    font-weight: 600;
    color: #050505;
    font-size: 13px;
    text-decoration: none;
    margin-left: 8px;
}

.comment-author:hover {
    text-decoration: underline;
    color: #007bff;
}

.comment-time {
    font-size: 12px;
    color: #65676b;
}

.comment-text {
    color: #050505;
    font-size: 14px;
    line-height: 1.34;
    word-wrap: break-word;
    white-space: pre-wrap;
    margin: 0;
}

/* Comment Actions - Facebook Style */
.comment-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
}

.comment-action-btn {
    background: none;
    border: none;
    color: #65676b;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border-radius: 12px;
}

.comment-action-btn:hover {
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
    text-decoration: none;
}

.comment-action-btn:active {
    transform: scale(0.95);
}

.btn-comment-like {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: #65676b;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 12px;
}

.btn-comment-like:hover {
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
}

.btn-comment-like.liked {
    color: #e41e3f;
}

.btn-comment-like.liked:hover {
    background: rgba(228, 30, 63, 0.1);
}

.btn-comment-like.liked i {
    color: #e41e3f;
    transform: scale(1.1);
}

.btn-comment-like i {
    transition: all 0.2s ease;
}

.btn-comment-like:active {
    transform: scale(0.95);
}

/* Comment Replies */
.comment-replies {
    margin-top: 8px;
    padding-right: 0;
}

.comment-reply {
    margin-top: 8px;
    padding-right: 0;
}

.comment-reply .comment-item {
    padding: 12px 0;
}

.comment-reply .comment-avatar {
    width: 32px;
    height: 32px;
}

.comment-reply .comment-content {
    background: #e4e6ea;
}

/* Reply Box */
.reply-box {
    margin-top: 8px;
    padding-right: 52px;
}

.reply-input-container {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.reply-input-container .comment-input-avatar {
    width: 32px;
    height: 32px;
}

.reply-box textarea {
    flex: 1;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 8px 40px 8px 12px;
    resize: none;
    font-size: 13px;
    background: #f8f9fa;
    min-height: 36px;
    max-height: 40vh;
    transition: height 0.2s ease;
    overflow-y: auto;
}

.reply-box textarea:focus {
    outline: none;
    border-color: #007bff;
    background: white;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.reply-send-btn {
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

/* Empty State */
.comments-empty {
    text-align: center;
    padding: 60px 24px;
    color: #65676b;
}

.comments-empty i {
    font-size: 48px;
    color: #e4e6ea;
    margin-bottom: 16px;
}

.comments-empty h6 {
    margin-bottom: 8px;
    color: #65676b;
}

.comments-empty p {
    margin: 0;
    font-size: 14px;
}

/* Loading State */
.comment-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.comment-loading .spinner-border {
    width: 24px;
    height: 24px;
    border-width: 2px;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.comment-item {
    animation: slideIn 0.3s ease-out;
}

.comment-loading .spinner-border {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Smooth transitions */
* {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Focus states */
.comments-actions textarea:focus,
.reply-box textarea:focus {
    outline: none;
    border-color: #007bff;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Hover effects */
.comment-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.comment-author:hover {
    color: #007bff !important;
    text-decoration: underline;
}

/* Loading skeleton */
.comment-skeleton {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    animation: pulse 1.5s ease-in-out infinite;
}

.comment-skeleton .avatar-skeleton {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
}

.comment-skeleton .content-skeleton {
    flex: 1;
}

.comment-skeleton .line-skeleton {
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    margin-bottom: 8px;
}

.comment-skeleton .line-skeleton.short {
    width: 60%;
}

.comment-skeleton .line-skeleton.medium {
    width: 80%;
}

.comment-skeleton .line-skeleton.long {
    width: 100%;
}

/* Scrollbar styling for better UX */
.comments-list::-webkit-scrollbar {
    width: 8px;
}

.comments-list::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 10px;
}

.comments-list::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 10px;
}

.comments-list::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}

/* Typography improvements */
.comment-text {
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
    hyphens: auto;
}

.comment-author {
    font-weight: 600;
    font-size: 13px;
}

.comment-time {
    font-size: 12px;
    font-weight: 400;
}

/* Better spacing */
.comment-meta {
    margin-bottom: 6px;
}

.comment-actions {
    margin-top: 6px;
    gap: 12px;
}

/* Enhanced button styles */
.comment-send-btn:hover:not(:disabled) {
    background: #0056b3;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* --- Comments visibility fixes (ensure readable colors) --- */
.comments-card .comment-text { color: #111 !important; }
.comments-card .comment-author { color: #111 !important; }
.comments-card .comment-time { color: #6b7280 !important; }
.comments-card .comment-action-btn,
.comments-card .btn-comment-like { color: #6b7280 !important; }
/* If animation fails for any reason, keep items visible */
.comments-card .comment-item { opacity: 1 !important; }
.comments-card .comments-empty,
.comments-card .comments-empty h6,
.comments-card .comments-empty p { color: #6b7280 !important; }

/* Hide scrollbars but keep scrollable (only on outer container) */
.comments-content {
    scrollbar-width: none;        /* Firefox */
    -ms-overflow-style: none;     /* IE/Edge */
}
.comments-content::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* Pending (optimistic) state for newly sent comments/replies */
.comment-item.is-pending {
    opacity: 0.55 !important;
    filter: saturate(0.7);
}

.reply-send-btn:hover:not(:disabled) {
    background: #0056b3;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* Success state for like button */
.btn-comment-like.liked {
    color: #e41e3f;
    transform: scale(1.05);
}

.btn-comment-like.liked i {
    animation: heartbeat 0.6s ease-in-out;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

/* Dark mode support preparation */
@media (prefers-color-scheme: dark) {
    .comments-panel {
        background: rgba(0, 0, 0, 0.8);
    }
    
    .comments-card {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .comments-header {
        background: #4a5568;
        border-bottom-color: #2d3748;
    }
    
    .comment-content {
        background: #4a5568;
        color: #e2e8f0;
    }
    
    .comment-reply .comment-content {
        background: #2d3748;
    }
    
    .comments-actions textarea,
    .reply-box textarea {
        background: #4a5568;
        border-color: #2d3748;
        color: #e2e8f0;
    }
    
    .comments-actions textarea::placeholder,
    .reply-box textarea::placeholder {
        color: #a0aec0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .comments-panel .content-wrapper {
        width: 95%;
        max-height: 90vh;
        margin: 20px;
    }
    
    .comments-header {
        padding: 16px 20px;
    }
    
    .comments-header h5 {
        font-size: 1.1rem;
    }
    
    .comments-actions {
        padding: 12px 20px;
    }
    
    .comment-item {
        padding: 12px 20px;
    }
    
    .comment-avatar {
        width: 36px;
        height: 36px;
    }
    
    .comment-input-avatar {
        width: 36px;
        height: 36px;
    }
    
    .comment-reply .comment-avatar {
        width: 28px;
        height: 28px;
    }
    
    .reply-box {
        padding-right: 44px;
    }
    
    .comments-actions textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

@media (max-width: 480px) {
    .comments-panel .content-wrapper {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }
    
    .comments-card {
        border-radius: 0;
    }
}
.result-container h2 {
    margin-top: 0;
    color: var(--h2-color);
}

.result-container p {
    margin-top: 0;
    color: white;
}

.report-container {
    position: fixed;
    bottom: 80px;
    left: 0;
}

.report-button {
    border: none;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    bottom: 0;
    left: 0;
    background: none;
    background: transparent;
}


#theme-switch {
    cursor: pointer;
    position: relative;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    background: url('/assets/img/site/moon.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

#theme-switch:checked {
    background: url('/assets/img/site/sun.svg');
}


label {
    margin: 0 5px;
}

@keyframes flash {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.flash {
    animation: flash 0.4s infinite;
}

.exam-result.table tbody th {
    width: 250px;
}

.form-get-exam label.form-check-label {
    font-size: large;
}


.form-control,
.form-select {
    color: var(--color-body);
    background-color: var(--control-background-color);
    border-color: var(--input-border-color);
}

.form-control:focus {
    color: var(--color-body);
    background-color: var(--control-background-color);
}






















.calculator {
    background-color: var(--background-content);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 420px;
    margin: 20px auto;
}

@media (max-width: 576px) {
    .calculator {
        box-shadow: none;
    }
}

.calculator h2 {
    font-size: 25px;
    font-weight: 500;
    text-align: center;
}


.fs-7 {
    font-size: .90rem !important;
}

.fs-8 {
    font-size: .83rem !important;
}

.fs-9 {
    font-size: .75rem !important;
}



@keyframes fireworks {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(2);
    }
}

.firework {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 15px;
    height: 15px;
    background-color: transparent;
    border-radius: 50%;
    opacity: 0;
    animation: fireworks 1s ease-out forwards;
}

.firework::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background-color: inherit;
    animation: inherit;
}

.colors {
    background-color: transparent;
}

.colors::before {
    background-color: inherit;
}





.btns-share {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;

}

.btns-share a {
    font-size: 25px;
    text-decoration: none;
    color: var(--icons-color);
    transition: all .2s ease-out;
}

.btns-share a:hover {
    color: var(--color-site);
}


.form-control:focus {

    border-color: var(--border-color);
    outline: 0;
    box-shadow: var(--control-box-shadow);
}


.btn-close:focus {
    box-shadow: var(--control-box-shadow);
}

.form-select:focus {
    border-color: var(--border-color);
    outline: 0;
    box-shadow: var(--control-box-shadow);
}

.el-btn-report {
    z-index: 3;
}

.btn-report {
    width: 40px;
    height: 40px;
    box-shadow: 0px 4px 10px 4px rgb(0 0 0 / 33%);
    transform: scale(1.1);
}


.btn-report:active {
    box-shadow: 0px 4px 4px 0px rgb(0 0 0 / 33%);
    transform: scale(1);
}

.text-orange {
    color: var(--bs-orange)
}



.btn {
    position: relative;
    overflow: hidden;
}


.waves-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 100);
    transform: scale(0);
    pointer-events: none;
    opacity: .3;
    animation: ripple-animation 1.2s linear;
    transform: scale(.3);
}


.waves-dark .waves-ripple {
    background: rgba(0, 0, 0, .4);
}

.waves-light .waves-ripple {
    background-color: rgba(255, 255, 255, 1);
}

.waves-red .waves-ripple {
    background-color: rgba(244, 67, 54, 0.7);
}

.waves-yellow .waves-ripple {
    background-color: rgba(255, 235, 59, 0.7);
}

.waves-orange .waves-ripple {
    background-color: rgba(255, 152, 0, 0.7);
}

.waves-purple .waves-ripple {
    background-color: rgba(156, 39, 176, 0.7);
}

.waves-green .waves-ripple {
    background-color: rgba(76, 175, 80, 0.7);
}

.waves-teal .waves-ripple {
    background-color: rgba(0, 150, 136, 0.7);
}


.waves-effect.waves-dark:active {
    background-color: #ededed;
    transition: background-color 1.5s ease-in-out;
}


@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}




.input-width-200 {
    min-width: 250px;
}


.form-get-fees table td::after {
    content: "\f20b";
    font-family: "Font Awesome 6 Pro";
    margin: 0 5px;
    font-size: 11px;
}

.btn-close-modal-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    z-index: 9;
}

.custom-card .card {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-floating input[type="number"] {
    padding-right: 2px;
}

.form-check-input:checked {
    background-color: var(--border-color);
    border-color: var(--border-color);
}

.form-check-input:focus {
    box-shadow: var(--control-box-shadow)
}


.card-header,
.card-footer {
    color: var(--color-body);
    background-color: var(--container-background);
}

.modal-content {
    background-color: var(--modal-content-background-color);
}

.card,
.modal-body {
    background-color: var(--card-background-color);
}

.modal-footer {
    border-top: var(--border-width) solid var(--control-border-color);
}

.modal-header {
    border-bottom: var(--border-width) solid var(--control-border-color);
}


nav.navbar-dark {
    background-color: var(--header-background-color) !important;
}


.form-check-input {
    background-color: var(--form-check-input-background-color);
}


.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--color-site);
}

.ltr .form-check .form-check-input {
    float: left;
    margin-right: .3em;
}

.form-check-input.is-invalid:checked,
.was-validated .form-check-input:invalid:checked {
    border-color: #dc3545;
}

.bi {
    width: 1em;
    height: 1em;
    vertical-align: -.125em;
    fill: currentcolor;
}





.home-container {
    margin: 0 auto;
    max-width: 900px;
    padding: 50px 20px;
}

.container-elemnts {
    margin-top: 50px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 68px;
}

.container-elemnts .item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    color: var(--light-color-site);
    text-decoration: none;
    transition: 0.3s all;
    position: relative;
    width: 150px;
}

.container-elemnts .item.signout span,
.container-elemnts .item.signout i {
    color: #b22c2c;
    transition: 0.3s all;
}

.container-elemnts .item:hover,
.container-elemnts .item:hover span,
.container-elemnts .item.signout:hover span,
.container-elemnts .item.signout:hover i {
    color: var(--light-color-site-hover);
}

.container-elemnts .item span {
    font-size: 19px;
    color: var(--color-link-text-home);
    font-weight: bold;
}

.container-elemnts .item i {
    font-size: 70px;
}




.container-elemnts.files .item {
    gap: 10px;
    width: 100px;
}

.container-elemnts.files {
    margin-top: 20px;
    gap: 10px 28px;
}

.container-elemnts.files .item span {
    font-size: 14px;
}

.container-elemnts.files .item i {
    font-size: 60px;
}


.loader {
    box-sizing: border-box;
    display: inline-block;
    width: 50px;
    height: 80px;
    border-top: 5px solid #000000a9;
    border-bottom: 5px solid #000000a9;
    position: relative;
    background: linear-gradient(var(--color-site) 30px, transparent 0) no-repeat;
    background-size: 2px 40px;
    background-position: 50% 0px;
    animation: spinx 5s linear infinite;
}

.loader:before,
.loader:after {
    content: "";
    width: 40px;
    left: 50%;
    height: 35px;
    position: absolute;
    top: 0;
    transform: translatex(-50%);
    background: rgba(5, 5, 5, 0.171);
    border-radius: 0 0 20px 20px;
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: 0 0px;
    animation: lqt 5s linear infinite;
}

.loader:after {
    top: auto;
    bottom: 0;
    border-radius: 20px 20px 0 0;
    animation: lqb 5s linear infinite;
}

@keyframes lqt {

    0%,
    100% {
        background-image: linear-gradient(var(--color-site) 40px, transparent 0);
        background-position: 0% 0px;
    }

    50% {
        background-image: linear-gradient(var(--color-site) 40px, transparent 0);
        background-position: 0% 40px;
    }

    50.1% {
        background-image: linear-gradient(var(--color-site) 40px, transparent 0);
        background-position: 0% -40px;
    }
}

@keyframes lqb {
    0% {
        background-image: linear-gradient(var(--color-site) 40px, transparent 0);
        background-position: 0 40px;
    }

    100% {
        background-image: linear-gradient(var(--color-site) 40px, transparent 0);
        background-position: 0 -40px;
    }
}

@keyframes spinx {

    0%,
    49% {
        transform: rotate(0deg);
        background-position: 50% 36px;
    }

    51%,
    98% {
        transform: rotate(180deg);
        background-position: 50% 4px;
    }

    100% {
        transform: rotate(360deg);
        background-position: 50% 36px;
    }
}




.course-table .alerts {
    height: calc(100vh - 200px);
}

.text-logo-navbar {
    background: linear-gradient(91deg, #ffffff, #4d8549, #4d8549, #32702e, #32702e, #32702e, #32702e, #32702e, #32702e, #21b101, #1b8f01, #30e608, #389b3d, #28a52e, #159d1c, #389b3d, #28a52e, #159d1c, #159d1c, #159d1c, #30e608, #159d1c, #159d1c, #159d1c, #159d1c, #159d1c, #32702e, #32702e, #32702e, #32702e, #32702e, #32702e, #32702e, #4d8549, #4d8549, #ffffff);
    background-size: 700% 700%;
    -webkit-background-clip: text;
    font-family: 'Lalezar';
    background-clip: text;
    color: transparent;
    font-size: 27px;
    animation: rainbow-en 11s infinite;
    font-weight: 400;
    font-style: normal;

}


@keyframes rainbow-en {
    0% {
        background-position: 100% 50%;
    }

    50% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

.nav .nav-link {
    color: #c7c7c7;
    transition: all .2s ease-out;
}

.nav .nav-link:hover,
.nav .nav-link.active {
    color: var(--color-site-in-dark);
}



.table thead {
    position: sticky;
    top: 65px;
}


.input-search-course {
    min-width: 480px;
    padding: 0 40px;
}

.result-search-course .col-3,
.result-favorite-course .col-3 {
    min-width: 200px;
}


.course-table table thead tr:first-child th:first-child {
    min-width: 200px;
}
.course-table table.schedule-courses thead tr:first-child th:first-child {
    min-width: 20px;
}

.box-book {
    position: relative;
}

.btn-favorite,
.btn-favorite-delete {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ff9200;
    border: none;
    position: absolute;
    top: 7px;
    right: 15px;
    width: 40px;
    height: 40px;
}

.btn-favorite:hover {
    color: #f77700;
}

.favorite-example {
    color: #ff9200 !important;
}

.btn-favorite-delete.btn-favorite {
    color: #c20000;
    font-size: 20px;
}

.btn-favorite-delete.btn-favorite:hover {
    color: #800000;
}



.course-table table.files-table thead tr:first-child th:first-child {
    min-width: auto;
}



[data-theme='dark'] .btn-close {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ADB5BD'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center / 1em auto no-repeat;
}









@media (max-width: 716px) {
    .table-file-name {
        width: 15rem;
    }
}

@media (max-width: 560px) {
    .table-file-name {
        width: 10rem;
    }

    .academic-calendar-table {
        padding: 0;
        font-size: 12px;
    }

    .academic-calendar-table thead:first-child th:first-child {
        min-width: 100px;
    }

    .academic-calendar-table thead:first-child th:first-child {
        max-width: 20px;
        min-width: 20px;
    }

    .input-search-course {
        min-width: 280px;
        padding: 0 10px;
    }

    .result-search-course .col-3,
    .result-favorite-course .col-3 {
        min-width: 100%;
    }

    .course-table table thead tr:first-child th:first-child {
        min-width: 150px;
    }
    .course-table  table.schedule-courses thead tr:first-child th:first-child
    {
        min-width: 20px;
    }
    .container-page .card {
        width: 100%;
    }

    .course-table .card-body{
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 400px) {
    .table-file-name {
        width: 8rem;
    }

    .container-elemnts .item {
        width: 35%;
    }

    .course-table .card-body,.course-table{
        padding-left: 0;
        padding-right: 0;
    }
}






.border {
    border: 1px solid var(--control-border-color) !important;
}

#toastSite {
    position: fixed;
    bottom: 15px;
    left: 0;
    right: 0;
    z-index: 9;
}



::selection {
    background-color: var(--border-color);
    color: white;
}





.accordion-button:not(.collapsed) {
    background-color: #c1ffc1;
}

[data-theme='dark'] .accordion-button:not(.collapsed) {
    background-color: #000000;
}

.accordion {

    --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23119600'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    --bs-accordion-btn-focus-border-color: #8afe86c7;
    --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem #70f57081;
    --bs-accordion-active-color: #086400;
}


[data-theme='dark'] .accordion {
    --bs-accordion-color: var(--color-body);
    --bs-accordion-bg: #212529;
    --bs-accordion-border-color: var(--control-border-color);
    --bs-accordion-btn-color: var(--color-body);
    --bs-accordion-btn-bg: #141613;
    --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23b0b0b0'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23119600'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    --bs-accordion-btn-focus-border-color: #9efe86;
    --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(13, 253, 93, 0.25);
    --bs-accordion-active-color: #119600;
    --bs-accordion-active-bg: #131413;
}



:root {
    --bacground-body: #f4faff;
    --color-site: #157347;
    --control-box-shadow: 0 0 0 .25rem rgba(21, 115, 71, 0.25);
    --border-color: #079d27;
    --color-site-in-dark: #119600;
    --background-nav: RGBA(33, 37, 41, 9);
    --background-nav-active: #157347;
}


:root[data-theme='light'] {
    --bacground-body: #f4faff;
    --color-body: #212529;
    --h2-color: #212529;
    --container-background: #e4e6eb;
    --container-color: #252525;
    --background-content: #ffffff;
    --icons-color: #2f2f2f;
    --control-background-color: #ffffff;
    --card-background-color: #ffffff;
    --input-border-color: #cedad2;
    --control-border-color: #dee2e6;
    --border-width: 1px;
    --modal-content-background-color: #fff;
    --header-background-color: RGBA(33, 37, 41, 9);
    --form-check-input-background-color: #fff;
    --color-body-in-dark: #ececec;
    --background-nav-offcanvas: #ffffff;
    --color-nav-offcanvas: #1b1b1b;
    --offcanvas-header-background: linear-gradient(360deg, rgb(0 0 0 / 0%), #00ab09e7, #287600, #136400);
    --light-color-site: #2cb275;
    --light-color-site-hover: #27a348;
    --color-link-text-home: #5a5a5a;
    --list-group-color: #212529;
    --list-group-border-color: rgba(0, 0, 0, 0.125);

    .table-dark {
        --bs-table-color: #fff;
        --bs-table-bg: #212529;
        --bs-table-border-color: #373b3e;
        --bs-table-striped-bg: #2c3034;
        --bs-table-striped-color: #fff;
        --bs-table-active-bg: #373b3e;
        --bs-table-active-color: #fff;
        --bs-table-hover-bg: #323539;
        --bs-table-hover-color: #fff;
        color: var(--bs-table-color);
        border-color: var(--bs-table-border-color);
    }
}

:root[data-theme='dark'] {
    --bacground-body: #212121;
    --color-body: #b0b0b0;
    --h2-color: #b0b0b0;
    --container-background: #171717;
    --container-color: #a56464;
    --background-content: #171717;
    --icons-color: #a0a0a0;
    --control-background-color: #171717;
    --card-background-color: #292929;
    --input-border-color: #3d3d3d;
    --control-border-color: #404040;
    --border-width: 1px;
    --modal-content-background-color: #1d1d1d;
    --header-background-color: #121212;
    --form-check-input-background-color: #cecece;
    --color-body-in-dark: #dbdbdb;
    --background-nav-offcanvas: #0a0a0a;
    --color-nav-offcanvas: #8d8d8d;
    --offcanvas-header-background: linear-gradient(360deg, rgb(0 0 0 / 0%), #256a0381, #266a03, #1e9902);
    --light-color-site: #32702e;
    --light-color-site-hover: #33974e;
    --color-link-text-home: #838383;
    --list-group-color: #c1c1c1;
    --list-group-border-color: rgb(224 224 224 / 13%);

    .table-dark {
        --bs-table-color: #c7c7c7;
        --bs-table-bg: #0d0f11;
        --bs-table-border-color: #555555;
        --bs-table-striped-bg: #202020;
        --bs-table-striped-color: #fff;
        --bs-table-active-bg: #696969;
        --bs-table-active-color: #fff;
        --bs-table-hover-bg: #323539;
        --bs-table-hover-color: #fff;
        color: #a9a9a9;
        border-color: #424242;
    }

    .table {
        --bs-table-color: #9a9a9a;
        --bs-table-bg: transparent;
        --bs-table-border-color: #202020;
        --bs-table-accent-bg: transparent;
        --bs-table-striped-color: #9a9a9a;
        --bs-table-striped-bg: rgb(0 0 0 / 12%);
        --bs-table-active-color: var(--bs-body-color);
        --bs-table-active-bg: rgba(0, 0, 0, 0.1);
        --bs-table-hover-color: var(--bs-body-color);
        --bs-table-hover-bg: rgba(0, 0, 0, 0.075);
        width: 100%;
        margin-bottom: 1rem;
        color: var(--bs-table-color);
        vertical-align: top;
        border-color: var(--bs-table-border-color);
    }

    .table-hover>tbody>tr:hover>* {
        --bs-table-accent-bg: rgb(0 0 0 / 18%);
        color: #ffffff;
    }

    .table .bg-secondary {
        background-color: rgb(25 28 32) !important;
    }

    .table .bg-secondary.text-light {
        color: #9a9a9a !important;
    }
}

.text-in-course-search-page {
    background-color: #00BFFF;
    border-radius: 5px;

}







.join-facebook-group-div-box {
    display: flex;
    /* يتيح لك استخدام خصائص الفليكس */
    justify-content: center;
    /* توسيط العناصر أفقيًا */
    align-items: center;
    /* توسيط العناصر عموديًا */
    height: 10%;
    /* ملء كامل نافذة العرض (اختياري) */
}

.join-facebook-group-div {
    text-align: center;
    /* توسيط النص داخل الـ div */
    padding: 20px;
}

.join-facebook-group-button {
    display: inline-flex;
    /* يتيح لك استخدام خصائص الفليكس */
    justify-content: center;
    /* توسيط النص داخل الزر أفقيًا */
    align-items: center;
    /* توسيط النص داخل الزر عموديًا */
    padding: 12px 25px;
    background-color: #2cb275;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* التأثير عند التمرير */
.join-facebook-group-button:hover {
    background-color: #3e8e41;
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* التأثير الذي يخرج من اليسار إلى اليمين */
.join-facebook-group-button:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(270deg, rgba(0, 128, 0, 0) 0%, rgba(0, 128, 0, 0.4) 40%, rgba(0, 128, 0, 0.4) 60%, rgba(0, 128, 0, 0) 100%);
    animation: lightning-strike 6s linear infinite;
    animation-delay: 0s;
    /* تأخير البداية */
}

/* التأثير الذي يخرج من اليسار إلى اليمين */
.join-facebook-group-button:after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(270deg, rgba(0, 128, 0, 0) 0%, rgba(0, 128, 0, 0.4) 40%, rgba(0, 128, 0, 0.4) 60%, rgba(0, 128, 0, 0) 100%);
    animation: lightning-strike 6s linear infinite;
    animation-delay: 2s;
    /* تأخير الثانية */
}

/* الرسوم المتحركة: الصاعقة */
@keyframes lightning-strike {
    0% {
        left: -100%;
    }

    50% {
        left: 0%;
    }

    100% {
        left: 100%;
    }
}









.fixed-join-facebook-group-button {
    display: inline-flex;
    /* يتيح لك استخدام خصائص الفليكس */
    justify-content: center;
    /* توسيط النص داخل الزر أفقيًا */
    align-items: center;
    /* توسيط النص داخل الزر عموديًا */
    padding: 12px 25px;
    background-color: #32702e;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}







.fixed-join-facebook-group-button {
    display: inline-flex;
    /* يتيح لك استخدام خصائص الفليكس */
    justify-content: center;
    /* توسيط النص داخل الزر أفقيًا */
    align-items: center;
    /* توسيط النص داخل الزر عموديًا */
    padding: 12px 25px;
    background-color: #2cb275;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    position: fixed;
    /* تثبيت الزر */
    bottom: 20px;
    /* المسافة من الأسفل */
    right: 20px;
    /* المسافة من اليمين */
    z-index: 2;
    /* التأكد من ظهوره فوق باقي العناصر */
    overflow: hidden;
}

/* التأثير عند التمرير */
.fixed-join-facebook-group-button:hover {
    background-color: #3e8e41;
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* التأثير الذي يخرج من اليسار إلى اليمين */
.fixed-join-facebook-group-button:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(270deg, rgba(0, 128, 0, 0) 0%, rgba(0, 128, 0, 0.4) 40%, rgba(0, 128, 0, 0.4) 60%, rgba(0, 128, 0, 0) 100%);
    animation: lightning-strike 6s linear infinite;
    animation-delay: 0s;
    /* تأخير البداية */
}

/* التأثير الذي يخرج من اليسار إلى اليمين */
.fixed-join-facebook-group-button:after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(270deg, rgba(0, 128, 0, 0) 0%, rgba(0, 128, 0, 0.4) 40%, rgba(0, 128, 0, 0.4) 60%, rgba(0, 128, 0, 0) 100%);
    animation: lightning-strike 6s linear infinite;
    animation-delay: 2s;
    /* تأخير الثانية */
}






/*ads*/
.google-ads {
    margin: 20px auto;
    text-align: center;
    width: 100%;
}

.ads-1 {
    max-height: 120px;
}

/* .ads-2 intentionally left blank */

ins.adsbygoogle[data-ad-status="unfilled"] {
    display: none !important;
}


/*end ads*/



/* ramadan */
.lantern-container {
    position: fixed;
    top: 64px;
    right: 10px;
    width: 80px;
    height: 80px;
    z-index: 8;
}


.lantern {
    width: 80px;
    height: 80px; 
    background-image: url('/assets/img/site/ramadan-lanterns500.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform-origin: 50% 0%;
    animation: swing 2s infinite ease-in-out alternate;
}

@keyframes swing {
    0% {
        transform: rotate(-10deg);
    }
    100% {
        transform: rotate(10deg);
    }
}

/* ramadan */



.course-table .schedule-courses table thead tr:first-child th:first-child
{
max-width: 20px !important;
width: 20px;
}

/* Voting pill and engagement stats (compact, pill contains heart + label) */
.engagement-stats .stat-item {
    gap: 6px;
    display: inline-flex;
    align-items: center;
}

.vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background-color: rgba(21, 115, 71, 0.08); /* subtle green background */
    border: 1px solid rgba(21, 115, 71, 0.12);
    color: var(--color-body);
    font-weight: 500;
    font-size: .92rem;
}

.vote-btn i {
    transition: color .12s ease, transform .12s ease;
    color: inherit; /* use default icon color; upvoted state overrides this */
}

/* When upvoted: only color the heart (not the pill/frame) */
.vote-btn.upvoted i.fas,
.vote-btn.upvoted i.fa-heart {
    color: #ef4444 !important; /* red heart */
}

.vote-label {
    margin: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font-size: .88rem;
}

.vote-count-small {
    font-weight: 600;
    margin-inline-start: 6px;
}

@media (max-width: 576px) {
    .vote-btn {
        padding: 6px 8px;
        gap: 4px;
    }
}

/* When voting controls are inside the file-download-preview area, match its background */
.file-download-preview {
    padding: 12px;
    background: var(--background-content, var(--background-content));
    border-radius: 8px;
}

.file-download-preview .voting-section {
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid rgba(0,0,0,0.06);
    background: inherit; /* inherit parent's background */
}

/* Actions bar similar to provided design: rounded, subtle shadow, icon+label items */
.actions-bar {
    background: var(--file-actions-background, #ffffff);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.actions-bar .action-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    color: inherit;
}

.actions-bar .action-item i {
    font-size: 1.05rem;
}

.actions-bar .action-item:hover {
    text-decoration: none;
}

@media (max-width: 576px) {
    .actions-bar .action-item { padding: 6px 8px; gap: 6px; }
}

/* Mobile fixes: content wrapper full width and actions responsive */
@media (max-width: 768px) {
    /* Make the main content use the available width and remove center offset */
    .content-wrapper {
        padding: 12px 14px !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box;
    }

    /* Force center with flex container and constrain inner width for small screens */
    .main-container {
        display: flex !important;
        justify-content: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .content-wrapper {
        width: 100% !important;
        max-width: 720px !important; /* keep reasonable readable width */
        margin: 0 auto !important;
    }

    /* Ensure file-download preview fills width and internal items wrap */
    .file-download-preview {
        padding: 10px !important;
        border-radius: 6px;
    }

    .file-download-preview .voting-section {
        padding-top: 6px;
        border-top: 1px solid rgba(0,0,0,0.06);
        margin-top: 8px;
    }

    /* Actions bar: stack items and make share icons move to new line */
    .actions-bar {
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
    }

    .actions-left, .actions-right {
        width: 100%;
        display: flex;
        justify-content: space-between;
        order: 0;
        padding: 4px 0;
    }

    /* Move action labels to the left of icons for RTL clarity on small screens */
    .actions-left .action-item .action-label,
    .actions-right .action-item .action-label {
        display: none; /* hide labels on very small widths to save space */
    }

    .actions-right {
        justify-content: flex-start;
    }

    /* Compact vote pill */
    .vote-btn { padding: 6px 8px; }
    .vote-count-small { margin-inline-start: 4px; font-size: .95rem; }
}

/* Desktop: center the content wrapper and constrain width */
@media (min-width: 769px) {
    .content-wrapper {
        max-width: 1200px;
        margin: 0 auto !important;
        padding-left: 28px;
        padding-right: 28px;
        box-sizing: border-box;
    }
}

/* Ensure the page-level bootstrap container used on file pages is always centered
   and not pushed to the right by RTL layout or nearby floats. */
.container.py-3 {
    float: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 1200px !important;
    box-sizing: border-box !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
}

@media (max-width: 768px) {
    .container.py-3 {
        padding-left: 8px !important;
        padding-right: 8px !important;
        max-width: 100% !important;
    }
}