@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Courgette&display=swap");

/* Reset dasar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  font-family: "Noto Sans", Tahoma, Verdana, sans-serif;
  width: 100%;
  height: 100%;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #075b5e;
  padding: 10px 150px;
  color: #fed16a;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.logo img {
  width: 60%;
  max-height: auto;
}

/* Wrapper untuk menu dan tombol login */
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px; /* jarak antara menu dan tombol */
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #fed16a;
}

.nav-links li a.active {
  color: #fed16a;
  font-weight: bold;
  border-bottom: 4px solid #fed16a;
}

/* Tombol login */
.login-button a {
  display: inline-block;
  background-color: #fbc02d;
  color: #fff;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.login-button a:hover {
  background-color: #fbc02d;
  color: #fff;
}

.slider-container {
  position: relative;
  max-width: 100%;
  height: 760px;
  overflow: hidden;
  margin: 0 auto;
}

.slide {
  position: absolute;
  width: 100%;
  height: 750px;
  opacity: 0;
  transition-duration: 1s;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
  padding: 20px;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

.slide.active {
  opacity: 1;
  position: relative;
}

.slide h2 {
  margin: 0 0 10px 0;
  font-size: 2.3rem;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.slide p {
  margin: 0 0 20px 0;
  font-size: 1.3rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

/* Beberapa efek transisi yang akan dipilih secara random */
.fade {
  transition-timing-function: ease-in-out;
}

.slide-left {
  animation: slideLeft 1s ease forwards;
}

.slide-right {
  animation: slideRight 1s ease forwards;
}

.slide-up {
  animation: slideUp 1s ease forwards;
}

@keyframes slideLeft {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slideRight {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
.content {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
  text-align: center;
}
h2 {
  font-family: "Noto Sans";
  margin-bottom: 0.5rem;
  color: #00796b;
  font-weight: 700;
}
.stats {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1rem;
}
.stat-item {
  background: #075b5e;
  color: white;
  border-radius: 30px 30px;
  padding: 1rem 1.5rem;
  flex: 1 1 150px;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 700;
}
.stat-item i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.angka-stats {
  font-size: 2.5rem;
  font-weight: Normal;
  margin-top: -10px;
}

.title-stats {
  font-size: 1rem;
  margin-top: -10px;
}

.container-full {
  width: 100%;
  box-sizing: border-box;
}

.principal-container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 20px 20px 0px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  position: relative;
  z-index: 2;
  color: #fff;
}

.principal-wrapper {
  width: 100%;
  position: relative;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.bg-blur {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(7, 91, 94, 0.4), rgba(7, 91, 94, 0.4)),
    url("https://man1pnk.com/backend/uploads/img/bg_sambutan.png");
  background-size: cover;
  background-position: center;
  filter: blur(8px) brightness(0.4);
  z-index: 0;
}

/* foto + nama */
.principal-photo {
  text-align: center;
  padding-top: 20px;
}
.principal-photo img {
  max-width: 100%;
  border-radius: 8px;
}
.principal-name {
  margin-top: -10px;
  font-weight: bold;
  font-size: 1.2em;
  color: #fff;
}
.jabatan {
  color: #ccc;
}

/* teks sambutan */
.principal-text p {
  margin-bottom: 1.2em;
  font-size: 1.1em;
}

.message-principal {
  padding: 0;
}

.section-title {
  font-size: 2.2rem;
  font-family: "Courgette";
  font-weight: 600;
  color: #075b5e;
  text-align: center;
  margin-bottom: 10px;
}

/* Responsif */
@media (max-width: 768px) {
  .principal-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .principal-text {
    text-align: justify;
  }
}
.principal-photo img,
.no-photo {
  max-width: 100%;
  max-height: 250px;
}
.principal-name {
  font-size: 1.1em;
}

.container-berita {
  max-width: 100%;
  margin: 0 0 40px 0;
  background-color: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.1);
}

h1 {
  color: #222;
  margin-bottom: 30px;
  text-align: center;
  font-weight: 700;
  letter-spacing: 1px;
}

h3 {
  font-size: 1.5rem;
  font-family: "Courgette";
  font-weight: 600;
  color: #075b5e;
  text-align: start;
  margin-bottom: 10px;
}

.modal-content h3 {
  font-family: "Noto Sans";
}

section.news-list {
  display: grid;
  grid-template-columns: 20% 20% 20% 20%;
  gap: 24px;
  margin-bottom: 30px;
  justify-content: center;
}
article.news-item {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgb(0 0 0 / 0.12), 0 8px 20px rgb(0 0 0 / 0.08);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-image {
  width: 100%;
  height: 160px;
  object-fit: contain;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  transition: filter 0.3s ease;
}
article.news-item:hover .news-image {
  filter: brightness(0.85);
}
.news-content {
  padding: 5px 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.news-title {
  font-size: 1.15rem;
  color: #075b5e;
  padding-bottom: 10px;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.3s ease;
}
article.news-item:hover .news-title {
  color: #075b5e;
}
.news-snippet {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
  margin-bottom: 20px;
  flex-grow: 1;
}
.news-date {
  font-size: 0.9rem;
  color: #999;
  text-align: left;
  font-style: normal;
  letter-spacing: 0.5px;
  padding: 10px 10px 0px 18px;
}
.btn-see-all {
  display: block;
  width: 220px;
  margin: 0 auto;
  padding: 14px 0;
  background: linear-gradient(135deg, #075b5e, #075b5e);
  color: white;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  border-radius: 8px;

  transition: background 0.3s ease;
  letter-spacing: 1px;
}
.btn-see-all:hover {
  background: linear-gradient(135deg, #075b5e, #075b5e);
}

/* Responsive Layout */
@media (max-width: 1024px) {
  section.news-list {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  section.news-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  section.news-list {
    grid-template-columns: 1fr;
  }
  .container {
    padding: 20px 15px;
  }
}
/* Informasi Madrasah */
.info-madrasah .info-container {
  display: flex;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto 3rem;
  flex-wrap: wrap;
  justify-content: center;
}
.info-box {
  border: 2px solid #00796b;
  border-radius: 8px;
  padding: 1rem;
  background: white;
  flex: 1 1 350px;
  color: #004d40;
  text-align: left;
}
.info-box h3 {
  margin: -1rem -1rem 0.7rem -1rem; /* tarik ke atas dan sisi kanan-kiri */
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  background: #00796b;
  border-radius: 6px 6px 0 0;
}

.info-box ul {
  list-style: none;
}
.info-box ul li {
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #004d40;
}
.info-box ul li i {
  color: #00796b;
}

.kontak-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: stretch;
  background-color: #fff;
  border-radius: 10px;
}

.form-box,
.kontak-box {
  width: 48%;
  background-color: #ffffff;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Tambahan untuk tampilan form */
.form-box input,
.form-box textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  margin-top: 5px;
  border-radius: 6px;
  font-size: 1rem;
}

.form-box button {
  background-color: #075b5e;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  margin-top: 1rem;
  cursor: pointer;
}

.form-box button:hover {
  background-color: #004d50;
}

/* Biar responsif saat layar kecil */
@media (max-width: 768px) {
  .form-box,
  .kontak-box {
    width: 100%;
  }
}

.kontak-box {
  background-color: #00796b;
  border-radius: 10px;
  padding: 1.5rem;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.kontak-box h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #ffffff;
  border-bottom: 2px solid #ffffff55;
  padding-bottom: 0.5rem;
}

.kontak-box p {
  margin: 0.5rem 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.kontak-box i {
  color: #fff; /* warna kontras untuk ikon */
  font-size: 1.2rem;
}

.sosmed-icons {
  display: flex;
  gap: 15px; /* Jarak antar ikon */
  margin-top: 10px;
}

.sosmed-icons a {
  color: #004d40; /* Warna ikon */
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.sosmed-icons a:hover {
  color: #00796b; /* Warna saat hover */
  transform: scale(1.2); /* Efek membesar saat hover */
}

/* Success / Error Message */
.message.success {
  background-color: #d4edda;
  color: #155724;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border-left: 5px solid #28a745;
  border-radius: 4px;
}

.message.error {
  background-color: #f8d7da;
  color: #721c24;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border-left: 5px solid #dc3545;
  border-radius: 4px;
}

/* Responsive untuk layar kecil */
@media (max-width: 768px) {
  .kontak-container {
    flex-direction: column;
    gap: 1.5rem;
  }

  .form-box,
  .kontak-box {
    flex: 1 1 100%;
  }
}

.hero {
  background-color: #075b5e; /* ← ini warna background sebelum gambar */
  background-position: right center;
  background-repeat: no-repeat;
  background-size: contain; /* agar tidak terpotong */
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  margin-bottom: 40px;
}

.profil {
  background-image: url("https://man1pnk.com/uploads/pageheaderprofil.png");
}

.berita {
  background-image: url("https://man1pnk.com/uploads/pageheaderberita.png");
}

.kontak {
  background-image: url("https://man1pnk.com/uploads/pageheaderkontak.png");
}

.hero-overlay {
  padding: 20px 40px;
  border-radius: 8px;
  margin-left: 5%;
}

.hero h2 {
  font-family: "Courgette";
  color: white;
  font-size: 40px;
  font-weight: bold;
  margin: 0;
}

.content {
  padding: 20px 20px;
  margin-top: 0px;
}

.card {
  display: flex;
  flex-wrap: wrap;
  background: white;
  box-shadow: 0 0 10px #ccc;
  margin-bottom: 30px;
  border-radius: 20px 20px 20px 20px;
}

.card img {
  max-width: 100%;
  height: 500px;
  flex: 1 1 180px;
  border-radius: 30px 30px;
  padding: 20px;
}

.card .text,
.card .right {
  padding: 30px;
  flex: 2;
  text-align: justify;
}

.card .right ol {
  padding-left: 20px;
}

.footer {
  background-color: #004d40;
  color: #fff;
  padding: 40px 0 20px;
  font-family: sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto 20px auto;
  padding: 0 110px; /* ⬅️ Menjorok dari kiri-kanan */
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  box-sizing: border-box;
}

.footer-col {
  flex: 1;
  max-width: 30%;
}

.footer-col h3 {
  font-family: "Noto Sans";
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

.footer-col p,
.footer-col a {
  font-family: "Noto Sans";
  color: #fff;
  text-decoration: none;
  margin: 4px 0;
  display: block;
  font-weight: Normal;
  font-size: 1rem;
}

.footer-col a:hover {
  color: #fed16a;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 14px;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media screen and (max-width: 768px) {
  .nav-menu {
    flex-direction: column;
    gap: 1rem;
  }
  .principal-container {
    flex-direction: column;
    text-align: center;
  }
  .principal-text {
    flex: unset;
  }
  .principal-video {
    flex: unset;
    width: 100%;
  }
  .stats {
    flex-direction: column;
    gap: 1rem;
  }
  .info-madrasah .info-container {
    flex-direction: column;
    gap: 1rem;
  }
  .latest-news .news-container {
    flex-direction: column;
  }
  .news-item {
    width: 100%;
  }
}

.message {
  margin-bottom: 15px;
  padding: 10px 15px;
  border-radius: 8px;
}

.message.error {
  background-color: #f8d7da;
  color: #721c24;
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid #f5c6cb;
}

.message.success {
  background-color: #d4edda;
  color: #155724;
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid #c3e6cb;
}

.bi {
  margin-right: 12px;
}

.modal,
.modal2 {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}
.modal-content {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  max-width: 650px;
  margin: auto;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  font-family: "Segoe UI", sans-serif;
}

.modal-title {
  font-size: 1.6em;
  color: #2c3e50;
  margin-bottom: 15px;
  text-align: center;
}

.modal-body-text {
  background-color: #f0f9ff;
  padding: 20px;
  margin-bottom: 20px;
  border-left: 8px solid #00796b;
  border-radius: 8px;
  color: #333;
  line-height: 1.7;
  white-space: pre-line;
  font-size: 1em;
}

.modal-body-text p {
  margin: 10px 0;
}

.close-btn {
  padding: 10px 18px;
  background-color: #00796b;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
}
.close-btn:hover {
  color: #fff;
}

.pengumuman-item {
  font-size: 18px !important;
  font-weight: bold !important;
  color: #00796b !important;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.agenda-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background-color: #f9f9f9;
  margin-bottom: 12px;
  border-left: 5px solid #00796b;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.agenda-item:hover {
  background-color: #eef7ff;
}

.agenda-date-block {
  width: 60px;
  text-align: center;
  margin-right: 16px;
  font-family: "Noto Sans", sans-serif;
}

.agenda-day {
  font-size: 28px;
  font-weight: bold;
  color: #2c3e50;
  line-height: 1;
}

.agenda-month {
  font-size: 16px;
  color: #00796b;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1;
}

.agenda-info {
  flex-grow: 1;
}

.agenda-title {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 4px;
}

.agenda-lokasi {
  font-size: 14px;
  color: #666;
}

.pengumuman-item:hover {
  text-decoration: none;
}
/* Tombol unduh file */
.btn-download {
  /* margin-top sudah ada, pastikan tetap */
  margin-top: 50px;
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background-color: #00796b;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-download:hover {
  background-color: #00796b;
}
.btn-download i {
  margin-right: 8px;
  font-size: 18px;
}
