/* USNIPress Custom Styles */

/* Hero Carousel */
#hero {
  height: auto;
  min-height: 0;
  overflow: hidden;
  background: transparent !important;
  padding-top: 20px;
  padding-bottom: 0;
  margin-bottom: 0;
}

#hero .carousel-container {
  padding-top: 1;
  height: auto;
  min-height: auto;
}

#hero .carousel-item {
  height: auto;
  min-height: auto;
  display: block;
}

#heroCarousel {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0;
}

#hero .container {
  width: 100%;
  max-width: none;
  padding-left: 24px;
  padding-right: 24px;
}

#heroCarousel .carousel-inner {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(16, 32, 51, 0.14);
  background: #fff;
}

#heroCarousel .carousel-item {
  width: 100%;
  aspect-ratio: 50 / 5;
  min-height: 420px;
  max-height: 560px;
  overflow: hidden;
}

#hero .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#hero .container {
  max-width: 4000px;   /* sesuaikan dengan lebar navbar */
}

/* News Cards */
.news-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.news-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.news-body {
  padding: 20px;
}

.news-title {
  font-size: 1rem;
  font-weight: 700;
  color: #37517e;
  margin-bottom: 10px;
  line-height: 1.4;
}

.news-desc {
  font-size: 0.9rem;
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-link {
  color: #47b2e4;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}

.news-link:hover {
  color: #209ce8;
  text-decoration: underline;
}

/* Main Content */
#main {
  padding-top: 0;
  margin-top: 0;
}

/* Container width aligned to navbar (1104px) for USNIPress pages */
#usnipress .container,
#visi_misi .container,
#portal-berita .container,
#kontak .container,
#unduhan .container {
  max-width: 1104px;
}

.hero-waves {
  display: none;
}

#usnipress-logo {
  padding: 0;
  margin-top: -10px;
  margin-bottom: 0;
  background: transparent;
  position: relative;
  z-index: 5;
}

#usnipress-logo .section-title img {
  max-height: 150px;
}

#konten_homepage_usnipress {
  padding-top: 0;
  margin-top: 0;
}

/* Simple Blue Footer for USNIPress */
.footer-usnipress-simple {
  background: #375281;
  color: #ffffff;
  text-align: center;
  padding: 25px;
  margin-top: 20px;
  border-radius: 0;
}

.footer-usnipress-simple .footer-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.footer-usnipress-simple .footer-logo img {
  height: 100px;
  width: auto;
}

.footer-usnipress-simple .footer-copyright {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 400;
}

/* Existing footer styles */
#footer.footer-usnipress {
  background: #5f96f5;
  color: #0b1d51;
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 0px;
  box-shadow: 0 4px 20px rgba(95, 150, 245, 0.3);
  margin: 20px auto;
  max-width: 1100px;
}

.footer-usnipress-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
}

#footer.footer-usnipress .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px;
  background: #ffffff;
}

.footer-usnipress .credits {
  font-size: 0.9rem;
  color: #0b1d51;
}

/* Footer for other USNIPress pages */
#footer {
  background: #5f96f5;
  color: #ffffff;
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(95, 150, 245, 0.3);
  margin: 20px auto;
  max-width: 1100px;
}

#footer .footer-top {
  background: #5f96f5;
  color: #ffffff;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(95, 150, 245, 0.3);
}

#footer .footer-top h3,
#footer .footer-top h4 {
  color: #ffffff;
}

#footer .footer-top .footer-links ul a {
  color: #ffffff !important;
}

#footer .footer-top .footer-links ul a:hover {
  color: #ffffff !important;
}

#footer .footer-top .social-links a {
  color: #ffffff;
  background: #5f96f5;
}

#footer .footer-top .social-links a:hover {
  background: #477ee4;
  color: #ffffff;
}

#footer .footer-bottom {
  background: #5f96f5;
  color: #ffffff;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(95, 150, 245, 0.3);
}
