/* =============== STYLE.CSS UNTUK IBI KKG HOMEPAGE =============== */

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
  background-color: #f9f9f9;
}

/* ===== TOP NAVBAR ===== */
.bg-opacity-40 {
  background-color: rgba(14, 63, 85, 0.4) !important;
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.topbar-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.topbar-links a {
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 4px 8px;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.topbar-links a:hover {
  color: #ffc107;
}

.topbar-search {
  max-width: 150px;
}

/* ===== MAIN NAVBAR ===== */
header h1 {
  font-size: 1.4rem;
  font-weight: bold;
  margin-right: 20px;
}

header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: flex-end;
}

header nav a {
  font-size: 0.95rem;
  transition: color 0.3s ease;
  padding: 4px 8px;
  white-space: nowrap;
}

header nav a:hover {
  color: #ffc107;
}

/* ===== HERO SECTION ===== */
.hero-image-bg {
  position: relative;
  width: 100vw; /* Full viewport width */
  height: 500px;
  margin-left: calc(-50vw + 50%); /* Trick untuk keluar dari container */
  overflow: hidden;
  display: block;
}

.hero-image-bg img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center;
  display: block; /* Menghilangkan space di bawah image */
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
}

.hero-text {
  position: absolute;
  top: 30%;
  left: 5%;
  transform: translateY(-30%);
  z-index: 10;
  max-width: 90%;
  font-size: 2rem;
  font-weight: bold;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

.hero-text .line-1 {
  text-align: center;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-text .line-2 {
  text-align: center;
  width: 100%;
  animation: fadeInUp 1s ease-out 1s both;
}

.hero-text .line-3 {
  text-align: center;
  width: 100%;
  animation: fadeInUp 1s ease-out 1.5s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsif untuk tablet */
@media (max-width: 768px) {
  .hero-text {
    font-size: 1.5rem;
    left: 5%;
  }
}

/* Responsif untuk HP */
@media (max-width: 480px) {
  .hero-text {
    font-size: 1.2rem;
    left: 5%;
  }
}

/* ===== PROGRAM SECTION ===== */
section.bg-light .col-md-4 h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1rem;
  color: #002E43;
}

/* ===== VISI & MISI ===== */
section .row.g-5 h2 {
  color: #002E43;
  font-weight: bold;
  margin-bottom: 1rem;
  position: relative;
}
section .row.g-5 h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: #ffc107;
  margin-top: 8px;
}

/* ===== FASILITAS BOX ===== */
.border.p-4 {
  background-color: #fff;
  border: 2px solid #002E43 !important;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}
.border.p-4:hover {
  background-color: #002E43;
  color: white;
  transform: scale(1.03);
}

.fasilitas h2 {
  font-weight: bold;
  color: #002E43;
  position: relative;
}

.fasilitas h2::after {
  content: '';
  width: 60px;
  height: 4px;
  background-color: #ffc107;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
}

.fasilitas .border {
  border: 2px solid #002E43 !important;
  border-radius: 10px;
  transition: all 0.3s ease;
  font-weight: 500;
  background-color: #fff;
}

.fasilitas .border:hover {
  background-color: #002E43;
  color: #fff;
  transform: scale(1.05);
}

/* ===== EVENT & BERITA CARDS ===== */
.card {
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 0 15px rgba(0,0,0,0.05);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 25px rgba(0,0,0,0.08);
}
.card-title {
  color: #ffc107;
  font-weight: 600;
}

.btn-outline-warning:hover {
  background-color: #002E43;
  color: #fff;
}

/* ===== SPONSOR LOGOS ===== */
section .d-flex img {
  filter: brightness(100%);
  transition: 0.5s ease;
}

section .d-flex img:hover {
  filter: none;
  transform: scale(1.05);
}

.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== FOOTER ===== */
footer {
  background-color: rgba(14, 63, 85, 0.4);
}

/* ===== KONTAK ===== */
section.bg-dark h5 {
  color: #ffc107;
  font-weight: 600;
}
section.bg-dark p {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.contact-wrapper {
  position: absolute;
  top: 50%;
  right: 50px;
  transform: translateY(-50%);
  display: flex;
  gap: 20px;
  z-index: 2;
}

.contact-box {
  background-color: #5f3b1e;
  color: white;
  padding: 20px;
  width: 220px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.contact-box h5 {
  display: flex;
  align-items: center;
  font-weight: 600;
  margin-bottom: 15px;
}

.contact-box i {
  font-size: 1.5rem;
  margin-right: 10px;
}

.contact-box hr {
  border-color: #ccc;
  margin: 10px 0;
}

@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column;
    right: 20px;
    top: auto;
    bottom: 30px;
    transform: none;
  }
}

.inner-box {
  background-color: white;
  color: #333;
  border-radius: 6px;
  padding: 15px;
  font-size: 14px;
}

.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.contact-card {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 25px;
  color: white;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.35);
  background: rgba(255, 255, 255, 0.25);
}

.contact-card h5 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.contact-info {
  background-color: rgba(255, 255, 255, 0.85);
  color: #000;
  border-radius: 12px;
  padding: 15px;
  font-size: 0.95rem;
}

.contact-info p {
  margin-bottom: 0.5rem;
}

.contact-info hr {
  margin: 0.75rem 0;
  border-top: 1px solid #ccc;
}

#Kontak h5 {
  font-weight: bold;
  color: #fff;
}

/* Font suggestion (Google Fonts) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

body {
  font-family: 'Inter', sans-serif;
}

.footer-link {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .footer-link:hover {
    color: #ffc107; /* warna kuning bootstrap */
  }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}
.scroll-reveal.animate {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE FIXES ===== */
@media (max-width: 768px) {
  .hero-image-bg img {
    height: 250px;
  }
  .topbar-content {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }
  .topbar-links {
    justify-content: center;
    gap: 1rem;
  }
  .topbar-search {
    max-width: 100%;
  }
}

@media (max-width: 992px) {
  .program-block img {
    width: 60%;
  }
}

@media (max-width: 768px) {
  .program-block img {
    width: 50%;
  }
}

@media (max-width: 576px) {
  .program-block img {
    width: 40%;
  }
}

.img-program {
  width: 380px;
  height: 380px;
  object-fit: contain;
  background-color: #4a6780; /* sesuai warna ikon dari PDF */
  padding: 1rem;
  border-radius: 0px;
  transition: transform 0.3s ease;
}

.img-program:hover {
  transform: scale(1.05);
}

.program-section {
  width: 100%;
}

.program-block {
  height: 300px;
  position: relative;
  background-size: cover;
  background-position: center;
}

.program-block img {
  width: 70%;
  max-height: 70%;
  object-fit: contain;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.program-block.reguler {
  background-image: url('images/bg-reguler.png');
}

.program-block.eksekutif {
  background-image: url('images/bg-eksekutif.png');
}

.program-block.pasca {
  background-image: url('images/bg-pascasarjana.png');
}

.program-block .overlay {
  background-color: rgba(0, 46, 67, 0.6); /* semi-transparent overlay */
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.program-block img {
  width: 120px;
  height: auto;
  margin-bottom: 1rem;
}

.program-block h5 {
  color: #ffc107;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ===== FIX: Hilangkan Scroll Horizontal ===== */
body {
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

.row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* ===== PAGE TENTANG IBIKKG ===== */
#sejarah {
  background-size: cover;
  background-position: center;
  position: relative;
}

#sejarah .sejarah-bg-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Optional darker overlay */
  z-index: 0;
}

#sejarah h2 {
  position: relative;
  font-family: 'Poppins', sans-serif;
  z-index: 2;
}

#sejarah h2::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  z-index: -1;
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: auto;
  padding: 20px 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: #ffc107; /* garis tengah kuning */
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.timeline-container {
  padding: 20px 30px;
  position: relative;
  width: 50%;
}

.timeline-container.left {
  left: 0;
}

.timeline-container.right {
  left: 50%;
}

.timeline-container::after {
  content: '';
  position: absolute;
  top: 20px;
  width: 20px;
  height: 20px;
  background-color: #fff;
  border: 4px solid #ffc107;
  border-radius: 50%;
  z-index: 1;
}

.timeline-container.left::after {
  right: -10px;
}

.timeline-container.right::after {
  left: -10px;
}

.timeline-content {
  background-color: #002f6c; /* biru tua */
  color: #fff;
  position: relative;
  border-radius: 0;
  padding: 20px;
  border-top: 30px solid #ffc107;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.timeline-year {
  position: absolute;
  top: -30px;
  left: 0;
  background-color: #ffc107;
  color: #fff;
  font-weight: bold;
  padding: 5px 15px;
  font-size: 16px;
  border-radius: 3px;
}

@media screen and (max-width: 768px) {
  .timeline-container {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-container.right {
    left: 0%;
  }

  .timeline::after {
    left: 30px;
  }

  .timeline-container::after {
    left: 18px;
  }
}

/* Ikon di tengah garis vertikal */
.timeline-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 36px;
  color: #ffc107;
  z-index: 2;
  background-color: #fff;
  padding: 10px;
  border-radius: 50%;
  border: 4px solid #ffc107;
}

/* Animasi scroll */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media screen and (max-width: 768px) {
  .timeline::after {
    left: 20px;
  }

  .timeline-container {
    width: 100%;
    padding-left: 60px;
    padding-right: 20px;
    text-align: left;
  }

  .timeline-container.left, 
  .timeline-container.right {
    left: 0;
  }

  .timeline-icon {
    left: 20px;
    transform: translateY(-50%);
  }

  .timeline-container::before {
    left: 20px;
    transform: translateX(0);
  }
}

#sejarah {
  background-image: url('images/KKG gedung.jpg'); /* ganti dengan gambar kamu */
  background-size: cover;
  background-position: center;
  color: white;
  overflow: hidden;
  position: relative;
}

.sejarah-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* untuk membuat teks tetap terlihat */
  z-index: 0;
}

#sejarah .container {
  position: relative;
  z-index: 1;
}

/* ===== Fakultas ===== */
.fakultas {
  background-color: #f5f5f5;
  color: #856404;
  background-image: url('/images/KKG gedung.jpg');
  background-size: cover;
  background-position: center;
}

.fakultas h2 {
  color: #ffffff;
  font-size: 3.5rem;
  font-weight: 900;
  text-shadow: 
    3px 3px 0px #000000,
    -1px -1px 0px #000000,
    1px -1px 0px #000000,
    -1px 1px 0px #000000,
    1px 1px 0px #000000,
    0px 0px 10px rgba(0, 0, 0, 0.8),
    0px 0px 20px rgba(0, 0, 0, 0.6);
  margin-bottom: 3rem;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.fakultas ul li {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.card {
  color: #002E43;
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-5px);
}
.list-group-item {
  cursor: pointer;
  transition: background-color 0.2s;
}
.list-group-item:hover {
  background-color: #e9ecef;
}
.modal-header {
  background-color: #0d6efd;
  color: white;
}
.modal-header .btn-close {
  filter: invert(1);
}
.img-fluid {
  object-fit: cover;
  border: 3px solid #dee2e6;
}


/* ===== Beasiswa ===== */
.beasiswa-enhanced {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.beasiswa-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/KKG gedung.jpg');
    background-position:center;
    background-size: cover;
    /*background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="grad" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:rgba(255,255,255,0.1);stop-opacity:1" /><stop offset="100%" style="stop-color:rgba(255,255,255,0);stop-opacity:0" /></radialGradient></defs><circle cx="200" cy="300" r="100" fill="url(%23grad)"/><circle cx="800" cy="200" r="150" fill="url(%23grad)"/><circle cx="600" cy="700" r="120" fill="url(%23grad)"/></svg>') no-repeat center center;*/
    /*background-size: cover;*/
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(1deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

.beasiswa-section-title {
    color: white;
    font-size: 3.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.beasiswa-section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.beasiswa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.beasiswa-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
}

.beasiswa-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.beasiswa-card:hover::before {
    transform: scaleX(1);
}

.beasiswa-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    background: rgba(255, 255, 255, 1);
}

.beasiswa-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.beasiswa-card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color), #f97316);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    box-shadow: 0 8px 16px rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
}

.beasiswa-card:hover .beasiswa-card-icon {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 12px 24px rgba(245, 158, 11, 0.4);
}

.beasiswa-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.beasiswa-card-description {
    color: var(--text-light);
    text-align: center;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.beasiswa-card-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.beasiswa-card-features li {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    color: var(--text-dark);
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}

.beasiswa-card:hover .beasiswa-card-features li {
    opacity: 1;
    transform: translateX(0);
}

.beasiswa-card-features li:nth-child(1) { transition-delay: 0.1s; }
.beasiswa-card-features li:nth-child(2) { transition-delay: 0.2s; }
.beasiswa-card-features li:nth-child(3) { transition-delay: 0.3s; }

.beasiswa-card-features li::before {
    content: '✓';
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 0.75rem;
    width: 20px;
    height: 20px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.beasiswa-cta-section {
    text-align: center;
    margin-top: 4rem;
    position: relative;
    z-index: 2;
}

.beasiswa-cta-button {
    background: linear-gradient(135deg, #f97316);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(245, 158, 11, 0.3);
}

.beasiswa-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(245, 158, 11, 0.4);
    color: white;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .beasiswa-section-title {
        font-size: 2.5rem;
    }
    
    .beasiswa-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .beasiswa-card {
        padding: 2rem;
    }
}

/* Animation delays for cards */
.beasiswa-card:nth-child(1) { animation-delay: 0.1s; }
.beasiswa-card:nth-child(2) { animation-delay: 0.2s; }
.beasiswa-card:nth-child(3) { animation-delay: 0.3s; }
.beasiswa-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-card {
    animation: slideInUp 0.8s ease forwards;
}

/* ===== PMB ===== */
.pmb {
  background-color: #f5f5f5;
  color: #856404;
  
}
.pmb h2 {
  font-family: 'Poppins', sans-serif;
}
.pmb ul li {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}