/* ====== Global Styles ====== */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

/* ====== Navbar ====== */
.navbar {
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.navbar-brand {
  font-weight: bold;
  letter-spacing: 1px;
}
.nav-link {
  transition: 0.3s;
}
.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
}

.navbar-dark {
  backdrop-filter: blur(5px);
}
.nav-link:hover {
  color: #ffe082 !important; /* warna highlight */
}

/* ====== Hero Section ====== */
section.bg-light {
  background: linear-gradient(rgba(0,128,0,0.7), rgba(0,128,0,0.7)), url('../img/hero.jpg') center/cover no-repeat;
  color: white;
}
section.bg-light h1 {
  font-size: 2.5rem;
  font-weight: bold;
}
section.bg-light p {
  font-size: 1.2rem;
}

/* ====== Headings ====== */
h2 {
  color: #2e7d32;
  font-weight: bold;
  margin-bottom: 20px;
}

/* ====== Cards / Boxes ====== */
.card {
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}
.card:hover {
  transform: translateY(-5px);
}
.card:hover {
  transform: translateY(-5px);
  transition: 0.3s;
}

/* ====== Footer ====== */
footer {
  background-color: #2e7d32;
  color: white;
  font-size: 0.9rem;
}
footer p {
  margin: 0;
}

/* ====== Staff Page ====== */
img.rounded-circle {
  border: 3px solid #2e7d32;
  transition: 0.3s;
}
img.rounded-circle:hover {
  transform: scale(1.05);
  border-color: #81c784;
}

/* Dropdown hover desktop */
@media (min-width: 992px) {
  .navbar .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

/* Navbar smooth transition */
.navbar {
  transition: all 0.3s ease;
}

/* Navbar shrink */
.navbar.scrolled {
  padding-top: 5px;
  padding-bottom: 5px;
  background-color: #176d45 !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.navbar .nav-link.active {
  font-weight: 600;
  color: #ffffff !important;
  position: relative;
}

.navbar .nav-link.active::after {
  content: "";
  display: block;
  height: 2px;
  background-color: #ffffff;
  margin-top: 4px;
}

/* Social Media Icons */
.social-icon {
  display: inline-block;
  margin-right: 12px;
  font-size: 22px;
  color: #ffffff;
  transition: 0.3s ease;
}

.social-icon:hover {
  color: #198754;
  transform: translateY(-3px);
}

/* WhatsApp Floating Button */
.wa-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 999;
    transition: 0.3s;
}

.wa-float:hover {
    transform: scale(1.1);
    background-color: #1ebe5d;
}

/* hero section*/
.hero-section {
    min-height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
                url('../img/hero.jpeg') no-repeat;
    background-size: cover;
    background-position: center right;
    color: white;
    display: flex;
    align-items: center;
}
.carousel-item {
    background-color: transparent;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    animation: zoomHero 20s ease-in-out infinite alternate;
}
@keyframes zoomHero {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

.carousel-item img {
    width: 100%;
    height: 75vh;
    object-fit: cover;
}


/* ===== PREMIUM NEWS TICKER ===== */
.news-ticker {
    display: flex;
    align-items: center;
    background: #198754;
    color: white;
    overflow: hidden;
    font-size: 15px;
    font-weight: 500;
}

.ticker-label {
    background: #145c32;
    padding: 10px 18px;
    white-space: nowrap;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticker-wrapper {
    overflow: hidden;
    flex: 1;
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: tickerMove 22s linear infinite;
}

.ticker-content span {
    margin-right: 60px;
}

.news-ticker:hover .ticker-content {
    animation-play-state: paused;
}

@keyframes tickerMove {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}


/*dosen card */
.dosen-mini {
    border-radius: 12px;
    border: none;
    transition: 0.3s ease;
}

.dosen-mini:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.dosen-mini-img {
    width: 50px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
}

.email-link {
    text-decoration: none;
    color: #198754; /* hijau bootstrap */
    font-weight: 500;
    transition: 0.2s ease;
}

.email-link:hover {
    text-decoration: underline;
    color: #145c32;
}

.email-link {
    font-size: 0.95rem;
    overflow-wrap: anywhere;
}

/* MENU AKTIF WARNA KUNING */
.active-menu {
    background-color: #f4b400;
    color: #ffffff !important;
    padding: 20px 18px;
    font-weight: 600;
}

/* NAV LINK BIASA */
.navbar .nav-link {
    padding: 20px 18px;
    font-weight: 500;
}

/* DROPDOWN STYLE */
.custom-dropdown {
    border: none;
    border-top: 4px solid #f4b400;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    padding: 0;
}

/* ITEM DROPDOWN */
.custom-dropdown .dropdown-item {
    padding: 14px 20px;
    font-weight: 500;
}

/* HOVER DROPDOWN */
.custom-dropdown .dropdown-item:hover {
    background-color: #f4b400;
    color: #ffffff;
}


/* Animasi dropdown smooth */
.dropdown-menu {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.25s ease;
    display: block;
    visibility: hidden;
}

.dropdown.show .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    transition: all 0.35s cubic-bezier(.4,0,.2,1);
  }

  .nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}


/* Hover effect dropdown item */
.dropdown-menu .dropdown-item:hover {
    background-color: #a2b11b; /* hijau UIN */
    color: #ffffff;
    border-radius: 8px;
    transition: 0.2s ease;
}

/* Active / halaman yang sedang dibuka */
.dropdown-menu .dropdown-item.active {
    background-color: #e3e310;
    color: #ffffff;
    border-radius: 8px;
}


/* Brand Styling */
.brand-title {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.5px;
}

.brand-subtitle {
    font-size: 12px;
    opacity: 0.85;
}

/* Navbar Hover Underline */
.navbar-nav .nav-link {
    position: relative;
    transition: 0.3s;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    transition: 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}


.pengumuman-card {
    border-radius: 18px;
    transition: 0.3s ease;
    padding: 20px;
}

.pengumuman-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.pdf-icon {
    font-size: 48px;
}

#gambarPengumuman {
    width: 50%;
    max-width: 900px;
    height: auto;
    display: block;
    margin: 0 auto 30px auto;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

#judul {
    text-align: center;   /* bikin benar-benar tengah */
    font-size: 26px;      /* kecilin size */
    font-weight: 700;
    margin-bottom: 25px;
}


.pdf-wrapper {
    text-align: center;
    margin-top: 30px;
}

.pdf-preview {
    width: 75%;
    height: 500px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.btn-success {
    border-radius: 30px;
    font-weight: 500;
}

.btn-success:hover {
    transform: translateY(-2px);
    transition: 0.3s ease;
}

.breadcrumb {
    background: none;
    font-size: 14px;
}

.breadcrumb a {
    text-decoration: none;
    color: #198754;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* mahasiswwa */

.preview-img {
    width: 90%;
    cursor: pointer;
    transition: 0.3s
}

.preview-img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.569);
}

.btn-close{
    z-index:1056;
}

/* isi-berita*/

.isi-berita p{
color: white;
}


.card img {
    transition: 0.3s;
}

.card:hover img {
    transform: scale(1.05);
}


.img-profil {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 10px; /* sedikit rounded biar elegan */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* shadow halus */
    display: block;
}