:root {
  --navy: #082b55;
  --blue: #0867e8;
  --text: #17233a;
  --muted: #667085;
  --line: #e5eaf1;
  --soft: #f5f8fc;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(1250px, calc(100% - 48px));
  margin: auto;
}

/* TOPBAR */
.topbar {
  background: #06264a;
  color: #dfeaff;
  font-size: 13px;
}

.topbar-inner {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.top-contact {
  display: flex;
  gap: 20px;
}

.social {
  margin-left: auto;
  display: flex;
  gap: 15px;
  font-weight: 800;
}

/* HEADER & NAVBAR */
.header {
  height: 72px;
  background: #fff;
  border-bottom: 1px solid #edf0f5;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 52px;
  height: 52px;
}

.brand strong {
  display: block;
  font-size: 17px;
  color: #112a4a;
}

.brand small {
  display: block;
  color: #718096;
  font-size: 10px;
  margin-top: 1px;
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: #25334a;
}

nav a {
  height: 72px;
  display: inline-flex;
  align-items: center;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  padding: 0 4px;
}

nav a:hover,
nav .active {
  color: var(--blue);
  border-color: var(--blue);
}

/* DROPDOWN SUBMENU */
.nav-item.dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 72px;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  border: 1px solid #eef2f6;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 110;
  display: flex;
  flex-direction: column;
}

.nav-item.dropdown:hover .dropdown-menu,
.nav-item.dropdown.show .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  height: auto;
  padding: 10px 14px;
  border-radius: 6px;
  color: #334155;
  font-size: 13.5px;
  border-bottom: none !important;
  display: flex;
  align-items: center;
  transition: background 0.15s, color 0.15s;
}

.dropdown-menu a:hover {
  background: #f1f5f9;
  color: var(--blue);
}

.login {
  height: auto !important;
  background: var(--navy);
  color: white !important;
  border: 0 !important;
  border-radius: 8px;
  padding: 9px 16px !important;
  margin-left: 5px;
}

.login:hover {
  background: var(--blue) !important;
}

.menu-toggle {
  display: none;
  border: 0;
  background: none;
  font-size: 24px;
  cursor: pointer;
}

/* HERO SLIDER */
.hero {
  height: 380px;
  position: relative;
  overflow: hidden;
  background: #06294e;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease-in-out, visibility 0.7s ease-in-out;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 6s ease-out;
}

.hero-slide.active .hero-bg {
  transform: scale(1);
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  color: white;
  z-index: 2;
}

.hero-copy {
  max-width: 680px;
  animation: heroFadeIn 0.8s ease forwards;
}

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

.hero h1 {
  font-size: 40px;
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: 0.2px;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.lead {
  font-size: 16px;
  max-width: 620px;
  color: #e4edf8;
  line-height: 1.6;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
  margin: 0;
}

.actions {
  display: flex;
  gap: 14px;
  margin: 22px 0 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 11px 22px;
  font-weight: 700;
  font-size: 13.5px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn.primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(8, 103, 232, 0.4);
}

.btn.primary:hover {
  background: #0656c4;
  transform: translateY(-2px);
}

.btn.outline {
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
}

.btn.outline:hover {
  background: #fff;
  color: var(--navy);
  transform: translateY(-2px);
}

.stats {
  display: flex;
  gap: 35px;
  margin-top: 16px;
}

.stats div {
  display: grid;
  grid-template-columns: 36px auto;
  grid-template-rows: 20px 18px;
  column-gap: 8px;
}

.stats i {
  grid-row: 1/3;
  font-style: normal;
  font-size: 26px;
}

.stats strong {
  font-size: 18px;
  font-weight: 700;
}

.stats span {
  font-size: 11px;
  color: #d6e2f0;
}

.slider {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.slider:hover {
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-50%) scale(1.08);
}

.prev {
  left: 24px;
}

.next {
  right: 24px;
}

.dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dots b {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.5;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dots b.active {
  width: 26px;
  border-radius: 10px;
  opacity: 1;
  background: var(--blue);
}

/* QUICK LINKS */
.quick {
  position: relative;
  margin-top: -30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(16, 37, 65, 0.12);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  padding: 20px 8px;
  z-index: 10;
}

.quick a {
  padding: 10px 16px;
  text-align: center;
  border-right: 1px solid var(--line);
  transition: transform 0.2s;
}

.quick a:hover {
  transform: translateY(-3px);
}

.quick a:last-child {
  border: 0;
}

.quick span {
  display: block;
  font-size: 28px;
  margin-bottom: 6px;
}

.quick strong {
  display: block;
  font-size: 14px;
  color: #1e293b;
}

.quick small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  margin-top: 5px;
}

/* CONTENT SECTIONS */
.content-section {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 20px;
  margin-top: 36px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 10px;
}

.section-head h2 {
  font-size: 17px;
  margin: 0;
  color: #0867d9;
  font-weight: 700;
}

.section-head a {
  font-size: 12px;
  color: var(--blue);
  font-weight: 600;
}

.news {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.news:last-child {
  border: 0;
}

.news img {
  width: 82px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
}

.news h3 {
  font-size: 12.5px;
  line-height: 1.35;
  margin: 0 0 6px;
  color: #1e293b;
}

.news small,
.notice small,
.event small {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
}

.news em {
  font-style: normal;
  background: #eaf3ff;
  color: var(--blue);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.notice,
.event {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}

.notice:last-child,
.event:last-child {
  border: 0;
}

.notice > b,
.event > b {
  color: var(--blue);
  font-size: 24px;
  line-height: 20px;
  min-width: 50px;
  text-align: center;
}

.notice > b span,
.event > b span {
  display: block;
  font-size: 9px;
  margin-top: 5px;
  color: #667085;
}

.notice > div,
.event > div {
  padding-top: 2px;
  flex: 1;
}

.event strong {
  display: block;
  font-size: 12.5px;
  margin-bottom: 4px;
  color: #1e293b;
}

/* FEATURE BAND */
.feature-band {
  background: var(--soft);
  margin-top: 40px;
  padding: 48px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 20px;
}

.big-icon {
  font-size: 38px;
}

.feature-grid h2 {
  font-size: 28px;
  line-height: 1.25;
  margin: 8px 0;
  color: #0f172a;
}

.feature-grid p {
  color: var(--muted);
  font-size: 13.5px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.feature-card strong {
  font-size: 18px;
  color: var(--blue);
  display: block;
  margin-bottom: 8px;
}

/* GALLERY */
.gallery {
  padding: 44px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s;
}

.gallery-grid img:hover {
  transform: scale(1.03);
}

/* PPDB BANNER */
.ppdb {
  margin: 20px auto 50px;
  border-radius: 16px;
  background: linear-gradient(100deg, #072c57, #0867e8);
  color: #fff;
  padding: 34px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 30px rgba(8, 103, 232, 0.25);
}

.ppdb .eyebrow {
  font-size: 13px;
  color: #cfe2ff;
}

.ppdb h2 {
  margin: 0 0 6px;
  font-size: 26px;
}

.ppdb p {
  margin: 0;
  color: #dceaff;
  font-size: 14px;
}

/* FOOTER */
footer {
  background: #062b55;
  color: #dce8f6;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.3fr 1.2fr;
  gap: 30px;
  padding: 45px 0 35px;
}

.footer-brand img {
  width: 52px;
  float: left;
  margin-right: 12px;
}

.footer-brand h3 {
  margin: 5px 0 0;
  font-size: 16px;
  color: #fff;
}

.footer-brand p {
  font-size: 11.5px;
  margin: 4px 0 16px;
}

.footer-grid h4 {
  color: #fff;
  margin: 4px 0 14px;
  font-size: 15px;
}

.footer-grid a,
.footer-grid p {
  display: block;
  font-size: 12px;
  margin: 8px 0;
  color: #cfdbeb;
}

.social.big {
  margin: 0;
  display: flex;
}

.social.big span {
  border: 1px solid #496886;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s;
}

.social.big span:hover {
  background: var(--blue);
  border-color: var(--blue);
}

/* VISITOR COUNTER WIDGET */
.footer-visitor h4 {
  display: flex;
  align-items: center;
}

.visitor-card {
  background: rgba(4, 25, 50, 0.6);
  border: 1px solid #1c3f66;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.visitor-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: #cfdbeb;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.visitor-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.visitor-item.total {
  padding-top: 4px;
  border-top: 1px solid #234d7a;
  border-bottom: none;
}

.v-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #a0aec0;
}

.v-label i {
  font-size: 14px;
}

.v-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.v-val.highlight {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  font-size: 13px;
  font-weight: 800;
}

.copyright {
  border-top: 1px solid #23466b;
  padding: 14px 0;
  font-size: 11px;
}

.copyright .container {
  display: flex;
  justify-content: space-between;
}

/* RESPONSIVE */
@media (max-width: 1000px) {
  nav {
    gap: 10px;
  }
  .quick {
    grid-template-columns: repeat(3, 1fr);
  }
  .quick a:nth-child(3) {
    border: 0;
  }
  .content-section {
    grid-template-columns: 1fr;
  }
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-copy {
    width: 78%;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 32px, 1250px);
  }
  .topbar {
    display: none;
  }
  .header {
    height: 68px;
  }
  .brand img {
    width: 44px;
    height: 44px;
  }
  .brand strong {
    font-size: 14px;
  }
  .brand small {
    font-size: 9px;
  }
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #f1f5f9;
    color: var(--navy);
    font-size: 22px;
    transition: all 0.2s;
  }
  .menu-toggle:hover {
    background: #e2e8f0;
  }

  /* Mobile Drawer Menu */
  nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 16px;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.15);
    max-height: calc(100vh - 75px);
    overflow-y: auto;
    border-bottom: 2px solid var(--blue);
    animation: menuSlideDown 0.25s ease-out forwards;
  }

  @keyframes menuSlideDown {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  nav.open {
    display: flex;
  }

  nav a.nav-link,
  .nav-item.dropdown {
    height: auto;
    width: 100%;
    display: flex;
    border: none !important;
  }

  nav a.nav-link {
    padding: 12px 14px;
    border-radius: 8px;
    color: #334155;
    font-size: 14.5px;
    font-weight: 500;
    gap: 12px;
    align-items: center;
    transition: background 0.15s, color 0.15s;
  }

  nav a.nav-link i {
    font-size: 18px;
    color: var(--blue);
    min-width: 22px;
  }

  nav a.nav-link:hover,
  nav a.nav-link.active {
    background: #eff6ff;
    color: var(--blue);
    font-weight: 600;
  }

  /* Mobile Dropdowns */
  .nav-item.dropdown {
    flex-direction: column;
    align-items: stretch;
    border-radius: 8px;
  }

  .dropdown-toggle {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    color: #334155;
    font-size: 14.5px;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
  }

  .dropdown-toggle:hover,
  .nav-item.dropdown.active-mobile .dropdown-toggle {
    background: #f8fafc;
    color: var(--blue);
  }

  .dropdown-label {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .dropdown-label i {
    font-size: 18px;
    color: var(--blue);
    min-width: 22px;
  }

  .arrow-icon {
    font-size: 15px;
    color: #94a3b8;
    transition: transform 0.25s ease;
  }

  .nav-item.dropdown.active-mobile .arrow-icon {
    transform: rotate(180deg);
    color: var(--blue);
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: #f8fafc;
    border-left: 3px solid var(--blue);
    border-radius: 0 8px 8px 0;
    margin: 4px 0 6px 16px;
    padding: 6px;
    display: none;
    flex-direction: column;
    gap: 2px;
  }

  .nav-item.dropdown.active-mobile .dropdown-menu {
    display: flex;
  }

  .dropdown-menu a {
    padding: 9px 12px;
    font-size: 13.5px;
    color: #475569;
    gap: 10px;
    display: flex;
    align-items: center;
  }

  .dropdown-menu a i {
    font-size: 16px;
    color: #64748b;
  }

  .dropdown-menu a:hover {
    background: #e2e8f0;
    color: var(--blue);
  }

  .login {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    margin-top: 10px;
    padding: 13px !important;
    font-size: 14.5px;
    font-weight: 600;
  }

  .hero {
    height: 480px;
  }
  .hero-copy {
    width: 100%;
  }
  .hero h1 {
    font-size: 27px;
  }
  .stats {
    gap: 15px;
  }
  .quick {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 0;
  }
  .quick a {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid img {
    height: 130px;
  }
  .ppdb {
    display: block;
    padding: 24px;
  }
  .ppdb .btn {
    margin-top: 18px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .copyright .container {
    display: block;
  }
  .copyright span {
    display: block;
    margin-top: 5px;
  }
  .slider {
    display: none;
  }
}

@media (max-width: 450px) {
  .quick {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 24px;
  }
  .stats {
    flex-wrap: wrap;
  }
}

