:root {
  --navy: #1a2f4e;
  --blue: #2563a8;
  --blue-light: #3b82c4;
  --gold: #d4a017;
  --gray-light: #f4f6f9;
  --gray: #6b7280;
  --text: #1f2937;
  --white: #ffffff;
}

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

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-light); }

/* ── Header ── */
header {
  background: var(--navy);
  color: var(--white);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.header-top {
  background: #111e30;
  padding: 6px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  font-size: 0.85rem;
}

.header-top a { color: #c8d6e8; }
.header-top a:hover { color: var(--white); }

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
}

.logo-tag {
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  color: #c8d6e8;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover { background: rgba(255,255,255,0.1); color: var(--white); }

.dropdown { position: relative; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  min-width: 220px;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  padding: 6px 0;
  z-index: 200;
}

.dropdown:hover .dropdown-menu { display: block; }

.dropdown-menu a {
  display: block;
  color: var(--text);
  padding: 10px 18px;
  font-size: 0.88rem;
}

.dropdown-menu a:hover { background: var(--gray-light); color: var(--blue); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
  padding: 9px 18px !important;
  border-radius: 4px !important;
}

.nav-cta:hover { background: #e6b41e !important; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #253d5e 100%);
  color: var(--white);
  padding: 80px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 32px;
  color: #c8d6e8;
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.1s, box-shadow 0.1s;
}

.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: #e6b41e; color: var(--navy); }
.btn-secondary { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.5); }
.btn-secondary:hover { border-color: var(--white); color: var(--white); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-light); color: var(--white); }

.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Sections ── */
.section { padding: 70px 20px; }
.section-alt { background: var(--gray-light); }

.container { max-width: 1100px; margin: 0 auto; }

h2.section-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.section-sub {
  color: var(--gray);
  margin-bottom: 40px;
  font-size: 1.05rem;
}

/* ── Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 30px;
  border-top: 4px solid var(--blue);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.12); transform: translateY(-2px); }

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.card p { color: var(--gray); font-size: 0.95rem; }

.card a.card-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
}

/* ── Badges ── */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 30px;
}

.badge {
  background: var(--white);
  border: 2px solid #dde4ef;
  border-radius: 6px;
  padding: 12px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Contact info bar ── */
.info-bar {
  background: var(--navy);
  color: var(--white);
  padding: 30px 20px;
  text-align: center;
}

.info-bar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.info-item { font-size: 0.95rem; }
.info-item strong { display: block; font-size: 1.1rem; margin-bottom: 2px; }
.info-item a { color: var(--gold); }

/* ── Page hero (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #253d5e 100%);
  color: var(--white);
  padding: 50px 20px;
  text-align: center;
}

.page-hero h1 { font-size: 2rem; font-weight: 700; }
.page-hero p { color: #c8d6e8; margin-top: 8px; font-size: 1rem; }

/* ── Service list ── */
.service-intro { max-width: 750px; margin: 0 auto 30px; }

.service-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}

.service-list li {
  background: var(--white);
  border-left: 3px solid var(--blue);
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 0.9rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

/* ── Forms ── */
.form-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  padding: 40px;
  max-width: 640px;
  margin: 0 auto;
}

.form-group { margin-bottom: 18px; }

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 6px;
}

input, select, textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,168,0.1);
}

textarea { resize: vertical; min-height: 120px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.alert {
  padding: 14px 18px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ── Blog ── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
}

.post-card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.post-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.12); transform: translateY(-2px); }

.post-card-body { padding: 24px; }
.post-card-date { font-size: 0.8rem; color: var(--gray); margin-bottom: 8px; }
.post-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.post-card p { color: var(--gray); font-size: 0.9rem; margin-bottom: 14px; }
.post-card a.read-more { font-size: 0.88rem; font-weight: 600; color: var(--blue); }

/* Post content */
.post-content { max-width: 760px; margin: 0 auto; }
.post-content h2 { font-size: 1.35rem; color: var(--navy); margin: 28px 0 10px; }
.post-content h3 { font-size: 1.1rem; color: var(--navy); margin: 22px 0 8px; }
.post-content p { margin-bottom: 14px; line-height: 1.75; }
.post-content ul, .post-content ol { margin: 10px 0 14px 22px; }
.post-content li { margin-bottom: 6px; line-height: 1.65; }
.post-content hr { border: none; border-top: 1px solid #e5e7eb; margin: 28px 0; }
.post-content strong { color: var(--navy); }

/* ── Team ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.team-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 30px;
  text-align: center;
}

.team-avatar {
  width: 90px;
  height: 90px;
  background: var(--navy);
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  font-weight: 700;
}

.team-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); }
.team-card .team-title { color: var(--blue); font-size: 0.85rem; font-weight: 600; margin: 4px 0 12px; }
.team-card p { color: var(--gray); font-size: 0.9rem; line-height: 1.6; }

/* ── Footer ── */
footer {
  background: #111e30;
  color: #8fa3be;
  padding: 50px 20px 24px;
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 36px;
  margin-bottom: 36px;
}

footer h4 { color: var(--white); font-size: 0.95rem; font-weight: 700; margin-bottom: 14px; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 8px; }
footer ul li a { color: #8fa3be; font-size: 0.88rem; }
footer ul li a:hover { color: var(--white); }
footer p { font-size: 0.88rem; line-height: 1.7; }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid #1f3050;
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
}

/* ── Admin ── */
.admin-nav {
  background: var(--navy);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-nav .logo-name { font-size: 1rem; }

.admin-nav-links { display: flex; gap: 8px; align-items: center; }

.admin-nav-links a {
  color: #c8d6e8;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.88rem;
}

.admin-nav-links a:hover { background: rgba(255,255,255,0.1); color: var(--white); }

.admin-body { max-width: 1000px; margin: 40px auto; padding: 0 20px; }

.admin-card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 28px;
  margin-bottom: 24px;
}

.admin-card h2 { font-size: 1.25rem; color: var(--navy); margin-bottom: 18px; }

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th { text-align: left; padding: 10px 12px; background: var(--gray-light); color: var(--navy); font-weight: 600; }
td { padding: 10px 12px; border-bottom: 1px solid #e5e7eb; color: var(--text); }
tr:hover td { background: #f9fafb; }

.badge-pub { background: #d1fae5; color: #065f46; padding: 2px 8px; border-radius: 10px; font-size: 0.78rem; font-weight: 600; }
.badge-draft { background: #fef3c7; color: #92400e; padding: 2px 8px; border-radius: 10px; font-size: 0.78rem; font-weight: 600; }
.badge-new { background: #dbeafe; color: #1e40af; padding: 2px 8px; border-radius: 10px; font-size: 0.78rem; font-weight: 600; }

.action-links { display: flex; gap: 10px; align-items: center; }
.action-links a { font-size: 0.85rem; }
.action-links a.del { color: #dc2626; }

.stat-row { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.stat-box {
  background: var(--gray-light);
  border-radius: 8px;
  padding: 18px 24px;
  flex: 1;
  min-width: 140px;
  text-align: center;
}
.stat-box .stat-num { font-size: 2rem; font-weight: 700; color: var(--blue); }
.stat-box .stat-label { font-size: 0.82rem; color: var(--gray); margin-top: 2px; }

.editor-hint { font-size: 0.78rem; color: var(--gray); margin-top: 4px; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.8rem; }
  .form-row { grid-template-columns: 1fr; }
  nav { flex-wrap: wrap; height: auto; padding: 14px 20px; gap: 12px; }
  .nav-links { flex-wrap: wrap; }
  .header-top { display: none; }
}
