/* ==============
   RESET & FONT
   ============== */
body {
  font-family: 'Inter', sans-serif;
  background: #f8f9fa;
  color: #333;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5 {
  font-weight: 700;
}

/* ==============
   NAVBAR
   ============== */
.navbar-custom .dropdown-menu {
  background: rgba(0, 60, 150, 0.95);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 0.75rem;
  padding: 0.5rem;
  /* Hapus display:none */
}

/* Desktop: aktifkan hover */
@media (min-width: 992px) {
  .navbar .dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}
.navbar-custom {
  background-color: #002b5c; /* biru tua */
  transition: all 0.3s ease;
}

.navbar-custom .navbar-brand {
  font-weight: 800;
  color: #fff;
  font-size: 1.5rem;
}

.navbar-custom .navbar-brand span {
  color: #f1c40f; /* aksen emas */
}

.navbar-custom .nav-link {
  color: #222 !important;
  font-weight: 500;
  padding: 0.75rem 1rem;
}

.navbar-custom .nav-link:hover {
  color: #f1c40f !important;
}

.navbar-custom.scrolled {
  background-color: rgba(0, 43, 92, 0.95);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Tombol hamburger */
.navbar-toggler {
  border: #fff;
  outline: #fff;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255,255,255,1%29' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Saat navbar scrolled → ikon berubah jadi gelap */
.navbar-custom.scrolled .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%280,0,0,1%29' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Item dropdown */
.navbar-custom .dropdown-item {
  color: rgba(0, 60, 150, 0.95);
  font-weight: 500;
  padding: 0.5rem 1.2rem;
  transition: background 0.2s ease, color 0.2s ease;
}

/* Hover item */
.navbar-custom .dropdown-item:hover,
.navbar-custom .dropdown-item:focus {
  background: rgba(0, 60, 150, 0.95);
  color: #ffcc00; /* aksen gold */
}

/* ==============
   HERO SECTION
   ============== */
.site-hero {
  position: relative;
  height: 8vh;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* parallax desktop */
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: -1;
}

.hero-inner {
  position: relative;
  z-index: 3;
  padding: 10px 15px;
  max-width: 800px;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-ctas .btn {
  margin: 0 0.5rem;
  font-weight: 600;
  border-radius: 50px;
  padding: 0.6rem 1.5rem;
}

/* Responsif hero */
@media (max-width: 768px) {
  .hero-title { font-size: 2rem; }
  .hero-sub { font-size: 1rem; }
  .site-hero { height: 60vh; }
}

/* ==============
   SLIDER (CAROUSEL)
   ============== */
.carousel-item img {
  width: 100%;
  height: auto;
  object-fit: cover;       /* isi penuh, proporsional */
  object-position: center; /* fokus tengah */
}

@media (max-width: 768px) {
  .carousel-item img {
    height: 50vh;
    object-fit: contain;   /* di mobile lebih aman */
    background: #000;      /* isi ruang kosong biar rapi */
  }
}

/* === Responsive Grid Fix === */
@media (max-width: 992px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
/* === Navbar Toggler di Kanan (mobile) === */
@media (max-width: 991px) {
  .navbar-custom .container-narrow {
    display: flex;
    align-items: center;
  }

  .navbar-custom .navbar-brand {
    order: 1; /* tetap di kiri */
  }

  .navbar-custom .navbar-toggler {
    order: 2; /* pindahkan ke kanan */
    margin-left: auto; /* pastikan nempel kanan */
  }
}

/* === Hero Parallax Optimized for Mobile === */
.hero-bg {
  background-size: cover;
  background-position: center;
  will-change: transform;
  transform: translateZ(0); /* GPU acceleration */
  transition: transform 0.15s ease-out;
}

/* Mobile: kurangi efek parallax supaya lebih smooth */
@media (max-width: 768px) {
  .hero-bg {
    background-attachment: scroll; /* no fixed di mobile */
    transform: none !important;    /* disable parallax */
  }
}


@media (max-width: 768px) {
  .navbar-custom .nav-link {
    display: block;
    padding: 0.75rem;
  }
  .navbar-custom .navbar-nav {
    margin-top: 0.5rem;
  }
  .navbar-custom .navbar-brand {
    margin-right: auto;
    font-size: 1.1rem;
  }
}

/* ==============
   CONTENT
   ============== */
.container h2 {
  color: #002b5c;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.card {
  border: none;
  border-radius: 8px;
}

.card-body {
  padding: 1.25rem;
}

.list-group-item {
  border: none;
  border-bottom: 1px solid #eee;
}

/* ==============
   GALLERY
   ============== */
.card img {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  max-height: 200px;
  object-fit: cover;
}
	
/* ==============
   FOOTER
   ============== */
.site-footer {
  background: #002b5c;
  color: #fff;
  padding: 40px 20px;
  margin-top: 40px;
}

.site-footer a {
  color: #f1c40f;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer h6 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 0.25rem;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}
.footer-kanisius {
  background-color: #002147; /* samakan dengan navbar */
  color: #fff;
  font-family: 'Inter', sans-serif;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 0.25rem;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}


/* Majalah Grid */
.majalah-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.majalah-item {
  text-align: center;
}

.majalah-thumb {
  width: 150px;
  height: 200px;
  object-fit: cover;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  transition: transform 0.3s;
}

.majalah-thumb:hover {
  transform: scale(1.05);
}

.majalah-title {
  margin-top: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #002b5c;
}

/* Section base */
.section {
  padding: 80px 20px;
  position: relative;
  z-index: 1;
}

.section-light {
  background-color: #f8f9fa;
}

.section-dark {
  background-color: #002b5c;
  color: #fff;
}

/* Heading section */
.section-title {
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Parallax wrapper */
.parallax-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  max-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
  will-change: transform; /* GPU hint */
}

.parallax-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1;
}

.parallax-content {
  position: relative;
  z-index: 1;
}

/* Button style */
.btn-custom {
  background-color: #ffcc00;
  border: none;
  color: #002b5c;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  transition: all 0.3s ease;
}
.btn-custom:hover {
  background-color: #e6b800;
  color: #fff;
}

/* Footer optimasi */
.footer-kanisius {
  background-color: #002b5c; /* sama dengan navbar */
  color: #fff;
}
.footer-links a {
  color: #fff;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}
.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Desktop: aktifkan hover */
@media (min-width: 992px) {
  .navbar .dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

.site-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.site-hero .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  will-change: transform;
}

.site-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1;
}

.site-hero .hero-inner {
  position: relative;
  z-index: 1;
}