:root {
  --brand: #15803d;
  --brand-dark: #14532d;
  --ink: #172033;
  --muted: #667085;
  --soft: #f4f8f5;
  --line: #dde7df;
}

body {
  color: var(--ink);
  font-family: "Inter", "Poppins", Arial, sans-serif;
  background: #fff;
}

a { color: var(--brand); }

.elementor-clone-header {
  top: 0;
  z-index: 1500;
  transition: box-shadow .25s ease;
}

.elementor-clone-header.is-sticky {
  box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
}

.navbar-school {
  background: #21a5b1;
  padding: 5px 0 7px;
  border: 0;
  box-shadow: none;
  transition: padding .25s ease, background-color .25s ease;
}

.elementor-clone-header.is-sticky .navbar-school {
  background: rgba(33, 165, 177, .98);
  padding-top: 3px;
  padding-bottom: 5px;
}

.navbar-school-inner {
  min-height: 64px;
}

.school-logo {
  width: 10%;
  min-width: 140px;
  padding: 0;
  margin: 0;
}

.school-logo img {
  display: block;
  width: 70%;
  max-width: 150px;
  height: auto;
  transition: max-width .25s ease;
}

.elementor-clone-header.is-sticky .school-logo img {
  max-width: 126px;
}

.school-menu-wrap {
  align-items: center;
}

.school-menu {
  align-items: center;
  gap: 10px;
}

.school-menu .nav-link {
  color: #fff !important;
  fill: #fff;
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: capitalize;
  padding: 12px 5px !important;
  transition: color .2s ease;
}

.school-menu .nav-link:hover,
.school-menu .nav-link:focus,
.school-menu .nav-link.active {
  color: #ffa449 !important;
}

.school-menu .dropdown-toggle::after {
  margin-left: 6px;
  vertical-align: 1px;
}

.school-menu .dropdown-menu {
  min-width: 230px;
  left: 0 !important;
  margin-top: 0px;
  padding: 5px 0;
  border: 0;
  border-radius: 0 0 8px 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
  z-index: 1600;
  display: block;
  opacity: 0;
  visibility: hidden;
  overflow: visible; /* CRITICAL: Allow nested menus to show outside */
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.school-menu .dropdown-item {
  color: #333;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
  padding: 10px 20px;
  border-bottom: 1px solid #f8f9fa;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.school-menu .dropdown-item:hover,
.school-menu .dropdown-item:focus {
  color: #1e1e1e;
  background: #f8bb14;
}

.school-menu .dropdown-menu .dropdown-item:last-child {
  border-radius: 0 0 6px 6px;
}

/* Multi-level dropdown */
.dropdown-submenu {
    position: relative;
}

.school-menu .dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100% !important; /* Override the global left: 0 !important */
    margin-top: -5px;
    margin-left: 0;
    border-radius: 0 8px 8px 8px !important;
    opacity: 0;
    visibility: hidden;
    display: block; 
    z-index: 1700; /* Higher than level 1 */
    transform: translateX(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2) !important;
}

.school-menu .dropdown-submenu:hover > .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
}

.school-menu .dropdown-submenu > a.has-submenu::after {
    display: block;
    width: 0;
    height: 0;
    margin-left: .5em;
    content: "";
    border-top: .3em solid transparent;
    border-right: 0;
    border-bottom: .3em solid transparent;
    border-left: .3em solid;
    float: right;
    margin-top: 7px;
}


.school-info-menu {
  max-height: calc(100vh - 105px);
  overflow-y: auto;
}

.school-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 116px;
  color: #3d3d3d;
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: capitalize;
  background: #fff;
  border: 5px solid rgba(122, 201, 208, .82);
  border-radius: 25px;
  box-shadow: 0 0 1px #ff8f1e inset;
  padding: 8px 18px;
  transition: color .2s ease, border-color .2s ease;
}

.school-login-btn:hover,
.school-login-btn:focus {
  color: #ff8f1e;
  border-color: #ff8f1e;
  text-decoration: none;
}

.school-menu-toggle {
  color: #fff;
  background: #f8e114;
  border: 0;
  border-radius: 4px;
  padding: 8px 11px;
  font-size: 22px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(180deg, #20a4b0 0%, #0094ff 100%);
  border-bottom: 2px solid #ff8f1e;
  padding: 55px 0 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("https://smpnegeri13mj.sch.id/wp-content/uploads/2022/11/c24471b0-e4b2-48ff-b48d-f9c63c25812e.png") center/cover;
  opacity: .5;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0 0 8px;
}

.hero-copy {
  padding-bottom: 86px;
}

.hero-headline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  font-family: "Outfit", sans-serif;
  font-size: clamp(38px, 7vw, 76px);
  font-weight: 600;
  line-height: .98;
  margin-bottom: 22px;
}

.hero-headline span {
  color: #fff;
}

.hero-headline strong {
  color: #ff8f1e;
  font-weight: 600;
}

.hero-search {
  display: flex;
  width: min(100%, 520px);
  margin: 5px 0 35px;
  border-radius: 10px;
}

.hero-search input {
  flex: 1;
  min-width: 0;
  height: 44px;
  color: #333;
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  border: 1px solid rgba(122, 201, 208, .82);
  border-radius: 5px 0 0 5px;
  box-shadow: 0 0 2px rgba(0, 0, 0, .5);
  padding: 0 14px;
}

.hero-search input::placeholder {
  color: #6b7280;
  font-family: "Poppins", sans-serif;
}

.hero-search button {
  width: 52px;
  height: 44px;
  color: #fff;
  background: #ff8f1e;
  border: 0;
  border-radius: 0 5px 5px 0;
  font-size: 15px;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}

.hero-search button:hover,
.hero-search button:focus {
  color: #ff8f1e;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, .5);
}

.hero-quote {
  max-width: 640px;
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  margin: 0;
}

.hero-visual {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 390px;
}

.hero-visual img {
  width: min(100%, 600px);
  max-height: 430px;
  object-fit: contain;
  object-position: bottom right;
}

.home-shortcuts {
  position: relative;
  z-index: 2;
  margin-top: -100px;
  padding-top: 0;
  padding-bottom: 40px;
  /* background: var(--soft); */
}

.shortcut-panel {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: start;
  gap: 0;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 16px 36px rgba(17, 46, 69, .12);
  padding: 20px 28px 16px;
}

.shortcut-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 74px;
  color: #111827;
  font-family: "Outfit", "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  animation: shortcutFadeUp .55s ease both;
  animation-delay: var(--delay);
}

.shortcut-item:hover,
.shortcut-item:focus {
  color: #ff8f1e;
  text-decoration: none;
}

.shortcut-item img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  margin-bottom: 8px;
  transition: transform .2s ease;
}

.shortcut-item:hover img,
.shortcut-item:focus img {
  transform: scale(.9);
}

.shortcut-item span {
  display: block;
  white-space: nowrap;
}

@keyframes shortcutFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  padding: 68px 0;
}

.section-soft { background: var(--soft); }

.section-title {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 24px;
}

.news-card, .school-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  height: 100%;
}

.news-card img, .school-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.card-body-space { padding: 22px; }

.badge-soft {
  background: #dcfce7;
  color: #166534;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

.staff-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

.footer {
  background: #102719;
  color: #dce7df;
  padding: 52px 0 28px;
}

.footer a { color: #d9f99d; }

.page-hero {
  padding: 96px 0;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(16, 39, 25, .86), rgba(16, 39, 25, .42)),
    var(--page-image) center/cover;
}

.content-area img {
  max-width: 100%;
  border-radius: 8px;
}

.btn-school {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.btn-school:hover {
  background: var(--brand-dark);
  color: #fff;
}

@media (min-width: 992px) {
  .school-menu .dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .navbar-school {
    padding: 20px 15px;
  }

  .elementor-clone-header.is-sticky .navbar-school {
    padding: 14px 15px;
  }

  .school-logo {
    width: 50%;
  }

  .school-menu-wrap {
    margin-top: 18px;
  }

  .school-menu {
    align-items: stretch;
    gap: 0;
  }

  .school-menu .nav-link {
    font-size: 14px;
    padding: 11px 15px !important;
  }

  .school-menu .dropdown-menu {
    margin-top: 0;
    box-shadow: none;
  }

  .hero {
    padding: 48px 0 0;
  }

  .hero-copy {
    padding-bottom: 42px;
  }

  .hero-visual {
    min-height: 300px;
  }

  .hero-visual img {
    max-height: 340px;
  }

  .shortcut-panel {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-left: 22px;
    padding-right: 22px;
    -webkit-overflow-scrolling: touch;
  }

  .shortcut-panel::-webkit-scrollbar {
    height: 0;
  }

  .shortcut-item {
    flex: 0 0 auto;
    min-width: 82px;
    max-width: none;
    font-size: 13px;
  }

  .shortcut-item img {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 767px) {
  .navbar-school {
    padding: 12px 10px;
  }

  .elementor-clone-header.is-sticky .navbar-school {
    padding: 9px 10px;
  }

  .school-logo {
    min-width: 120px;
  }

  .school-logo img {
    width: 88px;
  }

  .school-menu-toggle {
    border: 2px solid rgba(255, 255, 255, .85);
    font-size: 18px;
    padding: 6px 9px;
  }

  .school-login-btn {
    width: 100%;
    margin-top: 12px;
    font-size: 13px;
    padding: 10px 20px;
  }

  .school-menu .nav-link,
  .school-menu .dropdown-item {
    font-size: 12px;
  }

  .hero {
    padding: 38px 0 72px;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .hero h1 {
    font-size: 13px;
  }

  .hero-headline {
    font-size: 42px;
    gap: 7px;
    margin-bottom: 18px;
  }

  .hero-search {
    margin-bottom: 20px;
  }

  .hero-quote {
    font-size: 14px;
  }

  .hero-visual {
    display: none;
  }

  .home-shortcuts {
    margin-top: -10px;
  }

  .shortcut-panel {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 18px 18px 14px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .shortcut-panel::-webkit-scrollbar {
    height: 0;
  }

  .shortcut-item {
    flex: 0 0 auto;
    min-width: 78px;
    max-width: none;
    min-height: 68px;
    font-size: 12px;
    scroll-snap-align: start;
  }

  .shortcut-item img {
    width: 42px;
    height: 42px;
    margin-bottom: 7px;
  }
}
/* Enhanced Articles Styles */
.transition-hover {
  transition: all .3s ease;
}

.transition-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.news-card-img-wrap {
  position: relative;
  overflow: hidden;
}

.news-card-img-wrap img {
  transition: transform .5s ease;
}

.news-card:hover .news-card-img-wrap img {
  transform: scale(1.1);
}

.news-category-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--brand);
  color: #fff;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-meta small {
  font-size: 12px;
}

.news-title {
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 12px;
}

.news-excerpt {
  font-size: 13px;
  line-height: 1.6;
}

.btn-pill {
  border-radius: 50px;
  padding-left: 20px;
  padding-right: 20px;
}

/* Post Detail Styles */
.post-hero {
  position: relative;
  padding: 120px 0;
  color: #fff;
  background: 
    linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
    var(--post-image) center/cover no-repeat;
}

.post-hero .hero-overlay {
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.8));
}

.post-meta {
  font-family: "Outfit", sans-serif;
  font-size: 15px;
}

.post-content-wrap {
  margin-top: -60px;
  background: #fff;
  border-radius: 12px;
  padding: 50px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  position: relative;
  z-index: 5;
}

.typography-premium {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #334155;
}

.typography-premium h2, .typography-premium h3 {
  color: var(--ink);
  font-weight: 700;
  margin-top: 35px;
  margin-bottom: 20px;
}

.typography-premium p {
  margin-bottom: 25px;
}

.typography-premium img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 24px auto;
}

.typography-premium blockquote {
  border-left: 5px solid var(--brand);
  padding: 20px 30px;
  background: var(--soft);
  font-style: italic;
  font-size: 1.1em;
  margin: 30px 0;
}

.btn-social-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff !important;
  transition: opacity 0.2s;
}

.btn-facebook { background: #3b5998; }
.btn-twitter { background: #1da1f2; }
.btn-whatsapp { background: #25d366; }

.article-pagination {
  display: flex;
  justify-content: center;
}

.school-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.school-pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.school-pagination .page-link-wide {
  min-width: 92px;
}

.school-pagination .page-link:hover,
.school-pagination .page-link:focus {
  border-color: var(--brand);
  color: var(--brand);
  text-decoration: none;
}

.school-pagination .active .page-link {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.school-pagination .disabled .page-link {
  color: #94a3b8;
  background: #f8fafc;
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-social-icon:hover {
  opacity: 0.8;
}

@media (max-width: 767px) {
  .post-content-wrap {
    padding: 30px 20px;
    margin-top: -30px;
    border-radius: 0;
  }
  
  .post-hero {
    padding: 80px 0;
  }
  
  .post-hero h1 {
    font-size: 28px !important;
  }
}

/* SiLawe Chatbot */
.silawe-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Poppins', sans-serif;
}

.silawe-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #f8bb14;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 4px solid #fff;
    position: relative;
}

.silawe-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.silawe-btn .badge-dot {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 15px;
    height: 15px;
    background: #e74c3c;
    border-radius: 50%;
    border: 2px solid #fff;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(231, 76, 60, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

.silawe-window {
    position: absolute;
    bottom: 85px;
    right: 0;
    width: 350px;
    max-width: calc(100vw - 60px);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: none;
    flex-direction: column;
    transform-origin: bottom right;
    animation: silawe-open 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes silawe-open {
    from { opacity: 0; transform: scale(0.5) translateY(50px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.silawe-header {
    background: #f8bb14;
    padding: 20px;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 15px;
}

.silawe-header img {
    width: 45px;
    height: 45px;
    background: #fff;
    border-radius: 50%;
    padding: 5px;
}

.silawe-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.silawe-header p {
    margin: 0;
    font-size: 12px;
    opacity: 0.8;
}

.silawe-body {
    padding: 20px;
    height: 400px;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.msg-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
    max-width: 85%;
}

.msg-bot {
    background: #fff;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.msg-bot.options {
    background: transparent;
    padding: 0;
    width: 100%;
}

.silawe-option-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 15px;
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 10px;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    cursor: pointer;
    transition: all 0.2s;
}

.silawe-option-btn:hover {
    background: #f8bb14;
    border-color: #f8bb14;
    color: #1a1a1a;
    transform: translateX(5px);
}

.silawe-footer {
    padding: 15px;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.silawe-input {
    flex: 1;
    border: 1px solid #eee;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
}

.silawe-input:focus {
    border-color: #f8bb14;
}

.silawe-send {
    width: 38px;
    height: 38px;
    background: #f8bb14;
    border: none;
    border-radius: 50%;
    color: #1a1a1a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.silawe-send:hover {
    background: #e5ac12;
}

