/*
Theme Name:        SerenePath
Theme URI:         https://buddhaswayvipassana.org
Author:            Buddha's Way Vipassana
Author URI:        https://buddhaswayvipassana.org
Description:       A calm, editorial WordPress theme for Buddhist meditation centers. Clean, easy-to-maintain structure — all colors and fonts live in CSS variables. Sections: hero, pillars, teachings, events, quote, resources, newsletter, footer.
Version:           1.4.3
Requires at least: 5.8
Tested up to:      6.6
Requires PHP:      7.4
License:           GNU General Public License v3 or later
License URI:       https://www.gnu.org/licenses/gpl-3.0.html
Text Domain:       serenepath
Tags:              buddhist, meditation, dharma, spiritual, clean, minimal, responsive, two-column

 ============================================================
 HOW TO CUSTOMIZE THIS THEME
 ============================================================
 1. COLORS & FONTS → Edit the :root block below.
      Changing --clr-gold changes gold everywhere.
      Changing --font-display changes all headings.
      That's it — no hunting through code.

 2. SECTION CONTENT → Each section is in its own template
      file inside /templates/. Edit those HTML files directly.

 3. HEADER LINKS → Managed via WordPress Menus.
      Go to Appearance > Menus in wp-admin.

 4. FOOTER TEXT → Editable via Theme Options (see inc/theme-options.php).
 ============================================================
*/

/* ============================================================
   CSS CUSTOM PROPERTIES  ← EDIT EVERYTHING HERE
   ============================================================ */
:root {
  /* --- PALETTE --- */
  --clr-bg:          #faf8f4;
  --clr-surface:     #ffffff;
  --clr-surface-alt: #f0ebe3;
  --clr-gold:        #c9a84c;
  --clr-gold-light:  #e2c87a;
  --clr-gold-dark:   #a07d2e;
  --clr-burgundy:    #7a3038;
  --clr-burgundy-lt: #a04858;
  --clr-teal:        #3d6b6b;
  --clr-teal-lt:     #4f8a8a;
  --clr-text:        #2c2420;
  --clr-text-mid:    #5c4a42;
  --clr-text-muted:  #8a7e74;
  --clr-border:      #ddd6cc;
  --clr-shadow:      rgba(44,36,32,.08);

  /* --- TYPOGRAPHY --- */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Raleway', system-ui, sans-serif;

  /* --- SPACING (8px scale) --- */
  --sp1: .5rem;
  --sp2: 1rem;
  --sp3: 1.5rem;
  --sp4: 2rem;
  --sp5: 3rem;
  --sp6: 4rem;
  --sp7: 6rem;

  /* --- RADII --- */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;

  /* --- MAX WIDTHS --- */
  --w-content: 780px;
  --w-wide:    1080px;
  --w-full:    1240px;

  /* --- FONT SIZES (adjustable) --- */
  --logo-en-size:    1.55rem;
  --logo-my-size:    .9rem;
  --logo-tag-size:   .68rem;
  --nav-link-size:   .82rem;
  --hero-h1-min:     2.4rem;
  --hero-h1-max:     3.8rem;
}

/* ============================================================
   BASE / RESET
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--clr-text);
  background: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--clr-teal);
  text-decoration: none;
  transition: color .25s;
}
a:hover { color: var(--clr-teal-lt); }
img { max-width: 100%; display: block; height: auto; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.2;
  color: var(--clr-text);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container       { width: 90%; max-width: var(--w-full);    margin-inline: auto; }
.container--narrow { max-width: var(--w-content); }
.container--wide   { max-width: var(--w-wide); }
section { padding: var(--sp7) 0; }
.gold-rule { width: 48px; height: 2px; background: var(--clr-gold); margin-block: var(--sp3); }
.section-head { margin-bottom: var(--sp5); }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: var(--sp2); }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background: var(--clr-text);
  color: #d6cdc4;
  font-size: .78rem;
  letter-spacing: .04em;
  text-align: center;
  padding: var(--sp1) 0;
}
.topbar a { color: var(--clr-gold-light); }

/* ============================================================
   HEADER
   ============================================================ */
header {
  position: sticky;
  top: 0; z-index: 900;
  background: var(--clr-surface);
  border-bottom: 1px solid var(--clr-border);
  box-shadow: 0 2px 12px var(--clr-shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo wrap */
.logo-wrap {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none;
}

/* White circle frame — makes logo pop against header */
.logo-img-wrap {
  width: 58px; height: 58px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.12), 0 0 0 2.5px var(--clr-gold-light);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: box-shadow .3s, transform .2s;
}
.logo-wrap:hover .logo-img-wrap {
  box-shadow: 0 4px 18px rgba(0,0,0,.18), 0 0 0 3px var(--clr-gold);
  transform: scale(1.05);
}
.logo-img-wrap img { width: 50px; height: 50px; object-fit: contain; }

/* Bilingual text stack */
.logo-text-wrap { display: flex; flex-direction: column; }
.logo-title-en { font-family: var(--font-display); font-size: var(--logo-en-size); font-weight: 500; color: var(--clr-text); line-height: 1.2; }
.logo-title-my { font-size: var(--logo-my-size); font-weight: 400; color: var(--clr-gold-dark); line-height: 1.35; margin-top: 1px; }
.logo-tagline { font-size: var(--logo-tag-size); font-family: var(--font-body); font-weight: 300; color: var(--clr-text-muted); letter-spacing: .10em; text-transform: uppercase; margin-top: 2px; }

/* Nav */
.nav-menu {
  display: flex; list-style: none; gap: var(--sp4); align-items: center;
}
.nav-menu a {
  font-size: var(--nav-link-size); font-weight: 500;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--clr-text-mid);
  position: relative; padding-bottom: 4px;
  transition: color .25s;
}
.nav-menu a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1.5px; background: var(--clr-gold);
  transition: width .3s;
}
.nav-menu a:hover,
.nav-menu .current-menu-item > a { color: var(--clr-gold-dark); }
.nav-menu a:hover::after,
.nav-menu .current-menu-item > a::after { width: 100%; }

/* Donate button (last nav item) */
.nav-menu .menu-item--donate a {
  background: var(--clr-gold); color: #fff;
  padding: .42rem 1.1rem; border-radius: var(--r-md);
  font-weight: 600; font-size: .75rem;
}
.nav-menu .menu-item--donate a::after { display: none; }
.nav-menu .menu-item--donate a:hover { background: var(--clr-gold-dark); color: #fff; }

/* Live button */
.btn-live {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--clr-burgundy); color: #fff !important;
  padding: .42rem 1rem; border-radius: var(--r-md);
  font-weight: 600; font-size: .75rem;
  letter-spacing: .08em; text-transform: uppercase;
  transition: background .25s, transform .15s; cursor: pointer;
}
.btn-live::after { display: none !important; }
.btn-live:hover { background: var(--clr-burgundy-lt); transform: translateY(-1px); }
.btn-live .live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #fff; animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.85); }
}
/* Live button nav item wrapper — ensures ::after underline is suppressed */
.nav-menu .menu-item--live a {
  /* styles live on .btn-live itself; this just kills the nav underline */
}
.nav-menu .menu-item--live a::after { display: none !important; }


/* Hamburger (mobile) */
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px;
  background: none; border: none; z-index: 1001; position: relative;
}
.hamburger span { width: 24px; height: 1.5px; background: var(--clr-text); transition: .3s; display: block; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile overlay (darkens page behind the menu) */
.mobile-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(44,36,32,.5); z-index: 899;
}
.mobile-overlay.visible { display: block; }

/* Mobile menu panel (slides in from right) */
.nav-menu.open {
  display: flex !important; flex-direction: column;
  position: fixed; top: 0; right: 0; width: 280px; height: 100vh;
  background: var(--clr-surface);
  box-shadow: -4px 0 24px rgba(0,0,0,.15);
  padding: 100px var(--sp4) var(--sp4);
  gap: 0; z-index: 900;
  border-left: 1px solid var(--clr-border);
}
.nav-menu.open li { border-bottom: 1px solid var(--clr-border); padding: var(--sp2) 0; }
.nav-menu.open a { font-size: .88rem; color: var(--clr-text); }
.nav-menu.open .btn-live,
.nav-menu.open .menu-item--donate a {
  margin-top: var(--sp1); justify-content: center; width: 100%; display: flex;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .7rem 1.6rem; border-radius: var(--r-md);
  font-family: var(--font-body); font-size: .82rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; transition: all .25s; cursor: pointer; border: none;
}
.btn-primary { background: var(--clr-gold); color: #fff; }
.btn-primary:hover {
  background: var(--clr-gold-dark); color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201,168,76,.35);
}
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn-ghost:hover { border-color: var(--clr-gold-light); color: var(--clr-gold-light); }
.btn-row { display: flex; gap: var(--sp2); flex-wrap: wrap; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 520px;
  display: flex; align-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, var(--clr-text) 0%, #3d2e28 55%, #4a3630 100%);
  color: #fff;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(201,168,76,.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(122,48,56,.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-deco {
  position: absolute; top: -80px; right: -120px;
  width: 500px; height: 500px; border-radius: 50%;
  border: 1px solid rgba(201,168,76,.15); pointer-events: none;
}
.hero-deco::after {
  content: ''; position: absolute; top: 60px; left: 60px; right: 60px; bottom: 60px;
  border-radius: 50%; border: 1px solid rgba(201,168,76,.10);
}

/* Large faint logo stamp — right side of hero */
.hero-logo-stamp {
  position: absolute; right: 5%; top: 50%; transform: translateY(-50%);
  width: 340px; height: 340px; border-radius: 50%;
  background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.hero-logo-stamp img { width: 260px; height: 260px; object-fit: contain; opacity: .55; }

/* Burmese subtitle in hero */
.hero-my {
  font-size: 1.15rem; color: var(--clr-gold-light);
  opacity: .7; letter-spacing: .03em;
  margin-bottom: var(--sp3); margin-top: .2rem;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: var(--w-content);
  padding: var(--sp7) var(--sp4);
}
.hero-eyebrow {
  font-size: .75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .2em;
  color: var(--clr-gold-light); margin-bottom: var(--sp3);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(var(--hero-h1-min), 5vw, var(--hero-h1-max));
  font-weight: 300; color: #fff; line-height: 1.15;
  margin-bottom: var(--sp3);
}
.hero h1 em { font-style: italic; color: var(--clr-gold-light); }
.hero-desc {
  font-size: 1.05rem; color: #c4b8ad;
  max-width: 520px; margin-bottom: var(--sp4); font-weight: 300;
}

/* ============================================================
   PILLARS
   ============================================================ */
.pillars { background: var(--clr-surface); }
.pillars .section-head { text-align: center; }
.pillars .section-head .gold-rule { margin-inline: auto; }
.pillars .section-head p { color: var(--clr-text-muted); max-width: 560px; margin-inline: auto; font-size: .95rem; }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp4);
}
.pillar-card {
  background: var(--clr-bg); border-radius: var(--r-lg);
  padding: var(--sp4) var(--sp3); text-align: center;
  border: 1px solid var(--clr-border);
  transition: transform .3s, box-shadow .3s;
}
.pillar-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px var(--clr-shadow); }
.pillar-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(201,168,76,.15), rgba(201,168,76,.05));
  display: flex; align-items: center; justify-content: center;
  margin-inline: auto; margin-bottom: var(--sp3); font-size: 1.5rem;
}
.pillar-card h3 { font-size: 1.25rem; margin-bottom: var(--sp1); }
.pillar-card p { font-size: .88rem; color: var(--clr-text-muted); line-height: 1.65; }

/* ============================================================
   TEACHINGS (post grid)
   ============================================================ */
.teachings .section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: var(--sp2);
}
.link-more {
  font-size: .78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; color: var(--clr-gold-dark);
  display: flex; align-items: center; gap: .3rem;
  transition: gap .25s;
}
.link-more:hover { gap: .6rem; color: var(--clr-gold-dark); }

.teachings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp4);
}
.teaching-card {
  background: var(--clr-surface); border-radius: var(--r-lg);
  overflow: hidden; border: 1px solid var(--clr-border);
  transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.teaching-card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px var(--clr-shadow); }

.teaching-card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; }
.teaching-card--featured .card-img { height: 100%; min-height: 260px; }

.card-img { height: 200px; background-size: cover; background-position: center; position: relative; }
.card-tag {
  position: absolute; top: var(--sp2); left: var(--sp2);
  background: var(--clr-burgundy); color: #fff;
  font-size: .68rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; padding: .28rem .6rem; border-radius: var(--r-sm);
}
.card-body { padding: var(--sp3); flex: 1; display: flex; flex-direction: column; }
.card-meta { font-size: .75rem; color: var(--clr-text-muted); margin-bottom: var(--sp1); display: flex; gap: var(--sp2); }
.card-body h3 { font-size: 1.35rem; margin-bottom: var(--sp1); line-height: 1.3; }
.card-body p { font-size: .88rem; color: var(--clr-text-muted); margin-bottom: var(--sp2); flex: 1; }
.card-link {
  font-size: .78rem; font-weight: 600; color: var(--clr-teal);
  text-transform: uppercase; letter-spacing: .06em;
  display: inline-flex; align-items: center; gap: .25rem; transition: gap .2s;
}
.card-link:hover { gap: .5rem; color: var(--clr-teal-lt); }

/* ============================================================
   EVENTS
   ============================================================ */
.events { background: var(--clr-surface-alt); }
.events .section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: var(--sp2);
}
.events-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp3);
}
.event-card {
  background: var(--clr-surface); border-radius: var(--r-lg);
  overflow: hidden; border: 1px solid var(--clr-border);
  display: flex; transition: transform .3s, box-shadow .3s;
}
.event-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px var(--clr-shadow); }
.event-date-box {
  background: linear-gradient(160deg, var(--clr-burgundy), var(--clr-burgundy-lt));
  color: #fff; min-width: 72px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: var(--sp3) var(--sp1); text-align: center;
}
.event-date-box .day { font-family: var(--font-display); font-size: 2rem; font-weight: 300; line-height: 1; }
.event-date-box .month { font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-top: 3px; }
.event-info { padding: var(--sp3); display: flex; flex-direction: column; justify-content: center; }
.event-info h4 { font-size: 1.05rem; margin-bottom: .3rem; }
.event-info p { font-size: .82rem; color: var(--clr-text-muted); line-height: 1.5; }
.event-time { font-size: .75rem; color: var(--clr-teal); font-weight: 500; margin-top: .4rem; }

/* ============================================================
   QUOTE BANNER
   ============================================================ */
.quote-banner {
  background: linear-gradient(160deg, #2c2420 0%, #3d2e28 100%);
  color: #fff; text-align: center; padding: var(--sp6) 0;
  position: relative; overflow: hidden;
}
.quote-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(201,168,76,.07), transparent 70%);
  pointer-events: none;
}
/* Faint logo watermark behind quote text */
.quote-logo-bg {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none; display: flex; align-items: center; justify-content: center;
}
.quote-logo-bg img { width: 160px; height: 160px; object-fit: contain; opacity: .6; }
.quote-banner blockquote {
  position: relative; z-index: 1;
  max-width: var(--w-content); margin-inline: auto; padding: 0 var(--sp4);
}
.quote-mark {
  font-family: var(--font-display); font-size: 5rem;
  color: var(--clr-gold); opacity: .4; line-height: .6;
  display: block; margin-bottom: var(--sp2);
}
.quote-banner p {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.8vw, 1.75rem);
  font-weight: 300; font-style: italic; color: #e8ddd4;
  line-height: 1.6; margin-bottom: var(--sp3);
}
.quote-banner cite {
  font-size: .78rem; font-style: normal; color: var(--clr-gold-light);
  letter-spacing: .1em; text-transform: uppercase; font-weight: 500;
}

/* ============================================================
   RESOURCES
   ============================================================ */
.resources { background: var(--clr-surface); }
.resources .section-head { text-align: center; }
.resources .section-head .gold-rule { margin-inline: auto; }
.resources .section-head p { color: var(--clr-text-muted); max-width: 560px; margin-inline: auto; font-size: .95rem; }

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp3);
}
.resource-item {
  display: flex; gap: var(--sp2); align-items: flex-start;
  padding: var(--sp3); background: var(--clr-bg); border-radius: var(--r-lg);
  border: 1px solid var(--clr-border);
  transition: border-color .25s, transform .2s;
  text-decoration: none; color: inherit;
}
.resource-item:hover { border-color: var(--clr-gold); transform: translateX(3px); }
.resource-icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(61,107,107,.12), rgba(61,107,107,.04));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; flex-shrink: 0; color: var(--clr-teal);
}
.resource-item h4 { font-size: 1rem; margin-bottom: .2rem; }
.resource-item p { font-size: .8rem; color: var(--clr-text-muted); line-height: 1.5; }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter {
  background: linear-gradient(160deg, var(--clr-gold-dark), var(--clr-gold));
  color: #fff; padding: var(--sp6) 0; text-align: center;
  position: relative; overflow: hidden;
}
/* Faint logo stamp in newsletter background */
.nl-logo-bg {
  position: absolute; right: -50px; top: 50%; transform: translateY(-50%);
  width: 260px; height: 260px; border-radius: 50%;
  background: rgba(255,255,255,.07);
  pointer-events: none; display: flex; align-items: center; justify-content: center;
}
.nl-logo-bg img { width: 190px; height: 190px; object-fit: contain; opacity: .55; }
.newsletter h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: var(--sp1); }
.newsletter > .container > p { color: rgba(255,255,255,.82); font-size: .92rem; margin-bottom: var(--sp3); max-width: 480px; margin-inline: auto; }
.newsletter-form {
  display: flex; gap: .5rem; max-width: 460px;
  margin-inline: auto; flex-wrap: wrap; justify-content: center;
}
.newsletter-form input[type="email"] {
  flex: 1; min-width: 220px; padding: .7rem 1.1rem;
  border: none; border-radius: var(--r-md);
  font-family: var(--font-body); font-size: .88rem;
  background: rgba(255,255,255,.95); color: var(--clr-text); outline: none;
  transition: box-shadow .25s;
}
.newsletter-form input:focus { box-shadow: 0 0 0 3px rgba(255,255,255,.4); }
.newsletter-form button {
  background: var(--clr-text); color: #fff; border: none;
  padding: .7rem 1.4rem; border-radius: var(--r-md);
  font-family: var(--font-body); font-size: .78rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
  transition: background .25s;
}
.newsletter-form button:hover { background: #453530; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--clr-text); color: #c4b8ad;
  padding: var(--sp6) 0 var(--sp4);
}
.footer-grid {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: var(--sp5); padding-bottom: var(--sp5);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand p { font-size: .82rem; line-height: 1.7; color: #8a7e74; }

/* Footer logo circle + bilingual name */
.footer-brand-top { display: flex; align-items: center; gap: 14px; margin-bottom: var(--sp2); }
.footer-logo-wrap {
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 2px solid rgba(255,255,255,.12);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.footer-logo-wrap img { width: 40px; height: 40px; object-fit: contain; }
.footer-brand-text { display: flex; flex-direction: column; }
.footer-brand-text .ft-en { font-family: var(--font-display); color: #fff; font-size: 1.2rem; font-weight: 400; line-height: 1.25; }
.footer-brand-text .ft-my { color: var(--clr-gold-light); font-size: .78rem; margin-top: 2px; }
footer h5 {
  font-size: .72rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--clr-gold-light); margin-bottom: var(--sp2);
}
footer ul { list-style: none; }
footer ul li { margin-bottom: .55rem; }
footer ul a { font-size: .82rem; color: #8a7e74; transition: color .2s; }
footer ul a:hover { color: var(--clr-gold-light); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--sp3); font-size: .72rem; color: #6b6058;
  flex-wrap: wrap; gap: var(--sp1);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .teachings-grid { grid-template-columns: 1fr; }
  .teaching-card--featured { grid-template-columns: 1fr; }
  .teaching-card--featured .card-img { min-height: 220px; }
  .events-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-logo-stamp { width: 220px; height: 220px; }
  .hero-logo-stamp img { width: 170px; height: 170px; }
}
@media (max-width: 680px) {
  .nav-menu { display: none; }
  .hamburger { display: flex; }
  .hero { min-height: 420px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-logo-stamp { display: none; }
  .pillars-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .logo-title-en { font-size: 1.1rem; }
  .logo-title-my { font-size: .75rem; }
  .logo-tagline { display: block; font-size: .68rem; letter-spacing: .08em; margin-top: 2px; }
}

/* ============================================================
   PAGINATION (archive pages)
   ============================================================ */
.posts-navigation {
  margin-top: var(--sp5);
  display: flex; justify-content: space-between; gap: var(--sp3);
}
.posts-navigation .nav-links { display: flex; justify-content: space-between; width: 100%; }
.posts-navigation a {
  font-size: .78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; color: var(--clr-gold-dark);
  padding: .6rem 1.2rem; border: 1px solid var(--clr-border);
  border-radius: var(--r-md); transition: all .25s;
}
.posts-navigation a:hover {
  background: var(--clr-gold); color: #fff; border-color: var(--clr-gold);
}
.posts-navigation .nav-previous { text-align: left; }
.posts-navigation .nav-next     { text-align: right; }

/* ============================================================
   CALENDAR (events archive)
   ============================================================ */
.calendar-wrap {
  background: var(--clr-surface); border-radius: var(--r-lg);
  border: 1px solid var(--clr-border); overflow-x: auto;
  box-shadow: 0 4px 20px var(--clr-shadow);
  min-width: 100%;
}

/* Month navigation bar */
.calendar-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp3) var(--sp4);
  background: linear-gradient(160deg, var(--clr-text), #3d2e28);
}
.calendar-month-label {
  color: #fff; font-size: 1.4rem; font-weight: 300; margin: 0;
  letter-spacing: .02em;
}
.calendar-nav-btn {
  color: var(--clr-gold-light); font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  padding: .4rem .9rem; border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,.15); transition: all .25s;
}
.calendar-nav-btn:hover {
  background: var(--clr-gold); color: #fff; border-color: var(--clr-gold);
}

/* 7-col grid */
.calendar-grid {
  display: grid; 
  grid-template-columns: repeat(7, minmax(0, 1fr));
  min-width: 600px;
}

/* Weekday header row */
.calendar-dow {
  background: var(--clr-surface-alt);
  padding: .6rem 0; text-align: center;
  font-size: .7rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--clr-text-muted);
  border-bottom: 1px solid var(--clr-border);
}

/* Day cells */
.calendar-cell {
  min-height: 80px; padding: .4rem .35rem;
  border-right: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  position: relative; vertical-align: top;
  overflow: hidden;
}
.calendar-cell:nth-child(7n) { border-right: none; }
.calendar-cell--empty { background: rgba(0,0,0,.015); }

.calendar-day-num {
  font-size: .72rem; color: var(--clr-text-muted); display: block; margin-bottom: 2px;
}

/* Today highlight */
.calendar-cell--today { background: rgba(201,168,76,.06); }
.calendar-cell--today .calendar-day-num {
  color: var(--clr-gold-dark); font-weight: 600;
}

/* Cell with event(s) */
.calendar-cell--has-event { background: rgba(122,48,56,.04); }

/* Event dot/label inside calendar cell */
.calendar-event-dot {
  display: block; font-size: .58rem; font-weight: 600;
  line-height: 1.25; color: #fff;
  background: var(--clr-burgundy); border-radius: 3px;
  padding: 2px 4px; margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100%; text-decoration: none; transition: background .2s;
}
.calendar-event-dot:hover { background: var(--clr-burgundy-lt); color: #fff; }

/* Responsive: shrink calendar on small screens */
@media (max-width: 680px) {
  .calendar-grid { min-width: 500px; }
  .calendar-cell { min-height: 56px; padding: .3rem .2rem; }
  .calendar-event-dot { font-size: .5rem; padding: 1px 2px; }
  .calendar-month-label { font-size: 1.1rem; }
  .calendar-nav-btn { font-size: .65rem; padding: .3rem .5rem; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim-fadeup { animation: fadeUp .6s ease both; }


