/* assets/css/style.css */

/* =========================
   Base
========================= */

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #eef3f8;

  --text: #162033;
  --muted: #687589;
  --line: rgba(22, 32, 51, 0.12);

  --primary: #0b4f8a;
  --primary-dark: #073963;
  --primary-soft: rgba(11, 79, 138, 0.1);

  --accent: #c89b3c;
  --accent-soft: rgba(200, 155, 60, 0.16);

  --shadow: 0 18px 50px rgba(22, 32, 51, 0.09);
  --shadow-soft: 0 10px 28px rgba(22, 32, 51, 0.07);

  --radius: 22px;
  --radius-sm: 14px;

  --container: 1140px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  background:
    radial-gradient(circle at top left, rgba(11, 79, 138, 0.11), transparent 34rem),
    linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

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

p,
h1,
h2,
h3 {
  margin-top: 0;
}

main {
  min-height: calc(100vh - var(--header-height));
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* =========================
   Header / Navbar
========================= */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-height);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.brand small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.brand-badge {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, var(--primary), var(--primary-dark)),
    var(--primary);
  box-shadow: 0 10px 25px rgba(11, 79, 138, 0.28);
  position: relative;
  overflow: hidden;
}
/*
.brand-badge::before {
  content: "";
  position: absolute;
  width: 28px;
  height: 10px;
  left: 8px;
  top: 17px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  transform: rotate(-18deg);
}

.brand-badge::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  right: 10px;
  top: 12px;
  border-radius: 50%;
  background: var(--accent);
}
*/
.menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.menu a {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.menu a:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.menu a.active {
  color: #fff;
  background: var(--primary);
}

/* =========================
   Hero
========================= */

.hero {
  padding: 18px 0 0;
}

.hero-wrap {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  border-radius: 0 0 42px 42px;
  background: #0c2137;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: opacity 0.7s ease, transform 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 18, 34, 0.82) 0%, rgba(5, 18, 34, 0.58) 42%, rgba(5, 18, 34, 0.16) 100%),
    linear-gradient(0deg, rgba(5, 18, 34, 0.38), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 610px;
  display: flex;
  align-items: center;
}

.hero-card {
  width: min(620px, 100%);
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #1d1608;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-title {
  margin-bottom: 16px;
  max-width: 760px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero-text {
  max-width: 560px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
  padding: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
}

.dot.is-active {
  background: #fff;
}

/* =========================
   Sections / Cards
========================= */

.section {
  padding: 64px 0;
}

.section + .section {
  padding-top: 10px;
}

.section-title {
  margin-bottom: 10px;
  color: var(--text);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.section-sub {
  max-width: 730px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 18px;
}

.card {
  display: block;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

a.card:hover {
  transform: translateY(-4px);
  border-color: rgba(11, 79, 138, 0.28);
  box-shadow: var(--shadow);
}

.card-meta {
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-title {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 22px;
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.card-text {
  margin-bottom: 10px;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 22px;
  align-items: stretch;
}

.grid {
  display: grid;
  gap: 22px;
}

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

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* =========================
   Buttons
========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(11, 79, 138, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(11, 79, 138, 0.32);
  background: var(--primary-soft);
  box-shadow: 0 10px 26px rgba(22, 32, 51, 0.08);
}

.btn.primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.btn.primary:hover {
  background: var(--primary-dark);
}

/* =========================
   President block
========================= */

.president {
  display: grid;
  grid-template-columns: 126px 1fr;
  gap: 22px;
  align-items: center;
}

.avatar {
  width: 126px;
  height: 126px;
  overflow: hidden;
  border: 5px solid #fff;
  border-radius: 32px;
  background: var(--surface-soft);
  box-shadow: var(--shadow-soft);
}

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

/* =========================
   Gallery
========================= */

.gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 18px;
}

.gimg {
  min-height: 260px;
  overflow: hidden;
  border-radius: 26px;
  background: var(--surface-soft);
  box-shadow: var(--shadow-soft);
}

.gimg:first-child {
  min-height: 340px;
}

.gimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gimg:hover img {
  transform: scale(1.05);
}
.gallery-date {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 700;
}
/* =========================
   Forms
========================= */

form {
  display: grid;
  gap: 15px;
}

.field {
  display: grid;
  gap: 7px;
}

label {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  font: inherit;
  outline: none;
}

input {
  min-height: 48px;
  padding: 0 14px;
}

textarea {
  min-height: 150px;
  resize: vertical;
  padding: 14px;
}

input:focus,
textarea:focus {
  border-color: rgba(11, 79, 138, 0.5);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

/* =========================
   Footer
========================= */

.footer {
  margin-top: 40px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text);
  font-size: 14px;
}

/* =========================
   Utility / Article
========================= */

.article-body,
.card-text.article-body {
  color: var(--text);
  font-size: 18px;
  line-height: 1.75;
}

.article-body p {
  margin-bottom: 18px;
}

/* =========================
   Responsive
========================= */

@media (max-width: 980px) {
  :root {
    --header-height: auto;
  }

  .nav {
    padding: 14px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .brand {
    min-width: 0;
  }

  .menu {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-wrap,
  .hero-content {
    min-height: 560px;
  }

  .split,
  .grid-2,
  .grid-3,
  .gallery {
    grid-template-columns: 1fr;
  }

  .gimg,
  .gimg:first-child {
    min-height: 240px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .header {
    position: static;
  }

  .brand {
    align-items: flex-start;
    font-size: 15px;
  }

  .brand-badge {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 14px;
  }

  .menu {
    gap: 4px;
  }

  .menu a {
    padding: 8px 10px;
    font-size: 13px;
  }

  .hero {
    padding-top: 0;
  }

  .hero-wrap {
    min-height: 620px;
    border-radius: 0 0 28px 28px;
  }

  .hero-content {
    min-height: 620px;
    align-items: flex-end;
    padding-bottom: 82px;
  }

  .hero-card {
    padding: 22px;
    border-radius: 24px;
  }

  .hero-title {
    font-size: 42px;
  }

  .hero-text {
    font-size: 17px;
  }

  .section {
    padding: 42px 0;
  }

  .section + .section {
    padding-top: 0;
  }

  .card {
    padding: 19px;
    border-radius: 19px;
  }

  .section-title {
    font-size: 31px;
  }

  .section-sub {
    font-size: 16px;
  }

  .president {
    grid-template-columns: 1fr;
  }

  .avatar {
    width: 116px;
    height: 116px;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================
   News
========================= */

.news-thumb {
  height: 190px;
  margin: -24px -24px 18px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--surface-soft);
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

a.card:hover .news-thumb img {
  transform: scale(1.05);
}

.read-more {
  display: inline-flex;
  margin-top: 8px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 850;
}

@media (max-width: 640px) {
  .news-thumb {
    height: 170px;
    margin: -19px -19px 16px;
  }
}

/* =========================
   Gallery page
========================= */

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

.gallery-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface-soft);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-card:hover img {
  transform: scale(1.06);
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(5, 18, 34, 0.74), transparent 58%);
  opacity: 0.92;
}

.gallery-info {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: #fff;
}

.gallery-category {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: #1d1608;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.gallery-title {
  display: block;
  font-size: 21px;
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

/* =========================
   Lightbox
========================= */

.lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(5, 18, 34, 0.86);
  backdrop-filter: blur(10px);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-content {
  width: min(980px, 100%);
  color: #fff;
  text-align: center;
}

.lightbox-content img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.lightbox-content p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  font-weight: 750;
}

.lightbox-close {
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 101;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.lightbox-close:hover {
  background: var(--primary);
  color: #fff;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 980px) {
  .gallery-page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .gallery-page {
    grid-template-columns: 1fr;
  }

  .gallery-card,
  .gallery-card img {
    min-height: 230px;
  }

  .lightbox {
    padding: 16px;
  }

  .lightbox-content img {
    border-radius: 18px;
  }

  .lightbox-close {
    top: 14px;
    right: 14px;
  }
}

/* =========================
   Homepage event gallery
========================= */

.home-gallery-card {
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.home-gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(5, 18, 34, 0.82) 0%,
    rgba(5, 18, 34, 0.24) 55%,
    transparent 100%
  );
  pointer-events: none;
}

.home-gallery-card img {
  height: 100%;
}

.home-gallery-card:hover img {
  transform: scale(1.05);
}

.home-gallery-overlay {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  left: 18px;
}

.home-gallery-title {
  display: block;
  margin-bottom: 7px;
  color: #fff;
  font-size: 20px;
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.home-gallery-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 750;
}

.lightbox-hidden-item {
  display: none;
}
/* =========================
   Lightbox navigation
========================= */

.lightbox-nav {
  position: fixed;
  top: 50%;
  z-index: 101;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  font-size: 46px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  transform: translateY(-50%);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.lightbox-nav:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-50%) scale(1.06);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

@media (max-width: 640px) {
  .lightbox-nav {
    width: 42px;
    height: 42px;
    font-size: 34px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }
}
/* =========================
   Contact
========================= */

.contact-list {
  display: grid;
  gap: 18px;
}

.contact-item {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.contact-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-item p {
  margin-bottom: 6px;
}

.contact-item a {
  color: var(--primary);
  font-weight: 850;
}

.notice {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 650;
}

.notice ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.notice.success {
  border: 1px solid rgba(38, 132, 72, 0.24);
  background: rgba(38, 132, 72, 0.1);
  color: #1f6b3a;
}

.notice.error {
  border: 1px solid rgba(190, 48, 48, 0.24);
  background: rgba(190, 48, 48, 0.1);
  color: #912b2b;
}
/* =========================
   Single post / article
========================= */

.article {
  display: grid;
  gap: 26px;
}

.article-head {
  padding: 34px;
}

.article-cover {
  overflow: hidden;
  border-radius: 28px;
}

.article-cover-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 28px;
  overflow: hidden;
  background: var(--surface-soft);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.article-cover-button img {
  width: 100%;
  height: min(560px, 58vw);
  min-height: 320px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.article-cover-button:hover img {
  transform: scale(1.035);
}

.article-caption {
  margin: 10px 4px 0;
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
}

.article-body {
  padding: 34px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.8;
}

.article-body p {
  margin-bottom: 20px;
}

.article-body p:last-child {
  margin-bottom: 0;
}

.article-gallery-wrap {
  margin-top: 12px;
}

.article-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.article-gallery-item {
  height: 160px;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-soft);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.article-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.article-gallery-item:hover img {
  transform: scale(1.07);
}

.article-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Lightbox, ako već nije dodat uz galeriju */

.lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(5, 18, 34, 0.86);
  backdrop-filter: blur(10px);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-content {
  width: min(980px, 100%);
  color: #fff;
  text-align: center;
}

.lightbox-content img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.lightbox-content p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  font-weight: 750;
}

.lightbox-close {
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 101;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.lightbox-close:hover {
  background: var(--primary);
  color: #fff;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 980px) {
  .article-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-gallery-item {
    height: 190px;
  }
}

@media (max-width: 640px) {
  .article-head,
  .article-body {
    padding: 22px;
  }

  .article-cover-button img {
    height: 280px;
    min-height: 280px;
  }

  .article-gallery {
    grid-template-columns: 1fr;
  }

  .article-gallery-item {
    height: 220px;
  }

  .lightbox {
    padding: 16px;
  }

  .lightbox-content img {
    border-radius: 18px;
  }

  .lightbox-close {
    top: 14px;
    right: 14px;
  }
}

/* =========================
   Admin / Login
========================= */

.login-container {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  width: min(480px, 100%);
}

.login-card .section-title {
  margin-bottom: 8px;
}

.login-card .section-sub {
  font-size: 16px;
}

.notice {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 650;
}

.notice.error {
  border: 1px solid rgba(190, 48, 48, 0.24);
  background: rgba(190, 48, 48, 0.1);
  color: #912b2b;
}

/* =========================
   Admin tables
========================= */

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

.admin-table th,
.admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-table td {
  color: var(--text);
  font-size: 15px;
}

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

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.status-badge.published {
  background: rgba(38, 132, 72, 0.12);
  color: #1f6b3a;
}

.status-badge.draft {
  background: rgba(200, 155, 60, 0.16);
  color: #7a5a15;
}

select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  font: inherit;
  outline: none;
}

select:focus {
  border-color: rgba(11, 79, 138, 0.5);
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.form-help {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

input[type="file"] {
  padding: 12px;
  min-height: auto;
  cursor: pointer;
}

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

.btn.danger {
  border-color: rgba(190, 48, 48, 0.28);
  background: rgba(190, 48, 48, 0.08);
  color: #912b2b;
}

.btn.danger:hover {
  background: #912b2b;
  color: #fff;
}
/* =========================
   Upload preview
========================= */

.upload-preview {
  margin-top: 12px;
}

.upload-preview-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.upload-preview-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface-soft);
  box-shadow: var(--shadow-soft);
}

.upload-preview-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.upload-preview-item span {
  display: block;
  padding: 7px 9px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
}

@media (max-width: 980px) {
  .upload-preview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .upload-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .upload-preview-item img {
    height: 110px;
  }
}

.upload-preview-item {
  position: relative;
  display: block;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
}

.upload-preview-item:hover {
  transform: translateY(-2px);
}

.upload-preview-item.is-main-image {
  border-color: #b48a43;
  box-shadow: 0 0 0 3px rgba(180, 138, 67, 0.22);
}

.upload-preview-item span {
  display: block;
  padding: 7px 8px;
  font-size: 13px;
  font-weight: 700;
}

.upload-preview-item.is-main-image span {
  background: #b48a43;
  color: #fff;
}

/* =========================
   Gallery pagination
========================= */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(11, 79, 138, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-size: 14px;
  font-weight: 850;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.pagination-link:hover {
  transform: translateY(-2px);
  border-color: rgba(11, 79, 138, 0.35);
  background: var(--primary-soft);
}

.pagination-link.is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  pointer-events: none;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}