/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f9f9f9;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}
section[id] {
  scroll-margin-top: 80px;
}

/* ===== Header ===== */
header {
  background: #004080;
  color: white;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}
.logo img {
  width: 65px;
  height: auto;
  border-radius: 10px;
}
.site-title h1 {
  font-size: 1.2rem;
  margin-bottom: 2px;
}
.site-title p {
  font-size: 0.8rem;
  opacity: 0.9;
}

/* ===== Navigation ===== */
nav {
  display: flex;
  align-items: center;
  gap: 15px;
}
nav a {
  color: white;
  text-decoration: none;
  padding: 8px 14px;
  transition: background 0.3s;
}
nav a:hover {
  background: #0066cc;
  border-radius: 4px;
}
nav .btn {
  background: #ffcc00;
  color: #333;
  border-radius: 4px;
  font-weight: bold;
}
nav .btn:hover {
  background: #ffdb4d;
}

/* ===== Hamburger ===== */
.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: white;
}

/* ===== Banner Slider ===== */
.slider {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
}
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slide.active {
  opacity: 1;
  z-index: 1;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.caption {
  position: absolute;
  bottom: 50px;
  left: 50px;
  color: white;
  font-size: 32px;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.4);
  padding: 10px 20px;
  border-radius: 6px;
  opacity: 0;
}
.caption.active {
  opacity: 1;
}
.fade-left {
  animation: fadeLeft 1s forwards;
}
.fade-bottom {
  animation: fadeBottom 1s forwards;
}
.fade-zoom {
  animation: fadeZoom 1s forwards;
}
@keyframes fadeLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fadeBottom {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeZoom {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== Sections ===== */
.section-white,
.section-gray {
  padding: 60px 20px;
  text-align: center;
}
.section-white {
  background: #fff;
}
.section-gray {
  background: #f1f1f1;
}
.section-white h2,
.section-gray h2 {
  margin-bottom: 20px;
  color: #004080;
}
ul {
  list-style: none;
  padding: 0;
}
ul li {
  margin: 8px 0;
  font-size: 1.1rem;
}

/* ===== Gallery Carousel ===== */
.carousel {
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: auto;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}
.carousel-slide {
  min-width: 100%;
  height: 400px;
  object-fit: cover;
}
.carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 24px;
}
.carousel .prev {
  left: 10px;
}
.carousel .next {
  right: 10px;
}

/* ===== Forms ===== */
form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
form input,
form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
form textarea {
  height: 120px;
  resize: vertical;
}
form button {
  padding: 12px;
  background: #004080;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}
form button:hover {
  background: #0066cc;
}

/* ===== Footer ===== */
footer {
  background: #004080;
  color: white;
  text-align: center;
  padding: 15px 0;
  margin-top: 20px;
}

/* ===== Back-to-Top Button ===== */
#back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: none;
  background: #004080;
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  z-index: 100;
}
#back-to-top:hover {
  background: #0066cc;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .hamburger {
    display: block;
    position: absolute;
    top: 22px;
    right: 20px;
    z-index: 10001;
  }

  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 64, 128, 0.95);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    display: none;
    z-index: 9999;
  }

  nav.active {
    display: flex;
  }

  nav a,
  nav .btn {
    width: 80%;
    text-align: center;
    padding: 15px 0;
    font-size: 1.3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  }

  .slider {
    height: 300px;
  }
  .caption {
    font-size: 1.2rem;
    bottom: 20px;
    left: 20px;
  }
  .carousel-slide {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .caption {
    left: 50%;
    transform: translateX(-50%);
    bottom: 15px;
    font-size: 1rem;
  }

  nav {
    padding-top: 60px;
  }

  nav a,
  nav .btn {
    padding: 10px 16px;
    font-size: 1rem;
  }
}
