/* EduIndia Directory — Complete Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
.edu-page { font-family: 'Plus Jakarta Sans', sans-serif; color: #0f172a; min-height: 60vh; }

/* ── HERO (SMALL) ─────────────────────────────────────────────────────────── */
.edu-hero-sm { background: linear-gradient(160deg, #0c1a3a, #0a3d56); padding: 64px 20px 72px; }
.edu-hero-sm-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.edu-hero-sm h1 { color: #fff; font-size: 36px; font-weight: 900; margin-bottom: 10px; }
.edu-hero-sm p  { color: #94a3b8; font-size: 16px; margin-bottom: 28px; }

/* ── SEARCH BAR ───────────────────────────────────────────────────────────── */
.edu-search-bar { display: flex; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: 14px; padding: 8px 8px 8px 18px; gap: 10px; align-items: center; backdrop-filter: blur(10px); }
.edu-search-bar input { flex: 1; background: none; border: none; outline: none; font-size: 15px; color: #fff; font-family: inherit; }
.edu-search-bar input::placeholder { color: #64748b; }
.edu-search-icon { font-size: 18px; }

/* ── FILTER BAR ───────────────────────────────────────────────────────────── */
.edu-filter-bar { background: #fff; box-shadow: 0 2px 16px rgba(0,0,0,0.07); position: sticky; top: 0; z-index: 50; padding: 14px 20px; margin-top: -20px; border-radius: 16px 16px 0 0; }
.edu-filter-inner { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.edu-filter-inner select { padding: 9px 14px; border-radius: 10px; border: 1px solid #e2e8f0; font-size: 14px; font-weight: 600; color: #334155; background: #f8faff; cursor: pointer; outline: none; font-family: inherit; }
.edu-filter-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.edu-count-badge { font-size: 13px; color: #64748b; font-weight: 600; }

/* ── DIRECTORY BODY ───────────────────────────────────────────────────────── */
.edu-directory-body { max-width: 1100px; margin: 0 auto; padding: 32px 20px 60px; }

/* ── GRID ─────────────────────────────────────────────────────────────────── */
.edu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

/* ── CARDS ────────────────────────────────────────────────────────────────── */
.edu-card { background: #fff; border-radius: 16px; padding: 22px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); border: 1px solid #e0f2fe; transition: all .2s; }
.edu-inst-card { cursor: pointer; position: relative; overflow: hidden; }
.edu-inst-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #0ea5e9, #0d9488); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.edu-inst-card:hover::after { transform: scaleX(1); }
.edu-inst-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(14,165,233,0.13); border-color: #bae6fd; }
.edu-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.edu-inst-name { font-weight: 800; font-size: 17px; color: #0f172a; margin-bottom: 5px; }
.edu-inst-loc  { font-size: 13px; color: #64748b; margin-bottom: 4px; }
.edu-inst-meta { font-size: 12px; color: #94a3b8; margin-bottom: 8px; }
.edu-inst-desc { font-size: 13px; color: #475569; line-height: 1.6; margin-bottom: 14px; }
.edu-inst-rating { font-size: 13px; font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.edu-stars { color: #f59e0b; letter-spacing: 1px; }
.edu-card-footer { display: flex; justify-content: space-between; align-items: center; }
.edu-featured-badge { background: #fef3c7; color: #b45309; border-radius: 50px; padding: 3px 10px; font-size: 11px; font-weight: 700; }

/* ── BADGES ───────────────────────────────────────────────────────────────── */
.edu-badge { border-radius: 50px; padding: 3px 12px; font-size: 12px; font-weight: 700; display: inline-block; }
.edu-badge-warn { background: #fef3c7; color: #b45309; }

/* ── BUTTONS ──────────────────────────────────────────────────────────────── */
.edu-btn-primary { background: linear-gradient(135deg, #0ea5e9, #0d9488); color: #fff; border: none; padding: 11px 22px; border-radius: 10px; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; display: inline-block; font-family: inherit; transition: all .2s; }
.edu-btn-primary:hover { opacity: .9; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(14,165,233,0.3); color: #fff; }
.edu-btn-outline { background: transparent; color: #0ea5e9; border: 2px solid #0ea5e9; padding: 10px 22px; border-radius: 10px; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; display: inline-block; font-family: inherit; transition: all .2s; }
.edu-btn-outline:hover { background: #0ea5e9; color: #fff; }
.edu-btn-outline.edu-btn-block { display: block; text-align: center; margin-top: 12px; }
.edu-btn-sm { background: #f1f5f9; color: #334155; border: none; padding: 6px 14px; border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: none; font-family: inherit; transition: all .2s; }
.edu-btn-sm:hover { background: #e0f2fe; color: #0ea5e9; }
.edu-btn-success { background: #dcfce7 !important; color: #16a34a !important; }
.edu-btn-danger  { background: #fee2e2 !important; color: #dc2626 !important; }
.edu-btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 12px; }

/* ── PAGINATION ───────────────────────────────────────────────────────────── */
.edu-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.edu-page-btn { background: #fff; border: 1px solid #e2e8f0; color: #334155; padding: 8px 14px; border-radius: 8px; font-weight: 700; cursor: pointer; transition: all .2s; }
.edu-page-btn.active, .edu-page-btn:hover { background: linear-gradient(135deg, #0ea5e9, #0d9488); color: #fff; border-color: transparent; }

/* ── DETAIL PAGE ──────────────────────────────────────────────────────────── */
.edu-detail-hero { background: linear-gradient(160deg, #0c1a3a, #0a3d56); padding: 64px 20px; }
.edu-detail-hero-inner { max-width: 900px; margin: 0 auto; }
.edu-detail-hero h1 { color: #fff; font-size: 36px; font-weight: 900; margin: 10px 0 6px; }
.edu-detail-loc { color: #94a3b8; font-size: 15px; margin-bottom: 10px; }
.edu-detail-body { max-width: 1100px; margin: 32px auto; padding: 0 20px 60px; display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
.edu-detail-main { display: flex; flex-direction: column; gap: 20px; }
.edu-detail-sidebar { display: flex; flex-direction: column; gap: 16px; }
.edu-info-card h3 { font-weight: 800; font-size: 16px; margin-bottom: 16px; color: #0f172a; }
.edu-info-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f1f5f9; font-size: 14px; gap: 12px; }
.edu-info-label { color: #64748b; font-weight: 600; flex-shrink: 0; }
.edu-info-val { color: #0f172a; text-align: right; word-break: break-word; }
.edu-info-val a { color: #0ea5e9; text-decoration: none; }

/* ── REVIEW SECTION ───────────────────────────────────────────────────────── */
.edu-review-form { background: #f8faff; border-radius: 12px; padding: 18px; margin-bottom: 20px; }
.edu-review-form h4 { font-weight: 800; margin-bottom: 12px; }
.edu-review-form textarea { width: 100%; padding: 10px 14px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 14px; font-family: inherit; resize: vertical; margin: 10px 0; outline: none; }
.edu-stars-input .star { font-size: 28px; color: #d1d5db; cursor: pointer; transition: color .15s; }
.edu-stars-input .star:hover, .edu-stars-input .star.filled { color: #f59e0b; }
.edu-review-item { padding: 16px 0; border-bottom: 1px solid #f1f5f9; }
.edu-review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.edu-review-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg,#0ea5e9,#0d9488); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; flex-shrink: 0; }
.edu-review-name { font-weight: 700; font-size: 14px; }
.edu-review-date { margin-left: auto; font-size: 12px; color: #94a3b8; }
.edu-review-text { font-size: 14px; color: #475569; line-height: 1.6; }

/* ── SUBMIT FORM ──────────────────────────────────────────────────────────── */
.edu-submit-wrap { max-width: 860px; margin: 0 auto; padding: 40px 20px 60px; }
.edu-submit-header { margin-bottom: 28px; }
.edu-submit-header h1 { font-size: 28px; font-weight: 900; margin-bottom: 6px; }
.edu-submit-header p  { color: #64748b; font-size: 15px; }
.edu-submit-card { padding: 32px; }
.edu-form-section { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid #f1f5f9; }
.edu-form-section:last-of-type { border-bottom: none; }
.edu-form-section-title { font-weight: 800; font-size: 16px; color: #0f172a; margin-bottom: 18px; }
.edu-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.edu-form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.edu-form-group label { font-weight: 600; font-size: 14px; color: #334155; }
.edu-form-group input,
.edu-form-group select,
.edu-form-group textarea { padding: 11px 14px; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 14px; font-family: inherit; outline: none; transition: border-color .2s; background: #f8faff; }
.edu-form-group input:focus,
.edu-form-group select:focus,
.edu-form-group textarea:focus { border-color: #0ea5e9; background: #fff; }
.edu-form-group textarea { resize: vertical; }
.req { color: #dc2626; }
.edu-form-actions { display: flex; gap: 12px; align-items: center; margin-top: 24px; }
.edu-form-msg { padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; margin-top: 12px; }
.edu-msg-success { background: #dcfce7; color: #16a34a; }
.edu-msg-error   { background: #fee2e2; color: #dc2626; }

/* ── DASHBOARD ────────────────────────────────────────────────────────────── */
.edu-dashboard-wrap { display: grid; grid-template-columns: 260px 1fr; min-height: 80vh; max-width: 1200px; margin: 0 auto; padding: 32px 20px 60px; gap: 28px; }
.edu-dashboard-sidebar { display: flex; flex-direction: column; gap: 16px; }
.edu-user-card { background: linear-gradient(135deg, #0ea5e9, #0d9488); border-radius: 16px; padding: 24px; text-align: center; color: #fff; }
.edu-user-avatar { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 900; margin: 0 auto 12px; }
.edu-user-name  { font-weight: 800; font-size: 16px; }
.edu-user-email { font-size: 13px; opacity: .8; margin-top: 4px; }
.edu-dash-nav { background: #fff; border-radius: 14px; padding: 10px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); display: flex; flex-direction: column; gap: 4px; }
.edu-dash-link { display: block; padding: 11px 16px; border-radius: 10px; text-decoration: none; color: #334155; font-weight: 600; font-size: 14px; transition: all .2s; }
.edu-dash-link:hover, .edu-dash-link.active { background: #e0f2fe; color: #0ea5e9; }
.edu-logout { color: #dc2626 !important; }
.edu-logout:hover { background: #fee2e2 !important; }
.edu-dashboard-main { display: flex; flex-direction: column; gap: 0; }
.edu-tab-content { display: none; }
.edu-tab-content.active { display: block; }
.edu-dash-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.edu-dash-header h2 { font-size: 22px; font-weight: 900; }
.edu-dash-header h3 { font-size: 18px; font-weight: 800; }

/* ── USER LISTINGS ────────────────────────────────────────────────────────── */
.edu-listing-row { background: #fff; border: 1px solid #e0f2fe; border-radius: 12px; padding: 16px 20px; display: flex; align-items: center; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.edu-listing-info { flex: 1; min-width: 180px; }
.edu-listing-name { font-weight: 800; font-size: 15px; color: #0f172a; }
.edu-listing-meta { font-size: 13px; color: #64748b; margin-top: 3px; }
.edu-listing-status { flex-shrink: 0; }
.edu-listing-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── ADMIN STATS GRID ─────────────────────────────────────────────────────── */
.edu-stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 16px; margin-bottom: 8px; }
.edu-stat-card { background: #fff; border-radius: 14px; padding: 20px; text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,0.06); border: 1px solid #e0f2fe; }
.edu-stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin: 0 auto 10px; }
.edu-stat-val { font-size: 28px; font-weight: 900; margin-bottom: 4px; }
.edu-stat-label { font-size: 13px; color: #64748b; font-weight: 600; }

/* ── ADMIN TABLE ──────────────────────────────────────────────────────────── */
.edu-admin-table-wrap { overflow-x: auto; background: #fff; border-radius: 14px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); border: 1px solid #e0f2fe; }
.edu-admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.edu-admin-table th { background: #f8faff; padding: 12px 16px; text-align: left; font-weight: 700; color: #334155; border-bottom: 1px solid #e2e8f0; }
.edu-admin-table td { padding: 14px 16px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.edu-admin-table tr:last-child td { border-bottom: none; }
.edu-admin-table tr:hover td { background: #f8faff; }
.edu-admin-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.edu-admin-search-input { padding: 9px 14px; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 14px; outline: none; font-family: inherit; }

/* ── AUTH WALL ────────────────────────────────────────────────────────────── */
.edu-auth-wall { display: flex; align-items: center; justify-content: center; min-height: 60vh; padding: 20px; }
.edu-auth-wall .edu-card { max-width: 420px; width: 100%; padding: 40px; }
.edu-auth-wall h2 { font-size: 24px; font-weight: 900; margin-bottom: 12px; }
.edu-auth-wall p { color: #64748b; margin-bottom: 24px; }

/* ── MISC ─────────────────────────────────────────────────────────────────── */
.edu-loading { text-align: center; padding: 48px; color: #64748b; font-size: 16px; }
.edu-empty   { text-align: center; padding: 48px 20px; color: #64748b; }
.edu-empty p { margin-bottom: 16px; }
.edu-muted   { color: #94a3b8; }
.edu-text-center { text-align: center; }
.edu-card h2 { font-weight: 900; font-size: 20px; margin-bottom: 16px; color: #0f172a; }

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .edu-detail-body   { grid-template-columns: 1fr; }
  .edu-dashboard-wrap{ grid-template-columns: 1fr; }
  .edu-form-row      { grid-template-columns: 1fr; }
  .edu-hero-sm h1    { font-size: 26px; }
  .edu-search-bar    { flex-wrap: wrap; }
  .edu-filter-inner  { flex-direction: column; align-items: stretch; }
  .edu-filter-right  { flex-direction: column; }
}
