/*
 Theme Name:   Customizr Audio Courses RTL Polished
 Template:     customizr
 Description:  RTL child theme for audio courses with responsive grid and visual polish
 Version:      1.3
*/

body {
  direction: rtl;
  text-align: right;
  font-family: 'Assistant', sans-serif;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  direction: rtl;
  padding: 20px;
}

.course-card {
  text-decoration: none;
  color: inherit;
  border: 1px solid #ccc;
  padding: 12px;
  text-align: center;
  display: block;
  border-radius: 10px;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  background-color: #fff;
}

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

.course-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.course-card h3 {
  font-weight: 600;
  margin-top: 12px;
  font-size: 18px;
}
.related-posts,
.tc-related-posts,
.llms-related,
section[id*="related"] {
  display: none !important;
}
.related-posts_nav,
.related-posts,
div[class*="related"],
section[class*="related"],
aside[class*="related"] {
  display: none !important;
}

.llms-favorite {
    display: none !important;
}

.enroll-badge {
  margin-top: 10px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 5px;
  padding: 4px 8px;
  display: inline-block;
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.course-card {
    position: relative;
    display: block;
    overflow: hidden;
}

.price-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent background */
    color: white;
    padding: 5px 10px;
    font-size: 16px;
    border-radius: 5px;
    font-weight: bold;
}

/* Tooltip container */
.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
}

/* Tooltip text */
.tooltip .tooltiptext {
  visibility: visible;
  width: 120px;
  background-color: #00000066;
  color: #fff;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;
	top: 23px;
	left: 20px;	
 
  /* Position the tooltip text - see examples below! */
  position: absolute;
  z-index: 1;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
  visibility: visible;
}