:root {
  --navy-deep: #002855;
  --navy-mid: #003b73;
  --ocean-blue: #005eb8;
  --aqua-bright: #00a9e0;
  --aqua-glow: #5bc2e7;
  --ice-bg: #f2f7fc;
  --white: #ffffff;
  --text-main: #0f2537;
  --text-muted: #4a6278;
  --border-light: #d3e3f3;
  --accent-coral: #ff6b35;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 4px 14px rgba(0, 40, 85, 0.07);
  --shadow-md: 0 12px 30px rgba(0, 94, 184, 0.14);
  --shadow-lg: 0 20px 45px rgba(0, 40, 85, 0.2);
  --transition: 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background: var(--ice-bg) url('/images/bg.webp') center / cover fixed no-repeat;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', 'Inter', sans-serif;
  color: var(--navy-deep);
  line-height: 1.2;
  margin-top: 0;
}

a {
  color: var(--ocean-blue);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--aqua-bright);
}

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

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

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(0, 40, 85, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--aqua-bright);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  padding: 6px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--aqua-bright), var(--ocean-blue));
  display: grid;
  place-items: center;
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0, 169, 224, 0.4);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.7rem;
  font-size: 1.2rem;
  cursor: pointer;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  background: rgba(0, 180, 216, 0.22);
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-mid) 48%, var(--ocean-blue) 100%);
  color: var(--white);
  padding: 4.5rem 0 5.5rem;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 48px;
  background: var(--ice-bg);
  clip-path: polygon(0 65%, 25% 25%, 55% 70%, 80% 30%, 100% 60%, 100% 100%, 0 100%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(0, 180, 216, 0.2);
  border: 1px solid rgba(72, 202, 228, 0.45);
  color: var(--aqua-glow);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  font-weight: 800;
  margin-bottom: 1rem;
  max-width: 18ch;
}

.hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.12rem;
  max-width: 62ch;
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.45rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--aqua-bright), var(--ocean-blue));
  color: var(--white);
  box-shadow: 0 8px 20px rgba(0, 180, 216, 0.35);
}

.btn-primary:hover {
  color: var(--white);
  box-shadow: 0 12px 26px rgba(0, 180, 216, 0.48);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

/* Page Header (Subpages) */
.page-header {
  background: linear-gradient(135deg, var(--navy-deep), var(--ocean-blue));
  color: var(--white);
  padding: 3rem 0 3.8rem;
  position: relative;
}

.page-header::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 32px;
  background: var(--ice-bg);
  clip-path: polygon(0 70%, 35% 20%, 70% 75%, 100% 35%, 100% 100%, 0 100%);
}

.page-header h1 {
  color: var(--white);
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  margin-bottom: 0.4rem;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  color: var(--aqua-glow);
  font-size: 0.92rem;
  font-weight: 600;
}

.badge {
  display: inline-block;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(0, 180, 216, 0.15);
  color: var(--ocean-blue);
}

.page-header .badge {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

/* Main Content */
.main-section {
  padding: 2.5rem 0 4.5rem;
}

.content-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.8rem);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow-x: auto;
}

.content-card img {
  border-radius: var(--radius-md);
  margin: 1.4rem auto;
  box-shadow: var(--shadow-sm);
}

.content-card iframe,
.content-card video {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: var(--radius-md);
  border: none;
  margin: 1.4rem 0;
  background: #000;
}

.content-card pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: var(--ice-bg);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

/* Home Custom Layout (clean, Elementor-free) */
.home-intro h2 {
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  color: var(--navy-deep);
  margin-bottom: 0.9rem;
}

.home-split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2rem;
  align-items: start;
  margin: 2rem 0 1.75rem;
}

.home-news-box h3 {
  font-size: 1.18rem;
  color: var(--navy-mid);
  margin-bottom: 0.85rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid var(--aqua-bright);
}

.news-headline-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.news-headline-list li {
  position: relative;
  padding-left: 1.1rem;
  line-height: 1.45;
}

.news-headline-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--aqua-bright);
  font-weight: 800;
  font-size: 1.1rem;
}

.news-headline-list a {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.94rem;
}

.news-headline-list a:hover {
  color: var(--ocean-blue);
}

.video-showcase video {
  margin: 0;
  box-shadow: var(--shadow-md);
}

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}

.topic-tags-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 0.25rem;
}

.topic-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--ice-bg);
  border: 1px solid var(--border-light);
  color: var(--navy-mid);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
}

.topic-tag:hover {
  background: var(--ocean-blue);
  border-color: var(--ocean-blue);
  color: var(--white);
}

@media (max-width: 860px) {
  .home-split {
    grid-template-columns: 1fr;
  }
}

/* Grid & Cards */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  margin-bottom: 1.8rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: 1.35rem 1.8rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.section-head h2 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 1.5rem;
  width: 100%;
}

.cards-grid > *,
.gallery-grid > * {
  min-width: 0;
}

.post-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.post-card-thumb {
  height: 190px;
  background: linear-gradient(135deg, var(--navy-mid), var(--ocean-blue));
  overflow: hidden;
  position: relative;
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card:hover .post-card-thumb img {
  transform: scale(1.05);
}

.post-card-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.post-card h3 {
  font-size: 1.12rem;
  margin-bottom: 0.65rem;
}

.post-card h3 a {
  color: var(--navy-deep);
}

.post-card h3 a:hover {
  color: var(--ocean-blue);
}

.post-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin: 0 0 1.1rem;
  flex: 1;
}

.read-more {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ocean-blue);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.8rem;
  background: var(--white);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter-pill {
  border: 1px solid var(--border-light);
  background: var(--ice-bg);
  color: var(--text-main);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-pill.active,
.filter-pill:hover {
  background: var(--ocean-blue);
  color: var(--white);
  border-color: var(--ocean-blue);
}

.search-input {
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  font-family: inherit;
  font-size: 0.92rem;
  min-width: 230px;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--navy-mid);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(3, 25, 38, 0.92);
  display: none;
  place-items: center;
  z-index: 2000;
  padding: 1.5rem;
}

.lightbox.open {
  display: grid;
}

.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
}

/* Locations Map & Directory */
.locations-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin: 1.2rem 0;
}

.locations-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.locations-map {
  width: 100%;
  min-height: 520px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  z-index: 1;
}

.locations-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.location-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(3, 25, 38, 0.04);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.location-card:hover {
  border-color: var(--aqua-glow);
  border-left-color: var(--aqua-bright);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.location-card.active {
  background: linear-gradient(135deg, #ffffff 0%, #eef8fd 100%);
  border-color: var(--aqua-bright);
  border-left-color: var(--ocean-blue);
  box-shadow: var(--shadow-md);
}

.location-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.location-city {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ocean-blue);
  background: rgba(0, 180, 216, 0.12);
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.location-pin-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.location-card h3 {
  font-size: 1.06rem;
  margin: 0 0 0.45rem;
  color: var(--navy-deep);
}

.location-meta-list {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 0.7rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.location-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.location-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: var(--ice-bg);
  border: 1px solid var(--border-light);
  color: var(--navy-deep);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.location-pill:hover {
  background: var(--ocean-blue);
  border-color: var(--ocean-blue);
  color: var(--white);
}

@media (max-width: 900px) {
  .locations-layout {
    grid-template-columns: 1fr;
  }

  .locations-map {
    min-height: 380px;
  }

  .locations-list {
    max-height: none;
  }
}

/* AdSense Container */
.ad-container {
  margin: 2.2rem auto 0;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  overflow: hidden;
}

.ad-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.78);
  padding: 3rem 0 2rem;
  border-top: 3px solid var(--aqua-bright);
}

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

.footer-grid h4 {
  color: var(--white);
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-links a:hover {
  color: var(--aqua-glow);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.2rem;
  font-size: 0.86rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 4%;
    border-bottom: 1px solid rgba(72, 202, 228, 0.2);
  }

  .main-nav.open {
    display: flex;
  }
}
