:root{
    --rai-card-radius: 10px;
    --rai-card-border: rgba(0,0,0,.08);
    --rai-card-shadow: 0 6px 22px rgba(0,0,0,.08);
    --rai-card-shadow-hover: 0 14px 35px rgba(0,0,0,.16);
    --rai-accent: #1e73be;
    --rai-text: #1f2933;
    --rai-muted: #64748b;
    --rai-gap: 22px;
}

.rai-carousel,
.rai-grid,
.rai-single-wrap{
    box-sizing: border-box;
    font-family: inherit;
}

.rai-carousel *,
.rai-grid *,
.rai-single-wrap *{
    box-sizing: border-box;
}

.rai-carousel{
    position: relative;
    width: 100%;
    margin: 0 auto;
    --rai-per-view: 4;
}

.rai-carousel-viewport{
    overflow: hidden;
    width: 100%;
    padding: 8px 2px 14px;
}

.rai-carousel-track{
    display: flex;
    gap: var(--rai-gap);
    transition: transform .45s ease;
    will-change: transform;
    direction: rtl;
}

.rai-carousel-slide{
    flex: 0 0 calc((100% - (var(--rai-gap) * (var(--rai-per-view) - 1))) / var(--rai-per-view));
    min-width: 0;
    display: flex;
}

.rai-card{
    width: 100%;
    height: 100%;
    background: #fff;
    border: 1px solid var(--rai-card-border);
    border-radius: var(--rai-card-radius);
    overflow: hidden;
    box-shadow: var(--rai-card-shadow);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.rai-card:hover{
    transform: translateY(-5px);
    box-shadow: var(--rai-card-shadow-hover);
    border-color: rgba(0,0,0,.12);
}

.rai-card-link{
    color: inherit;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.rai-card-link:hover,
.rai-card-link:focus{
    color: inherit;
    text-decoration: none !important;
}

.rai-card-image-wrap{
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f4f6f8;
}

.rai-card-image{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s ease, filter .45s ease;
}

.rai-card:hover .rai-card-image{
    transform: scale(1.06);
    filter: saturate(1.05);
}

.rai-card-placeholder{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    font-weight: 800;
    color: #94a3b8;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.rai-card-body{
    padding: 14px 16px 16px;
    text-align: center;
    min-height: 92px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rai-card-title{
    margin: 0 0 7px;
    font-size: 17px;
    line-height: 1.55;
    color: var(--rai-text);
    font-weight: 700;
}

.rai-card-subtitle{
    color: var(--rai-muted);
    font-size: 13.5px;
    line-height: 1.75;
    min-height: 24px;
}

.rai-carousel-arrow{
    position: absolute;
    top: 44%;
    transform: translateY(-50%);
    z-index: 3;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.08);
    background: #fff;
    color: #1f2933;
    box-shadow: 0 8px 20px rgba(0,0,0,.14);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    line-height: 1;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
    padding: 0;
}

.rai-carousel-arrow:hover{
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 12px 26px rgba(0,0,0,.18);
}

.rai-carousel-prev{
    right: -15px;
}

.rai-carousel-next{
    left: -15px;
}

.rai-carousel-dots{
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.rai-carousel-dot{
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: 0;
    background: #cbd5e1;
    cursor: pointer;
    padding: 0;
    transition: width .2s ease, background-color .2s ease;
}

.rai-carousel-dot.is-active{
    width: 22px;
    background: var(--rai-accent);
}

.rai-all-button-wrap{
    text-align: center;
    margin-top: 20px;
}

.rai-all-button{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 24px;
    border-radius: 999px;
    background: var(--rai-accent);
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
    box-shadow: 0 9px 22px rgba(30,115,190,.22);
}

.rai-all-button:hover{
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(30,115,190,.28);
    opacity: .96;
}

.rai-grid{
    display: grid;
    grid-template-columns: repeat(var(--rai-grid-columns, 4), minmax(0, 1fr));
    gap: var(--rai-gap);
    width: 100%;
}

.rai-empty{
    padding: 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    color: var(--rai-muted);
    text-align: center;
    background: #f8fafc;
}

.rai-single-wrap{
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px 18px 60px;
    direction: rtl;
}

.rai-single-hero{
    display: grid;
    grid-template-columns: minmax(280px, 360px) 1fr;
    gap: 34px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--rai-card-border);
    border-radius: 22px;
    box-shadow: var(--rai-card-shadow);
    padding: 26px;
    margin-bottom: 32px;
}

.rai-single-image-wrap{
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 18px;
    overflow: hidden;
    background: #f4f6f8;
}

.rai-single-image-wrap img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rai-single-content h1{
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.35;
    color: var(--rai-text);
}

.rai-single-short-title{
    color: var(--rai-accent);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.8;
    margin-bottom: 12px;
}

.rai-single-card-description{
    color: var(--rai-muted);
    font-size: 15px;
    line-height: 2;
    margin-bottom: 18px;
}

.rai-single-socials{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.rai-single-socials a,
.rai-single-socials span{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 4px 12px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    text-decoration: none !important;
    font-size: 13px;
}

.rai-single-section{
    background: #fff;
    border: 1px solid var(--rai-card-border);
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(0,0,0,.045);
    padding: 24px;
    margin-bottom: 22px;
}

.rai-single-section h2{
    margin: 0 0 16px;
    font-size: 22px;
    color: var(--rai-text);
}

.rai-single-section .entry-content,
.rai-single-section p{
    line-height: 2;
}

.rai-badges{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rai-badge{
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 4px 12px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 13.5px;
    line-height: 1.6;
}

.rai-list{
    margin: 0;
    padding: 0 20px 0 0;
    line-height: 2;
}

@media (max-width: 1024px){
    .rai-carousel{--rai-per-view: 2;}
    .rai-grid{grid-template-columns: repeat(2, minmax(0, 1fr));}
    .rai-single-hero{grid-template-columns: 280px 1fr;}
}

@media (max-width: 640px){
    :root{--rai-gap: 16px;}
    .rai-carousel{--rai-per-view: 1;}
    .rai-carousel-arrow{width: 38px;height: 38px;font-size: 24px;}
    .rai-carousel-prev{right: 6px;}
    .rai-carousel-next{left: 6px;}
    .rai-grid{grid-template-columns: 1fr;}
    .rai-card-body{min-height: 86px;}
    .rai-single-wrap{padding: 26px 14px 44px;}
    .rai-single-hero{grid-template-columns: 1fr;padding: 18px;gap: 22px;}
    .rai-single-section{padding: 18px;}
}

/* v1.0.2 refinements */
.rai-carousel,
.rai-carousel-viewport,
.rai-carousel-track,
.rai-grid,
.rai-all-button-wrap{
    background: transparent !important;
}

.rai-card-image-link,
.rai-card-title a{
    color: inherit;
    text-decoration: none !important;
}

.rai-card-image-link{
    display: block;
}

.rai-card-title a:hover,
.rai-card-title a:focus{
    color: inherit;
    text-decoration: none !important;
}

.rai-card .rai-specialty-badges{
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}

.rai-card .rai-specialty-link{
    min-height: 28px;
    padding: 3px 9px;
    font-size: 12px;
    background: #f1f5f9;
}

.rai-badge.rai-specialty-link{
    text-decoration: none !important;
    transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.rai-badge.rai-specialty-link:hover,
.rai-badge.rai-specialty-link:focus{
    transform: translateY(-1px);
    background: var(--rai-accent);
    color: #fff !important;
    text-decoration: none !important;
}

.rai-archive-heading h1{
    margin: 0;
    font-size: clamp(26px, 4vw, 38px);
    color: var(--rai-text);
}

.rai-archive-description{
    margin-top: 10px;
    color: var(--rai-muted);
    line-height: 2;
}

/* Darsineh course integration */
.rai-course-grid,
.rai-course-instructor-box{
    box-sizing: border-box;
    font-family: inherit;
}

.rai-course-grid *,
.rai-course-instructor-box *{
    box-sizing: border-box;
}

.rai-course-grid{
    display: grid;
    grid-template-columns: repeat(var(--rai-course-grid-columns, 3), minmax(0, 1fr));
    gap: var(--rai-gap);
    width: 100%;
    background: transparent;
}

.rai-course-card{
    width: 100%;
    height: 100%;
    background: #fff;
    border: 1px solid var(--rai-card-border);
    border-radius: var(--rai-card-radius);
    overflow: hidden;
    box-shadow: var(--rai-card-shadow);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    display: flex;
    flex-direction: column;
}

.rai-course-card:hover{
    transform: translateY(-5px);
    box-shadow: var(--rai-card-shadow-hover);
    border-color: rgba(0,0,0,.12);
}

.rai-course-image-link,
.rai-course-title a{
    text-decoration: none !important;
    color: inherit;
}

.rai-course-image-wrap{
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f4f6f8;
}

.rai-course-image{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s ease, filter .45s ease;
}

.rai-course-card:hover .rai-course-image{
    transform: scale(1.05);
    filter: saturate(1.05);
}

.rai-course-placeholder{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 54px;
    font-weight: 800;
    color: #94a3b8;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.rai-course-body{
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.rai-course-title{
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--rai-text);
    font-weight: 800;
}

.rai-course-excerpt{
    color: var(--rai-muted);
    font-size: 13.5px;
    line-height: 1.9;
}

.rai-course-price{
    color: var(--rai-accent);
    font-weight: 800;
    margin-top: auto;
}

.rai-course-button{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--rai-accent);
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 13.5px;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.rai-course-button:hover{
    transform: translateY(-1px);
    box-shadow: 0 9px 22px rgba(30,115,190,.22);
    opacity: .96;
}

.rai-course-instructor-box{
    display: flex;
    gap: 16px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--rai-card-border);
    border-radius: 18px;
    box-shadow: var(--rai-card-shadow);
    padding: 16px;
    margin: 18px 0;
}

.rai-course-instructor-image{
    width: 88px;
    height: 88px;
    border-radius: 16px;
    overflow: hidden;
    background: #f4f6f8;
    flex: 0 0 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: #94a3b8;
    font-size: 34px;
    font-weight: 800;
}

.rai-course-instructor-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rai-course-instructor-content{
    min-width: 0;
}

.rai-course-instructor-label{
    color: var(--rai-muted);
    font-size: 12.5px;
    margin-bottom: 3px;
}

.rai-course-instructor-content h3{
    margin: 0 0 4px;
    font-size: 18px;
    line-height: 1.5;
}

.rai-course-instructor-content h3 a{
    color: var(--rai-text);
    text-decoration: none !important;
}

.rai-course-instructor-subtitle{
    color: var(--rai-accent);
    font-size: 13.5px;
    margin-bottom: 8px;
}

@media (max-width: 1024px){
    .rai-course-grid{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px){
    .rai-course-grid{
        grid-template-columns: 1fr;
    }
    .rai-course-instructor-box{
        align-items: flex-start;
    }
    .rai-course-instructor-image{
        width: 72px;
        height: 72px;
        flex-basis: 72px;
    }
}

/* Raga Academy Course Product Template */

body.single-product #main,
body.single-product .shop-container,
body.single-product .product-container,
body.single-product .product-page-wrapper,
body.single-product .product-main,
.raga-academy-product-template,
.raga-course-shell,
.raga-course-layout,
.raga-course-sidebar-wrap {
  overflow: visible !important;
}

.raga-academy-product-template,
.raga-academy-course-page,
.raga-academy-course-page * {
  box-sizing: border-box;
  direction: rtl;
}

.raga-academy-course-page {
  background: #f2f2f2;
  padding: 26px 0 56px;
  color: #1f2933;
}

.raga-course-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.raga-course-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: start;
  overflow: visible;
}

.raga-course-main,
.raga-course-content-main {
  min-width: 0;
  overflow: visible;
}

.raga-course-header-card,
.raga-course-section,
.raga-course-sidebox,
.raga-course-sticky-nav,
.raga-course-media-card {
  background: #fff;
  border: 1px solid #e6e8eb;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,.045);
}

.raga-course-header-card {
  padding: 8px 18px;
  margin-bottom: 14px;
  text-align: center;
}

.raga-course-page-title {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.55;
  margin: 0;
  color: #031d3f;
  font-weight: 800;
}

.raga-course-media-card {
  overflow: hidden;
  min-height: 180px;
  position: relative;
}

.raga-course-media-card iframe,
.raga-course-video,
.raga-course-intro-image {
  display: block;
  width: 100%;
  border: 0;
}

.raga-course-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #0b1220;
}

.raga-course-video-frame iframe {
  position: absolute;
  inset: 0;
  height: 100%;
}

.raga-course-video {
  aspect-ratio: 16 / 9;
  background: #0b1220;
}

.raga-course-intro-image {
  height: auto;
}

.raga-course-media-caption {
  position: absolute;
  right: 22px;
  bottom: 22px;
  background: rgba(0,0,0,.58);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 800;
  font-size: clamp(18px, 2.5vw, 28px);
}

.raga-course-media-empty {
  min-height: 280px;
  display: grid;
  place-items: center;
  color: #6b7280;
  padding: 24px;
}

.raga-course-sidebar-wrap {
  position: relative;
  align-self: stretch;
  overflow: visible;
}

.raga-course-sidebar {
  position: sticky;
  top: var(--raga-course-sticky-top, 100px);
  z-index: 20;
}

.raga-course-sidebox {
  padding: 18px;
  margin-bottom: 12px;
}

.raga-course-sidebox h3 {
  margin: 0 0 14px;
  font-size: 18px;
  color: #003b7a;
}

.raga-course-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.raga-course-sidebar-list li {
  padding: 9px 0;
  border-bottom: 1px dashed #e5e7eb;
  line-height: 1.8;
}

.raga-course-sidebar-list li:last-child {
  border-bottom: 0;
}

.raga-price-box .raga-course-price,
.raga-course-price {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 12px;
}

.raga-price-box .cart,
.raga-price-box form.cart {
  margin: 0;
}

.raga-price-box .single_add_to_cart_button,
.raga-price-box button.single_add_to_cart_button {
  width: 100%;
  border-radius: 10px;
  min-height: 44px;
  background: #003b7a;
}

.raga-course-consult-button {
  display: block;
  width: 100%;
  text-align: center;
  background: #003b7a;
  color: #fff !important;
  border-radius: 11px;
  padding: 12px 14px;
  margin: 0 0 12px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,59,122,.18);
}

.raga-course-consult-button:hover {
  filter: brightness(.95);
}

.raga-course-sticky-nav {
  position: sticky;
  top: var(--raga-course-sticky-top, 100px);
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
  gap: 10px;
  padding: 10px;
  margin: 16px 0 18px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
}

.raga-course-sticky-nav a {
  display: block;
  text-align: center;
  background: #f4f6f8;
  color: #26323f;
  border-radius: 9px;
  padding: 11px 10px;
  text-decoration: none;
  font-weight: 700;
  transition: all .18s ease;
}

.raga-course-sticky-nav a:hover {
  background: #003b7a;
  color: #fff;
}

.raga-course-content-layout {
  max-width: none;
  margin: 0;
}

.raga-course-section {
  padding: 24px;
  margin-bottom: 18px;
  scroll-margin-top: calc(var(--raga-course-sticky-top, 100px) + 72px);
}

.raga-course-section h2 {
  color: #003b7a;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.55;
  margin: 0 0 16px;
}

.raga-course-section-subtitle {
  text-align: center;
  margin-top: -10px;
  color: #6b7280;
  font-weight: 700;
}

.raga-course-lead {
  font-size: 17px;
  line-height: 2;
  color: #26323f;
}

.raga-course-description {
  line-height: 2;
}

.raga-course-lists {
  display: grid;
  gap: 18px;
  background: transparent;
  box-shadow: none;
  border: 0;
  padding: 0;
}

.raga-course-list-card {
  background: #fff;
  border: 1px solid #e6e8eb;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 4px 16px rgba(0,0,0,.045);
}

.raga-course-clean-list {
  margin: 0;
  padding: 0 20px 0 0;
  line-height: 2;
}

.raga-course-clean-list li {
  margin-bottom: 8px;
}

.raga-course-spec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.raga-course-spec-card {
  background: #fff;
  border: 1px solid #eceff2;
  border-radius: 13px;
  padding: 18px 12px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.045);
  min-height: 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.raga-course-spec-icon {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: #eef5ff;
  color: #003b7a;
  font-weight: 900;
  font-size: 22px;
}

.raga-course-spec-card strong {
  color: #111827;
}

.raga-course-spec-card span:last-child {
  color: #4b5563;
  line-height: 1.8;
}

.raga-course-faq-list {
  display: grid;
  gap: 10px;
}

.raga-course-faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.raga-course-faq-item summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 800;
  color: #26323f;
  list-style: none;
}

.raga-course-faq-item summary::-webkit-details-marker {
  display: none;
}

.raga-course-faq-item summary:after {
  content: '⌄';
  float: left;
  color: #003b7a;
}

.raga-course-faq-item[open] summary:after {
  content: '⌃';
}

.raga-course-faq-item div {
  padding: 0 16px 16px;
  line-height: 2;
  color: #4b5563;
}

.raga-course-reviews .woocommerce-Reviews-title,
.raga-course-related .related > h2 {
  display: none;
}

html {
  scroll-behavior: smooth;
}

@media (max-width: 992px) {
  .raga-course-layout {
    grid-template-columns: 1fr;
  }
  .raga-course-sidebar {
    position: static;
  }
  .raga-course-content-layout {
    max-width: none;
  }
  .raga-course-spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .raga-academy-course-page {
    padding: 22px 0 42px;
  }
  .raga-course-shell {
    width: min(100% - 20px, 1180px);
  }
  .raga-course-sticky-nav {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }
  .raga-course-section,
  .raga-course-list-card,
  .raga-course-sidebox {
    padding: 18px;
  }
  .raga-course-spec-grid {
    grid-template-columns: 1fr;
  }
  .raga-course-media-caption {
    right: 12px;
    bottom: 12px;
    left: 12px;
    text-align: center;
  }
}

/* Raga Academy Course Product Template - v2.0.4 refinements */
.raga-course-mobile-sidebar{
  display:none;
}

.raga-course-sidebar{
  max-height: none;
  overflow: visible;
  padding-left: 0;
}

.raga-course-sidebar .raga-course-sidebox{
  padding: 14px 16px;
  margin-bottom: 10px;
}

.raga-course-sidebar .raga-course-sidebox h3{
  font-size: 17px;
  margin-bottom: 10px;
}

.raga-course-sidebar-list li{
  padding: 7px 0;
  line-height: 1.65;
  font-size: 14px;
}

.raga-course-sidebar-dual{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items:center;
}

.raga-course-sidebar-dual span{
  display:block;
  white-space: normal;
}

.raga-course-spec-access{
  margin-top: 14px;
  padding: 16px 18px;
  background: #f8fafc;
  border: 1px solid #e6e8eb;
  border-radius: 12px;
}

.raga-course-spec-access h3{
  margin: 0 0 8px;
  color:#003b7a;
  font-size: 18px;
}

.raga-course-spec-access p{
  margin: 0;
  line-height: 1.9;
}

.raga-course-access-more{
  display:inline;
  color:#006fc9 !important;
  font-size:.9em;
  font-weight:600;
  text-decoration:none;
}

.raga-course-access-more:hover{
  color:#003b7a !important;
  text-decoration:underline;
}

.raga-price-box .raga-course-price,
.raga-course-price{
  text-align:center;
  margin-bottom:10px;
}

.raga-price-box .quantity{
  margin-bottom: 8px;
}

.raga-course-consult-button{
  margin-bottom: 10px;
}

.raga-course-spec-table{
  display:grid;
  gap:7px;
  background:#fff;
  border:1px solid #d9e0e8;
  border-radius:14px;
  padding:12px;
}

.raga-course-spec-row{
  display:grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap:7px;
  align-items:stretch;
}

.raga-course-spec-label,
.raga-course-spec-value{
  background:#f0ebeb;
  border-radius:10px;
  padding:13px 16px;
  line-height:1.85;
}

.raga-course-spec-label{
  font-weight:800;
  color:#111827;
  display:flex;
  align-items:center;
}

.raga-course-spec-value{
  color:#26323f;
}

.raga-course-spec-value .amount,
.raga-course-spec-value bdi{
  font-weight:800;
}

@media (min-width: 993px){
  .raga-course-sidebar-wrap{
    min-width:0;
  }
  .raga-course-sidebar{
    padding-bottom: 0;
  }
}

@media (max-width: 992px){
  .raga-course-desktop-sidebar{
    display:none !important;
  }
  .raga-course-mobile-sidebar{
    display:block;
    margin: 12px 0 14px;
  }
  .raga-course-mobile-sidebar .raga-course-sidebar{
    position:static;
    max-height:none;
    overflow:visible;
    padding-left:0;
  }
}

@media (max-width: 640px){
  .raga-academy-course-page{
    background:#eef4fb;
    padding-top:16px;
  }
  .raga-course-shell{
    width:min(100% - 16px, 430px);
  }
  .raga-course-layout{
    gap:0;
  }
  .raga-course-header-card{
    padding: 11px 12px;
    margin-bottom:12px;
    border-radius:13px;
  }
  .raga-course-page-title{
    font-size:24px;
    line-height:1.35;
  }
  .raga-course-media-card{
    border-radius:12px;
    margin-bottom:12px;
  }
  .raga-course-mobile-sidebar .raga-course-sidebox{
    padding:14px;
    margin-bottom:10px;
    border-radius:14px;
    text-align:center;
  }
  .raga-course-mobile-sidebar .raga-course-sidebox h3{
    text-align:center;
    font-size:20px;
    margin-bottom:12px;
  }
  .raga-course-mobile-sidebar .raga-course-sidebar-list li{
    text-align:center;
    font-size:15px;
    border-bottom:0;
    padding:6px 0;
  }
  .raga-course-mobile-sidebar .raga-price-box{
    padding:18px 14px;
  }
  .raga-course-mobile-sidebar .raga-course-price{
    font-size:22px;
  }
  .raga-course-mobile-sidebar .single_add_to_cart_button,
  .raga-course-mobile-sidebar button.single_add_to_cart_button,
  .raga-course-mobile-sidebar .raga-course-consult-button{
    min-height:46px;
    border-radius:11px;
    font-size:16px;
  }
  .raga-course-sticky-nav{
    position:sticky;
    top:0;
    z-index:55;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:10px;
    padding:10px;
    margin:12px 0 14px;
    border-radius:14px;
  }
  .raga-course-sticky-nav a{
    min-height:50px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:10px 8px;
    font-size:15px;
    line-height:1.55;
    border-radius:10px;
  }
  .raga-course-section,
  .raga-course-list-card{
    border-radius:14px;
    padding:20px 18px;
    margin-bottom:14px;
    text-align:center;
  }
  .raga-course-section h2,
  .raga-course-list-card h2{
    text-align:center;
    font-size:23px;
    line-height:1.45;
  }
  .raga-course-clean-list{
    display:inline-block;
    text-align:right;
    padding-right:18px;
  }
  .raga-course-spec-table{
    gap:9px;
    padding:12px;
    border-radius:13px;
  }
  .raga-course-spec-row{
    grid-template-columns: 1fr;
    gap:4px;
    background:#f0ebeb;
    border-radius:12px;
    padding:10px;
  }
  .raga-course-spec-label,
  .raga-course-spec-value{
    background:transparent;
    border-radius:0;
    padding:2px 4px;
    justify-content:center;
    text-align:center;
  }
  .raga-course-spec-label{
    color:#111827;
    font-size:15px;
  }
  .raga-course-spec-value{
    font-size:15px;
  }
}


/* v2.0.7 - instructor shortcode background fix
   The shortcode itself is transparent, but the parent UX Builder/Flatsome section keeps
   the background chosen by the page designer. Cards intentionally keep their white background. */
.rai-shortcode-scope,
.rai-carousel.rai-shortcode-scope,
.rai-grid.rai-shortcode-scope,
.rai-all-button-wrap.rai-shortcode-scope,
.rai-carousel-viewport,
.rai-carousel-track {
    background: transparent !important;
    background-color: transparent !important;
}

.rai-shortcode-scope::before,
.rai-shortcode-scope::after,
.rai-carousel-viewport::before,
.rai-carousel-viewport::after,
.rai-carousel-track::before,
.rai-carousel-track::after {
    background: transparent !important;
    background-color: transparent !important;
}

/* v2.1.2 - Global Raga styling for Flatsome/WooCommerce product cards.
   Applies card styling to UX Builder product shortcodes AND WooCommerce shop/archive cards,
   without touching the background of the section/row/column and without overriding the single-product layout. */
body:not(.single-product) .product-small,
body:not(.single-product) .product-small *{
    box-sizing: border-box;
}

body:not(.single-product) .product-small{
    margin-bottom: 22px;
}

body:not(.single-product) .product-small > .col-inner,
body:not(.single-product) .product-small .box{
    height: 100%;
}

body:not(.single-product) .product-small .box{
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: var(--rai-card-radius, 14px);
    overflow: hidden;
    box-shadow: var(--rai-card-shadow, 0 6px 22px rgba(0,0,0,.08));
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

body:not(.single-product) .product-small .box:hover{
    transform: translateY(-5px);
    box-shadow: var(--rai-card-shadow-hover, 0 14px 35px rgba(0,0,0,.16));
    border-color: rgba(0,0,0,.12);
}

body:not(.single-product) .product-small .box-image{
    background: #f4f6f8;
    border-radius: var(--rai-card-radius, 14px) var(--rai-card-radius, 14px) 0 0;
    overflow: hidden;
}

body:not(.single-product) .product-small .box-image a,
body:not(.single-product) .product-small .box-image .image-cover,
body:not(.single-product) .product-small .box-image .image-zoom{
    display: block;
    width: 100%;
}

body:not(.single-product) .product-small .box-image img{
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    min-height: 210px;
    object-fit: cover;
    display: block;
    transition: transform .45s ease, filter .45s ease;
}

body:not(.single-product) .product-small .box:hover .box-image img{
    transform: scale(1.06);
    filter: saturate(1.05);
}

body:not(.single-product) .product-small .box-text,
body:not(.single-product) .product-small .box-text-products{
    background: #fff;
    padding: 14px 16px 16px;
    text-align: center;
    min-height: 102px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body:not(.single-product) .product-small .title-wrapper,
body:not(.single-product) .product-small .price-wrapper,
body:not(.single-product) .product-small .category,
body:not(.single-product) .product-small .name{
    text-align: center;
}

body:not(.single-product) .product-small .product-title,
body:not(.single-product) .product-small .name{
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.65;
    color: var(--rai-text, #1f2933);
    font-weight: 700;
}

body:not(.single-product) .product-small .product-title a,
body:not(.single-product) .product-small .name a{
    color: var(--rai-text, #1f2933) !important;
    text-decoration: none !important;
}

body:not(.single-product) .product-small .category,
body:not(.single-product) .product-small .is-small,
body:not(.single-product) .product-small .woocommerce-loop-category__title{
    color: var(--rai-muted, #64748b);
    font-size: 12.5px;
    line-height: 1.7;
}

body:not(.single-product) .product-small .price,
body:not(.single-product) .product-small .amount{
    color: #111827;
    font-weight: 800;
    font-size: 14.5px;
    line-height: 1.7;
}

body:not(.single-product) .product-small .badge-container{
    right: 10px;
    left: auto;
    top: 10px;
}

body:not(.single-product) .product-small .add-to-cart-button,
body:not(.single-product) .product-small .quick-view,
body:not(.single-product) .product-small .button{
    border-radius: 10px;
}

@media (max-width: 768px){
    body:not(.single-product) .product-small .box-image img{
        min-height: 190px;
    }
    body:not(.single-product) .product-small .box-text,
    body:not(.single-product) .product-small .box-text-products{
        min-height: 96px;
        padding: 13px 14px 15px;
    }
}


/* v2.0.9 - Mobile course content alignment
   Course content cards on mobile should read like Persian content blocks, not centered promo cards.
   Keep nav buttons, media captions, price/action boxes and instructor/product cards visually centered where needed. */
@media (max-width: 640px){
  .raga-course-section,
  .raga-course-list-card,
  .raga-course-section .raga-course-description,
  .raga-course-section .raga-course-lead,
  .raga-course-section p,
  .raga-course-list-card p,
  .raga-course-faq-item summary,
  .raga-course-faq-item div,
  .raga-course-reviews,
  .raga-course-related {
    text-align: right !important;
  }

  .raga-course-section h2,
  .raga-course-list-card h2,
  .raga-course-spec-access h3 {
    text-align: right !important;
  }

  .raga-course-clean-list {
    display: block;
    width: 100%;
    text-align: right !important;
    padding-right: 22px;
    padding-left: 0;
    margin-right: 0;
    margin-left: 0;
  }

  .raga-course-clean-list li {
    text-align: right !important;
  }

  .raga-course-faq-item summary:after {
    float: left;
  }

  .raga-course-spec-access {
    text-align: right !important;
  }

  .raga-course-spec-access p {
    text-align: right !important;
  }

  .raga-course-spec-label,
  .raga-course-spec-value {
    justify-content: flex-start;
    text-align: right !important;
  }
}


/* v2.0.10 - unified 10px radius for Raga Academy frontend UI
   Keep this scoped to plugin outputs and Flatsome product cards styled by this plugin. */
:root{
    --rai-card-radius: 10px;
}

[class^="rai-"],
[class*=" rai-"],
[class^="raga-course"],
[class*=" raga-course"]{
    border-radius: 10px !important;
}

[class^="rai-"] button,
[class*=" rai-"] button,
[class^="raga-course"] button,
[class*=" raga-course"] button,
[class^="rai-"] .button,
[class*=" rai-"] .button,
[class^="raga-course"] .button,
[class*=" raga-course"] .button,
[class^="rai-"] a.button,
[class*=" rai-"] a.button,
[class^="raga-course"] a.button,
[class*=" raga-course"] a.button{
    border-radius: 10px !important;
}

body:not(.single-product) .product-small .box,
body:not(.single-product) .product-small .box-image,
body:not(.single-product) .product-small .box-image img,
body:not(.single-product) .product-small .box-text,
body:not(.single-product) .product-small .box-text-products,
body:not(.single-product) .product-small .button,
body:not(.single-product) .product-small a.button{
    border-radius: 10px !important;
}

/* v2.0.16 - linked instructor names use the same blue as access-more link */
.raga-academy-course-page .raga-course-instructor-link {
  color: #006fc9 !important;
  font-weight: inherit;
  text-decoration: none;
}
.raga-academy-course-page .raga-course-instructor-link:hover {
  color: #003b7a !important;
  text-decoration: underline;
}

/* v2.1.0 - richer Raga Academy course cards inside Flatsome ux_products */
body:not(.single-product) .product-small .price-wrapper,
body:not(.single-product) .product-small .price,
body:not(.single-product) .product-small .amount,
body:not(.single-product) .product-small .star-rating,
body:not(.single-product) .product-small .review-rating,
body:not(.single-product) .product-small .woocommerce-product-rating{
    display: none !important;
}

body:not(.single-product) .product-small .box-text,
body:not(.single-product) .product-small .box-text-products{
    min-height: 230px;
    justify-content: flex-start;
    gap: 8px;
}

.raga-product-card-meta{
    display: grid;
    gap: 7px;
    margin: 8px 0 10px;
    text-align: right;
    font-size: 12.8px;
    line-height: 1.8;
    color: #334155;
}

.raga-product-card-meta-row{
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 7px;
    align-items: start;
    padding: 6px 8px;
    background: #f6f8fb;
    border: 1px solid #eef2f7;
    border-radius: 10px;
}

.raga-product-card-meta-label{
    font-weight: 800;
    color: #003b7a;
    white-space: nowrap;
}

.raga-product-card-meta-value{
    color: #1f2933;
}

.raga-product-card-cta-wrap{
    margin-top: auto;
    padding-top: 6px;
}

.raga-product-card-cta{
    display: block;
    width: 100%;
    text-align: center;
    background: #003b7a;
    color: #fff !important;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13.5px;
    font-weight: 800;
    line-height: 1.6;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(0,59,122,.16);
    transition: filter .18s ease, transform .18s ease;
}

.raga-product-card-cta:hover,
.raga-product-card-cta:focus{
    filter: brightness(.95);
    transform: translateY(-1px);
    color: #fff !important;
}

@media (max-width: 768px){
    body:not(.single-product) .product-small .box-text,
    body:not(.single-product) .product-small .box-text-products{
        min-height: 210px;
    }
    .raga-product-card-meta{
        font-size: 12.4px;
    }
    .raga-product-card-meta-row{
        grid-template-columns: 72px minmax(0, 1fr);
    }
}

/* v2.1.2 - move course-card meta/CTA inside Flatsome/WooCommerce product cards, including shop page */
body:not(.single-product) .product-small.raga-enhanced-product-card .box-text,
body:not(.single-product) .product-small.raga-enhanced-product-card .box-text-products{
    display: flex;
    flex-direction: column;
}

.raga-product-card-inject{
    margin-top: 10px;
}

body:not(.single-product) .product-small.raga-enhanced-product-card .raga-product-card-cta-wrap{
    margin-top: auto;
}
