/* ============================================================
   Sacred Heart Institute — Earthy Catholic template
   ============================================================ */

:root {
  --background: #f6efe3;      /* soft sand */
  --surface: #fbf6ec;
  --foreground: #2b2620;      /* deep charcoal */
  --muted: #6b6156;
  --border: #e2d8c8;
  --primary: #b5623c;         /* terracotta */
  --primary-fg: #fbf6ec;
  --primary-soft: #f2dcd0;
  --accent: #7a8a4f;          /* muted olive */
  --accent-fg: #fbf6ec;
  --secondary: #ede2cf;
  --charcoal: #2b2620;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --shadow-soft: 0 10px 30px -12px rgba(60, 40, 20, 0.18);
  --shadow-md:   0 6px 20px  -8px rgba(60, 40, 20, 0.15);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; color: var(--foreground); }
h1 { font-size: clamp(2.25rem, 5vw, 4.25rem); }
h2 { font-size: clamp(1.85rem, 3.5vw, 3rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
@media (min-width: 768px) { .section { padding: 7rem 0; } }

.muted { color: var(--muted); }
.kicker { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase; color: var(--primary); margin-bottom: 0.75rem; }
.meta  { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.tag   { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.5rem; border-radius: 999px;
  font-size: 0.9rem; font-weight: 600;
  transition: all 0.25s ease; white-space: nowrap;
}
.btn i { width: 1rem; height: 1rem; }
.btn-primary { background: var(--primary); color: var(--primary-fg); box-shadow: var(--shadow-soft); }
.btn-primary:hover { opacity: 0.92; transform: translateY(-1px); }
.btn-dark    { background: var(--charcoal); color: var(--primary-fg); }
.btn-dark:hover { opacity: 0.9; }
.btn-light   { background: #fff; color: var(--charcoal); box-shadow: var(--shadow-soft); }
.btn-light:hover { opacity: 0.95; }
.btn-outline-light { border: 1px solid rgba(255,255,255,0.4); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); }

.link-arrow { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.9rem; font-weight: 600; color: var(--primary); transition: opacity 0.2s; }
.link-arrow i { width: 0.95rem; height: 0.95rem; }
.link-arrow:hover { opacity: 0.75; }
.link-underline { align-self: flex-start; display: inline-block; font-size: 0.9rem; font-weight: 600; padding-bottom: 2px; border-bottom: 1px solid rgba(43,38,32,0.4); transition: all 0.2s; }
.link-underline:hover { color: var(--primary); border-color: var(--primary); }

/* --- Header / Nav --- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 239, 227, 0.7);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: box-shadow 0.3s, background 0.3s;
}
.site-header.scrolled { background: rgba(246, 239, 227, 0.92); box-shadow: var(--shadow-soft); }
.nav-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: 1rem 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand-mark { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 999px;  color: var(--primary-fg); }
.brand-mark i { width: 1.15rem; height: 1.15rem; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.nav-links { display: none; justify-content: center; gap: 2rem; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: rgba(43,38,32,0.8); transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }
.nav-right { display: flex; align-items: center; gap: 0.5rem; justify-self: end; }
.donate-btn { display: none; }
.nav-toggle { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 999px; border: 1px solid var(--border); }
.nav-toggle i { width: 1.15rem; height: 1.15rem; }

@media (min-width: 640px) { .donate-btn { display: inline-flex; } }
@media (min-width: 768px) { .nav-links { display: flex; } .nav-toggle { display: none; } }

.mobile-menu { display: none; border-top: 1px solid var(--border); background: var(--background); }
.mobile-menu.open { display: block; }
.mobile-menu nav { display: flex; flex-direction: column; padding: 1rem 1.5rem; gap: 0.25rem; max-width: 1200px; margin: 0 auto; }
.mobile-menu a { padding: 0.6rem 0.75rem; border-radius: 0.5rem; font-size: 0.9rem; font-weight: 500; }
.mobile-menu a:hover { background: var(--secondary); }
.mobile-menu .btn { justify-content: center; margin-top: 0.5rem; }

/* --- Hero --- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(43,38,32,0.85) 0%, rgba(43,38,32,0.6) 45%, rgba(181,98,60,0.4) 100%); }
.hero-content { padding: 6rem 1.5rem 5rem; min-height: 80vh; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 768px) { .hero-content { padding: 9rem 1.5rem 7rem; } }

.hero-slide { max-width: 640px; color: #fff; text-align: left; }
.hero-slide h1 { color: #fff; margin-top: 1rem; }
.hero-slide .lead { margin-top: 1.5rem; font-size: 1.05rem; color: rgba(255,255,255,0.9); max-width: 560px; }
@media (min-width: 640px) { .hero-slide .lead { font-size: 1.15rem; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 1rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.1);
  backdrop-filter: blur(6px);
  font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.18em; color: #fff;
}
.eyebrow .dot { width: 0.4rem; height: 0.4rem; border-radius: 999px; background: #fff; }
.hero-ctas { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Owl overrides — hero */
.hero-carousel .owl-dots { position: absolute; bottom: -3rem; left: 0; display: flex; gap: 0.5rem; }
.hero-carousel { position: relative; padding-bottom: 3.5rem; }
.hero-carousel .owl-dots .owl-dot span { width: 1rem; height: 0.35rem; border-radius: 999px; background: rgba(255,255,255,0.4); transition: all 0.3s; margin: 0; }
.hero-carousel .owl-dots .owl-dot.active span { background: #fff; width: 2.25rem; }
.hero-carousel .owl-dots .owl-dot:focus { outline: none; }

/* --- About --- */
.about-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 768px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.about-image { position: relative; }
.about-image img { aspect-ratio: 5 / 4; object-fit: cover; width: 100%; border-radius: var(--radius-xl); box-shadow: var(--shadow-soft); }
.about-badge { display: none; position: absolute; right: -1.25rem; bottom: -1.25rem; padding: 1.1rem 1.5rem; border-radius: var(--radius-xl); background: var(--primary); color: var(--primary-fg); box-shadow: var(--shadow-soft); }
@media (min-width: 640px) { .about-badge { display: block; } }
.badge-year { font-family: var(--serif); font-size: 1.8rem; line-height: 1; }
.badge-label { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.85; margin-top: 0.25rem; }
.about h2 { margin-bottom: 1.25rem; }
.about p.muted { margin-top: 1rem; font-size: 1.02rem; line-height: 1.7; }
.about .btn { margin-top: 2rem; }

/* --- Section header shared --- */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.section-title-center { max-width: 640px; margin: 0 auto 3.5rem; text-align: center; }
.section-title-center p.muted { margin-top: 1rem; }

/* --- Activities --- */
.activities { background: rgba(237,226,207,0.5); }
.activities-grid { margin-top: 3rem; display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .activities-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.activity-featured { display: flex; flex-direction: column; }
.activity-featured .thumb { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-soft); border: 1px solid var(--border); }
.activity-featured .meta { margin-top: 1.25rem; }
.activity-featured h3 { margin-top: 0.75rem; font-size: 1.85rem; }
.activity-featured .link-underline { margin-top: 1rem; }

.activity-list { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .activity-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .activity-list { padding-left: 2.5rem; border-left: 1px solid var(--border); } }
.activity-item .thumb { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.activity-item .meta { margin-top: 0.9rem; font-size: 0.65rem; }
.activity-item h4 { margin-top: 0.4rem; font-size: 1.1rem; }

.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.thumb { overflow: hidden; }
article:hover .thumb img { transform: scale(1.05); }
.ratio-4x3 { aspect-ratio: 4 / 3; }

/* --- Ministries --- */
.ministries { background: rgba(237,226,207,0.7); }
.ministry-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .ministry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ministry-grid { grid-template-columns: repeat(4, 1fr); } }
.ministry-card {
  display: flex; flex-direction: column;
  background: var(--surface); padding: 2rem;
  border-radius: var(--radius-xl); border: 1px solid var(--border);
  box-shadow: var(--shadow-soft); transition: transform 0.25s, border-color 0.25s;
}
.ministry-card:hover { transform: translateY(-4px); border-color: rgba(181,98,60,0.4); }
.ministry-icon { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: var(--radius-lg); background: rgba(181,98,60,0.1); color: var(--primary); margin-bottom: 1.5rem; transition: all 0.25s; }
.ministry-icon i { width: 1.4rem; height: 1.4rem; }
.ministry-card:hover .ministry-icon { background: var(--primary); color: var(--primary-fg); }
.ministry-card h3 { font-size: 1.55rem; }
.ministry-card p.muted { margin-top: 0.75rem; font-size: 0.9rem; flex: 1; }
.ministry-card .link-arrow { margin-top: 1.5rem; }

/* --- Testimonies --- */
.testimonies .testimony { text-align: center; max-width: 720px; margin: 0 auto; padding: 1rem; }
.quote-icon { width: 2.5rem !important; height: 2.5rem !important; color: rgba(181,98,60,0.4); margin: 0 auto 1.5rem; }
.testimony blockquote { font-family: var(--serif); font-size: 1.75rem; line-height: 1.35; min-height: 8rem; }
@media (min-width: 640px) { .testimony blockquote { font-size: 2rem; } }
.testimony-author { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2rem; }
.avatar { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 999px; background: var(--accent); color: var(--accent-fg); font-family: var(--serif); font-size: 1.1rem; font-weight: 600; }
.testimony-author .name { font-weight: 600; text-align: left; }
.testimony-author .role { font-size: 0.85rem; color: var(--muted); text-align: center; }

.testimony-carousel .owl-dots { text-align: center; margin-top: 2rem; }
.testimony-carousel .owl-dots .owl-dot span { width: 0.5rem; height: 0.5rem; background: var(--border); margin: 0 0.25rem; transition: all 0.3s; }
.testimony-carousel .owl-dots .owl-dot.active span { background: var(--primary); width: 2rem; border-radius: 999px; }

/* --- Posts --- */
.posts { background: rgba(237,226,207,0.7); }
.posts-carousel { margin-top: 4rem; }
.post-card {
  background: var(--surface); border-radius: var(--radius-xl);
  overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; height: 100%;
  transition: transform 0.25s;
}
.post-card:hover { transform: translateY(-4px); }
.post-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-body h3 { margin-top: 0.5rem; font-size: 1.3rem; line-height: 1.3; }
.post-body p.muted { margin-top: 0.75rem; font-size: 0.9rem; flex: 1; }
.post-body .link-arrow { margin-top: 1.25rem; }

.posts-carousel .owl-nav { position: absolute; top: -4.5rem; right: 0; display: flex; gap: 0.5rem; }
.posts-carousel .owl-nav button.owl-prev,
.posts-carousel .owl-nav button.owl-next {
  display: grid !important; place-items: center;
  width: 2.5rem; height: 2.5rem; border-radius: 999px !important;
  background: var(--surface) !important; border: 1px solid var(--border) !important;
  color: var(--foreground) !important; font-size: 1.2rem !important;
  transition: all 0.2s;
}
.posts-carousel .owl-nav button:hover { background: var(--primary) !important; color: var(--primary-fg) !important; border-color: var(--primary) !important; }
.posts-carousel { position: relative; }

/* --- Videos --- */
.video-grid { margin-top: 3rem; display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .video-grid { grid-template-columns: repeat(4, 1fr); } }
.video-card { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); border: 1px solid var(--border); aspect-ratio: 16 / 9; }
.video-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.video-card:hover img { transform: scale(1.05); }
.video-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(43,38,32,0.85), rgba(43,38,32,0.15) 55%, transparent); }
.video-play { position: absolute; inset: 0; margin: auto; width: 3.25rem; height: 3.25rem; border-radius: 999px; background: rgba(255,255,255,0.95); color: var(--primary); display: grid; place-items: center; z-index: 1; transition: transform 0.25s; box-shadow: var(--shadow-soft); }
.video-play i { width: 1.15rem; height: 1.15rem; fill: currentColor; }
.video-card:hover .video-play { transform: scale(1.1); }
.video-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.75rem 1rem; color: #fff; font-size: 0.85rem; font-weight: 500; z-index: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- Footer --- */
.site-footer { background: var(--charcoal); color: rgba(251,246,236,0.72); margin-top: 2rem; }
.footer-grid { display: grid; gap: 3rem; padding: 4rem 1.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.site-footer .brand-name, .site-footer h4 { color: #fff; font-family: var(--serif); }
.site-footer h4 { font-size: 1.1rem; margin-bottom: 1rem; }
.site-footer ul { display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.9rem; }
.site-footer ul a:hover { color: #fff; }
.footer-tag { margin-top: 1rem; font-size: 0.9rem; line-height: 1.6; }
.socials { margin-top: 1.5rem; display: flex; gap: 0.6rem; }
.socials a { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 999px; border: 1px solid rgba(251,246,236,0.2); transition: all 0.2s; color: #fff; }
.socials a i { width: 1rem; height: 1rem; }
.socials a:hover { background: var(--primary); border-color: var(--primary); }
.contact-list li { display: flex; align-items: flex-start; gap: 0.75rem; }
.contact-list i { width: 1rem; height: 1rem; color: var(--primary); flex-shrink: 0; margin-top: 0.2rem; }
.support-btn { margin-top: 1.5rem; }
.footer-bottom { border-top: 1px solid rgba(251,246,236,0.1); }
.footer-bottom-inner { display: flex; flex-direction: column; gap: 0.5rem; align-items: center; justify-content: space-between; padding: 1.5rem; font-size: 0.75rem; color: rgba(251,246,236,0.55); text-align: center; }
@media (min-width: 640px) { .footer-bottom-inner { flex-direction: row; text-align: left; } }


/* ============================================================
   Alternative Layout Additions (Top Bar, Static Hero, Sidebar)
   ============================================================ */

/* --- Top Bar --- */
.top-bar {
  background: #5b6268; /* Slate gray to match the image */
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.5rem 0;
}
.top-bar-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  text-align: center;
}
.top-email {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: opacity 0.2s ease;
}
.top-email i {
  width: 0.85rem;
  height: 0.85rem;
}
.top-email:hover {
  opacity: 0.8;
}

@media (min-width: 768px) {
  .top-bar-inner {
    flex-direction: row;
    text-align: left;
  }
}

/* --- Static Hero --- */
.hero-static {
  width: 100%;
  background: var(--surface);
}
.hero-static-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

/* --- Main Content & Sidebar Grid --- */
.content-sidebar-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 992px) {
  .content-sidebar-grid {
    grid-template-columns: 2fr 1fr; /* 66% / 33% split */
    gap: 4rem;
  }
}

/* Main Article Typography */
.main-article p.muted {
  margin-top: 1rem;
    font-size: 1.02rem;
    line-height: 1.7;
}
.inline-cta {
  color: #f59e0b; /* Orange/Yellow highlight from the image */
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
  margin-left: 0.25rem;
}
.inline-cta:hover {
  opacity: 0.7;
}
.article-inline-img {
  border-radius: var(--radius);
  margin-top: 2rem;
  box-shadow: var(--shadow-soft);
}





/* ============================================================
   Alternating About Us Layout
   ============================================================ */

.about-alternating {
  padding: 4rem 0 6rem;
}

.content-block {
  display: grid;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 5rem;
}

.content-block p {
  color: var(--muted);    
  font-size: 1.05rem;
  margin-bottom: 1rem;
}


.content-block:last-child {
  margin-bottom: 0;
}

/* Image Styling */
.block-image {
  position: relative;
}
.block-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  display: block;
}

/* Text Styling */
.block-text h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}
.block-text p.muted {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.block-text p.muted:last-child {
  margin-bottom: 0;
}

/* Desktop Alternating Grid */
@media (min-width: 992px) {
  .content-block {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    margin-bottom: 7rem;
  }
  
  /* Pushes the image to the right and text to the left */
  .content-block.reverse .block-image {
    order: 2;
  }
  .content-block.reverse .block-text {
    order: 1;
  }
}

/* --- Static Hero with Centered Title --- */
.hero-static {
  position: relative;
  width: 100%;
  min-height: 250px;
  background: var(--surface);
  overflow: hidden;
  isolation: isolate;
}

@media (min-width: 768px) {
  .hero-static {
    min-height: 400px;
  }
}

.hero-static-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  z-index: -1;
}

.hero-static-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(43, 38, 32, 0.45); /* Soft charcoal overlay for text readability */
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
}

.page-title {
  color: #ffffff;
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin: 0;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Adds extra contrast */
}


/* ============================================================
   Pagination
   ============================================================ */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 4rem;
}

.page-link {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px; /* Matches your rounded button style */
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--foreground);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.25s ease;
}

.page-link i {
  width: 1.2rem;
  height: 1.2rem;
}

/* Hover state using your primary terracotta color */
.page-link:hover:not(.dots) {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* Active current page state */
.page-link.active {
  background: var(--primary);
  color: var(--primary-fg);
  border-color: var(--primary);
  pointer-events: none;
  box-shadow: var(--shadow-soft);
}

/* Restyling for the '...' spacer */
.page-link.dots {
  background: transparent;
  border-color: transparent;
  pointer-events: none;
}



/* ============================================================
   Post Card — List View Layout
   ============================================================ */
.post-card.list-view {
  display: flex;
  flex-direction: column;
}

/* On tablet and desktop, switch to a horizontal layout */
@media (min-width: 768px) {
  .post-card.list-view {
    flex-direction: row;
    align-items: stretch;
  }
  
  .post-card.list-view .thumb {
    width: 350px; /* Fixed image width */
    flex-shrink: 0;
    border-right: 1px solid var(--border);
    border-bottom: none;
  }
  
  .post-card.list-view .post-body {
    justify-content: center; /* Vertically centers the text */
    padding: 2.5rem;
  }
}


/* ============================================================
   WordPress Dynamic Navigation & Dropdowns
   ============================================================ */

/* Align the main WP list */
.nav-links ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Main level links */
.nav-links ul > li > a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(43, 38, 32, 0.8);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links ul > li > a:hover {
  color: var(--primary);
}

/* The parent list item containing the dropdown */
.nav-links .menu-item-has-children {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

/* The hidden sub-menu ul (WordPress default class) */
.nav-links .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 220px;
  padding: 0.75rem 0;
  
  /* Hidden by default with a soft animation */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 1000;
  
  display: flex;
  flex-direction: column;
}

/* Show the sub-menu on hover */
.nav-links .menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Individual dropdown links */
.nav-links .sub-menu li {
  width: 100%;
}

.nav-links .sub-menu a {
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--foreground);
  transition: background 0.2s, color 0.2s;
  display: block;
}

/* Dropdown link hover state */
.nav-links .sub-menu a:hover {
  background: rgba(181, 98, 60, 0.08); /* Soft primary color tint */
  color: var(--primary);
}
