/*
 * dynamic-content.css
 * Version: 11.0.0 (PROJECT COMPLETE)
 * Final version with grid alignment for tags and multiline language display.
 */

/*
 * ============================================================================
 * Course Pages Enhancement (for single-course, taxonomy-course_category)
 * ============================================================================
 */

.course-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1e40af 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.course-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

.course-feature-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(10, 45, 87, 0.08);
    border: 1px solid rgba(10, 45, 87, 0.1);
    transition: all 0.3s ease;
}

.course-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(10, 45, 87, 0.15);
    border-color: var(--primary-blue);
}

.course-item-card {
    background: linear-gradient(145deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.course-item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-blue), var(--secondary-blue));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.course-item-card:hover {
    background: white;
    border-color: var(--primary-blue);
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(10, 45, 87, 0.1);
}

.course-item-card:hover::before {
    opacity: 1;
}

.course-sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar-highlight-card {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1e40af 100%);
    color: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(10, 45, 87, 0.3);
}

.sidebar-highlight-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.sidebar-cta-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.sidebar-cta-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 15px 35px rgba(10, 45, 87, 0.15);
}

.sidebar-info-card {
    background: linear-gradient(145deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}

.course-cta-button {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1e40af 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(10, 45, 87, 0.3);
}

.course-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10, 45, 87, 0.4);
    color: white;
    text-decoration: none;
}

.feature-list { list-style: none; padding: 0; }
.feature-list li { display: flex; align-items: flex-start; margin-bottom: 1rem; padding: 0.75rem; border-radius: 8px; transition: background-color 0.3s ease; }
.feature-list li:hover { background-color: rgba(10, 45, 87, 0.05); }
.feature-list li i { margin-right: 1rem; margin-top: 0.25rem; font-size: 1.1rem; color: var(--primary-blue); flex-shrink: 0; }

.course-breadcrumb {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}
.course-breadcrumb a { color: var(--primary-blue); text-decoration: none; font-weight: 500; transition: color 0.3s ease; }
.course-breadcrumb a:hover { color: #1e40af; }

.back-to-courses {
    background: white;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    border-radius: 50px;
    padding: 0.75rem 2rem;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(10, 45, 87, 0.1);
}
.back-to-courses:hover { background: var(--primary-blue); color: white; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(10, 45, 87, 0.2); text-decoration: none; }
.back-to-courses i { margin-right: 0.5rem; transition: transform 0.3s ease; }
.back-to-courses:hover i { transform: translateX(-3px); }

.course-info-grid { display: grid; gap: 1rem; }
.course-info-item { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid #e5e7eb; }
.course-info-item:last-child { border-bottom: none; }
.course-info-label { color: #6b7280; font-size: 0.875rem; }
.course-info-value { font-weight: 600; color: #1f2937; }

.course-page-bg {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
}

@media (max-width: 1024px) {
    .course-sidebar { position: static; margin-top: 3rem; }
}
@media (max-width: 768px) {
    .course-feature-card, .sidebar-highlight-card, .sidebar-cta-card { padding: 1.5rem; }
    .course-item-card { padding: 1rem; }
}

/*
 * ============================================================================
 * DELF/DALF Age Group 3-Column Layout Styles
 * ============================================================================
 */

/* Information boxes for key DELF info */
.info-box {
    background: linear-gradient(145deg, #f9fafb 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.info-box:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 8px 20px rgba(10, 45, 87, 0.1);
    transform: translateY(-2px);
}

/* Level guide items in sidebar */
/* Level guide styling for detailed course pages */
.level-guide-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cefr-section {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.cefr-header {
    padding: 0.75rem 1rem;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.cefr-header.beginner-line {
    background: linear-gradient(to right, #10b981, #059669);
}

.cefr-header.elementary-line {
    background: linear-gradient(to right, #3b82f6, #2563eb);
}

.cefr-header.intermediate-line {
    background: linear-gradient(to right, #f97316, #ea580c);
}

.cefr-header.advanced-line {
    background: linear-gradient(to right, #ef4444, #dc2626);
}

.cefr-label {
    font-weight: bold;
    font-size: 1.125rem;
}

.line-info {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* Level items within the detailed guide */
.level-guide-container .level-item {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
}

.level-guide-container .level-item:last-child {
    border-bottom: none;
}

.level-guide-container .level-item:hover {
    background-color: #f9fafb;
}

.level-guide-container .level-item.beginner-color {
    border-left: 4px solid #34d399;
    background-color: #ecfdf5;
}

.level-guide-container .level-item.elementary-color {
    border-left: 4px solid #60a5fa;
    background-color: #eff6ff;
}

.level-guide-container .level-item.intermediate-color {
    border-left: 4px solid #fb923c;
    background-color: #fff7ed;
}

.level-guide-container .level-item.advanced-color {
    border-left: 4px solid #f87171;
    background-color: #fef2f2;
}

/* Simple level items for DELF/DALF and other simple lists */
.level-item {
    padding: 0.75rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    border-left: 4px solid #60a5fa;
    transition: background-color 0.2s ease;
}

.level-item:hover {
    background-color: #eff6ff;
}

.level-number {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: white;
    border: 2px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    min-width: 2rem;
    flex-shrink: 0;
}

.level-content {
    flex: 1;
}

.level-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.level-topics {
    font-size: 0.75rem;
    color: #4b5563;
    line-height: 1.625;
}

.level-item:hover {
    background: linear-gradient(90deg, rgba(10, 45, 87, 0.1) 0%, rgba(10, 45, 87, 0.02) 100%);
    border-left-width: 4px;
    padding-left: 0.875rem;
}

.age-group-column {
    position: relative;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.age-group-column:hover {
    background-color: rgba(10, 45, 87, 0.02);
}

/* Vertical divider lines between columns */
.age-group-column:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 2rem;
    bottom: 2rem;
    width: 2px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(10, 45, 87, 0.1) 10%, 
        rgba(10, 45, 87, 0.2) 50%, 
        rgba(10, 45, 87, 0.1) 90%, 
        transparent 100%
    );
}

/* Age group header styling */
.age-group-column h3 {
    position: relative;
    padding-bottom: 0.75rem;
}

/* Colored underline for age group headers */
.age-group-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.age-group-column:hover h3::after {
    width: 80%;
}

/* Specific colors for each age group */
.age-group-column:nth-child(1) h3::after {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.age-group-column:nth-child(2) h3::after {
    background: linear-gradient(90deg, #a855f7, #9333ea);
}

.age-group-column:nth-child(3) h3::after {
    background: linear-gradient(90deg, #10b981, #059669);
}

/* Enhanced course cards within age groups */
.age-group-column .course-item-card {
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.age-group-column:nth-child(1) .course-item-card:hover {
    border-left-color: #3b82f6;
    background: linear-gradient(145deg, #eff6ff 0%, #ffffff 100%);
}

.age-group-column:nth-child(2) .course-item-card:hover {
    border-left-color: #a855f7;
    background: linear-gradient(145deg, #faf5ff 0%, #ffffff 100%);
}

.age-group-column:nth-child(3) .course-item-card:hover {
    border-left-color: #10b981;
    background: linear-gradient(145deg, #f0fdf4 0%, #ffffff 100%);
}

/* Responsive adjustments for DELF layout */
@media (max-width: 768px) {
    .age-group-column {
        padding: 1rem;
    }
    
    .age-group-column:not(:last-child)::after {
        display: none;
    }
    
    .age-group-column:not(:last-child) {
        border-bottom: 2px solid rgba(10, 45, 87, 0.1);
        padding-bottom: 2rem;
        margin-bottom: 2rem;
    }
}

.course-animate-in { animation: slideInUp 0.6s ease-out forwards; opacity: 0; transform: translateY(30px); }
.course-animate-in:nth-child(1) { animation-delay: 0.1s; }
.course-animate-in:nth-child(2) { animation-delay: 0.2s; }
.course-animate-in:nth-child(3) { animation-delay: 0.3s; }
.course-animate-in:nth-child(4) { animation-delay: 0.4s; }
.course-animate-in:nth-child(5) { animation-delay: 0.5s; }
.course-animate-in:nth-child(6) { animation-delay: 0.6s; }
.course-animate-in:nth-child(7) { animation-delay: 0.7s; }
.course-animate-in:nth-child(8) { animation-delay: 0.8s; }
.course-animate-in:nth-child(9) { animation-delay: 0.9s; }
@keyframes slideInUp { to { opacity: 1; transform: translateY(0); } }

/*
 * ============================================================================
 * Main Courses Page Enhancement (for page-courses.php)
 * ============================================================================
 */
.featured-course-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(10, 45, 87, 0.1);
    transition: all 0.4s ease;
    border: 2px solid transparent;
}
.featured-course-card:hover { transform: translateY(-10px); box-shadow: 0 20px 50px rgba(10, 45, 87, 0.2); border-color: var(--primary-blue); }
.featured-course-image { height: 200px; background: linear-gradient(135deg, var(--primary-blue) 0%, #1e40af 100%); position: relative; overflow: hidden; }
.featured-course-image.featured-course-exam { background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%); }
.featured-course-image.featured-course-teens { background: linear-gradient(135deg, #059669 0%, #047857 100%); }
.featured-course-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: white; opacity: 0.9; transition: all 0.3s ease; }
.featured-course-card:hover .featured-course-overlay { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
.featured-badge { position: absolute; top: 15px; right: 15px; background: rgba(255, 255, 255, 0.95); color: var(--primary-blue); padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.featured-badge-exam { background: rgba(255, 255, 255, 0.95); color: #dc2626; }
.featured-badge-teens { background: rgba(255, 255, 255, 0.95); color: #059669; }
.featured-course-content { padding: 2rem; }
.featured-course-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; padding: 1rem; background: #f8fafc; border-radius: 12px; }
.stat-item { text-align: center; }
.stat-number { display: block; font-size: 1.125rem; font-weight: 700; color: var(--primary-blue); line-height: 1; }
.stat-label { display: block; font-size: 0.75rem; color: #6b7280; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 0.25rem; }
.featured-course-btn { display: block; width: 100%; background: linear-gradient(135deg, var(--primary-blue) 0%, #1e40af 100%); color: white; padding: 1rem 2rem; border-radius: 12px; text-align: center; text-decoration: none; font-weight: 600; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(10, 45, 87, 0.3); }
.featured-course-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(10, 45, 87, 0.4); color: white; text-decoration: none; }

.main-course-card { background: white; border-radius: 20px; padding: 2rem; position: relative; transition: all 0.3s ease; border: 2px solid transparent; box-shadow: 0 8px 25px rgba(10, 45, 87, 0.08); overflow: hidden; }
.main-course-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue)); transform: scaleX(0); transition: transform 0.3s ease; }
.main-course-card:hover { transform: translateY(-8px); border-color: var(--primary-blue); box-shadow: 0 20px 40px rgba(10, 45, 87, 0.15); }
.main-course-card:hover::before { transform: scaleX(1); }
.course-card-badge { position: absolute; top: 1rem; right: 1rem; background: linear-gradient(135deg, var(--accent-red), #dc2626); color: white; padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.course-card-icon { width: 80px; height: 80px; background: linear-gradient(135deg, var(--primary-blue), #1e40af); border-radius: 20px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; transition: all 0.3s ease; }
.course-card-icon i { font-size: 2rem; color: white; }
.main-course-card:hover .course-card-icon { transform: scale(1.1) rotate(5deg); box-shadow: 0 10px 25px rgba(10, 45, 87, 0.3); }
.course-card-title { font-size: 1.25rem; font-weight: 700; color: var(--primary-blue); margin-bottom: 1rem; line-height: 1.3; }
.course-card-description { color: #6b7280; margin-bottom: 2rem; line-height: 1.6; }
.course-card-footer { margin-top: auto; }
.course-card-btn { display: inline-flex; align-items: center; background: transparent; color: var(--primary-blue); border: 2px solid var(--primary-blue); padding: 0.75rem 1.5rem; border-radius: 50px; text-decoration: none; font-weight: 600; transition: all 0.3s ease; font-size: 0.875rem; }
.course-card-btn:hover { background: var(--primary-blue); color: white; transform: translateX(5px); text-decoration: none; }
.course-card-btn i { transition: transform 0.3s ease; }
.course-card-btn:hover i { transform: translateX(3px); }

/*
 * ============================================================================
 * FIX: ALIGN CARD BUTTONS AND STATS BOXES
 * ============================================================================
 */

.featured-course-card,
.main-course-card {
    display: flex;
    flex-direction: column;
}

.featured-course-content,
.course-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
}

.featured-course-stats {
    margin-top: auto;
}

.course-card-footer {
    margin-top: auto;
}

.info-stat-card { text-align: center; padding: 1.5rem; }
.info-stat-icon { width: 80px; height: 80px; background: linear-gradient(135deg, var(--primary-blue), #1e40af); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; transition: all 0.3s ease; }
.info-stat-icon i { font-size: 1.75rem; color: white; }
.info-stat-card:hover .info-stat-icon { transform: scale(1.1); box-shadow: 0 10px 25px rgba(10, 45, 87, 0.3); }
.info-stat-number { font-size: 2.5rem; font-weight: 700; color: var(--primary-blue); line-height: 1; margin-bottom: 0.5rem; }
.info-stat-label { font-size: 1rem; color: #6b7280; font-weight: 500; }

@media (max-width: 768px) {
    .featured-course-stats { grid-template-columns: 1fr; gap: 0.5rem; }
    .featured-course-card, .main-course-card { padding: 1.5rem; }
    .course-card-icon { width: 60px; height: 60px; }
    .course-card-icon i { font-size: 1.5rem; }
    .info-stat-number { font-size: 2rem; }
    .info-stat-icon { width: 60px; height: 60px; }
}

/* ============================================================================
 * FINAL STYLES FOR TUTOR CARDS (page-team.php) V11
 * ============================================================================ */
.final-tutor-card {
    margin-top: 65px;
    padding-top: 85px;
    position: relative;
    overflow: visible; 
}

/* --- Avatar --- */
.final-tutor-avatar-container {
    position: absolute;
    top: -65px;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background-color: white;
    padding: 7px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    z-index: 5;
}
.final-tutor-avatar-img, .final-tutor-avatar-placeholder { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.final-tutor-avatar-placeholder { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #176bb4, #0d47a1); }

/* --- Card Body --- */
.final-tutor-card-body {
    padding: 1.5rem;
    text-align: center;
}

/* --- Info Lines --- */
.info-line {
    display: flex;
    align-items: flex-start;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.5;
}

.info-line-icon {
    color: var(--primary-blue);
    margin-right: 12px;
    margin-top: 5px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}
/* Style for individual language items */
.language-item {
    display: block;
}


/* --- Tags Section (Bottom of Card) - NOW USING CSS GRID --- */
.card-tags-bottom {
    display: grid;
    grid-template-columns: auto 1fr; /* Icon column, tags column */
    gap: 10px 8px; /* Row gap, Column gap */
    text-align: left;
    margin-bottom: 1.5rem;
}

.tag-icon-label {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-top: 6px;
    grid-column: 1 / 2; /* Place in the first column */
    justify-self: center;
}

/* The .flex container for tags will be in the second column */
.card-tags-bottom .flex {
    grid-column: 2 / 3;
}

.tag-specialization {
    background-color: #B85042;
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 9999px;
}

.tag-format {
    background-color: var(--primary-blue, #0A2D57);
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 9999px;
}

/* ============================================================================
 * STYLES FOR SINGLE TUTOR PAGE (single-tutor.php)
 * ============================================================================ */
.tutor-hero-section { background-color: var(--primary-blue); color: white; padding: 4rem 0; }
.hero-image-container { position: relative; }
.hero-image { border-radius: 50%; width: 250px; height: 250px; object-fit: cover; border: 8px solid white; box-shadow: 0 10px 30px rgba(0,0,0,0.2); margin: 0 auto; }

.tutor-content-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}
.tutor-content-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.tutor-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

/*
 * ============================================================================
 * FIX: Equal columns for Achievements and Testimonials on single-tutor page
 * ============================================================================
 */
.content-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* Create two equal-width columns */
    gap: 3rem; /* Creates space between the columns */
    align-items: start; /* Aligns items to the top of the row */
}

/* Responsive layout for tablets and mobile */
@media (max-width: 1024px) {
    .content-row {
        grid-template-columns: 1fr; /* Stack the columns on top of each other */
        gap: 2rem; 
    }
}

/*
 * ============================================================================
 * FIX: Contain testimonial slider to prevent it from breaking the grid layout
 * ============================================================================
 */
.testimonial-slider-wrapper {
    overflow: hidden;
}

/*
 * ============================================================================
 * FIX: Card Styling and Alignment (v11.2 - Final)
 * ============================================================================
 */

/* 1. Base style for the white info cards */
.tutor-info-card {
    background-color: white;
    border-radius: 0.75rem; /* 12px */
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    width: 100%;
    /* DEFINITIVE FIX: Use Flexbox for vertical alignment inside the cards */
    display: flex;
    flex-direction: column;
}

/* 2. FIX: Remove horizontal lines automatically added by the 'prose' class */
.tutor-content-section .prose hr {
    display: none !important;
}

/* 3. Testimonial Slider Structure */
.testimonial-slider-wrapper {
    padding: 1.5rem; /* Apply padding to the main card */
}

.slides-viewport {
    flex-grow: 1; /* CRITICAL: This makes the slider content grow to fill available space, pushing dots to the bottom */
    overflow: hidden;
    width: 100%;
}

/* 4. Individual Slide Styling (replaces the old .testimonial-card-single) */
.slide {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.testimonial-content { /* This is the blockquote */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.testimonial-content p {
    flex-grow: 1; /* Pushes the <cite> tag to the bottom of the quote */
}

/* 5. Slider Dots Position FIX */
.slider-dots {
    margin-top: 1.25rem; /* Pushes dots down from the text */
    margin-bottom: 0.25rem; /* Lifts dots up from the bottom border */
}
.slider-dots .dot.active {
    background-color: var(--primary-blue);
}