/*
 Theme Name: TutorBase Child
 Theme URI: https://castor.academy
 Description: Child theme for TutorBase (Castor Academy)
 Author: Carolina González
 Author URI: https://castor.academy
 Template: tutorbase
 Version: 1.0.0
 Text Domain: tutorbase-child
*/
/* =========================================================
   Droip pagination fix: restore missing Droip element styles
   Target: .workademy_dpv6l37x cards + corner SVG
   ========================================================= */

body .workademy_dpyg62ka { height: 100% !important; }

body a.workademy_dp0xa4q6 {
  text-decoration: none !important;
  font-weight: 400 !important;
  font-style: normal !important;
  height: 100% !important;
  width: 100% !important;
}

body .workademy_dpv6l37x{
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  row-gap: 12px !important;

  width: 100% !important;
  max-width: none !important;
  height: 100% !important;

  justify-content: center !important;

  background-image: none !important;
  background-color: var(--workademy_dpuqozxl, rgba(240,240,252,1)) !important;

  position: relative !important;
  z-index: 1 !important;

  border-radius: 12px !important;
  overflow: visible !important;

  padding: 32px !important;
}

body .workademy_icon-24px{
  width: 32px !important;
  height: 32px !important;
  background-image: none !important;
}

body .workademy_margin-bottom-12px{
  margin: 0 0 12px 0 !important;
}

body .workademy_heading-24px{
  color: var(--workademy_dpyq5sbd, rgba(27,32,40,1)) !important;
  font-family: var(--workademy_dp25orie, Geist) !important;
  font-size: 24px !important;
  font-style: normal !important;
  font-weight: 600 !important;
  line-height: 1.3em !important;
  letter-spacing: -0.6px !important;
  fill: var(--workademy_dpyq5sbd, rgba(27,32,40,1)) !important;
  margin: 0 !important;
}

body .workademy_text-16px-400{
  color: var(--workademy_dpyq5sbd, rgba(27,32,40,1)) !important;
  font-family: var(--workademy_dpktqviy, Geist) !important;
  font-size: 16px !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 1.3em !important;
  fill: var(--workademy_dpyq5sbd, rgba(27,32,40,1)) !important;
  margin: 0 !important;
}

body .workademy_text-16px-400.workademy_paragraph-color{
  color: var(--workademy_dpa5mwmz, rgba(27,32,40,.8)) !important;
  fill: var(--workademy_dpa5mwmz, rgba(27,32,40,.8)) !important;
}

/* Corner “fold” shape (this is the critical part) */
body .workademy_category-shape{
  width: 40px !important;
  height: 40px !important;
  position: absolute !important;

  /* Match Droip: top-right corner */
  inset: 0 0 auto auto !important;

  color: var(--workademy_dp26a86q, #fff) !important;
  fill: var(--workademy_dp26a86q, #fff) !important;

  pointer-events: none !important;
}

/* Responsive rules (match the working Droip styles) */
@media only screen and (max-width: 991px){
  body .workademy_dpv6l37x{ max-width: none !important; }
  body .workademy_heading-24px{ font-size: 22px !important; }
}

@media only screen and (max-width: 767px){
  body .workademy_dpv6l37x{ padding: 24px !important; }
}



/* Pagination base style */
.workademy_droip-pagination-item {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    padding: 4px 12px;
    border: 1px solid #c7c9cb;
    cursor: pointer;
    border-radius: 5px;
    background-color: transparent;
    color: #1b2028;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* ACTIVE page */
.workademy_droip-pagination-item.droip-pagination-item-active {
    background-color: #6867DE !important;   /* your brand color */
    border-color: #6867DE !important;
    color: #ffffff !important;
    font-weight: 600;
}

/* Ensure number inside inherits color */
.workademy_droip-pagination-item.droip-pagination-item-active
.workademy_droip-pagination-number {
    color: #ffffff !important;
}

/* Optional: hover for inactive pages */
.workademy_droip-pagination-item:not(.droip-pagination-item-active):hover {
    background-color: #f0f0fc;
}

/* Pagination item: fixed size */
.workademy_droip-pagination-item {
    width: 36px;            /* ajustable */
    height: 36px;           /* opcional, pero recomendable */
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 0 !important;  /* anulamos padding variable */
    box-sizing: border-box;

    font-size: 16px;
    border: 1px solid #c7c9cb;
    border-radius: 5px;
    cursor: pointer;
}

.tutor-page-permission-denied {
    margin-top: 140px;
    margin-bottom: 64px;
}


/* Castor rating bars (used by [castor_course_review_bar_*]) */
.castor-rating-bar {
	width: 100%;
	height: 10px;
	border-radius: 999px;
	background: #e9edf3;
	overflow: hidden;
	position: relative;
}

.castor-rating-bar__fill {
	display: block;
	height: 100%;
	width: var(--castor-pct, 0%);
	border-radius: inherit;
	background: #8a7dff; /* ajustalo a tu paleta */
}



#tutor_prereq {
    scroll-margin-top: 80px;
}

#tutor_prereq::before {
    content: "";
    display: block;
    height: 80px;
    margin-top: -80px;
    visibility: hidden;
    pointer-events: none;
}

.castor-no-reviews{
  padding:20px;
  color:#666;
  font-style:italic;
}

.castor-reviews-wrapper{
  display:grid;
  grid-template-columns:1fr;
  gap:20px;
  margin:20px 0;
}

@media (min-width: 992px){
  .castor-reviews-wrapper{
    grid-template-columns:1fr 1fr;
  }
}

.review-card{
  padding:25px;
  border:1px solid #eef2f6;
  border-radius:16px;
  background:#fff;
  box-shadow:0 4px 12px rgba(0,0,0,0.03);
  display:flex;
  flex-direction:column;
  height:fit-content;
}

.review-card__header{
  display:flex;
  align-items:center;
  gap:15px;
  margin-bottom:15px;
}

.review-card__avatar{
  width:48px;
  height:48px;
  border-radius:50%;
}

.review-card__author{
  font-weight:700;
  color:#1e293b;
  font-size:16px;
}

.review-card__date{
  font-size:13px;
  color:#94a3b8;
}

.review-card__stars{
  color:#ffb400;
  font-size:18px;
  margin-bottom:10px;
}

.review-card__star--empty{
  color:#e2e8f0;
}

.review-card__content{
  color:#475569;
  font-size:15px;
  line-height:1.7;
}

.review-card__no-text{
  color:#cbd5e1;
}

.castor-feedback-box{
  background:#fff;
  padding:30px;
  border:1px solid var(--tutor-border-color);
  border-radius:6px;
  margin-bottom:40px;
}

.castor-thumb-btn{
  background:#f8fafc;
  border:1px solid var(--tutor-border-color);
  padding:8px 16px;
  border-radius:6px;
  cursor:pointer;
  transition:0.2s;
  margin-right:8px;
}

.castor-thumb-btn.active{
  background:#eef2ff;
  border-color:var(--tutor-color-primary);
}

.castor-thumb-btn.active .dashicons{
  color:var(--tutor-color-primary);
}

.feedback-stars-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
  gap:20px;
}

.castor-star-row{
  display:flex;
  flex-direction:column;
}

.castor-star-label{
  font-size:13px;
  font-weight:600;
  color:#475569;
  margin-bottom:5px;
}

.star-item{
  cursor:pointer;
  color:#cbd5e1;
  font-size:20px;
  width:20px;
  height:20px;
}

.star-item.dashicons-star-filled{
  color:#f59e0b;
}

#castor-feedback-comment{
  resize:vertical;
  border:1px solid var(--tutor-border-color);
}

#feedback-status-msg.success{
  color:#22c55e;
}

.castor-avg-feedback-container{
  background:#f8fafc;
  padding:20px;
  border-radius:8px;
  border:1px solid var(--tutor-border-color);
}

.castor-avg-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(100px, 1fr));
  gap:15px;
}

.castor-avg-item{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}

.castor-avg-label{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:0.5px;
  color:#64748b;
  font-weight:700;
  margin-bottom:4px;
}

.castor-avg-value-row{
  display:flex;
  align-items:center;
  gap:4px;
}

.castor-avg-value-row .dashicons{
  font-size:14px;
  width:14px;
  height:14px;
  color:#f59e0b;
}

.castor-avg-number{
  font-size:15px;
  font-weight:600;
  color:var(--tutor-color-black);
}

.castor-prereq-block-enroll .tutor-btn-enroll,
.castor-prereq-block-enroll .tutor-course-purchase-box .cart,
.castor-prereq-block-enroll .single_add_to_cart_button{
  opacity:.6 !important;
  cursor:not-allowed !important;
  pointer-events:none !important;
}

.tutor-notification-element {
	text-decoration: none !important;
}
