/*
 * Theme CSS bundle
 * Source: astro-frontend/src/styles/global.css + inline styles extracted from .astro
 */

/* ==========================================
   Global Styles (from Astro)
   ========================================== */

:root {
  --primaryBlue: #1b73a6;
  --primaryGreen: #33b44a;

  --blueLight: #e8f4fa;
  --blueMedium: #3d8fc0;
  --blueDark: #145a82;

  --greenLight: #e8f7eb;
  --greenMedium: #4cc562;
  --greenDark: #2a9a3e;

  --gray50: #f9fafb;
  --gray100: #f3f4f6;
  --gray200: #e5e7eb;
  --gray300: #d1d5db;
  --gray400: #9ca3af;
  --gray500: #6b7280;
  --gray600: #4b5563;
  --gray700: #374151;
  --gray800: #1f2937;
  --gray900: #111827;

  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;

  --fontPrimary: 'Praktika Extended', 'Inter', system-ui, -apple-system, sans-serif;
  --fontBody: 'Inter', system-ui, -apple-system, sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  --container-max: 1280px;
  --container-padding: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--fontBody);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray800);
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--fontPrimary);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray900);
  margin-bottom: 0.5em;
}

h1 {
  font-size: 2.75rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primaryBlue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--blueDark);
}

strong, b {
  font-weight: 600;
}

small {
  font-size: 0.875rem;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section {
  padding: var(--space-16) 0;
}

.section-sm {
  padding: var(--space-10) 0;
}

.section-lg {
  padding: var(--space-20) 0;
}

.page-hero h1 {
  font-family: var(--fontPrimary);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding-top: 140px !important;
  padding-bottom: 50px !important;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem) !important;
  line-height: 1.15 !important;
  margin-bottom: 16px !important;
}

.page-hero p {
  font-size: 1.1rem !important;
  line-height: 1.6 !important;
  opacity: 0.9 !important;
  margin: 0 !important;
  max-width: none !important;
}

.page-hero .hero-overlay {
  position: absolute !important;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(46, 125, 50, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(26, 82, 118, 0.4) 0%, transparent 50%);
  z-index: 1;
}

.page-hero .hero-pattern {
  position: absolute !important;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.15));
  z-index: 1;
}

.page-hero .hero-content {
  position: relative;
  z-index: 2;
}

.page-hero .hero-eyebrow {
  display: inline-block;
  margin-bottom: 24px;
  padding: 8px 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-family: var(--fontBody);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.page-hero p {
  font-family: var(--fontBody);
  font-size: 1.1rem;
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 28px;
  font-family: var(--fontBody);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background-color: var(--primaryBlue);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--blueDark);
  color: #fff;
}

.btn-secondary {
  background-color: var(--primaryGreen);
  color: #fff;
}

.btn-secondary:hover {
  background-color: var(--greenDark);
  color: #fff;
}

.btn-outline {
  background-color: transparent;
  color: var(--primaryBlue);
  border: 2px solid var(--primaryBlue);
}

.btn-outline:hover {
  background-color: var(--primaryBlue);
  color: #fff;
}

.btn-ghost {
  background-color: transparent;
  color: var(--primaryBlue);
}

.btn-ghost:hover {
  background-color: var(--blueLight);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.125rem;
}

input,
select,
textarea {
  font-family: var(--fontBody);
  font-size: 1rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="search"],
select,
textarea {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background-color: #fff;
  border: 1px solid var(--gray300);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primaryBlue);
  box-shadow: 0 0 0 3px rgba(27, 115, 166, 0.15);
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--space-2);
}

.card {
  background-color: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-lg);
}

.card-body {
  padding: var(--space-6);
}

/* Utilities */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.text-primary { color: var(--primaryBlue); }
.text-secondary { color: var(--primaryGreen); }
.text-muted { color: var(--gray500); }
.text-white { color: #fff; }

.bg-primary { background-color: var(--primaryBlue); }
.bg-secondary { background-color: var(--primaryGreen); }
.bg-light { background-color: var(--gray100); }
.bg-dark { background-color: var(--gray900); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 1024px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.375rem; }

  .section {
    padding: var(--space-12) 0;
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 16px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .section {
    padding: var(--space-10) 0;
  }

  .btn {
    padding: 12px 24px;
  }

  .hide-mobile { display: none !important; }
}

@media (max-width: 640px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.375rem; }
}

/* ==========================================
   Header + Sidebar (from Astro components)
   ========================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.header-transparent {
  background: transparent;
  box-shadow: none;
}

.header-transparent.scrolled {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
  gap: 40px;
}

.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo img {
  height: 120px;
  width: auto;
  transition: opacity 0.2s;
}

.logo:hover img {
  opacity: 0.85;
}

.logo-white { display: block; }
.logo-dark { display: none; }

.site-header:not(.header-transparent) .logo-white { display: none; }
.site-header:not(.header-transparent) .logo-dark { display: block; }

.header-transparent.scrolled .logo-white { display: none; }
.header-transparent.scrolled .logo-dark { display: block; }

.main-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link-arrow {
  display: none;
  margin-left: auto;
  color: #8a96a3;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.nav-link:hover {
  color: var(--primaryBlue);
  background: rgba(26, 82, 118, 0.05);
}

.header-transparent .nav-link { color: #fff; }

.header-transparent .nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.header-transparent.scrolled .nav-link { color: #333; }

.header-transparent.scrolled .nav-link:hover {
  color: var(--primaryBlue);
  background: rgba(26, 82, 118, 0.05);
}

.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  transition: background 0.2s;
}

.mobile-menu-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.header-transparent .mobile-menu-toggle { color: #fff; }
.header-transparent.scrolled .mobile-menu-toggle { color: #333; }

.hamburger {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  position: relative;
  border-radius: 2px;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }

.mobile-menu-toggle.is-active .hamburger { background: transparent; }
.mobile-menu-toggle.is-active .hamburger::before { top: 0; transform: rotate(45deg); }
.mobile-menu-toggle.is-active .hamburger::after { bottom: 0; transform: rotate(-45deg); }

@media (max-width: 1280px) {
  .nav-link {
    padding: 10px 10px;
    font-size: 0.85rem;
  }

  .nav-list {
    gap: 2px;
  }
}

@media (max-width: 1024px) {
  .header-inner { height: 70px; }

  .logo img { height: 45px; }

  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    justify-content: flex-start;
  }

  .main-nav.is-open { transform: translateX(0); }

  .nav-list {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    width: 100%;
  }

  .nav-link {
    padding: 16px 0;
    border-bottom: 1px solid #eee;
    color: #333;
    border-radius: 0;
    font-size: 1rem;
    justify-content: space-between;
  }

  .nav-link:hover { background: transparent; }

  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-link-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Sidebar overlay/panels */
.sidebar-overlay {
  position: fixed;
  top: 100px;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 900;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.sidebar-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.sidebar-panel {
  position: fixed;
  top: 100px;
  left: 0;
  bottom: 0;
  z-index: 950;
  width: 300px;
  max-width: 85vw;
  background: #fff;
  box-shadow: 4px 4px 24px rgba(0, 0, 0, 0.12);
  transform: translateX(-100%);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sidebar-panel.is-open {
  transform: translateX(0);
}

.sidebar-panel-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 24px 22px 20px;
  border-bottom: 1px solid #e9edf2;
}

.sidebar-panel-header h2 {
  margin: 0;
  font-size: 1.35rem;
  color: #17324d;
  font-weight: 700;
  line-height: 1.2;
}

.sidebar-back-btn {
  display: none;
  align-items: center;
  gap: 8px;
  border: none;
  background: none;
  color: #516577;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0;
}

.sidebar-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: #f1f5f9;
  border-radius: 8px;
  cursor: pointer;
  color: #4a5a6a;
  transition: all 0.15s ease;
}

.sidebar-close-btn:hover {
  background: #e2e8f0;
  color: #1a2a3a;
}

.sidebar-panel-nav {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
}

.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  color: #2f4255;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.12s ease-out;
  border-left: 3px solid transparent;
}

.sidebar-nav-link:hover {
  background: #eef5fb;
  color: var(--primaryBlue);
  border-left-color: var(--primaryBlue);
}

.sidebar-nav-link.is-active {
  background: linear-gradient(90deg, rgba(26, 82, 118, 0.08), transparent);
  color: var(--primaryBlue);
  border-left-color: var(--primaryBlue);
  font-weight: 600;
}

.sidebar-nav-link svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.sidebar-nav-link.is-active svg,
.sidebar-nav-link:hover svg {
  opacity: 1;
}

@media (max-width: 1024px) {
  .sidebar-overlay,
  .sidebar-panel {
    top: 70px;
  }

  .sidebar-panel {
    left: auto;
    right: 0;
    transform: translateX(100%);
    left: 0;
    width: 100vw;
    max-width: 100vw;
    box-shadow: none;
  }

  .sidebar-panel.is-open {
    transform: translateX(0);
  }

  .sidebar-panel-header {
    padding: 18px;
  }

  .sidebar-back-btn {
    display: inline-flex;
  }
}

/* ==========================================
   Footer (from Astro Footer)
   ========================================== */

.site-footer {
  background: #1a1a1a;
  color: #fff;
  padding: 60px 0 30px;
  margin-top: auto;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo img {
  height: 100px;
  width: auto;
  margin-bottom: 20px;
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.social-links a:hover {
  color: var(--primaryGreen);
}

.footer-nav h4,
.footer-contact h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #fff;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 12px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-nav a:hover {
  color: #fff;
}

.footer-contact p,
.footer-contact a {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.footer-contact a:hover {
  color: var(--primaryGreen);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.legal-links {
  display: flex;
  gap: 24px;
}

.legal-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.legal-links a:hover {
  color: #fff;
}

@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-links {
    flex-direction: column;
    gap: 12px;
  }
}

/* ==========================================
   Hero Carousel (from Astro HeroCarousel)
   ========================================== */

.hero-carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: #0a2342;
}

.hero-carousel__slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.2s;
  z-index: 1;
}

.hero-carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-carousel__slide-bg {
  position: absolute;
  inset: 0;
}

.hero-carousel__slide-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-carousel__slide.is-active .hero-carousel__slide-bg img {
  transform: scale(1.05);
}

.hero-carousel__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-carousel__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
  padding-bottom: 120px;
  color: #fff;
}

.hero-carousel__category {
  display: inline-block;
  font-family: var(--fontBody);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease 0s, transform 0.4s ease 0s;
}

.hero-carousel__slide.is-active .hero-carousel__category {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.hero-carousel__title {
  font-family: var(--fontPrimary);
  font-size: clamp(2.5rem, 5vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  max-width: 700px;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.4s ease 0s, transform 0.4s ease 0s;
}

.hero-carousel__slide.is-active .hero-carousel__title {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease 0.5s, transform 0.8s ease 0.5s;
}

.hero-carousel__cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  font-family: var(--fontBody);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease 0s, transform 0.4s ease 0s, gap 0.3s ease;
}

.hero-carousel__slide.is-active .hero-carousel__cta {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease 0.7s, transform 0.8s ease 0.7s, gap 0.3s ease;
}

.hero-carousel__cta:hover {
  gap: 24px;
  color: #fff;
}

.hero-carousel__cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.hero-carousel__cta:hover .hero-carousel__cta-icon {
  border-color: #fff;
  background-color: rgba(255, 255, 255, 0.15);
}

.hero-carousel__nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  gap: 24px;
  padding-bottom: 40px;
}

.hero-carousel__nav-item {
  flex: 1;
  background: none;
  border: none;
  cursor: pointer;
  padding: 16px 0;
  text-align: left;
  position: relative;
  outline: none;
}

.hero-carousel__nav-progress {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 12px;
}

.hero-carousel__nav-bar {
  width: 0%;
  height: 100%;
  background: var(--primaryGreen);
  border-radius: 2px;
  transition: none;
}

.hero-carousel__nav-item.is-active .hero-carousel__nav-bar {
  animation: heroProgressFill 6s linear forwards;
}

@keyframes heroProgressFill {
  from { width: 0%; }
  to { width: 100%; }
}

.hero-carousel__nav-label {
  font-family: var(--fontBody);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s ease;
  display: block;
}

.hero-carousel__nav-item.is-active .hero-carousel__nav-label,
.hero-carousel__nav-item:hover .hero-carousel__nav-label {
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 1024px) {
  .hero-carousel__content { padding-bottom: 140px; }
  .hero-carousel__title { font-size: clamp(2rem, 5vw, 3rem); max-width: 550px; }
}

@media (max-width: 768px) {
  .hero-carousel { min-height: 100svh; }
  .hero-carousel__content { padding-bottom: 160px; justify-content: flex-end; }
  .hero-carousel__title { font-size: clamp(1.75rem, 6vw, 2.5rem); max-width: 100%; }
  .hero-carousel__nav { flex-direction: column; gap: 8px; padding-bottom: 24px; }
  .hero-carousel__nav-item { padding: 8px 0; }
  .hero-carousel__nav-progress { margin-bottom: 6px; }
  .hero-carousel__nav-label { font-size: 0.65rem; }
  .hero-carousel__cta-icon { width: 40px; height: 40px; }
  .hero-carousel__cta-icon svg { width: 18px; height: 18px; }
}

/* ==========================================
   Home + News subscribe components (from Astro pages)
   ========================================== */

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.intro-text {
  margin-bottom: 32px;
  color: #666;
  line-height: 1.8;
}

.intro-image img {
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.latest-investor-presentation {
  background: #f6f8fb;
}

.investor-news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.presentation-feature-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(7, 34, 58, 0.12);
}

.presentation-feature-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.presentation-feature-image {
  position: relative;
  min-height: 410px;
  background: linear-gradient(180deg, rgba(10, 20, 30, 0.12) 38%, rgba(4, 14, 24, 0.75) 100%), url('../images/MGH%20tangki.jpeg') center center / cover no-repeat;
}

.presentation-feature-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 28px;
  font-size: 2rem;
  line-height: 1;
  font-family: var(--fontPrimary);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, rgba(3, 11, 19, 0) 0%, rgba(3, 11, 19, 0.86) 100%);
}

.presentation-feature-content {
  padding: 18px 28px 26px;
  background: #fff;
}

.presentation-feature-content h3 {
  margin: 0;
  line-height: 1.4;
  font-size: 1.45rem;
  color: #163955;
}

.latest-news-panel {
  background: #fff;
  border: 1px solid rgba(20, 72, 106, 0.1);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(7, 34, 58, 0.08);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.latest-news-panel h3 {
  margin-bottom: 16px;
  font-size: 1.35rem;
  color: #173a57;
}

.latest-news-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}

.latest-news-item {
  border-radius: 8px;
  border: 1px solid #d6e4f0;
  padding: 16px 18px;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
  min-height: 112px;
}

.latest-news-item h4 {
  margin: 0;
  line-height: 1.45;
  font-size: 1.03rem;
}

.latest-news-item h4 a {
  color: #163955;
}

.latest-news-item h4 a:hover {
  color: var(--primaryBlue);
}

.news-date {
  font-size: 0.875rem;
  color: #1f6695;
  font-weight: 700;
  margin-bottom: 10px;
}

.mailing-list-strip {
  background: #f6f8fb;
  padding: 52px 0;
}

.mailing-list-content {
  border-radius: 14px;
  border: 1px solid rgba(124, 166, 202, 0.42);
  padding: 28px;
  background: linear-gradient(135deg, rgba(20, 65, 99, 0.95) 0%, rgba(16, 48, 76, 0.95) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.mailing-list-content p {
  color: #d9e9f7;
  margin: 0;
  font-size: 1rem;
}

.mailing-list-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 clamp(260px, 34vw, 560px);
  width: clamp(260px, 34vw, 560px);
  max-width: 100%;
  min-height: 56px;
  padding: 14px 26px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3c86bf 0%, #5ba5df 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1.94rem;
  letter-spacing: 0.01em;
  text-align: center;
  line-height: 1.35;
  border: 0;
  cursor: pointer;
}

.mailing-list-button:hover {
  background: linear-gradient(90deg, #2f75a8 0%, #4d97d0 100%);
  color: #fff;
}

.subscribe-modal[hidden] { display: none; }

.subscribe-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.subscribe-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.subscribe-modal-content {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 380px;
  border-radius: 10px;
  padding: 24px 24px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

.subscribe-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 2rem;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
}

.subscribe-modal-content h3 {
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.2;
  color: #2f3b4b;
}

.subscribe-toast[hidden] { display: none; }

.subscribe-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1100;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  width: min(92vw, 380px);
  background: #ffffff;
  border: 1px solid #c9e9d3;
  border-left: 5px solid #1fa260;
  border-radius: 10px;
  box-shadow: 0 12px 26px rgba(26, 40, 55, 0.18);
  padding: 14px 14px 12px;
  animation: toast-in 0.25s ease-out;
}

.subscribe-toast-body strong {
  display: block;
  color: #0d7a45;
  font-size: 15px;
  margin-bottom: 4px;
}

.subscribe-toast-body p {
  margin: 0;
  color: #2d3e56;
  font-size: 14px;
  line-height: 1.45;
}

.subscribe-toast-close {
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 24px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.subscribe-form {
  display: grid;
  gap: 10px;
}

.subscribe-form label {
  color: #4a5c78;
  font-weight: 700;
  font-size: 18px;
  margin-top: 6px;
}

.subscribe-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #a7b0be;
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 16px;
}

.subscribe-submit {
  margin-top: 10px;
  justify-self: end;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(180deg, #38a7da 0%, #2b90c7 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  padding: 10px 28px;
  cursor: pointer;
}

.subscribe-privacy {
  text-align: center;
  color: #667085;
  margin-top: 20px;
  margin-bottom: 0;
}

.subscribe-privacy a { color: #0081c9; }

.cta {
  background: linear-gradient(135deg, #0a3d2e 0%, #1a5276 50%, #145a82 100%);
  color: #fff;
  text-align: center;
}

.cta h2 {
  color: #fff;
  margin-bottom: 16px;
}

.cta p {
  opacity: 0.9;
  margin-bottom: 32px;
  font-size: 1.1rem;
}

.cta .btn-secondary {
  background: #fff;
  color: var(--primaryBlue);
}

.cta .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* News page layout */
.press-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 48px;
  align-items: start;
}

.year-group { margin-bottom: 40px; }

.year-group h2 {
  font-size: 2rem;
  color: #3b4a59;
  margin-bottom: 16px;
}

.press-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.press-item {
  display: grid;
  gap: 6px;
}

.press-date {
  color: #666;
  font-weight: 700;
}

.press-item a {
  color: var(--primaryBlue);
  font-size: 1.1rem;
  line-height: 1.5;
  text-decoration: none;
}

.press-item a:hover { text-decoration: underline; }

.no-results {
  text-align: left;
  color: #666;
  padding: 20px 0;
}

.latest-news-box {
  background: transparent;
  border: 0;
  padding: 0;
}

.latest-news-card {
  background: #fff;
  border: 1px solid #d9d9d9;
  padding: 24px;
  box-shadow: 0 14px 28px rgba(26, 40, 55, 0.08);
}

.latest-news-box h3 {
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 2rem;
  line-height: 1.1;
  color: #1f2a37;
  font-weight: 500;
}

.latest-news-link {
  width: 100%;
  display: block;
  text-align: center;
  border: 2px solid #0072bc;
  color: #005ea3;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  font-size: 0.96rem;
  line-height: 1.4;
  text-decoration: none;
  padding: 18px 16px;
  background: #fff;
  margin-bottom: 22px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.latest-news-link:hover,
.latest-news-link:focus-visible {
  background: #0072bc;
  color: #fff;
}

.latest-news-button {
  cursor: pointer;
  font-family: inherit;
}

@media (max-width: 1100px) {
  .press-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .latest-news-box { max-width: 620px; }

  .latest-news-card { padding: 22px; }
}

@media (max-width: 1024px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .investor-news-layout { grid-template-columns: 1fr; }
  .presentation-feature-image { min-height: 330px; }

  .mailing-list-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .section { padding: 60px 0; }

  .presentation-feature-content,
  .latest-news-panel,
  .mailing-list-content {
    padding: 24px;
  }

  .presentation-feature-image { min-height: 270px; }

  .presentation-feature-label {
    font-size: 1.4rem;
    padding: 14px 18px;
  }

  .mailing-list-button {
    width: 100%;
    border-radius: 14px;
    padding: 14px 16px;
  }

  .subscribe-modal-content {
    max-width: 340px;
    padding: 22px 18px 18px;
  }

  .subscribe-toast {
    right: 14px;
    bottom: 14px;
    width: min(94vw, 340px);
    padding: 12px;
  }

  .subscribe-form label { font-size: 17px; }

  .year-group h2 { font-size: 1.6rem; }

  .latest-news-box h3 { font-size: 1.7rem; }

  .latest-news-link {
    letter-spacing: 0.1em;
    font-size: 0.9rem;
  }
}

/* ==========================================
   Simple theme-specific additions
   ========================================== */

#main-content {
  padding-top: 100px;
}

.site-header.header-transparent ~ #main-content {
  padding-top: 0;
}

@media (max-width: 1024px) {
  #main-content {
    padding-top: 70px;
  }

  .site-header.header-transparent ~ #main-content {
    padding-top: 0;
  }
}

/* Team page */
.team-sections {
  display: grid;
  gap: 44px;
}

.team-department h2 {
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primaryBlue);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.team-card {
  border: 1px solid var(--gray200);
  border-radius: 12px;
  background: #fff;
  padding: 18px;
  display: grid;
  gap: 12px;
}

.team-card-top {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: center;
}

.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  object-fit: cover;
  background: var(--gray100);
}

.team-name {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.25;
}

.team-role {
  margin: 6px 0 0;
  color: var(--gray600);
  font-weight: 700;
  font-size: 0.95rem;
}

.team-open {
  justify-self: start;
  border: 1px solid var(--gray300);
  border-radius: 999px;
  padding: 10px 16px;
  background: #fff;
  color: var(--gray900);
  font-weight: 700;
  cursor: pointer;
}

.team-open:hover {
  border-color: var(--gray400);
}

.team-modal[hidden] { display: none; }

.team-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 22px;
}

.team-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.team-modal-content {
  position: relative;
  width: min(92vw, 760px);
  max-height: min(86vh, 720px);
  overflow: auto;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  padding: 24px;
}

.team-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 2rem;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
}

.team-modal-header {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.team-modal-image {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  object-fit: cover;
  background: var(--gray100);
}

.team-modal-name {
  margin: 0;
  font-size: 1.45rem;
}

.team-modal-role {
  margin: 6px 0 0;
  color: var(--gray600);
  font-weight: 800;
}

@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-modal-header { grid-template-columns: 1fr; }
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.pagination ul {
  list-style: none;
  display: flex;
  gap: 10px;
  padding: 0;
  margin-top: 32px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  border: 1px solid var(--gray300);
  border-radius: 8px;
  padding: 8px 12px;
}

.pagination .current {
  background: var(--primaryBlue);
  color: #fff;
  border-color: var(--primaryBlue);
}
