/* Import Playfair Dipslay for headings */

@import url('"https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap"');
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
  scroll-behavior: smooth;
  background-color: #fff;
}

.container {
  max-width: 900px;
  margin: auto;
  padding: 20px;
}

header {
  background-color: #00466f;
  color: #fff;
  padding: 30px 20px;
  text-align: center;
}

h1 { margin: 0; font-size: 2.2em; font-family: 'Playfair Dipslay', serif; font-weight: 700; }
h2 { color: #00466f; margin-top: 36px; font-family: 'Playfair Dipslay', serif; font-weight: 700; }

.section { margin-bottom: 30px; }
.highlight { font-weight: bold; color: #00466f; }

nav {
  background-color: #f8f8f8;
  border-bottom: 1px solid #ddd;
}
.nav-container {
  max-width: 900px;
  margin: auto;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-links { display: flex; gap: 15px; }
.nav-links a {
  color: #00466f;
  text-decoration: none;
  font-weight: bold;
}
.nav-links a:hover { text-decoration: underline; }
.menu-toggle {
  display: none;
  font-size: 1.5em;
  background: none;
  border: none;
  cursor: pointer;
  color: #00466f;
}
@media (max-width: 700px) {
  .nav-links { display: none; flex-direction: column; margin-top: 10px; }
  .nav-links.active { display: flex; }
  .menu-toggle { display: block; }
}

/* Hero */
.hero img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center 65%;
  display: block;
  border-bottom: 1px solid #ddd;
}
@media (max-width: 700px) {
  .hero img { height: 220px; }
}

/* Post */
.post-title { font-family: 'Playfair Dipslay', serif; font-weight: 700;
  margin: 16px 0 8px 0;
  font-size: 2rem;
  line-height: 1.25;
  color: #00466f;
}
.post-meta {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 20px;
}
ul.post-list { list-style: none; padding-left: 0; }
ul.post-list li { margin-bottom: 0.5em; }
table.post-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
}
table.post-table th, table.post-table td {
  padding: 0.75em;
  border: 1px solid #ccc;
  text-align: left;
  vertical-align: top;
}
table.post-table th { background-color: #ecf0f1; }

footer {
  text-align: center;
  padding: 20px;
  background-color: #f0f0f0;
  font-size: 0.9em;
  margin-top: 40px;
}
/* --- Start Page Specific Styles --- */

/* Disclaimer box */
.disclaimer {
  background-color: #f9f9f9;
  border-left: 4px solid #e67e22; /* orange accent */
  padding: 15px 20px;
  font-size: 0.95rem;
  color: #555;
  margin: 20px 0;
}

/* Checklist with icons */
ul.checklist {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
ul.checklist li {
  margin-bottom: 0.6em;
}
ul.checklist li i {
  color: #3498db; /* blue check icon */
  margin-right: 0.5em;
}

/* Call-to-action highlight */
.cta {
  background-color: #00466f; /* your header/nav blue */
  color: #fff;
  padding: 20px;
  text-align: center;
  font-size: 1.2rem;
  border-radius: 6px;
  margin-top: 30px;
  line-height: 1.4;
}
.cta strong {
  font-weight: bold;
  display: block;
  margin-top: 6px;
}
/* --- Post meta (shared include) --- */
.post-meta-bar {
  color: #666;
  font-size: 0.95rem;
  margin: 6px 0 14px;
}

.post-categories { margin: 10px 0 18px; }

.category-pill {
  display: inline-block;
  background-color: #00466f;
  color: #fff;
  text-decoration: none;
  padding: 4px 10px;
  margin: 0 6px 6px 0;
  font-size: 0.85rem;
  border-radius: 20px;
}
.category-pill:hover { background-color: #006699; }
.category-pill[aria-current="true"] { outline: 2px solid #006699; }
.post-title a { color: inherit; font: inherit; }
.post-excerpt {
  margin: 0 0 10px 0;
  color: #333;
}

/* Make blog list titles look like the heading, even when linked */
.post-title a { 
  color: inherit; 
  font: inherit; 
  text-decoration: none; 
}

/* Smaller titles only on the blog index list */
.post-list .post-title { font-family: 'Playfair Dipslay', serif; font-weight: 700; font-size: 1.25rem; line-height: 1.3; margin: 12px 0 6px; }
.post-list .post-meta { font-size: 0.95rem; }

/*separator line*/
.post-divider{
  border: 0;
  height: 1px;
  width: 100%;
  margin: 2.5rem 0;            /* space above/below */
  background: linear-gradient(to right, transparent, rgba(0,0,0,.25), transparent);
  opacity: .9;
}
@media (prefers-color-scheme: dark){
  .post-divider{ background: linear-gradient(to right, transparent, rgba(255,255,255,.25), transparent); }
}


/* --- Side Hero (image on the right) --- */
.side-hero {
  display: grid;
  grid-template-columns: 1fr 320px; /* text | fixed image column */
  gap: 24px;
  align-items: start;
  margin: 18px 0 22px;
}
.side-hero .side-hero-media {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  background: #f8f8f8;
}
.side-hero .side-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;       /* consistent shape */
  object-fit: cover;         /* always fill nicely */
  object-position: center;
}
.side-hero .side-hero-body > *:first-child { margin-top: 0; }
.side-hero .side-hero-body > *:last-child  { margin-bottom: 0; }

/* Optional caption */
.side-hero .caption {
  font-size: .9rem;
  color: #666;
  padding: 6px 8px 8px;
  border-top: 1px solid #eee;
}

/* Mobile: stack */
@media (max-width: 700px) {
  .side-hero { grid-template-columns: 1fr; gap: 14px; }
}


/* FAQ */

.faq-list { gap: 0.5rem; }                  /* was larger */
.faq-item { padding: 0.5rem 0; }            /* was 1rem 0 */
.faq-item .faq-q { margin: 12px 0 6px; }    /* override global h2:36px */
.faq-item:first-child .faq-q { margin-top: 0; }  /* remove big gap after page title */
.faq-a { margin: 0 0 6px; }                 /* slightly smaller paragraph gap */

//* --- FAQ tiles grid --- */

.wrap-wide {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Force grid even if earlier rules fail */
.tile-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

/* Make sure figures don't break the grid */
.tile, .tile figure { margin: 0; }

.tile img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  border: 1px solid #ddd;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  transition: transform .2s ease, box-shadow .2s ease;
}
.tile img:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
}

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

/* --- Square tiles grid --- */
.square-tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 1300px;
  margin: 0 auto;
}

.square-tile-grid .tile img {
  aspect-ratio: 1 / 1;   /* make sure they stay square */
}
@media (max-width: 1100px) {
  .square-tile-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .square-tile-grid { grid-template-columns: 1fr; }
}



/* --- Centered big headline overlay (tiles) --- */
.tile { position: relative; }
/*.tile figcaption.tile-title {
  position: absolute;
  top: 40%;
  left: 40%;
  transform: translate(-50%, -50%);
  text-align: left;
  max-width: 90%;
  margin: 0;
  padding: 0;
  font-family: 'Playfair Dipslay', serif;
  color: #0a3b6f;
  font-weight: 800;
  line-height: 1.1;
  font-size: clamp(18px, 2.5vw, 25px);
  white-space: pre-line;
  pointer-events: none;
  text-wrap: balance;
  z-index: 2;
}*/

.tile[data-tone="dark"] figcaption.tile-title {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}


/* ==== Brand + Logo (header) ==== */
header .brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
header .brand .site-logo {
  height: var(--logo-h, 64px);
  width: auto;
  object-fit: contain;
}
header .brand .brand-text { text-align: center; }
@media (max-width: 700px) {
  header .brand .site-logo { height: 44px; }
}

/* Allow hero overlay logos */
.hero { position: relative; }
.hero .hero-logo {
  position: absolute;
  left: 20px;
  bottom: 16px;
  height: calc(var(--logo-h, 64px) + 8px);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.35));
  background: transparent;
  user-select: none;
  pointer-events: none;
}

/* Optional helper classes for different overlay corners */
.hero .hero-logo.top-left    { top: 16px;   left: 20px; bottom: auto; right: auto; }
.hero .hero-logo.top-right   { top: 16px;   right: 20px; bottom: auto; left: auto; }
.hero .hero-logo.bottom-left { bottom: 16px; left: 20px; top: auto; right: auto; }
.hero .hero-logo.bottom-right{ bottom: 16px; right: 20px; top: auto; left: auto; }
