  .popup-image {
      width: 100%;
      border-radius: 10px;
  }

  .close-btn {
      position: absolute;
      top: 10px;
      right: 15px;
      background: transparent;
      border: none;
      font-size: 2rem;
      color: #000;
      z-index: 9999;
  }

  :root {
      --primary-color: #1e3a8a;
      --secondary-color: #3b82f6;
      --accent-color: #fbbf24;
      --success-color: #10b981;
      --islamic-green: #22c55e;
      --text-dark: #1f2937;
      --text-light: #6b7280;
      --bg-light: #f8fafc;
  }

  * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
  }

  html {
      width: 100%;
      overflow-x: hidden;
  }

  body {
      font-family: 'Poppins', sans-serif;
      line-height: 1.6;
      color: var(--text-dark);
  }

  .whatsapp-float {
      position: fixed;
      bottom: 20px;
      left: 20px;
      background-color: #25D366;
      color: white;
      font-size: 24px;
      padding: 15px 22px;
      border-radius: 100%;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
      z-index: 999;
      text-decoration: none;
      transition: transform 0.3s ease;
  }

  .whatsapp-float:hover {
      transform: scale(1.1);
  }


  .navbar {
      background: rgba(255, 255, 255, 0.98);
      backdrop-filter: blur(10px);
      box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
      transition: all 0.3s ease;
      padding: 1rem 0;
  }

  .navbar-brand {
      font-weight: 700;
      font-size: 1.4rem;
      color: var(--primary-color) !important;
  }

  .navbar-nav .nav-link {
      font-weight: 500;
      color: var(--text-dark) !important;
      margin: 0 8px;
      transition: color 0.3s ease;
  }

  .navbar-nav .nav-link:hover {
      color: var(--secondary-color) !important;
  }

  .daycare-link {
      background: var(--islamic-green);
      color: white !important;
      padding: 8px 20px;
      border-radius: 25px;
      font-weight: 600;
      transition: all 0.3s ease;
  }

  .daycare-link:hover {
      background: var(--success-color);
      color: white !important;
      transform: translateY(-2px);
  }

  .carousel {
      height: 100vh;
      max-height: 800px;
  }

  .carousel-item {
      height: 100%;
  }

  .carousel-item img {
      max-height: 100vh;
      object-fit: cover;
  }


  .carousel-caption {
      top: 0;
      bottom: 0;
      left: 0;
      right: 0;
      background: rgba(0, 0, 0, 0.5);
  }

  .hero-content {
      max-width: 800px;
      padding: 2rem;
  }

  .established-badge {
      font-size: 0.9rem;
      letter-spacing: 1px;
  }

  /* Fix width dan layout slider di mobile */
  @media (max-width: 768px) {

      #home.carousel,
      #home .carousel-inner,
      #home .carousel-item,
      #home .carousel-item img {
          width: 100vw;
          max-width: 100vw;
          height: 300px;
          max-height: 300px;
          object-fit: cover;
      }

      #home .carousel-caption {
          padding: 1rem;
          bottom: 10%;
          text-align: center;
      }

      #home .hero-content h1 {
          font-size: 1.5rem;
      }

      #home .hero-content .welcome-msg,
      #home .hero-content .slogan {
          font-size: 1rem;
      }

      #home .hero-content .btn {
          font-size: 0.9rem;
          padding: 0.4rem 0.8rem;
          margin: 0.3rem;
      }
  }

  /* Animasi */
  .carousel-item .hero-content {
      transform: translateY(30px);
      opacity: 0;
      transition: all 0.8s ease;
  }

  .carousel-item.active .hero-content {
      transform: translateY(0);
      opacity: 1;
  }

  /* Tombol lebih besar di mobile */
  @media (max-width: 768px) {
      .hero-content {
          padding: 1rem;
      }

      h1 {
          font-size: 2rem !important;
      }

      .btn {
          display: block;
          margin-bottom: 10px;
      }

      .btn.me-3 {
          margin-right: 0 !important;
      }
  }

  .established-badge {
      background: var(--accent-color);
      color: var(--text-dark);
      padding: 10px 25px;
      border-radius: 25px;
      font-weight: 600;
      display: inline-block;
      margin-bottom: 20px;
  }

  .section {
      padding: 80px 0;
  }

  .section-title {
      text-align: center;
      margin-bottom: 60px;
  }

  .section-title h2 {
      font-size: 2.5rem;
      font-weight: 600;
      color: var(--primary-color);
      margin-bottom: 15px;
  }

  .section-title p {
      font-size: 1.1rem;
      color: var(--text-light);
      max-width: 600px;
      margin: 0 auto;
  }

  .about {
      background: var(--bg-light);
  }

  .milestone-card {
      background: white;
      padding: 30px;
      border-radius: 15px;
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
      text-align: center;
      margin-bottom: 30px;
      border-left: 5px solid var(--secondary-color);
  }

  .milestone-year {
      font-size: 2rem;
      font-weight: 700;
      color: var(--secondary-color);
      margin-bottom: 10px;
  }

  .founder-card {
      background: linear-gradient(135deg, var(--islamic-green), var(--success-color));
      color: white;
      padding: 40px;
      border-radius: 15px;
      text-align: center;
  }

  .mission-vision {
      background: white;
  }

  .mv-card {
      background: var(--bg-light);
      padding: 40px;
      border-radius: 15px;
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
      height: 100%;
      border-top: 4px solid var(--secondary-color);
  }

  .mv-card i {
      font-size: 3rem;
      color: var(--secondary-color);
      margin-bottom: 20px;
  }

  .mv-card h4 {
      color: var(--primary-color);
      margin-bottom: 20px;
  }

  .values-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 20px;
      margin-top: 40px;
  }

  .value-item {
      background: white;
      padding: 25px;
      border-radius: 10px;
      text-align: center;
      box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  }

  .value-item i {
      font-size: 2rem;
      color: var(--islamic-green);
      margin-bottom: 15px;
  }

  .academic {
      background: var(--bg-light);
  }

  /* ✅ Slide-in animation */
  .slide-in-left {
      animation: slideInLeft 0.5s ease;
  }

  .slide-in-right {
      animation: slideInRight 0.5s ease;
  }

  @keyframes slideInLeft {
      from {
          opacity: 0;
          transform: translateX(-50px);
      }

      to {
          opacity: 1;
          transform: translateX(0);
      }
  }

  @keyframes slideInRight {
      from {
          opacity: 0;
          transform: translateX(50px);
      }

      to {
          opacity: 1;
          transform: translateX(0);
      }
  }

  .achievement-card {
      background: linear-gradient(135deg, var(--success-color), var(--islamic-green));
      color: white;
      padding: 40px;
      border-radius: 15px;
      text-align: center;
      margin-bottom: 30px;
  }

  .achievement-card h3 {
      font-size: 4rem;
      font-weight: 700;
      margin-bottom: 10px;
  }

  .islamic-values {
      background: var(--islamic-green);
      color: white;
      padding: 30px;
      border-radius: 15px;
      margin: 30px 0;
  }

  .islamic-values h5 {
      margin-bottom: 20px;
      display: flex;
      align-items: center;
  }

  .islamic-values i {
      margin-right: 10px;
  }

  .subject-list {
      list-style: none;
      padding: 0;
  }

  .subject-list li {
      padding: 10px 0;
      border-bottom: 1px solid rgba(0, 0, 0, 0.1);
      display: flex;
      align-items: center;
  }

  .subject-list li:last-child {
      border-bottom: none;
  }

  .subject-list i {
      color: var(--success-color);
      margin-right: 10px;
  }

  .teachers {
      background: white;
  }

  .teacher-card {
      background: var(--bg-light);
      padding: 25px;
      border-radius: 15px;
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
      text-align: center;
      margin-bottom: 20px;
      transition: transform 0.3s ease;
  }

  .teacher-card:hover {
      transform: translateY(-5px);
  }

  .teacher-card h6 {
      color: var(--primary-color);
      margin-bottom: 5px;
      font-weight: 600;
  }

  .teacher-card p {
      color: var(--text-light);
      font-size: 0.9rem;
  }

  .activities {
      background: var(--bg-light);
  }

  .activity-card {
      background: white;
      padding: 30px;
      border-radius: 15px;
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
      text-align: center;
      margin-bottom: 30px;
      transition: transform 0.3s ease;
  }

  .activity-card:hover {
      transform: translateY(-10px);
  }

  .activity-card i {
      font-size: 3rem;
      color: var(--secondary-color);
      margin-bottom: 20px;
  }

  .activity-card h5 {
      color: var(--primary-color);
      margin-bottom: 15px;
  }

  .transition {
      transition: transform 0.3s ease-in-out;
  }

  .no-manual-scroll {
      overflow-x: hidden !important;
      touch-action: none;
      -ms-overflow-style: none;
      scrollbar-width: none;
  }

  .no-manual-scroll::-webkit-scrollbar {
      display: none;
  }

  .slider-wrapper {
      position: relative;
  }

  .nav-left,
  .nav-right {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      z-index: 10;
      background-color: white;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
      border: none;
      padding: 5px 10px;
      opacity: 0.9;
  }

  .nav-left {
      left: -12px;
  }

  .nav-right {
      right: -12px;
  }

  /* Responsive fix untuk layar kecil */
  @media (max-width: 420px) {
      .nav-left {
          left: -6px;
      }

      .nav-right {
          right: -6px;
      }
  }


  .fees {
      background: white;
  }

  .fee-card {
      background: var(--bg-light);
      padding: 35px;
      border-radius: 15px;
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
      text-align: center;
      margin-bottom: 30px;
      border-top: 4px solid var(--success-color);
  }

  .fee-amount {
      font-size: 2.5rem;
      font-weight: 700;
      color: var(--success-color);
      margin: 20px 0;
  }

  .fee-details {
      color: var(--text-light);
      font-size: 0.9rem;
  }

  .contact {
      background: var(--bg-light);
  }

  .contact-info {
      background: var(--primary-color);
      color: white;
      padding: 40px;
      border-radius: 15px;
  }

  .contact-item {
      display: flex;
      align-items: flex-start;
      margin-bottom: 25px;
  }

  .contact-item i {
      font-size: 1.5rem;
      margin-right: 15px;
      color: var(--accent-color);
      margin-top: 5px;
  }

  .contact-item h6 {
      margin-bottom: 5px;
      color: var(--accent-color);
  }

  .map-container {
      background: white;
      padding: 20px;
      border-radius: 15px;
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  }

  .footer {
      background: var(--primary-color);
      color: white;
      padding: 50px 0 20px;
  }

  .footer h5 {
      margin-bottom: 20px;
      color: var(--accent-color);
  }

  .footer a {
      color: rgba(255, 255, 255, 0.8);
      text-decoration: none;
      transition: color 0.3s ease;
  }

  .footer a:hover {
      color: white;
  }

  .footer-bottom {
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      margin-top: 40px;
      padding-top: 20px;
      text-align: center;
  }

  @media (max-width: 768px) {
      .hero h1 {
          font-size: 2.5rem;
      }

      .section {
          padding: 60px 0;
      }

      .values-grid {
          grid-template-columns: 1fr;
      }
  }

  @supports (-webkit-touch-callout: none) {
      .navbar {
          -webkit-backdrop-filter: blur(10px);
      }

      input,
      textarea,
      select {
          -webkit-appearance: none;
          border-radius: 8px;
      }
  }

  .btn-primary {
      background: var(--secondary-color);
      border: none;
      padding: 12px 30px;
      border-radius: 25px;
      font-weight: 600;
      transition: all 0.3s ease;
  }

  .btn-primary:hover {
      background: var(--primary-color);
      transform: translateY(-2px);
  }

  #gallery-container {
      background-color: var(--bg-light, #f8f9fa);
      border-radius: 12px;
      box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
  }

  #gallery-header {
      font-size: 2rem;
      font-weight: 600;
      color: var(--primary-color, #0d6efd);
  }

  /* === Sidebar Default (Desktop) === */
  #sidebar {
      display: flex;
      flex-direction: column;
      align-items: start;
      background-color: #f8f9fa;
      border: 1px solid var(--primary-color, #0d6efd);
      padding: 1rem;
      border-radius: 8px;
      max-width: 140px;
      min-width: 120px;
      max-height: 600px;
      overflow-y: auto;
      overflow-x: hidden;
      position: sticky;
      top: 1rem;
  }

  /* Item Tahun */
  #sidebar .year {
      font-size: 0.95rem;
      color: #333;
      padding: 6px 12px;
      border-radius: 4px;
      margin-bottom: 6px;
      cursor: pointer;
      transition: background-color 0.2s ease;
      white-space: nowrap;
      text-align: left;
      width: 100%;
  }

  /* Aktif / Hover */
  #sidebar .year:hover,
  #sidebar .year.active {
      background-color: var(--primary-color, #0d6efd);
      color: #fff;
      font-weight: bold;
  }


  /* === Responsive (Mobile) === */
  @media (max-width: 767.98px) {
      #sidebar {
          flex-direction: row;
          overflow-x: auto;
          overflow-y: hidden;
          white-space: nowrap;
          position: static !important;
          max-width: 100%;
          padding: 0.5rem 1rem;
          border: none;
          border-radius: 0;
      }

      #sidebar .year {
          display: inline-block;
          margin-right: 1rem;
          margin-bottom: 0;
          width: auto;
          text-align: center;
      }
  }


  .gallery-item .card {
      border: none;
      border-radius: 10px;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .gallery-item .card:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  }

  .gallery-item .card-title {
      font-size: 1rem;
      font-weight: 600;
      color: #0d6efd;
  }

  .gallery-item .card-text {
      font-size: 0.85rem;
      color: #555;
  }