/* Bikin semua section full width */
.top-bar,
.menu-bar,
.slider,
.content,
footer {
   width: 100%;
   max-width: 100% !important;
   margin: 0;
   padding: 0;
}

/* Override container bawaan Bootstrap */
.container {
   max-width: 100% !important;
   width: 100% !important;
   padding-left: 15px;
   padding-right: 15px;
}

/* Kalau mau bener2 nempel layar (tanpa padding) */
.fullscreen {
   padding-left: 0 !important;
   padding-right: 0 !important;
}

/*Konten Berita*/
/* Overide Toastr color */
.toast {
  background-color: #030303;
}
/* custom toastr success */
.toast-success {
  background-color: #00cb18;
}
/* custom toastr error */
.toast-error {
  background-color: #ef5137;
}
/* custom toastr info */
.toast-info {
  background-color: #4b8df8;
}
/* custom toastr warning */
.toast-warning {
  background-color: #ffb848;
}
.toast-title, .toast-message {
   text-align: left;
}
.top-header {
  display: flex;
  align-items: center/* vertical alignment */
}
/* return to top */
#return-to-top {
   opacity: 0.7;
   z-index: 10000;
   position: fixed;
   bottom: 15px;
   right: 15px;
   background: #fbbc05;
   width: 30px;
   height: 30px;
   display: block;
   text-decoration: none;
   display: none;
   -webkit-transition: all 0.3s linear;
   -moz-transition: all 0.3s ease;
   -ms-transition: all 0.3s ease;
   -o-transition: all 0.3s ease;
   transition: all 0.3s ease;
}
#return-to-top i {
   color: #fff;
   margin: 0;
   position: relative;
   left: 9px;
   top: 5px;
   font-size: 19px;
   -webkit-transition: all 0.3s ease;
   -moz-transition: all 0.3s ease;
   -ms-transition: all 0.3s ease;
   -o-transition: all 0.3s ease;
   transition: all 0.3s ease;
}
#return-to-top:hover {
   background: #000;
}
#return-to-top:hover i {
   color: #fff;
}
/* --- KARTU ARTIKEL POPULER --- */
.card.article-card {
  border: none;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  background: #fff;
}

.card.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Gambar artikel */
.card.article-card img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card.article-card:hover img {
  transform: scale(1.05);
}

/* Judul artikel */
.card.article-card .card-title a {
  color: #014585;
  font-weight: 600;
  text-decoration: none;
}

.card.article-card .card-title a:hover {
  color: #ff9800;
}

/* Ringkasan */
.card.article-card .card-text {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.4;
}

/* Info footer kecil */
.article-meta {
  font-size: 0.8rem;
  color: #666;
}

.article-meta i {
  margin-right: 4px;
  color: #999;
}

/* Tombol aksi */
.card.article-card .action-button {
  background: #014585;
  color: #fff;
  transition: background 0.25s ease;
}

.card.article-card .action-button:hover {
  background: #ff9800;
  color: #fff;
}

/*Konten Foto dan Vidio*/
/* Efek hover foto album */
.card .overlay {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: rgba(0,0,0,0.4);
   opacity: 0;
   transition: all 0.3s ease-in-out;
}
.card:hover .overlay {
   opacity: 1;
}
.card .overlay button {
   transform: scale(0.8);
   transition: transform 0.3s ease-in-out;
}
.card:hover .overlay button {
   transform: scale(1);
}

/* ==============================
   SIDEBAR CUSTOM STYLE
   ============================== */

/* General Sidebar */
.sidebar {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/* Card Style */
.sidebar .card {
  border: none;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.sidebar .card-header {
  background: linear-gradient(135deg, #004d99, #007bff);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1rem;
  border: none;
  text-transform: uppercase;
}

.sidebar .card-body {
  font-size: 0.9rem;
  color: #333;
}

.sidebar .card-footer {
  background: #f9f9f9;
  border-top: 1px solid #eee;
}

/* List Group Style */
.sidebar .list-group-item {
  border: none;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  transition: background-color 0.2s ease;
}

.sidebar .list-group-item:hover {
  background-color: #f0f8ff;
}

/* Link Style */
.sidebar a {
  color: #0056b3;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sidebar a:hover {
  color: #ff6600;
}

/* Poll (Jajak Pendapat) */
.sidebar .form-check {
  margin-bottom: 0.5rem;
}

.sidebar .btn.action-button {
  background: #007bff;
  color: #fff;
  border-radius: 0.5rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  transition: background 0.3s ease;
}

.sidebar .btn.action-button:hover {
  background: #0056b3;
}

/* Subscription Input */
.sidebar .input-group .form-control {
  font-size: 0.85rem;
  border-radius: 0.5rem 0 0 0.5rem;
}

.sidebar .input-group .btn {
  border-radius: 0 0.5rem 0.5rem 0;
}

/* Banner / Ads */
.sidebar .card-body img {
  border-radius: 0.5rem;
  transition: transform 0.3s ease;
}

.sidebar .card-body img:hover {
  transform: scale(1.05);
}

/* Card Kepala Sekolah */
.card-headmaster {
  background: #ffffff;
  border-radius: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-headmaster:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* Foto Profil */
.headmaster-photo {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border: 4px solid #ffffff;
  margin-bottom: 10px;
}
/* ====== CARD STYLE ====== */
.card-headmaster2 {
  background: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-headmaster2:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* Header Biru */
.card-headmaster-header {
  background: linear-gradient(135deg, #014585, #4a90e2);
  height: 90px;
  width: 100%;
  position: relative;
}

/* Foto Kepala Sekolah */
.headmaster-photo-wrapper {
  position: relative;
  margin-top: -70px; /* overlap header */
}

.headmaster-photo {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border: 5px solid #ffffff;
  border-radius: 50%;
  background: #fff;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .headmaster-photo {
    width: 100px;
    height: 100px;
  }
  .card-headmaster-header {
    height: 70px;
  }
  .card-body h5 {
    font-size: 1rem;
  }
  .card-body .card-text {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .headmaster-photo {
    width: 85px;
    height: 85px;
  }
  .card-headmaster-header {
    height: 60px;
  }
  .card-body h5 {
    font-size: 0.95rem;
  }
  .card-body .card-text {
    font-size: 0.85rem;
  }
}

<!-- ===== CSS FOOTER ===== -->
<style>
footer {
  color: #f5f5f5;
  font-size: 14px;
  line-height: 1.6;
  position: relative;
}

/* Wave Effect */
.footer-wave {
  position: relative;
  top: -1px;
}
.footer-wave svg {
  display: block;
  width: 100%;
  height: 60px;
}

/* Primary Footer */
.primary-footer {
  background: linear-gradient(135deg, #014585, #0f6fc7);
  padding: 50px 0 30px;
  position: relative;
  overflow: hidden;
}
.primary-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url('https://www.transparenttextures.com/patterns/cubes.png');
  opacity: 0.08;
}

/* Footer Card */
.footer-card {
  background: rgba(255,255,255,0.08);
  padding: 20px;
  border-radius: 15px;
  transition: all 0.3s ease;
}
.footer-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.15);
}

/* Titles */
.page-title {
  /*color: #ffffff;*/
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 15px;
  text-transform: uppercase;
}

/* Tags */
.tag-content-block a {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 13px;
  padding: 5px 10px;
  margin: 3px;
  border-radius: 20px;
  transition: 0.3s;
}
.tag-content-block a:hover {
  background: #ffd700;
  color: #014585;
}

/* Social Icons */
.social-links a {
  display: inline-block;
  width: 40px; height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  margin: 5px;
  background: rgba(255,255,255,0.15);
  font-size: 18px;
  color: #fff;
  transition: all 0.3s;
}
.social-links a:hover {
  background: #ffd700;
  color: #014585;
  transform: translateY(-4px);
}

/* Secondary Footer */
.secondary-footer {
  background-color: #012d55;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.secondary-footer a {
  color: #ffd700;
  text-decoration: none;
}
.secondary-footer a:hover {
  text-decoration: underline;
}
.copyright {
  font-size: 13px;
  color: #ccc;
}

/* Responsive */
@media (max-width: 768px) {
  .page-title { font-size: 14px; }
  .tag-content-block a { font-size: 12px; }
  .social-links a {
    width: 36px; height: 36px;
    line-height: 36px;
    font-size: 16px;
  }
}
@media (max-width: 576px) {
  footer { text-align: center; }
  .footer-card { margin-bottom: 20px; }
}

/*slider*/
/* SLIDER FULLSCREEN STYLE */
#modernCarousel {
  position: relative;
  overflow: hidden;
}

#modernCarousel .carousel-item {
  height: 70vh; /* Tinggi slider */
  min-height: 400px;
}

#modernCarousel .slide-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  transform: scale(1.1);
  transition: transform 7s ease;
}

#modernCarousel .carousel-item.active .slide-img {
  transform: scale(1);
}

/* CAPTION MODERN */
/* === MODERN CAPTION === */
#modernCarousel .carousel-caption {
  position: absolute;
  bottom: 12%;
  left: 0;
  right: 0;
  transform: none;
  
  max-width: 100%;
  padding: 15px 40px;

  text-align: center;
  border-radius: 0;
  
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.3) 100%
  );

  display: block !important; /* ⬅️ Pastikan selalu muncul */
}

#modernCarousel .carousel-caption h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

#modernCarousel .carousel-caption p {
  font-size: 1.1rem;
  line-height: 1.5;
  color: #f1f1f1;
  margin: 0;
}

/* === TABLET (max 991px) === */
@media (max-width: 991px) {
  #modernCarousel .carousel-caption {
    bottom: 8%;
    padding: 12px 25px;
    text-align: center;
    background: rgba(0,0,0,0.55);
    display: block !important; /* force tampil di tablet */
  }

  #modernCarousel .carousel-caption h2 {
    font-size: 1.6rem;
  }

  #modernCarousel .carousel-caption p {
    font-size: 1rem;
  }
}

/* === MOBILE (max 576px) === */
@media (max-width: 576px) {
  #modernCarousel .carousel-caption {
    bottom: 5%;
    padding: 10px 15px;
    text-align: center;
    border-radius: 8px;
    background: rgba(0,0,0,0.65);
    display: block !important; /* force tampil di mobile */
  }

  #modernCarousel .carousel-caption h2 {
    font-size: 1.3rem;
  }

  #modernCarousel .carousel-caption p {
    font-size: 0.9rem;
    line-height: 1.4;
  }
}


/* CONTROL ARROWS */
#modernCarousel .carousel-control-prev-icon,
#modernCarousel .carousel-control-next-icon {
  width: 45px;
  height: 45px;
  background-size: 100% 100%;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
}

#modernCarousel .carousel-control-prev-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 8 8'%3E%3Cpath d='M5.5 0L4.1 1.4 6.7 4 0 4v2h6.7L4.1 6.6 5.5 8l4-4-4-4z'/%3E%3C/svg%3E");
}

#modernCarousel .carousel-control-next-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 8 8'%3E%3Cpath d='M2.5 0L1.1 1.4 3.7 4H-3v2h6.7L1.1 6.6 2.5 8l4-4-4-4z'/%3E%3C/svg%3E");
}

/* Card style */
.post-card {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Thumbnail */
.post-thumb {
  overflow: hidden;
  height: 100%;
}
.post-thumb img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}
.post-card:hover .post-thumb img {
  transform: scale(1.08);
}

/* Judul */
.post-card .card-title a {
  color: #014585;
  text-decoration: none;
  transition: color 0.2s ease;
}
.post-card .card-title a:hover {
  color: #fbbc05;
}

/* Excerpt */
.post-card .excerpt {
  font-size: 0.9rem;
  line-height: 1.5;
  max-height: 3.9em; 
  overflow: hidden;
}

/* More posts button */
.more-posts .btn {
  border-radius: 8px;
  font-weight: 500;
  padding: 6px 14px;
}
.more-posts .btn i {
  margin-right: 6px;
}

/* Responsif */
@media (max-width: 768px) {
  .post-card {
    border-radius: 8px;
  }
  .post-card .excerpt {
    font-size: 0.85rem;
  }
}
/* ===== Article & Card ===== */
.post-card, .related-card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
}
.post-image {
  object-fit: cover;
  max-height: 400px;
}
.section-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 20px 0 15px;
  border-left: 4px solid #007bff;
  padding-left: 10px;
  color: #333;
}

/* ===== Comment Styling ===== */
.comment-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}
.comment-reply {
  border-left: 3px solid #007bff;
  background: #f9fbff;
  border-radius: 8px;
}
.comment-card .card-footer,
.comment-reply .card-footer {
  background: #fafafa;
  font-size: 0.9rem;
}

/* ===== Form Komentar ===== */
form .form-control {
  border-radius: 6px;
  border: 1px solid #ccc;
}
form .form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 4px rgba(0,123,255,0.2);
}

/* ===== Responsif ===== */
@media (max-width: 768px) {
  .post-image {
    max-height: 250px;
  }
  .section-title {
    font-size: 1.1rem;
  }
  .card-body p {
    font-size: 0.95rem;
  }
  .comment-reply {
    margin-left: 15px !important;
  }
}

/* Modern Card */
.modern-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.modern-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Modern Link */
.modern-link {
    color: #014585;
    text-decoration: none;
    transition: color 0.2s ease;
}
.modern-link:hover {
    color: #fbbc05;
    text-decoration: underline;
}

/* Modern Button */
.modern-btn {
    transition: all 0.2s ease;
}
.modern-btn:hover {
    background-color: #014585;
    color: #fff;
    border-color: #014585;
}

/* Responsive tweaks */
@media (max-width: 576px) {
    .modern-card .card-body {
        padding: 1rem;
    }
    .modern-card .card-title {
        font-size: 1rem;
    }
    .modern-card .card-text {
        font-size: 0.875rem
}

/* Modern Card */
.modern-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.modern-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Link Style */
.modern-link {
    color: #014585;
    text-decoration: none;
    transition: color 0.2s ease;
}
.modern-link:hover {
    color: #fbbc05;
    text-decoration: underline;
}

/* Button Style */
.modern-btn {
    transition: all 0.2s ease;
}
.modern-btn:hover {
    background-color: #014585;
    color: #fff;
    border-color: #014585;
}

/* Responsive */
@media (max-width: 576px) {
    .modern-card .card-body {
        padding: 1rem;
    }
    .modern-card .card-title {
        font-size: 1rem;
    }
    .modern-card .card-text {
        font-size: 0.875rem;
    }
}
/* Video Card */
.video-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}
.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Button Modern */
.modern-btn {
    transition: all 0.2s ease;
}
.modern-btn:hover {
    background-color: #014585;
    color: #fff;
    border-color: #014585;
}

/* Responsive tweak */
@media (max-width: 768px) {
    .video-card {
        margin-bottom: 1rem;
    }
}
/* Album Card */
.album-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.album-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Album Image + Zoom Effect */
.album-img {
    position: relative;
    overflow: hidden;
}
.album-img img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}
.album-card:hover .album-img img {
    transform: scale(1.1); /* 🔍 zoom effect */
}

/* Overlay Button (tengah gambar saat hover) */
/* Overlay dark blur saat hover */
.album-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);   /* efek gelap */
    backdrop-filter: blur(3px);     /* efek blur */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.album-img:hover .album-overlay {
    opacity: 1;
}

/* Tombol di tengah overlay */
.album-overlay button {
    width: 55px;
    height: 55px;
    font-size: 1.3rem;
    border: none;
    background: #fff;
    color: #333;
    transition: transform 0.2s ease, background 0.2s ease;
}
.album-overlay button:hover {
    transform: scale(1.15);
    background: #198754;
    color: #fff;
}

/* Body */
.album-body {
    padding: 15px;
    flex: 1;
}
.album-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: .5rem;
}
.album-desc {
    font-size: 0.9rem;
    color: #666;
}

/* Button Modern */
.modern-btn {
    transition: all 0.2s ease;
}
.modern-btn:hover {
    background-color: #198754;
    color: #fff;
    border-color: #198754;
}

/* ==== RESPONSIVE SLIDER ==== */

/* Tablet */
@media (max-width: 991px) {
  #modernCarousel .carousel-item {
    height: 50vh; /* lebih pendek di tablet */
    min-height: 300px;
  }

  #modernCarousel .slide-img {
    background-size: contain; /* gambar tidak terpotong */
    background-repeat: no-repeat;
    background-position: center;
  }
}

/* Mobile */
@media (max-width: 576px) {
  #modernCarousel .carousel-item {
    height: 35vh; /* lebih kecil di HP */
    min-height: 200px;
  }

  #modernCarousel .slide-img {
    background-size: contain; /* biar proporsional */
    background-repeat: no-repeat;
    background-position: center;
  }
}
