/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}


/* NAVBAR */
.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;

  background: rgba(0, 123, 224, 0.8);
  backdrop-filter: blur(10px);

  color: white;
  z-index: 1000;
}

/* TOGGLE */
.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

/* MOBILE */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #007be0;

    /* ANIMASI */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
  }

  nav ul {
    flex-direction: column;
    text-align: center;
    padding: 10px 0;
  }

  nav ul li {
    padding: 10px 0;
  }

  nav.active {
    max-height: 400px;
    opacity: 1;
    transform: translateY(0);
  }
}

/* LOGO */
.logo h3 {
  font-weight: 500;
  font-size: 18px;
}

/* MENU */
nav {
  display: flex;
  gap: 25px;
}

nav a {
  text-decoration: none;
  color: white;
  font-size: 14px;
  position: relative;
  transition: 0.3s;
}

/* underline animasi */
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background: white;
  transition: 0.3s;
}

nav a:hover::after {
  width: 100%;
}

nav a.active {
  font-weight: 600;
}

/* HAMBURGER */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 5px;
  transition: 0.3s;
}

/* ANIMASI JADI X */
.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* MOBILE */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  nav {
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;

    background: rgba(0, 123, 224, 0.95);
    backdrop-filter: blur(10px);

    /* animasi */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
  }

  nav a {
    padding: 15px;
  }

  nav.active {
    max-height: 400px;
    opacity: 1;
    transform: translateY(0);
  }
}

/* HERO */
.hero {
  height: 100vh;
  background: url('foto madrasah/Hadist.jpeg') center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 0 80px;
  position: relative;
  margin-top: 70px;
}

/* OVERLAY HIJAU */
.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
     rgba(4, 167, 221, 0.9),
    rgba(40, 149, 218, 0.6),
    rgba(224, 247, 250, 0.2)
  );
}

/* CONTENT */
.hero-content {
  position: relative;
  color: white;
  max-width: 600px;
  text-align: center; 
}

.hero-content h1 {
  font-size: 46px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 16px;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* BUTTON */
.buttons {
  display: flex;
  gap: 15px;
}

.btn {
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

/* DARK BUTTON */
.btn.primary {
  background: #081c2c;
  color: white;
}

.btn.primary:hover {
  background: #0f2f47;
}

/* LIGHT BUTTON */
.btn.secondary {
  background: #e5e5e5;
  color: #333;
}

.btn.secondary:hover {
  background: #d4d4d4;
}

/* SECTION KEUNGGULAN */
.keunggulan {
  background: #f5f7f6;
  padding: 80px 20px;
  text-align: center;
}

.container {
  max-width: 1100px;
  margin: auto;
}

.keunggulan h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 13px;
  color: #666;
  max-width: 500px;
  margin: 0 auto 40px;
}

/* CARDS */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card .icon {
  background: #d8f3e8;
  color: #0f6b4f;
  width: 50px;
  height: 50px;
  margin: auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 15px;
}

.card h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card p {
  font-size: 12px;
  color: #666;
}

/* ABOUT */
.about {
  padding: 80px 20px;
}

.about-wrapper {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
}

.about-text p {
  font-size: 13px;
  color: #555;
  margin-bottom: 15px;
  line-height: 1.6;
}

.btn-about {
  display: inline-block;
  padding: 8px 16px;
  background: #081c2c;
  color: white;
  border-radius: 6px;
  font-size: 12px;
  text-decoration: none;
}

/* IMAGE */
.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.cta {
      background: #d1e8f3;
      color: black;
      text-align: center;
      padding: 60px 20px;
    }

    .cta h2 {
      font-weight: 600;
      margin-bottom: 10px;
    }

    .cta p {
      font-size: 14px;
      margin-bottom: 20px;
      opacity: 0.9;
    }

    .cta button {
      background: #e6e6e6;
      border: none;
      padding: 10px 20px;
      border-radius: 8px;
      cursor: pointer;
      font-size: 13px;
    }

    .cta button:hover {
      background: #d4d4d4;
    }

    .footer {
      background: #007be0;
      color: #e8f5f0;
      padding: 50px 20px 20px;
    }

    .footer-container {
      max-width: 1100px;
      margin: auto;
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 40px;
    }

    .footer h3 {
      font-size: 16px;
      font-weight: 600;
      margin-bottom: 12px;
    }

    .footer p {
      font-size: 13px;
      line-height: 1.6;
      color: #cde5dc;
    }

    .footer .column {
      flex: 1;
      min-width: 250px;
    }

    .info p,
    .contact p {
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .contact i {
      font-size: 14px;
      color: #cde5dc;
    }

    .divider {
      border-top: 1px solid rgba(255,255,255,0.2);
      margin: 30px auto 15px;
      max-width: 1100px;
    }

    .copyright {
      text-align: center;
      font-size: 12px;
      color: #cde5dc;
    }

    @media(max-width: 768px) {
      .footer-container {
        flex-direction: column;
      }
    }


.title{
  font-size:12px;
  color:#6b7280;
}

.social p{
  background:#f9fafb;
  padding:8px;
  border-radius:6px;
  margin-bottom:8px;
}

/* Form */
.form-card form{
  margin-top:10px;
}

.form-row{
  display:flex;
  gap:15px;
  margin-bottom:15px;
}

.form-group{
  flex:1;
  display:flex;
  flex-direction:column;
}

.form-group label{
  font-size:12px;
  margin-bottom:5px;
  color:#374151;
}

.form-group input,
.form-group textarea{
  padding:10px;
  border:1px solid #e5e7eb;
  border-radius:8px;
  font-size:13px;
  background:#f9fafb;
}

.btn{
  width:100%;
  padding:12px;
  background:#0f6b4f;
  color:white;
  border:none;
  border-radius:8px;
  font-size:14px;
  cursor:pointer;
}

.btn:hover{
  background:#0c5a42;
}

.container {
    max-width: 1000px;
    margin: auto;
}

/* Social Box */
.social-box {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 350px;
    margin-bottom: 30px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.social-box h3 {
    margin-bottom: 15px;
    font-weight: 500;
}

.social-item {
    background: #f1f1f1;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 14px;
}

/* Cards */
.card-container {
    display: flex;
    gap: 20px;
}

.card {
    flex: 1;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.card h4 {
    margin: 10px 0;
    font-weight: 600;
}

.card p {
    font-size: 14px;
    margin-bottom: 15px;
}

.card button {
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
}

/* Colors */
.green {
    background: #cfe9dc;
}

.blue {
    background: #d6e3f3;
}

.purple {
    background: #e3d8f3;
}

.icon {
    font-size: 30px;
}

.menu-icon {
  display: flex;
  justify-content: space-between; /* dorong kiri & kanan */
  align-items: center;
}

.sambutan {
    padding: 80px 10%;
}

.wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* FOTO */
.foto img {
    width: 280px;
    border-radius: 15px;
    object-fit: cover;
}

/* TEKS */
.isi h5 {
    color: #0a527c;
    margin-bottom: 10px;
    font-size: 14px;
    letter-spacing: 1px;
}

.isi h2 {
    font-size: 26px;
    margin-bottom: 20px;
    color: #222;
}

.isi p {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* PROFIL */
.profil {
    margin-top: 15px;
    margin-bottom: 20px;
}

.profil strong {
    display: block;
    color: #111;
}

.profil span {
    font-size: 13px;
    color: #777;
}

/* BUTTON */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #0a7c66, #0d9c82);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 13px;
    transition: 0.3s;
}

.btn:hover {
    opacity: 0.85;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .wrapper {
        flex-direction: column;
        text-align: center;
    }

    .foto img {
        width: 200px;
    }
}

.maps-section {
            padding: 60px 10%;
        }

        .maps-container {
            background: #fff;
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        }

        .maps-container h2 {
            margin-bottom: 15px;
            color: #222;
        }

        .maps-container p {
            margin-bottom: 20px;
            color: #555;
            font-size: 14px;
        }

        .map-frame {
            width: 100%;
            height: 400px;
            border: none;
            border-radius: 10px;
        }

        @media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #007be0;

    /* ANIMASI */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
  }

  nav ul {
    flex-direction: column;
    text-align: center;
    padding: 10px 0;
  }

  nav ul li {
    padding: 10px 0;
  }

  nav.active {
    max-height: 400px;
    opacity: 1;
    transform: translateY(0);
  }
}

.highlight {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

/*.highlight img {
  width: 100%;
  display: block;
}*/

.text {
  position: absolute;
  bottom: 0;
  padding: 15px;
  color: white;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
}

.kategori {
  font-size: 12px;
  background: red;
  padding: 3px 8px;
  border-radius: 4px;
}

/* List berita */
.list-berita {
  margin-top: 15px;
}

.item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  margin-bottom: 10px;
  padding: 8px;
  border-radius: 8px;
}

.item img {
  width: 80px;
  height: 60px;
  object-fit: cover;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

/* Card1 */
.card1 {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transition: 0.3s;
  cursor: pointer;
}

.card1 img,
.highlight img{
    width:100%;
    height:220px;
    object-fit:contain;
    background:#f8fafc;
    padding:10px;
    border-radius:14px;
}

.content {
  padding: 10px;
}

/* Highlight */
.highlight {
  grid-column: span 2;
}

.tag {
  background: blue;
  color: white;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 5px;
}

/* Hover */
.card1:hover {
  transform: translateY(-5px);
}

.video-section {
  text-align: center;
}

.video-section h2 {
  color: #2c3e50;
  margin-bottom: 20px;
}

.video-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.video-card {
  background: white;
  width: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.video-card video {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.video-info {
  padding: 15px;
}

.video-info h3 {
  margin: 0;
  color: #3498db;
}

.video-info p {
  font-size: 14px;
  color: #555;
}

.title1 {
  text-align: center;
  margin-bottom: 30px;
  color: #2c3e50;
}

.container1 {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

/* CARD5 */
.card5 {
  background: #ffffff;
  padding: 20px;
  width: 450px;
  border-radius: 15px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  transition: 0.3s;
  border-top: 5px solid #3498db;
}

.card5:hover {
  transform: translateY(-8px) scale(1.02);
}

.card5 h2 {
  margin-bottom: 15px;
  color: #3498db;
}

/* Tabel */
table {
  width: 100%;
  border-collapse: collapse;
}

table th, table td {
  padding: 10px;
  text-align: center;
}

table th {
  background: #3498db;
  color: white;
}

table tr:nth-child(even) {
  background: #f2f2f2;
}

/* Ekstrakurikuler */
.ekstra-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ekstra-item {
  background: #ecf5ff;
  padding: 10px;
  border-radius: 8px;
  transition: 0.3s;
}

.ekstra-item:hover {
  background: #d6eaff;
}

.ekstra-item h3 {
  color: #2c3e50;
}

.ekstra-item p {
  font-size: 14px;
  color: #555;
}


.title0 {
  text-align: center;
  margin-bottom: 30px;
  color: white;
}

.container0 {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

/* CARD0 */
.card0 {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 20px;
  width: 300px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  transition: 0.3s;
  border: 1px solid rgba(63, 166, 250, 0.3);
  color: black;
}

.card0:hover {
  transform: translateY(-10px) scale(1.03);
}

.card0 h2 {
  margin-bottom: 10px;
}

.card0 ul {
  padding-left: 20px;
}

.card0 ul li {
  margin-bottom: 6px;
}



/* Responsive */
@media(max-width: 600px) {
  .highlight {
    grid-column: span 1;
  }
}


/* Responsive */
@media(max-width:768px){
  .grid{
    grid-template-columns:1fr;
  }

  .form-row{
    flex-direction:column;
  }
}
.pagination{
display:flex;
justify-content:center;
gap:10px;
margin-top:30px;
}

.pagination a{
padding:10px 15px;
background:#fff;
border-radius:10px;
text-decoration:none;
color:#111827;
font-weight:600;
box-shadow:0 2px 10px rgba(0,0,0,.08);
transition:.3s;
}

.pagination a:hover{
background:#2563eb;
color:#fff;
}
.card,
.card1,
.berita{
    box-shadow:0 4px 18px rgba(0,0,0,.06);
}