﻿*, *::before, *::after {
    box-sizing: border-box;
}

html.dark-theme-preload body {
    background-color: #0d1117 !important;
    color: #e0e0e0 !important;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: 'Cairo', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    direction: rtl;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed;
}



body {
    display: flex;
    flex-direction: column;
}

body { top: 0 !important; }

.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate {
    display: none !important;
    height: 0 !important;
}

body.translated-ltr,
body.translated-rtl {
    top: 0 !important;
    position: static !important;
}

html.translated-ltr .navbar,
html.translated-rtl .navbar {
    margin-top: 39px !important;
}

#google_translate_element {
    position: fixed;
    left: -9999px;
    bottom: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    visibility: hidden;
}

.dropdown-menu {
    min-width: 160px;
}

.dropdown-item {
    cursor: pointer;
}


main {
    flex: 1;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

    .fade-in-up.visible {
        opacity: 1;
        transform: translateY(0);
    }

.navbar {
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: background 0.4s ease, color 0.3s ease;
}

.navbar-brand,
.nav-link {
    color: #ffffff !important;
    font-weight: 600;
    transition: color 0.3s ease, transform 0.3s ease;
}

    .nav-link:hover,
    .navbar-brand:hover {
        color: #ffd700 !important;
        transform: scale(1.05);
    }

    .nav-link.active {
        color: #ffeb3b !important;
    }

.theme-toggle-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: #6a11cb;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    overflow: hidden;
    transition: background 0.3s;
}

    .theme-toggle-btn .icon-wrapper {
        position: relative;
        width: 24px;
        height: 24px;
    }

    .theme-toggle-btn i {
        position: absolute;
        font-size: 24px;
        color: #fff;
        transition: transform 0.5s, opacity 0.5s;
    }

body.light-theme .theme-toggle-btn i.bi-sun-fill {
    transform: translateY(-30px);
    opacity: 0;
}

body.light-theme .theme-toggle-btn i.bi-moon-fill {
    transform: translateY(0);
    opacity: 1;
}

body.dark-theme .theme-toggle-btn i.bi-sun-fill {
    transform: translateY(0);
    opacity: 1;
}

body.dark-theme .theme-toggle-btn i.bi-moon-fill {
    transform: translateY(30px);
    opacity: 0;
}

#themeToggle {
    cursor: pointer;
}

.hero-section {
    animation: fadeInHero 1.2s ease-in-out both;
}

@keyframes fadeInHero {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s, color 0.3s;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    }

.card-title {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.card-text {
    text-align: justify;
    line-height: 1.7;
    font-size: 15px;
    max-height: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #555;
}

.bg-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    background: #f5f5f5;
}

.slider33 {
    background: white;
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.125);
    height: 100px;
    overflow: hidden;
    position: relative;
    width: 960px;
}

    .slider33::before,
    .slider33::after {
        content: "";
        position: absolute;
        width: 200px;
        height: 100px;
        z-index: 2;
        background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0));
    }

    .slider33::after {
        right: 0;
        top: 0;
        transform: rotateZ(180deg);
    }

    .slider33::before {
        left: 0;
        top: 0;
    }

.slide-track {
    display: flex;
    width: calc(250px * 14);
    animation: scroll 15s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-250px * 7));
    }
}

.slide33 {
    width: 250px;
    height: 100px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .slide33 img {
        width: 100px;
        height: 100px;
        object-fit: contain;
    }

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    right: 100%;
    margin-top: -1px;
    transition: background-color 0.3s, color 0.3s;
}

.category-scroll {
    scrollbar-width: thin;
    scrollbar-color: #845ec2 #f5f5f5;
}

    .category-scroll::-webkit-scrollbar {
        height: 8px;
    }

    .category-scroll::-webkit-scrollbar-thumb {
        background: linear-gradient(145deg, #4facfe, #845ec2);
        border-radius: 10px;
    }

        .category-scroll::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(145deg, #00f2fe, #4facfe);
        }

    .category-scroll::-webkit-scrollbar-track {
        background: #f5f5f5;
        border-radius: 10px;
    }

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.category-card {
    width: 230px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
    background: #fff;
}

    .category-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 30px rgba(0,0,0,0.25);
    }

    .category-card img {
        width: 100%;
        height: 150px;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

        .category-card img:hover {
            transform: scale(1.08);
        }

.card-body {
    text-align: center;
}

    .card-body h6 {
        font-weight: 700;
        margin-bottom: 0.5rem;
    }

.swiper-button-next, .swiper-button-prev {
    color: #333;
}

.swiper-pagination-bullet-active {
    background: #007bff;
}

footer {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 50%, #845ec2 100%);
    color: #ffffff;
    text-align: center;
    padding: 15px 0;
    font-size: 14px;
    transition: background 0.3s, color 0.3s;
}

body.dark-theme {
    background-color: #121212;
    color: #e0e0e0;
}

    body.dark-theme .navbar {
        background: linear-gradient(90deg, #1c1c1c 0%, #333 50%, #555 100%);
    }

    body.dark-theme .navbar-brand,
    body.dark-theme .nav-link,
    body.dark-theme #themeToggle {
        color: #ffffff !important;
    }

        body.dark-theme .nav-link.active {
            color: #ffd700 !important;
        }

    body.dark-theme .card {
        background-color: #1e1e1e;
        border-color: #333;
        color: #e0e0e0;
    }

    body.dark-theme .card-text {
        color: #ccc;
    }

    body.dark-theme .dropdown-menu {
        background-color: #ffff;
        color: #e0e0e0;
    }

    body.dark-theme footer {
        background: linear-gradient(90deg, #1c1c1c 0%, #333 50%, #555 100%);
        color: #fff;
    }

    body.dark-theme .btn-outline-light {
        color: #fff;
        border-color: #fff;
    }

        body.dark-theme .btn-outline-light:hover {
            background-color: rgba(255,255,255,0.2);
        }

    body.dark-theme,
    body.dark-theme section,
    body.dark-theme main,
    body.dark-theme header,
    body.dark-theme .container,
    body.dark-theme .swiper,
    body.dark-theme .swiper-slide,
    body.dark-theme .card-body,
    body.dark-theme .category-card,
    body.dark-theme .mySwiper,
    body.dark-theme .bg-logo,
    body.dark-theme table td,
    body.dark-theme .card-title {
        background-color: #121212;
        color: #FFF;
    }

.logo-circle {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 8px rgba(0,0,0,0.2);
    background-color: aliceblue;
}

.message-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInOverlay 0.5s ease;
}

.message-box {
    background: #fff;
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: 0 0 25px rgba(0,0,0,0.3);
    max-width: 400px;
    position: relative;
    text-align: center;
    animation: popUp 0.4s ease;
}

.message-icon {
    width: 100px;
    height: 100px;
}

.custom-close {
    position: absolute;
    top: 10px;
    left: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.3s;
}

    .custom-close:hover {
        opacity: 1;
    }

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes popUp {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.fade-out {
    animation: fadeOut 0.6s ease forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

.dashboard-card {
    transition: all 0.3s ease;
    background: #ffffff;
}

.dashboard-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0.8rem 1.5rem rgba(0, 0, 0, 0.15);
    background: #f8f9fa;
}

.btn-success {
    border-radius: 30px;
    padding: 8px 16px;
    font-weight: 500;
}

@media (max-width: 576px) {
    h1 .display-6 {
        font-size: 1.8rem;
    }
}

.form-step {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.progress-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto 40px;
}

.progress {
    position: absolute;
    top: 22px;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(45deg, #6a11cb, #2575fc);
    z-index: 0;
    transition: width 0.4s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.circle {
    background-color: #e0e0e0;
    color: #777;
    border-radius: 50%;
    height: 45px;
    width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease;
}

    .circle.active {
        background: linear-gradient(45deg, #6a11cb, #2575fc);
        color: white;
        transform: scale(1.1);
    }

.form-step {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

    .form-step.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-primary {
    background: linear-gradient(45deg, #6a11cb, #2575fc);
    border: none;
}

.btn-success {
    background: linear-gradient(45deg, #00b09b, #96c93d);
    border: none;
}

.main-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.main-header h2 {
    color: white;
    font-weight: bold;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.main-header p {
    color: rgba(255,255,255,0.9);
    margin: 0.5rem 0 0 0;
    font-size: 1.1rem;
}

.progress-container {
    position: relative;
    margin: 3rem auto;
    max-width: 800px;
}

.progress-wrapper {
    position: relative;
    height: 6px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
}

    .progress-bar-fill::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        animation: shimmer 2s infinite;
    }

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    position: relative;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e0e0e0;
    border: 4px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: #999;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

    .step-circle.active {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-color: #667eea;
        color: white;
        transform: scale(1.1);
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    }

    .step-circle.completed {
        background: #4CAF50;
        border-color: #4CAF50;
        color: white;
    }

        .step-circle.completed::before {
            content: '✓';
            font-size: 1.5rem;
        }

.step-label {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    text-align: center;
    transition: color 0.3s ease;
}

.step-item.active .step-label {
    color: #667eea;
}

.step-item.completed .step-label {
    color: #4CAF50;
}

.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

    .form-step.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px 10px 0 0;
    margin: -1rem -1rem 2rem -1rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

    .step-header h4 {
        margin: 0;
        font-weight: bold;
    }

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    }

.btn-success {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
}

    .btn-success:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    }

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-label {
    color: #444;
    font-weight: 600;
}

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}
.dropout-field {
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .main-header h2 {
        font-size: 1.5rem;
    }
}

.posts-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 60px 0;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 0.8s ease;
}

    .page-header h1 {
        color: #fff;
        font-size: 3rem;
        font-weight: 700;
        text-shadow: 2px 2px 10px rgba(0,0,0,0.2);
        margin-bottom: 10px;
    }

    .page-header p {
        color: rgba(255,255,255,0.9);
        font-size: 1.2rem;
    }

.search-card {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

    .search-card .form-control,
    .search-card .form-select {
        border-radius: 10px;
        border: 2px solid #e0e0e0;
        padding: 12px 20px;
        transition: all 0.3s ease;
    }

        .search-card .form-control:focus,
        .search-card .form-select:focus {
            border-color: #667eea;
            box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
        }

    .search-card .btn-primary {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border: none;
        border-radius: 10px;
        padding: 12px 30px;
        font-weight: 600;
        transition: all 0.3s ease;
    }

        .search-card .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
        }

.post-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.6s ease both;
    position: relative;
}

    .post-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 5px;
        background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .post-card:hover::before {
        transform: scaleX(1);
    }

    .post-card:hover {
        transform: translateY(-15px);
        box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    }

.card-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

    .card-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.post-card:hover .card-image-wrapper img {
    transform: scale(1.1) rotate(2deg);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-card:hover .image-overlay {
    opacity: 1;
}

.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 4rem;
    color: rgba(255,255,255,0.3);
}

.card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

    .post-title a {
        color: inherit;
        text-decoration: none;
    }

.post-card:hover .post-title {
    color: #667eea;
}

.post-excerpt {
    color: #718096;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 2px solid #f7fafc;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #a0aec0;
    font-size: 0.85rem;
}

    .meta-item i {
        color: #667eea;
    }

.category-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.no-data {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 60px 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    animation: fadeInUp 0.8s ease;
}

    .no-data i {
        font-size: 5rem;
        color: #cbd5e0;
        margin-bottom: 20px;
    }

    .no-data h3 {
        color: #4a5568;
        margin-bottom: 10px;
    }

    .no-data p {
        color: #a0aec0;
    }

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.pagination {
    background: rgba(255,255,255,0.95);
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.page-item .page-link {
    border: none;
    color: #667eea;
    font-weight: 600;
    padding: 10px 18px;
    margin: 0 5px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.page-item .page-link:hover:not(.active) {
    background: #f7fafc;
    color: #667eea;
    transform: translateY(-2px);
}

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-card:nth-child(1) {
    animation-delay: 0.1s;
}

.post-card:nth-child(2) {
    animation-delay: 0.2s;
}

.post-card:nth-child(3) {
    animation-delay: 0.3s;
}

.post-card:nth-child(4) {
    animation-delay: 0.4s;
}

.post-card:nth-child(5) {
    animation-delay: 0.5s;
}

.post-card:nth-child(6) {
    animation-delay: 0.6s;
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .search-card {
        padding: 20px;
    }

    .post-title {
        font-size: 1.2rem;
    }
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

    .scroll-to-top.show {
        opacity: 1;
        visibility: visible;
    }

    .scroll-to-top:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
    }

/* =============================================
   SECTION HEADER
   ============================================= */
.section-header {
    text-align: center;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-line {
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    border-radius: 10px;
    margin: 0 auto;
}

/* =============================================
   HERO SLIDER
   ============================================= */
.hero-slider-wrap {
    position: relative;
    width: 100%;
}

.hero-slide {
    height: 520px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(106,17,203,0.75) 0%, rgba(37,117,252,0.65) 100%);
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    max-width: 750px;
}

.hero-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    margin-bottom: 16px;
}

.hero-desc {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.92);
    margin-bottom: 28px;
    line-height: 1.8;
}

.hero-btn {
    display: inline-block;
    padding: 13px 36px;
    background: #fff;
    color: #6a11cb;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.hero-btn:hover {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(106,17,203,0.4);
}

@media (max-width: 768px) {
    .hero-slide        { height: 350px; }
    .hero-title        { font-size: 1.7rem; }
    .hero-desc         { font-size: 0.95rem; }
}

/* =============================================
   INTRO CARDS (Home Page)
   ============================================= */
.intro-section { background: #f8f9ff; }

.intro-card {
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 30px rgba(106,17,203,0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    height: 100%;
}

.intro-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(106,17,203,0.18);
}

.intro-card-img-wrap {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.intro-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.intro-card:hover .intro-card-img-wrap img {
    transform: scale(1.08);
}

.intro-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(106,17,203,0.6) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.intro-card:hover .intro-card-overlay {
    opacity: 1;
}

.intro-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.intro-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.intro-card-text {
    font-size: 0.88rem;
    color: #718096;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.intro-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    width: fit-content;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(106,17,203,0.25);
}

.intro-card-btn:hover {
    transform: translateX(-4px);
    box-shadow: 0 8px 25px rgba(106,17,203,0.4);
    color: #fff;
}

/* Swiper custom colors for intro */
.introSwiper .swiper-button-next,
.introSwiper .swiper-button-prev {
    color: #6a11cb;
    background: rgba(255,255,255,0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.introSwiper .swiper-button-next::after,
.introSwiper .swiper-button-prev::after {
    font-size: 14px;
    font-weight: 900;
}

.introSwiper .swiper-pagination-bullet-active {
    background: #6a11cb;
}

/* =============================================
   CATEGORY CARDS
   ============================================= */
.category-section { background: #fff; }

.category-scroll-wrap {
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: #845ec2 #f0f0f0;
}

.category-scroll-wrap::-webkit-scrollbar       { height: 6px; }
.category-scroll-wrap::-webkit-scrollbar-thumb { background: linear-gradient(90deg,#6a11cb,#2575fc); border-radius: 10px; }
.category-scroll-wrap::-webkit-scrollbar-track { background: #f0f0f0; }

.cat-card {
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 24px rgba(106,17,203,0.09);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.cat-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 18px 45px rgba(106,17,203,0.2);
}

.cat-card-img-wrap {
    position: relative;
    overflow: hidden;
    height: 155px;
}

.cat-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cat-card:hover .cat-card-img-wrap img {
    transform: scale(1.1);
}

.cat-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(106,17,203,0.7), rgba(37,117,252,0.6));
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.35s ease;
}

.cat-card:hover .cat-card-overlay {
    opacity: 1;
}

.cat-card-icon {
    font-size: 2.5rem;
    color: #fff;
    transform: scale(0.5);
    transition: transform 0.35s ease;
}

.cat-card:hover .cat-card-icon {
    transform: scale(1);
}

.cat-card-body {
    padding: 14px 16px;
    text-align: center;
}

.cat-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    transition: color 0.3s;
}

.cat-card:hover .cat-card-title {
    color: #6a11cb;
}

/* =============================================
   POST CARDS (Slider)
   ============================================= */
.post-section { background: #f8f9ff; }

.post-card-img-wrap {
    position: relative;
    overflow: hidden;
    height: 190px;
}

.post-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.postSwiper .swiper-slide:hover .post-card-img-wrap img {
    transform: scale(1.08);
}

.post-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(106,17,203,0.85) 100%);
    display: flex;
    align-items: flex-end;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.postSwiper .swiper-slide:hover .post-card-overlay {
    opacity: 1;
}

.post-card-read {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

.post-card-body {
    padding: 16px;
    background: #fff;
}

.post-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.postSwiper .swiper-slide:hover .post-card-title {
    color: #6a11cb;
}

.post-card-text {
    font-size: 0.83rem;
    color: #718096;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.postSwiper .swiper-slide > a > div {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(106,17,203,0.09);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.postSwiper .swiper-slide:hover > a > div {
    transform: translateY(-10px);
    box-shadow: 0 18px 45px rgba(106,17,203,0.2);
}

.postSwiper .swiper-button-next,
.postSwiper .swiper-button-prev {
    color: #6a11cb;
    background: rgba(255,255,255,0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.postSwiper .swiper-button-next::after,
.postSwiper .swiper-button-prev::after {
    font-size: 14px;
    font-weight: 900;
}

.postSwiper .swiper-pagination-bullet-active {
    background: #6a11cb;
}

/* =============================================
   DARK MODE للعناصر الجديدة
   ============================================= */
body.dark-theme .intro-section,
body.dark-theme .post-section { background: #181818; }

body.dark-theme .intro-card,
body.dark-theme .cat-card,
body.dark-theme .post-card-body { background: #1e1e1e; }

body.dark-theme .intro-card-title,
body.dark-theme .cat-card-title,
body.dark-theme .post-card-title { color: #e0e0e0; }

body.dark-theme .intro-card-text,
body.dark-theme .post-card-text { color: #aaa; }

body.dark-theme .section-title {
    background: linear-gradient(135deg, #a78bfa, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-theme .hero-slide-overlay {
    background: linear-gradient(135deg, rgba(30,10,60,0.85) 0%, rgba(10,40,90,0.8) 100%);
}

body.dark-theme .category-section { background: #1a1a1a; }

/* =============================================
   POST LIST PAGE
   ============================================= */
.postlist-page { background: #f4f6ff; min-height: 100vh; }

/* Hero */
.postlist-hero {
    position: relative;
    height: 240px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}
.postlist-hero::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    top: -200px; left: -100px;
}
.postlist-hero::after {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
    bottom: -100px; right: -50px;
}
.postlist-hero-content { position: relative; z-index: 2; text-align: center; }
.postlist-hero-title   { font-size: 2rem; font-weight: 800; color: #fff; margin: 0 0 8px; }
.postlist-hero-sub     { color: rgba(255,255,255,0.85); font-size: 1rem; margin: 0; }

/* Container */
.postlist-container { padding: 0 15px 60px; margin-top: -50px; position: relative; z-index: 10; }

/* Search Card */
.postlist-search-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 8px 40px rgba(106,17,203,0.12);
    margin-bottom: 40px;
}
.postlist-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #6a11cb;
    display: block;
    margin-bottom: 8px;
}
.postlist-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8e0ff;
    border-radius: 12px;
    font-size: 0.93rem;
    outline: none;
    transition: border-color 0.25s;
    background: #f8f6ff;
    color: #2d3748;
    font-family: 'Cairo', sans-serif;
}
.postlist-input:focus { border-color: #6a11cb; background: #fff; }
.postlist-btn-filter {
    padding: 12px;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Cairo', sans-serif;
}
.postlist-btn-filter:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(106,17,203,0.35); }

/* Post Card */
.pl-card {
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 20px rgba(106,17,203,0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    height: 100%;
}
.pl-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(106,17,203,0.18);
}

.pl-card-img {
    position: relative;
    height: 210px;
    overflow: hidden;
}
.pl-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.pl-card:hover .pl-card-img img { transform: scale(1.07); }

.pl-card-no-img {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #e8e0ff, #c4b5fd);
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; color: #6a11cb;
}

.pl-card-img-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(106,17,203,0.88) 100%);
    display: flex; align-items: flex-end; padding: 16px;
    opacity: 0; transition: opacity 0.35s;
}
.pl-card:hover .pl-card-img-overlay { opacity: 1; }

.pl-read-btn {
    color: #fff; font-weight: 700;
    font-size: 0.9rem;
    display: flex; align-items: center; gap: 6px;
}

.pl-category-badge {
    position: absolute; top: 14px; right: 14px;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: #fff; font-size: 0.75rem; font-weight: 700;
    padding: 4px 12px; border-radius: 20px;
    white-space: nowrap; max-width: 160px;
    overflow: hidden; text-overflow: ellipsis;
}

.pl-card-body { padding: 18px; }
.pl-card-title {
    font-size: 1rem; font-weight: 700; color: #2d3748;
    margin-bottom: 8px;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
    transition: color 0.3s;
}
.pl-card:hover .pl-card-title { color: #6a11cb; }

.pl-card-text {
    font-size: 0.84rem; color: #718096;
    line-height: 1.65; margin-bottom: 14px;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}

.pl-card-meta {
    display: flex; align-items: center;
    justify-content: space-between;
    font-size: 0.8rem; color: #a0aec0;
    border-top: 1px solid #f0eeff; padding-top: 12px;
}
.pl-card-meta i { color: #6a11cb; }
.pl-card-arrow { color: #6a11cb; font-size: 1.3rem; transition: transform 0.25s; }
.pl-card:hover .pl-card-arrow { transform: translateX(-5px); }

/* Empty */
.postlist-empty {
    text-align: center; padding: 80px 20px;
    background: #fff; border-radius: 20px;
    box-shadow: 0 4px 20px rgba(106,17,203,0.06);
    margin-top: 20px;
}
.postlist-empty i  { font-size: 4rem; color: #c4b5fd; display: block; margin-bottom: 16px; }
.postlist-empty h4 { color: #4a5568; margin-bottom: 8px; }
.postlist-empty p  { color: #a0aec0; }

/* Pagination */
.postlist-pagination { margin-top: 50px; }
.pl-page-link {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 12px;
    background: #fff; color: #6a11cb; font-weight: 700;
    text-decoration: none; font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(106,17,203,0.1);
    transition: all 0.25s;
}
.pl-page-link:hover  { background: #6a11cb; color: #fff; transform: translateY(-2px); }
.pl-page-active       { background: linear-gradient(135deg,#6a11cb,#2575fc) !important; color: #fff !important; }

@media (max-width: 576px) {
    .postlist-hero       { height: 180px; }
    .postlist-hero-title { font-size: 1.4rem; }
    .postlist-search-card { padding: 18px; }
    .postlist-container  { margin-top: -30px; }
}

/* Dark mode */
body.dark-theme .postlist-page          { background: #0f0f1a; }
body.dark-theme .postlist-search-card   { background: #1a1a2e; box-shadow: 0 8px 40px rgba(0,0,0,0.3); }
body.dark-theme .postlist-input         { background: #16213e; border-color: #2a2a5a; color: #e0e0e0; }
body.dark-theme .postlist-label         { color: #a78bfa; }
body.dark-theme .pl-card                { background: #1a1a2e; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
body.dark-theme .pl-card-title          { color: #e0e0e0; }
body.dark-theme .pl-card-text           { color: #9ca3af; }
body.dark-theme .pl-card-meta           { border-top-color: #2a2a4a; color: #6b7280; }
body.dark-theme .postlist-empty         { background: #1a1a2e; }
body.dark-theme .pl-page-link           { background: #1a1a2e; color: #a78bfa; }

/* ============================================================
   منصة التعليم — Lessons Platform
   ============================================================ */

.lp-page { background: #f0f4ff; min-height: 100vh; }

/* Hero */
.lp-hero {
    position: relative;
    height: 250px;
    background: linear-gradient(135deg, #1a1a6e 0%, #6a11cb 50%, #2575fc 100%);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.lp-hero::before {
    content: ''; position: absolute;
    width: 600px; height: 600px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%; top: -250px; left: -150px;
}
.lp-hero::after {
    content: ''; position: absolute;
    width: 350px; height: 350px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%; bottom: -150px; right: -80px;
}
.lp-hero-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.2);
}
.lp-hero-content { position: relative; z-index: 2; text-align: center; }
.lp-hero-icon    { font-size: 2.8rem; color: rgba(255,255,255,0.9); margin-bottom: 8px; }
.lp-hero-title   { font-size: 2rem; font-weight: 800; color: #fff; margin: 0 0 6px; }
.lp-hero-sub     { color: rgba(255,255,255,0.8); font-size: 1rem; margin: 0; }

/* Container */
.lp-container { padding: 0 15px 70px; margin-top: -55px; position: relative; z-index: 10; }

/* Filter Card */
.lp-filter-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 10px 50px rgba(106,17,203,0.13);
    margin-bottom: 30px;
}
.lp-label {
    font-size: 0.82rem; font-weight: 700;
    color: #6a11cb; display: block; margin-bottom: 7px;
}
.lp-input {
    width: 100%; padding: 11px 16px;
    border: 2px solid #e4deff; border-radius: 12px;
    font-size: 0.9rem; outline: none;
    background: #f6f4ff; color: #2d3748;
    transition: border-color .25s, box-shadow .25s;
}
.lp-input:focus { border-color: #6a11cb; background: #fff; box-shadow: 0 0 0 3px rgba(106,17,203,0.08); }
.lp-btn-filter {
    padding: 11px 20px;
    background: linear-gradient(135deg,#6a11cb,#2575fc);
    border: none; border-radius: 12px;
    color: #fff; font-weight: 700; font-size: 0.9rem;
    cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.lp-btn-filter:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(106,17,203,0.35); }

/* Results bar */
.lp-results-bar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px; font-size: 0.9rem;
    color: #6a11cb; font-weight: 600;
}
.lp-clear-btn {
    font-size: 0.82rem; color: #e53e3e;
    text-decoration: none; font-weight: 600;
    transition: opacity .2s;
}
.lp-clear-btn:hover { opacity: 0.7; }

/* Video Card */
.lp-card {
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(106,17,203,0.09);
    overflow: hidden;
    transition: transform .3s, box-shadow .3s;
    height: 100%;
    display: flex; flex-direction: column;
}
.lp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 45px rgba(106,17,203,0.18);
}
.lp-card-thumb {
    position: relative; overflow: hidden;
    height: 170px; background: #e8e4ff;
    flex-shrink: 0;
}
.lp-card-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.lp-card:hover .lp-card-thumb img { transform: scale(1.05); }
.lp-card-no-thumb {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg,#6a11cb22,#2575fc22);
    font-size: 3rem; color: #6a11cb;
}
.lp-card-overlay {
    position: absolute; inset: 0;
    background: rgba(26,26,110,0.45);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .3s;
}
.lp-card:hover .lp-card-overlay { opacity: 1; }
.lp-play-btn {
    width: 60px; height: 60px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: #6a11cb;
    text-decoration: none;
    transform: scale(0.8); transition: transform .2s;
}
.lp-card:hover .lp-play-btn { transform: scale(1); }
.lp-stage-badge {
    position: absolute; top: 10px; right: 10px;
    background: linear-gradient(135deg,#6a11cb,#2575fc);
    color: #fff; font-size: 0.72rem; font-weight: 700;
    padding: 4px 10px; border-radius: 20px;
}
.lp-card-body {
    padding: 14px 16px 16px;
    display: flex; flex-direction: column; flex: 1;
}
.lp-type-badge {
    display: inline-block;
    background: #ede9ff; color: #6a11cb;
    font-size: 0.72rem; font-weight: 700;
    padding: 3px 10px; border-radius: 20px;
    margin-bottom: 8px;
}
.lp-card-title {
    font-size: 1rem; font-weight: 700;
    color: #1a1a6e; margin: 0 0 auto; line-height: 1.4;
    padding-bottom: 10px;
}
.lp-card-footer {
    display: flex; align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f0edff;
    padding-top: 10px; margin-top: 10px;
}
.lp-date { font-size: 0.75rem; color: #9ca3af; }
.lp-watch-btn {
    font-size: 0.78rem; font-weight: 700;
    background: linear-gradient(135deg,#6a11cb,#2575fc);
    color: #fff; padding: 5px 14px; border-radius: 20px;
    text-decoration: none; transition: opacity .2s;
}
.lp-watch-btn:hover { opacity: 0.85; color: #fff; }

/* Empty state */
.lp-empty {
    text-align: center; padding: 70px 20px;
    background: #fff; border-radius: 20px;
    box-shadow: 0 4px 20px rgba(106,17,203,0.07);
}
.lp-empty i    { font-size: 4rem; color: #c4b5fd; display: block; margin-bottom: 16px; }
.lp-empty h5   { color: #4a5568; }
.lp-empty p    { color: #a0aec0; }

/* Pagination */
.lp-pagination { margin-top: 50px; }
.lp-page-link {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 12px;
    border-radius: 10px; font-weight: 600; font-size: 0.9rem;
    border: 2px solid #e4deff; background: #fff;
    color: #6a11cb; text-decoration: none;
    transition: all .2s;
}
.lp-page-link:hover    { background: #ede9ff; border-color: #6a11cb; color: #6a11cb; }
.lp-page-active        { background: linear-gradient(135deg,#6a11cb,#2575fc) !important; color: #fff !important; border-color: transparent !important; }
.page-item.disabled .lp-page-link { opacity: 0.4; pointer-events: none; }

/* Dark mode */
body.dark-theme .lp-page           { background: #0f0f1a; }
body.dark-theme .lp-filter-card    { background: #1a1a2e; box-shadow: 0 8px 40px rgba(0,0,0,0.3); }
body.dark-theme .lp-input          { background: #16213e; border-color: #2a2a5a; color: #e0e0e0; }
body.dark-theme .lp-label          { color: #a78bfa; }
body.dark-theme .lp-results-bar    { color: #a78bfa; }
body.dark-theme .lp-card           { background: #1a1a2e; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
body.dark-theme .lp-card-title     { color: #e0e0e0; }
body.dark-theme .lp-card-footer    { border-top-color: #2a2a4a; }
body.dark-theme .lp-date           { color: #6b7280; }
body.dark-theme .lp-type-badge     { background: #2a1a5a; color: #a78bfa; }
body.dark-theme .lp-card-no-thumb  { background: linear-gradient(135deg,#2a1a5a,#1a2a5a); }
body.dark-theme .lp-empty          { background: #1a1a2e; }
body.dark-theme .lp-page-link      { background: #1a1a2e; color: #a78bfa; border-color: #2a2a5a; }

/* Video Modal */
.lp-modal-content {
    border: none; border-radius: 20px; overflow: hidden;
    background: #0f0f1a;
}
.lp-modal-header {
    background: linear-gradient(135deg,#1a1a6e,#6a11cb);
    border: none; padding: 16px 20px;
    align-items: flex-start;
}
.lp-modal-title { color: #fff; font-size: 1.1rem; font-weight: 700; margin: 4px 0 0; }
.lp-modal-badges { display: flex; gap: 8px; margin-bottom: 4px; }
.lp-stage-badge-inline {
    display: inline-block;
    background: rgba(255,255,255,0.2); color: #fff;
    font-size: 0.72rem; font-weight: 700;
    padding: 3px 10px; border-radius: 20px;
}
.lp-video-wrapper {
    position: relative; padding-bottom: 56.25%;
    height: 0; background: #000;
}
.lp-video-wrapper iframe {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
}

@media (max-width: 576px) {
    .lp-hero       { height: 190px; }
    .lp-hero-title { font-size: 1.4rem; }
    .lp-container  { margin-top: -35px; }
    .lp-filter-card { padding: 18px; }
    .lp-card-thumb  { height: 150px; }
}

/* =============================================*/
body.dark-theme .introSwiper .swiper-button-next,
body.dark-theme .introSwiper .swiper-button-prev,
body.dark-theme .postSwiper .swiper-button-next,
body.dark-theme .postSwiper .swiper-button-prev {
    background: rgba(40,40,40,0.9);
    color: #a78bfa;
}

/* =============================================
   MOBILE DRAWER
   ============================================= */
.mobile-drawer {
    width: 300px !important;
    border-radius: 24px 0 0 24px;
    overflow: hidden;
    border: none;
}

.mobile-drawer-header {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    padding: 18px 20px;
    border-bottom: none;
}

.mobile-drawer-body {
    background: #f8f9ff;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* User Card */
.mobile-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: #fff;
    padding: 16px 20px 24px;
    margin-bottom: -10px;
}

/* Nav items */
.mobile-nav {
    background: #fff;
    border-radius: 20px;
    margin: 14px 14px 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(106,17,203,0.08);
    flex: 1;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: #2d3748;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    border-bottom: 1px solid #f0f0f8;
    transition: background 0.2s, color 0.2s;
}

.mobile-nav-item:last-child { border-bottom: none; }

.mobile-nav-item:hover,
.mobile-nav-item:active {
    background: linear-gradient(135deg, rgba(106,17,203,0.06), rgba(37,117,252,0.06));
    color: #6a11cb;
}

.mobile-nav-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.mobile-nav-icon-sm {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
    background: linear-gradient(135deg, #2575fc, #6a11cb);
}

.mobile-nav-sub {
    padding-right: 28px;
    font-size: 0.87rem;
    font-weight: 500;
    color: #4a5568;
}

.mobile-nav-section {
    font-size: 0.75rem;
    font-weight: 700;
    color: #6a11cb;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 18px 6px;
    background: #f8f9ff;
    border-bottom: 1px solid #f0f0f8;
}

/* Footer actions */
.mobile-drawer-footer {
    padding: 16px 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-login    { background: linear-gradient(135deg,#6a11cb,#2575fc); color:#fff; }
.btn-register { background: linear-gradient(135deg,#00b09b,#96c93d); color:#fff; }
.btn-logout   { background: linear-gradient(135deg,#f5576c,#f093fb); color:#fff; }
.btn-admin    { background: linear-gradient(135deg,#f5576c,#f093fb); color:#fff; }
.btn-user     { background: linear-gradient(135deg,#4facfe,#00f2fe); color:#fff; }
.btn-lang     { background: #f0f0f8; color:#2d3748; flex:1; padding:10px; }

.mobile-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    color: #fff;
}
.btn-lang:hover { color: #2d3748; }

/* Dark mode drawer */
body.dark-theme .mobile-drawer-body { background: #1a1a2e; }
body.dark-theme .mobile-nav         { background: #16213e; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
body.dark-theme .mobile-nav-item    { color: #e0e0e0; border-bottom-color: #2a2a4a; }
body.dark-theme .mobile-nav-item:hover { background: rgba(106,17,203,0.2); color: #a78bfa; }
body.dark-theme .mobile-nav-section { background: #1a1a2e; color: #a78bfa; border-bottom-color: #2a2a4a; }
body.dark-theme .btn-lang           { background: #2a2a4a; color: #e0e0e0; }


img {
    max-width: 100%;
    height: auto;
    display: block;
}

.intro-card-img-wrap {
    aspect-ratio: 400 / 220;
    overflow: hidden;
    background: #e2e8f0;
}
.intro-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .wow { animation: none !important; visibility: visible !important; }
}

@media (max-width: 767px) {
    .wow {
        visibility: visible !important;
        animation-name: none !important;
    }
}

@media (max-width: 768px) {
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    .intro-card-title  { font-size: .9rem; }
    .intro-card-text   { font-size: .78rem; }

    .intro-card,
    .post-card,
    .lesson-card {
        box-shadow: 0 2px 8px rgba(0,0,0,.1) !important;
    }

    .navbar {
        will-change: auto;
    }
}

footer {
    content-visibility: auto;
    contain-intrinsic-size: 0 80px;
}

.mobile-drawer,
.lessons-fab-btn {
    will-change: transform;
}

.navbar {
    position: relative;
    z-index: 1030;
}

.dropdown-menu {
    z-index: 1040 !important;
}

.swiper-slide {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

@media (max-width: 768px) {
    .mobile-nav-item,
    .mobile-action-btn {
        min-height: 44px; 
    }
    .btn, button, a.btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

.logo-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

