/* ScholarHub - styles for the Contact, Universities and How to Apply pages (+ menu fit) */

/* ---------- Menu: smaller links so 6 items fit, hamburger on tablets ---------- */
.site-nav { gap: 2px; }
.site-nav a, .nav-btn { padding: 8px 10px; font-size: .92rem; white-space: nowrap; }
@media (max-width: 1100px) {
    .nav-toggle { display: block; }
    .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--border); padding: 12px 20px 18px; gap: 4px; box-shadow: 0 16px 24px rgba(15, 23, 42, .08); }
    .site-nav.open { display: flex; }
    .site-nav a, .nav-btn { padding: 12px; text-align: left; width: 100%; }
    .site-nav a.btn { text-align: center; }
    .inline-form { display: block; }
}

/* ---------- Page hero (smaller than the home hero) ---------- */
.page-hero { background: radial-gradient(1000px 320px at 85% -20%, rgba(99, 140, 255, .45), transparent 60%), linear-gradient(135deg, #0b1b3b 0%, #17306b 55%, #2347c4 100%); color: #fff; padding: 44px 0 40px; text-align: center; }
.page-hero h1 { margin-bottom: 10px; }
.page-hero .hero-sub { max-width: 680px; margin: 0 auto 22px; font-size: 1.1rem; color: #cfd9f5; }
.page-hero .search-bar { margin-top: 6px; }
.jump { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.jump a { color: #fff; background: rgba(255, 255, 255, .14); padding: 7px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600; }
.jump a:hover { background: rgba(255, 255, 255, .26); text-decoration: none; }

/* ---------- Members-only gate ---------- */
.gate-hero { background: linear-gradient(135deg, #0b1b3b 0%, #17306b 60%, #2347c4 100%); color: #fff; padding: 44px 0 46px; }
.gate-hero .chip { display: inline-flex; margin-bottom: 12px; }
.gate-hero .lead { color: #cfd9f5; max-width: 720px; margin: 0; }
.gate-wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; }
.gate-teasers h2 { margin-bottom: 8px; }
.gate-card { position: static; text-align: center; }
.gate-lock { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: #eaf0ff; color: var(--primary-dark); display: flex; align-items: center; justify-content: center; }
.gate-card .price { font-size: 3rem; }
.gate-card .btn-block { margin: 12px 0; }
.gate-card .secure { justify-content: center; }
@media (max-width: 860px) { .gate-wrap { grid-template-columns: 1fr; } }

/* ---------- Universities ---------- */
.uni-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.uni-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; animation: pop .3s ease both; }
.uni-card header { margin-bottom: 8px; }
.uni-card h3 { font-size: 1.2rem; margin: 10px 0 0; }
.uni-card h3 a { color: var(--text); }
.uni-card h3 a:hover { color: var(--primary); text-decoration: none; }
.uni-about { color: #334155; margin: 8px 0 14px; font-size: .96rem; }
.uni-sub-title { margin: 0 0 8px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { background: #eef2fb; color: #24344f; font-size: .8rem; padding: 4px 10px; border-radius: 999px; line-height: 1.4; }
.tags .tag-more { background: var(--primary); padding: 0; }
.tags .tag-more a { display: block; color: #fff; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.tags .tag-more a:hover { background: var(--primary-dark); text-decoration: none; }
.note-box { margin-top: 28px; padding: 14px 16px; background: #fff; border: 1px dashed var(--border); border-radius: 11px; }
@media (max-width: 860px) { .uni-grid { grid-template-columns: 1fr; } }

/* ---------- How to Apply ---------- */
.guide { padding-top: 32px; padding-bottom: 20px; }
.guide-block { margin-bottom: 44px; scroll-margin-top: 84px; }
.guide-block h2 { margin-bottom: 10px; }
.steps.big > li { font-size: 1.02rem; padding-bottom: 20px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.two-col .panel { margin-bottom: 0; }
.panel h3 { margin-bottom: 10px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

.timeline { position: relative; margin-top: 16px; padding-left: 26px; border-left: 3px solid #dbe4fb; }
.tl-item { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin-bottom: 14px; box-shadow: var(--shadow); }
.tl-item::before { content: ""; position: absolute; left: -36px; top: 20px; width: 14px; height: 14px; border-radius: 50%; background: var(--primary); border: 3px solid var(--bg); }
.tl-when { display: inline-block; font-weight: 700; color: var(--primary-dark); margin-bottom: 4px; }
.tl-item p { margin: 0; color: #334155; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 16px; }
.tab { font-family: inherit; font-weight: 700; font-size: 1rem; padding: 11px 22px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; transition: background .15s, color .15s; }
.tab:hover { border-color: #b7c6f5; }
.tab.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(47, 91, 234, .3); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tip { background: #fff8e6; border: 1px solid #fde4a3; padding: 12px 16px; border-radius: 11px; margin-top: 8px; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1.4fr .8fr; gap: 28px; align-items: start; }
.contact-side .panel { margin-bottom: 18px; }
.captcha-box { background: #f6f8fd; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px 6px; margin-bottom: 16px; }
.captcha-box .field { margin-bottom: 8px; }
.captcha-box input { max-width: 180px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px; font-size: .95rem; cursor: pointer; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
input[type="file"] { padding: 10px; background: #fff; }
.field select { appearance: auto; }
@media (max-width: 860px) { .contact-wrap { grid-template-columns: 1fr; } }

/* ---------- Admin messages ---------- */
.msg { margin-bottom: 16px; }
.msg-new { border-color: #fde4a3; background: #fffdf5; }
.msg-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.msg-body { white-space: normal; margin: 0 0 14px; }
.msg-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- Membership pitch ("Join a global student community") ---------- */
.pitch { margin: 28px auto 0; max-width: 880px; background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
.pitch h2 { margin-bottom: 14px; }
.pitch p { margin: 0 0 14px; }
.pitch-lead { font-weight: 600; margin-bottom: 10px; }
.pitch-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 18px; }
.pitch-chips li { background: #eaf0ff; color: var(--primary-dark); font-weight: 600; font-size: .92rem; padding: 6px 14px; border-radius: 999px; }
.pitch-close { background: #fff8e6; border: 1px solid #fde4a3; border-radius: 12px; padding: 14px 16px; font-weight: 600; margin-top: 18px; }
.pitch-cta { text-align: center; margin: 20px 0 0 !important; }
.account-pitch { max-width: 560px; }
@media (max-width: 720px) { .pitch { padding: 24px 20px; } }
