@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Georgian:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');
:root {
  --navy: #102d38;at
  --dark: #0b2630;
  --teal: #007f7b;
  --mint: #e4f2ed;
  --text: #1b333d;
  --muted: #71838a;
  --line: #e4eaeb;
  --bg: #f7faf9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Manrope,'Noto Sans Georgian',sans-serif;
  color: var(--text);
  background: white;
}

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

button,input,textarea,select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  max-width: 1240px;
  margin: auto;
  padding: 0 30px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.nav {
  height: 86px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 17px;
  white-space: nowrap;
}

.brand-mark {
  background: var(--teal);
  color: white;
  border-radius: 10px;
  padding: 14px 11px;
  font-size: 18px;
  letter-spacing: -2px;
}

.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-top: 3px;
}

.links {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-left: auto;
}

.links a {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.links a:hover,.text-link:hover {
  color: var(--teal);
}

.lang {
  font-size: 12px;
  font-weight: 800;
  color: var(--teal);
  border: 1px solid var(--line);
  padding: 10px;
  border-radius: 6px;
}

.mobile-menu {
  display: none;
}

.hero {
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  min-height: 570px;
  gap: 70px;
}

.hero-label,.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 800;
  color: var(--teal);
  text-transform: uppercase;
}

.hero-label {
  color: #8bccc0;
  display: flex;
  gap: 9px;
  align-items: center;
}

.dot {
  width: 7px;
  height: 7px;
  background: #5bceb4;
  border-radius: 50%;
}

.hero h1 {
  font-size: clamp(36px,4.4vw,65px);
  line-height: 1.18;
  letter-spacing: -1.8px;
  margin: 24px 0;
  max-width: 670px;
}

.hero p {
  color: #c0d1d3;
  line-height: 1.9;
  max-width: 560px;
  font-size: 15px;
}

.hero-actions {
  display: flex;
  gap: 13px;
  margin-top: 35px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 15px 23px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 800;
}

.primary {
  background: #12a38d;
  color: white;
}

.outline {
  border: 1px solid #5b777c;
  color: white;
}

.light {
  background: white;
  color: var(--navy);
}

.hero-graphic {
  height: 420px;
  position: relative;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at center,#28666c 0%,#143843 40%,transparent 70%);
}

.orb {
  width: 310px;
  height: 310px;
  border: 1px solid #6c9a98;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 32px #ffffff08,0 0 0 65px #ffffff06;
  background: linear-gradient(130deg,#215763,#0e2b37);
}

.orb span {
  font-size: 110px;
  letter-spacing: -15px;
  font-weight: 800;
  color: #a6d8c9;
}

.orb small {
  font-size: 10px;
  letter-spacing: 4px;
  color: #8cbab2;
}

.graphic-tag {
  position: absolute;
  background: #fff;
  color: var(--navy);
  padding: 12px 17px;
  font-size: 10px;
  letter-spacing: 1px;
  font-weight: 800;
  border-radius: 4px;
  box-shadow: 0 10px 40px #0003;
}

.graphic-tag.top {
  top: 45px;
  right: 0;
}

.graphic-tag.bottom {
  bottom: 50px;
  left: 0;
}

.section {
  padding: 90px 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.intro-grid p {
  line-height: 2;
  color: #61747c;
}

.section h2,.cta h2 {
  font-size: clamp(28px,3vw,42px);
  line-height: 1.3;
  letter-spacing: -.8px;
  margin: 15px 0;
}

.text-link {
  font-size: 12px;
  font-weight: 800;
  color: var(--teal);
}

.pale {
  background: var(--bg);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 35px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 22px;
}

.content-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  transition: transform .2s,box-shadow .2s;
}

.content-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px #0c30300f;
}

.card-image {
  height: 185px;
  background: linear-gradient(125deg,#0d3943,#247e7d);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.card-image span {
  color: #b8e6d8;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 25px;
}

.card-content h3 {
  font-size: 18px;
  line-height: 1.5;
  margin: 11px 0;
}

.card-content p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  min-height: 48px;
}

.read-more {
  display: inline-block;
  margin-top: 15px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.cta {
  background: #087a74;
  color: white;
  padding: 65px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cta .eyebrow {
  color: #b6eee3;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 100px;
  padding-top: 65px;
  padding-bottom: 50px;
}

.footer-grid h3 {
  font-size: 18px;
}

.footer-grid p {
  font-size: 13px;
  color: #6b7c83;
  line-height: 2;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 25px;
  padding-bottom: 25px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.page-hero {
  background: var(--navy);
  color: white;
  padding: 75px 0;
}

.page-hero h1 {
  font-size: clamp(34px,4vw,58px);
  margin: 15px 0;
}

.page-hero p {
  color: #bed0d2;
  line-height: 1.8;
}

.article {
  max-width: 950px;
  padding-top: 60px;
  padding-bottom: 100px;
}

.article-image {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: 8px;
}

.article-body {
  font-size: 16px;
  line-height: 2;
  white-space: normal;
}

.article-body p {
  margin: 25px 0;
}

.back {
  display: block;
  color: #8ad8c8;
  font-size: 13px;
  margin-bottom: 25px;
}

.not-found {
  padding-top: 100px;
  padding-bottom: 100px;
}

.empty {
  color: var(--muted);
}

/* Admin */
.admin-body {
  background: #f3f7f7;
  min-height: 100vh;
}

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--navy);
  padding: 20px;
}

.login-box {
  background: white;
  width: min(420px,100%);
  padding: 40px;
  border-radius: 14px;
  box-shadow: 0 25px 70px #0003;
}

.login-box h1 {
  margin: 10px 0 5px;
}

.login-box p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.form-field label {
  font-size: 12px;
  font-weight: 800;
  color: #53676d;
}

.form-field input,.form-field textarea,.form-field select {
  border: 1px solid #d8e3e3;
  border-radius: 7px;
  background: white;
  padding: 12px;
  color: var(--text);
  width: 100%;
  outline: none;
}

.form-field textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.7;
}

.form-field input:focus,.form-field textarea:focus,.form-field select:focus {
  border-color: var(--teal);
}

.action {
  border: 0;
  border-radius: 7px;
  background: var(--teal);
  color: white;
  font-size: 12px;
  font-weight: 800;
  padding: 12px 18px;
}

.action.secondary {
  background: #e9f2f0;
  color: #12645e;
}

.action.danger {
  background: #fce7e7;
  color: #a92f38;
}

.action:disabled {
  opacity: .5;
  cursor: wait;
}

.full {
  width: 100%;
}

.admin-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--navy);
  color: white;
  padding: 26px 16px;
}

.sidebar .brand {
  margin: 0 8px 36px;
}

.sidebar .brand small {
  color: #a6c6c7;
}

.side-label {
  color: #87a5a9;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  margin: 28px 14px 10px;
}

.side-link {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  border: 0;
  background: transparent;
  color: #bed1d3;
  text-align: left;
  padding: 12px 14px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
}

.side-link:hover,.side-link.active {
  background: #214954;
  color: white;
}

.admin-main {
  padding: 36px 45px;
  min-width: 0;
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  gap: 20px;
}

.admin-top h1 {
  font-size: 27px;
  margin: 0 0 5px;
}

.admin-top p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 24px;
  margin-bottom: 20px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 17px;
  margin-bottom: 25px;
}

.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 23px;
}

.stat strong {
  font-size: 31px;
  display: block;
}

.stat span {
  color: var(--muted);
  font-size: 12px;
}

.table-wrap {
  overflow: auto;
}

.admin-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}

.admin-table th {
  text-align: left;
  color: var(--muted);
  font-size: 11px;
  padding: 15px;
  border-bottom: 1px solid var(--line);
}

.admin-table td {
  padding: 15px;
  border-bottom: 1px solid var(--line);
}

.admin-table tr:last-child td {
  border: 0;
}

.status {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 30px;
  font-size: 10px;
  font-weight: 800;
  background: #fff1d6;
  color: #9c6810;
}

.status.published {
  background: #dff5eb;
  color: #147753;
}

.row-actions {
  display: flex;
  gap: 8px;
}

.small-btn {
  background: #eef5f4;
  border: 0;
  color: #206b68;
  padding: 8px 11px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
}

.small-btn.delete {
  background: #fff0f0;
  color: #b24b4b;
}

.editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.editor-grid .wide {
  grid-column: 1/-1;
}

.editor-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.notice {
  padding: 13px;
  border-radius: 6px;
  background: #e7f5ef;
  color: #196c52;
  font-size: 12px;
  margin: 14px 0;
}

.notice.error {
  background: #fff0f0;
  color: #a13232;
}

.preview-image {
  width: 180px;
  height: 110px;
  object-fit: cover;
  border-radius: 6px;
  margin: 10px 0;
}

.muted {
  color: var(--muted);
  font-size: 12px;
}

.loading {
  padding: 50px;
  text-align: center;
}

.mobile-admin-toggle {
  display: none;
}

@media (max-width:1150px) {
  .links {
    gap: 10px;
  }

  .links a {
    font-size: 10px;
  }

  .nav {
    gap: 12px;
  }

  .brand {
    font-size: 14px;
  }

  .container {
    padding: 0 22px;
  }

}

@media (max-width:900px) {
  .links {
    display: none;
    position: absolute;
    top: 85px;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    box-shadow: 0 15px 20px #0001;
    flex-direction: column;
    align-items: start;
  }

  .links.shown {
    display: flex;
  }

  .mobile-menu {
    display: block;
    margin-left: auto;
    background: transparent;
    border: 0;
    font-size: 24px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 75px;
    padding-bottom: 35px;
  }

  .hero-graphic {
    height: 300px;
  }

  .orb {
    width: 210px;
    height: 210px;
  }

  .orb span {
    font-size: 70px;
  }

  .intro-grid {
    gap: 30px;
  }

  .cards {
    grid-template-columns: repeat(2,1fr);
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .sidebar .brand {
    margin-bottom: 10px;
  }

  .sidebar-nav {
    display: flex;
    overflow: auto;
  }

  .side-label {
    display: none;
  }

  .side-link {
    white-space: nowrap;
  }

  .admin-main {
    padding: 25px;
  }

  .stat-grid {
    grid-template-columns: repeat(2,1fr);
  }

}

@media (max-width:600px) {
  .cards,.intro-grid,.footer-grid,.editor-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .hero-graphic {
    display: none;
  }

  .hero-layout {
    min-height: 460px;
  }

  .section {
    padding: 55px 0;
  }

  .section-heading {
    align-items: start;
    gap: 15px;
  }

  .cta-inner {
    align-items: start;
    flex-direction: column;
  }

  .admin-top {
    align-items: start;
    flex-direction: column;
  }

  .admin-main {
    padding: 18px;
  }

  .panel {
    padding: 16px;
  }

  .stat-grid {
    gap: 8px;
  }

  .stat {
    padding: 15px;
  }

  .stat strong {
    font-size: 24px;
  }

  .editor-grid .wide {
    grid-column: auto;
  }

}


/* HOMEPAGE PHOTO CAROUSEL */

.photo-hero {
  position: relative;
  height: 580px;
  overflow: hidden;
  color: white;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,.75),
    rgba(0,0,0,.15)
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.photo-hero h1 {
  color: white;
  font-size: clamp(32px, 4vw, 60px);
  max-width: 750px;
}

.photo-hero p {
  color: white;
  max-width: 580px;
  font-size: 19px;
}

.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(0,0,0,.35);
  color: white;
  border: 0;
  padding: 15px;
  cursor: pointer;
}

.prev { left: 15px; }
.next { right: 15px; }

.slide-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.slide-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  background: #aaa;
  cursor: pointer;
}

.slide-dots button.active {
  background: white;
}

@media (max-width: 768px) {
  .photo-hero { height: 480px; }
  .hero-content { padding: 55px 24px; }
  .photo-hero p { font-size: 16px; }
}

/* News galleries */
.gallery-editor, .article-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px;
}
.gallery-photo img, .article-gallery-grid img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
}
.gallery-photo .small-btn { margin-top: 8px; }
.article-gallery { margin-top: 40px; }
.article-gallery h2 { margin-bottom: 20px; }
.article-gallery-grid a:focus-visible { outline: 3px solid var(--brand-primary, #164b80); outline-offset: 4px; }

.gallery-album { margin-bottom: 40px; }
.gallery-album h2 { margin-bottom: 20px; }
.gallery-open { display: block; cursor: zoom-in; }
.photo-viewer { border: 0; padding: 44px 12px 12px; background: #111; border-radius: 10px; max-width: 96vw; max-height: 94vh; }
.photo-viewer::backdrop { background: rgb(0 0 0 / 85%); }
.photo-viewer img { display: block; max-width: 90vw; max-height: 80vh; object-fit: contain; }
.photo-close { position: absolute; right: 8px; top: 4px; border: 0; background: transparent; color: white; font-size: 32px; cursor: pointer; width: 40px; height: 40px; }

.gallery-upload-area { display: block; padding: 28px; border: 2px dashed #b8c4d0; border-radius: 8px; text-align: center; cursor: pointer; }
.gallery-upload-area input { display: block; max-width: 100%; margin: 16px auto 0; }
.gallery-editor { margin-top: 20px; }
.gallery-editor .gallery-photo img, .article-gallery-grid img { height: 220px; width: 100%; object-fit: cover; }