/* ===============================
   RESET
=============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0b0f14;
  --bg-soft: #11161c;
  --bg-card: #151c24;
  --bg-card-2: #1a222c;
  --line: #232c36;
  --text: #ffffff;
  --muted: #a9b3bf;
  --primary: #1f6f78;
  --primary-hover: #278994;
  --secondary: #1b232d;
  --accent: #7fd7df;
  --success: #00ffcc;
  --danger: #ff6b6b;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ===============================
   BASE
=============================== */
img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 72px 0;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 16px;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 850px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.muted {
  color: var(--muted);
}

/* ===============================
   BUTTONS
=============================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: 0.25s ease;
  font-weight: 600;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--secondary);
  color: white;
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  background: #202a35;
}

.btn-nav {
  padding: 10px 16px;
}

/* ===============================
   HEADER / NAV
=============================== */
.topbar {
  background: rgba(11, 15, 20, 0.9);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
}

.nav {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: white;
  min-width: 0;
}

.brand img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.brand span {
  display: block;
  font-weight: 800;
  line-height: 1.1;
}

.brand small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
}

.menu {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.menu a {
  color: #c8d0d9;
  text-decoration: none;
  font-size: 14px;
  transition: 0.25s ease;
  padding: 8px 0;
}

.menu a:hover,
.menu a.active {
  color: white;
}

.mobile-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: #11161c;
  padding: 12px 20px 18px;
  border-top: 1px solid var(--line);
}

.mobile-menu a {
  padding: 12px 0;
  color: white;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu.open {
  display: flex;
}

/* ===============================
   HERO
=============================== */
.hero {
  padding: 84px 0 50px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
}

.hero-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 34px;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 0.98;
  margin: 16px 0 18px;
}

.hero-copy p {
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-media {
  position: relative;
  overflow: hidden;
  min-height: 520px;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 15, 20, 0.45), rgba(11, 15, 20, 0.05));
}

/* ===============================
   STATS
=============================== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.stat strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.stat span {
  font-size: 0.92rem;
  color: var(--muted);
}

/* ===============================
   CARDS / GRIDS
=============================== */
.card-grid,
.value-grid,
.news-grid,
.jobs-grid,
.logo-grid {
  display: grid;
  gap: 20px;
}

.cards-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.value-card,
.feature-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px;
  box-shadow: var(--shadow);
}

.card h3,
.value-card h3,
.feature-card h3 {
  margin: 10px 0 10px;
  font-size: 1.15rem;
}

.card p,
.value-card p,
.feature-card p {
  color: var(--muted);
}

.loading-card {
  min-height: 120px;
  display: flex;
  align-items: center;
}

.icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(31, 111, 120, 0.16);
  border: 1px solid rgba(31, 111, 120, 0.35);
  font-size: 22px;
}

.link-arrow {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent);
  font-weight: 600;
}

/* ===============================
   SPLIT SECTION
=============================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.media-card {
  overflow: hidden;
}

.media-card img {
  width: 100%;
  border-radius: 10px;
}

/* ===============================
   CALENDAR
=============================== */
.calendar-wrap {
  display: block;
}

.calendar-board {
  display: grid;
  gap: 18px;
}

.calendar-header-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.calendar-grid-head,
.calendar-grid-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.calendar-weekday {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  font-weight: 700;
  color: var(--muted);
}

.calendar-day {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 120px;
  padding: 12px;
}

.calendar-day.empty {
  opacity: 0.3;
}

.calendar-day-number {
  font-weight: 700;
  margin-bottom: 10px;
}

.calendar-event {
  background: var(--primary);
  color: white;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 12px;
  margin-bottom: 6px;
}

/* ===============================
   FORMS
=============================== */
.form-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 14px;
  font-weight: 600;
  color: #e8edf3;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--bg-card-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
  color: white;
  outline: none;
  transition: 0.25s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--primary);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.helper {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

.notice {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

/* ===============================
   CTA / FOOTER
=============================== */
.cta {
  background: linear-gradient(135deg, rgba(31,111,120,0.16), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.cta-copy {
  text-align: center;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  margin-top: 30px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

/* ===============================
   DASHBOARD LAYOUT
=============================== */
.dashboard-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
  background: var(--bg);
}

.dashboard-sidebar {
  background: #0d1218;
  border-right: 1px solid var(--line);
  padding: 24px 18px;
}

.dashboard-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.dashboard-brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.dashboard-brand strong {
  display: block;
  font-size: 1rem;
}

.dashboard-brand small {
  color: var(--muted);
  display: block;
  font-size: 12px;
}

.dashboard-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dashboard-link {
  width: 100%;
  text-align: left;
  background: transparent;
  color: #ccd4dd;
  border: 1px solid transparent;
  padding: 12px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.25s ease;
}

.dashboard-link:hover,
.dashboard-link.active {
  background: var(--bg-soft);
  border-color: var(--line);
  color: white;
}

.dashboard-main {
  padding: 28px;
}

.dashboard-topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.dashboard-login {
  padding: 40px 0;
}

.dashboard-tab.active {
  display: block;
}

/* ===============================
   DASHBOARD TABLES
=============================== */
.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.dashboard-table thead tr {
  background: var(--bg-card-2);
}

.dashboard-table th,
.dashboard-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

.dashboard-table th {
  color: #e8edf3;
  font-weight: 700;
}

.dashboard-table td {
  color: var(--muted);
}

/* ===============================
   PAGE HELPERS
=============================== */
.news-grid .card img,
.cards-3 .card img,
.cards-4 .card img {
  border-radius: 10px;
}

/* ===============================
   RESPONSIVE
=============================== */
@media (max-width: 1100px) {
  .hero-grid,
  .split,
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .cards-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .menu {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .hero {
    padding: 54px 0 30px;
  }

  .hero-copy {
    padding: 24px;
  }

  .hero-media {
    min-height: 280px;
  }

  .cards-4,
  .cards-3,
  .stat-grid,
  .form-shell,
  .calendar-grid-head,
  .calendar-grid-days {
    grid-template-columns: 1fr;
  }

  .calendar-weekday {
    display: none;
  }

  .calendar-day {
    min-height: auto;
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-main {
    padding: 20px;
  }
}