.contact-page {
    padding: 0 0 60px;
}

.contact-page .cinema-container {
    width: min(960px, 95%);
}

.contact-page .cinema-panel {
    background: #ffffff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    box-shadow: 0 15px 35px rgba(15,23,42,0.08);
}

.contact-page .cinema-title {
    color: #0f172a;
}

.contact-page .cinema-overview {
    color: #475569;
}

.contact-page .cinema-spec-item label {
    font-weight: 600;
    color: #0f172a;
}

.contact-page .cinema-wrapper {
    padding-top: 30px;
}

.contact-page .cinema-input {
    background: #fff;
    border: 1px solid #cbd5f5;
    color: #0f172a;
}

.contact-page .cinema-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.25);
}

.contact-page .cinema-spec-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.contact-page .cinema-btn.primary {
    background: linear-gradient(135deg, #3b82f6, #22d3ee);
    color: #fff;
    border: none;
}

.contact-alert {
    margin-bottom: 16px;
}

.contact-alert--success {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34,197,94,0.4);
    color: #166534;
}

.contact-alert--error {
    background: rgba(248,113,113,0.15);
    border-color: rgba(248,113,113,0.4);
    color: #991b1b;
}
/* Timeline shortcode */
.riazi-timeline {
    --timeline-bg: #f6efff;
    --timeline-accent: #a855f7;
    --timeline-text: #2d1b4e;
    position: relative;
    margin: 32px 0;
    padding: 36px 32px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--timeline-bg), #ffffff);
    border: 1px solid rgba(168, 85, 247, 0.25);
    box-shadow: 0 25px 60px rgba(57, 16, 89, 0.12);
    overflow: hidden;
}

.riazi-timeline::before {
    content: "";
    position: absolute;
    right: 56px;
    top: 32px;
    bottom: 32px;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255,255,255,0.85), var(--timeline-accent));
    opacity: 0.85;
}

.riazi-timeline-item {
    position: relative;
    padding-right: 116px;
    margin-bottom: 32px;
}

.riazi-timeline-item:last-child {
    margin-bottom: 0;
}

.riazi-timeline-badge {
    position: absolute;
    right: 24px;
    top: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--timeline-accent), #c084fc);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 30px 45px rgba(168, 85, 247, 0.35);
}

.riazi-timeline-badge .dashicons,
.riazi-timeline-badge span {
    color: #fff;
    font-size: 22px;
    line-height: 1;
}

.riazi-timeline-content {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 22px;
    padding: 20px 24px;
    border: 1px solid rgba(168, 85, 247, 0.15);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
    color: var(--timeline-text);
}

.riazi-timeline-time {
    font-size: 0.85rem;
    color: rgba(45, 27, 78, 0.7);
    margin-bottom: 6px;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.riazi-timeline-title {
    margin: 0 0 10px;
    font-size: 1.05rem;
    color: var(--timeline-text);
}

.riazi-timeline-text {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(45, 27, 78, 0.9);
    line-height: 1.7;
}

.riazi-timeline--quarters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 32px;
}

.riazi-timeline--quarters::before {
    display: none;
}

.riazi-timeline--quarters .riazi-timeline-item {
    padding: 0;
    margin: 0;
}

.riazi-timeline--quarters .riazi-timeline-badge {
    position: relative;
    margin-bottom: 12px;
    right: auto;
}

.riazi-timeline--quarters .riazi-timeline-content {
    padding-top: 16px;
}

@media (max-width: 768px) {
    .riazi-timeline {
        padding: 28px 20px;
    }
    .riazi-timeline::before {
        right: 36px;
    }
    .riazi-timeline-item {
        padding-right: 92px;
    }
    .riazi-timeline-badge {
        width: 54px;
        height: 54px;
        right: 12px;
    }
}

/* Media box shortcode */
.riazi-media-box {
    margin: 32px auto;
    background: #ffffff;
    border-radius: 28px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 35px 60px rgba(15, 23, 42, 0.15);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.riazi-media-box--align-left {
    margin-right: auto;
    margin-left: 0;
}

.riazi-media-box--align-right {
    margin-left: auto;
    margin-right: 0;
}

.riazi-media-box--align-center {
    margin-left: auto;
    margin-right: auto;
}

.riazi-media-box--shadow-soft {
    box-shadow: 0 35px 60px rgba(15, 23, 42, 0.15);
}

.riazi-media-box--shadow-glow {
    box-shadow: 0 45px 90px rgba(124, 58, 237, 0.25);
}

.riazi-media-box--shadow-none {
    box-shadow: none;
}

.riazi-media-box__badge {
    position: absolute;
    top: 20px;
    left: 24px;
    background: linear-gradient(135deg, #f472b6, #ec4899);
    color: #fff;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.35);
}

.riazi-media-box__media {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.8);
    position: relative;
    aspect-ratio: 16 / 9;
}

.riazi-media-box__media iframe,
.riazi-media-box__media video,
.riazi-media-box__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.riazi-media-box__media-link {
    display: block;
    height: 100%;
}

.riazi-media-box__body {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.riazi-media-box__title {
    margin: 0;
    font-size: 1.25rem;
    color: #0f172a;
}

.riazi-media-box__caption {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
}

.riazi-media-box__text {
    color: #334155;
    line-height: 1.8;
    font-size: 0.95rem;
}

.riazi-media-box__text p {
    margin-bottom: 0.8em;
}

.riazi-media-box__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.riazi-media-box__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.35);
}
/* Main Styles */

/* IMPORTANT: Font Awesome icons must be defined BEFORE Vazir font */
/* This ensures Font Awesome has priority over Vazir */

/* Exclude icon fonts from Vazir - MUST be BEFORE Vazir font declaration */
.fa,
.fa-solid,
.fa-regular,
.fa-light,
.fa-thin,
.fa-duotone,
.fa-brands,
.fas,
.far,
.fal,
.fat,
.fad,
.fab,
[class*="fa-"],
[class^="fa-"],
i[class*="fa"],
i[class^="fa"],
i[class*="fas"],
i[class^="fas"],
i[class*="far"],
i[class^="far"],
i[class*="fal"],
i[class^="fal"],
i[class*="fat"],
i[class^="fat"],
i[class*="fad"],
i[class^="fad"],
i[class*="fab"],
i[class^="fab"],
.dashicons,
[class*="dashicons"],
[class^="dashicons"],
i.fa,
i.fa-solid,
i.fa-regular,
i.fa-brands,
i[class*="fa-"],
i[class^="fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "dashicons" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-transform: none !important;
    line-height: 1 !important;
    display: inline-block !important;
    font-feature-settings: normal !important;
    font-variant-ligatures: normal !important;
    font-variant-caps: normal !important;
    font-variant-numeric: normal !important;
    font-variant-east-asian: normal !important;
}

/* Font Awesome Regular */
.fa-regular,
.far,
i.fa-regular,
i.far {
    font-weight: 400 !important;
}

/* Font Awesome Brands */
.fa-brands,
.fab,
i.fa-brands,
i.fab {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

/* Persian Font - Vazir (self-hosted) */
@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir-Regular.woff2') format('woff2'),
         url('../fonts/Vazir-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir-Bold.woff2') format('woff2'),
         url('../fonts/Vazir-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Apply Vazir Font to All Elements (except icons) */
/* Note: Font Awesome icons are excluded above */
*:not(.fa):not(.fa-solid):not(.fa-regular):not(.fa-brands):not(.fas):not(.far):not(.fab):not([class*="fa-"]):not([class^="fa-"]):not(i[class*="fa"]):not(i[class^="fa"]):not(.dashicons):not([class*="dashicons"]):not([class^="dashicons"]),
*:not(.fa):not(.fa-solid):not(.fa-regular):not(.fa-brands):not(.fas):not(.far):not(.fab):not([class*="fa-"]):not([class^="fa-"]):not(i[class*="fa"]):not(i[class^="fa"]):not(.dashicons):not([class*="dashicons"]):not([class^="dashicons"])::before,
*:not(.fa):not(.fa-solid):not(.fa-regular):not(.fa-brands):not(.fas):not(.far):not(.fab):not([class*="fa-"]):not([class^="fa-"]):not(i[class*="fa"]):not(i[class^="fa"]):not(.dashicons):not([class*="dashicons"]):not([class^="dashicons"])::after {
    font-family: 'Vazir', 'Vazir FD', 'Vazir Farsi', 'Vazir Farsi Digits', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* Exclude icon fonts from Vazir - MUST be after Vazir font declaration */
/* Critical: Font Awesome must load before Vazir font is applied */
/* IMPORTANT: These selectors must have higher specificity to override Vazir font */
.fa,
.fa-solid,
.fa-regular,
.fa-light,
.fa-thin,
.fa-duotone,
.fa-brands,
.fas,
.far,
.fal,
.fat,
.fad,
.fab,
[class*="fa-"],
[class^="fa-"],
i[class*="fa"],
i[class^="fa"],
i[class*="fas"],
i[class^="fas"],
i[class*="far"],
i[class^="far"],
i[class*="fal"],
i[class^="fal"],
i[class*="fat"],
i[class^="fat"],
i[class*="fad"],
i[class^="fad"],
i[class*="fab"],
i[class^="fab"],
.dashicons,
[class*="dashicons"],
[class^="dashicons"],
i.fa,
i.fa-solid,
i.fa-regular,
i.fa-brands,
i[class*="fa-"],
i[class^="fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "dashicons" !important;
    font-weight: 900 !important; /* Font Awesome Solid requires font-weight 900 */
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-transform: none !important;
    line-height: 1 !important;
    display: inline-block !important;
    font-feature-settings: normal !important;
    font-variant-ligatures: normal !important;
    font-variant-caps: normal !important;
    font-variant-numeric: normal !important;
    font-variant-east-asian: normal !important;
}

/* Font Awesome Solid specific */
.fa-solid,
.fas {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    display: inline-block !important;
}

/* Font Awesome Regular specific */
.fa-regular,
.far {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400 !important;
    font-style: normal !important;
    display: inline-block !important;
}

/* Font Awesome Brands specific */
.fa-brands,
.fab {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
    font-style: normal !important;
    display: inline-block !important;
}

/* Font Awesome Light specific */
.fa-light,
.fal {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 300 !important;
}

/* Font Awesome Thin specific */
.fa-thin,
.fat {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 100 !important;
}

/* Dashicons specific */
.dashicons,
[class*="dashicons"],
[class^="dashicons"] {
    font-family: "dashicons" !important;
    font-weight: 400 !important;
    font-style: normal !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* Force Font Awesome to display correctly - Critical fix */
/* Enhanced selectors for maximum compatibility */
i.fa-solid,
i[class*="fa-solid"],
i[class^="fa-solid"],
i.fa-regular,
i[class*="fa-regular"],
i[class^="fa-regular"],
i.fa-brands,
i[class*="fa-brands"],
i[class^="fa-brands"],
i.fa,
i[class*="fa-"],
i[class^="fa-"],
.action-btn i,
.action-btn [class*="fa-"],
.action-btn [class^="fa-"],
.header-actions i,
.header-actions [class*="fa-"],
.header-actions [class^="fa-"],
.back-to-top i,
.back-to-top [class*="fa-"],
.back-to-top [class^="fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    font-variant: normal !important;
    display: inline-block !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-transform: none !important;
    line-height: 1 !important;
}
/* Font Awesome Regular in i tags */
i.fa-regular,
i[class*="fa-regular"],
i[class^="fa-regular"] {
    font-weight: 400 !important;
}
/* Font Awesome Brands in i tags */
i.fa-brands,
i[class*="fa-brands"],
i[class^="fa-brands"] {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

html,
body {
    font-family: 'Vazir', 'Vazir FD', 'Vazir Farsi', 'Vazir Farsi Digits', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* Apply Vazir Font to All Form Elements and WooCommerce */
input,
textarea,
select,
button,
.btn,
.form-control,
.wp-block-button,
h1, h2, h3, h4, h5, h6,
p, span, a, li, td, th, label,
.woocommerce *,
.woocommerce input,
.woocommerce textarea,
.woocommerce select,
.woocommerce button,
.woocommerce .button,
.woocommerce .btn,
.woocommerce .product_title,
.woocommerce .price,
.woocommerce .woocommerce-loop-product__title,
.woocommerce .woocommerce-breadcrumb,
.woocommerce .summary *,
.woocommerce .cart *,
.woocommerce .checkout *,
.woocommerce .order_details *,
.woocommerce .myaccount_address * {
    font-family: 'Vazir', 'Vazir FD', 'Vazir Farsi', 'Vazir Farsi Digits', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* RTL Support */
html[dir="rtl"] *,
body.rtl * {
    direction: rtl;
}

html[dir="ltr"] *,
body.ltr * {
    direction: ltr;
}

/* Global Responsive Typography + Spacing */
@media (max-width: 640px) {
    body {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    h1, .page-title, .hero-title, .front-hero__title {
        font-size: 2rem;
        line-height: 1.3;
    }

    h2 {
        font-size: 1.5rem;
        line-height: 1.35;
    }

    h3 {
        font-size: 1.25rem;
        line-height: 1.4;
    }

    p,
    li {
        line-height: 1.7;
        margin-bottom: 0.9rem;
    }

    .site-main {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .site-main .container,
    .page .container,
    .single .container,
    .archive .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .page-content,
    .post-content,
    .course-description,
    .course-curriculum,
    .shop-page-content,
    .product-card,
    .lesson-content {
        padding: 1.25rem;
    }

    .hero-section,
    .front-hero,
    .course-header {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin: -1rem -20px 2rem;
    border-radius: 0 0 20px 20px;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero-description {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Front Page Builder */
.front-hero {
    position: relative;
    padding: 7rem 0 6rem;
    color: #fff;
    overflow: hidden;
}

.front-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95), rgba(118, 75, 162, 0.9));
    z-index: 1;
}

.front-hero--has-image::before {
    background: rgba(25, 32, 61, 0.65);
}

.front-hero__background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    filter: blur(2px);
}

.front-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
    z-index: 2;
}

.front-hero__content {
    position: relative;
    z-index: 3;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.front-hero__title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    /* LCP Optimization - Reduce layout shift */
    min-height: 4.5rem; /* Approximate height to prevent CLS */
    display: block;
}

.front-hero__subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.front-hero__actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-outline {
    border: 2px solid currentColor;
    color: inherit;
    background: transparent;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.front-section {
    padding: 4rem 0;
}

.front-section__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.front-section__title {
    font-size: 2.25rem;
    margin: 0;
    color: #1e1e2d;
    font-weight: 700;
}

.front-section__subtitle {
    flex: 1 1 100%;
    max-width: 680px;
    color: #5b6071;
    font-size: 1.05rem;
    margin: 0;
    line-height: 1.8;
}

.front-section__action {
    margin-right: auto;
}

.front-features .front-section__header {
    justify-content: center;
    text-align: center;
}

.front-stats {
    background: #f8f9ff;
}

.front-stats__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.front-stat {
    text-align: center;
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.1);
}

.front-stat__value {
    font-size: 2.4rem;
    font-weight: 800;
    color: #3f51b5;
    margin-bottom: 0.5rem;
}

.front-stat__label {
    color: #5b6071;
    font-size: 1rem;
    font-weight: 500;
}

.front-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.front-feature {
    background: #fff;
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.front-feature:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

.front-feature__icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.front-feature__title {
    font-size: 1.4rem;
    color: #1e1e2d;
    margin-bottom: 1rem;
    font-weight: 700;
}

.front-feature__description {
    color: #5b6071;
    margin: 0;
    line-height: 1.7;
}

.front-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
}

.front-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.front-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.15);
}

.front-card__icon {
    font-size: 2.8rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
}

.front-card__icon img,
.front-feature__icon img,
.card-icon img {
    max-height: 120px;
    max-width: 120px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.front-card__icon,
.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.front-card__icon .riazi-icon-image,
.card-icon .riazi-icon-image {
    max-height: 120px;
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.front-card__media {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
}

.front-card__media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.front-card__body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    text-align: center;
    align-items: center;
}

.front-card__type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 999px;
    background: rgba(102, 126, 234, 0.15);
    color: #3f51b5;
    align-self: center;
}

.front-card__title {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.5;
}

.front-card__title a {
    color: #1e1e2d;
    text-decoration: none;
}

.front-card__title a:hover {
    color: #3f51b5;
}

.front-card__excerpt {
    color: #5b6071;
    line-height: 1.7;
    margin: 0;
}

.front-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    justify-content: center;
}

.front-card__badge {
    background: #f0f3ff;
    color: #3840a4;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.front-cta {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.front-cta__content {
    max-width: 680px;
    margin: 0 auto;
}

.front-cta__title {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.front-cta__description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.92;
}

.front-cta__button {
    padding: 0.9rem 2.4rem;
    font-size: 1.05rem;
    font-weight: 600;
}

@media (max-width: 991px) {
    .front-hero {
        padding: 5rem 0 4rem;
    }

    .front-hero__title {
        font-size: 2.4rem;
    }

    .front-stats__grid,
    .front-feature-grid,
    .front-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .front-hero__title {
        font-size: 2rem;
    }

    .front-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .front-stats__grid,
    .front-feature-grid,
    .front-card-grid {
        grid-template-columns: 1fr;
    }

    .front-section__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .front-section__action {
        margin-right: 0;
    }
}

/* Card Descriptions */
.card-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Center align grade card content (desktop and mobile) */
.grade-card {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.grade-card .card-icon {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    width: 100% !important;
}

.grade-card .card-title {
    text-align: center !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.grade-card .card-description {
    text-align: center !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.grade-card .btn {
    display: inline-block !important;
    margin: 0.75rem auto 0 auto !important;
    text-align: center !important;
}

/* Progress Section */
.progress-section {
    margin: 2rem 0;
}

.progress-item {
    margin-bottom: 1.5rem;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.progress-percentage {
    color: #667eea;
    font-weight: bold;
}

/* Lesson Page - Padding from header */
body.single-riazi_lesson .site-main,
body.single-riazi_lesson .container,
.single-riazi_lesson .site-main,
.single-riazi_lesson .container {
    padding-top: 2rem;
}

.lesson-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

/* Post Content Styles */
.post-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-top: 2rem;
    margin-bottom: 2rem;
    overflow: hidden;
}

.post-header {
    position: relative;
    margin-bottom: 0;
}

.post-featured-image {
    width: 100%;
    overflow: hidden;
    margin-bottom: 0;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.post-header-content {
    padding: 2.5rem 2.5rem 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-bottom: 3px solid #667eea;
}

.post-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 1.5rem 0;
    color: #1e1e2d;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    color: #666;
    font-size: 0.95rem;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-meta .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #667eea;
}

.post-body {
    padding: 2.5rem;
}

.post-content-wrapper {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #333;
    margin-bottom: 2.5rem;
}

.post-content-wrapper p {
    margin-bottom: 1.5rem;
}

.post-content-wrapper h2,
.post-content-wrapper h3,
.post-content-wrapper h4 {
    color: #667eea;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.post-content-wrapper h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #e0e7ff;
    padding-bottom: 0.5rem;
}

.post-content-wrapper h3 {
    font-size: 1.5rem;
}

.post-content-wrapper h4 {
    font-size: 1.3rem;
}

.post-content-wrapper ul,
.post-content-wrapper ol {
    margin: 1.5rem 0;
    padding-right: 2rem;
}

.post-content-wrapper li {
    margin-bottom: 0.8rem;
}

.post-content-wrapper blockquote {
    border-right: 4px solid #667eea;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: #f8f9ff;
    border-radius: 8px;
    font-style: italic;
    color: #555;
}

.post-content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-content-wrapper a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.post-content-wrapper a:hover {
    border-bottom-color: #667eea;
    color: #764ba2;
}

.post-navigation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin: 2.5rem 0;
}

.post-nav-card {
    border: 1px solid #e0e7ff;
    border-radius: 16px;
    padding: 1.5rem;
    background: #f8f9ff;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 18px rgba(102, 126, 234, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.post-nav-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(102, 126, 234, 0.25);
}

.post-nav-card h3 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.4;
    color: #1f2937;
}

.post-nav-card p {
    margin: 0;
    color: #4b5563;
    font-size: 0.95rem;
}

.post-nav-card .post-nav-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-nav-card .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.related-posts-section {
    margin: 2.5rem 0;
    padding: 2rem;
    border: 1px solid #e0e7ff;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.04), rgba(118, 75, 162, 0.04));
}

.related-posts-header {
    margin-bottom: 1.5rem;
}

.related-posts-header h3 {
    margin: 0;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1e1e2d;
}

.related-posts-header p {
    margin: 0.35rem 0 0;
    color: #6b7280;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.related-post-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.related-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 28px rgba(37, 99, 235, 0.15);
}

.related-post-thumbnail {
    display: block;
    width: 100%;
    height: 150px;
    overflow: hidden;
    position: relative;
}

.related-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-card:hover .related-post-thumbnail img {
    transform: scale(1.08);
}

.related-post-placeholder {
    width: 100%;
    height: 100%;
    background: #f3f4f6;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.related-post-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.related-post-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    text-decoration: none;
    line-height: 1.5;
}

.related-post-title:hover {
    color: #4f46e5;
}

.related-post-date {
    font-size: 0.85rem;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.related-post-date .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

@media (max-width: 768px) {
    .post-navigation {
        grid-template-columns: 1fr;
    }

    .related-posts-section {
        padding: 1.5rem;
    }
}

/* Post Tags */
.post-tags {
    margin: 2rem 0;
    padding: 1rem 1.25rem;
    background: #f8f9ff;
    border-radius: 8px;
    border: 1px solid #e0e7ff;
}

.post-tags-title {
    font-size: 1rem;
    font-weight: 600;
    color: #667eea;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-tags-title .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.post-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.post-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-tag:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

/* Post Sharing */
.post-sharing {
    margin: 2rem 0;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: 8px;
    border: 1px solid #e0e7ff;
}

.post-sharing-title {
    font-size: 1rem;
    font-weight: 600;
    color: #667eea;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-sharing-title .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.post-sharing-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.share-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.share-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.share-telegram:hover {
    background: #0088cc;
    border-color: #0088cc;
}

.share-whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
}

.share-twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
}

.share-copy:hover {
    background: #6c757d;
    border-color: #6c757d;
}

/* Post Short URL */
.post-short-url {
    margin: 2rem 0 0;
    padding: 1rem 1.25rem;
    background: #f8f9ff;
    border-radius: 8px;
    border: 1px solid #e0e7ff;
}

.short-url-label {
    font-size: 1rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.short-url-label .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.short-url-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.short-url-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e7ff;
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    color: #333;
    font-family: monospace;
}

.short-url-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.short-url-copy-btn {
    padding: 0.75rem 1.5rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.short-url-copy-btn:hover {
    background: #764ba2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.short-url-copy-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.short-url-copy-btn.copied {
    background: #28a745;
}

.short-url-copy-btn.copied::after {
    content: ' ✓';
}

/* ============================================
   POST COMMENTS SECTION - PROFESSIONAL STYLING
   ============================================ */

/* Comments Section Container */
.post-comments-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
}

.comments-area {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Comments Title */
.comments-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 2.5rem 0;
    color: #1e1e2d;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #667eea;
}

.comments-title .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: #667eea;
}

/* Comment List - Main Container */
.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    display: block;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Each Comment Item (li) - MUST be block and full width */
.comment-list > li {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: both !important;
    position: relative;
    box-sizing: border-box;
}

/* Comment Wrapper */
.comment-list .comment {
    display: flex;
    gap: 1.5rem;
    padding: 1.75rem 0;
    border-bottom: 1px solid #e5e7eb;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
}

.comment-list > li:last-child > .comment {
    border-bottom: none;
}

/* Remove border if comment has children */
.comment-list > li.has-children > .comment,
    .comment-list > li:has(.children) > .comment {
        border-bottom: none;
    padding-bottom: 0.75rem;
}

/* Comment Avatar */
.comment-avatar {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
}

.comment-avatar img {
    border-radius: 50%;
    width: 60px;
    height: 60px;
    border: 3px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Comment Content */
.comment-content {
    flex: 1;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Comment Meta */
.comment-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.875rem;
    flex-wrap: wrap;
}

.comment-author {
    font-weight: 700;
    color: #667eea;
    font-size: 1.05rem;
}

.comment-author a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.comment-author a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.comment-date {
    font-size: 0.875rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.comment-date .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.comment-awaiting-moderation {
    font-size: 0.875rem;
    color: #f59e0b;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    background: #fef3c7;
    border-radius: 6px;
    font-weight: 500;
}

.comment-awaiting-moderation .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Comment Text */
.comment-text {
    color: #374151;
    line-height: 1.8;
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 1rem;
}

.comment-text p {
    margin-bottom: 0.875rem;
}

.comment-text p:last-child {
    margin-bottom: 0;
}

/* Comment Actions */
.comment-actions {
    margin-top: 1rem;
    display: block;
    width: 100%;
}

.comment-actions a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    color: #667eea;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.comment-actions a:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    border-color: transparent;
}

.comment-actions .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* ============================================
   NESTED COMMENTS (REPLIES) - VERTICAL STACKING
   ============================================ */

/* Children Container - MUST be block and below parent */
.comment-list .children {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    margin-top: 1.5rem !important;
    margin-right: 3rem !important;
    display: block !important;
    width: calc(100% - 3rem) !important;
    max-width: calc(100% - 3rem) !important;
    float: none !important;
    clear: both !important;
    position: relative;
    box-sizing: border-box;
    overflow: visible;
}

/* Visual indicator line for replies */
.comment-list .children::before {
    content: '';
    position: absolute;
    right: -1.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
    opacity: 0.3;
    border-radius: 2px;
}

/* Each Reply Item (li) - MUST stack vertically */
.comment-list .children > li {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: both !important;
    position: relative !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

/* Reply Comment Wrapper */
.comment-list .children .comment {
    display: flex !important;
    gap: 1.25rem;
    padding: 1.25rem 0 !important;
    margin-top: 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
    box-sizing: border-box !important;
    min-width: 0;
    border-bottom: none !important;
}

.comment-list .children .comment:first-child {
    margin-top: 0 !important;
    padding-top: 0.5rem !important;
}

/* Reply Avatar */
.comment-list .children .comment-avatar {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
}

.comment-list .children .comment-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #e0e7ff;
}

/* Reply Content */
.comment-list .children .comment-content {
    flex: 1;
    background: linear-gradient(135deg, #f8f9ff, #f0f4ff);
    padding: 1.125rem 1.5rem;
    border-radius: 12px;
    border: 1px solid #e0e7ff;
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    min-width: 0;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.08);
}

/* Reply indicator */
.comment-list .children .comment-content::before {
    content: '↳';
    position: absolute;
    right: -1.875rem;
    top: 1.125rem;
    color: #667eea;
    font-size: 1.25rem;
    font-weight: bold;
    line-height: 1;
}

/* Reply Meta */
.comment-list .children .comment-meta {
    margin-bottom: 0.75rem;
}

.comment-list .children .comment-author {
    font-size: 0.975rem;
    color: #667eea;
    font-weight: 700;
}

.comment-list .children .comment-date {
    font-size: 0.8rem;
}

.comment-list .children .comment-text {
    font-size: 0.95rem;
    margin-bottom: 0.875rem;
    color: #374151;
}

.comment-list .children .comment-actions {
    margin-top: 0.875rem;
}

.comment-list .children .comment-actions a {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

/* Deeply Nested (Level 3+) */
.comment-list .children .children {
    margin-right: 2.5rem !important;
    width: calc(100% - 2.5rem) !important;
    max-width: calc(100% - 2.5rem) !important;
}

.comment-list .children .children::before {
    right: -1.25rem;
    width: 2px;
    opacity: 0.25;
}

.comment-list .children .children .children {
    margin-right: 2rem !important;
    width: calc(100% - 2rem) !important;
    max-width: calc(100% - 2rem) !important;
}

.comment-list .children .children .children::before {
    right: -1rem;
    width: 2px;
    opacity: 0.2;
}

/* Override WordPress defaults - CRITICAL RULES */
.comment-list ol.children,
.comment-list ul.children {
    display: block !important;
    float: none !important;
    clear: both !important;
    width: calc(100% - 3rem) !important;
    max-width: calc(100% - 3rem) !important;
    margin-right: 3rem !important;
    margin-top: 1.5rem !important;
    padding: 0 !important;
    list-style: none !important;
    box-sizing: border-box !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
    grid-auto-flow: row !important;
}

/* ABSOLUTE CRITICAL - Force vertical stacking for ALL reply items */
.comment-list .children li,
.comment-list .children > li,
.comment-list li .children li,
.comment-list li .children > li {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: both !important;
    position: relative !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    flex: none !important;
    flex-basis: auto !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    flex-direction: column !important;
    grid-column: auto !important;
    grid-row: auto !important;
    inline-size: 100% !important;
    max-inline-size: 100% !important;
}

/* Prevent any inline, inline-block, table, flex, or grid display */
.comment-list .children li,
.comment-list .children > li {
    display: block !important;
}

/* Force children container to be block and full width */
.comment-list li .children,
.comment-list > li .children,
.comment-list .comment + .children {
    display: block !important;
    width: calc(100% - 3rem) !important;
    max-width: calc(100% - 3rem) !important;
    margin-right: 3rem !important;
    margin-left: 0 !important;
    float: none !important;
    clear: both !important;
    position: relative !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
}

/* Ensure no horizontal layout for replies */
.comment-list .children,
.comment-list .children li,
.comment-list .children .comment {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.comment-list .children .comment {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* ============================================
   COMMENT FORM
   ============================================ */

.comment-form {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 2px solid #e5e7eb;
    clear: both;
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#respond {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 2px solid #e5e7eb;
    clear: both;
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.comment-reply-title,
.comment-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1.75rem 0;
    color: #1e1e2d;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.comment-reply-title .dashicons,
.comment-form-title .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #667eea;
}

#cancel-comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-right: 1rem;
    border: 1px solid transparent;
}

#cancel-comment-reply-link:hover {
    background: #dc2626;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.comment-respond {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
    clear: both;
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.comment-respond .comment-form {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.comment-form .form-submit {
    margin-top: 1.75rem;
    display: block;
}

.comment-form .form-submit .submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
    margin-bottom: 1.75rem;
}

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
    display: block;
    margin-bottom: 0.625rem;
    font-weight: 700;
    color: #374151;
    font-size: 1rem;
}

.comment-form-comment label .required,
.comment-form-author label .required,
.comment-form-email label .required {
    color: #ef4444;
}

.comment-form-comment textarea,
.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: #1e1e2d;
    font-family: inherit;
    box-sizing: border-box;
}

.comment-form-comment textarea:focus,
.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.comment-form-comment textarea {
    resize: vertical;
    min-height: 140px;
}

.comment-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.comment-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.comment-submit-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.no-comments {
    text-align: center;
    padding: 3rem 2rem;
    color: #6b7280;
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
    border-radius: 12px;
    margin: 2rem 0;
    border: 1px solid #e5e7eb;
}

/* Comment Pagination */
.comments-pagination {
    margin: 2.5rem 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.comments-pagination .nav-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.comments-pagination .page-numbers {
    padding: 0.625rem 1.25rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: #667eea;
    font-weight: 600;
    transition: all 0.3s ease;
}

.comments-pagination .page-numbers:hover,
.comments-pagination .page-numbers.current {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.comments-pagination .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .comments-area {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .comments-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .comment-list .comment {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem 0;
    }
    
    .comment-avatar {
        width: 50px;
        height: 50px;
    }
    
    .comment-avatar img {
        width: 50px;
        height: 50px;
    }
    
    .comment-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    /* Nested comments on mobile - Reduced indentation */
    .comment-list .children {
        margin-right: 1rem !important;
        width: calc(100% - 1rem) !important;
        max-width: calc(100% - 1rem) !important;
        margin-top: 1.25rem !important;
        box-sizing: border-box !important;
    }
    
    .comment-list .children::before {
        right: -0.5rem;
        width: 1.5px;
    }
    
    .comment-list .children .comment {
        gap: 0.75rem !important;
        padding: 1rem 0 !important;
    width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
}

.comment-list .children .comment-avatar {
        width: 40px !important;
        height: 40px !important;
        flex-shrink: 0 !important;
}

.comment-list .children .comment-avatar img {
        width: 40px !important;
        height: 40px !important;
}

.comment-list .children .comment-content {
        padding: 0.875rem 1rem !important;
    width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
.comment-list .children .comment-content::before {
        right: -1.25rem;
        font-size: 1rem;
    }
    
    /* Level 2 replies - minimal indentation */
    .comment-list .children .children {
        margin-right: 0.75rem !important;
        width: calc(100% - 0.75rem) !important;
        max-width: calc(100% - 0.75rem) !important;
        box-sizing: border-box !important;
    }
    
    .comment-list .children .children::before {
        right: -0.375rem;
        width: 1.5px;
    }
    
    .comment-list .children .children .comment-content {
        padding: 0.75rem 0.875rem !important;
    }
    
    /* Level 3+ replies - no indentation, full width */
    .comment-list .children .children .children {
        margin-right: 0.5rem !important;
        width: calc(100% - 0.5rem) !important;
        max-width: calc(100% - 0.5rem) !important;
        box-sizing: border-box !important;
    }
    
    .comment-list .children .children .children::before {
        display: none !important;
    }
    
    .comment-list .children .children .children .comment-content {
        padding: 0.75rem 0.875rem !important;
    }
    
    .comment-list .children .children .children .comment-content::before {
        display: none !important;
    }
    
    /* Level 4+ - absolutely no indentation */
    .comment-list .children .children .children .children {
        margin-right: 0 !important;
    width: 100% !important;
        max-width: 100% !important;
    }
    
    .comment-list .children .children .children .children .comment-content {
        padding: 0.75rem 1rem !important;
    }
    
    .comment-form-comment textarea {
        min-height: 120px;
    }
    
    /* Prevent horizontal scroll */
    body,
    .site-content,
    .comments-area,
    .comment-list,
    .comment-list > li,
    .comment-list .children,
    .comment-list .children > li {
    max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
}

    /* Extra mobile rules for vertical stacking */
    .comment-list .children li,
    .comment-list .children > li {
    display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    float: none !important;
    clear: both !important;
        box-sizing: border-box !important;
    }
    
    /* Ensure all reply content has proper width on mobile */
    .comment-list .children .comment-content,
    .comment-list .children .children .comment-content,
    .comment-list .children .children .children .comment-content {
        width: 100% !important;
    max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        overflow: visible !important;
    }
    
    /* Ensure comment text doesn't break layout */
    .comment-list .children .comment-text,
    .comment-list .children .children .comment-text,
    .comment-list .children .children .children .comment-text {
    width: 100% !important;
        max-width: 100% !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        box-sizing: border-box !important;
    }
    
    /* Fix for deeply nested comments - prevent text wrapping issues */
    .comment-list .children .comment,
    .comment-list .children .children .comment,
    .comment-list .children .children .children .comment {
    width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
}

/* ============================================
   FINAL OVERRIDE - HIGHEST PRIORITY
   Force vertical stacking - NO EXCEPTIONS
   ============================================ */

/* Override ANY possible inline styles or other CSS */
#comments .comment-list .children,
#comments .comment-list .children li,
#comments .comment-list .children > li,
.comments-area .comment-list .children,
.comments-area .comment-list .children li,
.comments-area .comment-list .children > li {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
    position: relative !important;
    box-sizing: border-box !important;
    flex: none !important;
    flex-basis: auto !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    grid-column: auto !important;
    grid-row: auto !important;
    inline-size: 100% !important;
    max-inline-size: 100% !important;
    margin-left: 0 !important;
    margin-right: 3rem !important;
}

/* Ensure children container is always block */
#comments .comment-list li .children,
.comments-area .comment-list li .children {
    display: block !important;
    width: calc(100% - 3rem) !important;
    max-width: calc(100% - 3rem) !important;
    margin-right: 3rem !important;
    margin-left: 0 !important;
    float: none !important;
    clear: both !important;
    position: relative !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

/* Prevent any horizontal layout */
#comments .comment-list .children li,
#comments .comment-list .children > li,
.comments-area .comment-list .children li,
.comments-area .comment-list .children > li {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: both !important;
}

/* User Dashboard Styles */
.user-dashboard {
    margin-top: 2rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 16px;
    border: 1px solid #e0e7ff;
}

.dashboard-welcome {
    flex: 1;
}

.dashboard-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #1e1e2d;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dashboard-title .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #667eea;
}

.dashboard-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
}

.dashboard-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #667eea;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dashboard-action-btn:hover {
    background: #764ba2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.dashboard-action-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Statistics Grid */
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

.stat-answers .stat-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.stat-correct .stat-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.stat-accuracy .stat-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.stat-quizzes .stat-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1e1e2d;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
}

/* Dashboard Content Grid */
.dashboard-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.dashboard-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.section-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    color: #1e1e2d;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #667eea;
}

.section-content {
    padding: 1.5rem;
}

/* Quiz Results List */
.quiz-results-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quiz-result-item {
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    transition: all 0.3s ease;
}

.quiz-result-item:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.quiz-result-item.passed {
    border-right: 4px solid #10b981;
}

.quiz-result-item.failed {
    border-right: 4px solid #ef4444;
}

.quiz-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.quiz-result-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.quiz-result-title a {
    color: #1e1e2d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.quiz-result-title a:hover {
    color: #667eea;
}

.quiz-result-date {
    font-size: 0.85rem;
    color: #6b7280;
}

.quiz-result-details {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.quiz-result-score {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.score-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e1e2d;
    line-height: 1;
}

.score-label {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.quiz-result-answers {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.correct-count {
    font-weight: 700;
    color: #10b981;
}

.total-count {
    color: #6b7280;
}

.separator {
    color: #9ca3af;
}

.answers-label {
    font-size: 0.85rem;
    color: #6b7280;
    margin-right: 0.5rem;
}

.quiz-result-status {
    margin-right: auto;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-badge .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.status-passed {
    background: #d1fae5;
    color: #065f46;
}

.status-failed {
    background: #fee2e2;
    color: #991b1b;
}

/* Lessons List */
.lessons-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lesson-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 8px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-right: 3px solid #667eea;
    transition: all 0.3s ease;
}

.lesson-item:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    border-right-color: #764ba2;
    transform: translateX(-2px);
}

.lesson-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
}

.lesson-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.lesson-content {
    flex: 1;
}

.lesson-title {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
}

.lesson-title a {
    color: #1e1e2d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.lesson-title a:hover {
    color: #667eea;
}

.lesson-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.lesson-stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.lesson-stat-item .stat-label {
    color: #6b7280;
}

.lesson-stat-item .stat-value {
    font-weight: 600;
    color: #1e1e2d;
}

.lesson-stat-item .stat-value.stat-accuracy {
    color: #667eea;
}

.lesson-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #6b7280;
}

.lesson-meta .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.lesson-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.empty-state .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* Quick Actions */
.dashboard-quick-actions {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.dashboard-quick-actions .section-title {
    margin-bottom: 1.5rem;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border: 2px solid #e0e7ff;
    border-radius: 12px;
    text-decoration: none;
    color: #667eea;
    transition: all 0.3s ease;
}

.quick-action-btn:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.quick-action-btn .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

.action-label {
    font-weight: 600;
    font-size: 0.95rem;
}

/* Profile Edit Page Styles */
.profile-edit-page {
    margin-top: 2rem;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 12px;
    border: 1px solid #e0e7ff;
}

.profile-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    color: #1e1e2d;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.profile-title .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: #667eea;
}

.back-to-dashboard {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    color: #667eea;
    border: 1px solid #667eea;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-to-dashboard:hover {
    background: #667eea;
    color: white;
}

.back-to-dashboard .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.profile-message {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.profile-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.profile-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.profile-message .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.profile-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.profile-section .section-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
}

.profile-section .section-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: #1e1e2d;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.profile-section .section-title .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
    color: #667eea;
}

.profile-form {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

.form-group label .required {
    color: #ef4444;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: #1e1e2d;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control:disabled {
    background: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
}

.form-control[type="password"] {
    font-family: monospace;
}

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

.form-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #6b7280;
}

.form-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.form-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-actions .btn:hover {
    background: #764ba2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.form-actions .btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Profile Page Responsive */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .profile-title {
        font-size: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .profile-form {
        padding: 1.5rem;
    }
}

/* Dashboard Responsive */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .dashboard-title {
        font-size: 1.5rem;
    }
    
    .dashboard-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-content-grid {
        grid-template-columns: 1fr;
    }
    
    .quiz-result-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Responsive for Posts */
@media (max-width: 768px) {
    .post-header-content {
        padding: 1.5rem;
    }
    
    .post-title {
        font-size: 1.6rem;
    }
    
    .post-content {
        margin-top: 1.5rem;
    }
    
    .post-body {
        padding: 1.5rem;
    }
    
    .post-content-wrapper {
        font-size: 1rem;
    }
    
    .post-meta {
        gap: 1rem;
        font-size: 0.85rem;
    }
    
    .post-sharing-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
    
    .short-url-wrapper {
        flex-direction: column;
    }
    
    .short-url-copy-btn {
        width: 100%;
        justify-content: center;
    }
}

.lesson-featured-image {
    margin: 0 0 2rem 0;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.lesson-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    object-fit: cover;
}

.entry-header {
    margin-bottom: 2rem;
}

.lesson-content .entry-header {
    margin-bottom: 0;
    padding-bottom: 2rem;
}

.lesson-content .entry-content {
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.entry-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

/* Beautiful Lesson Title Styling */
.lesson-content .entry-title {
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    margin-bottom: 1.5rem !important;
    padding-bottom: 1rem !important;
    color: #1a1a1a !important;
    line-height: 1.3 !important;
    border-bottom: 3px solid #667eea !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    letter-spacing: -0.02em !important;
    transition: all 0.3s ease !important;
}

/* Fallback for browsers that don't support background-clip: text */
@supports not (-webkit-background-clip: text) {
    .lesson-content .entry-title {
        color: #667eea !important;
        -webkit-text-fill-color: #667eea !important;
    }
}

/* Responsive lesson title */
@media (max-width: 768px) {
    .lesson-content .entry-title {
        font-size: 2rem !important;
        padding-bottom: 0.75rem !important;
        margin-bottom: 1.25rem !important;
    }
}

@media (max-width: 480px) {
    .lesson-content .entry-title {
        font-size: 1.75rem !important;
        padding-bottom: 0.5rem !important;
        margin-bottom: 1rem !important;
    }
}

.lesson-video {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    border-radius: 8px;
    overflow: hidden;
}

.lesson-steps {
    margin-top: 2rem;
}

.lesson-step {
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-right: 4px solid #667eea;
}

.step-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #667eea;
}

/* Question Styles */
.question-container {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.question-text {
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 400;
    line-height: 1.6;
}

.question-options {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.question-option {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    gap: 0.75rem;
}

.question-option:hover {
    background: #e9ecef;
    border-color: #667eea;
    transform: translateX(-5px);
}

.question-option.selected {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Correct answer - always green */
.question-option.correct {
    background: #28a745 !important;
    color: white !important;
    border-color: #28a745 !important;
    border-width: 2px !important;
}

/* Incorrect user selection - red, but only if not correct */
.question-option.incorrect {
    background: #dc3545 !important;
    color: white !important;
    border-color: #dc3545 !important;
    border-width: 2px !important;
}

/* If somehow both classes exist, incorrect takes priority */
.question-option.correct.incorrect {
    background: #dc3545 !important;
    color: white !important;
    border-color: #dc3545 !important;
}

.option-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
}

.question-option.selected .option-label,
.question-option.correct .option-label,
.question-option.incorrect .option-label {
    background: rgba(255, 255, 255, 0.3);
}

.option-text {
    flex: 1;
}

.question-explanation {
    margin-top: 1rem;
    padding: 1.5rem;
    background: #e7f3ff;
    border-radius: 8px;
    border-right: 4px solid #2196F3;
}

.question-explanation h4 {
    color: #2196F3;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.explanation-content {
    line-height: 1.8;
    color: #333;
}

.question-answer-section {
    margin-top: 1.5rem;
}

.view-answer-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 0.95rem;
}

.view-answer-btn:hover {
    background: #5568d3;
}

/* Quiz Styles - removed max-width restriction */

.quiz-timer {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #dc3545;
    margin-bottom: 2rem;
}

.quiz-results {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    margin-top: 2rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.quiz-questions-results {
    margin-top: 2rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.quiz-questions-results h2 {
    margin-bottom: 2rem;
    color: #667eea;
    text-align: center;
}

.quiz-score {
    font-size: 3rem;
    font-weight: bold;
    color: #667eea;
    margin: 1rem 0;
}

/* Dashboard */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* Lesson Taxonomies */
.lesson-taxonomies {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.taxonomy-item {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.taxonomy-item strong {
    color: #667eea;
    min-width: 80px;
}

.taxonomy-item span {
    background: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* Lesson Video */
.lesson-video {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.lesson-video h3 {
    margin-bottom: 1rem;
    color: #667eea;
}

.video-duration-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.video-duration {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-duration .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.video-fullscreen-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #2271b1;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    font-family: 'Vazir', sans-serif;
}

.video-fullscreen-link:hover {
    background: #135e96;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(34, 113, 177, 0.3);
}

.video-fullscreen-link:active {
    transform: translateY(0);
}

.video-fullscreen-link .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.video-fullscreen-link .fullscreen-link-text {
    display: inline-block;
}

/* Mobile specific styles */
@media (max-width: 768px) {
    .video-duration-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .video-fullscreen-link {
        width: 100%;
        justify-content: center;
        padding: 10px 15px;
        font-size: 1rem;
    }
    
    .video-fullscreen-link .fullscreen-link-text {
        display: inline-block;
    }
}

/* Lesson Audio */
.lesson-audio {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.lesson-audio h3 {
    margin-bottom: 1rem;
    color: #667eea;
}

/* Lesson Gallery */
.lesson-gallery {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.lesson-gallery h3 {
    margin-bottom: 1rem;
    color: #667eea;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
    width: 100%;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 2px solid #ddd;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

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

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-item a {
    display: block;
    text-decoration: none;
}

/* Gallery Viewer - Professional Lightbox */
.riazi-gallery-viewer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.riazi-gallery-viewer[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.gallery-viewer-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
}

.gallery-viewer-container {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
}

.gallery-viewer-content {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1400px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gallery-viewer-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 0;
}

.gallery-viewer-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-viewer-image.loaded {
    opacity: 1;
}

.gallery-viewer-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-viewer-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.gallery-viewer-loading.hidden {
    display: none;
}

.gallery-viewer-info {
    margin-top: 1.5rem;
    text-align: center;
    color: #fff;
    width: 100%;
    max-width: 800px;
}

.gallery-viewer-counter {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.gallery-viewer-caption {
    font-size: 1rem;
    color: #fff;
    line-height: 1.6;
    padding: 0 1rem;
}

/* Navigation Buttons */
.gallery-viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: #fff;
    padding: 0;
    margin: 0;
}

.gallery-viewer-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.gallery-viewer-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.gallery-viewer-nav .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    line-height: 28px;
}

.gallery-viewer-prev {
    right: 2rem;
}

.gallery-viewer-next {
    left: 2rem;
}

/* Close Button */
.gallery-viewer-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: #fff;
    padding: 0;
    margin: 0;
}

.gallery-viewer-close:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.gallery-viewer-close:active {
    transform: scale(0.95);
}

.gallery-viewer-close .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    line-height: 24px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .gallery-viewer-container {
        padding: 1rem;
    }
    
    .gallery-viewer-nav {
        width: 44px;
        height: 44px;
    }
    
    .gallery-viewer-nav .dashicons {
        font-size: 22px;
        width: 22px;
        height: 22px;
        line-height: 22px;
    }
    
    .gallery-viewer-prev {
        right: 0.5rem;
    }
    
    .gallery-viewer-next {
        left: 0.5rem;
    }
    
    .gallery-viewer-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
    
    .gallery-viewer-close .dashicons {
        font-size: 20px;
        width: 20px;
        height: 20px;
        line-height: 20px;
    }
    
    .gallery-viewer-info {
        margin-top: 1rem;
    }
    
    .gallery-viewer-caption {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }
    
    .gallery-viewer-counter {
        font-size: 0.85rem;
    }
}

/* RTL Support */
html[dir="rtl"] .gallery-viewer-prev {
    left: 2rem;
    right: auto;
}

html[dir="rtl"] .gallery-viewer-next {
    right: 2rem;
    left: auto;
}

html[dir="rtl"] .gallery-viewer-close {
    left: 2rem;
    right: auto;
}

@media (max-width: 768px) {
    html[dir="rtl"] .gallery-viewer-prev {
        left: 0.5rem;
    }
    
    html[dir="rtl"] .gallery-viewer-next {
        right: 0.5rem;
    }
    
    html[dir="rtl"] .gallery-viewer-close {
        left: 1rem;
    }
}

/* Lightbox */
.riazi-no-scroll {
	overflow: hidden;
}

.riazi-lightbox[aria-hidden="true"] {
	display: none;
}

.riazi-lightbox {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.riazi-lightbox .lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.85);
}

.riazi-lightbox .lightbox-content {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: auto 1fr auto;
	grid-template-rows: auto 1fr auto;
	align-items: center;
	gap: 1rem;
	max-width: min(95vw, 1200px);
	max-height: 90vh;
	padding: 1rem;
	box-sizing: border-box;
}

.riazi-lightbox .lightbox-image-wrapper {
	grid-column: 1 / -1;
	grid-row: 2 / 3;
	display: flex;
	align-items: center;
	justify-content: center;
	max-height: 70vh;
}

.riazi-lightbox .lightbox-image {
	max-width: 100%;
	max-height: 70vh;
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
	display: block;
}

.riazi-lightbox .lightbox-caption {
	grid-column: 1 / -1;
	grid-row: 3 / 4;
	text-align: center;
	color: #f3f4f6;
	margin-top: 0.5rem;
	font-size: 0.95rem;
}

.riazi-lightbox .lightbox-btn {
	position: relative;
	z-index: 2;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 999px;
	width: 44px;
	height: 44px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s, transform 0.1s;
	user-select: none;
}

.riazi-lightbox .lightbox-btn:hover {
	background: rgba(255, 255, 255, 0.15);
}

.riazi-lightbox .lightbox-btn:active {
	transform: scale(0.96);
}

.riazi-lightbox .lightbox-close {
	position: absolute;
	top: 12px;
	/* respect both RTL/LTR by placing at logical end */
	inset-inline-end: 12px;
	font-size: 22px;
	line-height: 1;
}

.riazi-lightbox .lightbox-prev {
	grid-column: 1 / 2;
	grid-row: 2 / 3;
}

.riazi-lightbox .lightbox-next {
	grid-column: 3 / 4;
	grid-row: 2 / 3;
}

.riazi-lightbox.loading .lightbox-image {
	opacity: 0.6;
	filter: blur(2px);
	transition: opacity 0.2s ease, filter 0.2s ease;
}

/* Lesson PDF */
.lesson-pdf {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f0f4ff;
    border-radius: 8px;
    border-right: 4px solid #667eea;
}

.lesson-pdf h3 {
    margin-bottom: 1rem;
    color: #667eea;
}

.lesson-pdf .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.lesson-pdf .btn:hover {
    background: #5568d3;
}

.lesson-pdf .btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Multiple PDFs list */
.lesson-pdf-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0.75rem;
}

.lesson-pdf-item {
	display: flex;
	align-items: center;
}

.lesson-pdf--compact {
    background: #f8f9ff;
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
}

.lesson-pdf--compact .lesson-pdf-buttons {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.lesson-pdf--compact .pdf-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(99, 102, 241, 0.4);
    background: #fff;
    color: #1f2937;
    font-size: 0.95rem;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.lesson-pdf--compact .pdf-chip:hover {
    border-color: rgba(99, 102, 241, 0.75);
    background: #eef2ff;
}

.lesson-pdf--compact .pdf-chip__icon {
    font-size: 1rem;
    line-height: 1;
}

.lesson-pdf--compact .pdf-chip__text {
    flex: 1;
}

/* Video Wrapper Styles */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin: 1rem 0;
    border-radius: 8px;
    background: #000;
    width: 100%;
    max-width: 100%;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* فول اسکرین برای موبایل - فقط برای ویدیوهای آپلود شده */
@media (max-width: 768px) {
    .video-wrapper:not(.youtube-video):not(.aparat-video) {
        position: relative;
        padding-bottom: 0;
        height: auto;
        min-height: 50vh;
        max-height: 50vh;
    }
    
    .video-wrapper:not(.youtube-video):not(.aparat-video) video {
        position: relative;
        width: 100%;
        height: 50vh;
        object-fit: contain;
    }
    
    /* YouTube and Aparat videos - keep normal aspect ratio but limit height */
    .youtube-container,
    .aparat-container {
        max-height: 50vh;
        padding-bottom: 56.25% !important;
    }
    
    .youtube-container iframe,
    .aparat-container iframe {
        max-height: 100%;
    }
}

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

.youtube-video,
.aparat-video {
    max-width: 100%;
    width: 100%;
}

/* Audio Wrapper Styles */
.audio-wrapper {
    margin: 1rem 0;
}

.soundcloud-audio iframe {
    border-radius: 8px;
    max-width: 100%;
}

/* Lesson videos and audios containers */
.lesson-videos,
.lesson-audios {
    margin: 2rem 0;
    width: 100%;
	padding: 1.25rem 1.25rem 1rem 1.25rem;
	background: #f8f9fa;
	border-radius: 10px;
	border-right: 4px solid #667eea;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.lesson-videos h3,
.lesson-audios h3 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #667eea;
	margin: 0;
	padding: 0;
	background: transparent;
	display: block;
	border: none;
	border-radius: 0;
	box-shadow: none;
}

.lesson-section-header h3 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #667eea;
    margin: 0;
    flex: 1;
}

/* Collapsible header and button */
.lesson-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.lesson-toggle-btn {
	background: #667eea;
	color: #fff;
	border: 1px solid #5a67d8;
	border-radius: 8px;
	padding: 0.5rem 1rem;
	cursor: pointer;
	transition: background 0.2s ease;
}

.lesson-toggle-btn:hover {
	background: #5568d3;
}

.lesson-video-item,
.lesson-audio-item {
	margin-bottom: 2rem;
    width: 100%;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 1rem;
	box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.lesson-video-item h4,
.lesson-audio-item h4 {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
}

/* Center video and audio wrappers */
.video-wrapper-center,
.audio-wrapper-center {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0;
    width: 100%;
}

.video-wrapper-center .video-wrapper,
.audio-wrapper-center .audio-wrapper {
    margin: 0;
    max-width: 100%;
    width: 100%;
}

.video-wrapper-center .video-wrapper {
    max-width: 900px;
    width: 100%;
}

.audio-wrapper-center {
    flex-direction: column;
}

.audio-wrapper-center .audio-wrapper {
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
}

.audio-wrapper-center audio {
    width: 100%;
    display: block;
    margin: 0 auto;
}

.audio-wrapper-center .soundcloud-audio {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.video-fallback-note {
    margin-top: 0.75rem;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.06);
    border-right: 3px solid #3b82f6;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.video-fallback-note p {
    margin: 0;
    font-size: 0.9rem;
    color: #475569;
}

.video-fallback-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.video-fallback-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.45rem 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(59,130,246,0.6);
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.video-fallback-btn:hover {
    background: rgba(59,130,246,0.08);
}

/* YouTube and Aparat responsive containers */
.youtube-container,
.aparat-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 8px;
}

/* YouTube Fullscreen Button for Mobile */
.youtube-fullscreen-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
    transition: all 0.3s ease;
    font-family: 'Vazir', sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.youtube-fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
    border-color: white;
}

.youtube-fullscreen-btn:active {
    transform: scale(0.98);
}

.youtube-fullscreen-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.youtube-fullscreen-btn .fullscreen-text {
    display: inline-block;
}

/* Hide fullscreen button on desktop (YouTube has its own) */
@media (min-width: 769px) {
    .youtube-fullscreen-btn {
        display: none;
    }
}

/* Show fullscreen button on mobile */
@media (max-width: 768px) {
    .youtube-fullscreen-btn {
        display: flex;
        padding: 5px 8px;
        font-size: 11px;
        gap: 4px;
    }
    
    .youtube-fullscreen-btn .dashicons {
        font-size: 14px;
        width: 14px;
        height: 14px;
    }
    
    /* Limit video height on mobile to prevent it from being too tall */
    .youtube-container {
        max-height: 50vh;
        padding-bottom: 56.25% !important;
        height: 0;
    }
    
    .youtube-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        max-height: 100%;
    }
    
    /* Also limit video wrapper */
    .video-wrapper.youtube-video {
        max-height: 50vh;
    }
    
    .video-wrapper-center .video-wrapper.youtube-video {
        max-height: 50vh;
    }
    
    .lesson-video-item .video-wrapper-center {
        max-height: 50vh;
        overflow: hidden;
    }
    
    .lesson-video-item .youtube-container {
        max-height: 50vh;
    }
}

/* Fullscreen landscape mode */
@media (max-width: 768px) {
    /* When in fullscreen, ensure landscape layout */
    :fullscreen .youtube-container,
    :-webkit-full-screen .youtube-container,
    :-moz-full-screen .youtube-container,
    :-ms-fullscreen .youtube-container {
        width: 100vw;
        height: 100vh;
        padding-bottom: 0 !important;
        max-height: 100vh !important;
    }
    
    :fullscreen .youtube-container iframe,
    :-webkit-full-screen .youtube-container iframe,
    :-moz-full-screen .youtube-container iframe,
    :-ms-fullscreen .youtube-container iframe {
        width: 100vw;
        height: 100vh;
        max-height: 100vh !important;
    }
    
    /* Hide fullscreen button when in fullscreen */
    :fullscreen .youtube-fullscreen-btn,
    :-webkit-full-screen .youtube-fullscreen-btn,
    :-moz-full-screen .youtube-fullscreen-btn,
    :-ms-fullscreen .youtube-fullscreen-btn {
        display: none;
    }
}

.youtube-container iframe,
.aparat-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive video containers */
@media (max-width: 768px) {
    .youtube-container,
    .aparat-container {
        padding-bottom: 56.25%;
    }
    
    /* Hide video fallback note on mobile */
    .video-fallback-note {
        display: none !important;
    }
    
    /* Fullscreen support for videos */
    .youtube-container iframe,
    .aparat-container iframe {
        width: 100% !important;
        height: 100% !important;
    }
    
    /* Make content wider on mobile */
    .entry-content,
    .lesson-content .entry-content,
    .single-riazi_lesson .entry-content,
    .single-riazi_course .entry-content {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .container {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Video wrapper full width on mobile */
    .video-wrapper,
    .youtube-video,
    .aparat-video {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Lesson videos container */
    .lesson-videos,
    .lesson-audios {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Gallery Item Description */
.gallery-item-description {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

/* Important Notes Accordion */
.lesson-important-notes {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #fff9e6;
    border-radius: 8px;
    border-right: 4px solid #f59e0b;
}

.lesson-important-notes h3 {
    color: #f59e0b;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.notes-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.note-item {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}

.note-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.note-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #fff9e6;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s;
    border: none;
    width: 100%;
    text-align: right;
}

.note-header:hover {
    background: #fff3cd;
}

.note-header.active {
    background: #fef3c7;
}

.note-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.note-header strong {
    flex: 1;
    color: #92400e;
    font-size: 1.1rem;
}

.note-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f59e0b;
    transition: transform 0.3s;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.note-header.active .note-toggle {
    transform: rotate(45deg);
}

.note-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    display: block;
}

.note-content.active {
    max-height: 2000px;
    transition: max-height 0.5s ease-in;
    display: block;
}

.note-content-inner {
    padding: 1.5rem;
    color: #333;
    line-height: 1.8;
}

.note-content-inner p {
    margin-bottom: 1rem;
}

.note-content-inner p:last-child {
    margin-bottom: 0;
}

/* Notes Color Variations */
.lesson-important-notes--default {
    background: #fff9e6;
    border-right-color: #f59e0b;
}

.lesson-important-notes--default h3 {
    color: #f59e0b;
}

.lesson-important-notes--default .note-header {
    background: #fff9e6;
}

.lesson-important-notes--default .note-header:hover {
    background: #fff3cd;
}

.lesson-important-notes--default .note-header.active {
    background: #fef3c7;
}

.lesson-important-notes--default .note-header strong {
    color: #92400e;
}

.lesson-important-notes--default .note-toggle {
    color: #f59e0b;
}

/* Blue */
.lesson-important-notes--blue {
    background: #eff6ff;
    border-right-color: #3b82f6;
}

.lesson-important-notes--blue h3 {
    color: #3b82f6;
}

.lesson-important-notes--blue .note-header {
    background: #eff6ff;
}

.lesson-important-notes--blue .note-header:hover {
    background: #dbeafe;
}

.lesson-important-notes--blue .note-header.active {
    background: #bfdbfe;
}

.lesson-important-notes--blue .note-header strong {
    color: #1e40af;
}

.lesson-important-notes--blue .note-toggle {
    color: #3b82f6;
}

/* Green */
.lesson-important-notes--green {
    background: #f0fdf4;
    border-right-color: #22c55e;
}

.lesson-important-notes--green h3 {
    color: #22c55e;
}

.lesson-important-notes--green .note-header {
    background: #f0fdf4;
}

.lesson-important-notes--green .note-header:hover {
    background: #dcfce7;
}

.lesson-important-notes--green .note-header.active {
    background: #bbf7d0;
}

.lesson-important-notes--green .note-header strong {
    color: #166534;
}

.lesson-important-notes--green .note-toggle {
    color: #22c55e;
}

/* Yellow */
.lesson-important-notes--yellow {
    background: #fefce8;
    border-right-color: #eab308;
}

.lesson-important-notes--yellow h3 {
    color: #eab308;
}

.lesson-important-notes--yellow .note-header {
    background: #fefce8;
}

.lesson-important-notes--yellow .note-header:hover {
    background: #fef9c3;
}

.lesson-important-notes--yellow .note-header.active {
    background: #fef08a;
}

.lesson-important-notes--yellow .note-header strong {
    color: #854d0e;
}

.lesson-important-notes--yellow .note-toggle {
    color: #eab308;
}

/* Red */
.lesson-important-notes--red {
    background: #fef2f2;
    border-right-color: #ef4444;
}

.lesson-important-notes--red h3 {
    color: #ef4444;
}

.lesson-important-notes--red .note-header {
    background: #fef2f2;
}

.lesson-important-notes--red .note-header:hover {
    background: #fee2e2;
}

.lesson-important-notes--red .note-header.active {
    background: #fecaca;
}

.lesson-important-notes--red .note-header strong {
    color: #991b1b;
}

.lesson-important-notes--red .note-toggle {
    color: #ef4444;
}

/* Purple */
.lesson-important-notes--purple {
    background: #faf5ff;
    border-right-color: #a855f7;
}

.lesson-important-notes--purple h3 {
    color: #a855f7;
}

.lesson-important-notes--purple .note-header {
    background: #faf5ff;
}

.lesson-important-notes--purple .note-header:hover {
    background: #f3e8ff;
}

.lesson-important-notes--purple .note-header.active {
    background: #e9d5ff;
}

.lesson-important-notes--purple .note-header strong {
    color: #6b21a8;
}

.lesson-important-notes--purple .note-toggle {
    color: #a855f7;
}

/* Orange */
.lesson-important-notes--orange {
    background: #fff7ed;
    border-right-color: #f97316;
}

.lesson-important-notes--orange h3 {
    color: #f97316;
}

.lesson-important-notes--orange .note-header {
    background: #fff7ed;
}

.lesson-important-notes--orange .note-header:hover {
    background: #ffedd5;
}

.lesson-important-notes--orange .note-header.active {
    background: #fed7aa;
}

.lesson-important-notes--orange .note-header strong {
    color: #9a3412;
}

.lesson-important-notes--orange .note-toggle {
    color: #f97316;
}

/* Learning Objectives Styles */
.lesson-objectives {
    margin: 2rem 0;
    padding: 0;
    background: transparent;
    border-radius: 12px;
}

.objectives-title-center {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.objectives-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
    color: #fff;
}

.objectives-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.objectives-list li {
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
    border-right: 3px solid rgba(255, 255, 255, 0.3);
}

.objectives-list li:last-child {
    margin-bottom: 0;
}

.objectives-list li:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.objective-icon {
    font-size: 1.25rem;
    color: #4ade80;
    flex-shrink: 0;
    margin-top: 0.125rem;
    font-weight: bold;
    background: rgba(74, 222, 128, 0.2);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.objective-text {
    flex: 1;
    line-height: 1.8;
    font-size: 1rem;
    font-weight: 500;
}

/* Center all section titles */
.section-title-center {
    text-align: center !important;
    width: 100%;
}

/* Highlight shortcode styles */
.riazi-highlight {
    margin: 1.5rem 0;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.riazi-highlight-content {
    padding: 1.5rem 2rem;
    line-height: 1.8;
    font-size: 1rem;
}

/* Highlight color variants */
.riazi-highlight-default {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-right: 4px solid #667eea;
}

.riazi-highlight-blue {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-right: 4px solid #0ea5e9;
}

.riazi-highlight-green {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-right: 4px solid #22c55e;
}

.riazi-highlight-yellow {
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
    border-right: 4px solid #eab308;
}

.riazi-highlight-red {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-right: 4px solid #ef4444;
}

.riazi-highlight-purple {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-right: 4px solid #a855f7;
}

/* Responsive styles for educational content */
@media (max-width: 768px) {
    .lesson-videos,
    .lesson-audios,
    .lesson-pdf,
    .lesson-objectives,
    .lesson-important-notes {
        margin: 1.5rem 0;
        padding: 1rem;
    }
    
    .lesson-videos h3,
    .lesson-audios h3,
    .lesson-objectives h3,
    .lesson-important-notes h3,
    .section-title-center,
    .objectives-title-center {
        font-size: 1.25rem;
    }
    
    .lesson-section-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .lesson-toggle-btn {
        width: 100%;
        text-align: center;
    }
    
    .video-wrapper-center .video-wrapper,
    .audio-wrapper-center .audio-wrapper {
        max-width: 100%;
    }
    
    .objectives-box {
        padding: 1.5rem;
    }
    
    .objectives-list li {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }
    
    .objective-text {
        font-size: 0.9rem;
    }
    
    .objective-icon {
        width: 24px;
        height: 24px;
        font-size: 1rem;
    }
    
    .riazi-highlight-content {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .note-header {
        padding: 0.75rem 1rem;
    }
    
    .note-content-inner {
        padding: 1rem;
    }
}

/* Lesson Text Content */
.lesson-text-content {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    line-height: 1.8;
}

/* Table of Contents */
.riazi-toc {
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border-radius: 1rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.riazi-toc__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #312e81;
}

.riazi-toc__icon {
    font-size: 1.2rem;
}

.riazi-toc__body {
    max-height: 400px;
    overflow-y: auto;
    padding-left: 0.5rem;
}

.riazi-toc__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.riazi-toc__item {
    margin: 0;
}

.riazi-toc__item a {
    display: block;
    padding: 0.25rem 0;
    font-size: 0.95rem;
    text-decoration: none;
    color: #1f2937;
    border-right: 3px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.riazi-toc__item.level-h3 a {
    padding-right: 1rem;
    font-size: 0.9rem;
}

.riazi-toc__item.level-h4 a {
    padding-right: 1.5rem;
    font-size: 0.88rem;
}

.riazi-toc__item a:hover {
    color: #4f46e5;
    border-color: #4f46e5;
}

.riazi-toc--empty {
    display: none;
}

.lesson-text-content p {
    margin-bottom: 1rem;
}

.lesson-text-content p:last-child {
    margin-bottom: 0;
}

/* Lesson Card */
.lesson-card {
    margin-bottom: 2rem;
}

.card-thumbnail {
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.card-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.card-content {
    padding: 1.5rem;
	text-align: center;
}

.card-title {
    margin-bottom: 1rem;
}

.card-title a {
    color: #667eea;
    text-decoration: none;
    font-size: 1.3rem;
	text-align: center;
}

.card-title a:hover {
    text-decoration: underline;
}

.card-excerpt {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.card-taxonomies {
	display: inline-flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin: 0.5rem 0 1rem 0;
	justify-content: center;
	align-items: center;
	width: 100%;
}

.taxonomy-badge {
    background: #667eea;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.difficulty-badge {
    background: #f59e0b;
}

.card-progress {
    margin: 1rem 0;
}

.progress-text {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
    display: block;
}

/* Lessons Grid */
.lessons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Chapter Meta */
.chapter-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-item strong {
    color: #667eea;
}

/* Chapter Description */
.chapter-description {
    margin: 1rem 0;
    padding: 1rem;
    background: #f0f4ff;
    border-radius: 8px;
    border-right: 4px solid #667eea;
}

/* Chapter Lessons */
.chapter-lessons {
    margin: 2rem 0;
}

.chapter-lessons h2 {
    margin-bottom: 1.5rem;
    color: #667eea;
}

/* Lesson Card in Chapter */
.chapter-lessons .lesson-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.chapter-lessons .lesson-card h3 {
    margin-bottom: 0.5rem;
}

.chapter-lessons .lesson-card h3 a {
    color: #667eea;
    text-decoration: none;
}

.chapter-lessons .lesson-card h3 a:hover {
    text-decoration: underline;
}

.lesson-meta {
    display: flex;
    gap: 1rem;
    margin: 0.5rem 0;
    color: #666;
    font-size: 0.9rem;
}

.lesson-progress {
    margin: 1rem 0;
}

/* Chapter Card */
.chapter-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.chapter-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.chapter-card .card-title {
    margin: 0;
}

.chapter-card .card-title a {
    color: #667eea;
    text-decoration: none;
}

.chapter-card .card-title a:hover {
    text-decoration: underline;
}

.chapter-order {
    background: #667eea;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.chapter-progress {
    margin: 1rem 0;
}

/* Breadcrumb */
.breadcrumb {
    margin: 1rem 0;
    color: #666;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Question Styles */
.question-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.question-answer,
.question-solution {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-right: 4px solid #667eea;
}

.question-answer h3,
.question-solution h3 {
    color: #667eea;
    margin-bottom: 1rem;
}

.question-card,
.quiz-card {
    margin-bottom: 2rem;
}

.questions-grid,
.quizzes-grid,
.quizzes-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Quiz Card Styles with Featured Image */
.quiz-card .card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.quiz-card .card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.quiz-card .card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f3f4f6;
    position: relative;
}

.quiz-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.quiz-card .card:hover .card-image img {
    transform: scale(1.05);
}

.quiz-card .card-image-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.quiz-card .card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.quiz-card .card-title {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
}

.quiz-card .card-title a {
    color: #1e1e2d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.quiz-card .card-title a:hover {
    color: #667eea;
}

.quiz-card .card-excerpt {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.quiz-card .card-taxonomies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.quiz-card .taxonomy-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: #eef2ff;
    color: #4c1d95;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.quiz-card .quiz-meta {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.quiz-card .quiz-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quiz-card .quiz-duration i {
    color: #667eea;
    font-size: 1rem;
}

.quiz-card .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-top: auto;
}

.quiz-card .btn:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.quiz-card .btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

/* Page Header Styles for Quizzes Page */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1e1e2d;
}

.page-description {
    font-size: 1.1rem;
    color: #6b7280;
    line-height: 1.8;
}

.no-quizzes-message {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.no-quizzes-message p {
    font-size: 1.2rem;
    color: #6b7280;
}

/* Responsive Styles for Quiz Cards */
@media (max-width: 768px) {
    .quizzes-grid,
    .quizzes-page-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .quiz-card .card-image {
        height: 180px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .quiz-card .card-content {
        padding: 1.25rem;
    }
}

.quiz-shell {
    margin: 2rem 0;
    padding: 1.75rem;
    background: #f9fafb;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.quiz-launch-panel {
    padding: 2rem;
    text-align: center;
    background: var(--card-bg, #fff);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.08);
}

.quiz-launch-panel p {
    margin-bottom: 1rem;
    color: var(--muted-color, #6b7280);
}

.quiz-start {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quiz-start:hover,
.quiz-start:focus {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(37, 99, 235, 0.4);
}

.quiz-start__meta {
    font-size: 0.875rem;
    opacity: 0.85;
}

.quiz-shell[data-submitted="1"] {
    background: #ffffff;
}

.quiz-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.quiz-meta-chip {
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.meta-label {
    font-size: 0.85rem;
    color: #4c1d95;
}

.meta-value {
    font-weight: 600;
    color: #312e81;
}

.quiz-paper {
    margin-top: 2rem;
}

.quiz-question-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.question-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid #edf2ff;
}

.question-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.question-card__body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.question-card__content {
    line-height: 1.7;
    color: #1f2937;
}

.question-card__content p {
    margin-bottom: 0.75rem;
}

.question-card__content p:last-child {
    margin-bottom: 0;
}

.question-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.85rem;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.12);
    color: #4f46e5;
    font-weight: 600;
    font-size: 0.9rem;
}

.question-type {
    font-size: 0.85rem;
    color: #6b7280;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.option-pill {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.option-pill__label {
    width: 2.2rem;
    height: 2.2rem;
    min-width: 2.2rem;
    flex-shrink: 0;
    border-radius: 50%;
    background: #eef2ff;
    color: #4338ca;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.option-pill__text {
    flex: 1;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    line-height: 1.6;
    overflow-wrap: break-word;
    min-width: 0;
}

.option-pill.is-selected {
    border-color: #4f46e5;
    background: rgba(79, 70, 229, 0.08);
    color: #1f2937;
}

.option-pill.is-selected .option-pill__label {
    background: #4f46e5;
    color: #fff;
}

.option-pill--static {
    cursor: default;
}

.option-pill--static.is-correct {
    border-color: #16a34a !important;
    background: #16a34a !important;
    color: #ffffff !important;
    border-width: 2px !important;
    font-weight: 600;
}

.option-pill--static.is-correct .option-pill__label {
    background: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
}

.option-pill--static.is-selected {
    border-color: #4f46e5;
}

.option-pill--static.is-selected.is-wrong {
    border-color: #dc2626 !important;
    background: #dc2626 !important;
    color: #ffffff !important;
    border-width: 2px !important;
    font-weight: 600;
}

.option-pill--static.is-selected.is-wrong .option-pill__label {
    background: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
}

.fill-control {
    width: 100%;
}

.fill-control__input {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fill-control__input:focus {
    border-color: #4f46e5;
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.quiz-feedback {
    margin-top: 1rem;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    display: none;
}

.quiz-feedback.is-error,
.quiz-feedback.is-warning,
.quiz-feedback.is-info {
    display: block;
}

.quiz-feedback.is-error {
    background: rgba(220, 38, 38, 0.08);
    color: #b91c1c;
}

.quiz-feedback.is-warning {
    background: rgba(234, 179, 8, 0.15);
    color: #92400e;
}

.quiz-feedback.is-info {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.quiz-actions {
    margin-top: 1.5rem;
    text-align: center;
}

.quiz-actions--inline {
    display: flex;
    justify-content: flex-end;
    margin-top: 2rem;
}

.quiz-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 2.2rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 12px 25px rgba(79, 70, 229, 0.25);
}

.quiz-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(79, 70, 229, 0.3);
}

.quiz-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    box-shadow: none;
}

.quiz-submit__spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    display: none;
    animation: spin 0.8s linear infinite;
}

.quiz-submit.is-loading .quiz-submit__spinner {
    display: inline-block;
}

.quiz-results-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.result-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
}

.result-score {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, #eef2ff 55%, #c7d2fe);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    text-align: center;
    box-shadow: inset 0 0 0 12px #fff;
}

.result-score__value {
    font-size: 2rem;
    font-weight: 700;
}

.result-metrics {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.result-metric {
    background: #f8fafc;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    border: 1px solid #e2e8f0;
}

.metric-label {
    display: block;
    font-size: 0.85rem;
    color: #475569;
    margin-bottom: 0.4rem;
}

.metric-value {
    font-size: 1.2rem;
    color: #0f172a;
}

.metric-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-weight: 600;
}

.metric-chip.is-pass {
    background: rgba(16, 185, 129, 0.18);
    color: #047857;
}

.metric-chip.is-fail {
    background: rgba(239, 68, 68, 0.18);
    color: #b91c1c;
}

.analysis-panel {
    background: #f5f3ff;
    border-radius: 18px;
    padding: 1.5rem;
    border: 1px solid #e0e7ff;
}

.analysis-panel h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #4f46e5;
}

.analysis-panel__body {
    line-height: 1.8;
    color: #312e81;
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.review-card {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 1.5rem;
    background: #fff;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
}

.review-card.is-correct {
    border-color: rgba(34, 197, 94, 0.4);
}

.review-card.is-incorrect {
    border-color: rgba(239, 68, 68, 0.35);
}

.review-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.review-card__content {
    line-height: 1.7;
    color: #1f2937;
    margin-bottom: 1rem;
}

.review-card__content p {
    margin-bottom: 0.75rem;
}

.review-card__content p:last-child {
    margin-bottom: 0;
}

.status-chip {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
}

.status-chip.is-correct {
    background: rgba(16, 185, 129, 0.18);
    color: #047857;
}

.status-chip.is-incorrect {
    background: rgba(239, 68, 68, 0.18);
    color: #b91c1c;
}

.review-explanation {
    margin-top: 1rem;
}

.review-explanation__body {
    margin-top: 0.65rem;
    padding: 1rem;
    border-radius: 12px;
    background: #f9fafb;
}

.fill-review p {
    margin: 0.5rem 0;
    color: #1f2937;
}

.answer-correct {
    color: #16a34a !important;
    font-weight: 600;
    background: rgba(22, 163, 74, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

.answer-wrong {
    color: #dc2626 !important;
    font-weight: 600;
    background: rgba(220, 38, 38, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
}

.back-to-top.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

.back-to-top:active {
    transform: translateY(-1px);
}

.back-to-top i,
.back-to-top .fa-solid,
.back-to-top [class*="fa-"] {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    display: inline-block !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-transform: none !important;
    line-height: 1 !important;
    font-size: 1.1rem;
}

/* RTL Support for Back to Top */
html[dir="rtl"] .back-to-top,
body.rtl .back-to-top {
    left: auto;
    right: 2rem;
}

/* Mobile Responsive for Quiz */
@media (max-width: 768px) {
    /* Quiz Container */
    .quiz-content {
        padding: 0;
    }
    
    .quiz-content .entry-header {
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .quiz-content .entry-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }
    
    .quiz-content .entry-content {
        padding: 0;
    }
    
    .quiz-shell {
        margin: 0;
        padding: 1rem 0.75rem;
        border-radius: 12px;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Quiz Meta Grid - Mobile */
    .quiz-meta-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin: 1rem 0;
    }
    
    .quiz-meta-chip {
        padding: 0.85rem 1rem;
        font-size: 0.9rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .meta-label {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }
    
    .meta-value {
        font-size: 1rem;
        font-weight: 700;
    }
    
    /* Quiz Launch Panel */
    .quiz-launch-panel {
        padding: 1.5rem 1rem;
        margin: 0;
        border-radius: 12px;
    }
    
    .quiz-launch-panel p {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1.25rem;
    }
    
    .quiz-start {
        padding: 0.85rem 1.75rem;
        font-size: 0.95rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .quiz-start__label {
        display: block;
        margin-bottom: 0.25rem;
    }
    
    .quiz-start__meta {
        display: block;
        font-size: 0.8rem;
        opacity: 0.9;
    }
    
    /* Quiz Paper */
    .quiz-paper {
        margin-top: 1.5rem;
        padding: 0;
    }
    
    .quiz-question-list {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 0;
        padding: 0;
    }
    
    /* Question Card */
    .question-card {
        padding: 1rem;
        border-radius: 12px;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .question-card__header {
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
        align-items: flex-start;
    }
    
    .question-pill {
        font-size: 0.85rem;
        padding: 0.2rem 0.75rem;
    }
    
    .question-type {
        font-size: 0.8rem;
    }
    
    .question-card__body {
        gap: 0.85rem;
    }
    
    .question-card__content {
        font-size: 0.95rem;
        line-height: 1.7;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .question-card__content p {
        margin-bottom: 0.75rem;
    }
    
    .question-card__content img {
        max-width: 100%;
        height: auto;
    }
    
    /* Option Group */
    .option-group {
        gap: 0.75rem;
        width: 100%;
    }
    
    .option-pill {
        padding: 0.85rem 0.9rem;
        font-size: 0.9rem;
        width: 100%;
        box-sizing: border-box;
        min-height: auto;
        text-align: right;
    }
    
    .option-pill__label {
        width: 2rem;
        height: 2rem;
        min-width: 2rem;
        font-size: 0.85rem;
        flex-shrink: 0;
    }
    
    .option-pill__text {
        font-size: 0.9rem;
        line-height: 1.5;
        word-wrap: break-word;
        overflow-wrap: break-word;
        text-align: right;
    }
    
    /* Fill Control */
    .fill-control {
        width: 100%;
    }
    
    .fill-control__input {
        padding: 0.85rem 1rem;
        font-size: 0.95rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Quiz Feedback */
    .quiz-feedback {
        margin: 1rem 0;
        padding: 0.85rem 1rem;
        font-size: 0.9rem;
        border-radius: 8px;
    }
    
    /* Quiz Actions */
    .quiz-actions {
        padding: 0;
        margin-top: 1.5rem;
    }
    
    .quiz-submit {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        box-sizing: border-box;
        border-radius: 12px;
    }
    
    .quiz-submit__label {
        display: block;
    }
    
    .quiz-actions--inline {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .quiz-actions--inline .btn {
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Quiz Results */
    .quiz-results-card {
        padding: 1.5rem 1rem;
        border-radius: 16px;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .result-summary {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
    
    .result-score {
        width: 120px;
        height: 120px;
        margin: 0 auto;
        flex-shrink: 0;
    }
    
    .result-score__value {
        font-size: 1.75rem;
    }
    
    .result-score__label {
        font-size: 0.85rem;
    }
    
    .result-metrics {
        grid-template-columns: 1fr;
        width: 100%;
        gap: 0.75rem;
    }
    
    .result-metric {
        padding: 0.85rem 1rem;
        text-align: right;
    }
    
    .metric-label {
        font-size: 0.8rem;
    }
    
    .metric-value {
        font-size: 1.1rem;
    }
    
    .metric-chip {
        font-size: 0.8rem;
        padding: 0.3rem 0.75rem;
    }
    
    /* Analysis Panel */
    .analysis-panel {
        padding: 1rem;
        border-radius: 12px;
        margin: 1rem 0;
    }
    
    .analysis-panel h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .analysis-panel__body {
        font-size: 0.9rem;
        line-height: 1.7;
    }
    
    /* Review List */
    .review-list {
        gap: 1rem;
        margin: 1rem 0;
    }
    
    .review-card {
        padding: 1rem;
        border-radius: 12px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .review-card__header {
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
        align-items: flex-start;
    }
    
    .review-card__header > div {
        flex: 1;
        min-width: 0;
    }
    
    .status-chip {
        font-size: 0.8rem;
        padding: 0.25rem 0.65rem;
        white-space: nowrap;
    }
    
    .review-card__content {
        font-size: 0.95rem;
        line-height: 1.7;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .review-card__content img {
        max-width: 100%;
        height: auto;
    }
    
    /* Review Options */
    .option-group--static {
        gap: 0.75rem;
    }
    
    .option-pill--static {
        padding: 0.85rem 0.9rem;
        font-size: 0.9rem;
    }
    
    /* Fill Review */
    .fill-review {
        margin-top: 0.75rem;
    }
    
    .fill-review p {
        font-size: 0.9rem;
        margin: 0.5rem 0;
        line-height: 1.6;
    }
    
    .answer-correct,
    .answer-wrong {
        display: inline-block;
        padding: 0.3rem 0.6rem;
        font-size: 0.85rem;
        margin-right: 0.5rem;
    }
    
    /* Review Explanation */
    .review-explanation {
        margin-top: 0.75rem;
    }
    
    .review-explanation__body {
        padding: 0.85rem;
        font-size: 0.9rem;
        line-height: 1.7;
    }
    
    .view-answer-btn {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Quiz Empty State */
    .quiz-empty-state {
        padding: 1.5rem 1rem;
        font-size: 0.95rem;
        text-align: center;
    }
    
    /* Entry Footer */
    .quiz-content .entry-footer {
        margin-top: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .quiz-taxonomies {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .taxonomy-badge {
        font-size: 0.85rem;
        padding: 0.35rem 0.75rem;
    }
    
    /* Back to Top */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 1.5rem;
        left: 1.5rem;
        font-size: 1.1rem;
    }
    
    html[dir="rtl"] .back-to-top,
    body.rtl .back-to-top {
        left: auto;
        right: 1.5rem;
    }
}

.quiz-empty-state {
    text-align: center;
    padding: 2rem;
    border-radius: 16px;
    background: #f1f5f9;
    color: #475569;
}

.btn-primary {
    background: #4f46e5;
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background: #4338ca;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.chapter-quiz,
.lesson-quiz {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f0f4ff;
    border-radius: 8px;
    border-right: 4px solid #667eea;
}

.chapter-quiz h2,
.lesson-quiz h3 {
    color: #667eea;
    margin-bottom: 1rem;
}

.chapter-quiz .quiz-card,
.lesson-quiz .quiz-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.chapter-quiz .quiz-card h3,
.lesson-quiz .quiz-card h4 {
    margin-bottom: 0.5rem;
}

.chapter-quiz .quiz-card h3 a,
.lesson-quiz .quiz-card h4 a {
    color: #667eea;
    text-decoration: none;
}

.chapter-quiz .quiz-card h3 a:hover,
.lesson-quiz .quiz-card h4 a:hover {
    text-decoration: underline;
}

.quiz-excerpt {
    color: #666;
    margin: 1rem 0;
    line-height: 1.6;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.question-taxonomies,
.quiz-taxonomies,
.lesson-taxonomies {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.taxonomy-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    padding: 1rem;
}

.taxonomy-inline .taxonomy-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 0.9rem;
}

.taxonomy-inline .taxonomy-label {
    color: #667eea;
    font-weight: 600;
}

.taxonomy-inline .taxonomy-value {
    color: #333;
}

.taxonomy-inline .taxonomy-value a {
    color: #667eea;
    text-decoration: none;
}

.taxonomy-inline .taxonomy-value a:hover {
    text-decoration: underline;
}

.taxonomy-inline .difficulty-badge {
    background: #fff3cd;
    border-color: #f59e0b;
}

.taxonomy-inline .difficulty-badge .taxonomy-label {
    color: #f59e0b;
}

/* Fields Section */
.fields-section,
.base-levels-section {
    margin: 2rem 0;
}

.fields-section h2,
.base-levels-section h2 {
    margin-bottom: 1.5rem;
    color: #667eea;
}

.field-card,
.base-level-card {
    text-align: center;
    padding: 2rem;
}

.field-card .card-icon,
.base-level-card .card-icon,
.grade-card .card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    width: 100%;
}

.field-card .card-icon img,
.base-level-card .card-icon img,
.field-card .card-icon .riazi-icon-image,
.base-level-card .card-icon .riazi-icon-image,
.grade-card .card-icon img,
.grade-card .card-icon .riazi-icon-image {
    max-height: 120px;
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

/* RTL Specific Styles */
html[dir="rtl"] .container,
body.rtl .container {
    text-align: right;
}

/* Branding */
.site-logo-wrapper {
	min-height: 80px;
	display: flex;
	align-items: center;
	padding: 12px 0;
}

.site-logo-wrapper .custom-logo {
	display: inline-block;
	height: auto;
	width: auto;
	max-height: 80px !important;
	max-width: 280px !important;
	object-fit: contain;
	transition: transform 0.3s ease;
}

.site-logo-wrapper .custom-logo:hover {
	transform: scale(1.05);
}

.site-logo-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
}

.text-logo {
	font-size: 1.8rem;
	font-weight: 900;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
	background-size: 200% 200%;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-shadow: none;
	position: relative;
	display: inline-block;
	animation: gradient-shift 3s ease infinite;
	letter-spacing: -0.5px;
	filter: drop-shadow(0 2px 8px rgba(102, 126, 234, 0.3));
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes gradient-shift {
	0%, 100% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
}

.text-logo::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 50%, rgba(79, 172, 254, 0.1) 100%);
	border-radius: 8px;
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: -1;
	filter: blur(20px);
}

.text-logo:hover {
	animation-duration: 1.5s;
	filter: drop-shadow(0 4px 16px rgba(102, 126, 234, 0.5));
	transform: translateY(-2px) scale(1.02);
}

.text-logo:hover::before {
	opacity: 1;
}

/* Dark mode support for text logo */
[data-theme="dark"] .text-logo {
	background: linear-gradient(135deg, #a78bfa 0%, #c084fc 25%, #f472b6 50%, #60a5fa 75%, #34d399 100%);
	background-size: 200% 200%;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	filter: drop-shadow(0 2px 8px rgba(167, 139, 250, 0.4));
}

[data-theme="dark"] .text-logo:hover {
	filter: drop-shadow(0 4px 16px rgba(167, 139, 250, 0.6));
}

/* Auth page styles */
.auth-page {
	padding: 2rem 0;
	min-height: calc(100vh - 200px);
	display: flex;
	align-items: center;
	background: linear-gradient(135deg, #f0f4ff 0%, #f5f3ff 100%);
}
.auth-page-wrapper {
	max-width: 600px;
	margin: 0 auto;
	width: 100%;
}
.auth-logo {
	text-align: center;
	margin-bottom: 2rem;
}
.auth-logo-link {
	display: inline-block;
	text-decoration: none;
	transition: transform 0.2s;
}
.auth-logo-link:hover {
	transform: scale(1.05);
}
.auth-logo-image {
	max-height: 80px;
	width: auto;
	height: auto;
}
.auth-logo-text {
	font-size: 2rem;
	font-weight: 800;
	color: #667eea;
}
.auth-page-title {
	text-align: center;
	margin-bottom: 1rem;
	color: #1f2937;
	font-size: 1.75rem;
	font-weight: 700;
}
.auth-page-content {
	text-align: center;
	margin-bottom: 1.5rem;
	color: #6b7280;
	font-size: 0.95rem;
}

/* Auth shortcode styles */
.riazi-auth {
	max-width: 100%;
	margin: 0 auto;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	box-shadow: 0 20px 50px rgba(31,41,55,0.12);
	overflow: hidden;
}
.riazi-auth .auth-tabs {
	display: flex;
	border-bottom: 2px solid #f3f4f6;
	background: #f9fafb;
}
.riazi-auth .auth-tab {
	flex: 1;
	padding: 1rem;
	border: none;
	background: transparent;
	cursor: pointer;
	font-weight: 600;
	font-size: 0.95rem;
	color: #6b7280;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	position: relative;
}
.riazi-auth .auth-tab i {
	font-size: 1rem;
}
.riazi-auth .auth-tab:hover {
	background: #f3f4f6;
	color: #667eea;
}
.riazi-auth .auth-tab.active {
	background: #ffffff;
	color: #667eea;
	border-bottom: 3px solid #667eea;
}
.riazi-auth .auth-panels {
	padding: 2rem;
}
.riazi-auth .auth-panel { 
	display: none; 
	animation: fadeIn 0.3s ease;
}
.riazi-auth .auth-panel.active { 
	display: block; 
}
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
.riazi-auth .auth-form-group {
	margin-bottom: 1.25rem;
}
.riazi-auth .auth-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: #374151;
	font-size: 0.9rem;
}
.riazi-auth .auth-form input[type="text"],
.riazi-auth .auth-form input[type="email"],
.riazi-auth .auth-form input[type="password"],
.riazi-auth .auth-form input[type="number"] {
	width: 100%;
	border: 2px solid #e5e7eb;
	border-radius: 10px;
	padding: 0.85rem 1rem;
	font-size: 0.95rem;
	transition: all 0.2s;
	box-sizing: border-box;
}
.riazi-auth .auth-form input[type="text"]:focus,
.riazi-auth .auth-form input[type="email"]:focus,
.riazi-auth .auth-form input[type="password"]:focus,
.riazi-auth .auth-form input[type="number"]:focus {
	outline: none;
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.riazi-auth .auth-form input[type="checkbox"] {
	margin-left: 0.5rem;
	width: auto;
}
.riazi-auth .auth-form label:has(input[type="checkbox"]) {
	display: flex;
	align-items: center;
	font-weight: 500;
	font-size: 0.9rem;
	color: #6b7280;
}
.riazi-auth .btn-block {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 1rem;
	font-size: 1rem;
	font-weight: 600;
	border-radius: 10px;
	margin-top: 0.5rem;
}
.riazi-auth .btn-block i {
	font-size: 1rem;
}
.riazi-captcha-field {
	margin: 1.5rem 0;
	padding: 1rem;
	background: #f9fafb;
	border-radius: 10px;
	border: 2px solid #e5e7eb;
}
.riazi-captcha-field label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 600;
	color: #374151;
	font-size: 0.9rem;
}
.riazi-captcha-field input[type="number"] {
	width: 80px;
	display: inline-block;
	margin: 0 0.5rem;
}
.auth-message {
	padding: 1rem;
	border-radius: 10px;
	margin-bottom: 1rem;
	text-align: center;
	font-weight: 500;
	line-height: 1.6;
}
.auth-message i {
	margin-left: 8px;
	vertical-align: middle;
}
.auth-message.auth-error {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fecaca;
}
.auth-message.auth-success {
	background: #d1fae5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}
.auth-form-group label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	font-weight: 600;
}
.auth-form-group label i {
	color: #667eea;
	font-size: 0.9rem;
}
.auth-form-group .required {
	color: #ef4444;
	font-weight: bold;
}
.auth-form-group .optional {
	color: #6b7280;
	font-size: 0.85rem;
	font-weight: normal;
}
.auth-form-group .form-hint {
	display: block;
	margin-top: 5px;
	font-size: 0.85rem;
	color: #6b7280;
	line-height: 1.4;
}
.auth-form-group input[type="text"],
.auth-form-group input[type="email"],
.auth-form-group input[type="tel"],
.auth-form-group input[type="password"] {
	width: 100%;
	padding: 12px 16px;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	font-size: 1rem;
	transition: all 0.3s ease;
	font-family: 'Vazir', sans-serif;
}
.auth-form-group input:focus {
	outline: none;
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Auth page responsive styles */
@media (max-width: 768px) {
	.auth-page {
		padding: 1rem 0;
		min-height: calc(100vh - 150px);
	}
	.auth-page-wrapper {
		padding: 0 1rem;
	}
	.auth-logo {
		margin-bottom: 1.5rem;
	}
	.auth-logo-image {
		max-height: 60px;
	}
	.auth-logo-text {
		font-size: 1.5rem;
	}
	.auth-page-title {
		font-size: 1.5rem;
		margin-bottom: 0.75rem;
	}
	.auth-page-content {
		font-size: 0.9rem;
		margin-bottom: 1rem;
	}
	.riazi-auth {
		border-radius: 12px;
	}
	.riazi-auth .auth-tabs {
		flex-direction: column;
	}
	.riazi-auth .auth-tab {
		padding: 0.85rem;
		font-size: 0.9rem;
		border-bottom: 1px solid #e5e7eb;
	}
	.riazi-auth .auth-tab.active {
		border-bottom: 3px solid #667eea;
		border-left: none;
	}
	.riazi-auth .auth-panels {
		padding: 1.5rem 1rem;
	}
	.riazi-auth .auth-form input[type="text"],
	.riazi-auth .auth-form input[type="email"],
	.riazi-auth .auth-form input[type="password"],
	.riazi-auth .auth-form input[type="number"] {
		padding: 0.75rem;
		font-size: 16px; /* Prevent zoom on iOS */
	}
	.riazi-captcha-field {
		padding: 0.75rem;
	}
}

/* Header layout and logo alignment (desktop) */
.site-header .container {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.header-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}
.site-branding { 
	flex: 1 1 auto; 
	min-width: 0;
}
.header-actions {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}
.main-navigation { 
	width: 100%; 
	margin-top: 0.5rem;
}
@media (min-width: 769px) {
	.header-top {
		flex-wrap: nowrap;
	}
	.main-navigation {
		margin-top: 0;
	}
}
@media (max-width: 768px) {
	.header-top {
		flex-wrap: wrap;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		gap: 1rem;
	}
	.site-branding {
		width: 100%;
		flex: 1 1 100%;
		text-align: center;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}
	.site-branding.logo-align-left,
	.site-branding.logo-align-right,
	.site-branding.logo-align-center {
		text-align: center;
	}
	.site-logo-wrapper {
		display: flex;
		justify-content: center;
		width: 100%;
		min-height: 70px;
		padding: 8px 0;
	}
	
	.site-logo-wrapper .custom-logo {
		max-height: 70px !important;
		max-width: 240px !important;
	}
	.header-actions {
		width: 100%;
		justify-content: center;
		flex-wrap: wrap;
		gap: 0.5rem;
		display: flex;
		align-items: center;
	}
	.main-navigation {
		width: 100%;
		margin-top: 0.5rem;
		order: 3;
	}
}
@media (min-width: 769px) {
	.site-branding.logo-align-left { text-align: left; }
	.site-branding.logo-align-center { text-align: center; }
	.site-branding.logo-align-right { text-align: right; }
	.site-branding.logo-align-center .site-logo-link { justify-content: center; }
}

/* Navigation styles */
.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 0;
}
.main-navigation li {
	position: relative;
}
.main-navigation a {
	text-decoration: none;
	color: #4b5563;
	padding: 0.5rem 0.75rem;
	display: block;
	font-weight: 600;
}
.main-navigation .sub-menu {
	position: absolute;
	top: 100%;
	inset-inline-start: 0;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.08);
	min-width: 200px;
	padding: 0.25rem 0;
	display: none !important;
	z-index: 1000;
	list-style: none;
	margin: 0;
}
.main-navigation .sub-menu li {
	white-space: nowrap;
}
.main-navigation .sub-menu a {
	padding: 0.4rem 0.75rem;
}
.main-navigation .sub-menu a:hover {
	background: #f8fafc;
}
@media (min-width: 769px) {
	.main-navigation .sub-menu .sub-menu {
		top: 0;
		inset-inline-start: 100%;
		padding: 0.25rem 0;
	}
	.main-navigation .sub-menu .sub-menu a {
		padding: 0.4rem 0.75rem;
	}
}
.main-navigation > ul > li > a:hover {
	background: #f8fafc;
}
.main-navigation .menu-item-has-children > a::after {
	content: "▾";
	margin-inline-start: 6px;
	font-size: 0.75rem;
}
/* Nav bar background */
.main-navigation {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	box-shadow: 0 4px 14px rgba(0,0,0,0.06);
	overflow: hidden;
	position: relative;
	z-index: 20;
	width: 100%;
}
@media (min-width: 769px) {
	.main-navigation { 
		overflow: visible; 
		display: block !important;
	}
	.main-navigation ul {
		gap: 0.25rem;
		display: flex;
		flex-direction: row;
	}
	.main-navigation li {
		position: relative;
	}
	.main-navigation .sub-menu {
		display: none;
		position: absolute;
		top: 100%;
		inset-inline-start: 0;
	}
	.main-navigation li:hover > .sub-menu,
	.main-navigation li:focus-within > .sub-menu {
		display: block !important;
	}
}
@media (max-width: 768px) {
	.site-header .container {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 1rem;
	}
	.main-navigation {
		display: none !important;
		width: 100%;
		overflow: visible;
		order: 3;
		margin-top: 0;
	}
	body.nav-open .main-navigation {
		display: block !important;
	}
	.menu-toggle {
		order: 3;
		width: 100%;
		margin-top: 0;
		justify-content: center;
	}
	.header-search {
		order: 2;
		width: 100%;
		margin-top: 0;
	}
}

/* Mobile navigation */
.menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 0.75rem;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
	color: #333;
	cursor: pointer;
	font-size: 0.95rem;
	font-weight: 600;
}
@media (min-width: 769px) {
	.menu-toggle { 
		display: none !important; 
	}
}
#primary-menu {
	display: none;
	flex-direction: column;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
body.nav-open #primary-menu {
	display: flex !important;
}
@media (min-width: 769px) {
	#primary-menu {
		display: flex !important;
		flex-direction: row;
		gap: 0;
	}
	.submenu-toggle {
		display: none;
	}
}
@media (max-width: 768px) {
	#primary-menu {
		width: 100%;
	}
	#primary-menu > li {
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: stretch;
		width: 100%;
		padding: 0;
		margin-bottom: 0.25rem;
	}
	#primary-menu > li.menu-item-has-children {
		flex-direction: column;
	}
	#primary-menu > li > .submenu-toggle {
		position: absolute;
		top: 0.75rem;
		inset-inline-end: 0.75rem;
		transform: none;
		margin: 0;
		z-index: 1;
	}
	/* Submenu toggle buttons in nested levels */
	#primary-menu .sub-menu > li > .submenu-toggle,
	#primary-menu .sub-menu .sub-menu > li > .submenu-toggle {
		position: absolute;
		top: 0.55rem;
		inset-inline-end: 0.75rem;
		transform: none;
		margin: 0;
		z-index: 1;
	}
	#primary-menu > li > a {
		position: relative;
		display: block;
		width: 100%;
		padding: 0.75rem;
		padding-inline-end: 2.5rem; /* space for toggle icon */
		order: 1; /* Ensure link appears before submenu */
		color: #4b5563;
		font-weight: 600;
    white-space: normal;
    word-break: break-word;
    line-height: 1.5;
	}
	.submenu-toggle {
		background: none;
		border: none;
		color: #4b5563;
		cursor: pointer;
		font-size: 0.85rem;
		padding: 0.4rem;
	}
	/* Force all submenus to stack under parent on mobile */
	#primary-menu > li > .sub-menu,
	#primary-menu .sub-menu .sub-menu {
		position: static !important;
		top: auto !important;
		inset-inline-start: auto !important;
		left: auto !important;
		right: auto !important;
		border: none;
		box-shadow: none;
		margin-top: 0;
		margin-bottom: 0;
		width: 100% !important;
		min-width: 0 !important;
		background: transparent;
		padding: 0;
		display: none !important;
		order: 10; /* Ensure submenu appears after the link */
	}
	#primary-menu > li > .sub-menu {
		margin-top: 0;
		padding-top: 0.25rem;
	}
	#primary-menu .sub-menu > li,
	#primary-menu .sub-menu .sub-menu > li {
		width: 100%;
	}
	#primary-menu .sub-menu > li + li {
		margin-top: 0.25rem;
	}
	#primary-menu .sub-menu > li > a,
	#primary-menu .sub-menu .sub-menu > li > a {
		display: block;
		padding: 0.55rem 0.75rem;
		padding-inline-end: 2.5rem; /* space for toggle icon */
		border-radius: 6px;
		background: rgba(248, 250, 252, 0.6);
		position: relative;
		color: #4b5563;
		font-weight: 500;
    white-space: normal;
    word-break: break-word;
    line-height: 1.45;
	}
	#primary-menu .sub-menu > li > a:hover,
	#primary-menu .sub-menu .sub-menu > li > a:hover {
		background: rgba(226, 232, 240, 0.7);
	}
	#primary-menu .sub-menu {
		padding-inline-start: 1rem;
		padding-top: 0.25rem;
		border-inline-start: 2px solid #e5e7eb;
		margin-top: 0;
	}
	html[dir="rtl"] #primary-menu .sub-menu {
		padding-inline-start: 0;
		padding-inline-end: 1rem;
		border-inline-start: none;
		border-inline-end: 2px solid #e5e7eb;
	}
	#primary-menu > li.submenu-open > .sub-menu,
	#primary-menu .submenu-open > .sub-menu,
	#primary-menu .sub-menu .submenu-open > .sub-menu {
		display: block !important;
	}
	#primary-menu .sub-menu .sub-menu {
		padding-inline-start: 0.85rem;
		margin-top: 0.25rem;
		position: static !important;
		top: auto !important;
		inset-inline-start: auto !important;
		left: auto !important;
		right: auto !important;
		margin-inline-start: 0;
	}
	html[dir="rtl"] #primary-menu .sub-menu .sub-menu {
		padding-inline-start: 0;
		padding-inline-end: 0.85rem;
		margin-inline-end: 0;
	}
	/* Visual cue for open parent */
	#primary-menu .submenu-open > a {
		background: #f8fafc;
		border-radius: 6px;
	}
	[data-theme="dark"] #primary-menu .submenu-open > a {
		background: #374151 !important;
		color: #ffffff !important;
	}
	/* Remove arrow from submenu items in mobile - only show in toggle button */
	#primary-menu .sub-menu .menu-item-has-children > a::after,
	#primary-menu .sub-menu .sub-menu .menu-item-has-children > a::after {
		content: none !important;
	}
	/* Hide arrow from parent link in mobile - toggle button shows it */
	#primary-menu > li.menu-item-has-children > a::after {
		content: none !important;
	}
}

/* Header actions */
.header-actions {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}
.header-actions .fa-solid,
.header-actions i.fa-solid,
.header-actions .fa,
.header-actions i.fa,
.header-actions i[class*="fa-"],
.header-actions [class*="fa-"] {
	font-size: 1rem !important;
	font-family: "Font Awesome 6 Free" !important;
	font-weight: 900 !important;
	font-style: normal !important;
	font-variant: normal !important;
	text-rendering: auto !important;
	-webkit-font-smoothing: antialiased !important;
	-moz-osx-font-smoothing: grayscale !important;
	display: inline-block !important;
}
.darkmode-btn[aria-pressed="true"] .fa-solid {
	color: #facc15;
}
.darkmode-btn:hover {
	background: #f3f4f6;
}
.darkmode-btn[aria-pressed="true"]:hover {
	background: #1f2937;
}
.action-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.4rem 0.6rem;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
	color: #111827;
	text-decoration: none;
	cursor: pointer;
}
.action-btn .badge {
	background: #ef4444;
	color: #fff;
	border-radius: 999px;
	padding: 0 0.4rem;
	font-size: 0.75rem;
	min-width: 1rem;
	text-align: center;
}
.header-search { width: 100%; }
.header-search[hidden] { display: none; }
.header-search .search-form,
.header-search form {
	padding: 0.5rem;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.search-results {
	margin-top: 0.5rem;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.08);
	overflow: hidden;
	max-height: 500px;
	overflow-y: auto;
}
.search-loading,
.search-error,
.search-no-results {
	padding: 1rem;
	text-align: center;
	font-size: 0.9rem;
	border-radius: 6px;
	font-weight: 500;
}
.search-error {
	color: #991b1b !important;
	background: #fee2e2 !important;
	border: 1px solid #fecaca !important;
}
.search-error small {
	color: #7f1d1d !important;
	display: block;
	margin-top: 0.5rem;
	font-size: 0.8rem;
}
.search-loading {
	color: #4338ca !important;
	background: #eef2ff !important;
}
.search-no-results {
	color: #374151 !important;
	background: #f3f4f6 !important;
}
.search-result-item {
	display: block;
	padding: 0.75rem 1rem;
	color: #1f2937;
	text-decoration: none;
	border-top: 1px solid #f3f4f6;
	transition: background 0.2s;
}
.search-result-item:first-child {
	border-top: none;
}
.search-result-item:hover {
	background: #f8fafc;
}
.search-result-header {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
}
.search-result-content {
	flex: 1;
}
.search-result-title {
	font-weight: 600;
	font-size: 0.9rem;
	color: #1f2937;
	margin-bottom: 0.25rem;
}
.search-result-meta {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.search-result-type {
	font-size: 0.75rem;
	color: #6b7280;
	background: #f3f4f6;
	padding: 0.15rem 0.5rem;
	border-radius: 4px;
}
.search-result-excerpt {
	font-size: 0.85rem;
	color: #6b7280;
	line-height: 1.5;
	margin-top: 0.5rem;
	padding-top: 0.5rem;
	border-top: 1px solid #f3f4f6;
}
.search-view-all {
	display: block;
	padding: 0.75rem 1rem;
	text-align: center;
	color: #667eea;
	text-decoration: none;
	border-top: 2px solid #e5e7eb;
	font-weight: 600;
	font-size: 0.85rem;
	background: #f8fafc;
	transition: background 0.2s;
}
.search-view-all:hover {
	background: #f0f4ff;
	color: #5568d3;
}

html[dir="rtl"] .card-grid,
body.rtl .card-grid {
    direction: rtl;
}

html[dir="rtl"] .btn,
body.rtl .btn {
    text-align: center;
}

html[dir="rtl"] .breadcrumb,
body.rtl .breadcrumb {
    direction: rtl;
}

html[dir="rtl"] .breadcrumb a::after,
body.rtl .breadcrumb a::after {
    content: " ← ";
    margin: 0 0.5rem;
}

html[dir="ltr"] .breadcrumb a::after,
body.ltr .breadcrumb a::after {
    content: " → ";
    margin: 0 0.5rem;
}

/* LTR Specific Styles */
html[dir="ltr"] .container,
body.ltr .container {
    text-align: left;
}

html[dir="ltr"] .card-grid,
body.ltr .card-grid {
    direction: ltr;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    /* Grade cards are already centered by default styles above */
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .lessons-grid {
        grid-template-columns: 1fr;
    }
}

/* Dark Mode Styles */
[data-theme="dark"] {
    color-scheme: dark;
}

[data-theme="dark"] body {
    background: #111827;
    color: #f9fafb;
}

[data-theme="dark"] .site-header {
    background: #1f2937;
    border-bottom: 1px solid #374151;
}

[data-theme="dark"] .site-header .container {
    background: transparent;
}

/* Dark mode styles for text-logo are already defined above with enhanced shadows */

[data-theme="dark"] .site-description {
    color: #d1d5db;
}

[data-theme="dark"] .action-btn {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

[data-theme="dark"] .action-btn:hover {
    background: #4b5563;
    border-color: #6b7280;
}

[data-theme="dark"] .darkmode-btn[aria-pressed="true"] {
    background: #374151;
    border-color: #facc15;
}

[data-theme="dark"] .darkmode-btn[aria-pressed="true"]:hover {
    background: #4b5563;
}

[data-theme="dark"] .main-navigation {
	background: #1f2937;
	border-color: #374151;
}

[data-theme="dark"] .main-navigation a {
	color: #ffffff;
	font-weight: 600;
}

[data-theme="dark"] .main-navigation a:hover {
	color: #ffffff;
	background: #374151;
}

[data-theme="dark"] .main-navigation .sub-menu {
    background: #1f2937;
    border-color: #374151;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

[data-theme="dark"] .main-navigation .sub-menu {
	background: #1f2937;
	border-color: #374151;
}

[data-theme="dark"] .main-navigation .sub-menu a {
	color: #ffffff;
	font-weight: 500;
}

[data-theme="dark"] .main-navigation .sub-menu a:hover {
	background: #374151;
	color: #ffffff;
}

[data-theme="dark"] .menu-toggle {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

[data-theme="dark"] .menu-toggle:hover {
    background: #4b5563;
}

[data-theme="dark"] #primary-menu > li > a {
	color: #ffffff !important;
	font-weight: 600;
	background: transparent;
}

[data-theme="dark"] #primary-menu > li > a:hover {
	background: #374151 !important;
	color: #ffffff !important;
}

[data-theme="dark"] #primary-menu .sub-menu > li > a,
[data-theme="dark"] #primary-menu .sub-menu .sub-menu > li > a {
	background: rgba(55, 65, 81, 0.6) !important;
	color: #ffffff !important;
	font-weight: 500;
}

[data-theme="dark"] #primary-menu .sub-menu > li > a:hover,
[data-theme="dark"] #primary-menu .sub-menu .sub-menu > li > a:hover {
	background: rgba(75, 85, 99, 0.9) !important;
	color: #ffffff !important;
}

[data-theme="dark"] #primary-menu .submenu-open > a {
	background: #374151 !important;
	color: #ffffff !important;
}

[data-theme="dark"] .header-search {
    background: #1f2937;
    border-color: #374151;
}

[data-theme="dark"] .search-field {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

[data-theme="dark"] .search-field:focus {
    border-color: #667eea;
    background: #4b5563;
}

[data-theme="dark"] .search-results {
    background: #1f2937;
    border-color: #374151;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

[data-theme="dark"] .search-result-item {
    color: #e5e7eb;
    border-top-color: #374151;
}

[data-theme="dark"] .search-result-item:hover {
    background: #374151;
    color: #f9fafb;
}

[data-theme="dark"] .search-loading,
[data-theme="dark"] .search-error,
[data-theme="dark"] .search-no-results {
    background: #374151;
    color: #d1d5db;
}

[data-theme="dark"] .search-error {
    background: #7f1d1d;
    color: #fee2e2;
    border-color: #991b1b;
}

[data-theme="dark"] .container {
    background: transparent;
}

[data-theme="dark"] .site-main {
    background: transparent;
}

[data-theme="dark"] .page-title,
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: #f9fafb;
}

[data-theme="dark"] p {
    color: #d1d5db;
}

[data-theme="dark"] .btn {
    background: #667eea;
    color: #ffffff;
    border-color: #667eea;
}

[data-theme="dark"] .btn:hover {
    background: #5568d3;
    border-color: #5568d3;
}

[data-theme="dark"] .btn-primary {
    background: #667eea;
    color: #ffffff;
}

[data-theme="dark"] .btn-primary:hover {
    background: #5568d3;
}

[data-theme="dark"] .card {
    background: #1f2937;
    border-color: #374151;
    color: #f9fafb;
}

[data-theme="dark"] .card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    border-color: #4b5563;
}

[data-theme="dark"] .card-title {
    color: #f9fafb;
}

[data-theme="dark"] .card-title a {
    color: #f9fafb;
}

[data-theme="dark"] .card-title a:hover {
    color: #a5b4fc;
}

/* Dark Mode for Quiz Cards */
[data-theme="dark"] .quiz-card .card {
    background: #1f2937;
    border-color: #374151;
    color: #f9fafb;
}

[data-theme="dark"] .quiz-card .card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: #4b5563;
}

[data-theme="dark"] .quiz-card .card-title {
    color: #f9fafb !important;
}

[data-theme="dark"] .quiz-card .card-title a {
    color: #f9fafb !important;
}

[data-theme="dark"] .quiz-card .card-title a:hover {
    color: #a5b4fc !important;
}

[data-theme="dark"] .quiz-card .card-excerpt {
    color: #d1d5db;
}

[data-theme="dark"] .quiz-card .card-taxonomies .taxonomy-badge {
    background: #312e81;
    border-color: #4338ca;
    color: #f9fafb;
}

[data-theme="dark"] .quiz-card .quiz-meta {
    color: #d1d5db;
}

[data-theme="dark"] .quiz-card .quiz-duration i {
    color: #a5b4fc;
}

[data-theme="dark"] .quiz-card .btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
}

[data-theme="dark"] .quiz-card .btn:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

[data-theme="dark"] .card-description {
    color: #d1d5db;
}

[data-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #4c1d95 0%, #5b21b6 100%);
}

[data-theme="dark"] .auth-page {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
}

[data-theme="dark"] .riazi-auth {
    background: #1f2937;
    border-color: #374151;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

[data-theme="dark"] .riazi-auth .auth-tabs {
    background: #111827;
    border-bottom-color: #374151;
}

[data-theme="dark"] .riazi-auth .auth-tab {
    color: #9ca3af;
    background: transparent;
}

[data-theme="dark"] .riazi-auth .auth-tab:hover {
    background: #374151;
    color: #f9fafb;
}

[data-theme="dark"] .riazi-auth .auth-tab.active {
    background: #1f2937;
    color: #667eea;
    border-bottom-color: #667eea;
}

[data-theme="dark"] .riazi-auth .auth-form input[type="text"],
[data-theme="dark"] .riazi-auth .auth-form input[type="email"],
[data-theme="dark"] .riazi-auth .auth-form input[type="password"],
[data-theme="dark"] .riazi-auth .auth-form input[type="number"] {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

[data-theme="dark"] .riazi-auth .auth-form input[type="text"]:focus,
[data-theme="dark"] .riazi-auth .auth-form input[type="email"]:focus,
[data-theme="dark"] .riazi-auth .auth-form input[type="password"]:focus,
[data-theme="dark"] .riazi-auth .auth-form input[type="number"]:focus {
    border-color: #667eea;
    background: #4b5563;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

[data-theme="dark"] .riazi-auth .auth-form label {
    color: #e5e7eb;
}

[data-theme="dark"] .riazi-captcha-field {
    background: #111827;
    border-color: #374151;
}

[data-theme="dark"] .riazi-captcha-field label {
    color: #e5e7eb;
}

[data-theme="dark"] .auth-logo-text {
    color: #667eea;
}

[data-theme="dark"] .auth-page-title {
    color: #f9fafb;
}

[data-theme="dark"] .auth-page-content {
    color: #d1d5db;
}

[data-theme="dark"] .site-footer {
    background: #1f2937;
    border-top-color: #374151;
    color: #d1d5db;
}

[data-theme="dark"] .site-footer a {
    color: #e5e7eb;
}

[data-theme="dark"] .site-footer a:hover {
    color: #f9fafb;
}

/* Footer Styles */
.site-footer {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-html-content {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.footer-html-content * {
    margin: 0;
}

/* Footer Content Wrapper */
.footer-content-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.footer-column {
    padding: 0 1rem;
}

.footer-column-title {
    color: #667eea;
    margin: 0 0 1.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.75rem;
    text-align: center;
}

.footer-links {
    text-align: center;
}

/* Footer Buttons */
.footer-buttons {
    margin-bottom: 1.5rem;
}

.footer-btn {
    display: block;
    width: 100%;
    background: #667eea;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.footer-btn:hover {
    background: #764ba2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Footer Links List */
.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: #6b7280;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    display: block;
    text-align: center;
}

.footer-link:hover {
    color: #667eea;
    padding-right: 0.5rem;
}

/* Footer About */
.footer-about {
    text-align: right;
}

.footer-about-content {
    line-height: 1.8;
    font-size: 0.95rem;
    color: #4b5563;
}

.footer-about-content p {
    margin-bottom: 1rem;
}

.footer-features-list {
    margin: 1rem 0;
    padding-right: 1.5rem;
    list-style: none;
}

.footer-features-list li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-right: 1.5rem;
}

.footer-features-list li::before {
    content: "✓";
    position: absolute;
    right: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 1.1rem;
}

.footer-quote {
    font-style: italic;
    color: #9ca3af;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

/* Footer Content Responsive */
@media (max-width: 768px) {
    .footer-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-column {
        padding: 0;
    }
    
    .footer-column-title {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .footer-about {
        text-align: center;
    }
    
    .footer-about-content {
        text-align: right;
        font-size: 0.9rem;
    }
    
    .footer-features-list {
        padding-right: 1.25rem;
    }
    
    .footer-btn {
        padding: 0.65rem 1rem;
        font-size: 0.95rem;
    }
}

.footer-social {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    color: #667eea;
    border: 2px solid #e5e7eb;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-telegram {
    color: #0088cc;
    border-color: #0088cc;
}

.social-telegram:hover {
    background: #0088cc;
    color: white;
}

.social-whatsapp {
    color: #25d366;
    border-color: #25d366;
}

.social-whatsapp:hover {
    background: #25d366;
    color: white;
}

.social-instagram {
    color: #e4405f;
    border-color: #e4405f;
}

.social-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    border-color: transparent;
}

.social-twitter {
    color: #1da1f2;
    border-color: #1da1f2;
}

.social-twitter:hover {
    background: #1da1f2;
    color: white;
}

.social-facebook {
    color: #1877f2;
    border-color: #1877f2;
}

.social-facebook:hover {
    background: #1877f2;
    color: white;
}

.social-youtube {
    color: #ff0000;
    border-color: #ff0000;
}

.social-youtube:hover {
    background: #ff0000;
    color: white;
}

.social-linkedin {
    color: #0a66c2;
    border-color: #0a66c2;
}

.social-linkedin:hover {
    background: #0a66c2;
    color: white;
}

.social-github {
    color: #333;
    border-color: #333;
}

.social-github:hover {
    background: #333;
    color: white;
}

.site-info {
    text-align: center;
    padding-top: 1.5rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.site-info p {
    margin: 0;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .site-footer {
        padding: 2rem 0 1.5rem;
    }
    
    .footer-html-content,
    .footer-social {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .social-icons {
        gap: 0.75rem;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* Dark Mode for Footer */
[data-theme="dark"] .footer-html-content {
    border-bottom-color: #374151;
    color: #d1d5db;
}

[data-theme="dark"] .footer-column-title {
    color: #a5b4fc;
    border-bottom-color: #667eea;
}

[data-theme="dark"] .footer-btn {
    background: #667eea;
    color: white;
}

[data-theme="dark"] .footer-btn:hover {
    background: #764ba2;
}

[data-theme="dark"] .footer-link {
    color: #9ca3af;
}

[data-theme="dark"] .footer-link:hover {
    color: #a5b4fc;
}

[data-theme="dark"] .footer-about-content {
    color: #d1d5db;
}

[data-theme="dark"] .footer-features-list li::before {
    color: #a5b4fc;
}

[data-theme="dark"] .footer-quote {
    color: #9ca3af;
}

[data-theme="dark"] .footer-social {
    border-bottom-color: #374151;
}

[data-theme="dark"] .social-icon {
    background: rgba(31, 41, 55, 0.5);
    border-color: #374151;
    color: #9ca3af;
}

[data-theme="dark"] .social-icon:hover {
    border-color: currentColor;
}

[data-theme="dark"] .site-info {
    color: #9ca3af;
}

/* ============================================
   DARK MODE FOR COMMENTS
   ============================================ */

[data-theme="dark"] .post-comments-section {
    border-top-color: #374151;
}

[data-theme="dark"] .comments-area {
    background: #1f2937;
    border-color: #374151;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .comments-title {
    color: #e5e7eb;
    border-bottom-color: #667eea;
}

[data-theme="dark"] .comments-title .dashicons {
    color: #a5b4fc;
}

[data-theme="dark"] .comment-list .comment {
    border-bottom-color: #374151;
}

[data-theme="dark"] .comment-avatar img {
    border-color: #4b5563;
}

[data-theme="dark"] .comment-author {
    color: #a5b4fc;
}

[data-theme="dark"] .comment-author a {
    color: #a5b4fc;
}

[data-theme="dark"] .comment-author a:hover {
    color: #c4b5fd;
}

[data-theme="dark"] .comment-date {
    color: #9ca3af;
}

[data-theme="dark"] .comment-awaiting-moderation {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.2);
}

[data-theme="dark"] .comment-text {
    color: #d1d5db;
}

[data-theme="dark"] .comment-actions a {
    background: linear-gradient(135deg, #374151, #4b5563);
    color: #a5b4fc;
    border-color: #4b5563;
}

[data-theme="dark"] .comment-actions a:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

[data-theme="dark"] .comment-list .children::before {
    background: linear-gradient(to bottom, #667eea, #764ba2);
    opacity: 0.4;
}

[data-theme="dark"] .comment-list .children .comment-content {
    background: linear-gradient(135deg, #1e293b, #1e3a5f);
    border-color: #374151;
}

[data-theme="dark"] .comment-list .children .comment-content::before {
    color: #a5b4fc;
}

[data-theme="dark"] .comment-list .children .comment-avatar img {
    border-color: #4b5563;
}

[data-theme="dark"] .comment-form {
    border-top-color: #374151;
}

[data-theme="dark"] .comment-reply-title,
[data-theme="dark"] .comment-form-title {
    color: #e5e7eb;
}

[data-theme="dark"] .comment-reply-title .dashicons,
[data-theme="dark"] .comment-form-title .dashicons {
    color: #a5b4fc;
}

[data-theme="dark"] .comment-form-comment label,
[data-theme="dark"] .comment-form-author label,
[data-theme="dark"] .comment-form-email label,
[data-theme="dark"] .comment-form-url label {
    color: #d1d5db;
}

[data-theme="dark"] .comment-form-comment textarea,
[data-theme="dark"] .comment-form-author input,
[data-theme="dark"] .comment-form-email input,
[data-theme="dark"] .comment-form-url input {
    background: rgba(31, 41, 55, 0.5);
    border-color: #374151;
    color: #e5e7eb;
}

[data-theme="dark"] .comment-form-comment textarea:focus,
[data-theme="dark"] .comment-form-author input:focus,
[data-theme="dark"] .comment-form-email input:focus,
[data-theme="dark"] .comment-form-url input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

[data-theme="dark"] .no-comments {
    background: linear-gradient(135deg, #374151, #4b5563);
    color: #9ca3af;
    border-color: #4b5563;
}

[data-theme="dark"] .comments-pagination .page-numbers {
    background: rgba(31, 41, 55, 0.5);
    border-color: #374151;
    color: #a5b4fc;
}

[data-theme="dark"] .comments-pagination .page-numbers:hover,
[data-theme="dark"] .comments-pagination .page-numbers.current {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
}

[data-theme="dark"] .lesson-card .card,
[data-theme="dark"] .quiz-card .card,
[data-theme="dark"] .question-card .card,
[data-theme="dark"] .chapter-card,
[data-theme="dark"] .lesson-content,
[data-theme="dark"] .lesson-taxonomies,
[data-theme="dark"] .taxonomy-inline,
[data-theme="dark"] .lesson-taxonomies .taxonomy-badge,
[data-theme="dark"] .taxonomy-inline .taxonomy-badge,
[data-theme="dark"] .chapter-description,
[data-theme="dark"] .chapter-meta,
[data-theme="dark"] .quiz-container,
[data-theme="dark"] .quiz-question-item,
[data-theme="dark"] .quiz-results,
[data-theme="dark"] .lesson-pdf,
[data-theme="dark"] .question-container,
[data-theme="dark"] .question-answer,
[data-theme="dark"] .question-solution,
[data-theme="dark"] .lesson-text-content,
[data-theme="dark"] .lesson-video-item,
[data-theme="dark"] .lesson-audio-item,
[data-theme="dark"] .lesson-videos,
[data-theme="dark"] .lesson-audios,
[data-theme="dark"] .lesson-important-notes {
    background-color: #1f2937;
    color: #e5e7eb;
    border-color: #374151;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.45);
}

[data-theme="dark"] .lesson-step,
[data-theme="dark"] .lesson-pdf,
[data-theme="dark"] .lesson-videos,
[data-theme="dark"] .lesson-audios,
[data-theme="dark"] .lesson-important-notes,
[data-theme="dark"] .chapter-quiz,
[data-theme="dark"] .lesson-quiz {
    background-color: #1f2937;
    color: #e5e7eb;
}

[data-theme="dark"] .lesson-step,
[data-theme="dark"] .lesson-pdf,
[data-theme="dark"] .lesson-videos,
[data-theme="dark"] .lesson-audios,
[data-theme="dark"] .chapter-quiz,
[data-theme="dark"] .lesson-quiz {
    border-color: #374151;
}

[data-theme="dark"] .lesson-step,
[data-theme="dark"] .lesson-pdf,
[data-theme="dark"] .lesson-videos,
[data-theme="dark"] .lesson-audios,
[data-theme="dark"] .chapter-quiz,
[data-theme="dark"] .lesson-quiz,
[data-theme="dark"] .question-answer,
[data-theme="dark"] .question-solution {
    border-right-color: #667eea;
}

[data-theme="dark"] .taxonomy-inline .taxonomy-label {
    color: #a5b4fc;
}

[data-theme="dark"] .taxonomy-inline .taxonomy-value {
    color: #e5e7eb;
}

[data-theme="dark"] .chapter-meta .meta-item strong {
    color: #a5b4fc;
}

[data-theme="dark"] .progress-bar {
    background-color: #374151;
}

[data-theme="dark"] .card-progress .progress-text,
[data-theme="dark"] .quiz-duration,
[data-theme="dark"] .quiz-questions-count,
[data-theme="dark"] .quiz-excerpt,
[data-theme="dark"] .card-excerpt,
[data-theme="dark"] .lesson-taxonomies .taxonomy-value,
[data-theme="dark"] .chapter-description,
[data-theme="dark"] .chapter-description p {
    color: #d1d5db;
}

[data-theme="dark"] .card-taxonomies .taxonomy-badge,
[data-theme="dark"] .lesson-taxonomies .taxonomy-badge {
    background-color: #312e81;
    border-color: #4338ca;
    color: #f9fafb;
}

[data-theme="dark"] .lesson-taxonomies .taxonomy-badge .taxonomy-value,
[data-theme="dark"] .lesson-taxonomies .taxonomy-badge .taxonomy-label {
    color: inherit;
}

/* Dark Mode for Posts */
[data-theme="dark"] .post-content {
    background: #1f2937;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .post-header-content {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    border-bottom-color: #667eea;
}

[data-theme="dark"] .post-title {
    color: #e5e7eb;
    background: linear-gradient(135deg, #a5b4fc 0%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .post-meta {
    color: #d1d5db;
}

[data-theme="dark"] .post-meta .dashicons {
    color: #a5b4fc;
}

[data-theme="dark"] .post-body {
    color: #e5e7eb;
}

[data-theme="dark"] .post-content-wrapper {
    color: #d1d5db;
}

[data-theme="dark"] .post-content-wrapper h2,
[data-theme="dark"] .post-content-wrapper h3,
[data-theme="dark"] .post-content-wrapper h4 {
    color: #a5b4fc;
}

[data-theme="dark"] .post-content-wrapper h2 {
    border-bottom-color: rgba(165, 180, 252, 0.3);
}

[data-theme="dark"] .post-content-wrapper blockquote {
    border-right-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    color: #d1d5db;
}

[data-theme="dark"] .post-content-wrapper a {
    color: #a5b4fc;
}

[data-theme="dark"] .post-content-wrapper a:hover {
    color: #c084fc;
    border-bottom-color: #c084fc;
}

[data-theme="dark"] .post-tags {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(165, 180, 252, 0.3);
}

[data-theme="dark"] .post-tags-title {
    color: #a5b4fc;
}

[data-theme="dark"] .post-tags-title .dashicons {
    color: #a5b4fc;
}

[data-theme="dark"] .post-tag {
    background: rgba(31, 41, 55, 0.5);
    color: #a5b4fc;
    border-color: #667eea;
}

[data-theme="dark"] .post-tag:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

[data-theme="dark"] .post-sharing {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    border-color: rgba(165, 180, 252, 0.3);
}

[data-theme="dark"] .post-sharing-title {
    color: #a5b4fc;
}

[data-theme="dark"] .post-sharing-title .dashicons {
    color: #a5b4fc;
}

[data-theme="dark"] .share-btn {
    background: rgba(31, 41, 55, 0.5);
    color: #a5b4fc;
    border-color: #667eea;
}

[data-theme="dark"] .share-btn:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

[data-theme="dark"] .post-short-url {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(165, 180, 252, 0.3);
}

[data-theme="dark"] .short-url-label {
    color: #a5b4fc;
}

[data-theme="dark"] .short-url-label .dashicons {
    color: #a5b4fc;
}

[data-theme="dark"] .short-url-input {
    background: rgba(31, 41, 55, 0.5);
    border-color: rgba(165, 180, 252, 0.3);
    color: #d1d5db;
}

[data-theme="dark"] .short-url-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

[data-theme="dark"] .short-url-copy-btn {
    background: #667eea;
    color: #fff;
}

[data-theme="dark"] .short-url-copy-btn:hover {
    background: #764ba2;
}

/* Dark Mode for Dashboard */
[data-theme="dark"] .user-dashboard {
    color: #e5e7eb;
}

[data-theme="dark"] .dashboard-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border-color: rgba(165, 180, 252, 0.3);
}

[data-theme="dark"] .dashboard-title {
    color: #e5e7eb;
}

[data-theme="dark"] .dashboard-title .dashicons {
    color: #a5b4fc;
}

[data-theme="dark"] .dashboard-subtitle {
    color: #d1d5db;
}

[data-theme="dark"] .stat-card {
    background: #1f2937;
    border-color: #374151;
}

[data-theme="dark"] .stat-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .stat-value {
    color: #e5e7eb;
}

[data-theme="dark"] .stat-label {
    color: #d1d5db;
}

[data-theme="dark"] .dashboard-section {
    background: #1f2937;
    border-color: #374151;
}

[data-theme="dark"] .section-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    border-bottom-color: #374151;
}

[data-theme="dark"] .section-title {
    color: #e5e7eb;
}

[data-theme="dark"] .section-title .dashicons {
    color: #a5b4fc;
}

[data-theme="dark"] .quiz-result-item {
    background: rgba(31, 41, 55, 0.5);
    border-color: #374151;
}

[data-theme="dark"] .quiz-result-item:hover {
    background: rgba(31, 41, 55, 0.7);
}

[data-theme="dark"] .quiz-result-title a {
    color: #e5e7eb;
}

[data-theme="dark"] .quiz-result-title a:hover {
    color: #a5b4fc;
}

[data-theme="dark"] .quiz-result-date {
    color: #9ca3af;
}

[data-theme="dark"] .score-value {
    color: #e5e7eb;
}

[data-theme="dark"] .score-label {
    color: #9ca3af;
}

[data-theme="dark"] .total-count,
[data-theme="dark"] .answers-label {
    color: #9ca3af;
}

[data-theme="dark"] .lesson-item {
    background: rgba(31, 41, 55, 0.5);
    border-color: #374151;
    border-right-color: #667eea;
}

[data-theme="dark"] .lesson-item:hover {
    background: rgba(31, 41, 55, 0.7);
    border-right-color: #764ba2;
}

[data-theme="dark"] .lesson-icon {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    color: #a5b4fc;
}

[data-theme="dark"] .lesson-title a {
    color: #e5e7eb;
}

[data-theme="dark"] .lesson-title a:hover {
    color: #a5b4fc;
}

[data-theme="dark"] .lesson-stat-item .stat-label {
    color: #9ca3af;
}

[data-theme="dark"] .lesson-stat-item .stat-value {
    color: #e5e7eb;
}

[data-theme="dark"] .lesson-stat-item .stat-value.stat-accuracy {
    color: #a5b4fc;
}

[data-theme="dark"] .lesson-meta {
    color: #9ca3af;
}

[data-theme="dark"] .dashboard-quick-actions {
    background: #1f2937;
    border-color: #374151;
}

[data-theme="dark"] .quick-action-btn {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    border-color: rgba(165, 180, 252, 0.3);
    color: #a5b4fc;
}

[data-theme="dark"] .quick-action-btn:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.25), rgba(118, 75, 162, 0.25));
    border-color: #667eea;
}

[data-theme="dark"] .empty-state {
    color: #9ca3af;
}

[data-theme="dark"] .empty-state .dashicons {
    color: #6b7280;
}

/* Dark Mode for Profile Edit */
[data-theme="dark"] .profile-edit-page {
    color: #e5e7eb;
}

[data-theme="dark"] .profile-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border-color: rgba(165, 180, 252, 0.3);
}

[data-theme="dark"] .profile-title {
    color: #e5e7eb;
}

[data-theme="dark"] .profile-title .dashicons {
    color: #a5b4fc;
}

[data-theme="dark"] .back-to-dashboard {
    background: rgba(31, 41, 55, 0.5);
    border-color: #667eea;
    color: #a5b4fc;
}

[data-theme="dark"] .back-to-dashboard:hover {
    background: #667eea;
    color: white;
}

[data-theme="dark"] .profile-success {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.3);
}

[data-theme="dark"] .profile-error {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
}

[data-theme="dark"] .profile-section {
    background: #1f2937;
    border-color: #374151;
}

[data-theme="dark"] .profile-section .section-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    border-bottom-color: #374151;
}

[data-theme="dark"] .profile-section .section-title {
    color: #e5e7eb;
}

[data-theme="dark"] .profile-section .section-title .dashicons {
    color: #a5b4fc;
}

[data-theme="dark"] .form-group label {
    color: #d1d5db;
}

[data-theme="dark"] .form-control {
    background: rgba(31, 41, 55, 0.5);
    border-color: #374151;
    color: #e5e7eb;
}

[data-theme="dark"] .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

[data-theme="dark"] .form-control:disabled {
    background: rgba(31, 41, 55, 0.3);
    color: #9ca3af;
}

[data-theme="dark"] .form-text {
    color: #9ca3af;
}

[data-theme="dark"] .form-actions {
    border-top-color: #374151;
}

[data-theme="dark"] .quiz-card .btn,
[data-theme="dark"] .lesson-card .btn {
    background: #4f46e5;
    border-color: #4f46e5;
}

/* ============================================
   COURSE STYLES
   ============================================ */

.course-single {
    margin-top: 2rem;
}

.course-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 3rem;
    border-radius: 0 0 20px 20px;
}

.course-header .container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: start;
}

.course-thumbnail {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.course-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.course-header-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.course-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.course-excerpt {
    font-size: 1.2rem;
    opacity: 0.95;
    line-height: 1.6;
}

.course-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.course-meta .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.course-pricing {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.course-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.course-price.free {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
}

.course-price .price-amount {
    font-size: 2rem;
}

.course-price .price-currency {
    font-size: 1.2rem;
    opacity: 0.9;
}

.course-purchase-btn,
.course-shop-btn {
    padding: 1rem 2rem;
    background: white;
    color: #667eea;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.course-purchase-btn:hover,
.course-shop-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.course-shop-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.course-shop-btn:hover {
    background: white;
    color: #667eea;
}

.course-access-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(76, 175, 80, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
}

.course-access-badge .dashicons {
    color: #4caf50;
}

.course-content-wrapper {
    padding: 2rem 0;
}

.course-main-content {
    max-width: 1200px;
    margin: 0 auto;
}

.course-description {
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.course-description img,
.course-description figure,
.course-description iframe,
.course-description video {
    max-width: 100%;
    height: auto;
    display: block;
}

.course-description figure {
    margin: 0 0 1.5rem;
}

.course-description iframe,
.course-description video {
    width: 100%;
    max-width: 100%;
    border: none;
    height: auto;
}

.course-description .wp-caption {
    width: 100% !important;
}

.course-description h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: #1e1e2d;
    border-bottom: 3px solid #667eea;
    padding-bottom: 0.75rem;
}

.course-curriculum {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 2rem;
}

.course-curriculum h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: #1e1e2d;
    border-bottom: 3px solid #667eea;
    padding-bottom: 0.75rem;
}

.course-section {
    margin-bottom: 2.5rem;
}

.course-section:last-child {
    margin-bottom: 0;
}

.course-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #667eea;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.course-section .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.course-chapters-list,
.course-lessons-list,
.course-quizzes-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.course-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    margin-bottom: 0.75rem;
    background: #f8f9ff;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.course-item.accessible {
    border-color: #e0e7ff;
}

.course-item.accessible:hover {
    background: #f0f4ff;
    border-color: #667eea;
    transform: translateX(-5px);
}

.course-item.locked {
    opacity: 0.6;
    background: #f3f4f6;
    cursor: not-allowed;
}

.course-item a {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.course-item .item-icon {
    font-size: 20px;
    color: #667eea;
}

.course-item.locked .item-icon {
    color: #9ca3af;
}

.course-item .item-title {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 500;
    color: #1e1e2d;
}

.course-item.locked .item-title {
    color: #6b7280;
}

/* Mobile Responsive for Courses */
@media (max-width: 768px) {
    .course-header .container {
        grid-template-columns: 1fr;
    }
    
    .course-thumbnail {
        max-width: 250px;
        margin: 0 auto;
    }
    
    .course-title {
        font-size: 1.75rem;
        text-align: center;
    }
    
    .course-meta {
        justify-content: center;
    }
    
    .course-pricing {
        flex-direction: column;
        align-items: stretch;
    }
    
    .course-purchase-btn {
        text-align: center;
        justify-content: center;
    }
    
    .course-description,
    .course-curriculum {
        padding: 1.5rem;
    }
}

/* Dark Mode for Courses */
[data-theme="dark"] .course-description,
[data-theme="dark"] .course-curriculum {
    background: #1f2937;
    border-color: #374151;
}

[data-theme="dark"] .course-description h2,
[data-theme="dark"] .course-curriculum h2 {
    color: #e5e7eb;
    border-bottom-color: #667eea;
}

[data-theme="dark"] .course-section h3 {
    color: #a5b4fc;
}

[data-theme="dark"] .course-item.accessible {
    background: #374151;
    border-color: #4b5563;
}

[data-theme="dark"] .course-item.accessible:hover {
    background: #4b5563;
    border-color: #667eea;
}

[data-theme="dark"] .course-item.locked {
    background: #1f2937;
    opacity: 0.5;
}

[data-theme="dark"] .course-item .item-title {
    color: #e5e7eb;
}

[data-theme="dark"] .course-item.locked .item-title {
    color: #9ca3af;
}

/* Course Cards in Dashboard */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.course-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.course-card-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.course-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-card-thumbnail img {
    transform: scale(1.05);
}

.course-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-card-title {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.course-card-title a {
    color: #1e1e2d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.course-card-title a:hover {
    color: #667eea;
}

.course-card-excerpt {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.course-card-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.course-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.course-meta-item .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #667eea;
}

.course-card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.course-card-footer .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.course-card-footer .btn i {
    font-size: 1rem;
}

.course-card-footer .btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
}

.course-card-footer .btn-primary:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.course-card-footer .btn-view-course {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
}

.course-card-footer .btn-view-course:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* WooCommerce blocks in dashboard */
.downloads-list,
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.download-item,
.order-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f8fafc;
}

.download-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(59,130,246,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    flex-shrink: 0;
}

.download-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.download-title {
    font-weight: 600;
    color: #1f2937;
}

.download-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #475569;
}

.order-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-weight: 600;
    color: #1f2937;
    width: 100%;
}

.order-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
    width: 100%;
}

.order-status {
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(59,130,246,0.12);
    color: #1d4ed8;
}

.order-total {
    font-weight: 600;
    color: #0f172a;
}

.order-actions {
    margin-top: 0.75rem;
}


/* Mobile Responsive for Course Cards */
@media (max-width: 768px) {
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .course-card-thumbnail {
        height: 180px;
    }
}

/* Dark Mode for Course Cards */
[data-theme="dark"] .course-card {
    background: #1f2937;
    border-color: #374151;
}

[data-theme="dark"] .course-card-title a {
    color: #e5e7eb;
}

[data-theme="dark"] .course-card-title a:hover {
    color: #a5b4fc;
}

[data-theme="dark"] .course-card-excerpt {
    color: #9ca3af;
}

[data-theme="dark"] .course-meta-item {
    color: #9ca3af;
}

[data-theme="dark"] .course-card-footer {
    border-top-color: #374151;
}

[data-theme="dark"] .course-card-footer .btn-primary,
[data-theme="dark"] .course-card-footer .btn-view-course {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

[data-theme="dark"] .course-card-footer .btn-primary:hover,
[data-theme="dark"] .course-card-footer .btn-view-course:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}


/* Courses Page Template - Filters */
.courses-page-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.courses-filters {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #667eea;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    color: #374151;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-actions {
    display: flex;
    gap: 1rem;
}

.filter-actions .btn {
    white-space: nowrap;
}

.course-card.hidden {
    display: none !important;
}

.course-card-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.course-category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.no-courses-message {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.no-courses-message p {
    font-size: 1.125rem;
    color: #6b7280;
    margin: 0;
}

/* Responsive Filters */
@media (max-width: 768px) {
    .courses-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .filter-actions {
        width: 100%;
    }
    
    .filter-actions .btn {
        width: 100%;
    }
}

/* Dark Mode for Filters */
[data-theme="dark"] .courses-filters {
    background: #1f2937;
    border-color: #374151;
}

[data-theme="dark"] .filter-group label {
    color: #e5e7eb;
}

[data-theme="dark"] .filter-select {
    background: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
}

[data-theme="dark"] .filter-select:focus {
    border-color: #667eea;
}

[data-theme="dark"] .course-category-badge {
    background: #374151;
    color: #9ca3af;
}

[data-theme="dark"] .no-courses-message {
    background: #1f2937;
}

[data-theme="dark"] .no-courses-message p {
    color: #9ca3af;
}

/* Course Archive Page */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid #667eea;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    color: #1e1e2d;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-title .dashicons {
    font-size: 36px;
    width: 36px;
    height: 36px;
    color: #667eea;
}

.page-header-actions {
    display: flex;
    gap: 1rem;
}

.courses-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.course-price-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.1rem;
}

.course-price-badge.free {
    background: linear-gradient(135deg, #4caf50, #45a049);
}

.no-courses {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.no-courses p {
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* Mobile Responsive for Course Archive */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .courses-archive-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Dark Mode for Course Archive */
[data-theme="dark"] .page-title {
    color: #e5e7eb;
}

[data-theme="dark"] .no-courses {
    background: #1f2937;
    border-color: #374151;
}

[data-theme="dark"] .no-courses p {
    color: #9ca3af;
}

/* Hide post-date and post-author from shop page when disabled via meta box */
.shop-main .product-item[data-show-date-author="0"] .post-date,
.shop-main .product-item[data-show-date-author="0"] .post-author,
.shop-main .product-item[data-show-date-author="0"] .post-header-content {
    display: none !important;
}

/* Hide post-meta (date and author) from ALL single product pages */
.single-product .post-meta,
.single-product .post-header-content,
.single-product .post-date,
.single-product .post-author,
.woocommerce.single-product .post-meta,
.woocommerce.single-product .post-header-content,
.woocommerce.single-product .post-date,
.woocommerce.single-product .post-author {
    display: none !important;
}

/* Single Product Page Styles */
.single-product .site-main {
    width: 100%;
    max-width: 100%;
}

.single-product .container {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 2rem 1rem !important;
}

/* Ensure WooCommerce main content wrapper has full width */
.single-product .woocommerce,
.woocommerce.single-product {
    width: 100% !important;
    max-width: 100% !important;
}

/* Ensure product title is visible - Beautiful and Professional Styling */
.single-product .product_title,
.single-product h1.product_title,
.single-product h1.entry-title,
.single-product .entry-title,
.woocommerce.single-product .product_title,
.woocommerce.single-product h1.product_title,
.woocommerce.single-product h1.entry-title,
.woocommerce.single-product .entry-title,
.woocommerce div.product .product_title,
.woocommerce div.product h1.product_title,
.woocommerce div.product .summary .product_title,
.woocommerce div.product .summary h1.product_title,
.woocommerce div.product .summary .entry-title,
.woocommerce div.product .summary h1.entry-title,
.single-product .woocommerce div.product .summary .product_title,
.single-product .woocommerce div.product .summary h1.product_title,
.single-product .riazi-product-title,
.woocommerce.single-product .riazi-product-title {
    display: block !important;
    visibility: visible !important;
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    margin-bottom: 1.5rem !important;
    margin-top: 0 !important;
    padding-bottom: 1rem !important;
    color: #1a1a1a !important;
    line-height: 1.3 !important;
    opacity: 1 !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    clip: auto !important;
    position: static !important;
    border-bottom: 3px solid #667eea !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    letter-spacing: -0.02em !important;
    text-shadow: none !important;
    transition: all 0.3s ease !important;
}

/* Fallback for browsers that don't support background-clip: text */
@supports not (-webkit-background-clip: text) {
    .single-product .product_title,
    .single-product h1.product_title,
    .woocommerce.single-product .product_title,
    .woocommerce.single-product h1.product_title,
    .woocommerce div.product .product_title,
    .woocommerce div.product h1.product_title,
    .single-product .riazi-product-title,
    .woocommerce.single-product .riazi-product-title {
        color: #667eea !important;
        -webkit-text-fill-color: #667eea !important;
    }
}

/* Hover effect for title */
.single-product .product_title:hover,
.single-product h1.product_title:hover,
.woocommerce.single-product .product_title:hover,
.woocommerce.single-product h1.product_title:hover,
.woocommerce div.product .product_title:hover,
.woocommerce div.product h1.product_title:hover,
.single-product .riazi-product-title:hover,
.woocommerce.single-product .riazi-product-title:hover {
    transform: translateY(-2px) !important;
    border-bottom-color: #764ba2 !important;
}

/* Responsive title sizing */
@media (max-width: 768px) {
    .single-product .product_title,
    .single-product h1.product_title,
    .woocommerce.single-product .product_title,
    .woocommerce.single-product h1.product_title,
    .woocommerce div.product .product_title,
    .woocommerce div.product h1.product_title,
    .single-product .riazi-product-title,
    .woocommerce.single-product .riazi-product-title {
        font-size: 2rem !important;
        padding-bottom: 0.75rem !important;
        margin-bottom: 1.25rem !important;
    }
}

@media (max-width: 480px) {
    .single-product .product_title,
    .single-product h1.product_title,
    .woocommerce.single-product .product_title,
    .woocommerce.single-product h1.product_title,
    .woocommerce div.product .product_title,
    .woocommerce div.product h1.product_title,
    .single-product .riazi-product-title,
    .woocommerce.single-product .riazi-product-title {
        font-size: 1.75rem !important;
        padding-bottom: 0.5rem !important;
        margin-bottom: 1rem !important;
    }
}

/* ============================================
   CRITICAL FIX: Font Awesome Icons Display
   ============================================ */
/* Ensure all Font Awesome icons display correctly */
i.fa-solid,
i[class*="fa-solid"],
i[class^="fa-solid"],
i.fa,
i[class*="fa-"],
i[class^="fa-"],
.fa-solid,
[class*="fa-solid"],
[class^="fa-solid"],
.fa,
[class*="fa-"],
[class^="fa-"] {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    display: inline-block !important;
    line-height: 1 !important;
}

/* Specific fix for header action buttons */
.header-actions i,
.header-actions .fa-solid,
.header-actions [class*="fa-"] {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    display: inline-block !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* Button font consistency - Single Product */
.single-product .single_add_to_cart_button,
.single-product button.single_add_to_cart_button,
.single-product .button.single_add_to_cart_button,
.woocommerce.single-product .single_add_to_cart_button,
.woocommerce.single-product button.single_add_to_cart_button,
.woocommerce.single-product .button.single_add_to_cart_button,
.single-product .add_to_cart_button,
.single-product button.add_to_cart_button,
.woocommerce.single-product .add_to_cart_button,
.woocommerce.single-product button.add_to_cart_button {
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
}

/* Button font consistency - Shop Page */
.shop-main .product-view-btn,
.shop-main .product-add-to-cart-btn,
.shop-main .btn,
.shop-main button,
.shop-main .button,
.shop-main .product-actions .btn,
.shop-main .product-actions button,
.shop-main .product-actions .button {
    font-family: inherit !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
}

/* WooCommerce summary wrapper */
.single-product .summary,
.woocommerce.single-product .summary {
    width: 100%;
    max-width: 100%;
}

/* Product images and summary layout */
.single-product .woocommerce-product-gallery,
.single-product .summary {
    width: 100%;
}

/* Ensure WooCommerce product wrapper has proper width */
.single-product .woocommerce div.product,
.woocommerce.single-product div.product {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.single-product .woocommerce div.product .woocommerce-product-gallery,
.woocommerce.single-product div.product .woocommerce-product-gallery {
    width: 100%;
    flex: 0 0 100%;
}

.single-product .woocommerce div.product .summary,
.woocommerce.single-product div.product .summary {
    width: 100%;
    flex: 0 0 100%;
}

@media (min-width: 768px) {
    .single-product .woocommerce div.product .woocommerce-product-gallery,
    .woocommerce.single-product div.product .woocommerce-product-gallery {
        flex: 0 0 48%;
        width: 48%;
    }
    
    .single-product .woocommerce div.product .summary,
    .woocommerce.single-product div.product .summary {
        flex: 0 0 48%;
        width: 48%;
    }
}

/* ============================================
   FONT AWESOME ICONS - FINAL OVERRIDE
   ============================================
   This section ensures Font Awesome icons display correctly
   by overriding any Vazir font declarations
   ============================================ */
/* Force Font Awesome on all icon elements - Highest priority */
i[class*="fa"],
i[class^="fa"],
i.fa,
i.fa-solid,
i.fa-regular,
i.fa-brands,
.fa,
.fa-solid,
.fa-regular,
.fa-brands,
.fas,
.far,
.fab,
[class*="fa-"],
[class^="fa-"],
.header-actions i,
.header-actions .fa,
.header-actions .fa-solid,
.header-actions .fa-regular,
.header-actions .fa-brands,
.action-btn i,
.action-btn .fa,
.action-btn .fa-solid,
.back-to-top i,
.back-to-top .fa,
.back-to-top .fa-solid,
.quiz-duration i,
.quiz-duration .fa,
.quiz-duration .fa-solid {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    display: inline-block !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-transform: none !important;
    line-height: 1 !important;
}

/* Font Awesome Regular */
.fa-regular,
.far,
i.fa-regular,
i.far {
    font-weight: 400 !important;
}

/* Font Awesome Brands */
.fa-brands,
.fab,
i.fa-brands,
i.fab {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

