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

:root {
  --navy:        #2A2852;
  --navy-dark:   #1C1A3A;
  --blue:        #326295;
  --green:       #46BB84;
  --green-dark:  #2E9A6A;
  --green-pale:  #EAF8F1;
  --white:       #FFFFFF;
  --off-white:   #F1F4F7;
  --light-gray:  #F8F8F8;
  --mid-gray:    #E4E6ED;
  --text:        #2A2852;
  --muted:       #6B7A99;
  --border:      rgba(42, 40, 82, 0.10);
}

body {
  font-family: 'Nunito', 'Avenir Medium', sans-serif;
  background: var(--off-white);
  color: var(--text);
  min-height: 100vh;
}

/* ── HEADER ── */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.22);
}

.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-logo img {
  height: 38px;
  width: auto;
  display: block;
}

.header-sep {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.18);
  flex-shrink: 0;
}

.header-tagline {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

/* ── HERO ── */
.hero {
  background: linear-gradient(125deg, #46BB84 0%, #2D8C72 30%, #2A5080 65%, #2A2852 100%);
  padding: 52px 32px 48px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Ccircle cx='40' cy='40' r='1.5' fill='white' fill-opacity='0.06'/%3E%3C/svg%3E");
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
}

.hero-inner h1 {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.hero-inner p {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255,255,255,0.72);
  max-width: 520px;
  line-height: 1.65;
}

/* ── NOTICE ── */
.notice {
  background: var(--white);
  border-bottom: 2.5px solid var(--green);
  padding: 11px 32px;
}

.notice-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--navy);
  line-height: 1.5;
}

.notice-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.notice-inner a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.notice-inner a:hover { text-decoration: underline; }

/* ── MAIN ── */
main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 48px 32px 72px;
}

/* ── SECTION ── */
.section { margin-bottom: 52px; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.label-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 10px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.pill-doc { background: rgba(50,98,149,0.10); color: var(--blue); }
.pill-est { background: rgba(70,187,132,0.12); color: var(--green-dark); }
.pill-adm { background: rgba(42,40,82,0.08);  color: var(--navy); }

.pill-ico {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.pill-ico svg { fill: white; width: 13px; height: 13px; }
.pill-doc .pill-ico { background: var(--blue); }
.pill-est .pill-ico { background: var(--green); }
.pill-adm .pill-ico { background: var(--navy); }

/* ── CARDS ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 22px 20px 20px;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(42,40,82,0.12);
}

.card-top-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 16px 16px 0 0;
}

.bar-doc { background: var(--blue); }
.bar-est { background: var(--green); }
.bar-adm { background: var(--navy); }

.card:hover.c-doc { border-color: var(--blue); }
.card:hover.c-est { border-color: var(--green); }
.card:hover.c-adm { border-color: var(--navy); }

.card-ico {
  width: 50px; height: 50px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.ico-doc { background: rgba(50,98,149,0.10); }
.ico-doc svg { fill: var(--blue); }
.ico-est { background: rgba(70,187,132,0.12); }
.ico-est svg { fill: var(--green-dark); }
.ico-adm { background: rgba(42,40,82,0.08); }
.ico-adm svg { fill: var(--navy); }
.card-ico svg { width: 24px; height: 24px; }

.card-body { flex: 1; min-width: 0; }

.card-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.3;
}

.card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.card-btn {
  align-self: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--mid-gray);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.18s, border-color 0.18s;
}

.card-btn svg { fill: var(--muted); width: 15px; height: 15px; transition: fill 0.18s; }

.c-doc:hover .card-btn { background: var(--blue);  border-color: var(--blue);  }
.c-est:hover .card-btn { background: var(--green); border-color: var(--green); }
.c-adm:hover .card-btn { background: var(--navy);  border-color: var(--navy);  }
.card:hover .card-btn svg { fill: white; }

/* ── DIVIDER ── */
.sep {
  height: 1px;
  background: var(--mid-gray);
  margin: 52px 0;
}

/* ── FOOTER ── */
footer {
  background: var(--navy);
  padding: 28px 32px;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logo img { height: 32px; opacity: 0.85; }

.footer-mid {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

.footer-mid svg { fill: var(--green); width: 16px; height: 16px; flex-shrink: 0; }

.footer-mid a {
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}

.footer-mid a:hover { text-decoration: underline; }

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  text-align: right;
}

@media (max-width: 640px) {
  .header-inner, .hero, .notice, main { padding-left: 20px; padding-right: 20px; }
  .cards { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-copy { text-align: left; }
}
