/* === RESET & GLOBAL === */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', 'Outfit', sans-serif;
  background-color: #f8f9fa;
  color: #333;
  overflow-x: hidden; /* Mencegah scroll menyamping di HP */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

/* === NAVBAR === */
.navbar {
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.navbar-brand {
  color: #0a3b5c !important;
  font-weight: 700;
  font-size: 1.5rem;
  font-family: 'Poppins', sans-serif;
}

.navbar-nav .nav-link {
  color: #555 !important;
  font-weight: 500;
  transition: 0.3s;
  padding: 0.5rem 1rem !important;
}

.navbar-nav .nav-link:hover {
  color: #0a3b5c !important;
  transform: translateY(-2px);
}

.btn-primary {
  background-color: #0a3b5c;
  border-color: #0a3b5c;
  transition: all 0.3s ease;
  border-radius: 25px;
  padding: 8px 20px;
  font-weight: 500;
}

.btn-primary:hover {
  background-color: #072a42;
  border-color: #072a42;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(10, 59, 92, 0.4);
}

/* === SECTION UMUM === */
section {
  padding: 100px 0;
  position: relative;
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 50px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.section-title::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background-color: #ffd700;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

/* === GAMBAR LOGO === */
.gbr {
  width: 100%;
  max-width: 250px;
  height: auto;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.3));
  transition: transform 0.3s ease;
}

.gbr:hover {
  transform: scale(1.05);
}

/* === CAROUSEL CONTROL === */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 45px;
  height: 45px;
  background-size: 50% 50%;
  background-color: rgba(255, 255, 255, 0.4); /* Lebih terang agar jelas */
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  backdrop-filter: blur(5px);
}

/* === CAROUSEL CAPTION === */
.carousel-caption {
  background: rgba(10, 59, 92, 0.85);
  backdrop-filter: blur(5px);
  border-radius: 15px;
  padding: 15px 25px;
  bottom: 20px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
  width: 80%;
  left: 10%;
}

.carousel-caption:hover {
  transform: translateY(-5px);
}

.carousel-caption h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: #ffd700;
}

.carousel-caption p {
  font-size: 0.9rem;
  margin: 0;
  color: #fff;
}

/* === GRID PENGURUS === */
.container-pengurus {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
  padding: 0 10px;
}

/* CARD PENGURUS */
.pengurus-ukmr {
  flex: 0 0 calc(25% - 25px); /* 4 columns on large screens */
  min-width: 260px;
  max-width: 300px;
  background: rgba(255, 255, 255, 0.15); /* Lebih terang sedikit */
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.pengurus-ukmr:hover {
  transform: translateY(-10px);
}

.pengurus-ukmr .carousel-item img {
  display: block !important;
  width: 100% !important;
  border-radius: 15px;
  height: 350px; /* Tinggi seragam untuk semua foto */
  object-fit: contain; /* Mencegah foto terpotong */
  background-color: rgba(0, 0, 0, 0.2); /* Latar belakang untuk mengisi area kosong di foto */
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.pengurus-ukmr h3 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: #ffd700;
  font-family: 'Poppins', sans-serif;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* === SOCIAL SIDEBAR === */
.social-sidebar {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  background: rgba(10, 59, 92, 0.9);
  padding: 10px 5px;
  border-radius: 10px 0 0 10px;
  z-index: 1000;
  box-shadow: -2px 0 10px rgba(0,0,0,0.2);
}

.social-sidebar a {
  color: #fff;
  padding: 10px;
  font-size: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.social-sidebar a:hover {
  color: #ffd700;
  transform: translateX(-5px);
}

/* === BACKGROUNDS & OVERLAYS === */
.bg-overlay-dark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1;
}

.bg-overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 59, 92, 0.85) 0%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 1;
}

.bgprestasi, .bghome, #leadership, #activities {
  position: relative;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

.bgprestasi > .container,
.bghome > .container,
#leadership > .container,
#activities > .container,
#achievements > .container {
  position: relative;
  z-index: 2;
}

/* === CAROUSEL IMAGES (PRESTASI & KEGIATAN) === */
.carousel-item img {
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.carousel-img {
  width: 100%;
  max-width: 800px;
  height: 500px;
  object-fit: contain; /* Agar foto prestasi tidak kepotong */
  background-color: rgba(0,0,0,0.1);
}

/* Visi Misi Card */
.glass-card {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(15px);
  border: none;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  color: #333 !important;
  padding: 40px !important;
}

.glass-card h3 {
  color: #0a3b5c;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 15px;
}

.glass-card ul li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.map-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* === RESPONSIVE UTILITIES === */
@media (max-width: 768px) {
  body {
    overflow-x: hidden; /* pastikan tidak ada scroll kanan kiri */
  }

  .carousel-img {
    height: 300px;
  }
  
  .carousel-caption {
    width: 90%;
    left: 5%;
    bottom: 10px;
    padding: 10px;
  }

  .section-title {
    font-size: 2rem !important;
  }
  
  section {
    padding: 60px 0;
  }

  .welcome {
    font-size: 1.8rem;
  }

  .gbr {
    max-width: 200px;
  }

  .glass-card {
    padding: 20px !important;
  }

  /* Sembunyikan sidebar social media di HP agar tidak menutupi konten */
  .social-sidebar {
    display: none;
  }

  /* Mengatur tinggi foto pengurus di HP agar pas */
  .pengurus-ukmr .carousel-item img {
    height: 300px; 
  }
}

@media (max-width: 576px) {
  .container-pengurus {
    grid-template-columns: 1fr; /* 1 Kolom penuh di HP kecil */
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 30px;
    height: 30px;
  }
}

.carousel-control-prev, .carousel-control-next { cursor: pointer !important; z-index: 99 !important; }
