/* ============================================================
   education-detail.css — Trip Designer Study Abroad Country Detail
   ============================================================ */

/* Hero — shared B2C pattern */
.ed-hero {
    position: relative; overflow: hidden;
    background: url('../../images/hero-beach.jpg') center/cover no-repeat, #0e1f5c;
    padding: 36px 0 56px;
}
.ed-hero-img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 0; opacity: .35;
}
.ed-hero-nophoto { }
.ed-hero::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(8,17,84,.82) 0%, rgba(30,64,175,.55) 50%, rgba(4,16,124,.82) 100%);
    z-index: 0; pointer-events: none;
}
.ed-hero::after {
    content: ''; position: absolute;
    bottom: -1px; left: 0; right: 0; height: 40px;
    background: #f4f6fb;
    clip-path: ellipse(70% 100% at 50% 100%);
    z-index: 1; pointer-events: none;
}
.ed-hero-dots {
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 40px 40px;
}
.ed-hero-overlay { display: none; }
.ed-hero-content { position: relative; z-index: 2; padding: 0 20px; text-align: center; }
.ed-hero-badge {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(251,191,36,.15); border: 1px solid rgba(251,191,36,.4);
    color: #fcd34d; font-size: 11px; font-weight: 800;
    letter-spacing: 1.4px; text-transform: uppercase;
    padding: 5px 14px; border-radius: 5px; margin-bottom: 12px;
    box-shadow: 0 4px 16px rgba(251,191,36,.18);
}
.ed-hero-title {
    font-size: 2.1rem; font-weight: 900; color: #fff;
    line-height: 1.25; margin: 0 0 14px;
    letter-spacing: -0.3px;
    text-shadow: 0 4px 24px rgba(0,0,0,.3);
}
.ed-stats-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.ed-stat-pill {
    display: flex; flex-direction: column; align-items: center;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
    color: #fff; padding: 8px 18px; border-radius: 5px; min-width: 100px;
    backdrop-filter: blur(8px); transition: transform .2s, background .2s;
}
.ed-stat-pill:hover { transform: translateY(-3px); background: rgba(255,255,255,.18); }
.ed-stat-pill-val { font-size: 1.35rem; font-weight: 900; line-height: 1; color: #fbbf24; }
.ed-stat-pill-label { font-size: .7rem; font-weight: 700; color: rgba(255,255,255,.85); margin-top: 3px; text-transform: uppercase; letter-spacing: .5px; }

/* Body */
.ed-body { background: #f4f6fb; padding: 36px 0 56px; }

/* Back buttons bar (shared pattern) */
.ed-back-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.ed-back {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .9rem; font-weight: 700; text-decoration: none;
    padding: 10px 20px; border-radius: 5px;
    transition: all .2s; cursor: pointer;
    border: 1.5px solid transparent;
}
.ed-back i { font-size: .95rem; transition: transform .2s; }
.ed-back:hover { text-decoration: none; transform: translateY(-2px); }
.ed-back:hover i { transform: translateX(-3px); }
.ed-back-secondary { background: #fff; color: #64748b; border-color: #e2e8f0; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.ed-back-secondary:hover { background: #f8fafc; color: var(--tp, #04107C); border-color: var(--tp, #04107C); box-shadow: 0 6px 18px rgba(4,16,124,.12); }
.ed-back-primary { background: linear-gradient(135deg, var(--tp, #04107C) 0%, #1e40af 100%); color: #fff; border-color: transparent; box-shadow: 0 4px 14px rgba(4,16,124,.25); }
.ed-back-primary:hover { background: linear-gradient(135deg, #020a5e 0%, var(--tp, #04107C) 100%); color: #fff; box-shadow: 0 8px 24px rgba(4,16,124,.35); }
.ed-back-primary:hover i { transform: translateX(0) rotate(-10deg); }

/* Section head */
.ed-section-head {
    font-size: 16px; font-weight: 800; color: #1e293b;
    margin-bottom: 20px; display: flex; align-items: center; gap: 8px;
}
.ed-section-head i { color: var(--tp, #04107C); }
.ed-section-count {
    font-size: 12px; font-weight: 600; color: #64748b;
    background: #e0e7ff; padding: 2px 10px; border-radius: 5px; margin-left: 4px;
}

/* University grid */
.ed-uni-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 32px; }
@media (max-width: 1100px) { .ed-uni-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px)  { .ed-uni-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .ed-uni-grid { grid-template-columns: 1fr; } }

/* University card */
.ed-uni-card {
    background: #fff; border-radius: 5px; border: 1px solid #e8eaf0;
    box-shadow: 0 2px 10px rgba(0,0,0,.06); overflow: hidden;
    display: flex; flex-direction: column;
    text-decoration: none; color: inherit; transition: all .2s;
}
.ed-uni-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(4,16,124,.12); border-color: #c7d2fe; text-decoration: none; color: inherit; }
.ed-uni-card-img {
    height: 140px; display: flex; align-items: center;
    justify-content: center; padding: 16px; flex-shrink: 0;
}
.ed-uni-card-name-overlay {
    background: rgba(4,16,124,.75); color: #fff;
    padding: 8px 14px; border-radius: 5px;
    font-size: 12px; font-weight: 800; text-align: center; line-height: 1.4;
}
.ed-uni-card-body { padding: 14px 16px; flex: 1; }
.ed-uni-card-title { font-size: 13px; font-weight: 800; color: #0f172a; margin-bottom: 8px; line-height: 1.4; }
.ed-uni-card-meta { font-size: 11.5px; color: #475569; margin-bottom: 4px; display: flex; align-items: center; gap: 5px; }
.ed-uni-card-footer { padding: 0 16px 14px; }
.ed-uni-card-btn {
    display: block; text-align: center; padding: 9px;
    background: var(--tp, #04107C); color: #fff; font-size: 12px; font-weight: 700;
    border-radius: 5px; text-decoration: none;
}
.ed-uni-card:hover .ed-uni-card-btn { background: #1a2fa8; }

/* Info sections */
.ed-info-sections { margin-top: 8px; }
.ed-card { background: #fff; border-radius: 5px; box-shadow: 0 2px 12px rgba(0,0,0,.06); border: 1px solid #e8eaf0; margin-bottom: 20px; overflow: hidden; }
.ed-card-header { display: flex; align-items: center; gap: 10px; padding: 13px 20px; background: #f8f9fc; border-bottom: 2px solid #e8eaf0; color: #1e293b; font-size: 14px; font-weight: 800; }
.ed-card-header i { font-size: 15px; color: var(--tp, #04107C); }
.ed-card-body { padding: 20px; }
.ed-html { font-size: 13.5px; color: #475569; line-height: 1.75; }
.ed-html ul, .ed-html ol { padding-left: 20px; margin: 8px 0; }
.ed-html ul li { list-style: disc; margin-bottom: 5px; }
.ed-html ol li { margin-bottom: 5px; }
.ed-html p { margin-bottom: 8px; }
.ed-html font, .ed-html span { font-family: inherit !important; font-size: inherit !important; color: inherit !important; }

/* FAQ */
.ed-faq-item { border-bottom: 1px solid #f0f3fb; }
.ed-faq-item:last-child { border-bottom: none; }
.ed-faq-q {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px; cursor: pointer; font-size: 13.5px; font-weight: 700; color: #1e293b;
    user-select: none;
}
.ed-faq-q:hover { background: #f8f9fc; }
.ed-faq-icon { color: var(--tp, #04107C); font-size: 12px; transition: transform .2s; flex-shrink: 0; }
.ed-faq-q[aria-expanded="true"] .ed-faq-icon { transform: rotate(180deg); }
.ed-faq-a { padding: 0 20px 16px; font-size: 13px; color: #475569; line-height: 1.7; }

@media (max-width: 767px) {
    .ed-hero-title { font-size: 22px; }
    .ed-hero-img { height: 240px; }
    .ed-hero-content { padding: 20px; }
}
