/* ==========================================================================
   Cổng Thông Tin Tuyển Sinh Du Học Đài Loan — style.css
   Class prefix "adp" được giữ nguyên để tránh xung đột với theme/plugin khác.
   ========================================================================== */

*{ box-sizing: border-box; }
html, body{ margin: 0; padding: 0; }

:root{
  --bg:#f6f8fc;
  --ink:#0f172a;
  --muted:#94a3b8;
  --muted2:#cbd5e1;
  --card:#ffffff;
  --border: rgba(15,23,42,.10);
  --border2: rgba(15,23,42,.08);
  --shadow: 0 18px 46px rgba(15,23,42,.10);
  --shadow2: 0 12px 30px rgba(15,23,42,.08);
  --radius: 18px;

  --navy1:#3b4250;
  --navy2:#2f3642;
  --blue:#2563eb;
}

.adpPage{
  font-family:"Be Vietnam Pro", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* HERO SECTION (Gradient Xanh & Lượn Sóng) */
.adpHero{
  background: radial-gradient(1200px 600px at 50% 0%, rgba(255,255,255,.15), rgba(255,255,255,0) 60%),
              linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #3b82f6 100%);
  padding: 86px 18px 110px;
  position: relative;
  overflow: hidden;
}
.adpHero__inner{
  width: min(980px, calc(100% - 24px));
  margin: 0 auto;
  text-align:center;
  position: relative;
  z-index: 10;
}
.adpHero__title{
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.adpHero__title span{
  color: #60a5fa;
  font-weight: 900;
  text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.adpHero__sub{
  margin: 18px auto 0;
  max-width: 760px;
  color: rgba(255,255,255,.85);
  font-weight: 500;
  line-height: 1.75;
  font-size: 16px;
}

/* Lượn Sóng (Wave) */
.adpHero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 1;
}
.adpHero__wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}
@media (min-width: 768px) {
  .adpHero__wave svg {
    height: 110px;
  }
}

/* Search */
.adpSearch{
  margin: 28px auto 0;
  width: min(680px, 100%);
  display:flex;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(10px);
}
.adpSearch__input{
  flex: 1;
  height: 48px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.97);
  padding: 0 14px;
  font-weight: 600;
  outline: none;
}
.adpSearch__input::placeholder{ color:#94a3b8; font-weight: 500; }
.adpSearch__btn{
  height: 48px;
  border-radius: 10px;
  border: 0;
  padding: 0 18px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  display:flex;
  align-items:center;
  gap: 8px;
  cursor:pointer;
  box-shadow: 0 12px 26px rgba(37,99,235,.28);
  transition: .2s ease;
  white-space: nowrap;
}
.adpSearch__btn:hover{ transform: translateY(-1px); }

/* FILTERS */
.adpFiltersWrap{
  background: #fff;
  border-bottom: 1px solid rgba(15,23,42,.06);
  padding: 18px 18px;
  position: relative;
  z-index: 10;
}
.adpFilters{
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content:center;
}
.adpSelectLabel{display:flex;align-items:center;gap:8px;color:#334155;font-size:13px;font-weight:700}
.adpSelectLabel select{height:42px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;padding:0 34px 0 12px;color:#0f172a;font:inherit}
.adpResultHead{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 18px}
.adpResultHead h2{margin:0;font-size:24px;color:#0f172a}
.adpResultHead span{color:#64748b;font-weight:700;font-size:14px}
.adpPill{
  border: 1px solid rgba(148,163,184,.55);
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 14px;
  cursor:pointer;
  transition: .18s ease;
}
.adpPill:hover{ transform: translateY(-1px); }
.adpPill.is-active{
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 10px 22px rgba(37,99,235,.22);
  font-weight: 700;
}

/* MAIN GRID */
.adpMain{
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  padding: 26px 0 80px;
}
.adpGrid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.adpCard{
  background: var(--card);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
  overflow: hidden;
  display:flex;
  flex-direction: column;
  min-height: 420px;
}

.adpCard__media{
  position: relative;
  aspect-ratio: 16/9;
  background: #e5e7eb;
}
.adpCard__img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.adpBadge{
  position:absolute;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 12px;
  color:#fff;
  box-shadow: 0 10px 20px rgba(15,23,42,.16);
}
.adpStatus{position:absolute;right:12px;top:12px;padding:6px 10px;border-radius:999px;color:#fff;font-weight:800;font-size:12px;box-shadow:0 10px 20px rgba(15,23,42,.16)}
.adpStatus--open{background:#15803d}.adpStatus--closing{background:#dc2626}.adpStatus--upcoming{background:#2563eb}.adpStatus--unknown{background:#64748b}.adpStatus--closed{background:#334155}
.adpBadge--blue{ background:#2563eb; }
.adpBadge--blue2{ background:#1d4ed8; }
.adpBadge--purple2{ background:#7c3aed; }
.adpBadge--orange{ background:#ea580c; }
.adpBadge--orange2{ background:#f97316; }
.adpBadge--green{ background:#16a34a; }

.adpCard__body{
  padding: 18px 18px 16px;
  display:flex;
  flex-direction: column;
  gap: 10px;
  flex:1;
}
.adpCard__title{
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 19px;
  color: var(--ink);
  line-height: 1.25;
}
.adpCard__desc{
  margin: 0;
  color: #64748b;
  font-weight: 500;
  font-size: 14.5px;
  line-height: 1.75;
  min-height: 48px;
}

.adpChips{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.adpChip{
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 12px;
  border: 1px solid rgba(15,23,42,.06);
}
.adpChip--green{ background:#dcfce7; color:#166534; }
.adpChip--amber{ background:#fff7ed; color:#9a3412; }
.adpChip--mint{ background:#ecfeff; color:#155e75; }
.adpChip--purple{ background:#f3e8ff; color:#6d28d9; }
.adpChip--pink{ background:#ffe4e6; color:#be123c; }

.adpChip--blue3{ background:#dbeafe; color:#1d4ed8; }
.adpChip--green2{ background:#ecfccb; color:#365314; }
.adpChip--pink2{ background:#ffe4e6; color:#be123c; }
.adpChip--amber2{ background:#fef9c3; color:#854d0e; }
.adpChip--mint2{ background:#dcfce7; color:#166534; }
.adpChip--blue4{ background:#e0f2fe; color:#075985; }

.adpBtn{
  margin-top: auto;
  display:flex;
  align-items:center;
  justify-content:center;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,.6);
  color: #0f172a;
  font-weight: 700;
  text-decoration:none;
  background: #fff;
  transition: .18s ease;
}
.adpBtn:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15,23,42,.10);
}

.adpEmpty{
  margin: 18px auto 0;
  text-align:center;
  color: #64748b;
  font-weight: 600;
  padding: 18px 14px;
}

.adpLoading{
  margin: 18px auto 0;
  text-align:center;
  color: #64748b;
  font-weight: 600;
  padding: 18px 14px;
}

/* Server-rendered directory: crawlable internal links in the first response. */
.adpDirectory{background:#fff;border-top:1px solid #e2e8f0;padding:46px 18px}
.adpDirectory__inner{width:min(1180px,calc(100% - 24px));margin:0 auto}
.adpDirectory h2{margin:0;color:#0f172a;font:800 25px/1.3 "Be Vietnam Pro",system-ui,sans-serif}
.adpDirectory p{margin:8px 0 20px;color:#64748b;font:500 14px/1.6 "Be Vietnam Pro",system-ui,sans-serif}
.adpDirectory__intakes{display:flex;flex-wrap:wrap;gap:9px;margin:-4px 0 22px}.adpDirectory__intakes a{padding:8px 12px;border:1px solid #bfdbfe;border-radius:999px;background:#eff6ff;font-weight:700}
.adpDirectory ul{margin:0;padding:0;list-style:none;columns:2;column-gap:32px}
.adpDirectory li{break-inside:avoid;margin:0 0 9px}
.adpDirectory a{color:#1d4ed8;text-decoration:none;font:600 13px/1.55 "Be Vietnam Pro",system-ui,sans-serif}
.adpDirectory a:hover{text-decoration:underline}

/* PAGER */
.adpPager{
  margin: 18px auto 0;
  display:flex;
  gap: 8px;
  justify-content:center;
  align-items:center;
  flex-wrap: wrap;
  padding: 6px 0 0;
}
.adpPageBtn{
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,.55);
  background: #fff;
  color: #0f172a;
  font-weight: 700;
  cursor:pointer;
  transition: .18s ease;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  user-select:none;
}
.adpPageBtn:hover{ transform: translateY(-1px); box-shadow: 0 10px 20px rgba(15,23,42,.08); }
.adpPageBtn.is-active{
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 10px 22px rgba(37,99,235,.22);
}
.adpPageBtn:disabled{
  opacity: .45;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
}

@media (max-width: 1024px){
  .adpGrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px){
  .adpSearch{ flex-direction: column; }
  .adpSearch__btn{ width: 100%; justify-content:center; }
  .adpGrid{ grid-template-columns: 1fr; }
  .adpFilters{justify-content:stretch}.adpSelectLabel{width:100%;justify-content:space-between}.adpSelectLabel select{width:60%}
  .adpResultHead{align-items:flex-start;flex-direction:column}
  .adpDirectory ul{columns:1}
}

/* ==========================================================================
   CTA "Đăng Ký Nhận Thông Tin Tuyển Sinh" — chuyển từ vị trí lỗi (sau </html>)
   thành section hợp lệ trước </body>.
   ========================================================================== */
.adpRegisterHeader{
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, #1e3a8a, #4338ca);
  padding: 80px 20px;
  text-align: center;
  color: #ffffff;
}

.adpRegisterHeader__inner{
  max-width: 900px;
  margin: 0 auto;
}

.adpRegisterHeader__title{
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
  margin: 0;
  letter-spacing: -0.02em;
}

.adpRegisterHeader__subtitle{
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 600;
  opacity: 0.9;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.adpRegisterHeader__cta{
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: #ffffff;
  color: #1e3a8a;
  font-weight: 800;
  text-decoration: none;
  transition: .18s ease;
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
}
.adpRegisterHeader__cta:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0,0,0,.22);
}

@media (max-width: 768px){
  .adpRegisterHeader{
    padding: 60px 16px;
  }
}
