/* ============================================================
   NovaTech CMS — Modern Blue Theme
   ============================================================ */
:root {
  --blue-900: #0b1e4b;
  --blue-800: #10306f;
  --blue-700: #1442a0;
  --blue-600: #1e5eea;
  --blue-500: #2f74ff;
  --blue-400: #5b93ff;
  --blue-100: #e6efff;
  --blue-50:  #f2f7ff;
  --cyan:     #22d3ee;
  --ink:      #16223b;
  --muted:    #5b6a86;
  --bg:       #f6f9ff;
  --card:     #ffffff;
  --border:   #dfe8f7;
  --green:    #16a34a;
  --red:      #dc2626;
  --amber:    #d97706;
  --radius:   16px;
  --shadow:   0 10px 30px rgba(20, 66, 160, .10);
  --shadow-lg:0 20px 50px rgba(11, 30, 75, .18);
  --grad:     linear-gradient(135deg, var(--blue-700) 0%, var(--blue-600) 55%, #3b82f6 100%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}
img { max-width: 100%; }
a { color: var(--blue-600); }
.ic { vertical-align: -0.18em; }

/* ---------- Top bar ---------- */
.topbar { background: var(--blue-900); color: #bcd0f7; font-size: .78rem; }
.topbar-inner { max-width: 1180px; margin: 0 auto; padding: 6px 22px; display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { max-width: 1300px; margin: 0 auto; padding: 10px 22px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { width: 42px; height: 42px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 1.12rem; color: var(--blue-800); letter-spacing: .2px; }
.brand-sub { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; }
.brand.light .brand-name { color: #fff; }
.brand.light .brand-sub { color: #9db4e8; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; flex-wrap: wrap; }
.main-nav a { display: block; color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 600; padding: 9px 13px; border-radius: 10px; }
.main-nav a:hover { background: var(--blue-100); color: var(--blue-700); }
.main-nav a.active { color: var(--blue-600); background: var(--blue-50); }
.nav-cta { background: var(--grad); color: #fff !important; box-shadow: var(--shadow); margin-left: 8px; }
.nav-cta:hover { filter: brightness(1.08); }
.nav-toggle { display: none; background: none; border: none; color: var(--blue-800); cursor: pointer; padding: 6px; }
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav ul { display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--border); flex-direction: column; align-items: stretch; padding: 10px 16px 16px; box-shadow: var(--shadow-lg); }
  .main-nav ul.open { display: flex; }
}

/* ---------- Hero slider ---------- */
.hero-slider { position: relative; overflow: hidden; background: var(--blue-900); }
.slide { display: none; position: relative; min-height: 480px; }
.slide.active { display: block; }
.slide img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.slide::after { content:''; position:absolute; inset:0; background: linear-gradient(120deg, rgba(11,30,75,.92) 25%, rgba(20,66,160,.55) 65%, rgba(34,211,238,.15)); }
.slide-content { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding: 110px 22px 130px; color: #fff; }
.slide-content .eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); padding: 6px 16px; border-radius: 999px; font-size: .8rem; backdrop-filter: blur(6px); }
.slide-content h1 { font-size: clamp(1.9rem, 4.4vw, 3.3rem); margin: 18px 0 12px; max-width: 640px; line-height: 1.15; }
.slide-content p { max-width: 540px; color: #d6e2fb; font-size: 1.05rem; }
.slide-content .btn { margin-top: 20px; }
.slider-dots { position: absolute; bottom: 26px; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; gap: 10px; }
.slider-dots button { width: 34px; height: 5px; border-radius: 999px; border: none; background: rgba(255,255,255,.35); cursor: pointer; transition: .3s; }
.slider-dots button.on { background: var(--cyan); width: 50px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--grad); color: #fff; border: none; padding: 13px 26px; border-radius: 12px; font-size: .95rem; font-weight: 700; cursor: pointer; text-decoration: none; box-shadow: var(--shadow); transition: .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn.ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.6); box-shadow: none; }
.btn.light { background: #fff; color: var(--blue-700); }
.btn.small { padding: 8px 16px; font-size: .82rem; border-radius: 9px; }
.btn.outline { background: #fff; color: var(--blue-600); border: 1.5px solid var(--blue-600); box-shadow: none; }

/* ---------- Sections ---------- */
.section { max-width: 1180px; margin: 0 auto; padding: 70px 22px; }
.section.tight { padding: 44px 22px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head .kicker { color: var(--blue-600); font-weight: 800; text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 8px 0 10px; color: var(--blue-900); }
.section-head p { color: var(--muted); margin: 0; }
.band { background: linear-gradient(180deg, #fff 0%, var(--blue-50) 100%); }
.band.dark { background: var(--blue-900); color: #fff; }
.band.dark .section-head h2 { color: #fff; }
.band.dark .section-head p { color: #a9bce6; }

.grid { display: grid; gap: 24px; }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.c4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: 0 4px 14px rgba(20,66,160,.05); transition: .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-card .fic { width: 52px; height: 52px; border-radius: 14px; background: var(--blue-100); color: var(--blue-600); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature-card h3 { margin: 0 0 8px; font-size: 1.06rem; color: var(--blue-900); }
.feature-card p { margin: 0; color: var(--muted); font-size: .92rem; }

.stat-card { text-align: center; padding: 10px; }
.stat-card .value { font-size: 2.3rem; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-card .label { color: var(--muted); font-size: .9rem; font-weight: 600; }
.band.dark .stat-card .value { background: linear-gradient(135deg, #7fb0ff, var(--cyan)); -webkit-background-clip: text; background-clip: text; }
.band.dark .stat-card .label { color: #a9bce6; }

/* media cards (news/blog/events) */
.media-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.media-card .thumb-wrap { aspect-ratio: 16/9; overflow: hidden; background: var(--blue-100); }
.media-card .thumb-wrap img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.media-card:hover .thumb-wrap img { transform: scale(1.06); }
.media-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.media-card .meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: .78rem; font-weight: 600; }
.media-card h3 { margin: 0; font-size: 1.05rem; color: var(--blue-900); line-height: 1.35; }
.media-card h3 a { color: inherit; text-decoration: none; }
.media-card h3 a:hover { color: var(--blue-600); }
.media-card p { margin: 0; color: var(--muted); font-size: .9rem; flex: 1; }
.media-card .more { color: var(--blue-600); font-weight: 700; font-size: .85rem; text-decoration: none; }

.date-chip { display: inline-flex; flex-direction: column; align-items: center; background: var(--grad); color: #fff; border-radius: 12px; padding: 8px 14px; line-height: 1.1; font-weight: 800; }
.date-chip .d { font-size: 1.3rem; }
.date-chip .m { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; }

/* notices */
.notice-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; }
.notice-item .nicon { flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; background: var(--blue-100); color: var(--blue-600); display: flex; align-items: center; justify-content: center; }
.notice-item h3 { margin: 0 0 4px; font-size: .98rem; color: var(--blue-900); }
.notice-item .ndate { color: var(--muted); font-size: .78rem; font-weight: 600; }
.notice-item p { margin: 6px 0 0; color: var(--muted); font-size: .88rem; }
.pin-badge { display: inline-block; background: #fef3c7; color: var(--amber); font-size: .68rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; margin-left: 8px; text-transform: uppercase; }

/* team */
.person-card { text-align: center; padding: 28px 22px; }
.person-card img, .person-card .ph { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 4px solid var(--blue-100); box-shadow: var(--shadow); }
.person-card .ph { display: flex; align-items: center; justify-content: center; background: var(--grad); color: #fff; font-size: 2rem; font-weight: 900; }
.person-card h4 { margin: 0 0 4px; color: var(--blue-900); }
.person-card p { margin: 0; color: var(--muted); font-size: .85rem; }

/* plans */
.plan-card { text-align: center; position: relative; padding-top: 34px; }
.plan-card.featured { border: 2px solid var(--blue-600); box-shadow: var(--shadow-lg); }
.plan-flag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; padding: 5px 16px; border-radius: 999px; }
.plan-card h3 { color: var(--blue-900); text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; margin: 0 0 6px; }
.plan-card .price { font-size: 2rem; font-weight: 900; color: var(--blue-700); }
.plan-card .duration { color: var(--muted); font-size: .82rem; margin-bottom: 16px; }
.plan-card ul { list-style: none; padding: 0; margin: 0 0 20px; text-align: left; }
.plan-card ul li { padding: 7px 0; border-bottom: 1px dashed var(--border); font-size: .88rem; color: var(--ink); display: flex; gap: 8px; align-items: center; }
.plan-card ul li .ic { color: var(--green); flex-shrink: 0; }

/* gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.g-item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; cursor: pointer; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.g-item:hover img { transform: scale(1.08); }
.g-item .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px; background: linear-gradient(transparent, rgba(11,30,75,.85)); color: #fff; font-size: .84rem; font-weight: 600; }
.lightbox { position: fixed; inset: 0; background: rgba(8,15,40,.92); z-index: 100; display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox .lb-close { position: absolute; top: 20px; right: 26px; background: none; border: none; color: #fff; cursor: pointer; }

/* CTA band */
.cta-band { background: var(--grad); border-radius: 22px; color: #fff; text-align: center; padding: 56px 30px; position: relative; overflow: hidden; }
.cta-band::before { content:''; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,.08); top: -120px; right: -80px; }
.cta-band::after { content:''; position: absolute; width: 200px; height: 200px; border-radius: 50%; background: rgba(34,211,238,.15); bottom: -90px; left: -60px; }
.cta-band h2 { margin: 0 0 10px; font-size: clamp(1.4rem, 3vw, 2rem); position: relative; }
.cta-band p { color: #d6e2fb; margin: 0 0 22px; position: relative; }
.cta-band .btn { position: relative; }

/* page hero */
.page-hero { background: var(--grad); color: #fff; padding: 58px 22px; text-align: center; position: relative; overflow: hidden; }
.page-hero::after { content:''; position:absolute; width: 380px; height: 380px; border-radius: 50%; background: rgba(255,255,255,.06); top: -160px; right: -100px; }
.page-hero h1 { margin: 0 0 6px; font-size: clamp(1.7rem, 3.4vw, 2.4rem); position: relative; }
.page-hero .crumb { color: #cfe0ff; font-size: .85rem; position: relative; }
.page-hero .crumb a { color: #fff; }

/* ---------- Forms ---------- */
form label { display: block; font-weight: 700; font-size: .85rem; margin: 16px 0 6px; color: var(--blue-900); }
form .hint { font-weight: 400; color: var(--muted); font-size: .76rem; }
input[type=text], input[type=number], input[type=email], input[type=password], textarea, select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 11px;
  font-size: .94rem; font-family: inherit; background: #fff; transition: .2s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(47,116,255,.13); }
textarea { resize: vertical; min-height: 110px; }
input[type=file] { width: 100%; padding: 10px; border: 1.5px dashed var(--border); border-radius: 11px; background: var(--blue-50); }
.plan-options { display: flex; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.plan-options label { display: flex; align-items: center; gap: 8px; font-weight: 600; margin: 0; border: 1.5px solid var(--border); border-radius: 11px; padding: 12px 16px; cursor: pointer; flex: 1; min-width: 180px; background: #fff; }
.plan-options input { width: auto; }
.alert { padding: 13px 17px; border-radius: 12px; margin-bottom: 18px; font-size: .9rem; }
.alert.error { background: #fee2e2; color: var(--red); border: 1px solid #fecaca; }
.alert.success { background: #dcfce7; color: var(--green); border: 1px solid #bbf7d0; }
ul.error-list { margin: 0; padding-left: 18px; }
.wrap { max-width: 780px; margin: 40px auto; padding: 0 18px; }
.wrap.wide { max-width: 1180px; }
.footer-note { text-align: center; color: var(--muted); font-size: .8rem; margin: 26px 0; }

/* article body */
.article { max-width: 800px; margin: 0 auto; }
.article .lead-img { border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 26px; width: 100%; }
.article h3 { color: var(--blue-900); margin-top: 30px; }
.article .a-meta { color: var(--muted); font-size: .85rem; font-weight: 600; margin-bottom: 18px; display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-900); color: #b9c9ec; margin-top: 60px; }
.footer-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.6fr; gap: 34px; padding: 54px 22px 34px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; margin: 0 0 14px; font-size: .84rem; text-transform: uppercase; letter-spacing: .12em; }
.footer-grid p { font-size: .86rem; margin: 0 0 10px; }
.footer-grid a { color: #b9c9ec; text-decoration: none; display: block; margin-bottom: 9px; font-size: .88rem; }
.footer-grid a:hover { color: var(--cyan); }
.footer-brand p { margin-top: 14px; }
.socials { display: flex; gap: 8px; margin-top: 14px; }
.socials a { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 800; margin: 0; }
.socials a:hover { background: var(--blue-600); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); text-align: center; padding: 18px; font-size: .78rem; color: #7e91bd; }
.footer-bottom a { color: #9fb4e4; }

/* ---------- AI chat widget ---------- */
.ai-fab { position: fixed; bottom: 24px; right: 24px; z-index: 90; width: 60px; height: 60px; border-radius: 50%; border: none; background: var(--grad); color: #fff; cursor: pointer; box-shadow: var(--shadow-lg); display: flex; align-items: center; justify-content: center; transition: .25s; }
.ai-fab:hover { transform: scale(1.08); }
.ai-panel { position: fixed; bottom: 96px; right: 24px; z-index: 90; width: 340px; max-width: calc(100vw - 40px); background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); display: none; flex-direction: column; overflow: hidden; }
.ai-panel.open { display: flex; }
.ai-head { background: var(--grad); color: #fff; padding: 13px 16px; font-weight: 800; font-size: .92rem; display: flex; align-items: center; gap: 8px; }
.ai-head button { margin-left: auto; background: none; border: none; color: #fff; cursor: pointer; padding: 2px; }
.ai-body { padding: 14px; height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; background: var(--blue-50); }
.ai-msg { max-width: 85%; padding: 10px 13px; border-radius: 14px; font-size: .86rem; line-height: 1.45; }
.ai-msg.bot { background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 4px; align-self: flex-start; }
.ai-msg.user { background: var(--blue-600); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.ai-input { display: flex; border-top: 1px solid var(--border); }
.ai-input input { border: none; border-radius: 0; padding: 13px 14px; }
.ai-input input:focus { box-shadow: none; }
.ai-input button { border: none; background: none; color: var(--blue-600); padding: 0 16px; cursor: pointer; }

/* ---------- Admin ---------- */
.admin-header { background: var(--blue-900); color: #fff; padding: 14px 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.admin-header a { color: #9fb4e4; text-decoration: none; font-size: .86rem; }
.admin-header a:hover { color: var(--cyan); }
.login-wrap { max-width: 400px; margin: 80px auto; }
.tabs { display: flex; gap: 8px; margin: 20px 0; flex-wrap: wrap; }
.tabs a { padding: 8px 18px; border-radius: 999px; text-decoration: none; font-size: .84rem; font-weight: 700; color: var(--ink); background: #fff; border: 1.5px solid var(--border); }
.tabs a.active { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }
table.admin-table { width: 100%; border-collapse: collapse; background: #fff; font-size: .87rem; }
table.admin-table th, table.admin-table td { padding: 11px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
table.admin-table th { background: var(--blue-50); color: var(--blue-800); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; }
table.admin-table tr:hover { background: var(--blue-50); }
.badge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.badge.pending { background: #fef3c7; color: var(--amber); }
.badge.approved { background: #dcfce7; color: var(--green); }
.badge.disapproved { background: #fee2e2; color: var(--red); }
.actions-cell { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-approve { background: var(--green); }
.btn-reject { background: var(--red); }
.btn-link { background: var(--blue-100); color: var(--blue-800); box-shadow: none; }
.thumb { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.file-link { font-size: .8rem; }
.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }
@media (max-width: 720px) {
  table.admin-table thead { display: none; }
  table.admin-table, table.admin-table tbody, table.admin-table tr, table.admin-table td { display: block; width: 100%; }
  table.admin-table tr { margin-bottom: 14px; border: 1px solid var(--border); border-radius: 12px; padding: 8px; }
  table.admin-table td { border: none; padding: 6px 8px; }
  table.admin-table td::before { content: attr(data-label); display: block; font-weight: 800; font-size: .7rem; color: var(--muted); text-transform: uppercase; }
}
