/* =========================================================
   1) HERO CAROUSEL (VOD) — scoped
   ========================================================= */
.vod-hero-carousel-wrapper,
.vod-hero-carousel-wrapper *,
.vod-hero-carousel-wrapper *::before,
.vod-hero-carousel-wrapper *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: vazir;
}
.vod-hero-carousel-wrapper .vod-dot.active::after {
    content: none;
}
.vod-hero-carousel-wrapper {
    direction: rtl;
    text-align: right;
    unicode-bidi: isolate;
    font-family: Vazirmatn, "IRANSans", "IRANSansX", Tahoma, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background-color: #ffffff;
    color: #1f1f1f;
    padding: 20px 16px;
    max-width: 1320px;
    margin: 0 auto;
    position: relative;
    line-height: 1.6;
}
.vod-hero-carousel-wrapper .vod-carousel-container {
    overflow: hidden;
    width: 100%;
    border-radius: 20px;
}
.vod-hero-carousel-wrapper .vod-carousel-track {
    display: flex;
    flex-direction: row;
    direction: rtl;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}
.vod-hero-carousel-wrapper .vod-card-slide {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 10px;
}
.vod-hero-carousel-wrapper .vod-featured-card {
    border-radius: 20px;
    padding: 10px 32px;
    min-height: 250px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
}
.vod-hero-carousel-wrapper .vod-card-content {
    flex: 1 1 100%;
    z-index: 2;
    padding-inline-end: 10px;
    text-align: right;
}
.vod-hero-carousel-wrapper .vod-card-logo {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.vod-hero-carousel-wrapper .vod-card-logo img,
.vod-hero-carousel-wrapper .vod-card-logo svg {
    max-height: 28px;
    width: auto;
    display: block;
}
.vod-hero-carousel-wrapper .vod-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 10px;
    color: inherit;
    text-align: right;
}
.vod-hero-carousel-wrapper .vod-card-subtitle {
    font-size: 0.925rem;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 22px;
    color: inherit;
    text-align: right;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vod-hero-carousel-wrapper .vod-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    font-family: inherit;
}
.vod-hero-carousel-wrapper .vod-featured-card.theme-dark .vod-card-btn {
    background-color: #ffffff;
    color: #0056d2;
}
.vod-hero-carousel-wrapper .vod-featured-card.theme-light .vod-card-btn {
    background-color: #ffffff;
    color: #0056d2;
    border: 1px solid #0056d2;
}
.vod-hero-carousel-wrapper .vod-card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.vod-hero-carousel-wrapper .vod-btn-arrow {
    flex-shrink: 0;
}
.vod-hero-carousel-wrapper .vod-card-graphic {
    flex: 1 1 42%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 1;
}
.vod-hero-carousel-wrapper .vod-card-graphic img,
.vod-hero-carousel-wrapper .vod-card-graphic svg {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}
.vod-hero-carousel-wrapper .vod-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 18px;
}
.vod-hero-carousel-wrapper .vod-carousel-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}
.vod-hero-carousel-wrapper .vod-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #cbd5e1;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}
.vod-hero-carousel-wrapper .vod-dot.active {
    background-color: #0056d2;
    width: 24px;
    border-radius: 12px;
}
.vod-hero-carousel-wrapper .vod-nav-arrow {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #334155;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.vod-hero-carousel-wrapper .vod-nav-arrow:hover {
    background-color: #f8fafc;
    color: #0056d2;
    border-color: #cbd5e1;
}
@media (max-width: 900px) {
    .vod-hero-carousel-wrapper .vod-card-slide {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .vod-hero-carousel-wrapper .vod-featured-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 20px;
        min-height: auto;
    }
    .vod-hero-carousel-wrapper .vod-card-content {
        padding-inline-end: 0;
        width: 100%;
    }
    .vod-hero-carousel-wrapper .vod-card-title {
        font-size: 1.15rem;
    }
    .vod-hero-carousel-wrapper .vod-card-subtitle {
        font-size: 0.875rem;
    }
    .vod-hero-carousel-wrapper .vod-card-graphic {
        width: 100%;
        margin-top: 20px;
        justify-content: center;
    }
}

/* =========================================================
   2) BOOK COURSES SECTION (horizontal cards, natural ratio)
   ========================================================= */
.book-courses-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
.book-courses-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #333;
}
.book-courses-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.book-course-item {
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.book-course-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.book-course-image-container {
    flex-shrink: 0;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: #eee;
}
.book-course-image-container img {
    position: static;
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    display: block;
}
.book-course-details {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.book-course-details h3 {
    font-size: 1.4rem;
    color: #1a1a1a;
    margin: 0 0 0.5rem;
}
.book-course-details p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}
.book-meta {
    margin-top: auto;
}
.book-meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #777;
}
.book-meta-item .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.course-link {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}
.course-link:hover {
    background-color: #0056b3;
}
@media (min-width: 768px) {
    .book-courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .book-course-item {
        flex-direction: row;
    }
    .book-course-image-container {
        width: 35%;
        padding-bottom: 0;
        height: auto;
        max-height: 300px;
    }
    .book-course-image-container img {
        max-height: 100%;
        width: auto;
        max-width: 100%;
    }
    .book-course-details {
        width: 65%;
    }
}

/* =========================================================
   3) FC COURSE SECTION (2-col, vertical image side)
   ========================================================= */
.fc-course-section {
    direction: rtl;
    text-align: right;
    font-family: 'vazir', 'Vazirmatn', Tahoma, sans-serif;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
    box-sizing: border-box;
}
.fc-course-section * {
    box-sizing: border-box;
}
.fc-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #1c1d1f;
    margin-bottom: 24px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8e9eb;
}
.fc-course-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.fc-course-card {
    display: flex;
    flex-direction: row;
    background: #ffffff;
    border: 1px solid #e8e9eb;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 0;
}
.fc-course-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    border-color: #d1d7dc;
}
.fc-card-image {
    position: relative;
    width: 40%;
    min-width: 0;
    background-color: #f7f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: hidden;
}
.fc-card-image a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.fc-card-image img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
.fc-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #5624d0;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}
.fc-card-content {
    width: 60%;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}
.fc-card-title {
    margin: 0 0 8px 0;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 700;
}
.fc-card-title a {
    color: #1c1d1f;
    text-decoration: none;
    transition: color 0.2s;
}
.fc-card-title a:hover {
    color: #5624d0;
}
.fc-card-excerpt {
    font-size: 12px;
    color: #6a6f73;
    margin: 0 0 10px 0;
    line-height: 1.5;
}
.fc-card-meta-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #4a4d50;
}
.fc-meta-item strong {
    color: #1c1d1f;
}
.fc-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e8e9eb;
}
.fc-card-price {
    font-size: 15px;
    font-weight: 700;
    color: #1c1d1f;
}
.fc-card-price del {
    color: #6a6f73;
    font-size: 12px;
    font-weight: normal;
    margin-left: 4px;
}
.fc-card-price ins {
    text-decoration: none;
}
.fc-discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #e53935;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
    rotate: -10deg;
}
.fc-btn-cta {
    display: inline-block;
    background-color: #2b2b2b;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 4px;
    text-decoration: none !important;
    transition: background-color 0.2s;
    white-space: nowrap;
}
.fc-btn-cta:hover {
    background-color: #5624d0;
}
@media (max-width: 992px) {
    .fc-course-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (max-width: 576px) {
    .fc-course-card {
        flex-direction: column;
    }
    .fc-card-image,
    .fc-card-content {
        width: 100%;
    }
    .fc-card-image {
        height: auto;
        max-height: 280px;
        padding: 1rem;
    }
    .fc-card-image img {
        max-height: 250px;
        width: auto;
        max-width: 100%;
    }
}

/* =========================================================
   4) WP POSTS STYLE
   ========================================================= */
.post-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 95%;
    margin: auto;
}
.post {
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 10px;
}
.post-thumbnail {
    height: 0;
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
}
.post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
.post-text {
    margin-top: 10px;
}
.post-text h2 {
    font-size: 15px;
    margin: 0;
}
.post-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #1c1b1b;
    text-align: justify;
    font-size: 0.95em;
}
.post-thumbnail .free-ribbon {
    position: absolute;
    top: 10px;
    padding: 5px;
    background-color: #ff0101;
    color: white;
    font-weight: bold;
    z-index: 1;
    width: 3em;
    text-align: center;
    font-size: 16px;
    animation: blinkingBackground 3s infinite;
}
@keyframes blinkingBackground {
    100% { background-color: #fd0000bf; }
}
.snippet-title {
    font-size: 24px;
    margin: 20px;
    text-align: center;
}
.load-more {
    text-align: center;
    margin: 20px;
}
.load-more-button {
    padding: 10px 20px;
    background: #007bff;
    color: #fff;
    border: none;
    cursor: pointer;
}
.load-more-button:hover {
    background: #0056b3;
}

/* =========================================================
   5) LANDSCAPE COURSE SECTION (3-col, image top)
   ========================================================= */
.fc-landscape-section {
    direction: rtl;
    text-align: right;
    font-family: 'vazir', 'Vazirmatn', Tahoma, sans-serif;
    width: 100%;
    box-sizing: border-box;
}
.fc-landscape-section * {
    box-sizing: border-box;
}
.fc-landscape-section img {
    max-width: 100%;
    height: auto;
}

.fc-landscape-title {
    font-size: 22px;
    font-weight: 700;
    color: #1c1d1f;
    margin: 0 0 24px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8e9eb;
}

/* THE GRID — responsive, no fixed widths */
.fc-landscape-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
}

.fc-landscape-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e8e9eb;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 0;
    width: 100%;
}
.fc-landscape-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: #d1d7dc;
}

.fc-landscape-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #f7f9fa;
    overflow: hidden;
    min-width: 0;
}
.fc-landscape-image a {
    display: block;
    width: 100%;
    height: 100%;
}
.fc-landscape-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-width: 100%;
}

.fc-landscape-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #5624d0;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}
.fc-landscape-discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #e53935;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    rotate: -10deg;
}

.fc-landscape-content {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
    min-width: 0;
}
.fc-landscape-card-title {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 700;
    min-height: 45px;
}
.fc-landscape-card-title a {
    color: #1c1d1f;
    text-decoration: none;
    transition: color 0.2s;
}
.fc-landscape-card-title a:hover {
    color: #5624d0;
}

.fc-landscape-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    font-size: 15px;
    font-weight: 700;
    color: #1c1d1f;
}
.fc-landscape-price del {
    color: #9aa0a6;
    font-size: 13px;
    font-weight: normal;
}
.fc-landscape-price ins {
    text-decoration: none;
    color: #e53935;
}

.fc-landscape-btn-cta {
    display: block;
    text-align: center;
    background-color: #2b2b2b;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: background-color 0.2s;
}
.fc-landscape-btn-cta:hover {
    background-color: #5624d0;
}

/* Responsive — 3 → 2 → 1 */
@media (max-width: 992px) {
    .fc-landscape-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}
@media (max-width: 576px) {
    .fc-landscape-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
    .fc-landscape-card-title {
        min-height: auto;
    }
}

/* =========================================================
   6) WOOCOMMERCE SHOP — MINIMAL, THEME-FRIENDLY
   ========================================================= */

/* Result count + ordering bar */
.woocommerce-result-count,
.woocommerce-ordering {
    direction: rtl;
    float: none;
    display: inline-block;
    margin: 0 0 20px;
}

/* Mobile: stack them */
@media (max-width: 576px) {
    .woocommerce-result-count,
    .woocommerce-ordering {
        display: block;
        width: 100%;
        text-align: right;
        margin: 0 0 12px;
    }
    .woocommerce-ordering select {
        width: 100%;
    }
}

/* Pagination */
.woocommerce-pagination {
    text-align: center;
    margin: 30px 0;
}
.woocommerce-pagination ul {
    list-style: none;
    padding: 0;
    display: inline-flex;
    gap: 6px;
}
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #e8e9eb;
    border-radius: 6px;
    text-decoration: none;
    color: #1c1d1f;
}
.woocommerce-pagination ul li span.current {
    background: #2b2b2b;
    color: #fff;
    border-color: #2b2b2b;
}