/* ========================================================================
   LAYOUT.CSS — Extracted layout-related sections from style.css
   Organized: Topbar → Navbar → Hamburger/Drawer → Mobile Menu → Hero →
   Hero Announcement → Footer → Page Hero → Responsive Queries
   ======================================================================== */

/* ===== OFFICIAL TOPBAR ===== */
.official-topbar {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
  color: #f8fafc;
  font-size: .781rem;
  padding: .4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  position: relative;
  z-index: 1001;
}

.topbar-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: .85rem;
  flex-wrap: wrap;
}

.topbar-divider {
  color: rgba(255, 255, 255, .3);
  font-size: .75rem;
}

.topbar-info-item {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: #ffffff;
  font-size: .75rem;
  font-weight: 500;
}

.topbar-info-item i {
  color: #f59e0b;
}

.topbar-link {
  color: #ffffff;
  transition: color .2s;
  text-decoration: none;
}

.topbar-link:hover {
  color: #f59e0b;
}

.topbar-socials {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.topbar-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .15);
  color: #ffffff;
  font-size: .75rem;
  transition: all .2s;
}

.topbar-socials a:hover {
  background: #f59e0b;
  color: #1e3a8a;
}

.topbar-portal-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .2rem .65rem;
  background: #dc2626;
  color: #ffffff !important;
  font-weight: 600;
  font-size: .72rem;
  border-radius: 6px;
  transition: all .2s;
  text-decoration: none;
}

.topbar-portal-btn:hover {
  background: #b91c1c;
}

/* ===== TOPBAR TICKER ===== */
.topbar-ticker {
  background: #1e293b;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  padding: .25rem 0;
  font-size: .781rem;
}

.ticker-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  align-items: center;
  gap: .75rem;
  overflow: hidden;
}

.ticker-label {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: #2563eb;
  color: #ffffff;
  padding: .15rem .6rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: .687rem;
  letter-spacing: .04em;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-content {
  flex: 1;
  overflow: hidden;
}

.ticker-content marquee {
  display: flex;
  align-items: center;
}

.ticker-item {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 500;
  transition: color .2s;
}

.ticker-item:hover {
  color: #60a5fa;
  text-decoration: underline;
}

.ticker-date {
  color: #94a3b8;
  font-size: .72rem;
  margin-left: 2px;
}

.ticker-bullet {
  color: #2563eb;
  margin: 0 .85rem;
}

@media (max-width: 768px) {
  .ticker-container {
    padding: 0 16px;
  }

  .ticker-label span {
    display: none;
  }

  .ticker-label {
    padding: .15rem .4rem;
  }
}

/* ===== HEADER & NAVBAR ===== */
.header-navbar-sticky {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.navbar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  height: var(--nav-height);
  transition: all .3s ease;
}

.navbar-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  height: 100%;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  text-decoration: none;
  margin-right: 2rem;
  flex-shrink: 0;
}

.navbar-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  border-radius: 0;
}

.navbar-brand-text {
  display: flex;
  flex-direction: column;
}

.navbar-school-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -.01em;
  text-transform: uppercase;
  line-height: 1.25;
}

.navbar-slogan {
  font-family: var(--font-body);
  font-size: .65rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.2;
  margin-top: 2px;
}

/* ===== NAVBAR MENU ===== */
.navbar-menu {
  display: flex;
  align-items: center;
  gap: .125rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .5rem .75rem;
  font-size: .85rem;
  font-weight: 500;
  color: #475569;
  border-radius: 6px;
  transition: all .2s ease;
  text-decoration: none;
  position: relative;
  white-space: nowrap;
}

.nav-link:hover {
  color: #1e40af;
  background: #f1f5f9;
}

.nav-link.active,
.nav-item.active>.nav-link {
  color: #1e40af;
  font-weight: 600;
}

.nav-link.active::after,
.nav-item.active>.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: .75rem;
  right: .75rem;
  height: 2px;
  background: #1e40af;
  border-radius: 2px;
}

.dropdown-arrow {
  font-size: .6rem;
  transition: transform .25s ease;
  color: #94a3b8;
  margin-left: 0;
}

.has-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
  color: #1e40af;
}

/* Dropdown Menu */
.has-dropdown {
  position: relative;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 200px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
  padding: .35rem;
  z-index: 1000;
  border: 1px solid #e2e8f0;
  opacity: 0;
  visibility: hidden;
  transition: all .2s ease;
}

.dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .75rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: .85rem;
  color: #475569;
  text-decoration: none;
  transition: all .15s;
}

.dropdown-item:hover {
  background: #f8fafc;
  color: #1e40af;
}

.dropdown-item.active {
  background: #f1f5f9;
  color: #1e40af;
  font-weight: 600;
}

/* Navbar Actions */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: .625rem;
}

.nav-action-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.15rem;
  border-radius: 999px;
  font-size: .813rem;
  font-weight: 700;
  text-decoration: none;
  transition: all .25s cubic-bezier(.4, 0, .2, 1);
}

.search-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  justify-content: center;
  background: #f1f5f9;
  color: #475569;
  border-radius: 50%;
}

.search-btn:hover {
  background: #e2e8f0;
  color: #1e40af;
  transform: scale(1.05);
}

.ppdb-btn {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
}

.ppdb-btn:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.45);
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1002;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--biru);
  border-radius: 2px;
  transition: all .3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ===== DRAWER / OVERLAY ===== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ===== MOBILE BOTTOM MENU ===== */
.bottom-menu-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.bottom-menu-brand img {
  border-radius: 50%;
}

/* ===== MOBILE FAB & BOTTOM MENU ===== */
.mobile-bottom-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1002;
  background: #ffffff;
  border-radius: 24px 24px 0 0;
  padding: 1.25rem 1rem calc(1.5rem + env(safe-area-inset-bottom, 0));
  box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.12);
  transform: translateY(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform .35s cubic-bezier(.34, 1.2, .64, 1), visibility .35s;
  max-height: 85vh;
  overflow-y: auto;
}

.mobile-bottom-menu.open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.bottom-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid #e2e8f0;
}

.bottom-menu-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.bottom-menu-brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.bottom-menu-title {
  font-weight: 700;
  color: #1e3a8a;
  font-size: 1.1rem;
  font-family: var(--font-display);
}

.bottom-menu-close {
  background: none;
  border: none;
  font-size: 1.35rem;
  cursor: pointer;
  color: #94a3b8;
  padding: 4px 8px;
  line-height: 1;
  border-radius: 50%;
  transition: color .2s, background .2s;
}

.bottom-menu-close:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.bottom-menu-body {
  display: block;
}

.bottom-menu-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .65rem;
}

.menu-profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem .35rem .85rem .35rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  text-decoration: none;
  color: #1e293b;
  transition: all .2s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02);
  position: relative;
  min-height: 98px;
}

.menu-profile-card:hover,
.menu-profile-card:active {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.menu-profile-card.active {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.menu-profile-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  color: #dc2626; /* Crimson Red for default icons */
  margin-bottom: .5rem;
  transition: all .2s ease;
  background: transparent;
  position: relative;
}

.menu-profile-card.active .menu-profile-card-icon {
  background: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.35);
}

.badge-pengumuman {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 10px;
  background: #dc2626;
  color: #ffffff;
  font-size: .625rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(220, 38, 38, .4);
}

.menu-profile-card-text {
  font-size: .76rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.25;
  text-align: center;
  word-break: break-word;
}

.menu-profile-card.active .menu-profile-card-text {
  color: #1d4ed8;
  font-weight: 700;
}

@media (max-width: 480px) {
  .bottom-menu-card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
  }
  .menu-profile-card {
    padding: .85rem .25rem .75rem .25rem;
    min-height: 90px;
  }
  .menu-profile-card-icon {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
    margin-bottom: .35rem;
  }
  .menu-profile-card-text {
    font-size: .72rem;
  }
}

.bottom-menu-children {
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid #e2e8f0;
}

.bottom-menu-child-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem .75rem;
  border-radius: 12px;
  text-decoration: none;
  color: #475569;
  transition: all .2s;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  margin-bottom: .4rem;
  font-size: .813rem;
  font-weight: 500;
}

.bottom-menu-child-item:active {
  transform: scale(.98);
}

.bottom-menu-child-item.active {
  background: rgba(30, 64, 175, .08);
  color: #1e40af;
}

.bottom-menu-child-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  color: #94a3b8;
  flex-shrink: 0;
}

.bottom-menu-child-item.active .bottom-menu-child-icon {
  color: #1e40af;
}

/* ===== MOBILE FAB ===== */
.mobile-fab {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1001;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #dc2626;
  color: #ffffff;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(220, 38, 38, .25);
  transition: all .25s cubic-bezier(.34, 1.56, .64, 1);
  align-items: center;
  justify-content: center;
}

@media (max-width: 1024px) {
  .mobile-fab {
    display: flex;
  }
}

.mobile-fab:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(220, 38, 38, .35);
}

.mobile-fab:active {
  transform: scale(.95);
}

.mobile-fab.open {
  background: var(--biru, #1D4E89);
  box-shadow: 0 4px 16px rgba(29, 78, 137, .35);
  transform: rotate(90deg);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 1000;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--biru, #1D4E89);
  color: #fff;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(29, 78, 137, .3);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all .3s cubic-bezier(.34, 1.56, .64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(29, 78, 137, .4);
}

/* ===== HERO ===== */
.hero-section {
  background: linear-gradient(135deg, #0f2a4a 0%, #1e3a8a 100%);
  overflow: hidden;
  position: relative;
  min-height: 85vh;
}

.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  min-width: 177.77vh;
  min-height: 56.25vw;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
}

.hero-video-bg iframe {
  width: 100%;
  height: 100%;
  border: none;
  opacity: 0.55;
  filter: brightness(0.85) contrast(1.1);
  transform: scale(1.15);
}

.hero-gif-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  opacity: 0.6;
  filter: blur(4px) brightness(0.88);
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 42, 74, 0.78) 0%, rgba(30, 58, 138, 0.68) 100%);
  backdrop-filter: blur(3px);
  z-index: 2;
  pointer-events: none;
}

.hero-slider {
  width: 100%;
  position: relative;
  z-index: 3;
}

.hero-slide {
  display: none;
}

.hero-slide.active {
  display: block;
}

.hero-row {
  display: flex;
  align-items: center;
  min-height: 85vh;
  padding: 70px 0 90px;
}

.hero-text-col {
  flex: 1;
  padding-right: 2.5rem;
}

.hero-image-col {
  flex: 1.4;
  text-align: center;
  width: 100%;
}

.hero-image-placeholder {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  min-height: 420px;
  background: rgba(255, 255, 255, .08);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .9);
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, .15);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .4);
}

.hero-image-col img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 80vh;
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .3);
  object-fit: contain;
}

.badge-modern {
  display: inline-block;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(8px);
  color: var(--emas);
  font-size: .75rem;
  font-weight: 600;
  padding: .35rem 1.25rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, .08);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.hero-title {
  color: var(--putih);
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 700;
}

.hero-desc {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, .7);
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 540px;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 24px 0 48px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
  border: none;
  cursor: pointer;
  transition: all .3s;
}

.hero-dot.active {
  background: var(--putih);
  transform: scale(1.25);
}

/* ===== HERO ANNOUNCEMENT BAR ===== */
.hero-announcement {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--biru), #1a365d);
  padding: .625rem 0;
  z-index: 5;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, .1);
}

.hero-announcement-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-announcement-icon {
  color: #fbbf24;
  font-weight: 700;
  font-size: .875rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.hero-announcement-text {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 1.5rem;
}

.hero-announcement-item {
  display: block;
  color: #fff;
  text-decoration: none;
  font-size: .875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: all .5s ease;
}

.hero-announcement-item.active {
  opacity: 1;
  transform: translateY(0);
}

.hero-announcement-item:hover {
  text-decoration: underline;
  color: #fbbf24;
}

.hero-announcement-more {
  color: rgba(255, 255, 255, .7);
  font-size: .813rem;
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: .375rem;
  transition: color .2s;
}

.hero-announcement-more:hover {
  color: #fbbf24;
}

/* ===== FOOTER ===== */
.footer {
  background: #1e3a8a;
  color: rgba(255, 255, 255, .8);
  padding: 4.5rem 0 0;
  border-top: 3px solid #f59e0b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 3.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}

.footer-logo-text {
  display: flex;
  flex-direction: column;
}

.footer-school-name {
  font-size: 1.125rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  font-family: var(--font-display);
}

.footer-school-location {
  font-size: .75rem;
  color: #f59e0b;
  margin-top: .15rem;
  font-weight: 600;
}

.footer-desc {
  font-size: .875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .8);
  margin-bottom: 1.25rem;
}

.footer-title {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 1.25rem;
  font-size: .938rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-bottom: 2px solid #f59e0b;
  display: inline-block;
  padding-bottom: .25rem;
}

.footer-links li {
  margin-bottom: .5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, .8);
  font-size: .875rem;
  transition: color .2s;
  text-decoration: none;
}

.footer-links a:hover {
  color: #f59e0b;
}

.footer-contact li {
  margin-bottom: .75rem;
  font-size: .875rem;
  color: rgba(255, 255, 255, .8);
}

.footer-contact .contact-label {
  font-weight: 600;
  color: #f59e0b;
  display: block;
  margin-bottom: 2px;
}

.footer-contact span:not(.contact-label) {
  display: block;
}

.footer-social {
  display: flex;
  gap: .75rem;
  margin-top: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  color: #ffffff;
  font-size: 1.05rem;
  transition: all .2s;
}

.footer-social a:hover {
  background: #f59e0b;
  color: #1e3a8a;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .2);
  padding: 1.5rem 0;
  margin-top: 3.5rem;
  text-align: center;
  font-size: .875rem;
  color: #ffffff !important;
  font-weight: 500;
}

.footer-bottom p {
  color: #ffffff !important;
  margin: 0;
  opacity: 1;
}

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
  padding: 54px 0 46px;
  text-align: center;
  border-bottom: 3px solid #f59e0b;
}

.page-hero .page-title {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 2.25rem;
  margin-bottom: .5rem;
  font-weight: 800;
  letter-spacing: -.01em;
}

.breadcrumb {
  font-size: .875rem;
  color: rgba(255, 255, 255, .85);
  font-weight: 500;
}

.breadcrumb a {
  color: #f59e0b;
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb .fa-chevron-right {
  font-size: .6rem;
  margin: 0 .35rem;
  opacity: .7;
}

.breadcrumb span {
  color: #ffffff;
}

.map-container {
  height: 600px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.1);
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

/* ===== RESPONSIVE NAVBAR ===== */
/* Responsive Styles for Topbar & Navbar */
@media (max-width: 1024px) {
  .navbar-container {
    padding: 0 24px;
  }

  .topbar-container {
    padding: 0 24px;
  }

  .navbar-menu {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .d-none-mobile {
    display: none !important;
  }

  .search-btn,
  .ppdb-btn {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .official-topbar {
    padding: .35rem 0;
    font-size: .72rem;
  }

  .topbar-container {
    padding: 0 16px;
  }

  .navbar-container {
    padding: 0 16px;
  }

  .navbar-school-name {
    font-size: .85rem;
  }

  .navbar-slogan {
    font-size: .55rem;
  }

  .navbar-gov-title {
    font-size: .55rem;
  }

  .navbar-actions {
    gap: .35rem;
  }

  .ppdb-btn span {
    display: none;
  }

  .ppdb-btn {
    padding: .4rem .6rem;
    font-size: .75rem;
  }

  .search-btn {
    width: 34px;
    height: 34px;
    font-size: .75rem;
  }

  .hamburger {
    padding: 4px;
  }

  .hamburger span {
    width: 22px;
    height: 2px;
  }

  .bottom-menu-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
  }
}

/* ===== COMPREHENSIVE MOBILE & TABLET OPTIMIZATION ===== */
@media (max-width: 992px) {
  .hero-row {
    flex-direction: column-reverse;
    text-align: center;
    min-height: auto;
    padding: 60px 0 80px;
    gap: 2rem;
  }

  .hero-text-col {
    padding-right: 0;
  }

  .hero-desc {
    margin: 0 auto 1.75rem;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }


}

@media (max-width: 768px) {
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section {
    padding: 40px 0;
  }

  .page-hero {
    padding: 40px 0 32px;
  }

  .page-hero .page-title {
    font-size: 1.75rem;
  }

  .section-title,
  .section-title-center {
    font-size: 1.5rem;
  }

  .navbar-logo {
    height: 36px;
  }

  .navbar-school-name {
    font-size: 0.95rem;
  }

  .navbar-slogan {
    font-size: 0.6rem;
  }

  .carousel-item {
    flex: 0 0 calc(85% - 0.5rem);
    min-width: 240px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer {
    padding: 3.5rem 0 0;
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-title {
    display: block;
    text-align: center;
  }

  .map-container {
    height: 450px;
    border-radius: 14px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .hero-desc {
    font-size: 0.938rem;
  }

  .carousel-item {
    flex: 0 0 100%;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid.gallery-list-view .gallery-card {
    height: auto;
    flex-direction: column;
    align-items: stretch;
  }

  .gallery-grid.gallery-list-view .gallery-card img {
    width: 100%;
    height: 160px;
  }
}

/* ===== REMAINING RESPONSIVE QUERIES ===== */
/* Testimoni Carousel */
@media (max-width: 768px) {
  .testimoni-card {
    flex: 0 0 calc(50% - 1rem) !important;
    min-width: 0 !important;
  }
}

@media (max-width: 480px) {
  .testimoni-card {
    flex: 0 0 100% !important;
  }
}

/* ===== BANNER MODAL ===== */
.banner-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

.banner-modal.open {
  display: flex;
}

.banner-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .7);
  backdrop-filter: blur(6px);
}

.banner-modal-content {
  position: relative;
  max-width: min(92vw, 800px);
  max-height: 90vh;
  animation: bannerZoomIn .35s ease;
}

.banner-modal-content img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
}

.banner-modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--putih, #fff);
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #333;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, box-shadow .2s;
  z-index: 1;
}

.banner-modal-close:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .35);
}

.banner-modal-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: 1rem;
  cursor: pointer;
  user-select: none;
}

.banner-modal-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--biru, #1D4E89);
  cursor: pointer;
}

.banner-modal-option span {
  font-size: .875rem;
  color: rgba(255, 255, 255, .85);
  font-weight: 500;
}

@keyframes bannerZoomIn {
  from {
    opacity: 0;
    transform: scale(.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .banner-modal-content {
    max-width: 96vw;
  }
  .banner-modal-close {
    top: -12px;
    right: -12px;
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
  }
}

/* ===== VIDEO MODAL ===== */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

.video-modal.open {
  display: flex;
}

.video-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .85);
  backdrop-filter: blur(6px);
}

.video-modal-content {
  position: relative;
  width: min(90vw, 900px);
  aspect-ratio: 16/9;
  animation: videoZoomIn .3s ease;
}

.video-modal-embed {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .6);
}

.video-modal-embed iframe {
  display: block;
  border-radius: 12px;
}

.video-modal-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #333;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, box-shadow .2s;
  z-index: 1;
}

.video-modal-close:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .4);
}

@keyframes videoZoomIn {
  from {
    opacity: 0;
    transform: scale(.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .video-modal-content {
    width: 96vw;
  }
  .video-modal-close {
    top: -12px;
    right: -12px;
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .container {
    padding: 0 32px;
  }

  .navbar-container {
    padding: 0 32px;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 980px) {
  .container {
    padding: 0 24px;
  }

  .navbar-container {
    padding: 0 24px;
  }

  .row {
    margin: 0 -.75rem;
  }

  .col-lg-4,
  .col-lg-3,
  .col-md-6 {
    padding: 0 .75rem;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .navbar-menu {
    display: none;
  }

  .hamburger {
    display: none;
  }

  .mobile-bottom-menu {
    display: block;
  }

  .mobile-fab {
    display: flex;
  }

  .profile-card {
    padding: 1.25rem;
  }

  .info-card {
    padding: 1rem;
  }

  .kepsek-avatar {
    width: 120px;
    height: 150px;
  }

  .kontak-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .col-lg-4,
  .col-lg-3 {
    width: 50%;
  }

  .sambutan-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    gap: 2rem;
  }

  .sambutan-foto {
    width: 140px;
    height: 140px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .section-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .section {
    padding: 64px 0;
  }
}

@media (max-width: 768px) {
  .topbar-right {
    display: none !important;
  }

  .topbar-container {
    justify-content: center !important;
  }

  .topbar-left {
    justify-content: center !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .page-hero {
    padding: 48px 0 40px;
  }

  .page-hero .page-title {
    font-size: 1.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .admin-layout {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    padding: 1rem;
  }

  .admin-main {
    padding: 1.25rem;
  }

  body {
    padding-bottom: 0;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-title,
  .section-title-center {
    font-size: 1.625rem;
  }

  .pengumuman-grid,
  #fasilitasGrid,
  .bahan-ajar-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  #tabVideo>div:first-child {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  #guruGrid,
  #staffGrid,
  #beritaGrid,
  #prestasiGrid,
  #ekskulGrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 0;
  }

  #guruGrid>.col-lg-4,
  #staffGrid>.col-lg-4,
  #beritaGrid>.col-lg-4,
  #prestasiGrid>.col-lg-4,
  #ekskulGrid>.col-lg-4 {
    width: 100% !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    display: flex;
  }

  #guruGrid .card-hover,
  #staffGrid .card-hover,
  #beritaGrid .card-hover,
  #prestasiGrid .card-hover,
  #ekskulGrid .card-hover {
    height: 100%;
    width: 100%;
  }

  #guruGrid .card-title,
  #staffGrid .card-title,
  #beritaGrid .card-title,
  #prestasiGrid .card-title,
  #ekskulGrid .card-title,
  #ppdbGrid .card-title {
    font-size: .875rem;
  }

  #guruGrid .card-body,
  #staffGrid .card-body,
  #beritaGrid .card-body,
  #prestasiGrid .card-body,
  #ekskulGrid .card-body,
  #ppdbGrid .card-body {
    padding: .75rem 1rem;
  }

  #guruGrid .card-text,
  #staffGrid .card-text,
  #beritaGrid .card-text,
  #prestasiGrid .card-text,
  #ekskulGrid .card-text,
  #ppdbGrid .card-text {
    font-size: .75rem;
  }

  #guruGrid .badge,
  #staffGrid .badge,
  #beritaGrid .badge,
  #prestasiGrid .badge,
  #ekskulGrid .badge {
    font-size: .625rem;
    padding: .15rem .5rem;
  }

  #guruGrid .card-img,
  #staffGrid .card-img {
    height: 140px !important;
  }

  #guruGrid .card-img img,
  #staffGrid .card-img img {
    height: 140px !important;
  }

  #guruGrid .card-img-placeholder,
  #staffGrid .card-img-placeholder {
    height: 140px !important;
    min-height: 0 !important;
    font-size: 2rem;
  }

  #guruGrid p,
  #staffGrid p {
    font-size: .75rem !important;
  }

  #beritaGrid .card-img {
    height: 150px !important;
  }

  #prestasiGrid .card-img {
    height: 130px !important;
  }

  #prestasiGrid .card-img img {
    height: 130px !important;
  }

  #ekskulGrid .ekskul-img {
    height: 130px !important;
  }

  #ekskulGrid .ekskul-img img {
    height: 130px !important;
    width: 100%;
    object-fit: cover;
  }

  #ekskulGrid .ekskul-card {
    padding: 0 !important;
    border: 1px solid #e2e8f0;
  }

  #ekskulGrid hr,
  #ekskulGrid .ekskul-pembina {
    display: none !important;
  }

  #ekskulGrid .ekskul-body {
    padding: .75rem 1.25rem !important;
    text-align: left !important;
  }

  #prestasiGrid .card-body {
    padding: .75rem 1.25rem !important;
  }

  #ekskulGrid h3 {
    font-size: .875rem !important;
  }

  #ekskulGrid p {
    font-size: .75rem !important;
  }

  #ppdbGrid .ppdb-card {
    padding: 1.25rem;
  }

  #ppdbGrid .ppdb-card-title {
    font-size: .938rem;
  }

  #ppdbGrid .ppdb-list li {
    font-size: .813rem;
  }

  #ppdbGrid .ppdb-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  #ppdbGrid>.col-lg-4 {
    width: 100% !important;
  }

  .pengumuman-grid .card-hover>div:first-child {
    padding: 1rem 1rem .5rem !important;
  }

  .pengumuman-grid .card-hover>div:last-child {
    padding: 0 1rem 1rem !important;
  }

  .pengumuman-grid .card-hover h3 {
    font-size: .875rem !important;
  }

  .pengumuman-grid .card-hover p {
    font-size: .75rem !important;
  }

  .pengumuman-grid .card-title {
    font-size: .875rem;
  }

  .pengumuman-grid .card-text {
    font-size: .75rem;
  }

  #fasilitasGrid .card-title {
    font-size: .875rem;
  }

  #fasilitasGrid .card-text {
    font-size: .75rem;
  }

  .bahan-ajar-grid>div {
    padding: 0 !important;
  }

  .bahan-ajar-grid h4 {
    font-size: .813rem !important;
  }

  .bahan-ajar-grid small {
    font-size: .688rem !important;
  }

  .form-control {
    padding: .6rem .75rem;
    font-size: .813rem;
  }

  .gallery-toolbar {
    gap: .5rem;
    margin-bottom: 1rem;
  }

  .galeri-filter-wrap {
    max-width: 100%;
  }

  .filter-responsive {
    max-width: 100% !important;
    width: 100% !important;
  }

  .filter-responsive-row {
    flex-direction: column;
    gap: .75rem;
  }

  .filter-responsive-row>.col-lg-4 {
    width: 100% !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
  }

  .filter-flex-wrap {
    flex-direction: column;
    align-items: stretch !important;
  }

  .filter-flex-wrap>div {
    max-width: 100% !important;
  }

  .filter-flex-wrap>.gallery-view-toggle {
    align-self: flex-start;
  }

  .detail-card {
    text-align: center;
  }

  .profile-card {
    text-align: center;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.375rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .gallery-card {
    margin-bottom: .75rem;
  }

  .card-body {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .navbar-container {
    padding: 0 12px;
  }

  .navbar-logo {
    height: 32px;
    width: auto;
  }

  .navbar-school-name {
    font-size: .78rem;
  }

  .navbar-slogan {
    font-size: .5rem;
  }

  .navbar-actions {
    gap: .25rem;
  }

  .nav-action-btn {
    padding: .4rem .5rem;
    font-size: .72rem;
  }

  .ppdb-btn {
    padding: .35rem .5rem;
    font-size: .7rem;
  }

  .search-btn {
    width: 30px;
    height: 30px;
    font-size: .7rem;
  }

  .hamburger {
    padding: 3px;
  }

  .hamburger span {
    width: 20px;
    height: 2px;
  }

  .bottom-menu-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: .4rem;
  }

  .bottom-menu-item {
    padding: .5rem .2rem;
  }

  .bottom-menu-icon {
    width: 36px;
    height: 36px;
    font-size: .9rem;
  }

  .bottom-menu-label {
    font-size: .625rem;
  }

  .mobile-bottom-menu {
    padding: 1rem .75rem calc(1rem + env(safe-area-inset-bottom, 0));
  }
}

@media (max-width: 360px) {
  .container {
    padding: 0 12px;
  }

  .navbar-container {
    padding: 0 8px;
  }

  .navbar-school-name {
    font-size: .7rem;
  }

  .navbar-slogan {
    font-size: .45rem;
  }

  .navbar-logo {
    height: 28px;
  }

  .navbar-actions {
    gap: .15rem;
  }

  .ppdb-btn {
    padding: .3rem .4rem;
    font-size: .65rem;
  }

  .search-btn {
    width: 28px;
    height: 28px;
    font-size: .65rem;
  }

  .hamburger span {
    width: 18px;
    height: 1.5px;
  }

  .navbar-brand {
    gap: .4rem;
    margin-right: .5rem;
  }

  .col-lg-4,
  .col-lg-3 {
    width: 100%;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .pengumuman-grid,
  #fasilitasGrid,
  .bahan-ajar-grid {
    grid-template-columns: 1fr !important;
  }

  #tabVideo>div:first-child {
    grid-template-columns: 1fr !important;
  }

  .page-hero {
    padding: 28px 0 24px;
  }

  .page-hero .page-title {
    font-size: 1.15rem;
  }

  .hero-row {
    padding: 28px 0;
  }

  .hero-title {
    font-size: 1.1rem;
  }

  .bottom-menu-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: .3rem;
  }

  .bottom-menu-item {
    padding: .4rem .15rem;
    border-radius: 12px;
  }

  .bottom-menu-icon {
    width: 34px;
    height: 34px;
    font-size: .85rem;
    border-radius: 10px;
  }

  .bottom-menu-label {
    font-size: .6rem;
  }

  .mobile-fab {
    width: 44px;
    height: 44px;
    font-size: 1rem;
    bottom: 12px;
    right: 12px;
  }

  .mobile-bottom-menu {
    padding: 1rem .5rem calc(1rem + env(safe-area-inset-bottom, 0));
    border-radius: 20px 20px 0 0;
  }
}
