/* ===== Student Reviews Spacings & Typography ===== */
#student-reviews {
    color: #333333;
}

/* Infinite Vertical Scroll Container */
.sr-ticker-container {
    position: relative;
    height: 380px; /* Aligns perfectly with the redesigned form height on desktop */
    overflow: hidden;
    width: 100%;
}

/* Top & Bottom elegant fade-out mask gradients matching the white background */
.sr-ticker-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50px;
    background: linear-gradient(to bottom, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 2;
    pointer-events: none;
}
.sr-ticker-container::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 50px;
    background: linear-gradient(to top, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Infinite Ticker Wrapper & Animation */
.sr-ticker-wrapper {
    display: flex;
    flex-direction: column;
    animation: srScrollUp 4s linear infinite;
}
/* Pauses the scroll immediately when hovered */
.sr-ticker-wrapper:hover {
    animation-play-state: paused;
}

@keyframes srScrollUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); } /* Halfway point is identical, resets seamlessly */
}

/* Cardless Editorial Review Styling inside Ticker */
.sr-review-item {
    padding: 18px 0 18px 40px;
    position: relative;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}
.sr-quote-icon {
    position: absolute;
    left: 0;
    top: 15px;
    font-size: 24px;
    color: #ff6f00;
    opacity: 0.8;
}
.sr-review-text {
    font-size: 15px;
    line-height: 1.8;
    color: #555555;
    font-style: italic;
    margin-bottom: 12px;
    font-weight: 400;
}
.sr-review-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    color: #666666;
}
.sr-meta-stars {
    color: #ff6f00;
    margin-right: 8px;
    font-size: 12px;
}
.sr-author-name {
    font-weight: 600;
    color: #1f2746;
}
.sr-course-name {
    color: #ff6f00;
    font-weight: 500;
}
.sr-review-date {
    color: #888888;
}

/* Empty feedback state */
.sr-empty {
    padding: 40px 0;
    color: #888888;
    text-align: left;
}
.sr-empty i {
    font-size: 28px;
    color: #ff6f00;
    margin-bottom: 10px;
    display: block;
}

/* ===== Redesigned Compact Form Box ===== */
#review-form-wrapper {
    background: #ffffff;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    padding: 22px 25px;
}
#review-form-wrapper h4 {
    font-size: 18px;
    font-weight: 600;
    color: #ff6f00;
    margin-top: 0;
    margin-bottom: 6px;
    text-transform: capitalize;
}
#review-form-wrapper .sr-form-sub {
    color: #666666;
    font-size: 12px;
    margin-bottom: 16px;
    line-height: 1.5;
}
#review-form-wrapper .form-group {
    margin-bottom: 12px;
}
#review-form-wrapper .control-label {
    font-size: 12px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 5px;
    display: block;
    float: none; /* Disables template global float-left label rule */
}
#review-form-wrapper .required-star {
    color: #ff6f00;
}
#review-form-wrapper .form-control {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #333333;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 13px;
    height: 38px;
    box-shadow: none;
    transition: border-color 0.2s ease;
}
#review-form-wrapper select.form-control {
    height: 38px;
}
#review-form-wrapper textarea.form-control {
    height: auto;
    min-height: 70px;
    resize: vertical;
}
#review-form-wrapper .form-control:focus {
    border-color: #ff6f00;
    box-shadow: none;
    outline: none;
}
#review-form-wrapper .form-control::placeholder {
    color: #999999;
}

/* Star Rating CSS Input */
.sr-star-input {
    display: flex;
    gap: 4px;
    align-items: center;
    height: 38px;
}
.sr-star-input label {
    cursor: pointer;
    font-size: 18px;
    color: #cbd5e1;
    margin: 0;
    padding: 0 1px;
    transition: color 0.15s, transform 0.1s;
}
.sr-star-input label:hover,
.sr-star-input label.active {
    color: #ff6f00;
    transform: scale(1.1);
}
.sr-star-input input[type=radio] {
    display: none;
}
#sr-rating-error {
    color: #e74c3c;
    font-size: 11px;
    margin-top: 4px;
    display: none;
}

/* Submit Button */
.sr-submit-btn {
    background: #ff6f00;
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s, transform 0.1s;
    margin-top: 5px;
}
.sr-submit-btn:hover {
    background: #e66400;
}
.sr-submit-btn:active {
    transform: scale(0.98);
}
.sr-submit-btn:disabled {
    background: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

/* Banner Messages */
#sr-response {
    border-radius: 4px;
    padding: 10px 12px;
    margin-bottom: 14px;
    display: none;
    font-size: 12px;
}
#sr-response.success {
    background: rgba(39, 174, 96, 0.08);
    border: 1px solid #27ae60;
    color: #27ae60;
}
#sr-response.error {
    background: rgba(231, 76, 60, 0.08);
    border: 1px solid #e74c3c;
    color: #e74c3c;
}

/* Form Warnings */
.sr-field-error {
    color: #e74c3c;
    font-size: 11px;
    margin-top: 3px;
    display: none;
}
#sr-char-count {
    font-size: 11px;
    color: #999999;
    text-align: right;
    margin-top: 2px;
}