/* ========================================
   Itqan Academy - Modern Design System
   ======================================== */

:root {
    --primary: #0d7c66;
    --primary-dark: #095c4b;
    --primary-light: #e8f5f1;
    --secondary: #d4a843;
    --secondary-dark: #b8922e;
    --accent: #1e3a5f;
    --accent-light: #2a5082;

    --bg-body: #f8fafb;
    --bg-white: #ffffff;
    --bg-section: #f1f5f4;
    --bg-card: #ffffff;

    --text-primary: #1a1a2e;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --text-light: #a0aec0;

    --border-color: #e2e8f0;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --border-radius-sm: 8px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.12);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    --font-primary: 'Cairo', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --container-max: 1250px;
    --navbar-height: 80px;
    --navbar-bg: linear-gradient(135deg, #1e3a5f 0%, #0f5a4a 48%, #0d7c66 100%);
    --navbar-bg-scrolled: linear-gradient(135deg, #182f4d 0%, #0c4f40 48%, #0a6b58 100%);
}

[data-theme="dark"] {
    --bg-body: #0f172a;
    --bg-white: #1e293b;
    --bg-section: #162032;
    --bg-card: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-light: #64748b;
    --border-color: #334155;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.35);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.4);
    --primary-light: #0d3b30;
}

/* ========================================
   Base & Reset
   ======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-height);
}

body {
    font-family: var(--font-primary);
    margin: 0;
    padding: 0;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-body);
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden;
}

main {
    min-height: calc(100vh - 200px);
}

.container {
    max-width: var(--container-max);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

/* ========================================
   Section Base Styles
   ======================================== */
.section-padding {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h1,
.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h1::after,
.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 650px;
    margin: 1.5rem auto 0;
    line-height: 1.8;
}

.section-badge {
    display: inline-block;
    padding: 0.35rem 1.2rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

/* ========================================
   Navbar
   ======================================== */
.site-navbar {
    background: var(--navbar-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: var(--transition);
    height: var(--navbar-height);
    box-shadow: 0 4px 22px rgba(15, 35, 60, 0.16);
}

.site-navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.site-navbar .container {
    position: relative;
    z-index: 1;
    height: 100%;
}

.site-navbar.scrolled {
    background: var(--navbar-bg-scrolled);
    box-shadow: 0 8px 30px rgba(10, 30, 50, 0.28);
}

.site-navbar .navbar-brand img {
    height: 55px;
    transition: var(--transition);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
}

.site-navbar.navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
}

.site-navbar .navbar-nav {
    gap: 0.2rem;
}

.site-navbar .navbar-nav .nav-link {
    font-weight: 600;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.88);
    padding: 0.55rem 1rem;
    border-radius: 999px;
    position: relative;
    transition: var(--transition);
}

.site-navbar .navbar-nav .nav-link:hover,
.site-navbar .navbar-nav .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.site-navbar .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.25rem;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--secondary);
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: 999px;
}

.site-navbar .navbar-nav .nav-link:hover::after,
.site-navbar .navbar-nav .nav-link.active::after {
    width: 42%;
}

.navbar-cta-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(13, 124, 102, 0.3);
    transition: var(--transition);
}

.navbar-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 124, 102, 0.4);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.92);
    transition: var(--transition);
    font-size: 1.05rem;
    backdrop-filter: blur(8px);
}

.theme-toggle:hover {
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

.lang-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.08);
    line-height: 1.2;
    white-space: nowrap;
    backdrop-filter: blur(8px);
}

.lang-switch-btn::after {
    display: none;
}

.lang-switch-btn:hover,
.lang-switch-btn.show,
.lang-switch-btn[aria-expanded="true"] {
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

.lang-switch-btn .lang-flag {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.lang-chevron {
    font-size: 0.65rem;
    opacity: 0.75;
    transition: transform 0.25s ease;
}

.lang-switch-btn.show .lang-chevron,
.lang-switch-btn[aria-expanded="true"] .lang-chevron {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    min-width: 210px;
    padding: 0.45rem;
    border-radius: 14px !important;
    margin-top: 0.55rem !important;
    border: 1px solid var(--border-color) !important;
}

.lang-dropdown-header {
    padding: 0.35rem 0.75rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.lang-option {
    display: flex !important;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.75rem !important;
    border-radius: 10px !important;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}

.lang-option .lang-flag {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.lang-option span {
    flex: 1;
}

.lang-option .lang-check {
    font-size: 0.75rem;
    color: var(--primary);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.lang-option:hover {
    background: var(--primary-light) !important;
    color: var(--primary-dark);
}

.lang-option.active {
    background: var(--primary-light) !important;
    color: var(--primary-dark);
}

.lang-option.active .lang-check {
    opacity: 1;
}

.navbar-utilities {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

@media (min-width: 992px) {
    .navbar-collapse {
        align-items: center;
    }

    .navbar-utilities {
        padding-top: 0;
        padding-bottom: 0;
    }
}

@media (max-width: 991.98px) {
    .navbar-utilities {
        width: 100%;
        justify-content: center;
        padding-top: 0.75rem;
        margin-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    background: linear-gradient(135deg, #0d7c66 0%, #095c4b 40%, #1e3a5f 100%);
    color: #fff;
    padding: 5.5rem 0 5rem;
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - var(--navbar-height));
    display: flex;
    align-items: center;
}

.hero-section > .container {
    width: 100%;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--bg-body);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: rgba(255,255,255,0.95);
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-section h1 span {
    color: var(--secondary);
}

.hero-section p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 0;
    line-height: 1.8;
}

.hero-aside {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    padding: 1.75rem;
    border-radius: var(--border-radius-lg);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

[dir="ltr"] .hero-aside {
    margin-left: auto;
    max-width: 420px;
}

[dir="rtl"] .hero-aside {
    margin-right: auto;
    max-width: 420px;
}

.hero-buttons {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
}

[dir="rtl"] .hero-buttons {
    justify-content: flex-start;
}

[dir="ltr"] .hero-buttons {
    justify-content: flex-start;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2.2rem;
    background: var(--secondary);
    color: #1a1a2e;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(212, 168, 67, 0.4);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 168, 67, 0.5);
    background: var(--secondary-dark);
    color: #fff;
}

.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2.2rem;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-hero-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    color: #fff;
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    flex-wrap: wrap;
}

.hero-stat {
    flex: 1;
    min-width: 80px;
    text-align: center;
}

.hero-stat h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 0.25rem;
}

.hero-stat p {
    font-size: 0.85rem;
    opacity: 0.85;
    margin: 0;
}

.hero-visual {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-decorative {
    position: relative;
    width: 100%;
    max-width: 450px;
}

.hero-decorative .geometric-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
}

.hero-decorative .shape-1 {
    width: 200px;
    height: 200px;
    background: var(--secondary);
    top: 10%;
    right: 10%;
}

.hero-decorative .shape-2 {
    width: 120px;
    height: 120px;
    background: #fff;
    bottom: 15%;
    left: 5%;
    animation-delay: -2s;
}

.hero-decorative .shape-3 {
    width: 80px;
    height: 80px;
    background: var(--secondary);
    top: 50%;
    left: 30%;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* ========================================
   Features / Why Choose Us
   ======================================== */
.features-section {
    background: var(--bg-section);
}

.feature-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-light), rgba(13, 124, 102, 0.15));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.6rem;
    color: var(--primary);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* ========================================
   About Section
   ======================================== */
.about-section {
    background: var(--bg-white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.9;
}

.about-highlights {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.about-highlight-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--primary-light);
    border-radius: 50px;
    color: var(--primary);
    font-weight: 600;
}

.about-highlight-item i {
    font-size: 1.2rem;
}

/* ========================================
   Teachers
   ======================================== */
.teachers-section {
    background: var(--bg-section);
}

.teacher-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
    cursor: pointer;
}

.teacher-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.teacher-card-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-light), var(--bg-section));
}

.teacher-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.teacher-card:hover .teacher-card-image img {
    transform: scale(1.08);
}

.teacher-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 2rem 1.5rem 1rem;
    opacity: 0;
    transition: var(--transition);
}

.teacher-card:hover .teacher-card-overlay {
    opacity: 1;
}

.teacher-card-overlay .btn-view-profile {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: #fff;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.3);
    transition: var(--transition);
}

.teacher-card-overlay .btn-view-profile:hover {
    background: #fff;
    color: var(--primary);
}

.teacher-card-body {
    padding: 1.5rem;
    text-align: center;
}

.teacher-card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.teacher-card-body .teacher-specialty {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0;
}

/* Teacher Modal */
.teacher-modal .modal-content {
    border: none;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: var(--bg-card);
}

.teacher-modal .modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
}

.teacher-modal .modal-body {
    padding: 2rem;
}

.teacher-modal-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-light);
    margin-bottom: 1rem;
}

.teacher-modal-info {
    text-align: center;
}

.teacher-modal-info h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.teacher-modal-info .badge-specialty {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.teacher-modal-info .teacher-bio {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ========================================
   Courses
   ======================================== */
.courses-section {
    background: var(--bg-white);
}

.courses-filter-bar {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.courses-search-wrapper {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.courses-search-wrapper input {
    width: 100%;
    padding: 0.8rem 1.2rem 0.8rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.95rem;
    font-family: var(--font-primary);
    background: var(--bg-card);
    color: var(--text-primary);
    transition: var(--transition);
}

.courses-search-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(13, 124, 102, 0.1);
}

.courses-search-wrapper i {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

[dir="rtl"] .courses-search-wrapper i {
    left: auto;
    right: 1.1rem;
}

[dir="rtl"] .courses-search-wrapper input {
    padding: 0.8rem 3rem 0.8rem 1.2rem;
}

.course-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.course-card-image {
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-light), var(--bg-section));
    position: relative;
}

.course-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.course-card:hover .course-card-image img {
    transform: scale(1.08);
}

.course-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-card-body h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.course-card-body p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-enroll {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    border: none;
}

.btn-enroll:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 124, 102, 0.3);
    color: #fff;
}

.no-results-message {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    display: none;
}

.no-results-message i {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* ========================================
   Posts / Blog
   ======================================== */
.posts-section {
    background: var(--bg-section);
}

.posts-sidebar {
    position: sticky;
    top: calc(var(--navbar-height) + 2rem);
}

.sidebar-widget {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.sidebar-widget h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.sidebar-search {
    position: relative;
}

.sidebar-search input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    background: var(--bg-body);
    color: var(--text-primary);
    transition: var(--transition);
}

.sidebar-search input:focus {
    outline: none;
    border-color: var(--primary);
}

.sidebar-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

[dir="rtl"] .sidebar-search i {
    left: auto;
    right: 1rem;
}

[dir="rtl"] .sidebar-search input {
    padding: 0.75rem 2.75rem 0.75rem 1rem;
}

.sidebar-search button {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    padding: 0 1rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    cursor: pointer;
    transition: var(--transition);
}

[dir="rtl"] .sidebar-search button {
    right: auto;
    left: 0;
    border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
}

.sidebar-search button:hover {
    background: var(--primary-dark);
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.25rem;
}

.category-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.category-list li a:hover,
.category-list li.active a {
    background: var(--primary-light);
    color: var(--primary);
}

.post-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

.post-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.post-card-horizontal {
    display: flex;
}

.post-card-horizontal .post-card-image {
    width: 280px;
    min-height: 220px;
    flex-shrink: 0;
}

.post-card-image {
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-light), var(--bg-section));
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.post-card-meta span {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.post-card-meta .post-category-badge {
    padding: 0.2rem 0.6rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.75rem;
}

.post-card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.post-card-body h3 a {
    color: var(--text-primary);
}

.post-card-body h3 a:hover {
    color: var(--primary);
}

.post-card-body .post-excerpt {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 1rem;
    transition: var(--transition);
}

.btn-read-more:hover {
    gap: 0.75rem;
    color: var(--primary-dark);
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.pagination-wrapper .page-link {
    border-radius: var(--border-radius-sm);
    margin: 0 0.25rem;
    color: var(--text-secondary);
    border-color: var(--border-color);
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.pagination-wrapper .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.pagination-wrapper .page-link:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

/* ========================================
   Post Details
   ======================================== */
.page-banner-post {
    padding: 3rem 0 4.5rem;
    text-align: start;
}

.page-banner-post h1 {
    font-size: 2.25rem;
    max-width: 820px;
    line-height: 1.35;
    margin-bottom: 1rem;
}

.page-banner-post::after {
    background: var(--bg-body);
}

.post-banner-breadcrumb {
    position: relative;
    z-index: 1;
    margin-bottom: 1.25rem;
}

.post-banner-breadcrumb .breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    justify-content: flex-start;
}

.post-banner-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    transition: var(--transition);
}

.post-banner-breadcrumb .breadcrumb-item a:hover {
    color: #fff;
}

.post-banner-breadcrumb .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.65);
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-banner-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.post-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.post-banner-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.post-banner-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.post-details-section {
    background: var(--bg-body);
    margin-top: -2.5rem;
    position: relative;
    z-index: 2;
}

.post-details-sidebar {
    position: sticky;
    top: calc(var(--navbar-height) + 2rem);
}

.post-article-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.post-article-card .post-hero-image {
    overflow: hidden;
    max-height: 420px;
    background: linear-gradient(135deg, var(--primary-light), var(--bg-section));
}

.post-article-card .post-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition-slow);
}

.post-article-card:hover .post-hero-image img {
    transform: scale(1.02);
}

.post-lead {
    position: relative;
    margin: 2rem 2rem 0;
    padding: 1.25rem 1.5rem 1.25rem 3rem;
    background: linear-gradient(135deg, var(--primary-light), transparent);
    border-radius: var(--border-radius);
    border-inline-start: 4px solid var(--primary);
}

.post-lead-icon {
    position: absolute;
    top: 1.1rem;
    inset-inline-start: 1.1rem;
    font-size: 1.1rem;
    color: var(--primary);
    opacity: 0.5;
}

.post-lead p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.8;
    color: var(--text-secondary);
}

.post-content {
    padding: 2rem;
    font-size: 1.05rem;
    line-height: 1.95;
    color: var(--text-secondary);
}

.post-content p {
    margin-bottom: 1.25rem;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.post-content h2 { font-size: 1.5rem; }
.post-content h3 { font-size: 1.25rem; }

.post-content ul,
.post-content ol {
    margin-bottom: 1.25rem;
    padding-inline-start: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    background: var(--bg-section);
    border-inline-start: 4px solid var(--secondary);
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    font-style: italic;
    color: var(--text-muted);
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
    box-shadow: var(--shadow-sm);
}

.post-content a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-content a:hover {
    color: var(--primary-dark);
}

.post-article-footer {
    padding: 1.5rem 2rem 2rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-section);
}

.post-footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-post-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.35rem;
    background: var(--bg-card);
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-post-back:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 124, 102, 0.25);
}

.btn-post-back-full {
    width: 100%;
    justify-content: center;
}

.btn-share-facebook {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.35rem;
    background: #1877F2;
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 2px solid #1877F2;
}

.btn-share-facebook:hover {
    background: #166fe0;
    border-color: #166fe0;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.35);
}

.btn-share-full {
    width: 100%;
    justify-content: center;
}

.post-info-widget .post-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.post-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-color);
}

.post-info-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.post-info-list li > i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--border-radius-sm);
    flex-shrink: 0;
    font-size: 0.85rem;
}

.post-info-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
}

.post-info-value {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.post-share-widget .post-share-text {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.breadcrumb-wrapper {
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.breadcrumb-wrapper .breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-wrapper .breadcrumb-item a {
    color: var(--primary);
    font-weight: 500;
}

.breadcrumb-wrapper .breadcrumb-item.active {
    color: var(--text-muted);
}

/* ========================================
   Pricing / Fees
   ======================================== */
.fees-section {
    background: var(--bg-white);
}

.fees-container {
    max-width: 1400px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.fees-duration-group {
    margin-bottom: 3rem;
}

.fees-duration-group:last-child {
    margin-bottom: 0;
}

.fees-duration-title {
    text-align: center;
    color: #f57c00;
    font-size: 1.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 1.5rem;
}

.fees-pricing-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.65rem;
}

.fees-plan-card {
    display: flex;
    flex-direction: column;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    background: #fff;
    min-height: 100%;
}

.fees-plan-header {
    background: #111;
    color: #fff;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.85rem 0.5rem;
    line-height: 1.35;
}

.fees-plan-body {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0.65rem 1.1rem;
    flex: 1;
}

.fees-plan-label {
    display: block;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 0.35rem;
}

.fees-plan-price {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.35rem;
}

.fees-plan-per-class {
    font-size: 0.82rem;
    font-weight: 600;
}

.fees-accent-0 .fees-plan-per-class { color: #8bc34a; }
.fees-accent-1 .fees-plan-per-class { color: #cddc39; }
.fees-accent-2 .fees-plan-per-class { color: #ff9800; }

.fees-plan-classes {
    background: #fff;
    color: #111;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.7rem 0.5rem;
    border-top: 1px solid #e5e5e5;
}

.fees-plan-btn {
    display: block;
    text-align: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.8rem 0.5rem;
    text-decoration: none;
    transition: var(--transition);
}

.fees-plan-btn:hover {
    color: #fff;
    filter: brightness(1.08);
}

.fees-accent-0 .fees-plan-btn { background: #8bc34a; }
.fees-accent-1 .fees-plan-btn { background: #cddc39; color: #222; }
.fees-accent-2 .fees-plan-btn { background: #ff9800; }

.fees-empty-icon {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    display: block;
}

.fees-empty-text {
    color: var(--text-muted);
}

.fees-cta-section {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    padding: 4rem 0;
}

.fees-cta-section h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.fees-cta-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 2rem;
}

/* Legacy pricing card styles (kept for compatibility) */
.pricing-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 2px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
    border-color: var(--secondary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
    z-index: 2;
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.pricing-popular-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 1rem;
    background: var(--secondary);
    color: #1a1a2e;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
}

[dir="rtl"] .pricing-popular-badge {
    right: auto;
    left: 1rem;
}

.pricing-card-header {
    padding: 2.5rem 2rem 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
}

.pricing-card.featured .pricing-card-header {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
}

.pricing-card-header h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.pricing-card-header .pricing-subtitle {
    font-size: 0.9rem;
    opacity: 0.85;
}

.pricing-amount {
    padding: 2rem;
    text-align: center;
    background: var(--bg-body);
}

.pricing-amount .price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
}

.pricing-card.featured .pricing-amount .price {
    color: var(--secondary-dark);
}

.pricing-amount .price-currency {
    font-size: 1.5rem;
    font-weight: 600;
}

.pricing-amount .price-period {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.pricing-features {
    padding: 1.5rem 2rem;
    flex: 1;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    padding: 0.6rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li i {
    color: var(--primary);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.pricing-card-footer {
    padding: 1.5rem 2rem 2rem;
    text-align: center;
    margin-top: auto;
}

.btn-pricing {
    display: block;
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    width: 100%;
    cursor: pointer;
}

.btn-pricing:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 124, 102, 0.4);
    color: #fff;
}

.pricing-card.featured .btn-pricing {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    box-shadow: 0 4px 15px rgba(212, 168, 67, 0.3);
}

.pricing-card.featured .btn-pricing:hover {
    box-shadow: 0 6px 20px rgba(212, 168, 67, 0.5);
}

/* ========================================
   Contact
   ======================================== */
.contact-section {
    position: relative;
    overflow: hidden;
    background-color: #f5f7fa;
}

.contact-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../img/bg_courses.png');
    background-repeat: repeat;
    background-size: 420px auto;
    background-position: center;
    opacity: 0.45;
    pointer-events: none;
}

.contact-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.72);
    pointer-events: none;
}

.contact-section > .container {
    position: relative;
    z-index: 1;
}

.contact-form-wrapper {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.contact-form-wrapper .form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.contact-form-wrapper .form-control {
    padding: 0.8rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    background: var(--bg-body);
    color: var(--text-primary);
    transition: var(--transition);
}

.contact-form-wrapper .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(13, 124, 102, 0.1);
}

.contact-form-wrapper .form-control.is-invalid {
    border-color: #e74c3c;
}

.contact-form-wrapper .invalid-feedback {
    font-size: 0.8rem;
}

.btn-send {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 124, 102, 0.4);
}

.btn-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.contact-info-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    height: 100%;
}

.contact-info-header {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    padding: 2.5rem;
    color: #fff;
}

.contact-info-header h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.contact-info-header p {
    opacity: 0.85;
    font-size: 0.95rem;
    margin: 0;
}

.contact-info-body {
    padding: 2rem 2.5rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-color);
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-info-item .info-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-info-item .info-content h5 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.contact-info-item .info-content p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
}

.contact-info-item .info-content a {
    color: var(--primary);
    font-weight: 500;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #cbd5e1;
    padding-top: 4rem;
}

.site-footer h5 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.site-footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

[dir="rtl"] .site-footer h5::after {
    left: auto;
    right: 0;
}

.site-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .footer-links li {
    margin-bottom: 0.5rem;
}

.site-footer .footer-links a {
    color: #94a3b8;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.site-footer .footer-links a:hover {
    color: var(--secondary);
    padding-inline-start: 5px;
}

.footer-social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-social-links a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    color: #cbd5e1;
    transition: var(--transition);
    font-size: 1rem;
}

.footer-social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
}

.footer-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-login-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ========================================
   Floating Elements
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 25px;
    z-index: 999;
    width: 55px;
    height: 55px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    animation: pulse-whatsapp 2s infinite;
}

[dir="rtl"] .whatsapp-float {
    right: auto;
    left: 25px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
    color: #fff;
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.scroll-top-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    width: 45px;
    height: 45px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(13, 124, 102, 0.3);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    cursor: pointer;
    border: none;
}

[dir="rtl"] .scroll-top-btn {
    right: auto;
    left: 25px;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(13, 124, 102, 0.4);
}

/* ========================================
   Page Image Banner (Posts, Courses, etc.)
   ======================================== */
.page-image-banner-wrap {
    padding: 1.75rem 0 2rem;
    background: var(--bg-white);
}

.page-image-breadcrumb {
    margin-bottom: 1rem;
    width: 100%;
}

.page-image-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    width: 100%;
    justify-content: flex-start;
}

html[dir="ltr"] .page-image-breadcrumb {
    text-align: left;
}

html[dir="rtl"] .page-image-breadcrumb {
    text-align: right;
}

.page-image-breadcrumb .breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.page-image-breadcrumb .breadcrumb-item a:hover {
    color: var(--primary);
}

.page-image-breadcrumb .breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 700;
}

.page-image-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted);
    opacity: 0.75;
}

.page-image-banner {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.page-image-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 55, 120, 0.68), rgba(30, 90, 160, 0.52));
}

.page-image-banner-title {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 800;
    margin: 0;
    text-align: center;
    padding: 2.5rem 1.5rem;
    line-height: 1.25;
}

@media (max-width: 767.98px) {
    .page-image-banner-wrap {
        padding: 1.25rem 0 1.5rem;
    }

    .page-image-banner {
        min-height: 240px;
        border-radius: 16px;
    }

    .page-image-banner-title {
        padding: 2rem 1rem;
    }
}

/* ========================================
   Page Header (Banner)
   ======================================== */
.page-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    padding: 4rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.page-banner::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 50px;
    background: var(--bg-section);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.page-banner h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.page-banner p {
    font-size: 1.15rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

/* for white bg pages */
.page-banner-light::after {
    background: var(--bg-white);
}

/* ========================================
   Loading Skeleton
   ======================================== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-section) 25%, var(--border-color) 50%, var(--bg-section) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--border-radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
    width: 100%;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-image {
    height: 200px;
    width: 100%;
}

/* ========================================
   Animations
   ======================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Utilities
   ======================================== */
.text-primary-custom {
    color: var(--primary) !important;
}

.text-secondary-custom {
    color: var(--secondary) !important;
}

.bg-primary-custom {
    background-color: var(--primary) !important;
}

.bg-section {
    background-color: var(--bg-section);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 4.5rem 0 4rem;
        min-height: auto;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-aside {
        max-width: 100% !important;
        margin: 0 auto !important;
        align-items: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        width: 100%;
    }

    .hero-stat {
        flex: 0 1 auto;
    }

    .post-card-horizontal {
        flex-direction: column;
    }

    .post-card-horizontal .post-card-image {
        width: 100%;
        min-height: 200px;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-card.featured:hover {
        transform: translateY(-8px);
    }

    .fees-pricing-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .fees-duration-title {
        font-size: 1.45rem;
    }

    .site-navbar .navbar-collapse {
        background: linear-gradient(180deg, rgba(30, 58, 95, 0.98) 0%, rgba(13, 92, 75, 0.98) 100%);
        padding: 1rem;
        border-radius: 16px;
        margin-top: 0.65rem;
        box-shadow: 0 16px 40px rgba(8, 24, 40, 0.35);
        border: 1px solid rgba(255, 255, 255, 0.12);
        backdrop-filter: blur(12px);
    }

    .site-navbar .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }

    .site-navbar .navbar-nav .nav-link::after {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: 3rem 0;
    }

    .fees-pricing-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fees-plan-price {
        font-size: 1.65rem;
    }

    .section-header h1,
    .section-header h2 {
        font-size: 1.8rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .page-banner h1 {
        font-size: 1.8rem;
    }

    .page-banner {
        padding: 3rem 0 2.5rem;
    }

    .page-banner-post {
        padding: 2.5rem 0 3.5rem;
    }

    .page-banner-post h1 {
        font-size: 1.65rem;
    }

    .post-content {
        padding: 1.5rem;
    }

    .post-lead {
        margin: 1.5rem 1.5rem 0;
        padding: 1rem 1rem 1rem 2.5rem;
    }

    .post-article-footer {
        padding: 1.25rem 1.5rem 1.5rem;
    }

    .post-footer-actions {
        flex-direction: column;
    }

    .btn-post-back,
    .btn-share-facebook {
        width: 100%;
        justify-content: center;
    }

    .post-details-sidebar {
        position: static;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .contact-info-header {
        padding: 1.5rem;
    }

    .contact-info-body {
        padding: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .fees-pricing-row {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-hero-primary,
    .btn-hero-outline {
        width: 100%;
        justify-content: center;
    }

    .about-highlights {
        flex-direction: column;
        align-items: center;
    }

    .promo-video-title {
        font-size: 1.75rem;
    }
}


/* ========================================
   Promo Video Section
   ======================================== */
.promo-video-section {
    background: var(--bg-section);
    position: relative;
    overflow: hidden;
}

.promo-video-section::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(13, 124, 102, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

[dir="rtl"] .promo-video-section::before {
    right: auto;
    left: -120px;
}

.promo-video-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.promo-video-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.promo-video-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.promo-video-highlights li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.promo-video-highlights li i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.promo-video-player {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.promo-video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: calc(var(--border-radius-lg) - 4px);
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-light), var(--bg-section));
}

.promo-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform .3s ease;
}

    .video-card:hover {
        transform: translateY(-5px);
    }

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 ratio */
}

    .video-wrapper iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
    }

.video-info {
    padding: 1rem;
}

    .video-info h5 {
        margin-bottom: .3rem;
        font-weight: 600;
    }

    .video-info p {
        margin: 0;
        color: #666;
        font-size: .9rem;
    }

/* ========================================
   Videos Library Page
   ======================================== */
.videos-library-section {
    background: var(--bg-section);
}

.videos-library-intro {
    max-width: 720px;
    margin: 0 auto 2.5rem;
}

.videos-library-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 1rem 0 0;
}

.video-library-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.video-library-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.video-library-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #0f172a;
}

.video-library-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-library-placeholder {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), var(--bg-section));
    color: var(--text-muted);
    font-size: 2.5rem;
}

.video-library-content {
    padding: 1.35rem 1.5rem 1.5rem;
    text-align: center;
}

.video-library-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 0.85rem;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.video-library-content h3 {
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 0.65rem;
    color: var(--text-primary);
}

.video-library-content p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.videos-library-empty,
.page-empty-state {
    text-align: center;
    padding: 4rem 1.5rem;
    color: var(--text-muted);
}

.videos-library-empty i,
.page-empty-state i {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    display: block;
}

/* ========================================
   Teachers Page (twaqah-style grid)
   ======================================== */
.teachers-page-section {
    background: #f5f6f8;
}

.teachers-page-grid {
    margin-top: 0.5rem;
}

.teacher-profile-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 10px 30px rgba(30, 58, 95, 0.07);
    padding: 1.75rem 1.5rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
}

.teacher-profile-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(30, 58, 95, 0.11);
}

.teacher-profile-top {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
}

.teacher-profile-avatar-wrap {
    position: relative;
    width: 110px;
    height: 110px;
    margin-bottom: 0.75rem;
}

.teacher-profile-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 8px 22px rgba(30, 58, 95, 0.14);
}

.teacher-profile-avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
    color: #94a3b8;
    font-size: 2.4rem;
}

.teacher-profile-play-icon {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    border: 3px solid #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    padding-left: 2px;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35);
    pointer-events: none;
}

[dir="rtl"] .teacher-profile-play-icon {
    padding-left: 0;
    padding-right: 2px;
}

.teacher-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: var(--transition);
}

.teacher-profile-card.has-media:hover .teacher-profile-actions,
.teacher-profile-card.has-media:focus-within .teacher-profile-actions {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.teacher-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.teacher-action-listen {
    background: #fff;
    color: var(--text-primary);
    border: 1px solid #cbd5e1;
}

.teacher-action-listen:hover {
    background: #f8fafc;
    color: var(--text-primary);
    border-color: #94a3b8;
}

.teacher-action-watch {
    background: #22c55e;
    color: #fff;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
}

.teacher-action-watch:hover {
    background: #16a34a;
    color: #fff;
}

.teacher-profile-name {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--accent);
    margin: 0 0 0.85rem;
    line-height: 1.45;
}

.teacher-profile-bio {
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.9;
    margin: 0 0 1rem;
    white-space: pre-line;
    flex: 1;
    width: 100%;
}

.teacher-profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    width: 100%;
    margin-top: auto;
    padding-top: 0.25rem;
}

.teacher-profile-tags span {
    padding: 0.3rem 0.65rem;
    border-radius: 50px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.35;
}

.teacher-showcase-video-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
}

.teacher-showcase-video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.teacher-video-modal .modal-content {
    border: none;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

@media (max-width: 767.98px) {
    .teacher-profile-actions {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .teacher-profile-card {
        padding: 1.5rem 1.25rem 1.25rem;
    }
}

/* ========================================
   Courses Showcase
   ======================================== */
.courses-page-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.courses-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.15rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

.course-showcase-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.course-showcase-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.course-showcase-image {
    position: relative;
    flex-shrink: 0;
    height: 260px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-light), var(--bg-section));
}

.course-showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.course-showcase-card:hover .course-showcase-image img {
    transform: scale(1.06);
}

.course-showcase-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.35), transparent 55%);
    pointer-events: none;
}

.course-showcase-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-light);
}

.course-showcase-body {
    padding: 1.35rem 1.5rem 1rem;
    flex: 1;
}

.course-showcase-body h3 {
    font-size: 1.15rem;
    line-height: 1.45;
    margin-bottom: 0.75rem;
}

.course-showcase-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.75;
}

.course-showcase-desc p {
    margin: 0;
}

.course-showcase-footer {
    padding: 1rem 1.5rem 1.35rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

/* Course Details Page */
.page-banner-breadcrumb .breadcrumb {
    justify-content: center;
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
}

.page-banner-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.page-banner-breadcrumb .breadcrumb-item a:hover {
    color: #fff;
}

.page-banner-breadcrumb .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.75);
}

.page-banner-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.55);
}

.course-details-section {
    background: var(--bg-section);
    margin-top: -2rem;
    position: relative;
    z-index: 2;
}

.course-details-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.course-details-image {
    max-height: 420px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-light), var(--bg-section));
}

.course-details-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.course-details-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    padding: 1.5rem 2rem 0;
}

.course-details-stat {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    background: linear-gradient(135deg, rgba(13, 124, 102, 0.08), rgba(13, 124, 102, 0.02));
    border: 1px solid rgba(13, 124, 102, 0.15);
    border-radius: var(--border-radius-md);
}

.course-details-stat-price {
    background: linear-gradient(135deg, rgba(251, 99, 64, 0.1), rgba(251, 177, 64, 0.05));
    border-color: rgba(251, 99, 64, 0.2);
}

.course-details-stat-total {
    background: linear-gradient(135deg, rgba(94, 114, 228, 0.12), rgba(130, 94, 228, 0.05));
    border-color: rgba(94, 114, 228, 0.22);
}

.course-details-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    flex-shrink: 0;
    font-size: 1rem;
}

.course-details-stat-price .course-details-stat-icon {
    background: linear-gradient(135deg, #fb6340, #fbb140);
}

.course-details-stat-total .course-details-stat-icon {
    background: linear-gradient(135deg, #5e72e4, #825ee4);
}

.course-details-stat-label {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
}

.course-details-stat-value {
    display: block;
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.course-details-section-block {
    padding: 1.75rem 2rem 0;
}

.course-details-section-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.course-details-section-title i {
    color: var(--primary);
    font-size: 0.95rem;
}

.course-details-section-block .course-details-body {
    padding: 0;
}

.course-details-body {
    padding: 2rem;
    font-size: 1.05rem;
    line-height: 1.95;
    color: var(--text-secondary);
}

.course-details-body p {
    margin-bottom: 1rem;
}

.course-details-body p:last-child {
    margin-bottom: 0;
}

.course-details-rich-content ul,
.course-details-rich-content ol {
    padding-inline-start: 1.25rem;
    margin-bottom: 1rem;
}

.course-details-rich-content table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

.course-details-rich-content table th,
.course-details-rich-content table td {
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.75rem;
}

.course-details-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0 2rem 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    margin-top: 0.25rem;
}

.btn-course-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-course-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 124, 102, 0.3);
}

.btn-course-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.1rem;
    background: var(--bg-section);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.btn-course-secondary:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* ========================================
   Posts Grid
   ======================================== */
.post-card-grid {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 0;
}

.post-card-grid .post-card-image {
    height: 200px;
    display: block;
}

.post-card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--text-light);
    background: linear-gradient(135deg, var(--primary-light), var(--bg-section));
}

.post-card-grid .post-card-body {
    flex: 1;
}

@media (max-width: 767.98px) {
    .course-showcase-footer {
        flex-direction: column;
    }

    .btn-course-primary,
    .btn-course-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   Student Reviews Slider (Home)
   ======================================== */
.student-reviews-section {
    background: #f5f6f8;
}

.student-reviews-title {
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 2.5rem;
    letter-spacing: -0.02em;
}

.student-reviews-swiper-wrap {
    position: relative;
    padding: 0 0 3rem;
    overflow: hidden;
}

.student-reviews-swiper {
    overflow: visible;
    padding: 0.5rem 0 2.5rem;
}

.student-reviews-swiper .swiper-slide {
    height: auto;
}

.testimonial-card {
    position: relative;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(30, 58, 95, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.9);
    min-height: 320px;
    overflow: hidden;
}

.testimonial-card-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-color: #fff;
    background-image: url('../img/bg_courses.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}

.testimonial-card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.75rem 1.65rem;
    min-height: 320px;
}

.testimonial-avatar {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.35rem;
    border: 3px solid #fff;
    box-shadow: 0 6px 18px rgba(30, 58, 95, 0.12);
    flex-shrink: 0;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
    color: #94a3b8;
    font-size: 2rem;
}

.testimonial-text {
    flex: 1;
    margin: 0 0 1.25rem;
    color: #4a5568;
    font-size: 0.98rem;
    line-height: 1.95;
    white-space: pre-line;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.testimonial-name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--accent);
    margin-top: auto;
}

.student-reviews-pagination {
    position: relative !important;
    bottom: 0 !important;
    margin-top: 0.5rem;
}

.student-reviews-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #cbd5e1;
    opacity: 1;
    margin: 0 5px !important;
    transition: var(--transition);
}

.student-reviews-pagination .swiper-pagination-bullet-active {
    background: var(--accent);
    transform: scale(1.1);
}

@media (max-width: 991.98px) {
    .testimonial-card,
    .testimonial-card-content {
        min-height: 300px;
    }

    .testimonial-card-content {
        padding: 1.65rem 1.35rem 1.4rem;
    }
}

@media (max-width: 575.98px) {
    .student-reviews-title {
        margin-bottom: 2rem;
    }

    .testimonial-avatar {
        width: 80px;
        height: 80px;
    }

    .testimonial-text {
        font-size: 0.92rem;
        -webkit-line-clamp: 5;
    }
}

/* ========================================
   Home Page — Twaqah-style Sections
   ======================================== */
.home-section {
    background: #f5f6f8;
}

.home-section-title,
.student-reviews-title {
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 2.25rem;
    letter-spacing: -0.02em;
}

.home-swiper-shell {
    position: relative;
    padding: 0 3rem;
    overflow: hidden;
}

.home-swiper-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--accent);
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: var(--transition);
}

.home-swiper-nav:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.home-programs-swiper-prev,
.home-teachers-swiper-prev,
.home-videos-swiper-prev {
    left: 0;
}

.home-programs-swiper-next,
.home-teachers-swiper-next,
.home-videos-swiper-next {
    right: 0;
}

[dir="rtl"] .home-programs-swiper-prev,
[dir="rtl"] .home-teachers-swiper-prev,
[dir="rtl"] .home-videos-swiper-prev {
    left: auto;
    right: 0;
}

[dir="rtl"] .home-programs-swiper-next,
[dir="rtl"] .home-teachers-swiper-next,
[dir="rtl"] .home-videos-swiper-next {
    right: auto;
    left: 0;
}

.btn-home-show-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2.25rem;
    border-radius: 50px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    box-shadow: 0 8px 22px rgba(34, 197, 94, 0.35);
    transition: var(--transition);
}

.btn-home-show-more:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(34, 197, 94, 0.4);
}

/* Programs */
.home-programs-section {
    position: relative;
    overflow: hidden;
    background-color: #f5f7fa;
}

.home-programs-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../img/bg_courses.png');
    background-repeat: repeat;
    background-size: 420px auto;
    background-position: center;
    opacity: 0.45;
    pointer-events: none;
}

.home-programs-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.72);
    pointer-events: none;
}

.home-programs-section > .container {
    position: relative;
    z-index: 1;
}

.home-programs-swiper .swiper-wrapper {
    align-items: stretch;
}

.home-programs-swiper .swiper-slide {
    height: auto;
    display: flex;
}

.home-program-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.home-program-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../img/bg_courses.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.22;
    pointer-events: none;
    z-index: 0;
}

.home-program-image,
.home-program-body {
    position: relative;
    z-index: 1;
}

.home-program-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.home-program-image {
    flex-shrink: 0;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-light), var(--bg-section));
}

.home-program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-program-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--text-light);
}

.home-program-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.35rem 1.4rem;
}

.home-program-body h3 {
    font-size: 1.05rem;
    margin-bottom: 0.65rem;
    color: var(--accent);
    line-height: 1.45;
}

.home-program-desc {
    flex: 1;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.home-program-desc p {
    margin: 0 0 0.65rem;
}

.home-program-desc p:last-child {
    margin-bottom: 0;
}

.home-program-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: auto;
}

.btn-home-outline {
    display: inline-flex;
    padding: 0.45rem 0.95rem;
    border-radius: 50px;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-home-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-home-link {
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
}

.btn-home-link:hover {
    color: var(--primary);
}

/* Teachers */
.home-teachers-section {
    background: #f5f6f8;
}

.home-teacher-card {
    position: relative;
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(30, 58, 95, 0.07);
    padding: 1.35rem 1.25rem 1.25rem;
    text-align: center;
}

.home-teacher-badge {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem;
    border-radius: 50px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 0.72rem;
    font-weight: 700;
}

[dir="rtl"] .home-teacher-badge {
    right: auto;
    left: 0.85rem;
}

.home-teacher-rate {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.home-teacher-avatar-wrap {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0.5rem auto 1rem;
}

.home-teacher-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 6px 16px rgba(30, 58, 95, 0.12);
}

.home-teacher-avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #94a3b8;
    font-size: 2rem;
}

.home-teacher-play {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #22c55e;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    padding-left: 2px;
}

[dir="rtl"] .home-teacher-play {
    right: auto;
    left: -2px;
    padding-left: 0;
    padding-right: 2px;
}

.home-teacher-card h3 {
    font-size: 1.05rem;
    color: var(--accent);
    margin-bottom: 0.65rem;
    font-weight: 800;
}

.home-teacher-bio {
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.8;
    margin-bottom: 0.85rem;
    min-height: 4.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-teacher-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: center;
}

.home-teacher-tags span {
    padding: 0.25rem 0.55rem;
    border-radius: 50px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Videos preview */
.home-videos-section {
    background: #fff;
}

.home-video-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.home-video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #0f172a;
}

.home-video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.home-video-card h3 {
    padding: 1rem 1.15rem 1.15rem;
    margin: 0;
    font-size: 0.95rem;
    color: var(--accent);
    text-align: center;
    line-height: 1.5;
}

/* Subjects */
.home-subjects-section {
    background: #f5f6f8;
}

.home-subject-card {
    background: #fff;
    border-radius: 14px;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: var(--transition);
}

.home-subject-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.home-subject-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.15rem;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.home-subject-card h3 {
    font-size: 1.15rem;
    color: var(--accent);
    margin-bottom: 0.65rem;
}

.home-subject-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.75;
    font-size: 0.92rem;
}

/* Academy Departments */
.home-departments-section {
    background: #fff;
}

.home-department-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #fff;
    border-radius: 16px;
    padding: 2rem 1.25rem 1.75rem;
    min-height: 220px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 10px 28px rgba(30, 58, 95, 0.08);
    transition: var(--transition);
    color: inherit;
    height: 100%;
}

.home-department-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(30, 58, 95, 0.12);
    color: inherit;
}

.home-department-icon {
    width: 108px;
    height: 108px;
    margin-bottom: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #99f6e4;
    color: #0f766e;
    font-size: 2.35rem;
    clip-path: polygon(
        50% 0%, 61% 18%, 82% 18%, 68% 32%,
        79% 55%, 50% 42%, 21% 55%, 32% 32%,
        18% 18%, 39% 18%
    );
    transition: var(--transition);
}

.home-department-card:hover .home-department-icon {
    background: #5eead4;
    color: #115e59;
}

.home-department-card h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.5;
}

/* Join team */
.home-join-section {
    background: #fff;
}

.home-join-card {
    max-width: 100%;
    margin: 0 auto;
    padding: clamp(2rem, 4vw, 3rem);
    border-radius: var(--border-radius-lg);
    background: linear-gradient(135deg, var(--primary-light), #fff 55%);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.home-join-card::before {
    content: "";
    position: absolute;
    inset-inline-end: -40px;
    top: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--primary-light);
    pointer-events: none;
}

.home-join-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 24px rgba(13, 124, 102, 0.25);
}

.home-join-card h2 {
    color: var(--accent);
    font-weight: 800;
    margin-bottom: 0.75rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.home-join-lead {
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 1.5rem;
    font-size: 1.02rem;
}

.home-join-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.home-join-quote {
    position: relative;
    margin: 0;
    padding: 1.75rem 1.75rem 1.75rem 2rem;
    border-radius: var(--border-radius-lg);
    background: #fff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

[dir="rtl"] .home-join-quote {
    padding: 1.75rem 2rem 1.75rem 1.75rem;
}

.home-join-quote-icon {
    position: absolute;
    top: 1rem;
    inset-inline-start: 1.25rem;
    font-size: 1.35rem;
    color: var(--primary);
    opacity: 0.35;
}

.home-join-quote p {
    margin: 0;
    padding-inline-start: 1.75rem;
    color: var(--accent);
    font-size: 1.05rem;
    line-height: 2;
    font-weight: 600;
}

/* FAQ */
.home-faq-section {
    background: #f5f6f8;
}

.home-faq-header {
    margin-bottom: 2.25rem;
}

.home-faq-subtitle {
    max-width: 640px;
    margin: 0.85rem auto 0;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.75;
}

.home-faq-wrap {
    max-width: 100%;
    margin: 0 auto;
}

.home-faq-accordion .accordion-item {
    border: none;
    border-radius: 14px !important;
    overflow: hidden;
    margin-bottom: 0.85rem;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.home-faq-accordion .accordion-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-weight: 700;
    color: var(--accent);
    background: #fff;
    box-shadow: none;
    padding: 1.15rem 1.35rem;
    font-size: 1rem;
}

.home-faq-accordion .accordion-button::after {
    display: none;
}

.home-faq-accordion .accordion-button:not(.collapsed) {
    background: var(--primary-light);
    color: var(--primary-dark);
    border-bottom: 1px solid rgba(13, 124, 102, 0.12);
}

.home-faq-question {
    flex: 1;
    text-align: start;
}

.home-faq-chevron {
    flex-shrink: 0;
    font-size: 0.85rem;
    color: var(--primary);
    transition: transform 0.25s ease;
}

.home-faq-accordion .accordion-button:not(.collapsed) .home-faq-chevron {
    transform: rotate(180deg);
}

.home-faq-accordion .accordion-body {
    color: var(--text-secondary);
    line-height: 1.9;
    padding: 1.1rem 1.35rem 1.35rem;
    font-size: 0.98rem;
    background: #fff;
}

@media (max-width: 991.98px) {
    .home-join-quote {
        margin-top: 0.5rem;
    }
}

@media (max-width: 767.98px) {
    .home-swiper-shell {
        padding: 0 2.5rem;
    }

    .home-swiper-nav {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
}

/* ========================================
   Public Pages — Enhanced Layout v2
   ======================================== */
.page-image-banner {
    align-items: flex-end;
    justify-content: flex-start;
    min-height: 300px;
}

.page-image-banner-overlay {
    background: linear-gradient(135deg, rgba(9, 92, 75, 0.82) 0%, rgba(30, 58, 95, 0.72) 55%, rgba(15, 35, 60, 0.55) 100%);
}

.page-image-banner-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 2.75rem 2.5rem 3.25rem;
    text-align: start;
}

.page-banner-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(8px);
}

.page-image-banner-title {
    text-align: start;
    padding: 0;
    font-size: clamp(1.75rem, 3.5vw, 2.65rem);
    max-width: 720px;
}

.page-image-banner-subtitle {
    position: relative;
    z-index: 1;
    margin: 0.85rem 0 0;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    line-height: 1.75;
}

.page-image-banner-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 48px;
    background: var(--bg-body);
    clip-path: ellipse(58% 100% at 50% 100%);
    z-index: 3;
}

.wsite-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 2.25rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.wsite-page-header-text h2 {
    font-size: 1.65rem;
    font-weight: 800;
    margin: 0 0 0.35rem;
    color: var(--text-primary);
}

.wsite-page-header-text p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.98rem;
    max-width: 560px;
    line-height: 1.7;
}

.wsite-stat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.wsite-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    border-radius: 50px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.88rem;
    font-weight: 700;
    border: 1px solid rgba(13, 124, 102, 0.12);
}

.wsite-stat-pill i {
    font-size: 0.9rem;
}

.courses-page-toolbar {
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.courses-search-wrapper {
    flex: 1;
    max-width: 480px;
}

.courses-section {
    background: linear-gradient(180deg, var(--bg-body) 0%, var(--bg-white) 120px);
}

.teachers-page-section {
    background: linear-gradient(180deg, var(--bg-body) 0%, #f5f6f8 100px);
}

.posts-section {
    background: linear-gradient(180deg, var(--bg-body) 0%, var(--bg-section) 120px);
}

.posts-page-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.posts-page-toolbar h2,
.posts-toolbar-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-primary);
}

.category-chevron {
    font-size: 0.7rem;
}

.posts-sidebar .sidebar-widget {
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.posts-sidebar .sidebar-widget:hover {
    box-shadow: var(--shadow-md);
}

.videos-library-section {
    background: linear-gradient(180deg, var(--bg-body) 0%, var(--bg-white) 140px);
}

.videos-library-intro {
    margin-bottom: 0.5rem;
}

.videos-library-intro .section-badge {
    margin-bottom: 0.65rem;
}

.videos-library-subtitle {
    font-size: 1.08rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto;
}

.video-library-card {
    transition: var(--transition);
}

.video-library-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.contact-form-wrapper {
    box-shadow: var(--shadow-md);
    border: none;
    position: relative;
    overflow: hidden;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.contact-form-header {
    margin-bottom: 2rem;
}

.contact-form-header h3 {
    font-size: 1.55rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-form-header p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
}

.contact-form-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.contact-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.75rem;
}

.contact-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.contact-quick-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.contact-quick-link.whatsapp:hover {
    border-color: #25d366;
    color: #128c7e;
    background: rgba(37, 211, 102, 0.1);
}

.contact-info-item .info-icon-whatsapp {
    background: rgba(37, 211, 102, 0.12);
    color: #25d366;
}

.contact-info-card {
    box-shadow: var(--shadow-md);
    border: none;
}

.site-cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: 4.5rem 0;
    position: relative;
    overflow: hidden;
}

.site-cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.site-cta-banner .container {
    position: relative;
    z-index: 1;
}

.site-cta-banner h2 {
    color: #fff;
    font-size: clamp(1.65rem, 3vw, 2.2rem);
    margin-bottom: 1rem;
    font-weight: 800;
}

.site-cta-banner p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.75;
}

.teacher-profile-card {
    border: 1px solid rgba(226, 232, 240, 0.95);
}

.post-card-grid {
    transition: var(--transition);
}

.post-card-grid:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 767.98px) {
    .page-image-banner-content {
        padding: 2rem 1.25rem 2.5rem;
    }

    .wsite-page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .courses-page-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .courses-search-wrapper {
        max-width: 100%;
    }
}

/* Platform website hero stats */
.platform-hero-stats {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 420px;
}

[dir="ltr"] .platform-hero-stats {
    margin-left: auto;
}

[dir="rtl"] .platform-hero-stats {
    margin-right: auto;
}

.platform-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
    border-radius: var(--border-radius-lg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transition: var(--transition);
}

.platform-stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 168, 67, 0.45);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.platform-stat-icon {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(212, 168, 67, 0.18);
    color: var(--secondary);
    font-size: 1.35rem;
}

.platform-stat-body {
    flex: 1;
    min-width: 0;
}

.platform-stat-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 0.2rem;
}

.platform-stat-value span {
    color: var(--secondary);
}

.platform-stat-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
}

@media (max-width: 991.98px) {
    .platform-hero-stats {
        max-width: 100%;
        margin-top: 0.5rem;
    }

    .platform-stat-value {
        font-size: 1.75rem;
    }
}

@media (max-width: 575.98px) {
    .platform-stat-card {
        padding: 1rem 1.1rem;
    }

    .platform-stat-icon {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
        font-size: 1.15rem;
    }
}
