/* GLOBAL STYLES
-------------------------------------------------- */
:root {
  --primary-color: #176fc1;
  --bs-primary-button-hover-color: #ed1c24;
  --button-text-size: 14px;
  --success-color: #02a04e;
  --bs-danger: #ed1c24;
  --hina-container-width: 1520px;
}
/* Custom wider container */
.container-hina {
  width: 100%;
  max-width: var(--hina-container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 12px;
  padding-right: 12px;
}
/* Override Bootstrap container-xl to match site width */
.container-xl {
  max-width: var(--hina-container-width);
}
/* Padding below the footer and lighter body text */
body {
  padding-top: 5rem;
  color: #5a5a5a;
}
a {
  color: var(--primary-color); /* Use the CSS variable for link color */
}
.smaller{
  font-size:11px;
}
.h-60 {
  height: 60%;
}
@media (min-width: 768px) and (max-width: 981px) {
  .h-60 {
    height: 50%;
  }
}
@media (min-width: 981px) and (max-width: 1021px) {
  .h-60 {
    height: 55%;
  }
}
.btn-danger {
  background-color: #ed1c24;
  border-color: #ed1c24;
}
.btn-success {
  background-color: #02a04e;
  border-color: #02a04e;
}
.bg-success {
  background-color: var(--success-color) !important;
  border-color: var(--success-color) !important;
}
.text-success {
  color: var(--success-color) !important;
}
.bg-grey {
  background-color: #d9dbdb;
}
.bg-violet {
  background-color: #544b62;
}
.border-violet {
  border-color: #544b62!important;
}
.border-red {
  border-color: #ed1c24!important;
}
.page-link {
  color: var(--primary-color);
}
.page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* FONTS & TEXT
-------------------------------------------------- */
body {
  font-family: "DM Sans", sans-serif;
  font-style: normal;
  font-weight: normal;
}
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: "Inter", sans-serif;
}
.text-primary {
  color: var(--primary-color)!important;
}
.dense {
  font-size: 15px;
}
.fresh {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px !important;
  line-height: 18px;
  color: #1C5073;
}
/* HEADER
-------------------------------------------------- */
.hina-navbar {
  padding: 0.75rem 0;
  background-color: #fff;
  box-shadow: none;
}
.hina-navbar::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  content: "";
}
.navbar-brand {
  background: url("../images/logo-hina.svg") 0 0 no-repeat scroll;
  background-size: auto;
  background-size: contain;
  width: 162.483px;
  height: 34.3px;
  text-indent: -9999px;
  text-decoration: none;
  border: none;
  position: relative;
  display: inline-block;
}
.hina-navbar .navbar-nav .nav-item,
.hina-navbar .navbar-nav .dropdown {
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.01em;
}
.hina-navbar .navbar-nav .nav-item .nav-link,
.hina-navbar .navbar-nav .dropdown .nav-link {
  padding-left: 0.4rem;
  padding-right: 0.4rem;
}
.hina-navbar .navbar-nav a.nav-link,
.hina-navbar .navbar-nav a.btn,
.hina-navbar .navbar-nav .dropdown-toggle {
  color: #0073C0;
  font-size: 15px;
  font-weight: 600;
}
.navbar-nav .nav-item a.nav-link {
  position: relative;
}

.navbar-nav .nav-item a.nav-link:after {
  content: "";
  position: absolute;
  height: 3px;
  width: 100%;
  left: 0;
  bottom: 0;
  background-color: var(--primary-color);
  z-index: 2;
  display: block;
  transition: height 0.3s ease;
  opacity: 0;
}
.second-navbar .navbar-nav .nav-item a.nav-link:after {
  background-color: #ed1c24;
}

.navbar-nav .nav-item a.nav-link:hover:after,
.navbar-nav .nav-item a.nav-link.active:after {
  height: 3px;
  opacity: 1;
}
.dropdown .nav-link.fw-bold {
  font-size: 16px;
}
/* TICKER
-------------------------------------------------- */
#ticker {
  background-color: #CCCFDA;
  padding: 0.5rem 0;
}
.wrapper {
  max-width: 99%;
  overflow: hidden;
}

.marquee {
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  animation: marquee 35s linear infinite;
}

.marquee p::before {
  content: "\00B7"; /* Unicode for middle dot */
  margin-right: 1.3em;
  color: #565A69;
}

.marquee p {
  display: inline-block;
  margin: 0;
  vertical-align: middle;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 18px;
  color: #565A69;
}

@keyframes marquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}
/* BUTTONS
-------------------------------------------------- */
.btn {
  font-size: var(--button-text-size);
}
.btn:focus,
.btn:active {
  outline: none !important;
  box-shadow: none !important;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}
/* Fallback for browsers that don't support CSS variables */
.btn-primary:hover {
  background-color: var(--bs-primary-button-hover-color);
  border-color: var(--bs-primary-button-hover-color);
}
.btn-circle {
  width: 45px;
  height: 45px;
  line-height: 45px;
  text-align: center;
  padding: 0;
  border-radius: 50%;
}

.btn-circle i {
  position: relative;
  top: -1px;
}

.btn-circle-sm {
  width: 30px;
  height: 30px;
  line-height: 30px;
  font-size: 0.9rem;
}
/* HOME TOP - Hero & Mid Cards
-------------------------------------------------- */
.home-top .row {
  min-height: 620px;
  align-items: stretch;
}
.home-top__hero {
  flex: 0 0 37%;
  max-width: 37%;
}
.home-top__mid {
  flex: 0 0 18%;
  max-width: 18%;
  gap: 8px;
}
.home-top__mid .card-link {
  margin: 0;
}
.home-top__panels {
  flex: 0 0 45%;
  max-width: 45%;
  align-items: stretch;
}
.home-top__panels > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.home-top__panels > div:first-child {
  border-right: 1px solid #D6DCE2;
}
.home-top__panels .latest-panel {
  flex: 1;
}

/* Hero card */
.hero-card {
  display: block;
  background: #1C5073;
  height: 100%;
  position: relative;
}
.hero-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-card__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #1C5073;
  z-index: 1;
  padding: 12px 24px 24px 24px;
}
.hero-card__overlay .section-label {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: #ed1c24;
}
.hero-card__title {
  font-family: 'Inter', sans-serif;
  font-size: 26px;
  line-height: 32px;
}
.hero-card__lead {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  line-height: 20px;
  color: rgba(255,255,255,0.85);
}

/* Mid cards (classic: image top, text below) */
.mid-card {
  background: #fff;
  border: none;
}
.mid-card__img-wrap {
  overflow: hidden;
  flex-shrink: 0;
}
.mid-card__img-wrap .mid-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mid-card__img-wrap {
  height: 50%;
  min-height: 130px;
}
.mid-card__badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 2;
  background: rgba(0,0,0,0.55);
  color: #fff;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.mid-card__body {
  flex-grow: 1;
}
.mid-card__body .section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #ed1c24;
}
.mid-card__body time {
  font-size: 11px;
  color: #8A8E9A;
}
.mid-card__title {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 20px;
  color: #1a1a2e;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1199.98px) {
  .home-top__hero,
  .home-top__mid,
  .home-top__panels {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .home-top .row {
    min-height: auto;
  }
  .hero-card {
    min-height: 400px;
  }
}
@media (max-width: 575.98px) {
  .hero-card {
    min-height: 300px;
  }
  .hero-card__title {
    font-size: 20px;
    line-height: 26px;
  }
}

/* LATEST PANEL (tabbed sidebar)
-------------------------------------------------- */
.latest-panel {
  background: #EDF1F5;
  border: none;
}
.latest-panel__tabs {
  gap: 0;
  background: #D6DCE2;
  align-items: flex-end;
}
.latest-panel__tab {
  flex: 1;
  text-align: center;
  padding: 0.4rem 0.75rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  text-decoration: none;
  color: #8A8E9A;
  background: #D6DCE2;
  border: none;
  border-bottom: 3px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
}
.latest-panel__tab.active,
.latest-panel__tab:hover {
  color: #1C5073;
  background: #fff;
  border-bottom-color: #ed1c24;
  padding: 0.65rem 0.75rem;
  font-size: 15px;
}
.latest-panel__tab--icon {
  font-size: 13px;
}
.latest-panel__body {
  max-height: none;
  overflow-y: auto;
  flex: 1 1 0;
  min-height: 0;
}
.latest-panel__body > .btn-link[disabled] {
  display: none;
}
.latest-panel__body > .btn-link {
  font-size: 11px;
  padding: 0.15rem 0 !important;
  line-height: 1;
}
.latest-panel__bullet {
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background: #1C5073;
  display: inline-block;
}
.home-top__panels > div:last-child .latest-panel__bullet {
  background: #1C5073;
}
.latest-panel__item {
  border-color: #D6DCE2 !important;
}
.latest-panel__item .card-title {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 18px;
  color: #1a1a2e;
}
.latest-panel__item .d-flex {
  padding-top: 0.4rem !important;
  padding-bottom: 0.4rem !important;
}
.latest-panel__item:last-of-type {
  border-bottom: none !important;
}
.latest-panel__footer {
  background: #EDF1F5;
}
.latest-panel__footer .btn {
  border-radius: 20px;
  font-size: 12px;
  padding: 0.3rem 1rem;
  background: #1C5073;
  border-color: #1C5073;
  color: #fff;
}
.latest-panel__footer .btn:hover {
  background: #164260;
  border-color: #164260;
  color: #fff;
}
.home-top__panels > div:last-child .latest-panel__footer .btn {
  background: #ed1c24;
  border-color: #ed1c24;
  color: #fff;
}
.home-top__panels > div:last-child .latest-panel__footer .btn:hover {
  background: #c8171e;
  border-color: #c8171e;
}

/* CAROUSEL
-------------------------------------------------- */

#carouselCaptions .carousel-item {
  height: 87vh;
  -webkit-transform-style: preserve-3d;
  -moz-transform-style: preserve-3d;
  transform-style: preserve-3d;
}
#carouselCaptions .carousel-item img {
  object-fit: cover;
  object-position: center;
  height: 87vh;
  overflow: hidden;
}
/* Servisi
-------------------------------------------------- */
.accordion-item {
  border: none;
}
.accordion-button:focus {
  box-shadow: none;
}
.accordion-button {
  color: rgb(90, 90, 90);
  background-color: rgb(248, 249, 250);
  margin-bottom: 20px;
}
.accordion-button:not(.collapsed) {
  color: rgb(90, 90, 90);
  background-color: rgb(248, 249, 250);
  box-shadow: none;
}

/* Portali
------------------------- */
.portali {
  height: 45vh;
}
@media (max-width: 576px) {
  .portali {
    height: 200px;
  }
}
/* O nama
------------------------- */
.onama {
  background-image: url("../images/onama.jpg");
  width: 100%;
  height: 70vh;
  background-size: cover;
  background-position: center;
}
/* Footer
------------------------- */
.footer {
  background-color: var(--primary-color) !important;
}
.footer a {
  font-size: 14px;
  text-decoration: none;
}
.issn {
  font-size: 14px;
}
.f-brand {
  background: url("../images/transparent-logo.svg") top right no-repeat;
  background-size: contain;
  width: 111px;
  height: 50px;
  text-indent: -9999px;
  text-decoration: none;
  border: none;
}
.footer-brand {
  width: 100px;
  height: auto;
}
#btn-back-to-top {
  position: fixed;
  bottom: 88px;
  right: 22px;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  border-radius: 50% !important;
  background-color: #ed1c24;
  border: none;
  line-height: 0 !important;
  font-size: 0;
  z-index: 1070;
}
#btn-back-to-top.show,
#btn-back-to-top[style*="display: block"],
#btn-back-to-top[style*="display:block"],
#btn-back-to-top[style*="display: flex"],
#btn-back-to-top[style*="display:flex"] {
  display: flex !important;
}
#btn-back-to-top i,
#btn-back-to-top i::before {
  font-size: 32px !important;
  line-height: 1 !important;
  display: block;
  font-weight: bold;
  width: 1em;
  height: 1em;
  text-align: center;
}
/* Re-stack when accessibility panel is open so back-to-top stays clear of it */
html .hina-a11y-panel.is-open ~ #btn-back-to-top {
  display: none !important;
}

/* IMAGES
------------------------- */
.card-img-top {
  width: 100%;
  object-fit: cover;
}
/* CARDS
------------------------- */
.card-link,
.card-link:hover {
  text-decoration: none;
  color: inherit;
}
.card-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 30px;
  color: #1C5073;
}
.card-title.fs-4 {
  font-size: 22px !important;
  line-height: 26px !important;
}
.card-title.fs-6 {
  font-size: 16px !important;
  line-height: 20px !important;
}
.card-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 22px;
  color: #565A69;
}
.section-label,
h2.fw-bold.fs-5.text-black-50 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 12px !important;
  line-height: 24px;
  color: #1C5073 !important;
}
.card-footer {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
}
.card-footer time,
.card-footer .text-black-50 {
  color: #91939A !important;
}
.photo-limit {
  display: -webkit-box;
  -webkit-line-clamp: 10;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: balance;
}

/* AUDIO
------------------------- */
.player {
  width: 100%;
  max-width: 288px !important;
}
.rounded-pill {
  font-size: 0.9rem;
}
/* ARTICLE
------------------------- */
.timestamp {
  font-size: 11px;
}
.entry-content p {
  color: #434343!important;
}
/* ARTICLE CAROUSEL
------------------------- */
.carousel-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 5px; /* Adjust the gap value as needed */
}
.carousel-thumbnail {
  position: relative;
  width: auto; /* Adjust the width to maintain aspect ratio */
  height: 62.9px; /* Set a fixed height for all thumbnails */
  cursor: pointer;
}

.carousel-thumbnail img {
  width: 100%;
  height: auto;
}
.article-img {
  width: 100%;
  object-fit: cover;
  cursor: pointer;
}

/* OTS logo: centered on white background */
.ots-logo {
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}
.ots-logo img {
  max-width: 100%;
  max-height: 200px;
  width: auto;
  object-fit: contain;
}
.modal-img {
  width: 100%;
  object-fit: contain;
  cursor: pointer;
}
.plain {
  text-decoration: none;
  color:inherit;
}
.plain:hover {
  text-decoration: none;
  color:var(--primary-color);
}
.map-polygon {
  fill: #f2f1ee;
  stroke: #bdb9ab;
  pointer-events: visible;
  cursor: pointer;
}
/* MAP
------------------------- */
.map-polygon-group {
   pointer-events: visible;
}

.map-polygon {
   fill: rgb(242, 241, 238);
   stroke: rgb(189, 185, 171);
   pointer-events: visible;
   cursor: pointer;
}

.map-polygon-group:hover .map-polygon, .map-polygon-group.selected .map-polygon {
   fill: rgb(192, 233, 192);
}

.map-text {
   display: none;
   cursor: pointer;
   font-size: 12px;
}

.map-polygon-group:hover .map-text, .map-polygon-group.selected .map-text {
   display: block;
}
