/* FKIP USK English Education — public site redesign */
:root {
  --navy: #102f59;
  --blue: #0878ee;
  --blue-dark: #075fc5;
  --gold: #eebd2e;
  --ink: #14243a;
  --muted: #667a94;
  --line: #e2eaf4;
  --surface: #f5f8fc;
  --white: #fff;
  --radius: 16px;
  --shadow: 0 12px 35px rgba(17, 47, 89, .09);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: #fff;
  font-family: "DM Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.site-header {
  position: relative; z-index: 20; background: rgba(255,255,255,.98);
  border-bottom: 1px solid #edf1f6;
}
.header-inner {
  width: min(1440px, calc(100% - 64px)); min-height: 94px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
}
.brand { display: flex; align-items: center; flex: 0 1 510px; min-width: 0; }
.brand img { width: min(100%, 510px); height: auto; max-height: 76px; object-fit: contain; object-position: left center; }
.main-nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(14px, 1.6vw, 28px); }
.main-nav > a {
  color: #263b56; font-size: 13px; font-weight: 700; white-space: nowrap;
  transition: color .2s ease;
}
.main-nav > a:hover { color: var(--blue); }
.main-nav .language-link {
  border: 1px solid #d9e4f1; border-radius: 9px; padding: 8px 12px;
  color: #225b9d; background: #fff;
}
.main-nav .language-link span { margin-left: 5px; }
.main-nav .nav-login { display: none; }
.mobile-menu-toggle { display: none; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px; }
.mobile-menu-toggle span { display: block; width: 22px; height: 2px; margin: 4px 0; background: var(--navy); border-radius: 2px; }
main { min-height: 45vh; }
.container { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
.hero {
  min-height: 470px; position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(112deg, #103461 0%, #155ba5 55%, #2478d1 100%);
}
.hero-photo {
  position: absolute; inset: 0; z-index: -2;
  background-image: url("/assets/images/hero/fkip-building.jpg");
  background-position: center 46%; background-size: cover;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(8,39,77,.92) 0%, rgba(10,56,105,.78) 42%, rgba(10,70,130,.24) 100%);
}
.hero-inner {
  width: min(1240px, calc(100% - 64px)); min-height: 470px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(270px, .75fr);
  align-items: center; gap: 50px; padding: 62px 0 78px;
}
.hero-copy { max-width: 690px; color: #fff; }
.eyebrow { margin: 0 0 13px; color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .2em; line-height: 1.5; text-transform: uppercase; }
.eyebrow.light { color: #d9eaff; }
.hero h1 { max-width: 690px; margin: 0; font-size: clamp(38px, 4.2vw, 58px); font-weight: 800; letter-spacing: -.045em; line-height: 1.08; }
.hero-copy p { max-width: 580px; margin: 20px 0 26px; color: rgba(255,255,255,.92); font-size: 16px; line-height: 1.75; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 42px; padding: 11px 18px; border: 1px solid #d9e4f1; border-radius: 10px;
  background: #fff; color: var(--navy); font-size: 13px; font-weight: 800; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(5,35,75,.13); }
.btn.primary { border-color: var(--blue); background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-dark); }
.btn.white { border-color: #fff; background: #fff; color: var(--navy); }
.btn.full { width: 100%; }
.hero-button { background: var(--blue); }
.hero-seal { position: relative; display: grid; place-items: center; min-height: 290px; }
.seal-glow { position: absolute; width: 300px; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.27); border-radius: 50%; box-shadow: 0 0 0 26px rgba(255,255,255,.035), 0 0 0 52px rgba(255,255,255,.025); }
.seal-card {
  position: relative; width: min(250px, 90%); min-height: 220px; padding: 35px 30px;
  display: flex; flex-direction: column; justify-content: center; gap: 9px;
  border: 1px solid rgba(255,255,255,.8); border-radius: 22px; color: var(--navy);
  background: linear-gradient(145deg, #fff, #e9f2ff); box-shadow: 0 25px 65px rgba(4,24,57,.2);
}
.seal-card::after { content: "✦"; position: absolute; right: 24px; top: 16px; color: #f4ca4b; font-size: 58px; line-height: 1; }
.seal-card span { font-size: 10px; font-weight: 900; letter-spacing: .18em; }
.seal-card strong { font-size: 25px; font-weight: 800; letter-spacing: -.04em; line-height: 1.15; }
.seal-card small { color: #617895; font-size: 11px; }
.feature-grid {
  position: relative; z-index: 2; margin-top: -32px; display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
.feature-card {
  min-height: 194px; padding: 24px 22px; border: 1px solid var(--line); border-radius: 15px;
  background: #fff; box-shadow: var(--shadow); transition: transform .22s ease, box-shadow .22s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(17,47,89,.13); }
.feature-icon {
  width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 17px;
  border-radius: 13px; background: #eaf3ff; color: var(--blue);
}
.feature-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h2 { margin: 0 0 8px; color: #142a45; font-size: 16px; font-weight: 800; letter-spacing: -.02em; line-height: 1.35; }
.feature-card p { margin: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.feature-card b { color: var(--blue); font-size: 11px; font-weight: 800; }
.news-section { padding-top: 72px; padding-bottom: 74px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-head .eyebrow { margin-bottom: 8px; }
.section-head h2 { margin: 0; color: #142a45; font-size: clamp(26px, 2.5vw, 34px); font-weight: 800; letter-spacing: -.04em; line-height: 1.2; }
.section-head > a { margin-bottom: 5px; color: var(--blue); font-size: 12px; font-weight: 800; white-space: nowrap; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.news-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 7px 24px rgba(17,47,89,.055); }
.news-card-image { display: block; overflow: hidden; aspect-ratio: 16 / 9; background: #e8f0f8; }
.news-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.news-card:hover .news-card-image img { transform: scale(1.035); }
.news-card-content { padding: 19px 20px 22px; }
.news-card-content > small { display: block; margin-bottom: 9px; color: #7b8ba0; font-size: 11px; font-weight: 600; }
.news-card-content h2, .news-card-content h3 { margin: 0 0 10px; color: #172b45; font-size: 17px; font-weight: 800; line-height: 1.35; letter-spacing: -.025em; }
.news-card-content h2 a:hover, .news-card-content h3 a:hover { color: var(--blue); }
.news-card-content p { margin: 0 0 13px; color: #63758d; font-size: 12px; line-height: 1.75; }
.read-more { display: inline-block; color: var(--blue); font-size: 12px; font-weight: 800; }
.image-placeholder { aspect-ratio: 16 / 9; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; color: #fff; background: linear-gradient(135deg, #154477, #2784dc); font-size: 20px; font-weight: 800; }
.image-placeholder small { color: #d9eaff; font-size: 11px; font-weight: 500; }
.empty-state { padding: 30px; border: 1px dashed #cdd9e8; border-radius: 14px; color: var(--muted); text-align: center; background: #f9fbfe; }
.cta-band { padding: 38px max(32px, calc((100% - 1240px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 30px; color: #fff; background: linear-gradient(105deg, #103461, #1766b6); }
.cta-band .eyebrow { margin-bottom: 8px; }
.cta-band h2 { margin: 0 0 5px; font-size: clamp(24px, 2.7vw, 34px); letter-spacing: -.035em; line-height: 1.2; }
.cta-band p { margin: 0; color: #d9eaff; font-size: 13px; }
.site-footer { padding: 35px 0; color: #5e718a; background: #f5f8fc; border-top: 1px solid #e8eef6; }
.footer-inner { width: min(1240px, calc(100% - 64px)); margin: 0 auto; display: flex; justify-content: space-between; gap: 30px; }
.footer-brand strong { color: var(--navy); font-size: 13px; }
.footer-brand p, .footer-note p { margin: 7px 0 0; font-size: 12px; line-height: 1.8; }
.footer-note { text-align: right; }
.footer-note span { color: #345b86; font-size: 12px; }
.page-section { padding-top: 64px; padding-bottom: 76px; }
.page-section > h1 { margin: 0 0 12px; font-size: clamp(32px, 4vw, 46px); line-height: 1.15; letter-spacing: -.04em; }
.lead { max-width: 760px; color: var(--muted); font-size: 17px; line-height: 1.8; }
.page-section .news-grid { margin-top: 30px; }
.article-layout { padding-top: 60px; padding-bottom: 80px; }
.article { max-width: 850px; margin: 0 auto; }
.back-link { display: inline-block; margin-bottom: 22px; color: var(--blue); font-size: 13px; font-weight: 700; }
.article h1 { margin: 12px 0 18px; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.15; letter-spacing: -.04em; }
.article-hero { width: 100%; max-height: 520px; margin: 26px 0; border-radius: 16px; object-fit: cover; }
.article-body { color: #344b66; font-size: 16px; line-height: 1.95; overflow-wrap: anywhere; }
.panel { border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow); }
.login-wrap { min-height: 62vh; padding: 65px 24px; display: grid; place-items: center; background: #f5f8fc; }
.login-panel { width: min(460px, 100%); padding: 34px; }
.login-panel h1 { margin: 0 0 8px; font-size: 30px; letter-spacing: -.04em; }
.login-panel > p { margin: 0 0 24px; color: var(--muted); }
label { display: block; margin-bottom: 17px; color: #344b66; font-size: 13px; font-weight: 700; }
input, textarea, select { width: 100%; margin-top: 7px; padding: 12px 13px; border: 1px solid #d5e0ed; border-radius: 9px; outline: none; color: var(--ink); background: #fff; }
input:focus, textarea:focus, select:focus { border-color: #68a9f3; box-shadow: 0 0 0 3px rgba(8,120,238,.12); }
.alert, .success { margin: 15px 0; padding: 12px 14px; border-radius: 9px; font-size: 13px; }
.alert { border: 1px solid #f1c6c6; color: #9a2525; background: #fff1f1; }
.success { border: 1px solid #bde8ce; color: #176b3b; background: #edfff3; }
.admin-layout { display: grid; grid-template-columns: 205px minmax(0, 1fr); min-height: 70vh; background: #f4f7fb; }
.admin-sidebar { padding: 25px 14px; color: #fff; background: #102541; }
.admin-logo { padding: 0 10px 24px; font-size: 16px; font-weight: 900; }
.admin-logo span { color: #f5c841; }
.admin-sidebar > a, .side-logout { display: block; width: 100%; margin: 4px 0; padding: 12px 11px; border: 0; border-radius: 8px; color: #dce8f7; background: transparent; text-align: left; font-size: 12px; font-weight: 700; cursor: pointer; }
.admin-sidebar > a:hover, .admin-sidebar > a.active { color: #fff; background: #216bc5; }
.admin-sidebar form { margin-top: 24px; }
.side-logout:hover { background: rgba(255,255,255,.1); }
.admin-main { min-width: 0; padding: 24px clamp(18px, 2.4vw, 36px) 45px; }
.admin-top { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 17px; border-bottom: 1px solid #dfe7f1; color: #71839a; font-size: 11px; }
.admin-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 25px 0; }
.admin-heading h1 { margin: 0; font-size: 30px; line-height: 1.2; letter-spacing: -.04em; }
.admin-heading p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-bottom: 18px; }
.stat { padding: 22px; }
.stat small { display: block; color: #71839a; font-size: 12px; font-weight: 700; }
.stat strong { display: block; margin-top: 7px; color: var(--navy); font-size: 30px; }
.recent { padding: 18px; }
.recent .section-head { margin-bottom: 12px; }
.recent .section-head h2 { font-size: 17px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { color: #74859a; background: #f7f9fc; font-size: 10px; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
th, td { padding: 13px 11px; border-bottom: 1px solid #e7edf5; }
td { color: #344b66; }
.status { display: inline-block; padding: 4px 8px; border-radius: 99px; font-size: 10px; font-weight: 800; }
.status.published { color: #176b3b; background: #e2f8eb; }
.status.draft { color: #8a5a06; background: #fff3d5; }
.actions { display: flex; align-items: center; gap: 12px; }
.actions form { display: inline; }
.actions button, .actions a { padding: 0; border: 0; color: var(--blue); background: none; font-size: 12px; font-weight: 700; cursor: pointer; }
.actions .text-danger { color: #c33131; }
.form-panel { max-width: 900px; padding: 25px; }
.form-panel small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 500; }
.form-actions { display: flex; justify-content: flex-end; padding-top: 5px; }
@media (max-width: 1100px) {
  .header-inner { width: min(100% - 40px, 1440px); gap: 20px; }
  .brand { flex-basis: 380px; }
  .brand img { max-height: 64px; }
  .main-nav { gap: 13px; }
  .main-nav > a { font-size: 12px; }
  .container, .hero-inner, .footer-inner { width: calc(100% - 48px); }
  .feature-grid { gap: 12px; }
  .feature-card { padding: 20px 17px; }
  .feature-card h2 { font-size: 14px; }
  .hero-inner { gap: 25px; }
}
@media (max-width: 820px) {
  .header-inner { min-height: 78px; width: calc(100% - 32px); }
  .brand { flex: 1 1 auto; max-width: calc(100% - 60px); }
  .brand img { width: 100%; max-height: 57px; }
  .mobile-menu-toggle { display: block; flex: 0 0 auto; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 13px 20px 20px;
    align-items: stretch; flex-direction: column; gap: 0; background: #fff;
    border-top: 1px solid var(--line); box-shadow: 0 16px 24px rgba(17,47,89,.1);
  }
  .main-nav.is-open { display: flex; }
  .main-nav > a { padding: 12px 10px; font-size: 13px; }
  .main-nav .language-link { align-self: flex-start; margin-top: 5px; }
  .hero, .hero-inner { min-height: 420px; }
  .hero-inner { grid-template-columns: 1fr; padding: 58px 0 74px; }
  .hero-copy { max-width: 650px; }
  .hero h1 { max-width: 620px; font-size: clamp(36px, 7vw, 52px); }
  .hero-copy p { max-width: 540px; font-size: 14px; }
  .hero-seal { display: none; }
  .hero-overlay { background: linear-gradient(90deg, rgba(8,39,77,.91), rgba(10,56,105,.65)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -28px; }
  .feature-card { min-height: 180px; }
  .news-section { padding-top: 55px; }
  .news-grid { gap: 15px; }
  .news-card-content { padding: 15px; }
  .news-card-content h2, .news-card-content h3 { font-size: 15px; }
  .cta-band { padding: 32px 24px; }
}
@media (max-width: 560px) {
  .header-inner { min-height: 72px; }
  .brand img { max-height: 48px; }
  .container, .hero-inner, .footer-inner { width: calc(100% - 36px); }
  .hero, .hero-inner { min-height: 440px; }
  .hero-inner { padding: 45px 0 65px; }
  .hero h1 { font-size: clamp(34px, 9.5vw, 43px); }
  .hero-copy p { font-size: 13px; line-height: 1.75; }
  .feature-grid { gap: 10px; }
  .feature-card { padding: 17px 14px; min-height: 190px; }
  .feature-icon { width: 39px; height: 39px; margin-bottom: 13px; }
  .feature-card h2 { font-size: 13px; }
  .feature-card p { font-size: 11px; }
  .feature-card b { font-size: 10px; }
  .news-section { padding-top: 47px; padding-bottom: 50px; }
  .section-head { align-items: flex-end; gap: 12px; }
  .section-head h2 { font-size: 27px; }
  .section-head > a { font-size: 10px; }
  .news-grid { grid-template-columns: 1fr; gap: 18px; }
  .news-card { display: grid; grid-template-columns: 38% minmax(0, 1fr); align-items: stretch; }
  .news-card-image, .news-card > .image-placeholder { aspect-ratio: auto; min-height: 100%; height: 100%; }
  .news-card-content { padding: 13px; }
  .news-card-content h2, .news-card-content h3 { font-size: 14px; }
  .news-card-content p { font-size: 11px; line-height: 1.55; }
  .news-card-content .read-more { font-size: 10px; }
  .cta-band { align-items: flex-start; flex-direction: column; padding: 29px 20px; }
  .footer-inner { flex-direction: column; gap: 20px; }
  .footer-note { text-align: left; }
  .page-section { padding-top: 42px; padding-bottom: 52px; }
  .lead { font-size: 15px; }
  .login-panel { padding: 25px 20px; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; padding: 12px; }
  .admin-logo { width: 100%; padding: 0 7px 7px; }
  .admin-sidebar > a, .side-logout { width: auto; margin: 0; padding: 9px; }
  .admin-sidebar form { margin: 0; }
  .admin-main { padding: 18px 13px 30px; }
  .admin-heading { align-items: flex-start; flex-direction: column; }
  .admin-heading h1 { font-size: 26px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { padding: 16px; }
  .form-panel { padding: 17px; }
}
