@font-face {
    font-family: IRANSans;
    src: url('./fonts/IRANSansWeb/IRANSansWeb.eot');
    src: url('./fonts/IRANSansWeb/IRANSansWeb.eot') format('embedded-opentype'),
    url('./fonts/IRANSansWeb/IRANSansWeb(FaNum).woff') format('woff'),
    url('./fonts/IRANSansWeb/IRANSansWeb.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

* {
    outline: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f8f9fc;
    color: #2d3748;
    font-size: 14px;
    font-family: 'IRANSans', 'Vazir', Tahoma, sans-serif !important;
    overflow-x: hidden !important;
    font-weight: 400;
    max-width: 100vw!important;
}

/* ==================== HEADER STYLES ==================== */
.header {
    background: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

/* Navigation */
.navigation {
    padding: 0.75rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* Logo */
.nav-brand {
    flex-shrink: 0;
}

.nav-brand img {
    max-height: 50px;
    width: auto;
}

/* ==================== دکمه همبرگری (سه خط) ==================== */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.hamburger-menu:hover {
    background: rgba(10, 88, 202, 0.1);
}

.hamburger-icon {
    width: 25px;
    height: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: #2d3748;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-menu.active .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: #0a58ca;
}

.hamburger-menu.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-menu.active .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: #0a58ca;
}

/* ==================== منوی موبایل ==================== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
    backdrop-filter: blur(3px);
}

.mobile-menu-overlay.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.mobile-menu-container {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 350px;
    height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    z-index: 1050;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    padding-bottom: 30px;
}

.mobile-menu-container.active {
    right: 0;
}

/* هدر منوی موبایل */
.mobile-menu-header {
    padding: 20px;
    background: linear-gradient(135deg, #0a58ca, #0d6efd);
    text-align: center;
    position: relative;
}

.mobile-menu-logo {
    margin-bottom: 15px;
}

.mobile-menu-logo img {
    max-width: 100px;
    height: auto;
}

.close-menu {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 18px;
}

.close-menu:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.welcome-text {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

/* لیست دسته‌بندی‌ها */
.mobile-categories {
    padding: 10px 0;
}

.mobile-category-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.mobile-menu-container.active .mobile-category-item {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu-container.active .mobile-category-item:nth-child(1) {
    transition-delay: 0.05s;
}

.mobile-menu-container.active .mobile-category-item:nth-child(2) {
    transition-delay: 0.1s;
}

.mobile-menu-container.active .mobile-category-item:nth-child(3) {
    transition-delay: 0.15s;
}

.mobile-menu-container.active .mobile-category-item:nth-child(4) {
    transition-delay: 0.2s;
}

.mobile-menu-container.active .mobile-category-item:nth-child(5) {
    transition-delay: 0.25s;
}

.mobile-menu-container.active .mobile-category-item:nth-child(6) {
    transition-delay: 0.3s;
}

.mobile-category-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none;
    color: #2d3748;
    font-weight: 500;
    transition: all 0.25s ease;
    gap: 12px;
}

.mobile-category-link i {
    width: 30px;
    font-size: 1.2rem;
    color: #0a58ca;
    text-align: center;
}

.mobile-category-link span {
    flex: 1;
}

.mobile-category-link .arrow {
    color: #adb5bd;
    font-size: 12px;
    transition: all 0.2s ease;
}

.mobile-category-link:hover {
    background: rgba(10, 88, 202, 0.08);
    padding-right: 25px;
    color: #0a58ca;
}

.mobile-category-link:hover .arrow {
    transform: translateX(-3px);
    color: #0a58ca;
}

/* بخش ورود/ثبت نام در منوی موبایل */
.mobile-auth-section {
    padding: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
}

.mobile-auth-btn.login {
    background: linear-gradient(135deg, #0a58ca, #0d6efd);
    color: white;
    border: none;
}

.mobile-auth-btn.login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 88, 202, 0.3);
}

.mobile-auth-btn.register {
    background: linear-gradient(135deg, #0a58ca, #0d6efd);
    color: white;
    border: 1px solid #0a53be;
}


/* ==================== Desktop-btn ==================== */
.auth-dropdown {
    position: relative;
    display: inline-block;
}

.auth-trigger-btn {
    margin: 20px 12px;
    padding: 10px 28px;
    background: linear-gradient(135deg, #0a53be 0%, #6a8dff 100%);
    background-size: 200% 200%;
    border: none;
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 18px rgba(10, 83, 190, 0.45);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-trigger-btn:hover {
    background-position: 100% 0;
    box-shadow: 0 8px 25px rgba(10, 83, 190, 0.55);
    transform: translateY(-2px);
    color: #fff;
}

.auth-trigger-btn i.fa-user {
    font-size: 14px;
}

.auth-arrow {
    font-size: 11px;
    transition: transform 0.3s;
}

.auth-dropdown:hover .auth-arrow {
    transform: rotate(180deg);
}

/* ===== منوی کشویی ورود/ثبت‌نام ===== */
.auth-dropdown-menu {
    position: absolute;
    top: 80%;
    left: 80%;
    transform: translateX(-50%) translateY(8px);
    min-width: 210px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    border: 1px solid rgba(102, 126, 234, 0.2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.25s ease;
}

.auth-dropdown:hover .auth-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.auth-dropdown-header {
    padding: 12px 16px;
    background: linear-gradient(135deg, #0a53be 0%, #6a8dff 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.5px;
}

.auth-dropdown-item {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #2d3748;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s;
}

.auth-dropdown-item:last-child {
    border-bottom: none;
}

.auth-dropdown-item i {
    width: 20px;
    color: #667eea;
    font-size: 16px;
    transition: transform 0.2s;
}

.auth-dropdown-item:hover {
    background-color: #f7fafc;
    color: #667eea;
    padding-right: 24px;
}

.auth-dropdown-item:hover i {
    transform: scale(1.15);
}

/* ===== بخش کاربر لاگین‌شده ===== */
.user-trigger {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.user-avatar {
    width: 65px !important;
    height: 65px !important;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #0a53be;
    box-shadow: 0 0 0 3px rgba(10, 83, 190, 0.15);
    transition: box-shadow 0.3s;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-trigger:hover .user-avatar {
    box-shadow: 0 0 0 5px rgba(10, 83, 190, 0.25);
}

.user-fullname {
    font-weight: 600;
    color: inherit;
    text-align: center;
    font-size: 13px;
}

.user-dropdown-menu {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.15);
    position: absolute !important;
    top: 100% !important;
    left: 120% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    margin-top: 8px;
    text-align: center;
    min-width: 220px;
    z-index: 1050;
}

.user-dropdown-name {
    font-weight: 600;
    background: #f7fafc;
    text-align: center;
}

.user-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 18px;
    transition: all 0.2s;
}

.user-dropdown-menu .dropdown-item i {
    width: 18px;
    color: #667eea;
}

.user-dropdown-menu .dropdown-item:hover {
    background-color: #f0f4ff;
    color: #0a53be;
}

.user-dropdown-menu .dropdown-item.text-danger i {
    color: #dc3545;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
    .hamburger-menu {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .desktop-menu {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-brand img {
        max-height: 45px;
    }
}

@media (min-width: 993px) {
    .mobile-menu-overlay,
    .mobile-menu-container,
    .hamburger-menu {
        display: none !important;
    }

    .desktop-menu {
        display: flex !important;
    }
}
/* ==================== AUTH & USER DROPDOWN DARK MODE ==================== */
body.dark-mode .auth-dropdown-menu {
    background: rgba(26, 26, 58, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.5);
}

body.dark-mode .auth-dropdown-item {
    color: #e2e8f0;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .auth-dropdown-item:hover {
    background-color: rgba(0, 153, 255, 0.1);
    color: #0099ff;
    transition: 0.5s ease;
}

body.dark-mode .auth-dropdown-item i {
    color: #8098f9;
}

body.dark-mode .user-fullname {
    color: #e2e8f0;
}

body.dark-mode .user-dropdown-menu {
    background: rgba(26, 26, 58, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.5);
}

body.dark-mode .user-dropdown-name {
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
}

body.dark-mode .user-dropdown-menu .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .user-dropdown-menu .dropdown-item {
    color: #e2e8f0;
    background-color: transparent;
}

body.dark-mode .user-dropdown-menu .dropdown-item i {
    color: #8098f9;
}

body.dark-mode .user-dropdown-menu .dropdown-item:hover {
    background-color: rgba(0, 153, 255, 0.12);
    color: #0099ff;
    transition: 0.5s ease;
}

body.dark-mode .user-dropdown-menu .dropdown-item.text-danger {
    color: #ff6b6b;
}

body.dark-mode .user-dropdown-menu .dropdown-item.text-danger i {
    color: #ff6b6b;
}

body.dark-mode .user-dropdown-menu .dropdown-item.text-danger:hover {
    background-color: rgba(255, 107, 107, 0.1);
}
/* ==================== منوی دسکتاپ ==================== */
.desktop-menu li {
    display: inline-block;
}

.desktop-menu li a {
    color: #2d3748;
    text-decoration: none;
    font-weight: 500;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    position: relative;
}

.desktop-menu li a i {
    font-size: 1rem;
    color: #6c757d;
    transition: all 0.3s ease;
}

/* افکت hover */
.desktop-menu li a:hover {
    color: #0a58ca;
    background: rgba(10, 88, 202, 0.08);
    transform: translateY(-2px);
}

.desktop-menu li a:hover i {
    color: #0a58ca;
    transform: scale(1.1);
}

/* زیرخط زیبا */
.desktop-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    width: 0;
    height: 2px;
    background: #0a58ca;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.desktop-menu li a:hover::after {
    width: 70%;
    right: 15%;
}

/* ==================== UTILITIES ==================== */
@media (max-width: 768px) {
    .navigation {
        padding: 0.5rem 0;
    }

    .nav-brand img {
        max-height: 40px;
    }
}

@media (max-width: 480px) {
    .mobile-menu-container {
        width: 85%;
        max-width: 300px;
    }

    .mobile-category-link {
        padding: 12px 16px;
        font-size: 13px;
    }

    .mobile-category-link i {
        width: 25px;
        font-size: 1rem;
    }
}

::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #0a58ca;
    border-radius: 10px;
}

/* ==================== Theme Toggle Button ==================== */
.theme-toggle-btn {
    background: rgba(0, 0, 0, 0.08);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    margin: 0 8px;
}

.theme-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.15);
    transform: rotate(15deg);
    transition: 0.5s !important;
}

.theme-toggle-btn i {
    font-size: 1.2rem;
    position: absolute;
    transition: all 0.3s ease;
}

.theme-icon-light {
    color: #ffc107;
    opacity: 0;
    transform: scale(0);
}

.theme-icon-dark {
    color: #2d3748;
    opacity: 1;
    transform: scale(1);
}

/* Dark mode active state */
body.dark-mode .theme-icon-light {
    opacity: 1;
    transform: scale(1);
}

body.dark-mode .theme-icon-dark {
    opacity: 0;
    transform: scale(0);
}

/* Mobile Theme Section */
.mobile-theme-section {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-theme-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.theme-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #2d3748;
}

.theme-label i {
    color: #ffc107;
    font-size: 1rem;
}

/* Toggle Switch */
.theme-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #304aca;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* ==================== Dark Mode Styles ==================== */
/* ==================== DARK MODE STYLES - COMPLETE ==================== */

/* Base Dark Mode */
body.dark-mode {
    background: #0f0f1a;
    color: #e2e8f0;
}

/* ==================== HEADER DARK MODE ==================== */
body.dark-mode .header {
    background: rgba(15, 15, 26, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .hamburger-icon span {
    background: #e2e8f0;
}

body.dark-mode .hamburger-menu:hover {
    background: rgba(48, 74, 202, 0.15);
    transition: 0.5s !important;
}

/* Desktop Menu Dark Mode */
body.dark-mode .desktop-menu li a {
    color: #e2e8f0;
}

body.dark-mode .desktop-menu li a i {
    color: #8098f9;
}

body.dark-mode .desktop-menu li a:hover {
    color: #0099ff;
    background: rgba(0, 153, 255, 0.1);
    transition: 0.5s !important;
}

body.dark-mode .desktop-menu li a:hover i {
    color: #0099ff;
    transition: 0.5s !important;
}

body.dark-mode .desktop-menu li a::after {
    background: #0099ff;
}

/* Login Button Dark Mode */
body.dark-mode .desktop-login-btn {
    background: linear-gradient(135deg, #304aca, #0099ff);
    box-shadow: 0 4px 12px rgba(48, 74, 202, 0.3);
}

body.dark-mode .desktop-login-btn:hover {
    background: linear-gradient(135deg, #3a5aef, #1a88ff);
    transition: 0.5s !important;
}

/* ==================== MOBILE MENU DARK MODE ==================== */
body.dark-mode .mobile-menu-container {
    background: linear-gradient(135deg, #13132b, #1a1a3a);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
}

body.dark-mode .mobile-menu-header {
    background: linear-gradient(135deg, #304aca, #0099ff);
}

body.dark-mode .mobile-category-item {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .mobile-category-link {
    color: #e2e8f0;
}

body.dark-mode .mobile-category-link i {
    color: #0099ff;
}

body.dark-mode .mobile-category-link .arrow {
    color: #718096;
}

body.dark-mode .mobile-category-link:hover {
    background: rgba(0, 153, 255, 0.1);
    color: #0099ff;
    transition: 0.5s !important;
}

body.dark-mode .mobile-category-link:hover .arrow {
    color: #0099ff;
    transition: 0.5s !important;
}

/* Mobile Auth Dark Mode */
body.dark-mode .mobile-auth-section {
    border-top-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .mobile-auth-btn.login {
    background: linear-gradient(135deg, #304aca, #0099ff);
}

body.dark-mode .mobile-auth-btn.register {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

body.dark-mode .mobile-auth-btn.register:hover {
    background: rgba(255, 255, 255, 0.12);
    transition: 0.5s !important;
}

/* ==================== THEME TOGGLE DARK MODE ==================== */
body.dark-mode .theme-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transition: 0.5s !important;
}

body.dark-mode .theme-icon-dark {
    color: #e2e8f0;
}

body.dark-mode .mobile-theme-section {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .theme-label {
    color: #e2e8f0;
}

/* ==================== HERO SECTION DARK MODE ==================== */
body.dark-mode .hero-title {
    color: #f7fafc;
}

body.dark-mode .hero-title span::after {
    background: rgba(0, 153, 255, 0.25);
}

body.dark-mode .hero-description {
    color: #cbd5e0;
}

body.dark-mode .hero-badge .badge {
    background: rgba(48, 74, 202, 0.25) !important;
    color: #8098f9 !important;
}

body.dark-mode .hero-search-input {
    background: #1a1a2e;
    border-color: #2d3748;
    color: #e2e8f0;
}

body.dark-mode .hero-search-input:focus {
    border-color: #0099ff;
}

body.dark-mode .hero-search-input::placeholder {
    color: #718096;
}

body.dark-mode .hero-search-btn {
    background: linear-gradient(135deg, #304aca, #0099ff);
}

body.dark-mode .hero-search-btn:hover {
    background: linear-gradient(135deg, #3a5aef, #1a88ff);
    transition: 0.5s !important;
}

/* Statistics Cards Dark Mode */
body.dark-mode .stat-card {
    background: #1a1a2e !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

body.dark-mode .stat-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: 0.5s !important;
}

body.dark-mode .stat-number {
    color: #f7fafc !important;
}

body.dark-mode .stat-label {
    color: #a0aec0;
}

/* Floating Cards Dark Mode */
body.dark-mode .floating-card {
    background: #1a1a2e;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

body.dark-mode .card-title {
    color: #f7fafc;
}

body.dark-mode .card-desc {
    color: #a0aec0;
}

body.dark-mode .play-button {
    background: #1a1a2e;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .play-button i {
    color: #0099ff;
}

body.dark-mode .play-button:hover {
    background: #0099ff;
    transition: 0.5s !important;
}

body.dark-mode .play-button:hover i {
    color: white;
    transition: 0.5s !important;
}

/* ==================== COURSES SECTION DARK MODE ==================== */
body.dark-mode .courses-section {
    background: linear-gradient(135deg, #0a0a15, #0f0f1a);
}

body.dark-mode .section-header h2 {
    color: #f7fafc;
}

body.dark-mode .section-header p {
    color: #8098f9;
}

body.dark-mode .course-card {
    background: #1a1a2e;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

body.dark-mode .course-card:hover {
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.3);
    transition: 0.5s !important;
}

body.dark-mode .course-title {
    color: #f7fafc;
}

body.dark-mode .info-item {
    color: #a0aec0;
}

body.dark-mode .info-item i {
    color: #8098f9;
}

body.dark-mode .meta-badge {
    background: #252540;
}

body.dark-mode .meta-sessions {
    color: #4dabf7;
    background: rgba(77, 171, 247, 0.15);
}

body.dark-mode .meta-students {
    color: #51cf66;
    background: rgba(81, 207, 102, 0.15);
}

body.dark-mode .course-footer {
    background: #15152a;
    border-top-color: #252540;
}

body.dark-mode .price {
    color: #8098f9;
}

body.dark-mode .price.old-price {
    color: #718096;
}

body.dark-mode .btn-enroll {
    background: linear-gradient(135deg, #304aca, #0099ff);
}

body.dark-mode .btn-enroll:hover {
    background: linear-gradient(135deg, #3a5aef, #1a88ff);
    transform: translateY(-2px);
    transition: 0.5s !important;
}

/* View All Button Dark Mode */
body.dark-mode .btn-outline-primary {
    border-color: #304aca;
    color: #8098f9;
}

body.dark-mode .btn-outline-primary:hover {
    background: linear-gradient(135deg, #304aca, #0099ff);
    color: white;
    border-color: transparent;
    transition: 0.5s !important;
}

/* ==================== GENERAL ELEMENTS DARK MODE ==================== */

/* Badges */
body.dark-mode .badge {
    background: rgba(48, 74, 202, 0.25);
    color: #8098f9;
}

body.dark-mode .badge.bg-purple {
    background: rgba(128, 0, 255, 0.25) !important;
    color: #b980ff !important;
}

body.dark-mode .badge.bg-blue {
    background: rgba(0, 153, 255, 0.25) !important;
    color: #4dabf7 !important;
}

/* Scrollbar Dark Mode */
body.dark-mode::-webkit-scrollbar-track {
    background: #1a1a2e;
}

body.dark-mode::-webkit-scrollbar-thumb {
    background: #304aca;
    border-radius: 10px;
}

body.dark-mode::-webkit-scrollbar-thumb:hover {
    background: #0099ff;
    transition: 0.5s !important;
}

/* Form Elements */
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
    background: #1a1a2e;
    border-color: #2d3748;
    color: #e2e8f0;
}

body.dark-mode input:focus,
body.dark-mode textarea:focus,
body.dark-mode select:focus {
    border-color: #0099ff;
    outline: none;
}

/* Modal Dark Mode */
body.dark-mode .modal-content {
    background: #1a1a2e;
    border-color: #2d3748;
}

body.dark-mode .modal-header {
    border-bottom-color: #2d3748;
}

body.dark-mode .modal-footer {
    border-top-color: #2d3748;
}

body.dark-mode .btn-close {
    filter: invert(1);
}

/* Dropdown Dark Mode */
body.dark-mode .dropdown-menu {
    background: #1a1a2e;
    border-color: #2d3748;
}

body.dark-mode .dropdown-item {
    color: #e2e8f0;
}

body.dark-mode .dropdown-item:hover {
    background: rgba(0, 153, 255, 0.1);
    color: #0099ff;
    transition: 0.5s !important;
}

/* Alerts Dark Mode */
body.dark-mode .alert-primary {
    background: rgba(48, 74, 202, 0.2);
    border-color: rgba(48, 74, 202, 0.3);
    color: #8098f9;
}

body.dark-mode .alert-success {
    background: rgba(81, 207, 102, 0.2);
    border-color: rgba(81, 207, 102, 0.3);
    color: #51cf66;
}

body.dark-mode .alert-danger {
    background: rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

body.dark-mode .alert-warning {
    background: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.3);
    color: #ffc107;
}

/* Pagination Dark Mode */
body.dark-mode .page-link {
    background: #1a1a2e;
    border-color: #2d3748;
    color: #e2e8f0;
}

body.dark-mode .page-link:hover {
    background: #304aca;
    color: white;
    transition: 0.5s !important;
}

body.dark-mode .page-item.active .page-link {
    background: linear-gradient(135deg, #304aca, #0099ff);
    border-color: transparent;
}

/* ==================== TRANSITIONS ==================== */
body.dark-mode,
body.dark-mode * {
    transition: background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
}

/* ==================== Hero Section Styles ==================== */
.hero-section {
    padding: 2rem 0 4rem;
}

/* Hero Content */
.hero-content {
    max-width: 90%;
}

@media (max-width: 992px) {
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
}

/* Hero Badge */
.hero-badge .badge {
    font-size: 0.85rem;
    font-weight: 500;
    animation: fadeInUp 0.5s ease;
}

/* Hero Title */
.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.3;
    color: #1a202c;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.5s ease 0.1s both;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
}

.hero-title span {
    position: relative;
    display: inline-block;
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(10, 88, 202, 0.2);
    border-radius: 4px;
    z-index: -1;
}

/* Hero Description */
.hero-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4a5568;
    animation: fadeInUp 0.5s ease 0.2s both;
}

@media (max-width: 768px) {
    .hero-description {
        font-size: 1rem;
    }
}

/* Search Form */
.hero-search-form {
    animation: fadeInUp 0.5s ease 0.3s both;
}

.hero-search-input {
    height: 55px;
    border: 2px solid #e2e8f0;
    border-radius: 0 10px 10px 0 !important;
    padding: 0 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.hero-search-input:focus {
    border-color: #0a58ca;
    box-shadow: none;
}

.hero-search-btn {
    height: 55px;
    padding: 0 30px;
    background: linear-gradient(135deg, #0a58ca, #0d6efd);
    color: white !important;
    border-radius: 10px 0 0 10px !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-search-btn:hover {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: white;
    transition: 0.5s !important;
}

/* Statistics Cards */
.hero-stats {
    animation: fadeInUp 0.5s ease 0.4s both;
}

.stat-card {
    text-align: center;
    padding: 1rem;
    background: white !important;
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: 0.5s !important;
}


.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #f7fafc !important;
}

.stat-number span {
    font-size: 1.5rem;
    color: #0a58ca;
}

.stat-label {
    font-size: 0.85rem;
    color: #718096;
}

/* Hero Media */
.hero-media {
    position: relative;
    animation: fadeInRight 0.6s ease;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-main-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.hero-image-wrapper:hover .hero-main-image {
    transform: scale(1.05);
    transition: 0.5s !important;
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: white;
    padding: 0.75rem 1.25rem;
    border-radius: 60px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: float 3s ease-in-out infinite;
}

.floating-card-1 {
    top: 20px;
    right: 20px;
    animation-delay: 0s;
}

.floating-card-2 {
    bottom: 30px;
    left: 20px;
    animation-delay: 1.5s;
}

.card-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a202c;
}

.card-desc {
    font-size: 0.7rem;
    color: #718096;
}

/* Play Button */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.play-button i {
    color: #0a58ca;
    font-size: 1.5rem;
    margin-right: 3px;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: 0.5s !important;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.trust-badges img {
    height: 35px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.trust-badges img:hover {
    opacity: 1;
    transition: 0.5s !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-section {
        padding: 1rem 0 2rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-search-form {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        justify-content: center;
    }

    .stat-card {
        padding: 0.75rem;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .floating-card {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-search-input,
    .hero-search-btn {
        height: 48px;
    }

    .hero-search-btn span {
        display: none;
    }

    .hero-search-btn i {
        margin: 0;
    }

    .play-button {
        width: 50px;
        height: 50px;
    }

    .play-button i {
        font-size: 1.2rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .hero-title {
        color: #2d3748;
    }

    .hero-description {
        color: #2d3748;
    }

    .stat-card {
        background: #f4f8fa !important;
    }

    .stat-number {
        color: #f7fafc;
    }

    .floating-card {
        background: #2d3748;
    }

    .card-title {
        color: #f7fafc;
    }
}


/* ==================== Courses Section ==================== */
.courses-section {
    background: linear-gradient(135deg, #f8f9fc 0%, #eef2f8 100%);
}

/* Section Header */
.section-header .header-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #304aca, #0099ff);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(48, 74, 202, 0.25);
}

.section-header h2 {
    font-size: 1.8rem;
    color: #1a202c;
}

.section-header p {
    font-size: 13px;
    color: #304aca;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Course Card */
.course-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.12);
    transition: 0.5s !important;
}

/* Course Image */
.course-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 220px!important;
}

.course-image img {
    width: 100%;
    height: 100%;
    background-size: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.05);
    transition: 0.5s !important;
}

.course-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    background: linear-gradient(135deg, #304aca, #0099ff);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 30px;
    z-index: 1;
}

.course-badge.hot {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

/* Course Body */
.course-body {
    padding: 1.25rem;
    background: #ffffff;
}

.course-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    min-height: calc(1.4em * 2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-title a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.3s ease;
}

body.dark-mode .course-title a {
    color: #ffffff;
}

.course-title a:hover {
    color: #304aca;
    transition: 0.5s !important;
}

.course-info {
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.90rem;
    color: #4a5568;
    margin-bottom: 6px;
}

.info-item.week-plan {
    line-height: 1.4;
    min-height: calc(1.4em * 2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.info-item i {
    width: 20px;
    font-size: 0.8rem;
    color: #304aca;
}

/* Course Meta Badges */
.course-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: #f1f5f9;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 500;
}

.meta-badge i {
    font-size: 0.7rem;
}

.meta-sessions {
    color: #0099ff;
    background: rgba(0, 153, 255, 0.1);
}

.meta-students {
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

/* Course Footer */
.course-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #eef2f6;
    background: #fafbfc;
}

.price {
    font-size: 1.3rem;
    font-weight: 800;
    color: #304aca;
    text-align: center;
    margin-bottom: 12px;
}

.price small {
    font-size: 0.75rem;
    font-weight: 500;
}

.price.old-price {
    font-size: 0.8rem;
    color: #adb5bd;
    text-decoration: line-through;
    margin-bottom: 4px;
}

/* Enroll Button */
.btn-enroll {
    background: linear-gradient(135deg, #304aca, #0099ff);
    color: white !important;
    border: none;
    padding: 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-enroll:hover {
    background: linear-gradient(135deg, #3a5aef, #1a88ff);
    box-shadow: 0 5px 15px rgba(48, 74, 202, 0.3);
    color: white;
    transition: 0.5s !important;
}

/* View All Button */
.btn-outline-primary {
    border: 2px solid #304aca;
    color: #304aca;
    background: transparent;
    border-radius: 50px;
    padding: 12px 35px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #304aca, #0099ff);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(48, 74, 202, 0.3);
    transition: 0.5s !important;
}

/* Responsive */
@media (max-width: 768px) {
    .section-header h2 {
        font-size: 1.4rem;
    }

    .section-header .header-icon {
        width: 45px;
        height: 45px;
    }

    .section-header .header-icon svg {
        width: 20px;
        height: 20px;
    }

    .course-title {
        font-size: 0.9rem;
        min-height: auto;
    }

    .price {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .courses-section {
        padding: 2rem 0;
    }

    .course-card {
        max-width: 380px;
        margin: 0 auto;
    }
}

/* ==================== Courses Section Dark Mode ==================== */
body.dark-mode .courses-section {
    background: linear-gradient(135deg, #0f0f1a, #13132b);
}

body.dark-mode .section-header h2 {
    color: #f7fafc;
}

body.dark-mode .course-card {
    background: #1a1a2e;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .course-card:hover {
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.4);
    transition: 0.5s !important;
}

body.dark-mode .course-body {
    background: #1a1a2e;
}

body.dark-mode .course-title {
    color: #f7fafc;
}

body.dark-mode .info-item {
    color: #a0aec0;
}

body.dark-mode .course-footer {
    background: #15152a;
    border-top-color: #2d3748;
}

body.dark-mode .price {
    color: #8098f9;
}

body.dark-mode .meta-badge {
    background: #252540;
}

body.dark-mode .btn-outline-primary {
    border-color: #304aca;
    color: #8098f9;
}

body.dark-mode .btn-outline-primary:hover {
    background: linear-gradient(135deg, #304aca, #0099ff);
    color: white;
    transition: 0.5s !important;
}

/* ==================== Categories Section ==================== */
.categories-section {
    background: #f0f3fa;
    padding: 4rem 0;
}

.categories-section .section-header {
    margin-bottom: 2.5rem;
}

.categories-section .header-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #304aca, #0099ff);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(48, 74, 202, 0.25);
}

.categories-section .section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

.categories-section .section-subtitle {
    font-size: 13px;
    color: #304aca;
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* ==================== Category Card — Horizontal ==================== */
.category-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 12px rgba(48, 74, 202, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

/* Accent bar on right side (RTL feel) */
.category-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #304aca, #0099ff);
    border-radius: 0 18px 18px 0;
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateX(-4px);
    box-shadow: 0 8px 28px rgba(48, 74, 202, 0.15);
}

.category-card:hover::before {
    transform: scaleY(1);
}

/* ---- Circular Image ---- */
.category-icon {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #eef1fc;
    transition: border-color 0.3s ease, transform 0.3s ease;
    background: #eef1fc;
}

.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.category-card:hover .category-icon {
    border-color: #304aca;
    transform: rotate(-4deg) scale(1.05);
}

.category-card:hover .category-icon img {
    transform: scale(1.1);
}

/* ---- Text Content ---- */
.category-info {
    flex: 1;
    min-width: 0;
}

.category-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-title a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.25s ease;
}

.category-card:hover .category-title a {
    color: #304aca;
}

.category-meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

.course-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #7b8ab8;
}

.course-count i {
    font-size: 0.65rem;
}

/* ---- Arrow ---- */
.category-arrow {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid #dde3f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #304aca;
    font-size: 0.75rem;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.category-card:hover .category-arrow {
    background: linear-gradient(135deg, #304aca, #0099ff);
    border-color: transparent;
    color: #fff;
    transform: translateX(-3px);
}

/* ==================== View All Button ==================== */
.btn-view-all {
    border: 2px solid #304aca;
    color: #304aca;
    background: transparent;
    border-radius: 50px;
    padding: 12px 35px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-view-all:hover {
    background: linear-gradient(135deg, #304aca, #0099ff);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(48, 74, 202, 0.3);
}

/* ==================== Dark Mode ==================== */
body.dark-mode .categories-section {
    background: linear-gradient(135deg, #0f0f1a, #13132b);
}

body.dark-mode .categories-section .section-title {
    color: #f7fafc;
}

body.dark-mode .categories-section .section-subtitle {
    color: #8098f9;
}

body.dark-mode .category-card {
    background: #1a1a2e;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.4s ease;
}

body.dark-mode .category-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}

body.dark-mode .category-icon {
    border-color: #252540;
    background: #252540;
    transition: border-color 0.3s ease, transform 0.3s ease, background 0.4s ease;
}

body.dark-mode .category-card:hover .category-icon {
    border-color: #304aca;
}

body.dark-mode .category-title a {
    color: #f7fafc;
    transition: color 0.3s ease;
}

body.dark-mode .category-card:hover .category-title a {
    color: #8098f9;
}

body.dark-mode .course-count {
    color: #5a6a9a;
    transition: color 0.3s ease;
}

body.dark-mode .category-arrow {
    border-color: #2e2e50;
    color: #8098f9;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

body.dark-mode .category-card:hover .category-arrow {
    background: linear-gradient(135deg, #304aca, #0099ff);
    border-color: transparent;
    color: #fff;
    transform: translateX(-3px);
}

body.dark-mode .btn-view-all {
    border-color: #304aca;
    color: #8098f9;
    transition: all 0.3s ease;
}

body.dark-mode .btn-view-all:hover {
    background: linear-gradient(135deg, #304aca, #0099ff);
    color: white;
}

/* ==================== Responsive ==================== */
@media (max-width: 992px) {
    .categories-section {
        padding: 3rem 0;
    }

    .categories-section .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .categories-section {
        padding: 2rem 0;
    }

    .categories-section .section-title {
        font-size: 1.3rem;
    }

    .category-icon {
        width: 75px;
        height: 75px;
    }

    .category-title {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .category-card {
        padding: 0.85rem 1rem;
    }
}


/* ==================== Teachers Section ==================== */
.teachers-section {
    background: linear-gradient(135deg, #f8f9fc 0%, #eef2f8 100%);
    padding: 4rem 0;
}

/* Section Header */
.teachers-section .section-header {
    margin-bottom: 2.5rem;
}

.teachers-section .header-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #304aca, #0099ff);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(48, 74, 202, 0.25);
}

.teachers-section .section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

.teachers-section .section-subtitle {
    font-size: 13px;
    color: #304aca;
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* Teacher Card */
.teacher-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
}

.teacher-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.1);
}

/* Teacher Image */
.teacher-image {
    position: relative;
    overflow: hidden;
    padding: 20px 20px 0 20px;
    background: linear-gradient(135deg, #f0f4ff, #e8edf5);
    align-items: center;
}

.teacher-image img {
    width: 260px!important;
    height: 260px!important;
    background-size: cover;
    margin: 0 auto;
    display: block;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.teacher-card:hover .teacher-image img {
    transform: scale(1.05);
}

/* Social Links */
.teacher-social {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.teacher-card:hover .teacher-social {
    transform: translateY(0);
    transition: 0.5s !important;
}

.social-link {
    width: 35px;
    height: 35px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #304aca;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: linear-gradient(135deg, #304aca, #0099ff);
    color: white;
    transform: translateY(-3px);
    transition: 0.3s !important;
}

/* Teacher Info */
.teacher-info {
    padding: 1.5rem;
}

.teacher-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.teacher-name a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.teacher-name a:hover {
    color: #304aca;
}

.teacher-expertise {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 15px;
    background: rgba(48, 74, 202, 0.1);
    border-radius: 50px;
    font-size: 0.75rem;
    color: #304aca;
    margin-bottom: 1rem;
}

.teacher-expertise i {
    font-size: 0.8rem;
}

/* Teacher Stats */
.teacher-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 1rem;
}

.teacher-stats .stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #4a5568;
}

.teacher-stats .stat i {
    color: #304aca;
}

/* Teacher Rating */
.teacher-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.teacher-rating i {
    font-size: 0.85rem;
}

.rating-count {
    font-size: 0.75rem;
    color: #718096;
    margin-left: 5px;
}

/* View All Button */
.btn-view-all {
    border: 2px solid #304aca;
    color: #304aca;
    background: transparent;
    border-radius: 50px;
    padding: 12px 35px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-view-all:hover {
    background: linear-gradient(135deg, #304aca, #0099ff);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(48, 74, 202, 0.3);
}

/* ==================== Dark Mode ==================== */
body.dark-mode .teachers-section {
    background: linear-gradient(135deg, #0f0f1a, #13132b);
}

body.dark-mode .teachers-section .section-title {
    color: #f7fafc;
}

body.dark-mode .teachers-section .section-subtitle {
    color: #8098f9;
}

body.dark-mode .teacher-card {
    background: #1a1a2e;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .teacher-card:hover {
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.4);
    transition: 0.5s !important;
}

body.dark-mode .teacher-image {
    background: linear-gradient(135deg, #1e1e30, #151528);
}

body.dark-mode .teacher-name a {
    color: #f7fafc;
}

body.dark-mode .teacher-name a:hover {
    color: #8098f9;
    transition: 0.5s !important;
}

body.dark-mode .teacher-expertise {
    background: rgba(128, 152, 249, 0.15);
    color: #8098f9;
}

body.dark-mode .teacher-stats .stat {
    color: #a0aec0;
}

body.dark-mode .teacher-stats .stat i {
    color: #8098f9;
}

body.dark-mode .rating-count {
    color: #718096;
}

body.dark-mode .btn-view-all {
    border-color: #304aca;
    color: #8098f9;
}

body.dark-mode .btn-view-all:hover {
    background: linear-gradient(135deg, #304aca, #0099ff);
    color: white;
    transition: 0.5s !important;
}

/* ==================== Responsive ==================== */
@media (max-width: 992px) {
    .teachers-section {
        padding: 3rem 0;
    }

    .teachers-section .section-title {
        font-size: 1.5rem;
    }

    .teachers-section .header-icon {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 768px) {
    .teachers-section {
        padding: 2rem 0;
    }

    .teachers-section .section-title {
        font-size: 1.3rem;
    }

    .teachers-section .header-icon {
        width: 42px;
        height: 42px;
    }

    .teacher-name {
        font-size: 1rem;
    }

    .teacher-stats {
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .teacher-card {
        max-width: 320px;
        margin: 0 auto;
    }
}


/* ==================== FOOTER ==================== */

/* Wave */
.footer-wave {
    line-height: 0;
    color: #1a1f3c;
}

body.dark-mode .footer-wave {
    color: #0d0d1f;
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* Main Footer */
.site-footer {
    font-family: 'IRANSans', 'Vazir', Tahoma, sans-serif;
    direction: rtl;
}

.footer-main {
    background: #1a1f3c;
    padding: 60px 0 40px;
    color: #b0b8d8;
}

body.dark-mode .footer-main {
    background: #0d0d1f;
}

/* Brand */
.footer-logo {
    max-height: 55px;
    width: auto;
    opacity: 0.9;
    margin-bottom: 1.2rem;
    display: block;
}

.footer-desc {
    font-size: 0.88rem;
    line-height: 1.9;
    color: #8894c0;
    margin-bottom: 1.5rem;
}

/* Social Buttons */
.footer-socials {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #8894c0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: linear-gradient(135deg, #304aca, #0099ff);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(48, 74, 202, 0.35);
}

/* Trust Badges */
.footer-trust {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #6b7aaa;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 5px 12px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.trust-badge i {
    color: #304aca;
    font-size: 0.8rem;
}

.trust-badge:hover {
    background: rgba(48, 74, 202, 0.15);
    border-color: rgba(48, 74, 202, 0.3);
    color: #b0b8d8;
}

/* Widget */
.footer-widget-title {
    color: #e2e8f0;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.title-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #304aca, #0099ff);
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(48, 74, 202, 0.6);
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links li a {
    color: #8894c0;
    text-decoration: none;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    padding: 3px 0;
}

.footer-links li a i {
    font-size: 0.65rem;
    color: #304aca;
    transition: transform 0.25s ease;
}

.footer-links li a:hover {
    color: #ffffff;
    padding-right: 6px;
}

.footer-links li a:hover i {
    transform: translateX(-3px);
}

/* Newsletter */
.newsletter-desc {
    font-size: 0.83rem;
    color: #6b7aaa;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.newsletter-form {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.newsletter-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 12px 16px;
    color: #e2e8f0;
    font-size: 0.85rem;
    font-family: 'IRANSans', 'Vazir', Tahoma, sans-serif;
}

.newsletter-input::placeholder {
    color: #4a5578;
}

.newsletter-btn {
    background: linear-gradient(135deg, #304aca, #0099ff);
    border: none;
    width: 48px;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.newsletter-btn:hover {
    background: linear-gradient(135deg, #3a5aef, #1a88ff);
    transform: scale(1.05);
}

/* Contact Info */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.85rem;
    color: #8894c0;
}

.contact-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(48, 74, 202, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: #304aca;
    font-size: 0.8rem;
}

/* Footer Bottom */
.footer-bottom {
    background: #141830;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .footer-bottom {
    background: #080812;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.copyright {
    font-size: 0.8rem;
    color: #4a5578;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom-links a {
    font-size: 0.78rem;
    color: #4a5578;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: #8098f9;
}

.separator {
    color: #2a3058;
}

/* Live pulse */
.footer-pulse {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: #4a5578;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.3);
    animation: pulseRing 1.5s ease-out infinite;
}

@keyframes pulseRing {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, #304aca, #0099ff);
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(48, 74, 202, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(48, 74, 202, 0.5);
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
    .footer-main {
        padding: 40px 0 30px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-socials {
        justify-content: flex-start;
    }

    .footer-trust {
        justify-content: flex-start;
    }

    .footer-pulse {
        display: none;
    }
}

@media (max-width: 576px) {
    .back-to-top {
        bottom: 20px;
        left: 20px;
    }
}


/* =============================================
   department
   ============================================= */
/* =============================================
   PAGE TITLE / BREADCRUMB
   ============================================= */
.page-title {
    background: linear-gradient(135deg, #0a53be, #0099ff);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.page-title::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    top: -150px;
    left: -120px;
}

.page-title::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    bottom: -120px;
    right: -100px;
}

.page-title-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.breadcrumb-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    color: #fff;
    letter-spacing: -0.5px;
}

.breadcrumb-nav .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.9;
    gap: 6px;
}

.breadcrumb-nav .breadcrumb-item a {
    color: #dce9ff;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-nav .breadcrumb-item a:hover {
    color: #fff;
}

.breadcrumb-nav .breadcrumb-item.active {
    color: #fff;
    font-weight: 600;
}

.breadcrumb-nav .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* =============================================
   HERO
   ============================================= */
.dept-hero {
    position: relative;
    overflow: hidden;
    padding: 4rem 0 3rem;
    background: linear-gradient(135deg, #1a1f3c 0%, #0d1230 50%, #091548 100%);
}

.dept-hero__bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 70% at 10% 50%, rgba(48, 74, 202, 0.25) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 90% 20%, rgba(0, 153, 255, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.dept-hero__particles span {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    animation: floatUp 8s ease-in-out infinite;
}

.dept-hero__particles span:nth-child(1) {
    width: 12px;
    height: 12px;
    top: 20%;
    right: 15%;
    animation-delay: 0s;
}

.dept-hero__particles span:nth-child(2) {
    width: 8px;
    height: 8px;
    top: 60%;
    right: 30%;
    animation-delay: 1s;
}

.dept-hero__particles span:nth-child(3) {
    width: 18px;
    height: 18px;
    top: 40%;
    left: 10%;
    animation-delay: 2s;
}

.dept-hero__particles span:nth-child(4) {
    width: 6px;
    height: 6px;
    top: 70%;
    left: 25%;
    animation-delay: 0.5s;
}

.dept-hero__particles span:nth-child(5) {
    width: 14px;
    height: 14px;
    top: 15%;
    left: 40%;
    animation-delay: 3s;
}

.dept-hero__particles span:nth-child(6) {
    width: 10px;
    height: 10px;
    top: 80%;
    right: 10%;
    animation-delay: 1.5s;
}

.dept-hero__particles span:nth-child(7) {
    width: 20px;
    height: 20px;
    top: 30%;
    left: 60%;
    animation-delay: 4s;
}

.dept-hero__particles span:nth-child(8) {
    width: 7px;
    height: 7px;
    top: 55%;
    right: 50%;
    animation-delay: 2.5s;
}

@keyframes floatUp {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-20px) scale(1.15);
        opacity: 0.8;
    }
}

.dept-hero__inner {
    position: relative;
    z-index: 2;
    text-align: center;
}

.dept-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.2rem;
}

.dept-breadcrumb a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.dept-breadcrumb a:hover {
    color: #fff;
}

.dept-hero__title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 0.6rem;
    animation: fadeUp 0.6s ease both;
}

.dept-hero__title span {
    background: linear-gradient(90deg, #5b8af5, #0099ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dept-hero__sub {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
    animation: fadeUp 0.6s ease 0.1s both;
}

.dept-hero__stats {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 60px;
    padding: 0.55rem 1.5rem;
    animation: fadeUp 0.6s ease 0.2s both;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
}

.dept-stat {
    text-align: center;
    padding: 0 1.25rem;
}

.dept-stat__num {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.dept-stat__lbl {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 3px;
}

.dept-stat__divider {
    width: 1px;
    height: 34px;
    background: rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   MAIN LAYOUT
   ============================================= */
.dept-main {
    background: #f0f3fa;
    padding: 2.5rem 0 4rem;
    min-height: 60vh;
}

/* =============================================
   SIDEBAR WIDGETS
   ============================================= */
.dept-widget {
    background: #fff;
    border-radius: 16px;
    padding: 1.2rem 1.3rem;
    box-shadow: 0 2px 14px rgba(48, 74, 202, 0.07);
    margin-bottom: 1rem;
}

.dept-widget__title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dept-widget__title i {
    color: #304aca;
    font-size: 0.85rem;
}

/* Search inside sidebar */
.dept-search {
    display: flex;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.dept-search:focus-within {
    border-color: #304aca;
}

.dept-search__input {
    flex: 1;
    border: none;
    outline: none;
    padding: 8px 12px;
    font-size: 0.85rem;
    background: transparent;
    color: #1a202c;
    font-family: inherit;
    direction: rtl;
}

.dept-search__btn {
    border: none;
    background: linear-gradient(135deg, #304aca, #0099ff);
    color: #fff;
    padding: 0 14px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: opacity 0.2s;
}

.dept-search__btn:hover {
    opacity: 0.85;
}

/* Category list */
.dept-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dept-cat-list__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 0.85rem;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.dept-cat-list__item:hover,
.dept-cat-list__item.active {
    background: rgba(48, 74, 202, 0.08);
    color: #304aca;
}

.dept-cat-list__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e0;
    flex-shrink: 0;
    transition: background 0.2s;
}

.dept-cat-list__item.active .dept-cat-list__dot,
.dept-cat-list__item:hover .dept-cat-list__dot {
    background: linear-gradient(135deg, #304aca, #0099ff);
}

.dept-cat-list__count {
    margin-right: auto;
    font-size: 0.72rem;
    background: #eef2f8;
    color: #718096;
    padding: 2px 8px;
    border-radius: 20px;
}

/* =============================================
   TOOLBAR
   ============================================= */
.dept-toolbar {
    background: #fff;
    border-radius: 14px;
    padding: 0.85rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 12px rgba(48, 74, 202, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.dept-toolbar__count {
    font-size: 0.88rem;
    color: #4a5568;
}

.dept-toolbar__count strong {
    color: #304aca;
    font-size: 1rem;
}

.dept-sort {
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.83rem;
    color: #4a5568;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    direction: rtl;
    outline: none;
    transition: border-color 0.2s;
}

.dept-sort:focus {
    border-color: #304aca;
}

.dept-view-toggle {
    display: flex;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.dept-view-btn {
    border: none;
    background: transparent;
    padding: 6px 10px;
    color: #718096;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.dept-view-btn:hover {
    background: #eef2f8;
    color: #304aca;
}

.dept-view-btn.active {
    background: linear-gradient(135deg, #304aca, #0099ff);
    color: #fff;
}

/* =============================================
   COURSE CARD
   ============================================= */
.dcard {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 18px rgba(48, 74, 202, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}

.dcard:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(48, 74, 202, 0.15);
    transition: 0.5s ease !important;
}

.dcard__thumb-wrap {
    position: relative;
    display: block;
    height: 210px;
    overflow: hidden;
    flex-shrink: 0;
}

.dcard__img {
    width: 100%;
    height: 210px;
    background-size: cover;
    display: block;
    transition: transform 0.5s ease !important;
}

.dcard:hover .dcard__img {
    transform: scale(1.06);
    transition: 0.3s !important;
}

.dcard__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20, 10, 60, 0.5) 0%, transparent 55%);
    pointer-events: none;
}

.dcard__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 11px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    background: linear-gradient(135deg, #304aca, #0099ff);
    color: #fff;
    z-index: 2;
}

.dcard__badge--hot {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.dcard__body {
    padding: 1rem 1.1rem 0.75rem;
    flex: 1;
    direction: rtl;
}

.dcard__cats {
    display: flex;
    gap: 6px;
    margin-bottom: 0.55rem;
    flex-wrap: wrap;
}

.dcard__cat {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(48, 74, 202, 0.1);
    color: #304aca;
}

.dcard__title {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 0.7rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dcard__title a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.2s;
}

.dcard__title a:hover {
    color: #304aca;
}

.dcard__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dcard__meta span {
    font-size: 0.72rem;
    color: #718096;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dcard__meta span i {
    color: #304aca;
    font-size: 0.65rem;
}

.dcard__footer {
    padding: 0.85rem 1.1rem;
    border-top: 1px solid #eef2f6;
    background: #fafbfc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.dcard__price {
    font-size: 0.95rem;
    font-weight: 800;
    color: #304aca;
    white-space: nowrap;
}

.dcard__price small {
    font-size: 0.65rem;
    font-weight: 500;
    color: #718096;
}

.dcard__enroll {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #304aca, #0099ff);
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s, box-shadow 0.2s;
}

.dcard__enroll:hover {
    color: #fff;
    opacity: 0.88;
    box-shadow: 0 4px 14px rgba(48, 74, 202, 0.35);
}

/* =============================================
   LIST VIEW
   ============================================= */
.list-view .dcard {
    flex-direction: row;
    height: auto;
}

.list-view .dcard__thumb-wrap {
    width: 200px;
    min-width: 200px;
    height: auto;
    min-height: 140px;
    flex-shrink: 0;
}

.list-view .dcard__footer {
    flex-direction: column;
    justify-content: center;
    border-top: none;
    border-right: 1px solid #eef2f6;
    min-width: 150px;
}

/* =============================================
   PAGINATION
   ============================================= */
.dept-pagination .page-item .page-link {
    border-radius: 10px !important;
    border: 1.5px solid #e2e8f0;
    color: #4a5568;
    font-size: 0.88rem;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0 3px;
    transition: all 0.2s;
    font-family: inherit;
}

.dept-pagination .page-item .page-link:hover {
    background: #eef2f8;
    border-color: #304aca;
    color: #304aca;
}

.dept-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #304aca, #0099ff);
    border-color: transparent;
    color: #fff;
    box-shadow: none;
}

.dept-pagination .page-item.disabled .page-link {
    border: none;
    background: transparent;
    color: #adb5bd;
}

/* =============================================
   DARK MODE
   ============================================= */
body.dark-mode .page-title {
    background: linear-gradient(135deg, #13132b, #1a1a3a);
}

body.dark-mode .breadcrumb-nav .breadcrumb-item a {
    color: #a0aec0;
}

body.dark-mode .breadcrumb-nav .breadcrumb-item.active {
    color: #e2e8f0;
}

body.dark-mode .dept-main {
    background: #0d0d1f;
}

body.dark-mode .dept-widget {
    background: #1a1a2e;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

body.dark-mode .dept-widget__title {
    color: #f7fafc;
}

body.dark-mode .dept-search {
    border-color: #2d3748;
}

body.dark-mode .dept-search__input {
    color: #e2e8f0;
}

body.dark-mode .dept-cat-list__item {
    color: #a0aec0;
}

body.dark-mode .dept-cat-list__item:hover,
body.dark-mode .dept-cat-list__item.active {
    background: rgba(128, 152, 249, 0.12);
    color: #8098f9;
}

body.dark-mode .dept-cat-list__count {
    background: #252540;
    color: #718096;
}

body.dark-mode .dept-toolbar {
    background: #1a1a2e;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

body.dark-mode .dept-toolbar__count {
    color: #a0aec0;
}

body.dark-mode .dept-sort {
    background: #252540;
    border-color: #2d3748;
    color: #a0aec0;
}

body.dark-mode .dept-view-toggle {
    border-color: #2d3748;
}

body.dark-mode .dcard {
    background: #1a1a2e;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

body.dark-mode .dcard:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

body.dark-mode .dcard__cat {
    background: rgba(128, 152, 249, 0.15);
    color: #8098f9;
}

body.dark-mode .dcard__title a {
    color: #f7fafc;
}

body.dark-mode .dcard__title a:hover {
    color: #8098f9;
}

body.dark-mode .dcard__meta span {
    color: #a0aec0;
}

body.dark-mode .dcard__footer {
    background: #15152a;
    border-top-color: #252540;
}

body.dark-mode .dcard__price {
    color: #8098f9;
}

body.dark-mode .list-view .dcard__footer {
    border-right-color: #252540;
    border-top: none;
}

body.dark-mode .dept-pagination .page-item .page-link {
    background: #1a1a2e;
    border-color: #2d3748;
    color: #a0aec0;
}

body.dark-mode .dept-pagination .page-item .page-link:hover {
    background: #252540;
    border-color: #304aca;
    color: #8098f9;
}

body.dark-mode .dept-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #304aca, #0099ff);
    color: #fff;
    border-color: transparent;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .page-title {
        padding: 45px 0;
        text-align: center;
    }

    .page-title-inner {
        align-items: center;
    }

    .breadcrumb-title {
        font-size: 1.55rem;
    }

    .breadcrumb-nav .breadcrumb {
        justify-content: center;
    }

    .dept-hero {
        padding: 2.5rem 0 2rem;
    }

    .dept-hero__stats {
        padding: 0.5rem 1rem;
    }

    .dept-stat {
        padding: 0 0.75rem;
    }

    .dept-stat__num {
        font-size: 1rem;
    }

    .dept-main {
        padding: 1.5rem 0 3rem;
    }

    /* ONE card per row on mobile */
    .dept-grid-row > [class*="col-"] {
        width: 100% !important;
        flex: 0 0 100%;
        max-width: 100%;
    }

    .dcard__footer {
        flex-direction: column;
        text-align: center;
    }

    .dcard__enroll {
        width: 100%;
        justify-content: center;
    }

    .list-view .dcard {
        flex-direction: column;
    }

    .list-view .dcard__thumb-wrap {
        width: 100%;
        min-height: 170px;
    }

    .list-view .dcard__footer {
        border-right: none;
        border-top: 1px solid #eef2f6;
        flex-direction: row;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    /* Two cards per row on tablet */
    .dept-grid-row > [class*="col-"] {
        width: 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }
}


/* =============================================
   Licenses Section
   ============================================= */

.licenses-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fc 0%, #eef2f8 100%);
}

/* Section Header */
.licenses-section .section-header-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #304aca, #0099ff);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(48, 74, 202, 0.25);
}

.licenses-section .section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #191f3c;
    margin: 0;
    line-height: 1.2;
}

.licenses-section .section-subtitle {
    font-size: 13px;
    color: #304aca;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 4px 0 0;
}

/* License Card */
.license-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(48, 74, 202, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    height: 100%;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.license-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(48, 74, 202, 0.04), rgba(0, 153, 255, 0.04));
    opacity: 0;
    transition: opacity 0.3s ease !important;
}

.license-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(48, 74, 202, 0.18);
    border-color: rgba(48, 74, 202, 0.25);
    transition: 0.5s ease !important;
}

.license-card:hover::before {
    opacity: 1;
}

/* Logo wrapper */
.license-logo-wrap {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #f0f4ff;
    border: 3px solid #e0e8ff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.35s ease;
    position: relative;
    z-index: 1;
}

.license-card:hover .license-logo-wrap {
    border-color: #304aca;
    background: #e8edff;
    transform: scale(1.06) rotate(-3deg);
    box-shadow: 0 6px 20px rgba(48, 74, 202, 0.2);
}

.license-logo-wrap img {
    width: 100%;
    height: 100%;
    background-size: cover;
    transition: transform 0.35s ease !important;
}

.license-card:hover .license-logo-wrap img {
    transform: scale(1.08);
}

/* View badge on hover */
.license-card .view-badge {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    opacity: 0;
    background: linear-gradient(135deg, #304aca, #0099ff);
    color: white;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 30px;
    white-space: nowrap;
    transition: all 0.3s ease !important;
    z-index: 2;
}

.license-card:hover .view-badge {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    transition: 0.5s ease !important;
}

/* Modal overrides */
.modal-dialog-license {
    max-width: 850px;
}

.modal-content-license {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    background: #fff;
    padding: 8px;
}

.modal-content-license img {
    border-radius: 14px;
    width: 100%;
    height: auto;
    display: block;
    transition: 0.5s ease !important;
}

/* Close button in modal */
.modal-close-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease !important;
    z-index: 10;
}

.modal-close-btn:hover {
    background: rgba(0, 0, 0, 0.75);
    transition: 0.5s ease !important;
}

/* =============================================
   Dark Mode
   ============================================= */
body.dark-mode .licenses-section {
    background: linear-gradient(135deg, #0f0f1a, #13132b);
}

body.dark-mode .licenses-section .section-title {
    color: #f7fafc;
}

body.dark-mode .license-card {
    background: #1a1a2e;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

body.dark-mode .license-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    border-color: rgba(128, 152, 249, 0.3);
    transition: 0.5s ease;
}

body.dark-mode .license-logo-wrap {
    background: #252540;
    border-color: #2e2e50;
}

body.dark-mode .license-card:hover .license-logo-wrap {
    border-color: #8098f9;
    background: #1e1e3a;
    transition: 0.5s ease;
}

body.dark-mode .modal-content-license {
    background: #1a1a2e;
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 768px) {
    .licenses-section {
        padding: 2.5rem 0;
    }

    .licenses-section .section-title {
        font-size: 1.4rem;
    }

    .license-logo-wrap {
        width: 190px !important;
        height: 190px !important;
    }

    .license-card {
        padding: 1.25rem 0.75rem;
    }
}

@media (max-width: 576px) {
    .license-logo-wrap {
        width: 165px !important;
        height: 165px !important;
    }
}


/* =============================================
   Course Detail Page — course-detail.css
   ============================================= */

/* ---- Hero ---- */
.cd-hero {
    position: relative;
    display: flex;
    align-items: center;
    height: 600px;
    width: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
}

@media (max-width: 768px) {
    .cd-hero {
        aspect-ratio: unset;
        min-height: 480px;
    }
}

.cd-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
    rgba(10, 17, 50, 0.88) 0%,
    rgba(20, 40, 120, 0.70) 60%,
    rgba(0, 100, 200, 0.45) 100%);
}

.cd-hero__inner {
    position: relative;
    z-index: 2;
    padding: 3.5rem 0 3rem;
    direction: rtl;
}

.cd-hero__breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 1rem;
}

.cd-hero__breadcrumb a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: color 0.2s;
}

.cd-hero__breadcrumb a:hover { color: #fff; }

.cd-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 30px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 1rem;
    backdrop-filter: blur(4px);
}

.cd-hero__title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 0.75rem;
}

.cd-hero__desc {
    font-size: 0.95rem;
    line-height: 1.85;
    color: rgba(255,255,255,0.75);
    max-width: 620px;
}

.cd-hero__stats {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    margin-top: 1.5rem;
    backdrop-filter: blur(4px);
}

.cd-hero__stat {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.8);
    padding: 0 1rem;
}

.cd-hero__stat:not(:last-child) {
    border-left: 1px solid rgba(255,255,255,0.18);
}

.cd-hero__stat i { color: #5b8af5; font-size: 0.9rem; }

/* ---- Main Layout ---- */
.cd-main {
    background: linear-gradient(135deg, #f8f9fc 0%, #eef2f8 100%);
    padding: 2.5rem 0 5rem;
    min-height: 60vh;
}

/* ---- Description box ---- */
.cd-desc-box {
    background: #fff;
    border-radius: 18px;
    padding: 1.75rem 2rem;
    box-shadow: 0 4px 20px rgba(48, 74, 202, 0.07);
    margin-bottom: 1.5rem;
    line-height: 1.9;
    font-size: 0.95rem;
    color: #374151;
    direction: rtl;
}

/* ---- Section header ---- */
.cd-section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
    direction: rtl;
}

.cd-section-head__icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: linear-gradient(135deg, #304aca, #0099ff);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(48,74,202,0.25);
}

.cd-section-head__title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #191f3c;
    margin: 0;
    line-height: 1.2;
}

.cd-section-head__sub {
    font-size: 12px;
    font-weight: 600;
    color: #304aca;
    letter-spacing: 1px;
    margin: 3px 0 0;
}

/* ---- Course Card ---- */
.cd-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 22px rgba(48,74,202,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    direction: rtl;
    display: flex;
    flex-direction: column;
}

.cd-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 38px rgba(48,74,202,0.15);
}

/* Thumbnail */
.cd-card__thumb {
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    height: 200px;
    flex-shrink: 0;
}

.cd-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.cd-card:hover .cd-card__thumb img {
    transform: scale(1.05);
}

.cd-card__thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,25,80,0.55) 0%, transparent 55%);
    pointer-events: none;
}

.cd-card__code {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 13px;
    background: linear-gradient(135deg, #304aca, #0099ff);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

/* Body */
.cd-card__body {
    padding: 1.25rem 1.4rem 0.85rem;
    flex: 1;
}

.cd-card__title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #191f3c;
    margin-bottom: 0.5rem;
    line-height: 1.45;
}

.cd-card__teacher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #4a5568;
    margin-bottom: 1rem;
    background: rgba(48,74,202,0.07);
    padding: 4px 12px;
    border-radius: 30px;
}

.cd-card__teacher i { color: #304aca; font-size: 0.75rem; }

/* Info rows */
.cd-card__info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 1rem;
}

.cd-info-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.83rem;
    color: #4a5568;
}

.cd-info-row i {
    color: #304aca;
    font-size: 0.82rem;
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

/* Meta badges */
.cd-card__meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eef2f6;
}

.cd-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.72rem;
    font-weight: 600;
}

.cd-meta-badge--session {
    background: rgba(0,153,255,0.1);
    color: #0077cc;
}

.cd-meta-badge--student {
    background: rgba(40,167,69,0.1);
    color: #1a7a36;
}

.cd-meta-badge--gender {
    background: rgba(128,74,202,0.1);
    color: #6a3baa;
}

/* Footer */
.cd-card__footer {
    padding: 1rem 1.4rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.cd-card__price {
    font-size: 1.35rem;
    font-weight: 800;
    color: #304aca;
    white-space: nowrap;
}

.cd-card__price small {
    font-size: 0.78rem;
    font-weight: 500;
    color: #718096;
    margin-right: 4px;
}

/* CTA Buttons */
.btn-cd-enroll {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #304aca, #0099ff);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.25s ease, box-shadow 0.25s ease;
    white-space: nowrap;
}

.btn-cd-enroll:hover {
    opacity: 0.88;
    color: #fff;
    box-shadow: 0 6px 18px rgba(48,74,202,0.35);
}

.btn-cd-login {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #0f6e4a, #22c55e);
    border: none;
    text-decoration: none;
    transition: opacity 0.25s ease, box-shadow 0.25s ease;
    white-space: nowrap;
}

.btn-cd-login:hover {
    opacity: 0.88;
    color: #fff;
    box-shadow: 0 6px 18px rgba(34,197,94,0.35);
}

.badge-enrolled {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(40,167,69,0.12);
    color: #1a7a36;
    border: 1.5px solid rgba(40,167,69,0.25);
}

/* ---- Empty state ---- */
.cd-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: #718096;
}

.cd-empty__icon {
    font-size: 3rem;
    color: #cbd5e0;
    margin-bottom: 1rem;
}

.cd-empty__text {
    font-size: 1rem;
    font-weight: 600;
}

/* ---- Alert ---- */
.cd-alert-danger {
    background: rgba(220,53,69,0.08);
    border: 1.5px solid rgba(220,53,69,0.25);
    color: #a12030;
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
    direction: rtl;
}

/* ---- Dark Mode ---- */
body.dark-mode .cd-main {
    background: linear-gradient(135deg, #0f0f1a, #13132b);
}

body.dark-mode .cd-desc-box {
    background: #1a1a2e;
    color: #cbd5e0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

body.dark-mode .cd-section-head__title { color: #f7fafc; }

body.dark-mode .cd-card {
    background: #1a1a2e;
    box-shadow: 0 4px 22px rgba(0,0,0,0.3);
}

body.dark-mode .cd-card:hover {
    box-shadow: 0 14px 38px rgba(0,0,0,0.45);
}

body.dark-mode .cd-card__title { color: #f7fafc; }
body.dark-mode .cd-card__teacher { color: #a0aec0; background: rgba(128,152,249,0.12); }
body.dark-mode .cd-card__teacher i { color: #8098f9; }
body.dark-mode .cd-info-row { color: #a0aec0; }
body.dark-mode .cd-info-row i { color: #8098f9; }
body.dark-mode .cd-card__meta { border-bottom-color: #252540; }
body.dark-mode .cd-meta-badge--session { background: rgba(0,153,255,0.15); color: #4dabf7; }
body.dark-mode .cd-meta-badge--student { background: rgba(81,207,102,0.15); color: #51cf66; }
body.dark-mode .cd-meta-badge--gender { background: rgba(180,130,255,0.15); color: #c084fc; }
body.dark-mode .cd-card__footer { background: #15152a; }
body.dark-mode .cd-card__price { color: #8098f9; }

body.dark-mode .cd-alert-danger {
    background: rgba(255,107,107,0.1);
    border-color: rgba(255,107,107,0.25);
    color: #ff9999;
}

body.dark-mode .cd-empty { color: #4a5578; }
body.dark-mode .cd-empty__icon { color: #252540; }

body.dark-mode .badge-enrolled {
    background: rgba(81,207,102,0.12);
    color: #51cf66;
    border-color: rgba(81,207,102,0.25);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .cd-hero__inner { padding: 2.5rem 0 2rem; }
    .cd-hero__desc { font-size: 0.88rem; }
    .cd-hero__stats { flex-wrap: wrap; gap: 6px; }
    .cd-hero__stat:not(:last-child) { border-left: none; }
    .cd-card__thumb { height: 180px; }
    .cd-card__footer { flex-direction: column; align-items: stretch; text-align: center; }
    .btn-cd-enroll,
    .btn-cd-login { width: 100%; justify-content: center; }
}

@media (max-width: 576px) {
    .cd-card__thumb { height: 160px; }
    .cd-card__price { font-size: 1.15rem; }
}


/* =============================================
   About Page — about.css
   رنگ‌بندی و فونت هماهنگ با پروژه دانشجویار
   ============================================= */

/* ---- Hero ---- */
.ab-hero {
    position: relative;
    background: linear-gradient(135deg, #0a0f2e 0%, #0d1a6e 50%, #0a58ca 100%);
    overflow: hidden;
    padding: 5rem 0 4rem;
    direction: rtl;
}

.ab-hero__particles span {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: ab-float 7s ease-in-out infinite;
}
.ab-hero__particles span:nth-child(1)  { width:180px; height:180px; top:-60px;  right:-60px;  animation-delay:0s; }
.ab-hero__particles span:nth-child(2)  { width:120px; height:120px; bottom:30px; left:5%;      animation-delay:1.5s; }
.ab-hero__particles span:nth-child(3)  { width:60px;  height:60px;  top:40%;    right:25%;    animation-delay:0.8s; }
.ab-hero__particles span:nth-child(4)  { width:90px;  height:90px;  bottom:-30px; right:30%;  animation-delay:2.5s; }
.ab-hero__particles span:nth-child(5)  { width:40px;  height:40px;  top:20%;    left:20%;     animation-delay:3.5s; }

@keyframes ab-float {
    0%, 100% { transform: translateY(0) scale(1); opacity: .5; }
    50%       { transform: translateY(-18px) scale(1.08); opacity: .9; }
}

.ab-hero__inner {
    position: relative;
    z-index: 2;
}

.ab-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 30px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.25rem;
    backdrop-filter: blur(4px);
}

.ab-hero__eyebrow i { color: #5b8af5; }

.ab-hero__title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 1.25rem;
}

.ab-hero__title span {
    position: relative;
    display: inline-block;
    color: #5b8af5;
}

.ab-hero__title span::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(91, 138, 245, 0.3);
    border-radius: 3px;
    z-index: -1;
}

.ab-hero__desc {
    font-size: 1rem;
    line-height: 1.95;
    color: rgba(255,255,255,0.72);
    max-width: 560px;
    margin-bottom: 2rem;
}

/* Hero image card */
.ab-hero__img-wrap {
    position: relative;
}

.ab-hero__img-card {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}

.ab-hero__img-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* Floating info badge */
.ab-hero__float {
    position: absolute;
    bottom: -18px;
    right: 24px;
    background: #fff;
    border-radius: 16px;
    padding: 14px 20px;
    box-shadow: 0 12px 30px rgba(48,74,202,0.22);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 180px;
}

.ab-hero__float-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #304aca, #0099ff);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ab-hero__float-icon i { color: #fff; font-size: 1.1rem; }

.ab-hero__float-num {
    font-size: 1.35rem;
    font-weight: 800;
    color: #191f3c;
    line-height: 1;
}

.ab-hero__float-lbl {
    font-size: 0.72rem;
    color: #718096;
    margin-top: 3px;
}

/* ---- Stats Section ---- */
/* =========================================================
   AB Stats — نسخه جدید
   پالت رنگی حفظ شده: #304aca -> #0a53be
   ========================================================= */

.ab-stats {
    padding: 0;
    position: relative;
    overflow: hidden;
}

.ab-stats__inner {
    border-radius: 28px;
    padding: 3.5rem 2rem;
    transform: translateY(-40px);
    direction: rtl;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.ab-stats__inner::before,
.ab-stats__inner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
}

.ab-stats__inner::before {
    width: 280px;
    height: 280px;
    background: rgba(255, 255, 255, 0.12);
    top: -120px;
    right: -80px;
}

.ab-stats__inner::after {
    width: 220px;
    height: 220px;
    background: rgba(255, 255, 255, 0.08);
    bottom: -100px;
    left: -60px;
}

.ab-stats__pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.ab-stats__inner .row {
    position: relative;
    z-index: 1;
}


.ab-stat-item {
    text-align: center;
    padding: 1.5rem 1rem;
    position: relative;
    background: #0a53be;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin: 0 8px;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.ab-stat-item:hover {
    transform: translateY(-8px);
}

.ab-stat-item:not(:last-child)::after {
    content: none;
}

@media (max-width: 767px) {
    .ab-stat-item {
        margin: 8px 6px;
    }
}


.ab-stat__icon-wrap {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ab-stat-item:hover .ab-stat__icon-wrap {
    transform: scale(1.08) rotate(-6deg);
}

.ab-stat__icon {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 0;
    display: block;
}


.ab-stat__num {
    display: block;
    font-size: 2.75rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -1px;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
    font-variant-numeric: tabular-nums;
}

.ab-stat__plus {
    font-size: 1.7rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 700;
}


.ab-stat__lbl {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding-top: 10px;
}

.ab-stat__lbl::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.4);
}

/* ---------- انیمیشن ورود ---------- */

.ab-stat-item {
    opacity: 0;
    animation: ab-fade-up 0.6s ease forwards;
}

.ab-stat-item:nth-child(1) { animation-delay: 0.05s; }
.ab-stat-item:nth-child(2) { animation-delay: 0.15s; }
.ab-stat-item:nth-child(3) { animation-delay: 0.25s; }
.ab-stat-item:nth-child(4) { animation-delay: 0.35s; }

@keyframes ab-fade-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ab-stat-item {
        animation: none;
        opacity: 1;
    }
}

/* ---- About Content ---- */
.ab-content {
    background: linear-gradient(135deg, #f8f9fc 0%, #eef2f8 100%);
    padding: 1rem 0 5rem;
    direction: rtl;
}

/* Section label */
.ab-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #304aca;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.ab-label::before {
    content: '';
    width: 24px;
    height: 3px;
    background: linear-gradient(135deg, #304aca, #0099ff);
    border-radius: 2px;
}

/* Mission card */
.ab-mission {
    background: #fff;
    border-radius: 22px;
    padding: 2.5rem;
    box-shadow: 0 6px 28px rgba(48,74,202,0.08);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ab-mission:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(48,74,202,0.14);
}

.ab-mission__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.4rem;
}

.ab-mission__icon--blue {
    background: linear-gradient(135deg, #304aca, #0099ff);
    color: #fff;
}

.ab-mission__icon--purple {
    background: linear-gradient(135deg, #6a3baa, #c084fc);
    color: #fff;
}

.ab-mission__icon--green {
    background: linear-gradient(135deg, #0f6e4a, #22c55e);
    color: #fff;
}

.ab-mission__title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #191f3c;
    margin-bottom: 0.75rem;
}

.ab-mission__text {
    font-size: 0.9rem;
    line-height: 1.9;
    color: #4a5568;
    margin: 0;
}

/* ---- Values ---- */
.ab-value-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 1.1rem 0;
    border-bottom: 1px solid #eef2f6;
    transition: background 0.2s;
    border-radius: 10px;
    padding-right: 12px;
    padding-left: 8px;
}

.ab-value-row:last-child { border-bottom: none; }

.ab-value-row:hover { background: rgba(48,74,202,0.04); }

.ab-value__dot {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #304aca, #0099ff);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ab-value__dot i { color: #fff; font-size: 0.85rem; }

.ab-value__title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #191f3c;
    margin-bottom: 3px;
}

.ab-value__desc {
    font-size: 0.82rem;
    color: #718096;
    line-height: 1.65;
    margin: 0;
}

/* Sidebar card */
.ab-side-card {
    background: #fff;
    border-radius: 22px;
    padding: 2rem;
    box-shadow: 0 6px 28px rgba(48,74,202,0.08);
    margin-bottom: 1.5rem;
}

.ab-side-card__title {
    font-size: 1rem;
    font-weight: 800;
    color: #191f3c;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ab-side-card__title i { color: #304aca; }

/* Timeline */
.ab-timeline {
    position: relative;
    padding-right: 20px;
}

.ab-timeline::before {
    content: '';
    position: absolute;
    right: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, #304aca, #0099ff, rgba(0,153,255,0.1));
    border-radius: 2px;
}

.ab-tl-item {
    position: relative;
    margin-bottom: 1.5rem;
    padding-right: 22px;
}

.ab-tl-item:last-child { margin-bottom: 0; }

.ab-tl-item::before {
    content: '';
    position: absolute;
    right: -14px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #304aca, #0099ff);
    border: 2px solid #fff;
    box-shadow: 0 0 0 3px rgba(48,74,202,0.2);
}

.ab-tl__year {
    font-size: 0.72rem;
    font-weight: 700;
    color: #304aca;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.ab-tl__text {
    font-size: 0.85rem;
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

/* ---- Contact Section ---- */
.ab-contact {
    background: #fff;
    padding: 5rem 0;
    direction: rtl;
}

.ab-contact__head {
    text-align: center;
    margin-bottom: 3rem;
}

.ab-contact__title {
    font-size: 2rem;
    font-weight: 800;
    color: #191f3c;
    margin-bottom: 0.5rem;
}

.ab-contact__sub {
    font-size: 0.95rem;
    color: #718096;
}

/* Info cards */
.ab-info-card {
    background: linear-gradient(135deg, #f8f9fc, #eef2f8);
    border-radius: 18px;
    padding: 1.75rem 1.5rem;
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1.5px solid transparent;
}

.ab-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 35px rgba(48,74,202,0.12);
    border-color: rgba(48,74,202,0.15);
}

.ab-info-card__icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(135deg, #304aca, #0099ff);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.3rem;
    color: #fff;
    box-shadow: 0 8px 20px rgba(48,74,202,0.3);
}

.ab-info-card__title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #304aca;
    margin-bottom: 0.4rem;
}

.ab-info-card__val {
    font-size: 0.95rem;
    font-weight: 600;
    color: #191f3c;
    margin: 0;
}

/* Contact Form */
.ab-form-wrap {
    background: linear-gradient(135deg, #f8f9fc, #eef2f8);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 6px 28px rgba(48,74,202,0.08);
}

.ab-form-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 6px;
    display: block;
}

.ab-form-input {
    width: 100%;
    height: 48px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 0.9rem;
    color: #191f3c;
    background: #fff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    outline: none;
    font-family: inherit;
    direction: rtl;
}

.ab-form-input:focus {
    border-color: #304aca;
    box-shadow: 0 0 0 3px rgba(48,74,202,0.12);
}

.ab-form-textarea {
    width: 100%;
    min-height: 130px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 0.9rem;
    color: #191f3c;
    background: #fff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    outline: none;
    resize: vertical;
    font-family: inherit;
    direction: rtl;
    line-height: 1.8;
}

.ab-form-textarea:focus {
    border-color: #304aca;
    box-shadow: 0 0 0 3px rgba(48,74,202,0.12);
}

.ab-form-select {
    width: 100%;
    height: 48px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 0.9rem;
    color: #191f3c;
    background: #fff;
    outline: none;
    font-family: inherit;
    direction: rtl;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23718096' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    transition: border-color 0.25s;
}

.ab-form-select:focus {
    border-color: #304aca;
    box-shadow: 0 0 0 3px rgba(48,74,202,0.12);
}

.ab-form-group { margin-bottom: 1.1rem; }

.btn-ab-submit {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, #304aca, #0099ff);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.25s, box-shadow 0.25s, transform 0.2s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-ab-submit:hover {
    opacity: 0.9;
    box-shadow: 0 8px 24px rgba(48,74,202,0.35);
    transform: translateY(-2px);
}

.btn-ab-submit:active { transform: translateY(0); }

/* Map placeholder */
.ab-map {
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    min-height: 320px;
    background: linear-gradient(135deg, #eef2f8, #e0e8ff);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    color: #304aca;
    border: 2px dashed rgba(48,74,202,0.2);
}

.ab-map i { font-size: 3rem; opacity: 0.5; }
.ab-map p { font-size: 0.88rem; color: #718096; margin: 0; }

/* ---- Dark Mode ---- */
body.dark-mode .ab-hero {
    background: linear-gradient(135deg, #05071a 0%, #080f40 50%, #0a2a72 100%);
}


body.dark-mode .ab-content {
    background: linear-gradient(135deg, #0f0f1a, #13132b);
}

body.dark-mode .ab-mission {
    background: #1a1a2e;
    box-shadow: 0 6px 28px rgba(0,0,0,0.3);
}

body.dark-mode .ab-mission__title { color: #f7fafc; }
body.dark-mode .ab-mission__text  { color: #a0aec0; }

body.dark-mode .ab-value__title { color: #f7fafc; }
body.dark-mode .ab-value__desc  { color: #718096; }
body.dark-mode .ab-value-row { border-bottom-color: #252540; }
body.dark-mode .ab-value-row:hover { background: rgba(128,152,249,0.06); }

body.dark-mode .ab-side-card {
    background: #1a1a2e;
    box-shadow: 0 6px 28px rgba(0,0,0,0.3);
}

body.dark-mode .ab-side-card__title { color: #f7fafc; }
body.dark-mode .ab-tl__text { color: #a0aec0; }
body.dark-mode .ab-tl-item::before { border-color: #1a1a2e; }

body.dark-mode .ab-contact { background: #0f0f1a; }
body.dark-mode .ab-contact__title { color: #f7fafc; }

body.dark-mode .ab-info-card {
    background: linear-gradient(135deg, #1a1a2e, #15152a);
}

body.dark-mode .ab-info-card:hover {
    box-shadow: 0 14px 35px rgba(0,0,0,0.4);
    border-color: rgba(128,152,249,0.2);
}

body.dark-mode .ab-info-card__val { color: #f7fafc; }

body.dark-mode .ab-form-wrap {
    background: linear-gradient(135deg, #1a1a2e, #15152a);
    box-shadow: 0 6px 28px rgba(0,0,0,0.3);
}

body.dark-mode .ab-form-label { color: #cbd5e0; }

body.dark-mode .ab-form-input,
body.dark-mode .ab-form-textarea,
body.dark-mode .ab-form-select {
    background: #0f0f1a;
    border-color: #2d3748;
    color: #e2e8f0;
}

body.dark-mode .ab-form-input:focus,
body.dark-mode .ab-form-textarea:focus,
body.dark-mode .ab-form-select:focus {
    border-color: #8098f9;
    box-shadow: 0 0 0 3px rgba(128,152,249,0.15);
}

body.dark-mode .ab-map {
    background: linear-gradient(135deg, #1a1a2e, #15152a);
    border-color: rgba(128,152,249,0.2);
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .ab-hero { padding: 4rem 0 3rem; }
    .ab-hero__float { display: none; }
    .ab-stats__inner { transform: translateY(-20px); }
}

@media (max-width: 768px) {
    .ab-hero { padding: 3rem 0 2.5rem; }
    .ab-stats__inner { padding: 2rem 1rem; }
    .ab-stat__num { font-size: 2rem; }
    .ab-stat-item:not(:last-child)::after { display: none; }
    .ab-form-wrap { padding: 1.75rem 1.25rem; }
    .ab-contact { padding: 3.5rem 0; }
    .ab-contact__title { font-size: 1.5rem; }
}


/*News*/

/* ======================
   News Page
====================== */

.news-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    transition: .35s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,.08);
    height: 100%;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(48,74,202,.18);
}

/* Image */

.news-image {
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 220px;
    background-size: cover;
    transition: .5s;
}

.news-card:hover img {
    transform: scale(1.08);
}

.news-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(
            135deg,
            #304aca,
            #0099ff
    );
    color: #fff;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
}

/* Body */

.news-body {
    padding: 1.3rem;
}

.news-title {
    min-height: 70px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.news-title a {
    text-decoration: none;
    color: #1a202c;
    font-size: 15px;
    font-weight: 700;
    transition: .3s;
}

.news-title a:hover {
    color: #304aca;
}

/* Footer */

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-news {
    width: 100%;
    text-align: center;
    background: linear-gradient(
            135deg,
            #304aca,
            #0099ff
    );
    color: #fff !important;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: .3s;
}

.btn-news:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(48,74,202,.25);
}

/* Sidebar */

.page-sidebar {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,.08);
}

.sidebar-widgets {
    padding: 25px;
}

.sidebar-widgets .form-control {
    height: 50px;
    border-radius: 14px;
    border: 2px solid #edf2f7;
    color: #0a0f2e;
}

.sidebar-widgets .form-control:focus {
    border-color: #304aca;
    box-shadow: none;
}

.theme-filter-btn {
    background: linear-gradient(
            135deg,
            #304aca,
            #0099ff
    );
    border: none;
    border-radius: 14px;
    height: 55px;
    font-weight: 700;
    color: #f7fafc!important;
}

/* Top Box */

.short_wraping {
    background: #fff;
    padding: 18px 25px;
    border-radius: 18px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,.06);
}

/* Empty */

.empty-news {
    background: #fff;
    text-align: center;
    padding: 60px 20px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,.08);
    color: #304aca;
}

/* Pagination */

.pagination {
    justify-content: center;
    margin-top: 30px;
}

.page-link {
    border-radius: 12px !important;
    margin: 0 4px;
    border: none;
    color: #304aca;
}

.page-item.active .page-link {
    background: linear-gradient(
            135deg,
            #304aca,
            #0099ff
    );
}

/* Page Title */

.page-title {
    padding: 40px 0;
}

.breadcrumb-title {
    font-weight: 800;
    color: #ffffff;
}

/* Dark Mode */

body.dark-mode .news-card,
body.dark-mode .page-sidebar,
body.dark-mode .short_wraping,
body.dark-mode .empty-news {
    background: #1a1a2e;
}

body.dark-mode .news-title a {
    color: #f7fafc;
}

body.dark-mode .news-title a:hover {
    color: #0099ff;
}

body.dark-mode .short_wraping h6 {
    color: #e2e8f0;
}

body.dark-mode .page-sidebar .form-control {
    background: #13132b;
    border-color: #2d3748;
    color: #fff;
}

body.dark-mode .empty-news {
    color: #0099ff;
}


/* =============================================
   Teacher Profile Page — teacher-style.css
   هماهنگ با پالت رنگی دانشجویار
   ============================================= */

/* ==================== HERO ==================== */
.teacher-hero {
    position: relative;
    background: linear-gradient(135deg, #0a0f2e 0%, #0d1a6e 55%, #0a58ca 100%);
    padding: 5rem 0 7rem;
    overflow: hidden;
    direction: rtl;
}

/* Animated ambient blobs */
.th-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
}

.th-blob-1 {
    width: 500px;
    height: 500px;
    background: rgba(48, 74, 202, 0.35);
    top: -150px;
    left: -150px;
    animation: blobPulse 8s ease-in-out infinite;
}

.th-blob-2 {
    width: 350px;
    height: 350px;
    background: rgba(0, 153, 255, 0.25);
    bottom: -80px;
    right: 10%;
    animation: blobPulse 10s ease-in-out infinite reverse;
}

@keyframes blobPulse {
    0%, 100% { transform: scale(1) translate(0, 0); }
    50%       { transform: scale(1.12) translate(20px, -20px); }
}

/* Floating particles */
.th-particles span {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    animation: thFloat 7s ease-in-out infinite;
}
.th-particles span:nth-child(1) { width: 14px; height: 14px; top: 18%; right: 12%; animation-delay: 0s; }
.th-particles span:nth-child(2) { width:  8px; height:  8px; top: 65%; right: 35%; animation-delay: 1s; }
.th-particles span:nth-child(3) { width: 20px; height: 20px; top: 40%; left:  8%; animation-delay: 2s; }
.th-particles span:nth-child(4) { width:  6px; height:  6px; top: 75%; left: 22%; animation-delay: 0.5s; }
.th-particles span:nth-child(5) { width: 16px; height: 16px; top: 12%; left: 42%; animation-delay: 3s; }
.th-particles span:nth-child(6) { width: 10px; height: 10px; bottom: 15%; right: 8%; animation-delay: 1.5s; }

@keyframes thFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: .4; }
    50%       { transform: translateY(-18px) scale(1.1); opacity: .8; }
}

/* Wave bottom */
.th-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    color: #f8f9fc;
}
.th-wave svg { display: block; width: 100%; height: 70px; }

body.dark-mode .th-wave { color: #0f0f1a; }

/* ---- Breadcrumb ---- */
.th-breadcrumb {
    display: inline-flex;
    align-items: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    flex-wrap: wrap;
}
.th-breadcrumb a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: color 0.2s;
}
.th-breadcrumb a:hover { color: #fff; }
.th-breadcrumb span { color: rgba(255,255,255,0.85); }
.th-breadcrumb i { font-size: 0.65rem; }

/* ---- Avatar ---- */
.th-avatar-wrap {
    position: relative;
    display: inline-block;
}

.th-avatar-ring {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.18);
    animation: ringRotate 12s linear infinite;
}

.th-avatar-ring-2 {
    inset: -24px;
    border-color: rgba(0, 153, 255, 0.25);
    animation-duration: 18s;
    animation-direction: reverse;
}

@keyframes ringRotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.th-avatar-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255,255,255,0.2);
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
    display: block;
    position: relative;
    z-index: 2;
    transition: transform 0.4s ease!important;
}

.th-avatar-wrap:hover .th-avatar-img {
    transform: scale(1.04);
}

.th-status-badge {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: #22c55e;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(34,197,94,0.4);
}

.th-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    display: inline-block;
    animation: statusBlink 1.5s ease-in-out infinite;
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

/* ---- Quick Stats ---- */
.th-quick-stats {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 60px;
    padding: 0.6rem 1.5rem;
    backdrop-filter: blur(8px);
    gap: 0;
}

.th-qs-item {
    text-align: center;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.th-qs-num {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.th-qs-lbl {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.55);
}

.th-qs-divider {
    width: 1px;
    height: 30px;
    background: rgba(255,255,255,0.15);
    flex-shrink: 0;
}

/* ---- Info Column ---- */
.th-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 30px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.8);
    backdrop-filter: blur(4px);
}

.th-eyebrow i { color: #f59e0b; }

.th-name {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
}

.th-edu-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 18px;
    background: rgba(0,153,255,0.18);
    border: 1px solid rgba(0,153,255,0.3);
    border-radius: 30px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.85);
}

.th-edu-badge i { color: #5b8af5; }

.th-desc {
    font-size: 0.95rem;
    line-height: 1.95;
    color: rgba(255,255,255,0.7);
    max-width: 520px;
}

/* Tags */
.th-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.th-tag {
    padding: 5px 14px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 30px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.8);
    font-weight: 600;
    transition: all 0.25s ease;
    cursor: default;
}

.th-tag:hover {
    background: rgba(48,74,202,0.5);
    border-color: rgba(48,74,202,0.6);
    color: #fff;
}

/* Social buttons */
.th-socials {
    display: flex;
    gap: 10px;
}

.th-social-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.th-social-btn:hover {
    background: linear-gradient(135deg, #304aca, #0099ff);
    border-color: transparent;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(48,74,202,0.4);
    transition: 0.3s ease !important;
}

/* ==================== COURSES SECTION ==================== */
.tc-courses-section {
    background: linear-gradient(135deg, #f8f9fc 0%, #eef2f8 100%);
    padding: 4rem 0 5rem;
    direction: rtl;
}

body.dark-mode .tc-courses-section {
    background: linear-gradient(135deg, #0f0f1a, #13132b);
}

/* Section head */
.tc-section-head {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tc-section-icon {
    width: 55px;
    height: 55px;
    border-radius: 15px;
    background: linear-gradient(135deg, #304aca, #0099ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    box-shadow: 0 8px 20px rgba(48,74,202,0.3);
    flex-shrink: 0;
}

.tc-section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a202c;
    margin: 0;
}

body.dark-mode .tc-section-title { color: #f7fafc; }

.tc-section-sub {
    font-size: 13px;
    color: #304aca;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 4px 0 0;
}

body.dark-mode .tc-section-sub { color: #8098f9; }

/* ---- Course Card ---- */
.tc-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 22px rgba(48,74,202,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1.5px solid transparent;
    direction: rtl;
}

.tc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 42px rgba(48,74,202,0.16);
    border-color: rgba(48,74,202,0.12);
}

.tc-card-ended {
    opacity: 0.72;
    filter: saturate(0.6);
}

.tc-card-ended:hover {
    transform: none;
    box-shadow: 0 5px 22px rgba(48,74,202,0.08);
    border-color: transparent;
}

body.dark-mode .tc-card {
    background: #1a1a2e;
    box-shadow: 0 5px 22px rgba(0,0,0,0.3);
}

body.dark-mode .tc-card:hover {
    box-shadow: 0 18px 42px rgba(0,0,0,0.45);
    border-color: rgba(128,152,249,0.15);
    transition: 0.5s ease!important;
}

/* Thumbnail */
.tc-card-thumb {
    position: relative;
    overflow: hidden;
    height: 220px;
    flex-shrink: 0;
}

.tc-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease!important;
}

.tc-card:hover .tc-card-thumb img {
    transform: scale(1.06);
}

.tc-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,17,60,0.65) 0%, transparent 55%);
    pointer-events: none;
}

.tc-card-code {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 20px;
    letter-spacing: 0.5px;
    z-index: 2;
}

.tc-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    background: linear-gradient(135deg, #304aca, #0099ff);
    color: #fff;
    z-index: 2;
}

.tc-badge-hot { background: linear-gradient(135deg, #ff6b6b, #ee5a24) !important; }
.tc-badge-ended { background: rgba(0,0,0,0.45) !important; }

/* Body */
.tc-card-body {
    padding: 1.35rem 1.5rem 1rem;
    flex: 1;
}

.tc-card-title {
    font-size: 1rem;
    font-weight: 800;
    color: #191f3c;
    margin-bottom: 1rem;
    line-height: 1.55;
}

body.dark-mode .tc-card-title { color: #f7fafc; }

.tc-card-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.82rem;
    color: #4a5568;
    margin-bottom: 6px;
}

.tc-card-meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tc-card-meta-row i {
    color: #304aca;
    font-size: 0.78rem;
    width: 14px;
    text-align: center;
}

body.dark-mode .tc-card-meta-row { color: #a0aec0; }
body.dark-mode .tc-card-meta-row i { color: #8098f9; }

/* Meta badges */
.tc-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tc-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.72rem;
    font-weight: 600;
}

.tc-badge-session {
    background: rgba(0,153,255,0.1);
    color: #0077cc;
}

.tc-badge-student {
    background: rgba(40,167,69,0.1);
    color: #1a7a36;
}

.tc-badge-gender {
    background: rgba(128,74,202,0.1);
    color: #6a3baa;
}

body.dark-mode .tc-badge-session  { background: rgba(0,153,255,0.18);  color: #4dabf7; }
body.dark-mode .tc-badge-student  { background: rgba(81,207,102,0.18);  color: #51cf66; }
body.dark-mode .tc-badge-gender   { background: rgba(180,130,255,0.18); color: #c084fc; }

/* Footer */
.tc-card-footer {
    padding: 1rem 1.5rem 1.25rem;
    border-top: 1px solid #eef2f6;
    background: #fafbfc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

body.dark-mode .tc-card-footer {
    background: #15152a;
    border-top-color: #252540;
}

.tc-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.tc-price-num {
    font-size: 1.3rem;
    font-weight: 800;
    color: #304aca;
}

.tc-price-unit {
    font-size: 0.75rem;
    font-weight: 500;
    color: #718096;
}

body.dark-mode .tc-price-num { color: #8098f9; }

/* Action buttons */
.tc-btn-enroll {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #304aca, #0099ff);
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
    border: none;
}

.tc-btn-enroll:hover {
    color: #fff;
    opacity: 0.88;
    box-shadow: 0 6px 18px rgba(48,74,202,0.35);
    transform: translateY(-2px);
    transition: 0.3s!important;
}

.tc-btn-login {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #0f6e4a, #22c55e);
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.tc-btn-login:hover {
    color: #fff;
    opacity: 0.88;
    box-shadow: 0 6px 18px rgba(34,197,94,0.35);
    transform: translateY(-2px);
    transition: 0.3s!important;
}

.tc-badge-enrolled {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(34,197,94,0.1);
    color: #15803d;
    border: 1.5px solid rgba(34,197,94,0.25);
}

body.dark-mode .tc-badge-enrolled {
    background: rgba(81,207,102,0.12);
    color: #51cf66;
    border-color: rgba(81,207,102,0.25);
}

.tc-badge-ended-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(113,128,150,0.12);
    color: #718096;
    border: 1.5px solid rgba(113,128,150,0.2);
}

/* ---- Empty state ---- */
.tc-empty {
    text-align: center;
    padding: 5rem 1rem;
    color: #718096;
}

.tc-empty-icon {
    font-size: 3.5rem;
    color: #cbd5e0;
    margin-bottom: 1rem;
}

.tc-empty-text {
    font-size: 1rem;
    font-weight: 600;
}

body.dark-mode .tc-empty { color: #4a5578; }
body.dark-mode .tc-empty-icon { color: #252540; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 991px) {
    .teacher-hero { padding: 4rem 0 6rem; }
    .th-avatar-img { width: 160px; height: 160px; }
    .tc-section-title { font-size: 1.5rem; }
}

@media (max-width: 767px) {
    .teacher-hero { padding: 3rem 0 5.5rem; text-align: center; }
    .th-breadcrumb { justify-content: center; }
    .th-desc { margin-left: auto; margin-right: auto; }
    .th-tags { justify-content: center; }
    .th-socials { justify-content: center; }
    .tc-card-footer { flex-direction: column; align-items: stretch; }
    .tc-btn-enroll, .tc-btn-login { width: 100%; justify-content: center; }
    .tc-card-thumb { height: 190px; }
}

@media (max-width: 576px) {
    .th-avatar-img { width: 140px; height: 140px; }
    .th-quick-stats { padding: 0.5rem 1rem; }
    .th-qs-num { font-size: 1.1rem; }
}




/* =============================================
   News Detail Page — news-detail.css
   هماهنگ با پالت رنگی دانشجویار
   ============================================= */

/* ---- Page Title Hero ---- */
.nd-hero {
    position: relative;
    background: linear-gradient(135deg, #0a0f2e 0%, #0d1a6e 55%, #0a58ca 100%);
    padding: 4rem 0 5rem;
    overflow: hidden;
    direction: rtl;
}

.nd-hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(48, 74, 202, 0.2);
    border-radius: 50%;
    top: -200px;
    left: -150px;
    filter: blur(80px);
    pointer-events: none;
}

.nd-hero::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background: rgba(0, 153, 255, 0.18);
    border-radius: 50%;
    bottom: -100px;
    right: 8%;
    filter: blur(80px);
    pointer-events: none;
}

.nd-hero__particles span {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    animation: ndFloat 7s ease-in-out infinite;
    pointer-events: none;
}
.nd-hero__particles span:nth-child(1) { width: 14px; height: 14px; top: 18%; right: 12%; animation-delay: 0s; }
.nd-hero__particles span:nth-child(2) { width: 8px; height: 8px; top: 65%; right: 35%; animation-delay: 1s; }
.nd-hero__particles span:nth-child(3) { width: 20px; height: 20px; top: 40%; left: 8%; animation-delay: 2s; }
.nd-hero__particles span:nth-child(4) { width: 6px; height: 6px; top: 75%; left: 22%; animation-delay: 0.5s; }
.nd-hero__particles span:nth-child(5) { width: 16px; height: 16px; top: 12%; left: 42%; animation-delay: 3s; }

@keyframes ndFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.4; }
    50% { transform: translateY(-18px) scale(1.1); opacity: 0.8; }
}

.nd-hero__wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    color: #f0f3fa;
}
.nd-hero__wave svg { display: block; width: 100%; height: 60px; }

body.dark-mode .nd-hero__wave { color: #0f0f1a; }

.nd-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}
.nd-breadcrumb a { color: rgba(255, 255, 255, 0.55); text-decoration: none; transition: color 0.2s; }
.nd-breadcrumb a:hover { color: #fff; }
.nd-breadcrumb span { color: rgba(255, 255, 255, 0.9); }

.nd-hero__category {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    margin-bottom: 1rem;
}
.nd-hero__category i { color: #5b8af5; }

.nd-hero__title {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 1.5rem;
}

.nd-hero__meta {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    padding: 0.55rem 1.5rem;
    backdrop-filter: blur(4px);
    flex-wrap: wrap;
}

.nd-meta-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
    padding: 0 1rem;
}
.nd-meta-item:not(:last-child) {
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}
.nd-meta-item i { color: #5b8af5; font-size: 0.9rem; }

/* ---- Main Layout ---- */
.nd-main {
    background: #f0f3fa;
    padding: 2.5rem 0 5rem;
}
body.dark-mode .nd-main { background: linear-gradient(135deg, #0f0f1a, #13132b); }

/* ---- Article Body ---- */
.nd-article {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(48, 74, 202, 0.08);
    margin-bottom: 2rem;
}
body.dark-mode .nd-article { background: #1a1a2e; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3); }

.nd-article__image-wrap {
    position: relative;
    overflow: hidden;
    height: 500px;
}
.nd-article__image-wrap img {
    width: 100%;
    height: 100%;
    background-size: cover;
    display: block;
    transition: transform 0.6s ease;
}
.nd-article__image-wrap:hover img { transform: scale(1.03); }

.nd-article__image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 17, 60, 0.45) 0%, transparent 55%);
    pointer-events: none;
}

.nd-article__content {
    padding: 2.5rem;
    direction: rtl;
}

.nd-article__content h3.post-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #191f3c;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}
body.dark-mode .nd-article__content h3.post-title { color: #f7fafc; }

.nd-article__body {
    font-size: 1rem;
    line-height: 2;
    color: #374151;
    word-wrap: break-word;
}
body.dark-mode .nd-article__body { color: #cbd5e0; }

.nd-article__body p { margin-bottom: 1.25rem; }
.nd-article__body h2, .nd-article__body h3 { color: #191f3c; font-weight: 700; margin: 2rem 0 1rem; }
body.dark-mode .nd-article__body h2,
body.dark-mode .nd-article__body h3 { color: #f7fafc; }
.nd-article__body a { color: #304aca; text-decoration: none; border-bottom: 1.5px solid rgba(48, 74, 202, 0.3); transition: border-color 0.2s; }
.nd-article__body a:hover { border-color: #304aca; }
.nd-article__body img { border-radius: 16px; max-width: 100%; margin: 1.5rem 0; }
.nd-article__body blockquote {
    margin: 2rem 0;
    padding: 1.25rem 1.5rem 1.25rem 1.25rem;
    border-right: 4px solid #304aca;
    background: rgba(48, 74, 202, 0.06);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #4a5568;
}
body.dark-mode .nd-article__body blockquote { background: rgba(128, 152, 249, 0.1); color: #a0aec0; }

/* ---- Tags Row ---- */
.nd-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 1.25rem 2.5rem;
    border-top: 1px solid #eef2f6;
    direction: rtl;
}
body.dark-mode .nd-tags { border-top-color: #252540; }

.nd-tags__label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #4a5568;
}
body.dark-mode .nd-tags__label { color: #a0aec0; }

.nd-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    background: rgba(48, 74, 202, 0.08);
    color: #304aca;
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid rgba(48, 74, 202, 0.18);
}
.nd-tag:hover {
    background: linear-gradient(135deg, #304aca, #0099ff);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(48, 74, 202, 0.3);
}
body.dark-mode .nd-tag { background: rgba(128, 152, 249, 0.12); color: #8098f9; border-color: rgba(128, 152, 249, 0.2); }
body.dark-mode .nd-tag:hover { background: linear-gradient(135deg, #304aca, #0099ff); color: #fff; }

/* ---- Share Row ---- */
.nd-share {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1.25rem 2.5rem;
    border-top: 1px solid #eef2f6;
    direction: rtl;
    flex-wrap: wrap;
}
body.dark-mode .nd-share { border-top-color: #252540; }

.nd-share__label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #4a5568;
}
body.dark-mode .nd-share__label { color: #a0aec0; }

.nd-share-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}
.nd-share-btn--telegram { background: #26a5e4; }
.nd-share-btn--whatsapp { background: #25d366; }
.nd-share-btn--twitter { background: #1da1f2; }
.nd-share-btn--link { background: #304aca; }
.nd-share-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2); color: #fff; }

/* ---- Comments Section ---- */
.nd-comments {
    background: #fff;
    border-radius: 24px;
    padding: 2rem 2.5rem;
    box-shadow: 0 8px 30px rgba(48, 74, 202, 0.08);
    margin-bottom: 2rem;
    direction: rtl;
}
body.dark-mode .nd-comments { background: #1a1a2e; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3); }

.nd-comments__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 10px;
}

.nd-comments__title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #191f3c;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.nd-comments__title i { color: #304aca; }
body.dark-mode .nd-comments__title { color: #f7fafc; }

.nd-comments__count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: rgba(48, 74, 202, 0.08);
    color: #304aca;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 600;
}
body.dark-mode .nd-comments__count { background: rgba(128, 152, 249, 0.15); color: #8098f9; }

.nd-divider {
    border: none;
    height: 1px;
    background: #eef2f6;
    margin: 1.5rem 0;
}
body.dark-mode .nd-divider { background: #252540; }

/* Comment Form */
.nd-comment-form .nd-form-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 8px;
    display: block;
}
body.dark-mode .nd-comment-form .nd-form-label { color: #cbd5e0; }

.nd-form-textarea {
    width: 100%;
    min-height: 110px;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 0.9rem;
    color: #191f3c;
    background: #fafbfc;
    outline: none;
    resize: vertical;
    font-family: 'IRANSans', 'Vazir', Tahoma, sans-serif;
    direction: rtl;
    line-height: 1.85;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.nd-form-textarea:focus {
    border-color: #304aca;
    box-shadow: 0 0 0 3px rgba(48, 74, 202, 0.1);
    background: #fff;
}
body.dark-mode .nd-form-textarea {
    background: #0f0f1a;
    border-color: #2d3748;
    color: #e2e8f0;
}
body.dark-mode .nd-form-textarea:focus { border-color: #8098f9; box-shadow: 0 0 0 3px rgba(128, 152, 249, 0.15); background: #0a0a15; }

.btn-nd-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 28px;
    background: linear-gradient(135deg, #304aca, #0099ff);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
    font-family: 'IRANSans', 'Vazir', Tahoma, sans-serif;
}
.btn-nd-submit:hover {
    opacity: 0.88;
    box-shadow: 0 6px 18px rgba(48, 74, 202, 0.35);
    transform: translateY(-2px);
    color: #fff;
}

.nd-login-prompt {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(48, 74, 202, 0.04);
    border-radius: 16px;
    border: 1.5px dashed rgba(48, 74, 202, 0.2);
}
.nd-login-prompt p { color: #4a5568; font-size: 0.95rem; margin: 0; }
.nd-login-prompt a { color: #304aca; font-weight: 700; text-decoration: none; }
.nd-login-prompt a:hover { text-decoration: underline; }
body.dark-mode .nd-login-prompt { background: rgba(128, 152, 249, 0.07); border-color: rgba(128, 152, 249, 0.2); }
body.dark-mode .nd-login-prompt p { color: #a0aec0; }

/* Comment Items */
.nd-comment-list { display: flex; flex-direction: column; gap: 0; }

.nd-comment-item { padding: 1.5rem 0; border-bottom: 1px solid #eef2f6; }
.nd-comment-item:last-child { border-bottom: none; padding-bottom: 0; }
body.dark-mode .nd-comment-item { border-bottom-color: #252540; }

.nd-comment-main { display: flex; gap: 14px; align-items: flex-start; }

.nd-comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2.5px solid #eef2f6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
body.dark-mode .nd-comment-avatar { border-color: #252540; }

.nd-comment-bubble {
    flex: 1;
    background: #f8f9fc;
    border-radius: 0 16px 16px 16px;
    padding: 1rem 1.25rem;
    border: 1px solid #eef2f6;
    position: relative;
}
body.dark-mode .nd-comment-bubble { background: #13132b; border-color: #252540; }

.nd-comment-bubble::before {
    content: '';
    position: absolute;
    top: 14px;
    right: -8px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid #eef2f6;
}
body.dark-mode .nd-comment-bubble::before { border-left-color: #252540; }

.nd-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 6px;
}

.nd-comment-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #191f3c;
    margin: 0;
}
body.dark-mode .nd-comment-name { color: #f7fafc; }

.nd-comment-date {
    font-size: 0.75rem;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 5px;
}
.nd-comment-date i { font-size: 0.72rem; color: #304aca; }
body.dark-mode .nd-comment-date { color: #5a6a9a; }

.nd-comment-text {
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.85;
    margin: 0;
}
body.dark-mode .nd-comment-text { color: #a0aec0; }

/* Replies */
.nd-reply-list {
    margin-top: 1rem;
    margin-right: 62px;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.nd-reply-item { display: flex; gap: 12px; align-items: flex-start; }

.nd-reply-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #eef2f6;
}
body.dark-mode .nd-reply-avatar { border-color: #252540; }

.nd-reply-bubble {
    flex: 1;
    background: #fff;
    border-radius: 0 14px 14px 14px;
    padding: 0.85rem 1.1rem;
    border: 1px solid #eef2f6;
    border-right: 3px solid #304aca;
}
body.dark-mode .nd-reply-bubble { background: #1a1a2e; border-color: #252540; border-right-color: #8098f9; }

.nd-reply-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #191f3c;
    margin: 0 0 4px;
}
body.dark-mode .nd-reply-name { color: #f7fafc; }

.nd-reply-text {
    font-size: 0.85rem;
    color: #4a5568;
    line-height: 1.8;
    margin: 0;
}
body.dark-mode .nd-reply-text { color: #a0aec0; }

/* ---- Sidebar ---- */
.nd-sidebar-widget {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(48, 74, 202, 0.07);
    margin-bottom: 1.25rem;
    direction: rtl;
}
body.dark-mode .nd-sidebar-widget { background: #1a1a2e; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3); }

.nd-widget-title {
    font-size: 1rem;
    font-weight: 800;
    color: #191f3c;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #eef2f6;
}
.nd-widget-title i { color: #304aca; }
body.dark-mode .nd-widget-title { color: #f7fafc; border-bottom-color: #252540; }

/* Search */
.nd-search-form {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.nd-search-form:focus-within {box-shadow: 0 0 0 3px rgba(48, 74, 202, 0.1); }

.nd-search-input {
    flex: 1;
    border: 1px solid #e2e8f0;
    outline: none;
    padding: 10px 14px;
    font-size: 0.87rem;
    background: transparent;
    color: #191f3c;
    font-family: 'IRANSans', 'Vazir', Tahoma, sans-serif;
    direction: rtl;
}
body.dark-mode .nd-search-input {border: 1px solid #252540!important; color: #e2e8f0;}

.nd-search-btn {
    border: none;
    background: linear-gradient(135deg, #304aca, #0099ff);
    color: #fff;
    padding: 0 16px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: opacity 0.2s;
}
.nd-search-btn:hover { opacity: 0.85; }

/* Category List */
.nd-cat-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }

.nd-cat-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #4a5568;
    font-size: 0.87rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.nd-cat-list li a:hover {
    background: rgba(48, 74, 202, 0.08);
    color: #304aca;
    padding-right: 18px;
}
body.dark-mode .nd-cat-list li a { color: #a0aec0; }
body.dark-mode .nd-cat-list li a:hover { background: rgba(128, 152, 249, 0.1); color: #8098f9; }

.nd-cat-count {
    font-size: 0.72rem;
    padding: 3px 9px;
    background: #eef2f8;
    color: #718096;
    border-radius: 20px;
    font-weight: 600;
}
body.dark-mode .nd-cat-count { background: #252540; color: #5a6a9a; }

/* Related News */
.nd-related-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }

.nd-related-item { display: flex; gap: 12px; align-items: flex-start; }

.nd-related-img-wrap {
    width: 80px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}
.nd-related-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.nd-related-img-wrap:hover img { transform: scale(1.08); }

.nd-related-title a {
    font-size: 0.85rem;
    font-weight: 600;
    color: #191f3c;
    text-decoration: none;
    line-height: 1.55;
    transition: color 0.2s;
    display: block;
}
.nd-related-title a:hover { color: #304aca; }
body.dark-mode .nd-related-title a { color: #f7fafc; }
body.dark-mode .nd-related-title a:hover { color: #8098f9; }

/* Tag Cloud */
.nd-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }

.nd-cloud-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(48, 74, 202, 0.07);
    color: #304aca;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(48, 74, 202, 0.15);
    transition: all 0.25s ease;
}
.nd-cloud-tag:hover {
    background: linear-gradient(135deg, #304aca, #0099ff);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(48, 74, 202, 0.25);
}
body.dark-mode .nd-cloud-tag { background: rgba(128, 152, 249, 0.12); color: #8098f9; border-color: rgba(128, 152, 249, 0.18); }
body.dark-mode .nd-cloud-tag:hover { background: linear-gradient(135deg, #304aca, #0099ff); color: #fff; }

/* Success Alert */
.nd-alert-success {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(34, 197, 94, 0.1);
    border: 1.5px solid rgba(34, 197, 94, 0.3);
    border-radius: 14px;
    font-size: 0.9rem;
    color: #15803d;
    margin-bottom: 1.5rem;
    direction: rtl;
}
.nd-alert-success i { font-size: 1.1rem; color: #22c55e; flex-shrink: 0; }
body.dark-mode .nd-alert-success { background: rgba(81, 207, 102, 0.1); border-color: rgba(81, 207, 102, 0.25); color: #51cf66; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .nd-hero { padding: 3rem 0 4.5rem; }
    .nd-hero__title { font-size: 1.5rem; }
    .nd-hero__meta { padding: 0.45rem 1rem; }
    .nd-meta-item { padding: 0 0.6rem; font-size: 0.75rem; }
    .nd-meta-item:not(:last-child) { border-left: none; }
    .nd-article__content { padding: 1.5rem; }
    .nd-article__image-wrap { height: 250px; }
    .nd-comments { padding: 1.5rem; }
    .nd-reply-list { margin-right: 0; }
    .nd-tags, .nd-share { padding: 1rem 1.5rem; }
}
