:root {
  --primary: #1f3a8a;
  --secondary: #0ea5d7;
  --accent: #f26522;
  --ink: #0f172a;
  --muted: #475569;
  --light: #f8fafc;
  --white: #ffffff;
  --surface: #eaf4ff;
  --radius: 16px;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 20%, rgba(14, 165, 215, 0.2), transparent 35%),
    radial-gradient(circle at 85% 0%, rgba(31, 58, 138, 0.16), transparent 30%),
    var(--light);
  line-height: 1.65;
}

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

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

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(71, 85, 105, 0.15);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}

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

.logo-wrap img {
  width: 94px;
  height: 84px;
}

.logo-text {
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.2px;
}

.logo-text span {
  color: var(--secondary);
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 6px;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(14, 165, 215, 0.12);
  color: var(--primary);
}

.menu-btn {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  color: var(--primary);
  cursor: pointer;
}

.hero {
  padding: 88px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 34px;
  align-items: center;
}

.badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(31, 58, 138, 0.12);
  border-radius: 999px;
  padding: 7px 12px;
  margin-bottom: 18px;
}

.hero h1.page-hero h1 {
  font-size: clamp(2rem, 3.9vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 14px;
  color:var(--primary);
}

.page-hero h1 {
  font-size: clamp(2rem, 3.9vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 14px;
  color:white;
}

.hero p,
.page-hero p {
  font-size: 1.06rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-secondary {
  border: 1px solid rgba(71, 85, 105, 0.35);
  color: var(--ink);
  background: var(--white);
}

.hero-image-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.hero-image-card img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.float-stat {
  position: absolute;
  right: 16px;
  bottom: 16px;
  background: rgba(15, 23, 42, 0.86);
  color: var(--white);
  border-radius: 12px;
  padding: 14px;
}

.float-stat strong {
  font-size: 1.35rem;
  display: block;
  color: #86efac;
}

section {
  padding: 70px 0;
}

.section-title {
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  color: var(--primary);
  margin-bottom: 10px;
}

.section-sub {
  color: var(--muted);
  max-width: 720px;
  margin-bottom: 30px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 22px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.card h3 {
  margin-bottom: 10px;
  color: var(--primary);
}

.card p {
  color: var(--muted);
}

.services-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.services-list li {
  background: var(--white);
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 14px;
  border-radius: 12px;
  font-weight: 600;
}

.feature-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

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

.stat {
  background: linear-gradient(135deg, rgba(31, 58, 138, 0.95), rgba(14, 165, 215, 0.9));
  color: var(--white);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.55rem;
}

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

.page-hero .card {
  background: linear-gradient(110deg, rgba(31, 58, 138, 0.94), rgba(14, 165, 215, 0.88));
  color: var(--white);
}

.page-hero .section-sub,
.page-hero p {
  color: #e2e8f0;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline .item {
  border-left: 4px solid var(--secondary);
  padding: 8px 0 8px 14px;
}

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

.gallery-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.gallery-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.gallery-content {
  padding: 14px;
}

.gallery-content small {
  color: #334155;
  font-weight: 600;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  background: #fff;
}

.form-group textarea {
  min-height: 110px;
  resize: vertical;
}

.full-span {
  grid-column: 1 / -1;
}

.is-hidden {
  display: none;
}

.admin-status {
  margin: 6px 0 16px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(31, 58, 138, 0.1);
  color: var(--primary);
  font-weight: 600;
}

.admin-login {
  margin-bottom: 14px;
}

.admin-divider {
  border: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  margin: 20px 0;
}

.admin-post-list {
  display: grid;
  gap: 14px;
}

.admin-post-card {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.admin-post-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.admin-post-content {
  padding: 12px;
}

.admin-post-content h4 {
  color: var(--primary);
  margin-bottom: 4px;
}

.admin-post-content small {
  display: block;
  color: #334155;
  margin-bottom: 10px;
  font-weight: 600;
}

.admin-post-content p {
  color: var(--muted);
  margin-bottom: 12px;
}

.admin-empty {
  color: var(--muted);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.contact-cards .card {
  min-height: 190px;
}

.map-wrap iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: var(--radius);
}

footer {
  margin-top: 60px;
  padding: 28px 0;
  color: #e2e8f0;
  background: #0b1226;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: reveal 0.72s ease forwards;
}

.reveal-delay-1 { animation-delay: 0.15s; }
.reveal-delay-2 { animation-delay: 0.3s; }
.reveal-delay-3 { animation-delay: 0.45s; }

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .grid-3,
  .gallery-grid,
  .stats,
  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero-image-card img {
    height: 360px;
  }
}

@media (max-width: 760px) {
  .menu-btn {
    display: block;
  }

  .nav-links {
    position: absolute;
    right: 4%;
    top: 82px;
    width: min(320px, 92vw);
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    padding: 10px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
  }

  .nav-links.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .hero,
  .page-hero {
    padding-top: 52px;
  }

  .hero-grid,
  .grid-3,
  .gallery-grid,
  .stats,
  .services-list,
  .form-grid,
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .hero-image-card img {
    height: 300px;
  }
}

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

.hero-slider-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 430px;
  box-shadow: var(--shadow);
  background: #0b1226;
}

.hero-slider-wrap .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.7s ease, transform 1.2s ease;
}

.hero-slider-wrap .slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-slider-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.28));
  z-index: 2;
}

.hero-slider-text {
  position: absolute;
  left: clamp(16px, 5vw, 42px);
  bottom: clamp(28px, 8vw, 52px);
  max-width: min(640px, 88%);
  color: var(--white);
  z-index: 3;
}

.hero-slider-text h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.7rem);
  line-height: 1.1;
  margin-bottom: 10px;
}

.hero-slider-text p {
  margin: 0;
  color: #e2e8f0;
}

.slide-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: var(--white);
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
}

.slide-control.prev { left: 14px; }
.slide-control.next { right: 14px; }

.slide-dots {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.slide-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(226, 232, 240, 0.52);
  cursor: pointer;
}

.slide-dot.active {
  width: 26px;
  background: var(--secondary);
}

@media (max-width: 760px) {
  .hero-slider-wrap {
    min-height: 330px;
  }

  .slide-control {
    width: 38px;
    height: 38px;
    font-size: 1.6rem;
  }

  .slide-dots {
    left: 16px;
    right: auto;
  }
}
