/* =======================
   DESIGN TOKENS
======================= */
:root {
  --brand: #A8DADC;
  --brand-ink: #007ac3;
  --ink: #1f1f1f;
  --ink-muted: #626262;
  --link: #006bb3;
  --bg: #ffffff;
  --card: #ffffff;
  --border: #e7e7e7;
  --shadow: 0 2px 8px rgba(0,0,0,.05);
}

/* =======================
   BASE
======================= */
html {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

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

.container { width: 92%; max-width: 1100px; margin: 0 auto; }

/* =======================
   HEADER / NAV
======================= */
.header {
  background: var(--brand);
  color: #1D3557;
  box-shadow: 0 2px 4px rgba(0,0,0,.05);
  padding: 18px 0;
  position: relative;
  z-index: 5;
}
@media (min-width: 1024px) { .header { padding: 37px 0; } }

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo { font-size: 1.5rem; font-weight: 700; color: #fff; }
.logo img { height: 32px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 42px; }
@media (max-width: 900px) { .main-nav { gap: 16px; } .main-nav ul { gap: 22px; } }

.main-nav a {
  font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  color: #1D3557;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  height: 44px;
  transition: text-decoration .2s ease;
}
.main-nav a:hover { text-decoration: underline; }

/* Language selector (desktop + mobile hover/focus open) */
.lang-select {
  position: relative;
  display: inline-block;
  justify-self: end;
  width: auto;
}
.active-lang {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 16px;
  font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  transition: border-color .15s ease;
}
.lang-select:hover .active-lang,
.lang-select:focus-within .active-lang { border-color: #0097d2; }

.lang-list {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
  padding: 10px 0;
  background-color: #0097d2;
  border-radius: 0 0 8px 8px;
  z-index: 1000;
  flex-direction: column;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}
.lang-select:hover .lang-list,
.lang-select:focus-within .lang-list { display: flex; }

.lang-list .lang-link {
  display: block;
  padding: 10px 16px;
  color: rgba(255,255,255,.85);
  text-decoration: none !important;
  white-space: nowrap;
  line-height: 1.2;
  font-size: 14px;
  font-weight: 600;
}
.lang-list .lang-link:hover,
.lang-list .lang-link:focus-visible { color: #fff; }

/* =======================
   VISIBILITY HELPERS
======================= */
.only-desktop { display: none !important; }
.only-mobile  { display: inline-flex !important; }
@media (min-width: 1024px) {
  .only-desktop { display: block !important; }
  .only-mobile  { display: none !important; }
}

/* =======================
   PAGE STRUCTURE
======================= */
.main-content { padding: 2rem 0; }

h1 {
  margin: 0 auto .5rem !important;
  font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 900;
  line-height: 1.1;
  font-size: clamp(2rem, 2.5vw + 1.5rem, 3rem);
  text-align: center;
}

h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Page top bar */
.page-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: .5rem auto 1rem;
  width: 90%;
  max-width: 1100px;
}
@media (max-width: 640px) {
  .page-topbar { flex-direction: column; align-items: flex-start; gap: .5rem; }
}

/* =======================
   ARTICLES
======================= */
.article-container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

.article-container p,
.article-container li {
  font-size: clamp(1.0625rem, 0.25vw + 1rem, 1.125rem);
  line-height: 1.75;
  color: var(--ink);
}

.article-container h2 {
  font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 0.6vw + 1.2rem, 2rem);
  line-height: 1.25;
  margin: 2.25rem 0 .75rem;
  text-wrap: balance;
}
.article-container h3 {
  font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(1.25rem, 0.45vw + 1rem, 1.5rem);
  line-height: 1.35;
  margin: 1.75rem 0 .5rem;
}

.article-container :where(p, ul, ol, blockquote, figure) + :where(p, ul, ol, blockquote, figure) {
  margin-top: .85rem;
}

.article-container ul { padding-left: 1.25rem; margin: .75rem 0 1.25rem; }
.article-container li + li { margin-top: .35rem; }
.article-container ul > li { list-style: disc; }

.article-container a { color: var(--link); }
.article-container a:hover { text-underline-offset: 3px; }

.article-container p:first-of-type {
  font-size: clamp(1.125rem, 0.4vw + 1rem, 1.25rem);
}

@supports (hyphens: auto) {
  .article-container p { hyphens: none; overflow-wrap: break-word; }
}

.article-container time,
.article-container .meta {
  color: var(--ink-muted);
  font-size: .95rem;
}

.article-container img.inside-image {
  border-radius: 12px;
  margin: 1.25rem auto;
  box-shadow: var(--shadow);
}

/* =======================
   NEWS GRID / CARDS
======================= */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.news-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 1rem;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  position: relative;
  color: inherit;
  text-decoration: none;
  display: block;
}
.news-card:hover,
.news-card:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  border-color: #dcdcdc;
  outline: none;
}

.news-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: .75rem;
}

.news-card time {
  font-size: .85rem;
  color: #888;
  display: block;
  margin-bottom: .5rem;
}

.news-card h2 {
  font-size: 1.1rem;
  line-height: 1.35;
  margin: .25rem 0 .5rem;
  color: var(--ink);
}

.news-card p { margin: 0 0 .75rem; color: var(--ink-muted); }
.news-card .card-cta { display: inline-flex; align-items: center; gap: .35rem; font-weight: 800; }
.news-card a { color: var(--link); font-weight: 700; text-decoration: none; }
.news-card h2 a,
.news-card h2 a:visited { color: var(--ink); text-decoration: none; }
.news-card h2 a:hover,
.news-card h2 a:focus { text-decoration: underline; }

/* =======================
   HERO CTA
======================= */
.hero-cta {
  background: var(--brand);
  border-radius: 28px;
  padding: clamp(2rem, 4vw, 3.5rem);
  margin: 2rem 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  color: #1D3557;
  /* prefer solid brand; if you want gradient, reintroduce it here */
}

.hero-cta__inner {
  display: flex;
  align-items: flex-start;
  gap: clamp(1rem, 3vw, 2rem);
  flex-wrap: nowrap;
}
@media (max-width: 900px) {
  .hero-cta__inner { flex-wrap: wrap; }
}

.hero-cta__copy { flex: 1 1 520px; min-width: 280px; }
.hero-cta__media {
  order: 2;
  margin-left: auto;
  flex: 0 0 clamp(240px, 28%, 340px);
  max-width: clamp(240px, 28%, 340px);
  align-self: flex-start;
  margin-top: clamp(.75rem, 1.5vw, 1.25rem);
}
.hero-cta__media img { width: 100%; border-radius: 16px; object-fit: cover; display: block; }

.hero-cta__title {
  margin: 0 0 .75rem !important;
  width: auto !important;
  max-width: none !important;
  text-align: left !important;
  border: 0 !important;
  text-wrap: balance;
  font-weight: 900;
  line-height: 1.05;
  font-size: clamp(2rem, 2.4vw + 1.2rem, 3.25rem);
}

.hero-cta__text {
  font-size: clamp(1rem, 0.4vw + 0.95rem, 1.15rem);
  line-height: 1.65;
  max-width: 60ch;
  margin: 0 0 2rem;
  color: #1D3557;
}

.hero-cta__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

@media (max-width: 600px) {
  .hero-cta { padding: 1.25rem 1rem; border-radius: 22px; }
  .hero-cta__inner { gap: .9rem; }
  .hero-cta__media { flex: 0 0 110px; max-width: 110px; }
  .hero-cta__media img { max-height: 110px; }
}

/* Buttons */
.btn {
  font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  border: none;
}
.btn--primary { background: #1D3557; color: #fff; }
.btn--primary:hover { background: #005999; transform: translateY(-2px); }
.btn--primary:active { background: #004f8a; transform: translateY(0); }
.btn--outline { border: 2px solid #fff; color: #fff; background: transparent; }
.btn--outline:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }

/* =======================
   SHARE + BREADCRUMBS + LANG SWITCH
======================= */
.share-section {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #ccc;
}
.share-section a { margin-right: 1rem; color: #00b1ff; text-decoration: none; }

.lang-switch { margin: 0 0 .5rem; font-size: .95rem; }
.lang-switch .lang-link { text-decoration: none; color: inherit; opacity: .7; }
.lang-switch .lang-link.current { font-weight: 600; opacity: 1; }

.breadcrumbs { font-size: .95rem; margin: 0 0 1rem; color: var(--ink-muted); }
.breadcrumbs ol, .breadcrumbs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.breadcrumbs li + li::before { content: "›"; opacity: .6; margin: 0 .4rem; }
.breadcrumbs a { color: inherit; opacity: .7; text-decoration: none; }
.breadcrumbs a:hover { opacity: 1; text-decoration: underline; }
.breadcrumbs li[aria-current="page"] span { font-weight: 700; color: var(--ink); opacity: 1; }

/* =======================
   FOOTER
======================= */
.footer {
  background: #fafafa;
  border-top: 1px solid var(--border);
  color: var(--ink-muted);
  text-align: center;
}
.footer .container { padding: 1.25rem 0; }


/* =======================
   SMALLER TOP MENU (css1 overrides)
======================= */

/* 1) Header height/spacing */
.header {
  padding: 10px 0;                 /* was 18px / 37px on desktop */
}
@media (min-width: 1024px) {
  .header { padding: 12px 0; }     /* smaller than previous 37px */
}



/* 3) Nav spacing and font size */
.main-nav { gap: 16px; }           /* was 28px */
.main-nav ul { gap: 20px; }        /* was 42px */

.main-nav a {
  font-size: 14px;                 /* was 16px */
  line-height: 18px;
  height: auto;                    /* stop forcing 44px */
  padding: 10px 0;                 /* click target ~38px total with line-height */
}

/* 4) Language selector compact */
.active-lang {
  height: 32px;                    /* was 38px */
  padding: 0 12px;                 /* was 16px */
  font-size: 13px;                 /* was 14px */
}

/* 5) Keep mobile comfy; don’t over-shrink below 768px */
@media (max-width: 900px) {
  .main-nav ul { gap: 16px; }      /* was 22px */
  .main-nav a { padding: 12px 0; font-size: 15px; } /* keep tap targets friendly */
}


/* =======================
   MENU HOVER = CSS2 "WHITE FADE"
======================= */

/* default header (brand-colored) */
.header .main-nav a{
  /* ensure smooth fade */
  transition: color .2s ease, background-color .2s ease, opacity .2s ease;
  border-radius: 8px;           /* needed so the white wash looks neat */
  padding: 10px 8px;            /* small hit area like css2 */
}

/* white fade on hover/focus */
.header .main-nav a:hover,
.header .main-nav a:focus-visible{
  color: #1D3557;         /* text fades toward white */
  background-color: rgba(255,255,255,.12); /* subtle white wash (like css2 feel) */
  text-decoration: none;                /* keep clean */
}

/* active/current item also “white faded” */
.header .main-nav a.active,
.header .main-nav a[aria-current="page"]{
  color: #fff;
  background-color: rgba(255,255,255,.18);
}

/* Accessibility focus ring */
.header .main-nav a:focus-visible{
  outline: 2px solid rgba(255,255,255,.6);
  outline-offset: 2px;
}

/* =======================
   STICKY/LIGHT HEADER VARIANT (like css2)
   — if you toggle .sticky on .header
======================= */
.header.sticky{
  background-color: rgba(255,255,255,.8);
  backdrop-filter: blur(5px);
  box-shadow: inset 0 -1px 0 0 rgba(0,0,0,.1);
}

.header.sticky .main-nav a{
  color: var(--ink); /* dark text on light bg */
}

.header.sticky .main-nav a:hover,
.header.sticky .main-nav a:focus-visible{
  color: var(--brand);            /* brand color on hover (css2 behavior) */
  background-color: transparent;  /* no white wash on light header */
  opacity: 1;
}

/* =======================
   MOBILE: keep taps clean (no bg wash)
======================= */
@media (max-width: 900px){
  .header .main-nav a:hover,
  .header .main-nav a:focus-visible{
    background-color: transparent;
    color: rgba(255,255,255,.9);
  }
  .header.sticky .main-nav a:hover,
  .header.sticky .main-nav a:focus-visible{
    color: var(--brand);
  }
}

/* Pagination */
.pager {
  grid-column: 1 / -1;          /* span full grid width if inside .news-grid */
  display: flex;                 /* lay out buttons in a row */
  justify-content: center;       /* keep them together, not spaced apart */
  align-items: center;
  gap: .5rem;                    /* control spacing between items */
  margin: 1.25rem 0 0;           /* always below the cards */
}

.pager a,
.pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .5rem .75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  line-height: 1;
  min-width: 2.25rem;
}

.pager a:hover { text-decoration: none; border-color: #dcdcdc; }
.pager .pager-current {
  background: var(--brand);
  color: #fff;
  border-color: transparent;
}



