:root {
  --brand: #1f4ea3;
  --brand2: #3978e0;
  --brand-light: #eef4ff;
  --green: #0e7c5a;
  --text: #15203b;
  --text-muted: #5a7090;
  --border: #dae6ff;
  --bg: #f4f7fe;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(16,43,95,.09);
  --shadow-hover: 0 14px 40px rgba(16,43,95,.16);
}

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

body {
  font-family: Manrope, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

.container {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;
}

.logo-wrap {
  display: flex; align-items: center; gap: 10px;
}

.logo-img { height: 45px; object-fit: contain; }

.logo-text {
  font-size: 18px; font-weight: 800; color: var(--brand);
  letter-spacing: -.3px;
}

.header-nav {
  display: flex; gap: 28px;
}

.header-nav a {
  font-size: 14px; font-weight: 700; color: var(--text-muted);
  transition: color .15s;
}

.header-nav a:hover { color: var(--brand); }

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0f2d6e 0%, #1f4ea3 55%, #2d6ec8 100%);
  padding: 90px 0 100px;
  color: #fff;
}

.hero-shape {
  position: absolute; bottom: -60px; right: -80px;
  width: 500px; height: 500px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  font-size: 12px; font-weight: 800; letter-spacing: 1.4px;
  text-transform: uppercase;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  padding: 6px 16px; margin-bottom: 24px;
  color: rgba(255,255,255,.9);
}

.hero-title {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800; line-height: 1.15;
  margin-bottom: 20px;
}

.hero-title .accent {
  color: #7eb3ff;
}

.hero-sub {
  font-size: 17px; color: rgba(255,255,255,.8);
  max-width: 560px; margin-bottom: 36px;
  line-height: 1.7;
}

.hero-cta {
  display: flex; gap: 14px; flex-wrap: wrap;
}

.btn {
  display: inline-flex; align-items: center;
  font-size: 15px; font-weight: 700;
  padding: 14px 28px; border-radius: 999px;
  transition: .18s ease;
}

.btn-primary {
  background: #fff; color: var(--brand);
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}

.btn-primary:hover {
  background: #eef4ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
}

.btn-secondary {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.35);
}

.btn-secondary:hover {
  background: rgba(255,255,255,.2);
  transform: translateY(-2px);
}

/* ── Projects ── */
.projects {
  padding: 72px 0 64px;
}

.section-label {
  font-size: 11px; font-weight: 800; letter-spacing: 1.4px;
  text-transform: uppercase; color: #7a9bc0;
  margin-bottom: 12px;
}

.section-title {
  font-size: 28px; font-weight: 800; color: #1a3e79;
  margin-bottom: 12px;
}

.projects-sub {
  font-size: 14px; color: var(--text-muted);
  margin: 0 0 28px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.project-card {
  position: relative;
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 20px;
  transition: .2s ease;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #bcd2f8;
}

.project-icon svg { width: 48px; height: 48px; }

.project-content { flex: 1; }

.project-tag {
  display: inline-block;
  font-size: 11px; font-weight: 800; letter-spacing: .8px;
  text-transform: uppercase;
  background: rgba(31,78,163,.1); color: var(--brand);
  border-radius: 999px; padding: 4px 12px;
  margin-bottom: 12px;
}

.project-title {
  font-size: 22px; font-weight: 800; color: #1a3e79;
  margin-bottom: 10px; line-height: 1.25;
}

.project-desc {
  font-size: 14px; color: var(--text-muted); line-height: 1.65;
  margin-bottom: 18px;
}

.project-features {
  display: flex; flex-wrap: wrap; gap: 8px;
}

.project-features span {
  font-size: 12px; font-weight: 700;
  background: var(--brand-light); color: var(--brand);
  border-radius: 999px; padding: 4px 12px;
}

.project-arrow {
  position: absolute; top: 28px; right: 28px;
  font-size: 22px; color: var(--brand);
  opacity: .4; transition: .2s;
}

.project-card:hover .project-arrow { opacity: 1; transform: translateX(4px); }

/* ── News ── */
.news-section {
  padding: 64px 0 80px;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.news-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 32px;
}

.all-news-link {
  font-size: 14px; font-weight: 700; color: var(--brand2);
  align-self: flex-end; margin-bottom: 2px;
  transition: .15s;
}

.all-news-link:hover { color: var(--brand); }

.news-top-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.news-card {
  background: var(--bg); border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(16,43,95,.06);
  overflow: hidden; display: flex; flex-direction: column;
  transition: .18s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(16,43,95,.13);
}

.news-card-img {
  width: 100%; height: 126px; overflow: hidden;
  background: #f0f4fb;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.news-card-img img { width: 100%; height: 100%; object-fit: contain; display: block; }

.news-card-placeholder { font-size: 16px; opacity: .35; }

.news-card-body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; background: #fff; }

.news-card-date {
  font-size: 11px; color: #9ab0d0; font-weight: 600; margin-bottom: 7px;
}

.news-card-title {
  font-size: 14px; font-weight: 800; color: #1a3e79;
  line-height: 1.4; margin-bottom: 10px; flex: 1;
}

.news-card-excerpt {
  font-size: 12px; color: var(--text-muted); line-height: 1.55; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.news-read-more { font-size: 12px; font-weight: 700; color: var(--brand2); }

/* rest rows */
.news-rest { display: flex; flex-direction: column; gap: 10px; }

.news-row {
  background: var(--bg); border-radius: 14px;
  border: 1px solid var(--border);
  display: flex; overflow: hidden;
  box-shadow: 0 3px 10px rgba(16,43,95,.05);
  transition: .18s ease;
}

.news-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(16,43,95,.11);
}

.news-row img { width: 120px; height: 88px; object-fit: cover; flex-shrink: 0; }

.news-row-placeholder {
  width: 80px; flex-shrink: 0;
  background: linear-gradient(135deg, #e8f0ff, #d0e2ff);
}

.news-row-body { padding: 12px 16px; display: flex; flex-direction: column; justify-content: center; }

.news-row-date { font-size: 11px; color: #9ab0d0; font-weight: 600; margin-bottom: 4px; }

.news-row-title { font-size: 14px; font-weight: 800; color: #1a3e79; line-height: 1.35; margin-bottom: 5px; }

.news-row-excerpt {
  font-size: 12px; color: var(--text-muted); line-height: 1.5; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.news-empty { text-align: center; padding: 60px 0; color: #9ab0d0; font-size: 15px; }

/* ── Inner pages ── */
.page-wrap {
  padding: 48px 0 80px;
  min-height: calc(100vh - 64px - 88px);
}

.back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--brand);
  padding: 8px 16px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--border);
  margin-bottom: 28px; transition: .15s;
}

.back-btn:hover { background: var(--brand-light); transform: translateX(-2px); }

.page-title {
  font-size: 32px; font-weight: 800; color: #1a3e79;
  margin: 0 0 28px;
}

.divider {
  border: none; border-top: 2px solid #e0eaff; margin: 0 0 24px;
}

.header-nav a.active { color: var(--brand); }

/* article */
.article-wrap { max-width: 1014px; }

.article-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 0 0 36px;
}

.article-hero-img {
  width: 100%; overflow: hidden;
  margin-bottom: 28px;
}

.article-hero-img img { width: 100%; max-height: 150px; object-fit: contain; display: block; background: #f0f4fb; }

.article-meta {
  font-size: 13px; color: #9ab0d0; font-weight: 600;
  margin-bottom: 12px; padding: 0 32px;
}

.article-title {
  font-size: 28px; font-weight: 800; color: #1a3e79;
  line-height: 1.3; margin: 0 0 28px; padding: 0 32px;
}

.article-body {
  font-size: 15px; color: var(--text); line-height: 1.75;
  padding: 0 32px;
}

.article-body p { margin: 0 0 16px; }
.article-body h2, .article-body h3 { color: #1a3e79; margin: 28px 0 12px; font-weight: 800; }
.article-body img { max-width: 100%; border-radius: 10px; margin: 16px 0; }
.article-body a { color: var(--brand2); text-decoration: underline; }
.article-body ul, .article-body ol { padding-left: 24px; margin: 0 0 16px; }
.article-body li { margin-bottom: 6px; }

/* ── Footer ── */
.site-footer {
  background: #0f1f47;
  padding: 32px 0;
  color: rgba(255,255,255,.7);
}

.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}

.footer-brand {
  display: flex; align-items: center; gap: 10px;
}

.footer-brand img { height: 28px; filter: brightness(0) invert(1); opacity: .8; }

.footer-brand span { font-size: 16px; font-weight: 800; color: #fff; }

.footer-links { display: flex; gap: 20px; }

.footer-links a {
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,.6);
  transition: color .15s;
}

.footer-links a:hover { color: #fff; }

.footer-copy { font-size: 12px; color: rgba(255,255,255,.4); }

.footer-made {
  color: rgba(255,255,255,.4); text-decoration: none;
  transition: color .15s;
}
.footer-made:hover { color: rgba(255,255,255,.8); }

/* ── Contact Modal ── */
.cm-overlay {
  position: fixed; inset: 0;
  background: rgba(3,8,18,.82);
  backdrop-filter: blur(6px);
  z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}

.cm-box {
  background: linear-gradient(150deg, #0b1a2e 0%, #0d2040 100%);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,.65), 0 0 0 1px rgba(42,130,210,.15);
  width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
}

.cm-header { padding: 1.75rem 1.75rem 0; }

.cm-title { font-size: 1.25rem; font-weight: 700; color: #e0f0ff; margin-bottom: .3rem; }

.cm-body { padding: 1.25rem 1.75rem; display: flex; flex-direction: column; gap: 1rem; }

.cm-field { display: flex; flex-direction: column; gap: .35rem; }

.cm-field label { font-size: .82rem; font-weight: 600; color: rgba(160,205,238,.8); letter-spacing: .02em; }

.cm-req { color: #5aadee; }

.cm-field input[type=text],
.cm-field input[type=email],
.cm-field input[type=tel] {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px; padding: .6rem .85rem;
  color: #daeeff; font-size: .92rem; outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.cm-field input::placeholder { color: rgba(120,170,210,.35); }

.cm-field input:focus {
  border-color: rgba(42,130,210,.55);
  box-shadow: 0 0 0 3px rgba(42,130,210,.12);
}

.cm-field input.cm-invalid {
  border-color: rgba(220,70,70,.7) !important;
  box-shadow: 0 0 0 3px rgba(220,70,70,.15) !important;
  background: rgba(220,70,70,.05) !important;
}

.cm-textarea {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px; padding: .6rem .85rem;
  color: #daeeff; font-size: .92rem;
  font-family: inherit; outline: none;
  resize: vertical; min-height: 90px;
  transition: border-color .15s, box-shadow .15s;
}
.cm-textarea::placeholder { color: rgba(120,170,210,.35); }
.cm-textarea:focus { border-color: rgba(42,130,210,.55); box-shadow: 0 0 0 3px rgba(42,130,210,.12); }
.cm-textarea.cm-invalid {
  border-color: rgba(220,70,70,.7) !important;
  box-shadow: 0 0 0 3px rgba(220,70,70,.15) !important;
  background: rgba(220,70,70,.05) !important;
}

.cm-error {
  background: rgba(220,60,60,.12);
  border: 1px solid rgba(220,60,60,.3);
  border-radius: 6px; padding: .55rem .85rem;
  color: #f08080; font-size: .85rem;
}

.cm-footer { display: flex; justify-content: flex-end; gap: .75rem; padding: 0 1.75rem 1.5rem; }

.cm-btn-cancel {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px; padding: .6rem 1.25rem;
  color: rgba(180,215,240,.75); font-size: .9rem;
  font-weight: 500; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.cm-btn-cancel:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.2); }

.cm-btn-submit {
  background: linear-gradient(135deg, #1e7dc8, #1360a0);
  border: none; border-radius: 8px;
  padding: .6rem 1.5rem; color: #fff;
  font-size: .9rem; font-weight: 600; cursor: pointer;
  box-shadow: 0 2px 12px rgba(20,96,160,.4);
  transition: opacity .15s, box-shadow .15s;
}
.cm-btn-submit:hover:not(:disabled) { opacity: .9; box-shadow: 0 4px 18px rgba(20,96,160,.55); }
.cm-btn-submit:disabled { opacity: .55; cursor: default; }

.cm-success {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  padding: 1.5rem .5rem .5rem; gap: .6rem;
}
.cm-success-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, #1e7dc8, #1360a0);
  color: #fff; font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(20,96,160,.4);
}
.cm-success-title { font-size: 1.1rem; font-weight: 700; color: #e0f0ff; }
.cm-success-sub { font-size: .88rem; color: rgba(160,205,238,.75); line-height: 1.5; }

/* ── Two-column news/events ── */
.news-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.news-col-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 20px;
}

.events-list { display: flex; flex-direction: column; gap: 10px; }

.event-row {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg); border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 3px 10px rgba(16,43,95,.05);
  padding: 14px 18px;
  transition: .18s ease;
}

.event-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(16,43,95,.11);
}

.event-date-badge {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 48px; height: 52px;
  background: var(--brand); border-radius: 10px;
  color: #fff; flex-shrink: 0;
}

.event-day { font-size: 18px; font-weight: 800; line-height: 1; }
.event-month { font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; opacity: .85; }

.event-body { flex: 1; }

.event-title { font-size: 14px; font-weight: 800; color: #1a3e79; line-height: 1.4; margin-bottom: 4px; }

.event-reg { font-size: 12px; font-weight: 700; color: var(--brand2); }

/* ── Events page ── */
.event-row-lg {
  padding: 18px 22px;
  align-items: flex-start;
}

.event-row-lg .event-date-badge {
  margin-top: 2px;
}

.event-excerpt {
  font-size: 13px; color: var(--text-muted); line-height: 1.55;
  margin: 6px 0 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ── Event article page ── */
.event-article-inner { padding: 32px 32px 36px; }

.event-article-top {
  display: flex; gap: 28px; align-items: flex-start;
  margin-bottom: 32px;
}

.event-article-img-wrap {
  flex-shrink: 0;
  width: 180px; height: 120px;
  background: #f0f4fb;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}

.event-article-img-wrap img {
  width: 100%; height: 100%; object-fit: contain;
}

.event-article-info { flex: 1; }

.event-article-body { border-top: 1px solid var(--border); padding-top: 28px; }

.event-article-cta { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--border); }

.btn-event-reg {
  display: inline-flex; align-items: center;
  background: var(--brand); color: #fff;
  font-size: 15px; font-weight: 700;
  padding: 14px 32px; border-radius: 999px;
  box-shadow: 0 4px 20px rgba(31,78,163,.35);
  transition: .18s ease;
}

.btn-event-reg:hover {
  background: var(--brand2);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(31,78,163,.45);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .projects-grid { grid-template-columns: 1fr; }
  .news-top-grid { grid-template-columns: 1fr 1fr; }
  .news-cols { grid-template-columns: 1fr; gap: 32px; }
  .event-article-top { flex-direction: column; }
  .event-article-img-wrap { width: 100%; height: 180px; }
}

@media (max-width: 600px) {
  /* Header */
  .header-inner { height: 64px; }
  .logo-img { height: 34px; }
  .header-nav { gap: 12px; }
  .header-nav a { font-size: 12px; }

  /* Hero */
  .hero { padding: 48px 0 56px; }
  .hero-badge { font-size: 10px; padding: 5px 12px; margin-bottom: 16px; }
  .hero-title { font-size: 28px; margin-bottom: 14px; }
  .hero-sub { font-size: 15px; margin-bottom: 24px; }
  .hero-cta { flex-direction: column; gap: 10px; }
  .btn { font-size: 14px; padding: 12px 22px; }

  /* Projects */
  .projects { padding: 48px 0 40px; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card { padding: 22px 18px; }
  .project-title { font-size: 18px; }

  /* News */
  .news-section { padding: 40px 0 56px; }
  .news-top-grid { grid-template-columns: 1fr; }
  .news-cols { grid-template-columns: 1fr; gap: 24px; }
  .news-col-header { flex-wrap: wrap; gap: 6px; }
  .news-row img { width: 80px; height: 64px; }
  .news-row-placeholder { width: 56px; }
  .news-row-title { font-size: 13px; }
  .news-row-excerpt { display: none; }

  /* Events */
  .event-row { padding: 12px 14px; gap: 12px; }
  .event-date-badge { min-width: 42px; height: 46px; border-radius: 8px; }
  .event-day { font-size: 15px; }
  .event-title { font-size: 13px; }

  /* Article */
  .page-wrap { padding: 28px 0 56px; }
  .article-wrap { max-width: 100%; }
  .article-title { font-size: 20px; padding: 0 18px; margin-bottom: 18px; }
  .article-meta { padding: 0 18px; }
  .article-body { padding: 0 18px; font-size: 14px; }
  .article-hero-img img { max-height: 120px; }

  /* Event article */
  .event-article-inner { padding: 20px 18px 28px; }
  .event-article-top { flex-direction: column; gap: 16px; }
  .event-article-img-wrap { width: 100%; height: 140px; }
  .event-article-cta { padding-top: 20px; margin-top: 20px; }
  .btn-event-reg { font-size: 14px; padding: 12px 22px; }

  /* Inner pages */
  .page-title { font-size: 24px; margin-bottom: 20px; }
  .back-btn { margin-bottom: 18px; }

  /* Footer */
  .site-footer { padding: 24px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-links { flex-wrap: wrap; gap: 12px; }
  .footer-brand img { height: 22px; }
}
