/* ============================================================
   UMAIR PRO ACADEMY — Course Details + Reviews (merged page)
   Brand colors unified with rest of site: dark #05070a + gold
   Mobile-first (90% traffic is mobile)
============================================================= */
.course-wrapper {
    --bg-dark: #05070a;
    --card-bg: #0d0e11;
    --border-color: rgba(255, 255, 255, 0.06);
    --gold-start: #F5A623;
    --gold-end: #d4891a;
    --gold-glow: rgba(245, 166, 35, 0.35);
    --text-main: #ffffff;
    --text-muted: #9CA3AF;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);

    background: var(--bg-dark);
    padding: 32px 12px 100px;
    font-family: 'Poppins', -apple-system, sans-serif;
    color: var(--text-main);
}

.course-wrapper * { box-sizing: border-box; }

.course-container {
    max-width: 820px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 22px;
    padding: 32px 18px;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.text-gold { color: var(--gold-start) !important; }

/* ---------- Review badge (top of hero) ---------- */
.umair-review-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    background: #1a1a20;
    color: var(--text-main) !important;
    padding: 11px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    max-width: 420px;
    margin: 0 auto 22px;
    border: 1px solid rgba(245, 166, 35, 0.3);
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.umair-review-badge:hover {
    transform: translateY(-3px);
    border-color: var(--gold-start);
}

.stars-pill {
    background: #0B1220;
    padding: 4px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 800;
    font-size: 12.5px;
    border: 1px solid rgba(245, 166, 35, 0.3);
}

.stars-pill span:first-child { color: var(--gold-start); font-size: 14px; }

/* ---------- Hero title/description ---------- */
.course-main-title {
    text-align: center;
    font-size: clamp(24px, 6vw, 34px);
    font-weight: 800;
    margin: 0 0 14px;
    line-height: 1.3;
}

.course-description {
    text-align: center;
    font-size: 14.5px;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 24px;
    line-height: 1.75;
}

/* ---------- Badges ---------- */
.badge-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 24px;
}

.badge {
    background: rgba(245, 166, 35, 0.08);
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid rgba(245, 166, 35, 0.3);
    color: var(--text-main);
    font-size: 12.5px;
    font-weight: 600;
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.badge:hover {
    transform: translateY(-2px);
    border-color: var(--gold-start);
    background: rgba(245, 166, 35, 0.14);
}

/* ---------- Pricing ---------- */
.pricing-section { text-align: center; margin: 28px 0; }

.price-old {
    text-decoration: line-through;
    color: #6b7280;
    font-size: 14px;
    display: block;
    margin-bottom: 4px;
}

.price-new {
    font-size: clamp(24px, 6vw, 30px);
    font-weight: 800;
    margin: 6px 0;
}

.offer-text {
    color: var(--gold-start);
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
}

/* ---------- CTA button ---------- */
.btn-wrapper { text-align: center; margin-bottom: 32px; }

.btn-solid {
    display: block;
    background: linear-gradient(135deg, var(--gold-start) 0%, var(--gold-end) 100%);
    color: #ffffff !important;
    text-align: center;
    padding: 17px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 16.5px;
    text-decoration: none;
    max-width: 320px;
    margin: 0 auto;
    box-shadow: 0 10px 26px rgba(245, 166, 35, 0.3);
    transition: transform 0.3s var(--ease), filter 0.3s var(--ease);
}

.btn-solid:hover { filter: brightness(1.08); transform: translateY(-2px); }

/* ---------- Curriculum card ---------- */
.course-card {
    background: #000000;
    border-radius: 18px;
    padding: 24px 18px;
    margin-bottom: 22px;
    border: 1px solid var(--border-color);
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
    /* FIX: hover transition was missing after the merge — restored below */
    transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.course-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 166, 35, 0.4);
    box-shadow: 0 20px 45px -18px var(--gold-glow);
}

.card-heading {
    font-size: 19px;
    margin: 0 0 16px;
    font-weight: 700;
    border-bottom: 1px solid rgba(245, 166, 35, 0.2);
    padding-bottom: 10px;
}

.course-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 600px) {
    .course-grid { grid-template-columns: repeat(2, 1fr); }
}

.course-list-item {
    color: var(--text-muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.course-list-item:hover {
    background: rgba(245, 166, 35, 0.06);
    color: var(--text-main);
}

.course-list-item::before {
    content: "✦";
    color: var(--gold-start);
    font-weight: bold;
    flex-shrink: 0;
}

/* ---------- Note box ---------- */
.course-note-box {
    border-left: 4px solid var(--gold-start);
    background: rgba(245, 166, 35, 0.05);
    padding: 16px 18px;
    border-radius: 10px;
    margin: 26px 0 36px;
}

.course-note-box p {
    color: var(--text-main);
    font-size: 13.5px;
    line-height: 1.6;
    margin: 0;
}

.course-note-box span {
    color: var(--gold-start);
    font-weight: 700;
}

/* ============================================================
   REVIEWS SECTION
============================================================= */
.rev-section {
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
}

.rev-header {
    text-align: center;
    margin-bottom: 28px;
}

.rev-header h2 {
    font-size: 22px;
    margin: 0 0 6px;
    font-weight: 800;
}

.big-score {
    font-size: 44px;
    font-weight: 800;
    color: var(--gold-start);
    margin: 8px 0 0;
}

.star-icons {
    color: var(--gold-start);
    font-size: 20px;
    letter-spacing: 2px;
}

.total-count {
    color: var(--text-muted);
    font-size: 13px;
    margin: 4px 0 0;
}

.success-banner {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid #10B981;
    color: #10B981;
    padding: 14px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 13.5px;
}

/* ---------- Review form ---------- */
.rev-form-card {
    background: #14151a;
    padding: 24px 18px;
    border-radius: 16px;
    border: 1px solid rgba(245, 166, 35, 0.15);
    margin-bottom: 36px;
}

.rev-form-card h3 {
    color: var(--gold-start);
    margin: 0 0 18px;
    font-size: 17px;
}

.form-group { margin-bottom: 16px; }

.rating-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 500;
}

.form-group label:not(.rating-label) {
    display: block;
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: 13.5px;
}

.star-rating-box {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.star-rating-box input { display: none; }

.star-rating-box label {
    font-size: 30px;
    color: #334155;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.15s ease;
}

.star-rating-box label:hover,
.star-rating-box label:hover ~ label {
    color: var(--gold-start);
    transform: scale(1.1);
}

.star-rating-box input:checked ~ label {
    color: var(--gold-start);
}

.rating-text {
    display: block;
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--text-main);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.form-control::placeholder { color: #6B7280; }

.form-control:focus {
    outline: none;
    border-color: var(--gold-start);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
}

.char-count {
    display: block;
    text-align: right;
    font-size: 11.5px;
    color: #6B7280;
    margin-top: 4px;
}

.btn-submit-rev {
    width: 100%;
    background: linear-gradient(135deg, var(--gold-start) 0%, var(--gold-end) 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s var(--ease);
}

.btn-submit-rev:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(245, 166, 35, 0.35);
}

/* ---------- Review list ---------- */
.rev-list-heading {
    font-size: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.rev-list-item {
    background: #101014;
    padding: 18px;
    border-radius: 14px;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.rev-list-item:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 166, 35, 0.25);
    box-shadow: 0 12px 30px -16px rgba(0, 0, 0, 0.5);
}

.rev-user-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 10px;
}

.rev-user-name {
    font-weight: 700;
    font-size: 14.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rev-user-name::before { content: "👤"; font-size: 13px; }

.rev-stars { font-size: 12px; flex-shrink: 0; }

.rev-text {
    color: var(--text-muted);
    font-size: 13.5px;
    line-height: 1.6;
    margin: 0;
}

.rev-date-row { text-align: right; margin-top: 8px; }

.rev-date { color: #6B7280; font-size: 11.5px; }

.no-reviews {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 0;
    font-size: 13.5px;
}

/* ---------- Sticky mobile CTA bar ---------- */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: #0d0e11;
    border-top: 1px solid rgba(245, 166, 35, 0.25);
    padding: 12px 16px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.4);
}

.sticky-price {
    font-size: 17px;
    font-weight: 800;
    color: var(--gold-start);
    white-space: nowrap;
}

.sticky-btn {
    flex: 1;
    text-align: center;
    background: linear-gradient(135deg, var(--gold-start) 0%, var(--gold-end) 100%);
    color: #ffffff;
    text-decoration: none;
    padding: 13px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
}

@media (max-width: 768px) {
    .mobile-sticky-cta { display: flex; }
    .course-wrapper { padding-bottom: 90px; }
}

/* ---------- Entrance animation ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .course-wrapper * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}