/* =========================================================
   BEASISWA — scoped di bawah .bsw
   ========================================================= */

.bsw {
    padding: 64px 0 80px;
    background: #fafafa;
}

.bsw__wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Intro & Typography ---------- */
.bsw__intro {
    margin-bottom: 48px;
    max-width: 800px;
}

.bsw__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue);
}

.bsw__eyebrow::before {
    content: '';
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: var(--or);
}

.bsw__title {
    margin: 0 0 16px;
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    color: var(--blue-d);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.bsw__lead {
    margin: 0;
    color: var(--mut);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* ---------- Tombol Kembali ---------- */
.bsw__back-wrap {
    margin-bottom: 32px;
}

.bsw__back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.bsw__back-btn:hover {
    background: var(--sky);
    border-color: var(--blue);
}

/* ---------- Grid Kartu Beasiswa ---------- */
.bsw__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.bsw__card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.bsw__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(
        90deg,
        #f59e0b,
        #fcd34d
    ); /* Aksen warna emas/kuning untuk beasiswa */
    opacity: 0;
    border-radius: 16px 16px 0 0;
    transition: opacity 0.3s ease;
}

.bsw__card:hover {
    border-color: transparent;
    box-shadow: 0 20px 40px -10px rgba(23, 59, 102, 0.15);
    transform: translateY(-6px);
}

.bsw__card:hover::before {
    opacity: 1;
}

.bsw__icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #fef3c7; /* Warna latar kuning muda */
    color: #d97706; /* Warna ikon emas gelap */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.bsw__card-title {
    margin: 0 0 12px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--blue-d);
    line-height: 1.4;
}

.bsw__card-desc {
    margin: 0 0 20px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--mut);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bsw__card-benefit {
    font-size: 0.85rem;
    background: #f8fafc;
    border: 1px solid var(--line);
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--ink);
    margin-bottom: 24px;
    line-height: 1.5;
}

.bsw__card-benefit span {
    font-weight: 700;
    color: #d97706;
    display: block;
    margin-bottom: 4px;
}

.bsw__card-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.bsw__card-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--blue);
    text-decoration: none;
    transition: color 0.2s;
}

.bsw__card-link svg {
    transition: transform 0.2s ease;
}
.bsw__card:hover .bsw__card-link {
    color: var(--or);
}
.bsw__card:hover .bsw__card-link svg {
    transform: translateX(4px);
}

/* ---------- Detail Grid ---------- */
.bsw__detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.bsw__panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.bsw__panel--highlight {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-color: #fde68a;
}

.bsw__panel-title {
    margin: 0 0 24px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--blue-d);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

/* Syarat List */
.bsw__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bsw__list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--ink);
}

.bsw__check {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--sky);
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

/* Highlight Text */
.bsw__highlight-text {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    color: #92400e;
}

.bsw__highlight-text svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.bsw__highlight-text p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
    font-weight: 600;
}

/* ---------- CTA Box ---------- */
.bsw__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 32px 40px;
    background: linear-gradient(135deg, var(--blue), var(--blue-d));
    color: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(23, 59, 102, 0.3);
}

.bsw__cta h3 {
    margin: 0 0 8px;
    font-size: 1.35rem;
    color: #fff;
}
.bsw__cta p {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
}

.bsw__cta .btn {
    background: #fff;
    color: var(--blue-d);
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    white-space: nowrap;
    transition: transform 0.2s;
}

.bsw__cta .btn:hover {
    transform: translateY(-2px);
}

/* ---------- Empty State ---------- */
.bsw__empty,
.bsw__empty-all {
    color: var(--mut);
    font-size: 1rem;
    padding: 32px;
    background: var(--sky);
    border-radius: 12px;
    text-align: center;
    border: 1px dashed var(--blue);
}

.bsw__empty-all h3 {
    margin: 0 0 8px;
    color: var(--blue-d);
    font-size: 1.2rem;
}

/* Styling untuk HTML mentah dari database (Syarat & Deskripsi) */
.bsw__rich-text ul,
.bsw__rich-text ol {
    margin: 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bsw__rich-text li {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--ink);
    margin: 0;
}

.bsw__rich-text p {
    margin-bottom: 12px;
    line-height: 1.7;
    color: var(--mut);
}

.bsw__rich-text p:last-child {
    margin-bottom: 0;
}

.bsw__rich-text strong {
    color: var(--blue-d);
    font-weight: 700;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .bsw__detail-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .bsw {
        padding: 40px 0 60px;
    }
    .bsw__grid {
        grid-template-columns: 1fr;
    }
    .bsw__cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
    }
    .bsw__cta .btn {
        width: 100%;
        text-align: center;
    }
}
