/* ====== QUICK TWEAKS ====== */
:root{
  --bg-start:#0b1d54;          /* deep blue */
  --bg-end:#05143a;            /* darker blue */
  --brand-red:#ff3b2f;         /* tiny top labels */
  --title-glow:#c08cff;        /* pink/purple neon glow */
  --title-color:#7cc4ff;       /* header letters */
  --quote-color:#f8cfff;       /* scripture quote */
  --quote-glow:#ff8dd6;
  --text:#e8e8ff;              /* body text */
  --accent-yellow:#ffd600;     /* side pointed columns */
  --content-max:1080px;        /* content width */
  --gutter:28px;
  --card-radius:14px;
  --shadow:0 10px 26px rgba(0,0,0,.35);
  --column-width: 18px;      /* yellow column width */
  --column-offset: 0px;    /* push OUTSIDE the page edges (negative = outward) */
  --narrative: #d9dde6;   /* soft grey-blue */
  --narrative-strong: #eceff4;
  --green: #3a8d62;        /* brighter, fresher green */
  --green-hover: #46a070;  /* hover green */
  --green-text: #f8fff8;  
  --soft-yellow: #e6d27a;  /* softer yellow for Home */
  --soft-yellow-hover:#f0dc87;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font:17px/1.6 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--text);
  background: radial-gradient(1200px 600px at 50% 0%, var(--bg-start), var(--bg-end));
  overflow-x:hidden;
}

/* tiny fixed labels */
.fixed-tags{
  position:fixed; top:10px; left:0; right:0;
  display:flex; justify-content:space-between;
  pointer-events:none;
  padding:0 18px;
  font-weight:700; letter-spacing:.4px; font-size:16px;
  color:var(--brand-red);
  text-shadow:0 0 10px rgba(255,59,47,.35);
}

/* Main wrapper with side pointed columns */
.stage{
  position:relative;
  max-width:calc(var(--content-max) + 2*var(--gutter));
  margin:68px auto 80px;
  padding:0 var(--gutter) 40px;
}

/* keep your content above them just in case */
.stage{ position: relative; z-index: 1; }

/* still hide on small screens if you want */
@media (max-width: 860px){
  .stage::before, .stage::after{ display:none; }
}

/* Title */
.title{
  text-align:center;
  font-weight:900;
  font-size:clamp(28px,5vw,58px);
  letter-spacing:.5px;
  color:var(--title-color);
  margin:10px 0 12px;
  text-shadow:
    0 0 12px var(--title-glow),
    0 0 26px var(--title-glow),
    0 2px 0 #00102a;
}

/* Scripture quote */
.quote{
  text-align:center;
  font-style:italic;
  font-size:clamp(16px,2.8vw,26px);
  color:var(--quote-color);
  margin:0 10px 22px;
  text-shadow:0 0 10px var(--quote-glow), 0 0 22px var(--quote-glow);
}

/* TOP NAV */
.top-nav{
  display:flex;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
  margin:0 auto 26px;
  padding:10px 12px;
  max-width:var(--content-max);
  background:rgba(0,0,0,.28);
  /*border:1px solid rgba(255,255,255,.14);
  border-radius:12px;
  box-shadow:var(--shadow);*/
  border:2px solid #5a7fa5;   /* light blue */
  border-radius:8px;
  box-shadow:var(--shadow);
}

.top-nav a {
  display:inline-block;
  flex: 1 1 150px;
  text-decoration:none;
  padding:10px 16px;
  border-radius:8px;
  min-width:150px;            /* NEW: all buttons at least this wide */
  text-align:center;
  background: var(--green);
  color: var(--green-text);
  font-weight:500;
  box-shadow: var(--shadow);
  transition:background 0.2s, transform 0.12s;
}
.top-nav a:hover{ filter:brightness(1.08); }

/* Photos row */
.photos{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:26px;
  max-width:var(--content-max);
  margin:0 auto 20px;
}

/* main hero and the two-up images */
.main-photo img,
.double-photos img{
  border:4px solid var(--green);
  border-radius:12px;
  padding:2px;               /* tiny inner matte */
  background:#fff;           /* crisp frame */
  box-shadow: var(--shadow);
}

.card{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  border-radius:var(--card-radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.card img{display:block; width:100%; height:auto; object-fit:cover}
.card .cap{padding:10px 14px 14px; text-align:center; font-weight:600; opacity:.95}

/* Intro paragraph */
.intro{
  max-width:var(--content-max);
  margin:16px auto 0;
  padding:18px 20px 22px;
  background:rgba(0,0,0,.28);
  border:1px solid rgba(255,255,255,.14);
  border-radius:var(--card-radius);
  box-shadow:var(--shadow);
}

/* Footer */
footer{ text-align:center; opacity:.8; font-size:14px; margin:30px 0 14px }

/* Responsive */
@media (max-width: 860px){
  .photos{ grid-template-columns:1fr; }
  .fixed-tags{ font-size:14px; }
}

/* === IMSTM yellow page columns (final, override) === */
:root{
  --accent-yellow: #ffd600;      /* keep your existing value if already set */
  --column-width: 18px;          /* thickness of the yellow columns */
  --column-offset: -30px;        /* push OUT past edges (more negative = farther out) */
}

/* keep page content above */
.stage { position: relative; z-index: 10; }

/* ensure the page content sits above the columns */
body { position: relative; }
.stage { position: relative; z-index: 10; }

/* === IMSTM yellow columns as content margins (attach to .stage) === */
:root{
  --accent-yellow: #ffd600;     /* column color */
  --column-width: 18px;         /* thickness of the yellow bars */
  --column-gap: 22px;           /* how far OUTSIDE the content they sit */
}

/* Make sure stage is the positioning anchor */
.stage { position: relative; z-index: 1; }

/* === IMSTM yellow columns as content margins (single source of truth) === */
:root{
  --accent-yellow: #ffd600;   /* column color */
  --column-width: 18px;       /* thickness of the yellow bars */
  --column-gap: 30px;         /* distance OUTSIDE the content (increase to move farther out) */
}

/* anchor for the columns */
.stage { position: relative; z-index: 1; }

/* draw columns just OUTSIDE the stage box, left & right */
.stage::before,
.stage::after{
  content: "";
  position: absolute;
  top: -8px;                   /* extend a hair above */
  bottom: -8px;                /* and below for pointed tips */
  width: var(--column-width);
  background: linear-gradient(#fff38a, var(--accent-yellow));
  filter: drop-shadow(0 0 8px rgba(255,214,0,.5));
  clip-path: polygon(50% 0%, 60% 20px, 100% 20px, 100% calc(100% - 20px),
                     60% calc(100% - 20px), 50% 100%, 40% calc(100% - 20px),
                     0% calc(100% - 20px), 0% 20px, 40% 20px);
  pointer-events: none;
  z-index: 0;
}

/* position them OUTSIDE the content edges (as margins) */
.stage::before { left:  calc(-1 * (var(--column-width) + var(--column-gap))); }
.stage::after  { right: calc(-1 * (var(--column-width) + var(--column-gap))); }

/* keep them visible on all screen sizes (remove any older rules that hid them) */

/* --- Two-up photos on index --- */
.double-photos{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  max-width: var(--content-max);
  margin: 24px auto;
}
.double-photos figure{ margin:0; }
.double-photos img{
  width:100%; height:auto; display:block;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
}
.double-photos figcaption{
  margin-top:8px;
  font-size:0.95rem;
  color: var(--caption-color);
  background: var(--caption-bg);
  padding: 8px 10px;
  border-radius: 10px;
}

/* Stack on phones */
@media (max-width: 820px){
  .double-photos{ grid-template-columns: 1fr; }
}

.double-photos figcaption{
  margin-top:8px;
  font-size:0.95rem;
  color: var(--caption-color);
  background: var(--caption-bg);
  padding: 6px 8px;
  border-radius: 10px;
  text-align:center;   /* NEW */
}

.double-photos img{
  width:100%;
  max-width:420px;   /* NEW: adjust until it feels right */
  height:auto;
  display:block;
  margin:0 auto;     /* center inside the column */
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
}

.side-nav a:first-child,
.top-nav a:first-child{
  font-weight:bold;
  color: var(--accent-yellow);
}

/* Style ALL nav links */

.top-nav a{
  display:inline-block;
  text-decoration:none;
  font-weight:700;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.06);
  color:var(--text);
 /* NEW: force consistent size */
  min-width: 140px;     /* adjust this number until all look balanced */
  text-align: center;   /* centers the text inside */
}
/*.top-nav a {
  /*display: inline-block;
  padding:10px 14px;
  text-decoration:none;
  background:#1e402f;       /* deep green background */
  /* color:#f0fff0;            /* light green/white text */
  /*border-radius:999px;
  margin:6px 0;
  transition:background 0.3s;
  */


.top-nav a:first-child {
  background: var(--soft-yellow);
  color: #000;
  font-weight: 700;
}
.top-nav a:first-child:hover {
  background: var(--soft-yellow-hover);
}

/* Hover state */
.side-nav a:hover,
.top-nav a:hover {
  background:#2f5c47;       /* brighter green on hover */
}

/* First link = Home */
.side-nav a:first-child,
.top-nav a:first-child {
  background: var(--accent-yellow);
  color:#000;
  font-weight:bold;
}

.intro-content p,
.narrative p {
  color: var(--narrative);
  line-height:1.7;
}

.intro-content, .intro-content p, .narrative, .narrative p{
  color: var(--narrative); line-height:1.7;
}
.intro-content h2, .intro-content blockquote{ color: var(--narrative-strong); }

/* Christmas link block (below nav) */
.christmas-link { 
  margin: 18px 0; 
  text-align: center; 
}

.christmas-link .bells{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  color: var(--accent-yellow, #ffd966);
  text-shadow: 0 0 6px rgba(255,215,100,.45);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.christmas-link .bells{
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
}

/* Keep the text readable */
.christmas-link .text{ font-size: 16px; }

.christmas-link .bells:hover{
  transform: translateY(-1px);
}

/* PNG bells (index page) */
.christmas-link img.bell-img{
  width: 20px;
  height: auto;
  display: inline-block;
  vertical-align: middle;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

.christmas-link img.bell-img{
  /* add these lines */
  mix-blend-mode: multiply;
}

.christmas-link img.bell-img{
  filter: drop-shadow(0 0 1px rgba(0,0,0,.65));
}
/* FORCE this page's text to show (in case site CSS is hiding it) */
body.message-page .card,
body.message-page .card *{
  opacity: 1 !important;
  visibility: visible !important;
}

.message, .message p, .signature, .sub{
  display: block !important;
  color: #111 !important;
  font-size: 18px;
}

.message p{
  margin: 0 0 14px 0;
}

.greeting {
  margin-bottom: 30px;
}

body.message-page .greeting{
  max-width: 700px;
  margin: 0 auto 30px auto;
  text-align: center;
}
/* ===== MESSAGE PAGE ONLY: BIG BELLS-RED LEFT, GREETING CENTER ===== */
.message-page .message-top{
  display: grid;
  grid-template-columns: 90px 1fr 90px; /* left bell / centered text / right spacer */
  align-items: center;
  margin: 10px 0 18px;
}

.message-page .bell-left-msg{
  grid-column: 1;
  justify-self: start;
  width: 80px;           /* adjust 48–70 */
  height: auto;
  margin-left: 8px;      /* adjust to push closer to edge */
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  filter: drop-shadow(0 0 2px rgba(0,0,0,.55));
}
/* ===== MESSAGE PAGE ONLY: BIG BELLS-RED LEFT, GREETING CENTER ===== */
body.message-page .message-top{
  display: grid;
  grid-template-columns: 90px 1fr 90px;
  align-items: center;
  margin: 10px 0 18px;
}

/* Message page greeting – centered, dark blue */
body.message-page .greeting{
  text-align: center;
  margin: 0;
  font-weight: 600;
  font-size: 1.6rem;
  color: #0658a9;   /* dark blue */
}

body.message-page .greeting .year{
  display: block;
  font-size: 1.4rem;
  line-height: 1.1;
}

body.message-page .greeting .title{
  display: block;
  font-size: 1.6rem;
  line-height: 1.2;
  margin-top: 6px;
}
/* FINAL OVERRIDE: force message-page greeting to dark blue */
body.message-page .message-top .greeting,
body.message-page .message-top .greeting *{
  color: red; !important;
}
/* Video embed – message page */
body.message-page .video-wrap{
  max-width: 900px;
  margin: 10px auto 28px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
}

body.message-page .video-wrap iframe{
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}
