img {
  object-fit: cover;
}
body {
  background-color: #fff;
}
.navbar>.container {
  justify-content: start;
}
a:hover {
  text-decoration: none;
}
.navbar-dark .navbar-brand {
  color: #ffffff;
  padding: 12px 0;
  font-size: 18px;
}
.navbar {
  font-weight: 700;
  font-size: 24px;
  border-bottom: 2px solid #a9a9a9;
  padding: 0.1rem 1rem;
  background-color: #000000;
}
.navbar-dark .navbar-brand {
  font-size: 36px;
}
.title {
  box-sizing: border-box;
  width: 100%;
  padding: 0 10px 0 13px;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 500;
  color: #333;
}
.news-title {
  font-size: 8px;
}
.news-title span {
  font-weight: 500;
}
.author-img {
  width: 20px;
  height: 20px;
}
a {
  color: #000;
}
h1,
.h1 {
  font-size: 18px;
  font-weight: bold;
}
h2,
.h2 {
  font-size: 16px;
  font-weight: bold;
}
.grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: flex-start;
  gap: 16px;
}
.sidebar {
  position: sticky;
  top: 10px;
}
.teaser-vertical {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  background-color: #EFEEEE;
  margin-bottom: 1rem;
}
.teaser-horizontal {
  border-top: 2px solid #eee;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}
a {
  text-decoration: none;
}
.teaser-horizontal .title {
  font-size: 17px;
  padding: 10px 0 0 0;
}
.teaser-vertical .image-crop {
  flex: 0 0 35%;
  height: 100px;
}
.teaser-vertical .image-crop img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.teaser-horizontal {
  margin: 0;
  padding-bottom: 3rem;
}
.teaser-button {
  position: relative;
}
.teaser-horizontal .button {
  font-size: 15px;
}
.button {
  position: absolute;
  bottom: 0;
  right: 0;
  padding: 3px 6px;
  font-size: 11px;
  border: 2px solid #000;
  border-radius: 5px;
  margin: 3px;
  background-color: white;
  cursor: pointer;
}
@media (max-width:770px) {
  .teaser-vertical .title {
    margin-bottom: 31px;
  }
  .teaser-vertical .button {
    font-size: 9px;
    padding: 2px 4px;
  }
}
@media (min-width: 992px) {
  .card-text {
    font-size: 16px;
    line-height: 1.4;
  }
  .card-text p {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 1.2rem;
  }
}
@media (min-width: 992px) {
  .card-text {
    font-size: 20px;
    line-height: 2;
  }
  .navbar-nav {
    font-size: 16px;
  }
  .news-title,
  .main-info {
    font-size: 15px;
  }
}
.image {
  overflow: hidden;
  position: relative;
}
.image-crop {
  overflow: hidden;
}
.card-text {
  font-size: 1rem;
}
footer {
  margin-top: 10px;
  padding-bottom: 1rem;
  background-color: #fff;
}
footer p {
  margin-bottom: 0;
  color: #222;
}
footer .header {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  margin-top: 10px;
}
.text-muted {
  color: #222 !important;
}
.container {
  max-width: 1140px;
}
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}
.card-body p {
  padding: 10px 15px 0;
}
.teaser-horizontal {
  padding: 15px 15px 3rem 15px;
}
.custom-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.2);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInOverlay 0.3s ease-out;
}

@keyframes fadeInOverlay {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.custom-popup {
  position: relative;
  width: 95vw;
  max-width: 900px;
  height: 80vh;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: scaleInPopup 0.3s ease-out;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

@keyframes scaleInPopup {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.popup-header {
  background-color: #272663;
  color: white;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.popup-header .brand {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.popup-header .brand img {
  width: 30px;
  margin-left: 10px;
}

.close-popup {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s;
  padding: 0 0.25rem;
}

.close-popup:hover {
  opacity: 1;
  transform: scale(1.15);
}

.popup-body {
  flex: 1;
  /* overflow-y: auto; */
  padding: 1.25rem;
  background-color: #f8f9fa;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;

}

.popup-body .teaser-card img {
  border-radius: 10px;
}

.popup-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 1.25rem;
}

.teaser-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.25s;
  padding: 20px;
}

.teaser-card .image-crop img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 200px;
}

.teaser-card .content {
  padding: 1rem;
}

.teaser-card .title {
  font-weight: 600;
  font-size: 1.15rem;
  color: #272663;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.teaser-card .btn-more {
  display: inline-block;
  background-color: #272663;
  color: white;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 40px;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 0.2s;
  cursor: pointer;
}

.teaser-card .btn-more:hover {
  background-color: #1d1b4f;
  color: white;
  text-decoration: none;
}

@media (max-width: 768px) {
  .custom-popup {
    width: 92vw;
    height: 75vh;
  }
  .popup-header .brand {
    font-size: 1rem;
  }
  .custom-popup-overlay {
    overflow-x: hidden;
  }
  .popup-card {
    padding: 0;
  }
  .teaser-card {
    padding: 0;
    border: none;
  }
  .teaser-card .title {
    hyphens: auto;
  }

  img {
    max-width: 100%;
    height: auto;
  }
    .grid {
      grid-template-columns: 1fr;
    }
  .sidebar {
    display: none;
  }
}