/* ============================================================
   Universities page redesign — friendly, modern app-product look,
   matching the Prospective / Ambassadors redesigns. Scoped under
   .university-redesign (everything below the hero, excluding the
   demo modal), layered over universities.css. Loaded after it so
   it wins on specificity.
   ============================================================ */

.university-redesign {
    --ink: #16182E;
    --muted: #5C6173;
    --blue: #2559EB;
    --violet: #6F33EA;
    --grad: linear-gradient(120deg, #2559EB 0%, #6F33EA 100%);
    --mint: #CFEFDB;
    --tint: #F3F6FF;
    --card: #ffffff;
    --line: rgba(37, 89, 235, 0.12);
    --shadow: 0 12px 34px rgba(22, 24, 46, 0.06);
    --shadow-hover: 0 22px 50px rgba(37, 89, 235, 0.16);
    --sans: "Roboto", system-ui, sans-serif;
}

/* ---------- Scroll reveal (safe: only hides once JS adds class) ---------- */
.university-redesign.reveal-ready [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0s);
}

.university-redesign.reveal-ready [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .university-redesign.reveal-ready [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------- Section heading system ---------- */
.university-redesign .section-title {
    font-family: var(--sans);
    font-weight: 700;
    font-size: clamp(1.85rem, 1.3rem + 2vw, 2.6rem);
    line-height: 1.12;
    letter-spacing: -0.015em;
    color: var(--ink);
    text-align: center;
}

.university-redesign .section-title::before {
    content: "";
    display: block;
    width: 48px;
    height: 4px;
    border-radius: 4px;
    background: var(--grad);
    margin: 0 auto 22px;
}

.university-redesign .section-description {
    font-family: var(--sans);
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.7;
    text-align: center;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   1. PAIN POINTS — cards with a gradient left edge
   ============================================================ */
.university-redesign .pain-points-section {
    background: #fff;
    padding: clamp(36px, 4.5vw, 64px) 20px;
}

.university-redesign .pain-points-grid {
    gap: 24px;
    margin-top: 36px;
}

.university-redesign .pain-point-card {
    position: relative;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--line);
    border-left: 0;
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 32px 30px 30px 36px;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s ease, border-color 0.35s ease;
}

.university-redesign .pain-point-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: var(--grad);
}

.university-redesign .pain-point-card:hover {
    transform: translateY(-6px);
    background: var(--card);
    box-shadow: var(--shadow-hover);
    border-color: rgba(37, 89, 235, 0.25);
}

.university-redesign .pain-point-title {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--ink);
    margin-bottom: 12px;
}

.university-redesign .pain-point-text {
    font-family: var(--sans);
    color: var(--muted);
    line-height: 1.7;
}

/* ============================================================
   2. SOLUTION — intro + ticked pills
   ============================================================ */
.university-redesign .solution-section {
    background: #fff;
    padding: clamp(36px, 4.5vw, 64px) 20px;
}

.university-redesign .solution-intro {
    font-family: var(--sans);
    color: var(--muted);
    font-size: 1.15rem;
    line-height: 1.7;
}

.university-redesign .solution-benefit-item {
    align-items: center;
    gap: 18px;
    background: var(--tint);
    border: 1px solid transparent;
    border-radius: 16px;
    box-shadow: none;
    padding: 20px 26px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.university-redesign .solution-benefit-item:hover {
    transform: translateX(4px);
    border-color: rgba(37, 89, 235, 0.2);
    box-shadow: 0 10px 24px rgba(37, 89, 235, 0.1);
}

.university-redesign .solution-icon {
    background: var(--grad);
    color: #fff;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(37, 89, 235, 0.28);
}

.university-redesign .solution-text {
    font-family: var(--sans);
    color: var(--ink);
    font-weight: 500;
    margin: 0;
}

/* ============================================================
   3. PLANS + DATA INSIGHTS
   ============================================================ */
.university-redesign .business-model-section {
    background: #fff;
    padding: clamp(36px, 4.5vw, 64px) 20px;
}

.university-redesign .plan-card {
    position: relative;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 38px 34px;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s ease, border-color 0.35s ease;
}

.university-redesign .plan-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(37, 89, 235, 0.25);
}

.university-redesign .plan-card.premium {
    background: var(--card);
    border-color: rgba(37, 89, 235, 0.35);
}

/* gradient top bar marks the premium plan */
.university-redesign .plan-card.premium::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--grad);
}

.university-redesign .plan-title {
    font-family: var(--sans);
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 22px;
}

.university-redesign .plan-features li {
    font-family: var(--sans);
    color: var(--muted);
    padding-left: 28px;
}

.university-redesign .plan-features li::before {
    content: "✓";
    color: var(--violet);
    font-weight: 700;
}

.university-redesign .data-insights {
    background: var(--tint);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: none;
    padding: clamp(28px, 4vw, 44px);
}

.university-redesign .data-insights-title {
    font-family: var(--sans);
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 22px;
}

.university-redesign .data-insights-list li {
    font-family: var(--sans);
    color: var(--muted);
    padding-left: 28px;
}

/* replace the 📊 bullet with a gradient dot */
.university-redesign .data-insights-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--grad);
}

/* ============================================================
   4. CTA — brand gradient band (matches hero) with mint glow
   ============================================================ */
.university-redesign .university-cta-section {
    position: relative;
    overflow: hidden;
    background: var(--grad);
    padding: clamp(40px, 5vw, 72px) 20px;
}

.university-redesign .university-cta-section::before {
    content: "";
    position: absolute;
    width: 560px;
    height: 560px;
    right: -180px;
    top: -240px;
    background: radial-gradient(circle, rgba(207, 239, 219, 0.4), transparent 65%);
    pointer-events: none;
}

.university-redesign .university-cta-content {
    position: relative;
}

.university-redesign .university-cta-title {
    font-family: var(--sans);
    font-weight: 700;
}

.university-redesign .university-cta-button.primary {
    color: var(--blue);
}

/* ============================================================
   5. FAQ — rounded cards with gradient toggle
   ============================================================ */
.university-redesign .faq-section {
    background: #fff;
    padding: clamp(36px, 4.5vw, 64px) 20px;
}

.university-redesign .faq-section .section-title {
    margin-bottom: 40px;
}

.university-redesign .faq-item {
    margin-bottom: 14px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.university-redesign .faq-item:hover,
.university-redesign .faq-item.active {
    border-color: rgba(37, 89, 235, 0.28);
    box-shadow: var(--shadow-hover);
}

.university-redesign .faq-question {
    background: none;
    padding: 24px 26px;
    gap: 20px;
    font-family: var(--sans);
    font-weight: 600;
    font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.2rem);
    line-height: 1.35;
    color: var(--ink);
}

.university-redesign .faq-question:hover {
    background: none;
    color: var(--blue);
}

.university-redesign .faq-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 1.35rem;
    font-weight: 300;
    color: #fff;
    background: var(--grad);
    border-radius: 50%;
    box-shadow: 0 6px 14px rgba(37, 89, 235, 0.25);
}

.university-redesign .faq-answer {
    padding: 0 26px;
}

.university-redesign .faq-item.active .faq-answer {
    padding: 0 26px 24px;
}

.university-redesign .faq-answer p {
    font-family: var(--sans);
    color: var(--muted);
    max-width: 70ch;
}
