﻿/* =============================================
   SCHOLARSHIP LIST PAGE  —  scholarship.css
   ============================================= */

/* ── Hero ─────────────────────────────────── */
.scholarship-hero-section {
    position: relative;
    min-height: 420px;
    background: linear-gradient(135deg, #097969 0%, #00A36C 55%, #00A36C 100%);
    display: flex;
    align-items: center;
    padding: 2rem 0;
    overflow: hidden;
}

.scholarship-hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.22);
}

.hero-inner { position: relative; z-index: 1; }

.hero-copy h2 {
    color: #fff;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    line-height: 1.15;
    font-weight: 700;
}

.hero-copy p {
    color: rgba(255,255,255,0.88);
    max-width: 500px;
    margin-top: 1.25rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.hero-profile { display: flex; justify-content: center; margin-top: 2rem; }

.hero-image {
    width: 100%;
    max-width: 300px;
    border-radius: 1.5rem;
    overflow: hidden;
/*    box-shadow: 0 12px 40px rgba(0,0,0,0.3); */
}

.hero-image img { width: 100%; height: auto; object-fit: contain; display: block; }

/* ── Section ──────────────────────────────── */
.scholarship-list-section {
    padding: 5rem 0 4rem;
    background: #fbefd8;
}

/* ── Cards Grid ───────────────────────────── */
#scholarshipList {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.sc-card {
    background: #fff;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: row;        /* horizontal: image | content */
    min-height: 280px;
}

/* Alternate: odd cards flip image to the right */
.sc-card:nth-child(even) {
    flex-direction: row-reverse;
}

.sc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.14);
}

/* Image panel — fixed-width left/right column */
.sc-card-image {
    position: relative;
    flex: 0 0 300px;
    width: 300px;
    overflow: hidden;
    background: #f3f4f6;
}

.sc-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.45s ease;
    position: absolute;
    inset: 0;
}

.sc-card:hover .sc-card-image img { transform: scale(1.06); }

/* Badge */
.sc-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.badge-gold { background: #f59e0b; color: #fff; }
.badge-teal { background: #0d9488; color: #fff; }
.badge-purple { background: #7c3aed; color: #fff; }
.badge-blue { background: #2563eb; color: #fff; }
.badge-orange { background: #ea580c; color: #fff; }

/* Card body — fills remaining width */
.sc-card-body {
    padding: 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.sc-type-row {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.6rem;
}

.sc-card-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.sc-tagline {
    font-size: 0.87rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Info chips */
.sc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.sc-chip {
    font-size: 0.76rem;
    font-weight: 600;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    white-space: nowrap;
}

.chip-cov { background: #fef3c7; color: #97831d; border: 1px solid #fde68a; }
.chip-dur { background: #F5DEB3; color: #8b1375; border: 1px solid #DAA06D; }
.chip-seat { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }

/* Highlights list */
.sc-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem;
}

.sc-highlights li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    color: var(--text-dark);
}

.sc-highlights li i { color: var(--success-color); font-size: 0.78rem; flex-shrink: 0; }

/* CTA button */
.sc-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--brown-color);
    color: #fff;
    text-decoration: none;
    padding: 0.7rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: auto;
    align-self: flex-start;
    transition: background 0.25s ease, transform 0.2s ease;
}

.sc-cta-btn:hover { 
    background: var(--saddle-brown-color); 
    transform: translateX(3px); 
    color: #fff; 
}

/* ── Testimonials ─────────────────────────── */
.testimonial-section { padding: 4rem 0; background: #fff; }

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.testimonial-card {
    background: #f8fafc;
    border-radius: 1rem;
    padding: 1.75rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s ease;
}

.testimonial-card:hover { box-shadow: var(--shadow-md); }

.testimonial-card p {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.75;
    font-style: italic;
    margin-bottom: 1.25rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.author-photo {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--light-color);
    flex-shrink: 0;
}

.author-photo img { width: 100%; height: 100%; object-fit: cover; }

.author-info strong { display: block; font-size: 0.9rem; color: var(--dark-color); }
.author-info span { font-size: 0.78rem; color: var(--text-light); }

/* ── Responsive ───────────────────────────── */
@media (max-width: 768px) {
    /* Stack vertically on mobile */
    .sc-card,
    .sc-card:nth-child(even) {
        flex-direction: column;
    }
    .sc-card-image {
        flex: none;
        width: 100%;
        height: 220px;
    }
    .sc-card-image img { position: static; height: 220px; }
    .sc-card-body { padding: 1.5rem; }
    .sc-highlights { grid-template-columns: 1fr; }
    .scholarship-hero-section { min-height: auto; padding: 3rem 0; }
}

@media (max-width: 480px) {
    .sc-card-image { height: 180px; }
    .sc-card-image img { height: 180px; }
    .sc-chips { flex-direction: column; gap: 0.35rem; }
}