/* =====================================================================
   PEDO EDUCATION PORTAL — styles (extends style.css design tokens)
===================================================================== */

.edu-hero{
  background:linear-gradient(135deg,var(--navy-deep) 0%,var(--navy) 100%);
  padding:4rem 0 3rem; color:#fff;
}
.edu-hero h1{color:#fff; font-size:clamp(2rem,4vw,2.8rem); margin:.5rem 0 1rem;}
.edu-hero p{color:#DCE4EF; max-width:640px; font-size:1.05rem;}
.edu-hero-links{display:flex; gap:.75rem; flex-wrap:wrap; margin-top:1.5rem;}
.edu-hero-links a{
  display:inline-flex; align-items:center; gap:.5rem; background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.25);
  color:#fff; padding:.6rem 1.1rem; border-radius:999px; text-decoration:none; font-weight:600; font-size:.88rem;
}
.edu-hero-links a:hover{background:rgba(255,255,255,.2);}

.edu-stats-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:1rem;}
.edu-stat{background:var(--card); border:1px solid var(--border); border-radius:var(--radius-md); padding:1.25rem; text-align:center;}
.edu-stat .num{font-family:var(--font-display); font-size:1.9rem; font-weight:800; color:var(--navy);}
.edu-stat .lbl{color:var(--muted); font-size:.82rem; font-weight:600;}
@media (max-width:800px){ .edu-stats-grid{grid-template-columns:repeat(2,1fr);} }

.edu-uni-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:1.25rem;}
.edu-uni-card{
  background:var(--card); border:1px solid var(--border); border-radius:var(--radius-md); overflow:hidden;
  text-decoration:none; color:inherit; transition:transform .2s ease, box-shadow .2s ease; display:block;
}
.edu-uni-card:hover{transform:translateY(-4px); box-shadow:0 14px 28px rgba(11,37,69,.12);}
.edu-uni-cover{
  height:130px; background-size:cover; background-position:center; background-color:var(--bg);
  position:relative; display:flex; align-items:flex-end; padding:.75rem;
}
.edu-uni-logo-badge{
  width:44px; height:44px; border-radius:10px; background:#fff; padding:5px; object-fit:contain;
  box-shadow:0 4px 10px rgba(0,0,0,.15); border:2px solid #fff;
}
.edu-uni-card-body{padding:1.1rem 1.25rem 1.4rem; text-align:center;}
.edu-uni-card h3{font-size:1rem; margin-bottom:.2rem;}
.edu-uni-meta{color:var(--muted); font-size:.82rem; margin-bottom:.75rem;}

.edu-badge{display:inline-flex; align-items:center; gap:.3rem; font-size:.72rem; font-weight:700; padding:.3rem .7rem; border-radius:999px;}
.edu-badge-mou{background:#DEF7E7; color:#177A45;}
.edu-badge-progress{background:#FFF3DC; color:#9A6400;}

.row-2col{display:grid; grid-template-columns:1fr 1fr; gap:2.5rem;}
@media (max-width:800px){ .row-2col{grid-template-columns:1fr;} }
.edu-list-item{
  display:flex; gap:1rem; align-items:flex-start; padding:.9rem 0; border-bottom:1px solid rgba(255,255,255,.12);
  text-decoration:none; color:#fff;
}
.edu-list-item:hover{color:var(--amber);}
.edu-list-date{
  background:rgba(255,255,255,.1); border-radius:8px; padding:.4rem .6rem; font-size:.78rem; font-weight:700; flex-shrink:0; min-width:52px; text-align:center;
}
.text-muted-light{color:#B9C4D6; font-size:.82rem;}

/* ---- Directory filters ---- */
.edu-filter-bar{display:flex; gap:.6rem; flex-wrap:wrap; margin-bottom:2rem;}
.edu-filter-bar a, .edu-filter-bar select{
  padding:.55rem 1.1rem; border-radius:999px; border:1px solid var(--border); background:var(--card);
  color:var(--navy); text-decoration:none; font-weight:700; font-size:.85rem; cursor:pointer;
}
.edu-filter-bar a.active{background:var(--navy); border-color:var(--navy); color:#fff;}

/* ---- University profile ---- */
.edu-profile-header{
  background:linear-gradient(135deg,var(--navy-deep),var(--navy)); color:#fff; padding:3rem 0 2rem; position:relative;
}
.edu-profile-header-inner{display:flex; gap:1.5rem; align-items:center; flex-wrap:wrap;}
.edu-profile-logo{width:96px; height:96px; object-fit:contain; background:#fff; border-radius:14px; padding:10px;}
.edu-profile-header h1{color:#fff; margin:.2rem 0;}
.edu-profile-meta{display:flex; gap:.6rem; flex-wrap:wrap; margin-top:.5rem;}
.edu-profile-meta span{background:rgba(255,255,255,.12); padding:.35rem .8rem; border-radius:999px; font-size:.8rem; font-weight:600;}

.edu-tabs{display:flex; gap:.4rem; flex-wrap:wrap; border-bottom:1px solid var(--border); margin-bottom:2rem; overflow-x:auto;}
.edu-tabs button{
  background:none; border:none; padding:.8rem 1rem; font-weight:700; color:var(--muted); border-bottom:3px solid transparent;
  cursor:pointer; font-family:var(--font-body); font-size:.86rem; white-space:nowrap;
}
.edu-tabs button.active{color:var(--navy); border-color:var(--amber);}
.edu-tab-panel{display:none;}
.edu-tab-panel.active{display:block;}

.edu-progress-bar{background:var(--border); border-radius:999px; height:10px; overflow:hidden; margin:.5rem 0;}
.edu-progress-fill{background:linear-gradient(90deg,var(--amber),var(--amber-deep)); height:100%; border-radius:999px;}

.edu-info-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:1rem;}
.edu-info-item{background:var(--card); border:1px solid var(--border); border-radius:10px; padding:1rem;}
.edu-info-item .k{font-size:.75rem; color:var(--muted); text-transform:uppercase; letter-spacing:.03em; font-weight:700;}
.edu-info-item .v{font-size:.95rem; margin-top:.2rem;}

.edu-empty{text-align:center; color:var(--muted); padding:2.5rem 1rem; background:var(--bg); border-radius:12px;}

.edu-drc-card, .edu-supervisor-card{
  background:var(--card); border:1px solid var(--border); border-radius:var(--radius-md); padding:1.5rem;
  text-decoration:none; color:inherit; display:block; transition:transform .2s ease;
}
.edu-drc-card:hover, .edu-supervisor-card:hover{transform:translateY(-3px);}
.edu-supervisor-card{text-align:center;}
.edu-supervisor-photo{width:80px; height:80px; border-radius:50%; object-fit:cover; margin:0 auto .75rem; background:var(--bg);}

/* ---- Prominent photo strip (shown right below the profile header) ---- */
.edu-photo-strip{display:grid; grid-template-columns:2fr 1fr 1fr; grid-template-rows:1fr 1fr; gap:.6rem; height:280px;}
.edu-photo-strip-item{grid-row:1/3; border-radius:var(--radius-md); overflow:hidden; display:block;}
.edu-photo-strip-item:nth-child(2){grid-row:auto;}
.edu-photo-strip-item:nth-child(3){grid-row:auto;}
.edu-photo-strip-item:nth-child(n+4){display:none;}
.edu-photo-strip-item img{width:100%; height:100%; object-fit:cover; display:block; transition:transform .3s ease;}
.edu-photo-strip-item:hover img{transform:scale(1.04);}
@media (max-width:720px){
  .edu-photo-strip{grid-template-columns:1fr 1fr; height:auto;}
  .edu-photo-strip-item{grid-row:auto !important; height:140px;}
  .edu-photo-strip-item:nth-child(n+4){display:block;}
  .edu-photo-strip-item:nth-child(n+5){display:none;}
}
