@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #0a5ba8;
  --primary-dark: #053766;
  --accent: #f4a300;
  --accent-soft: #fdd9a0;
  --bg: #f3f6fb;
  --text: #1f2b3d;
  --muted: #5c6880;
  --border: rgba(15, 76, 129, 0.1);
  --section-radius: 32px;
  --shadow: 0 15px 45px rgba(9, 65, 129, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1200px, 90vw);
  margin: 0 auto;
}

header {
  background: white;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: var(--shadow);
}

.top-banner {
  background: linear-gradient(90deg, #ff8c42, #f4a300, #2c9f45);
  color: white;
  text-align: center;
  padding: 0.35rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand img {
  width: 52px;
}

.brand h1 {
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 600;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1rem;
}

nav a {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-weight: 500;
  color: var(--primary);
  transition: background 0.2s ease, color 0.2s ease;
}

nav a:hover,
nav a.active {
  background: rgba(10, 91, 168, 0.1);
  color: var(--primary-dark);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: white;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 999px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

body.nav-open {
  overflow: hidden;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--primary);
  color: white;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(10, 91, 168, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.secondary {
  background: white;
  color: var(--primary);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(10, 91, 168, 0.35);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
  padding: 4rem 0 2rem;
}

.hero-text h2 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
}

.hero-text p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--primary-dark);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.hero-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-stats div {
  background: white;
  padding: 1rem 1.2rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
  min-width: 140px;
}

.hero-stats strong {
  font-size: 1.6rem;
}

.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: white;
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.section {
  margin: 3rem 0;
}

.section h3 {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

.section p.section-intro {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.announcement {
  padding: 1.2rem;
  background: white;
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  box-shadow: var(--shadow);
  border-left: 6px solid var(--accent);
}

.announcement time {
  color: var(--muted);
}

.news-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.news-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: white;
  border-radius: 18px;
  border: 1px solid var(--border);
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.quick-links a {
  padding: 1rem 1.2rem;
  border-radius: 18px;
  background: white;
  border: 1px solid var(--border);
  font-weight: 600;
  color: var(--primary-dark);
  transition: transform 0.2s ease, border 0.2s ease;
}

.quick-links a:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  border-radius: 18px;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  display: block;
  box-shadow: var(--shadow);
}

.gallery-thumb {
  border: none;
  padding: 0;
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: zoom-in;
  display: block;
}

.gallery-thumb img {
  border-radius: 0;
  box-shadow: none;
}

#principal {
  text-align: center;
}

.principal-card {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 13, 34, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1000;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__content {
  position: relative;
  max-width: min(900px, 90vw);
  width: 100%;
}

.lightbox__img {
  width: 100%;
  max-height: 85vh;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.lightbox__caption {
  margin-top: 0.8rem;
  color: white;
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: -12px;
  right: -12px;
  border: none;
  background: white;
  color: var(--primary-dark);
  font-size: 1.4rem;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

body.lightbox-open {
  overflow: hidden;
}

.timeline {
  border-left: 2px solid var(--border);
  padding-left: 1.5rem;
}

.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  left: -1.65rem;
  top: 0.35rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.table th,
.table td {
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.table th {
  background: rgba(10, 91, 168, 0.08);
  font-weight: 600;
  color: var(--primary-dark);
}

.table tr:last-child td {
  border-bottom: none;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.profile-card {
  background: white;
  border-radius: 22px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.profile-card img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 4px solid rgba(10, 91, 168, 0.1);
}

.profile-card h4 {
  margin-bottom: 0.2rem;
}

.profile-card span {
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.contact-card,
.form-card {
  background: white;
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

form {
  display: grid;
  gap: 1rem;
}

label {
  font-weight: 600;
  color: var(--primary-dark);
}

input,
textarea,
select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #f9fbff;
  font-family: inherit;
}

textarea {
  resize: vertical;
  min-height: 140px;
}

footer {
  background: var(--primary-dark);
  color: white;
  margin-top: 4rem;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  padding: 2.5rem 0;
}

.footer-top h4 {
  margin-bottom: 0.8rem;
}

.footer-top ul {
  list-style: none;
  display: grid;
  gap: 0.4rem;
  font-size: 0.95rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1rem 0;
  text-align: center;
  font-size: 0.9rem;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.info-badge {
  padding: 1rem 1.2rem;
  border-radius: 16px;
  background: white;
  border: 1px solid var(--border);
  color: var(--primary-dark);
  font-weight: 600;
}

.download-card {
  background: white;
  border-radius: 20px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.download-card span {
  font-weight: 600;
}

@media (max-width: 1024px) {
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(6, 19, 46, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9;
  }

  body.nav-open::before {
    opacity: 1;
    pointer-events: auto;
  }

  .navbar {
    position: relative;
    z-index: 10;
  }

  .nav-toggle {
    display: inline-flex;
  }

  nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 80vw);
    background: white;
    padding: 1.8rem 1.5rem;
    box-shadow: -20px 0 60px rgba(9, 65, 129, 0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    z-index: 11;
  }

  body.nav-open nav {
    transform: translateX(0);
  }

  nav ul {
    flex-direction: column;
    width: 100%;
    gap: 0.4rem;
  }

  nav a {
    width: 100%;
    font-size: 1.05rem;
    padding: 0.7rem 1rem;
  }

  .announcement,
  .news-list li {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: 2.5rem;
  }
}

/* Carousel styles */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: 100%;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  border: none;
  color: var(--primary-dark);
  font-size: 1.8rem;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  z-index: 2;
}

.carousel-btn:hover {
  background: white;
  color: var(--primary);
}

.carousel-btn.prev {
  left: 1rem;
}

.carousel-btn.next {
  right: 1rem;
}

.carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 2;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background 0.3s ease;
}

.dot.active {
  background: white;
}
