:root {
  --site-bg: #eef3f7;
  --site-surface: rgba(255, 255, 255, 0.88);
  --site-surface-strong: #ffffff;
  --site-text: #142235;
  --site-muted: #617188;
  --site-primary: #0f4c81;
  --site-primary-dark: #0a3558;
  --site-accent: #c83c3c;
  --site-accent-soft: #f7d8d8;
  --site-border: rgba(20, 34, 53, 0.08);
  --site-shadow: 0 18px 40px rgba(17, 35, 56, 0.10);
  --site-radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Source Sans Pro", sans-serif;
  color: var(--site-text);
  background:
    radial-gradient(circle at top left, rgba(15, 76, 129, 0.14), transparent 30%),
    radial-gradient(circle at top right, rgba(200, 60, 60, 0.10), transparent 28%),
    linear-gradient(180deg, #f6f9fc 0%, #edf2f7 55%, #e9eef4 100%);
}

a {
  transition: color .2s ease, opacity .2s ease, transform .2s ease;
}

header {
  position: relative;
  background:
    linear-gradient(135deg, rgba(7, 32, 59, 0.96), rgba(13, 69, 114, 0.92)),
    url("/static/assets/images/up_use.svg");
  background-size: cover;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

header::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 80px;
  background: linear-gradient(180deg, transparent, rgba(3, 16, 30, 0.22));
  pointer-events: none;
}

header .navbar-top {
  padding: 18px 0 14px;
}

header .navbar-top .navbar-top-left-menu .nav-item .nav-link {
  font-size: 14px;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, 0.82);
}

header .navbar-top .navbar-top-left-menu .nav-item .nav-link:hover {
  color: #fff;
}

header .navbar-bottom {
  padding-bottom: 18px;
}

header .navbar-bottom .navbar-nav .nav-item .nav-link {
  font-size: 14px;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, 0.95);
  padding: 0 12px;
}

header .navbar-bottom .navbar-nav .nav-item .nav-link:hover,
header .navbar-bottom .navbar-nav .nav-item.show .nav-link {
  color: #9fd4ff;
}

header .navbar .navbar-brand img {
  width: 150px;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.18));
}

.dropdown-menu {
  border: 1px solid rgba(11, 43, 71, 0.10);
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(16, 29, 48, 0.14);
  padding: 10px;
}

.dropdown-menu .dropdown-item {
  border-radius: 10px;
  padding: 10px 12px;
}

.dropdown-menu .dropdown-item:hover {
  background: rgba(15, 76, 129, 0.08);
  color: var(--site-primary-dark);
}

.flash-news-banner {
  position: relative;
  margin: -10px auto 0;
  z-index: 2;
  background: transparent;
  padding: 0 0 18px;
}

.flash-news-banner .container > .d-lg-flex {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 20px 40px rgba(10, 25, 42, 0.10);
  border-radius: 20px;
  padding: 18px 22px;
  backdrop-filter: blur(10px);
}

.flash-news-banner .badge.badge-danger {
  border-radius: 999px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #d93939, #a91f1f);
  box-shadow: 0 8px 20px rgba(201, 60, 60, 0.28);
}

.flash-news-banner p,
.flash-news-banner span {
  color: var(--site-text);
}

.flash-news-banner form {
  background: #f5f8fb;
  border: 1px solid var(--site-border);
  border-radius: 999px;
  padding: 6px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.flash-news-banner input.form-control {
  min-width: 220px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.flash-news-banner input.form-control:focus {
  box-shadow: none;
}

.content-wrapper {
  background: transparent;
  padding: 16px 0 70px;
}

.card {
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  box-shadow: var(--site-shadow);
  backdrop-filter: blur(6px);
}

.card .card-body {
  padding: 28px;
}

.hero-frame {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(16, 32, 56, 0.18);
}

.hero-frame iframe,
.hero-frame img {
  display: block;
}

.hero-frame .embed-responsive,
.hero-frame .embed-responsive iframe,
.hero-frame .embed-responsive-item {
  display: block;
  line-height: 0;
}

.home-program-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.16), transparent 24%),
    linear-gradient(145deg, #0d3d66, #11638f 55%, #4c8abd);
}

.home-program-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(5, 19, 34, 0.20));
  pointer-events: none;
}

.home-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--site-text);
  margin-bottom: 1.25rem;
}

.sidebar-card,
.content-card,
.page-card,
.story-card,
.news-detail-card {
  border-radius: 26px;
}

.news-feed-item {
  padding: 20px;
  border-radius: 20px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(17, 35, 56, 0.07);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.news-feed-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 28px rgba(16, 32, 56, 0.10);
  background: rgba(255,255,255,0.96);
}

.news-feed-item + .news-feed-item {
  margin-top: 18px;
}

.news-feed-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

.news-feed-thumb img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}

.news-feed-meta,
.story-meta,
.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--site-muted);
  font-size: 14px;
  margin-bottom: 14px;
}

.news-feed-title,
.story-title {
  font-size: clamp(1.4rem, 2.5vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-weight: 700;
  margin-bottom: 14px;
}

.news-feed-title a,
.story-title a {
  color: var(--site-text);
  text-decoration: none;
}

.news-feed-title a:hover,
.story-title a:hover {
  color: var(--site-primary);
}

.sidebar-section-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--site-text);
}

.sidebar-news-item {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(17, 35, 56, 0.08);
}

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

.sidebar-news-thumb {
  width: 82px;
  height: 82px;
  overflow: hidden;
  border-radius: 14px;
  background: #eaf0f6;
}

.sidebar-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vertical-menu li a {
  border-radius: 14px;
  padding: 11px 14px !important;
  color: var(--site-muted) !important;
  background: transparent;
}

.vertical-menu li a:hover,
.vertical-menu li a:focus {
  background: rgba(15, 76, 129, 0.08);
  color: var(--site-primary-dark) !important;
}

.badge-positioned {
  left: 14px !important;
  bottom: 14px !important;
}

.badge-danger {
  background: linear-gradient(135deg, #d43939, #a11f1f);
}

.pagination {
  padding: 32px 0 0;
  gap: 12px;
}

.pagination .page-item .page-link {
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 14px;
  color: var(--site-text);
  border-color: rgba(17, 35, 56, 0.10);
  background: rgba(255, 255, 255, 0.9);
}

.pagination .page-item .page-link:hover {
  color: #fff;
  background: var(--site-primary);
  border-color: var(--site-primary);
}

.news-detail-card {
  overflow: hidden;
}

.story-cover {
  border-radius: 24px;
  overflow: hidden;
  margin: 20px 0 28px;
}

.story-cover img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.story-content {
  font-size: 1.08rem;
  line-height: 1.8;
  color: #1b2b3f;
}

.story-content p {
  margin-bottom: 1.3rem;
}

.story-quote {
  margin: 28px 0;
  padding: 24px 28px;
  border-left: 4px solid var(--site-accent);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(200,60,60,.08), rgba(15,76,129,.06));
}

.story-aside {
  position: sticky;
  top: 24px;
}

.story-share {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.story-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.story-tags .badge-outline-dark {
  border-radius: 999px;
  padding: 8px 12px;
}

.meta-panel {
  margin-top: 26px;
  padding: 20px 22px;
  border-radius: 18px;
  background: rgba(245, 248, 251, 0.96);
  border: 1px solid rgba(17, 35, 56, 0.08);
}

.page-card .aboutus-wrapper {
  padding: 0;
  max-width: 900px;
}

.page-card .aboutus-wrapper h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 18px;
  line-height: 1.05;
}

.page-card .aboutus-wrapper img {
  border-radius: 22px;
  box-shadow: var(--site-shadow);
}

.page-card .aboutus-wrapper p,
.page-card .aboutus-wrapper li {
  font-size: 1.08rem;
  line-height: 1.75;
}

footer .footer-top,
footer .footer-bottom {
  background:
    linear-gradient(160deg, rgba(5, 24, 43, 0.98), rgba(10, 55, 93, 0.96)),
    url("/static/assets/images/uzel.svg");
}

footer .footer-top {
  padding: 64px 0 34px 0;
}

footer .footer-bottom {
  padding: 18px 0 34px 0;
}

#cookie-consent {
  backdrop-filter: blur(10px);
  background: rgba(20, 24, 31, 0.92) !important;
}

@media (max-width: 991.98px) {
  .flash-news-banner .container > .d-lg-flex {
    gap: 16px;
  }

  .flash-news-banner form {
    width: 100%;
  }

  .flash-news-banner input.form-control {
    min-width: 0;
    width: 100%;
  }

  .news-feed-thumb img {
    min-height: 220px;
  }

  .story-aside {
    position: static;
    margin-top: 28px;
  }
}

@media (max-width: 767.98px) {
  .card .card-body {
    padding: 20px;
  }

  .flash-news-banner {
    padding-bottom: 12px;
  }

  .flash-news-banner .container > .d-lg-flex {
    border-radius: 18px;
    padding: 16px;
  }

  .news-feed-item {
    padding: 16px;
  }

  .home-section-title,
  .sidebar-section-title {
    font-size: 1.15rem;
  }

  .story-title {
    font-size: 2rem;
  }

  footer .footer-top {
    padding-top: 42px;
  }
}
