.carousel-item img {
    height: 400px;
    object-fit: cover;
    object-position: center;
}

.custom-bar {
    background-color: #ccc;
    transition: background-color 0.3s;
}

.custom-bar.active {
    background-color: #26323d;
}

.bg-biru-custom {
    background-color: #26323d;
}

.bg-biru-custom-2 {
    background-color: #1b242c;
}

.berita-title {
    display: inline-block;
    border-bottom: 4px solid #fa6969;
    padding-bottom: 4px;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-body {
    flex: 1;
}

.custom-width-image img {
    height: 50px;
    width: auto;
}

.custom-home-button {
    border-radius: 4.5px;
    background: linear-gradient(45deg, #004080, #0059b3);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 64, 128, 0.3);
}
.custom-home-button:hover {
    background: linear-gradient(45deg, #0059b3, #0073e6);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 64, 128, 0.4);
}

.instagram-gradient {
    background: linear-gradient(
        45deg,
        #feda75,
        #fa7e1e,
        #d62976,
        #962fbf,
        #4f5bd5
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.footer {
    background: linear-gradient(135deg, #003366, #005599);
    color: #fff;
}

.footer h5 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer a {
    color: #fff;
    transition: 0.3s;
}

.footer a:hover {
    color: #00aced;
    transform: scale(1.1);
}

.footer .social-icons a {
    font-size: 1.5rem;
    margin-right: 15px;
}

.footer .instagram-gradient i {
    background: radial-gradient(
        circle at 30% 30%,
        #fdf497 0%,
        #fd5949 45%,
        #d6249f 60%,
        #285aeb 90%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-logo {
    max-width: 80px;
    margin-bottom: 10px;
}

.footer small {
    line-height: 1.5;
    display: block;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 1rem;
    margin-top: 2rem;
    font-size: 0.9rem;
}

/* Warna khusus */
.bg-biru-custom {
    background: #004080;
}

.bg-biru-custom-2 {
    background: #00264d;
}

/* Top Header */
#top-header small {
    font-size: 0.85rem;
}

#top-header .contact-info i {
    margin-right: 6px;
    color: #ffc107;
    /* kuning untuk icon */
}

#top-header .contact-info span {
    margin-right: 15px;
}

/* Navbar */
.navbar-brand img {
    max-height: 50px;
}

.navbar-nav .nav-link {
    padding: 12px 15px;
    transition: 0.3s;
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

/* Sidebar Container */
.sidebar-section {
    font-family: "Segoe UI", Arial, sans-serif;
}

/* Box/Card Style */
.sidebar-box {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Section Title */
.sidebar-box h6 {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #004080;
    border-bottom: 2px solid #004080;
    padding-bottom: 6px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

/* Informasi Sekolah List */
.sidebar-box ul li a {
    color: #333;
    text-decoration: none;
    /* 🚫 hilangkan garis bawah */
    transition: all 0.3s ease;
    display: block;
    padding: 6px 0;
    border-radius: 4px;
}

.sidebar-box ul li a:hover {
    color: #004080;
    background: #f1f6ff;
    padding-left: 8px;
}

/* Berita & Kegiatan */
.sidebar-news a {
    display: flex;
    align-items: start;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 12px;
    color: #222;
    text-decoration: none;
    /* 🚫 hilangkan garis bawah */
}

.sidebar-news a:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    text-decoration: none;
    /* tetap tanpa underline */
}

.sidebar-news img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.sidebar-news p {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
    color: #222;
}

.sidebar-news small {
    font-size: 0.8rem;
    color: #777;
}

.hover-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  width: 100%;          
  max-width: 300px;   
  margin: auto;
}

.hover-card img {
  width: 100%;
  height: 400px;        
  object-fit: cover;     
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.hover-overlay {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  text-align: center;
  padding: 1.5rem;
  transition: bottom 0.4s ease;
}

.hover-overlay h5, 
.hover-overlay p {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.hover-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
}

.hover-card:hover img {
  transform: scale(1.05);
}

.hover-card:hover .hover-overlay {
  bottom: 0;
}

.hover-card:hover .hover-overlay h5,
.hover-card:hover .hover-overlay p {
  opacity: 1;
  transform: translateY(0);
}

.header-struktur {
    font-weight: 700;
    border-bottom: 3px solid #004080;
    padding-bottom: 6px;
}