/*
Theme Name: Mount Zion CCI
Theme URI: https://mountzioncci.org
Author: Mount Zion CCI
Author URI: https://mountzioncci.org
Description: Custom WordPress theme for Mount Zion Christian Center International, built from the church's existing static site design.
Version: 1.0.7
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mount-zion-cci
*/

html, body {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

html {
  scroll-padding-top: 80px;
}

:root {
  --bg: #f2f2f2;
  --bg-alt: #e3e3e2;
  --text: #000;
  --text-muted: #9b9b9b;
  --tab-block-bg: #e7e7e7;
  --pcard-border: #646464;
  --pcard-text: #000;
  --tab-bg: #eee;
}

[data-theme="dark"] {
  --bg: #121212;
  --bg-alt: #1e1e1e;
  --text: #f2f2f2;
  --text-muted: #aaa;
  --tab-block-bg: #2a2a2a;
  --pcard-border: #444;
  --pcard-text: #f2f2f2;
  --tab-bg: #2a2a2a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  transition: background-color 0.3s ease, color 0.3s ease;
}

p {
  font-size: 1.2rem;
}

.side-padding {
  padding-left: 5%;
  padding-right: 5%;
}

.row {
  display: flex;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
    width: 100%;
    padding: 2rem clamp(1.5rem, 5vw, 4rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: transparent;
    transition: background-color 0.3s ease, padding 0.3s ease;
}

nav.scrolled {
    padding: 1rem clamp(1.5rem, 5vw, 4rem);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Light-background pages need dark nav text while the nav is transparent at the top */
body:not(.home) nav:not(.scrolled) .nav-links a,
body:not(.home) nav:not(.scrolled) .logo {
    color: #000;
}

[data-theme="dark"] body:not(.home) nav:not(.scrolled) .nav-links a,
[data-theme="dark"] body:not(.home) nav:not(.scrolled) .logo {
  color: #fff;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: white;
}

.logo img {
    width: 75px;
    height: 65px;
    border-radius: 5px;
}

.empty {
  display: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    color: #D6CC4B;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1100px) {
    .pastor-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .pastor-image img {
        max-width: 100%;
    }
}

@media (max-width: 1020px) {
    nav {
        padding: 1rem 1.5rem;
    }

    nav.scrolled {
        padding: 1rem 1.5rem;
    }

    .menu-toggle {
        display: flex;
        background: #000;
        padding: 10px;
        border-radius: 4px;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: #000;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-links.active {
        max-height: 400px;
    }

    body:not(.home) nav:not(.scrolled) .nav-links.active a,
    nav .nav-links.active a {
        color: #fff;
    }

    .nav-links li {
        padding: 0.85rem 1.5rem;
        border-top: 1px solid #222;
    }

    .empty {
        display: none;
    }

    .pastor-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .pastor-image img {
        max-width: 100%;
    }

    .ministry-content {
        width: 100%;
        gap: 10px;
    }

    .ministry-row {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .m-card {
        width: 100%;
        max-width: 100%;
        margin: 0 !important;
        z-index: auto !important;
        box-sizing: border-box;
    }
}

/*Hero*/
.hero {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  background-image: url(images/Hero.png);
  background-size: cover;
  background-position: center center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100vh;
  align-items: center;
  justify-content: space-between;
}

.text-container h1, .text-container p {
  color: #ffffff;
  line-height: 1.3;
  font-weight: 600;
}

.text-container p {
  font-size: clamp(1.5rem, 4vw, 60px);
}

.sub-heading {
  font-size: clamp(1.2rem, 4vw, 48px);
}

.social-container {
  width: 30px;
  height: 211px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.social-container a:hover {
  transform: scale(1.2);
  transition: transform 0.3s ease;
}

.social-container .fa-facebook-square:hover {
  color: #1877f2 !important;
}

.social-container .fa-youtube-play:hover {
  color: #ff0000 !important;
}

.social-container .fa-instagram:hover {
  color: #e4405f !important;
}

.social-container .fa-whatsapp:hover {
  color: #25d366 !important;
}

h1 {
  font-size: clamp(3rem, 8vw, 130px);
  line-height: 1.3;
  font-weight: 600;
}

h4 {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  line-height: 1.3;
  font-weight: 500;
}

.banner {
  position: sticky;
  top: 10px; /* it will stick when it hits the top */
  z-index: 10; /* keep it above other content */
  margin-top: -50px;
  max-width: 100%;
  padding: 10px 10px;
  display: flex;
  align-items: center;
  justify-content: center;;

}

.service-container {
  max-width: 800px;
  width: 100%;

background: rgba(94, 127, 234, 0.69);
border-radius: 16px;
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(8.1px);
-webkit-backdrop-filter: blur(8.1px);
border: 1px solid rgba(94, 127, 234, 0.29);
  border-radius: 10px;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.service-times {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.service-times h6 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
}

.service-time {
  display: flex;
  flex-direction: column;
  align-items: center;
}


.time-container {
  display: flex;
  justify-content: center;
  gap: 2em;
  line-height: 10px;
}

.time {
  font-size: 1rem;
  color: #fff;
}

.directions-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  text-decoration: none;
}

.directions-container p, .directions-container a {
  text-decoration: none;
  color: #ffe14b;
  font-size: 1rem;
  font-weight: 600;
}

/*
###############################################
############################################### 
                EXPECT PAGE 
###############################################
###############################################*/

h2 {
  font-size: clamp(2rem, 6vw, 80px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.expect-page {
  max-width: 1920px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--bg);
  align-items: center;
  margin-top: 2em;
  margin-bottom: 5em;
}

.expect-content {
  max-width: 941px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.expect-content iframe {
  width: 90%;
  max-width: 941px;
  height: auto;
  max-height: 529px;
  aspect-ratio: 16/9;
  margin-top: 2em;
}

/*Announcements*/
.announcements {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin: 0;
	overflow-x: hidden;
  background-color: #707070;
}

.carousel {
	overflow: hidden;
	width: 100%;
	position: relative;
}

.cards-track {
	display: flex;
	gap: 1rem;
	animation: scroll-horizontal 40s linear infinite;
	width: max-content;
}

@keyframes scroll-horizontal {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

.aCard {
	padding: 2rem;
	scroll-snap-align: center;
	flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.aCard p {
  color: white;
}

.latest-news {
  padding-top: 5rem;
  padding-bottom: 5rem;
  background-color: var(--bg);
}

.latest-news-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 3px solid #d6cc4b;
}

.latest-news-kicker,
.latest-news-meta {
  color: #b89b2e;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.latest-news-all,
.latest-news-link {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration-color: #d6cc4b;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35rem;
}

.latest-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 1400px;
  margin: auto;
}

.latest-news-card {
  background: var(--bg-alt);
  border-bottom: 5px solid #d6cc4b;
}

.latest-news-image {
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  place-items: center;
  overflow: hidden;
  background: #202020;
  color: #d6cc4b;
  font-size: 3rem;
  font-weight: 700;
  text-decoration: none;
}

.latest-news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.latest-news-card:hover .latest-news-image img {
  transform: scale(1.04);
}

.latest-news-card-content {
  padding: 1.5rem;
}

.latest-news-card h3 {
  margin: 0.6rem 0 0.85rem;
  font-size: 1.45rem;
  line-height: 1.2;
}

.latest-news-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.latest-news-excerpt,
.latest-news-empty {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.65;
}

.latest-news-link {
  display: inline-block;
  margin-top: 1.25rem;
}

@media (max-width: 800px) {
  .latest-news {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .latest-news-heading {
    align-items: start;
    flex-direction: column;
    gap: 1rem;
  }

  .latest-news-grid {
    grid-template-columns: 1fr;
  }

  .footer-tab, .footer-info {
    text-align: center;
  }
}



/*
###############################################
############################################### 
            PASTOR PAGE
###############################################
###############################################*/

.anouncements-container {
  max-width: 1920px;
  width: 100%;
  height: 150px;
  display: flex;
  align-items: center;
  background-color: #707070;
  overflow: hidden;
}

.announcement-ticker {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.announcement {
  font-size: 60px;
  color: #fff;
  white-space: nowrap;
  margin: 0;
}

.meet-pastor {
  padding-top: 3em;
  padding-bottom: 5em;
  background-color: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow-x: hidden;
  width: 100%;
}

.pastor-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2em;
}

.pastor-content {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3em;
  overflow: hidden;
}

.pastor-image {
  flex-shrink: 1;
}

.pastor-image img {
  width: clamp(250px, 35vw, 500px);
  height: auto;
  display: block;
}

.pastor-text p {
  color: var(--text);
  font-size: 1.2rem;
}

h3 {
  font-size: 44px;
  font-weight: 300;
  line-height: 65px;
  margin: 0;
}

.pastor-description {
  font-size: 24px;
  font-weight: 300;
  line-height: 35px;
}

.pastor-verse {
  font-size: 24px;
  font-weight: 300;
  font-style: italic;
  line-height: 35px;
  color: #9b9b9b;
}

/*
###############################################
############################################### 
              MINISTRIES 
###############################################
###############################################*/

.ministries {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2em;
  padding-top: 2em;
  padding-bottom: 3em;
}

.ministries .sub {
  margin-bottom: 4em;
}

.ministry-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.ministry-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/*********************************************************************************
MINISTRIES DETAIL PAGE (template-ministries.php)
**********************************************************************************/
.ministries-template {
  padding-top: 8rem;
}

.ministries-template .ministry {
  max-width: 1920px;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding-top: 2rem;
}

.ministries-template .header-container {
  position: relative;
  max-width: 1920px;
  width: 100%;
  height: 350px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.ministries-template .header-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 1);
  mix-blend-mode: color;
  z-index: 1;
}

.ministries-template .header-container img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.ministries-template .header-container h5 {
  position: relative;
  z-index: 2;
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
}

.ministries-template .ministry-description {
  max-width: 1208px;
  width: 100%;
  margin: auto;
}

.ministries-template .ministry-description p {
  font-size: 2rem;
  font-weight: 300;
  text-align: center;
  margin: 1em 0;
}

.ministries-template .highlight-description {
  font-size: 48px;
  line-height: 72px;
  font-weight: 600;
}

.ministries-template .ministry-content {
  max-width: 1400px;
  width: 100%;
  min-height: 760px;
  height: fit-content;
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
  padding: 3rem 5% 5rem;
}

.ministries-template .ministry-info {
  max-width: 1400px;
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 5vw;
  align-items: center;
}

.ministries-template .ministry-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ministries-template .ministry-info img {
  width: 100%;
  max-width: clamp(300px, 40vw, 600px);
  height: auto;
  object-fit: cover;
}

.ministries-template .ministry-info p {
  font-size: 18px;
  line-height: 27px;
  font-weight: 300;
}

.ministries-template .ministry-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.ministries-template .ministry-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ministries-template .text-highlight {
  font-weight: 600;
}

.ministries-template .ministry-time {
  max-width: 1325px;
  width: 100%;
  margin: auto;
  display: flex;
  flex-direction: row;
  gap: 5vw;
}

.ministries-template .column-1 {
  max-width: 650px;
  width: 100%;
  min-height: 300px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5vw;
}

.ministries-template .column-2 {
  max-width: 620px;
  width: 100%;
  min-height: 300px;
  display: flex;
  flex-direction: row;
  gap: 1vw;
  align-items: center;
}

.ministries-template .ministry-time img {
  width: 100%;
  max-width: clamp(150px, 20vw, 300px);
  height: auto;
  object-fit: cover;
}

.ministries-template .column-text p {
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.5;
  font-weight: 300;
}

.ministries-template .header--green { --card-color: #84e97d; }
.ministries-template .header--purple { --card-color: #6019a0; }
.ministries-template .header--blue { --card-color: #2a65a7; }
.ministries-template .header--yellow { --card-color: #ffe14b; }
.ministries-template .header--red { --card-color: #ef4343; }

@media (max-width: 900px) {
  .ministries-template .ministry-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .ministries-template .ministry-info img {
    max-width: 100%;
  }
  .ministries-template .ministry-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ministries-template .ministry-time {
    flex-direction: column;
    align-items: center;
  }
  .ministries-template .column-1,
  .ministries-template .column-2 {
    max-width: 100%;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
  .ministries-template .ministry-time img {
    max-width: clamp(120px, 40vw, 250px);
  }
  .ministries-template .column-text {
    text-align: center;
  }
  .ministries-template .ministry-content {
    padding: 0 5% 5rem;
  }
  .ministries-template .ministry-description p {
    font-size: 1.4rem;
  }
  .ministries-template .highlight-description {
    font-size: 1.8rem;
    line-height: 1.3;
  }
}

@media (max-width: 600px) {
  .ministries-template .header-container {
    height: 250px;
  }
  .ministries-template .header-container h5 {
    font-size: 1.6rem;
  }
  .ministries-template .column-1,
  .ministries-template .column-2 {
    flex-direction: column;
    align-items: center;
  }
  .ministries-template .ministry-info {
    gap: 1.5rem;
  }
  .ministries-template .ministry-gallery {
    grid-template-columns: 1fr;
  }
  .ministries-template .ministry-description p {
    font-size: 1.1rem;
  }
  .ministries-template .highlight-description {
    font-size: 1.4rem;
  }
  .ministries-template .ministry-info p {
    font-size: 1rem;
    line-height: 1.6;
  }
}

.m-card {
  position: relative;
  width: 430px;
  height: 250px;
  background-size: cover;
  background-position: center center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  overflow: hidden;
  transition: transform 0.45s ease-in-out;
  cursor: pointer;
  text-decoration: none;
}



/* Overlays with custom colors */
.m-card::before {
  content: "";
  position: absolute;
  inset: 0;
  mix-blend-mode: color;
  z-index: 1;
  transition: background-color 0.45s ease-in-out;
}

.img1::before { background: #84e97d; }
.img2::before { background: #6019a0; }
.img3::before { background: #2a65a7; }
.img4::before { background: #ffe14b; }
.img5::before { background: #ef4343; }

/* Hover - overlay disappears */
.m-card:hover::before {
  background: rgba(0, 0, 0, 0);
}

.m-card:hover {
  transform: scale(1.06);
  z-index: 5;
}

.m-card span {
  position: relative;
  z-index: 2;
}

/* Background images */
.img1 { background-image: url(images/kids-small.png); }
.img2 { background-image: url(images/women-small.png); margin-left: -50px; margin-top: -80px; z-index: 2;}
.img3 { background-image: url(images/teens-small.png); }
.img4 { background-image: url(images/men-small.png); margin-left: -50px; margin-top: -80px; z-index: 2;}
.img5 { background-image: url(images/giving-small.png); margin-top: -80px; z-index: 2;}



/*
###############################################
############################################### 
              RESOURCES 
###############################################
###############################################*/
.resources {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2em;
  min-height: 100vh;
  background-color: var(--bg-alt);
  padding-top: 2em;
  padding-bottom: 3em;
  text-align: center;
}

.tab-content h3 {
  font-size: 1.8rem;
  line-height: 40px;
}

.cards {
  display: flex;
  align-items: center;
  gap: 3em;
  padding-top: 2em;
  padding-bottom: 5em;
  justify-content: center;
  flex-wrap: wrap;
}

.rCard {
  width: 300px;
  height: 300px;
  box-shadow: 20px 20px 0px rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  gap: 1em;
}

.rCard-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2em;
}

.rCard h4 {
  font-size: 2.2rem;
  color: white;
}

.cards p {
  text-align: center;
  font-size: 1.2rem;
  color: white;
  line-height: 1;
}

.blue {
  background: #2a65a7;
}

.dark {
  background: #292929;
}

.pCard {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--pcard-border);
  padding: 2em;
  background-color: var(--bg);
}

.pCard p {
  color: var(--pcard-text);
  text-align: left;
}

.payment-info {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  width: 100%;
}

.payment-info div {
  max-width: 300px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em;
}

.tab {
  cursor: pointer;
  padding: 10px 15px;
  display: inline-block;
  background: var(--tab-bg);
  color: var(--text);
  margin-right: 5px;
  border-radius: 4px 4px 0 0;
}

.tab.active {
  background: #000;
  color: #fff;
  font-weight: bold;
}

/*Spiritual Formation*/
.sf-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
  width: 100%;
}

.sf-card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3em;
  margin-bottom: 1em;
}

.sf-card {
  display: flex;
  flex-direction: column;
  gap: 1em;
  width: 280px;
  position: relative;
  z-index: 2;
}

.sf-card h3 {
  color: #b89b2e;
  font-weight: 400;
}

.sf-card p {
  font-size: 1.2rem;
  line-height: 30px;
  z-index: 2;
}

.number {
  position: absolute;
  bottom: -50px;
  right: -10px;
  font-size: 6.2rem;
  color: #888;
  z-index: 1;
  font-weight: 700;
}

/*Video Library*/
.videos-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4em;
}

.video-box {
  width: 300px;
  text-align: center;
}

.video-box p {
  font-size: 1.2rem;
  line-height: 20px;
  margin-top: 10px;
}

/*Merch*/

.merch-content {
  display: flex;
  gap: 3em;
}

.merch-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
  gap: 1em;
}

.resource-btn {
  padding: 12px 18px;
  text-decoration: none;
  color: rgb(255, 255, 255);
  border-radius: 25px;
  background-color: #b89b2e;
  width: 150px;
  text-align: center;
  font-weight: 600;
}

.merch-text p {
  font-size: 1.2rem;
  line-height: 20px;
}

.ig_embed {
  width: 400px;
}

/*Project Tab*/
.project-tab {
  display: flex;
  gap: 3em;
}

.building-image {
  width: 600px;
  height: 350px;
  display: flex;
  align-items: end;
  background-image: url(images/project.jpg);
  background-size: cover;
  padding: 20px;
}

.building-image p {
  font-size: 1.2rem;
  color: white;
}

.project-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2em;
}

.project-text .read {
  font-size: 1.2rem;
}

.project-text .figures {
  font-size: 2.4rem;
}

.figures {
  font-weight: 600;
  color: #000;
}

.project-text .comment {
  font-size: 1.2rem;
}

.stats {
  justify-content: space-around;
  text-align: center;
  width: 100%;
}

/****************************************************
Media
***************************************************/
.media {
  margin-top: 3em;
  margin-bottom: 5em;
}

h2 {
  text-align: center;
}

.media h3 {
  font-size: 1.4rem;
  line-height: 30px;
  text-align: center;
  margin-bottom: 2em;
}

.media-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em;
  width: 100%;
}

.tab-item {
  display: flex;
  flex-direction: column;
  gap: 1em;
  font-size: 1.4rem;
  position: relative;
  max-width: 100%;
}

.tab-block {
  background-color: var(--tab-block-bg);
  color: var(--text);
  padding: 20px;
  cursor: pointer;
  position: relative;
  width: 100%;
  max-width: 600px;
  border-radius: 25px;
  transition: all 0.3s ease-in-out;
}

.tab-reveal {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 10px;
  max-width: 600px;
  margin-bottom: 1em;
  transition: all 0.3s ease-in-out;
}

.tab-reveal a {
  text-decoration: none;
  color: var(--text);
}

.tab-item.open .tab-reveal {
  max-height: 300px; /* adjust based on content */
  width: 100%;
  max-width: 600px;
}

.tab-block.active-tab {
  background-color: #2a65a7;
  color: white;
  width: 100%;
  max-width: 600px;
}

/* Plan a Visit */
.plan-visit {
  display: flex;
  justify-content: center;
  padding-top: 5em;
  padding-bottom: 5em;
  background: #d6cc4b;
  text-align: center;
}

.plan-visit-content {
  max-width: 720px;
}

.plan-visit-kicker {
  margin-bottom: 0.75rem;
  color: #000;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.plan-visit h2 {
  color: #000;
  margin-bottom: 1rem;
}

.plan-visit-content > p:not(.plan-visit-kicker) {
  max-width: 600px;
  margin: 0 auto 2rem;
  color: #000;
  line-height: 1.7;
}

.plan-visit-button {
  display: inline-block;
  padding: 0.9rem 1.4rem;
  border: 2px solid #000;
  border-radius: 25px;
  background: #000;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.plan-visit-button:hover,
.plan-visit-button:focus-visible {
  background: #fff;
  color: #000;
  outline: none;
}

/****************************************************
Footer
********************************************************/
.footer {
  background-color: #000;
  padding-top: 3em;
  padding-bottom: 3em;
  color: white;
}

.footer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2em;
  border-bottom: 1px solid #c1c1c1;
  margin-bottom: 2em;
}

.footer-head a {
  border: 1px solid #e9e9e9;
  border-radius: 25px;
  padding: 12px 18px;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.3s ease-in-out;
  width: 120px;
  text-align: center;
}

.footer-head a:hover {
  background-color: #ffffff;
  color: #000;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3em;
  margin-bottom: 2em;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 1em;
  max-width: 500px;
}

.footer-links {
  display: flex;
  gap: 3em;
}

.footer-links h4 {
  font-size: 1.4rem;
  color: #D6CC4B;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
}

.footer-tab {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.footer-section a {
  color: #ffffff;
}

.footer-credit {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 0.8rem;
}

.footer-credit a {
  color: #d6cc4b;
  text-decoration: none;
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
  text-decoration: underline;
}


#themeToggle {
  position: fixed;
  bottom: 5rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  background: var(--bg-alt);
  border: 1px solid var(--pcard-border);
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 999;
  transition: background 0.3s ease;
}

.sermons-site #themeToggle,
.news-site #themeToggle {
  bottom: 2rem;
}

#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
}

#backToTop.visible {
  opacity: 1;
  pointer-events: auto;
}

/************************Animations***************************/
/* Animation base class */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

/* When in view */
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-left {
  transform: translateX(-30px);
}

.fade-right {
  transform: translateX(30px);
}

.fade-up {
  transform: translateY(30px);
}

.m-card.animate-on-scroll:hover {
  transform: scale(1.06);
  transition: transform 0.45s ease-in-out;
}

.delay-1 {
  transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/*********************************************************************************
*********************************************************************************
SERMONS PAGE
*********************************************************************************
 **********************************************************************************/
.sermons-page {
  min-height: 100vh;
  padding: 9rem 5% 5rem;
  background: #e3e3e2;
}

.sermons-site nav {
  position: fixed;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.sermons-intro {
  max-width: 980px;
  margin: 0 auto 3rem;
  text-align: center;
}

.sermons-intro h1 {
  color: #000;
  font-size: clamp(3rem, 8vw, 7rem);
}

.sermons-intro p {
  max-width: 620px;
  margin: 1rem auto 0;
  color: #000;
  font-size: 1.1rem;
  line-height: 1.7;
}

.sermon-list {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.sermon-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: 2rem;
  background: #fff;
  border-top: 6px solid #b89b2e;
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.12);
}

.sermon-card.featured {
  grid-column: 1 / -1;
  min-height: 360px;
  border-top-color: #d6cc4b;
  background: #333333;
  color: #fff;
}

.sermon-card:nth-child(3n + 2) {
  border-top-color: #d6cc4b;
}

.sermon-card:nth-child(3n + 3) {
  border-top-color: #000;
}

.sermon-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #b89b2e;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured .sermon-meta {
  color: #d6cc4b;
}

.sermon-card h2 {
  margin: 1.25rem 0 0.75rem;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.15;
  text-align: left;
}

.sermon-card p {
  color: #000;
  font-size: 1rem;
  line-height: 1.65;
}

.sermon-card .sermon-scripture {
  margin-bottom: 1rem;
  color: #b89b2e;
  font-weight: 600;
}

.featured p {
  color: #f2f2f2;
}

.featured .sermon-scripture {
  color: #d6cc4b;
}

.sermon-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.5rem;
}

.sermon-speaker {
  font-size: 0.8rem !important;
  font-weight: 700;
}

.sermon-link,
.load-more {
  display: inline-block;
  padding: 0.7rem 1rem;
  border: 1px solid #b89b2e;
  border-radius: 25px;
  color: #b89b2e;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.sermon-link:hover,
.load-more:hover {
  background: #b89b2e;
  color: #fff;
}

.featured .sermon-link {
  border-color: #d6cc4b;
  color: #d6cc4b;
}

.featured .sermon-link:hover {
  background: #d6cc4b;
  color: #000;
}

[data-theme="dark"] .sermons-page {
  background: #121212;
}

[data-theme="dark"] .sermon-detail-page {
  background: #121212;
}

[data-theme="dark"] .news-page {
  background: #121212;
}

[data-theme="dark"] .news-body {
  background: #1e1e1e;
}

[data-theme="dark"] .news-body p,
[data-theme="dark"] .news-body h2 {
  color: #f2f2f2;
}

[data-theme="dark"] .news-header h1,
[data-theme="dark"] .news-dek {
  color: #f2f2f2;
}

[data-theme="dark"] .news-byline {
  color: #ccc;
}

[data-theme="dark"] .related-card {
  background: #1e1e1e;
  color: #f2f2f2;
}

[data-theme="dark"] .related-card h3 {
  color: #f2f2f2;
}

[data-theme="dark"] .news-return {
  color: #f2f2f2;
}

[data-theme="dark"] .detail-section {
  background: #1e1e1e;
}

[data-theme="dark"] .detail-section h2,
[data-theme="dark"] .reading h3,
[data-theme="dark"] .hymn h3 {
  color: #f2f2f2;
}

[data-theme="dark"] .reading-text,
[data-theme="dark"] .hymn p {
  color: #ccc;
}

[data-theme="dark"] .hymn-lyrics {
  background: #2a2a2a;
  color: #ccc;
}

[data-theme="dark"] .back-to-sermons {
  color: #f2f2f2;
}

[data-theme="dark"] .reading,
[data-theme="dark"] .hymn {
  border-bottom-color: #333;
}

[data-theme="dark"] .sermons-intro h1,
[data-theme="dark"] .sermons-intro p {
  color: #f2f2f2;
}

[data-theme="dark"] .sermon-card {
  background: #2a2a2a;
}

[data-theme="dark"] .sermon-card p {
  color: #f2f2f2;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.load-more[hidden] {
  display: none;
}

.sermon-card.hidden {
  display: none;
}

@media (max-width: 700px) {
  .sermons-site nav {
    padding: 1.25rem;
  }

  .sermons-site .menu-toggle {
    display: flex;
  }

  .sermons-site .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0 1.25rem 1rem;
    background: #000;
  }

  .sermons-site .nav-links.active {
    display: flex;
  }

  .sermons-site .nav-links li {
    padding: 0.75rem 0;
  }

  .sermons-page {
    padding: 7rem 1.25rem 3rem;
  }

  .sermon-list {
    grid-template-columns: 1fr;
  }

  .sermon-card.featured {
    grid-column: auto;
  }

  .sermon-card {
    min-height: 300px;
    padding: 1.5rem;
    box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.12);
  }

  .sermon-meta,
  .sermon-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* News article */
.news-page {
  min-height: 100vh;
  padding: 8rem 5% 5rem;
  background: #e3e3e2;
}

.news-site nav {
  position: fixed;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.news-article {
  max-width: 1080px;
  margin: 0 auto;
}

.news-featured-image {
  display: block;
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-top: 7px solid #d6cc4b;
}

.news-header {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 0 2.5rem;
}

.news-kicker,
.news-date,
.news-tag {
  color: #b89b2e;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.news-header h1 {
  max-width: 850px;
  margin: 1rem 0;
  color: #000;
  font-size: clamp(2.5rem, 7vw, 6rem);
  line-height: 1.05;
}

.news-dek {
  max-width: 700px;
  color: #424242;
  font-size: 1.2rem;
  line-height: 1.7;
}

.news-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 1.5rem;
  color: #000;
  font-size: 0.95rem;
  font-weight: 600;
}

.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.news-tag {
  padding: 0.45rem 0.75rem;
  border: 1px solid #b89b2e;
  border-radius: 25px;
  letter-spacing: 0.04em;
}

.news-layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.news-body {
  padding: clamp(1.5rem, 4vw, 3rem);
  background: #fff;
}

.news-body p {
  margin-bottom: 1.5rem;
  color: #000;
  font-size: 1.1rem;
  line-height: 1.9;
}

.news-body p:first-child {
  font-size: 1.25rem;
  font-weight: 600;
}

.news-body h2 {
  margin: 2.25rem 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #d6cc4b;
  font-size: 1.8rem;
  text-align: left;
}

.news-share {
  display: flex;
  justify-content: center;
  padding: 1.25rem;
  background: #000;
  color: #fff;
}

.news-share h2 {
  margin-bottom: 1rem;
  font-size: 1.35rem;
}

.share-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
}

.share-button {
  padding: 0.7rem 0.8rem;
  border: 1px solid #d6cc4b;
  border-radius: 25px;
  background: transparent;
  color: #d6cc4b;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.share-button:hover,
.share-button:focus-visible {
  background: #d6cc4b;
  color: #000;
  outline: none;
}

.share-status {
  min-height: 1.2em;
  margin-top: 0.8rem;
  color: #fff;
  font-size: 0.75rem;
}

.related-articles {
  max-width: 900px;
  margin: 4rem auto 0;
}

.related-articles h2 {
  margin-bottom: 1.5rem;
  font-size: 2rem;
  text-align: left;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.related-card {
  display: flex;
  min-height: 170px;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  background: #fff;
  border-top: 4px solid #b89b2e;
  color: #000;
  text-decoration: none;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.1);
}

.related-card:hover {
  background: #000;
  color: #fff;
}

.related-card h3 {
  font-size: 1.15rem;
  line-height: 1.3;
}

.related-card span {
  color: #b89b2e;
  font-size: 0.8rem;
  font-weight: 600;
}

.news-return {
  display: block;
  max-width: 900px;
  margin: 2.5rem auto 0;
  color: #000;
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 700px) {
  .news-page {
    padding: 7rem 1.25rem 3rem;
  }

  .news-layout,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .news-header {
    padding: 2rem 0;
  }

  .news-share {
    order: -1;
  }
}

/* Sermon detail */
.sermon-detail-page {
  min-height: 100vh;
  padding: 8rem 5% 5rem;
  background: #e3e3e2;
}

.sermon-detail-header,
.sermon-detail-content {
  max-width: 980px;
  margin: 0 auto;
}

.sermon-detail-header {
  padding: clamp(2rem, 5vw, 4rem);
  background: #7133ec;
  color: #fff;
  border-top: 7px solid #d6cc4b;
}

.sermon-detail-kicker {
  color: #d6cc4b;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sermon-detail-header h1 {
  max-width: 800px;
  margin: 1rem 0;
  font-size: clamp(2.5rem, 7vw, 6rem);
  line-height: 1.05;
}

.sermon-detail-excerpt {
  max-width: 680px;
  color: #f2f2f2;
  line-height: 1.7;
}

.sermon-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-top: 2rem;
  color: #d6cc4b;
  font-size: 0.95rem;
  font-weight: 600;
}

.sermon-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.detail-action {
  display: inline-block;
  padding: 0.8rem 1.1rem;
  border: 1px solid #d6cc4b;
  border-radius: 25px;
  color: #d6cc4b;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.detail-action.primary {
  background: #d6cc4b;
  color: #000;
}

.sermon-detail-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

.detail-section {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: #fff;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.1);
}

.detail-section.readings {
  grid-column: 1;
}

.detail-section.hymns {
  grid-column: 1;
  padding: clamp(2rem, 5vw, 4rem);
}

.detail-section h2 {
  margin-bottom: 1.75rem;
  padding-bottom: 0.9rem;
  border-bottom: 2px solid #d6cc4b;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  text-align: left;
}

.reading,
.hymn {
  padding: 1.25rem 0;
  border-bottom: 1px solid #d3d3d3;
}

.hymn {
  padding: 2rem 0;
}

.reading:last-child,
.hymn:last-child {
  border-bottom: 0;
}

.reading h3,
.hymn h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  font-weight: 700;
}

.reading-reference,
.hymn-number {
  margin: 0.35rem 0 0.8rem;
  color: #b89b2e;
  font-size: 0.9rem;
  font-weight: 700;
}

.reading-text,
.hymn p {
  color: #000;
  font-size: 1.05rem;
  line-height: 1.8;
}

.hymn-author {
  margin-bottom: 1.25rem;
  color: #555 !important;
  font-size: 0.95rem !important;
  font-style: italic;
}

.hymn-lyrics {
  max-width: 760px;
  padding: 1.5rem;
  background: #f2f2f2;
  border-left: 4px solid #d6cc4b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem !important;
  line-height: 2 !important;
}

.back-to-sermons {
  display: block;
  max-width: 980px;
  margin: 2.5rem auto 0;
  color: #000;
  font-weight: 600;
  text-decoration: none;
}

.back-to-sermons:hover {
  color: #b89b2e;
}

@media (max-width: 700px) {
  .sermon-detail-page {
    padding: 7rem 1.25rem 3rem;
  }

  .sermon-detail-content {
    grid-template-columns: 1fr;
  }

  .detail-section.readings {
    grid-column: auto;
  }

  .detail-section.hymns {
    grid-column: auto;
  }

  .hymn-lyrics {
    padding: 1rem;
    font-size: 1.05rem !important;
  }
}

@media (max-width: 600px) {

    /* Hero */
    .hero-content {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        text-align: center;
    }

    .text-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .social-container {
        flex-direction: row !important;
        width: 100%;
        height: auto;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
    }

    /* Banner */
    .service-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
        text-align: center;
    }

    /* Pastor */
    .pastor-description,
    .pastor-verse {
        font-size: 1rem;
        line-height: 1.6;
    }

    h3 {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    /* Resources */
    .payment-info {
        flex-direction: column;
        gap: 1.5rem;
    }

    .payment-info div {
        max-width: 100%;
    }

    .rCard {
        width: 100%;
    }

    .project-tab {
        flex-direction: column;
    }

    .building-image {
        width: 100%;
    }

    .merch-content {
        flex-direction: column;
        align-items: center;
    }

    .ig_embed {
        width: 100%;
    }

    .merch-text {
        max-width: 100%;
        text-align: center;
    }

    .video-box {
        width: 100%;
    }

    /* Footer */
    .footer-head {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-info {
        max-width: 100%;
    }

    /* General */
    p {
        font-size: 1rem;
    }
}

/*********************************************************************************
*********************************************************************************
POSTS PAGE
*********************************************************************************
 **********************************************************************************/
.posts-page {
  min-height: 100vh;
  padding: 9rem 5% 5rem;
  background: #e3e3e2;
}

.posts-site nav {
  position: fixed;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.posts-intro {
  max-width: 980px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.posts-intro h1 {
  color: #000;
  font-size: clamp(3rem, 8vw, 7rem);
}

.posts-intro p {
  max-width: 620px;
  margin: 1rem auto 0;
  color: #000;
  font-size: 1.1rem;
  line-height: 1.7;
}

.posts-controls {
  max-width: 1120px;
  margin: 0 auto 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.posts-search {
  flex: 1 1 260px;
}

.posts-search input {
  width: 100%;
  padding: 0.85rem 1.25rem;
  background: #fff;
  border: 1px solid #b89b2e;
  border-radius: 25px;
  font-family: inherit;
  font-size: 0.95rem;
  color: #000;
}

.posts-search input:focus {
  outline: 2px solid #d6cc4b;
  outline-offset: 2px;
}

.posts-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.filter-pill {
  padding: 0.55rem 1rem;
  background: transparent;
  border: 1px solid #b89b2e;
  border-radius: 25px;
  color: #b89b2e;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-pill:hover {
  background: rgba(184, 155, 46, 0.15);
}

.filter-pill.active {
  background: #b89b2e;
  border-color: #b89b2e;
  color: #fff;
}

.posts-results {
  max-width: 1120px;
  margin: 0 auto 1.5rem;
  color: #555;
  font-size: 0.9rem;
}

.posts-empty {
  max-width: 1120px;
  margin: 3rem auto;
  color: #555;
  font-size: 1rem;
  text-align: center;
}

.post-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 1.75rem;
  background: #fff;
  border-top: 6px solid #b89b2e;
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.12);
}

.post-card[hidden] {
  display: none;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #b89b2e;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-card h2 {
  margin: 1.1rem 0 0.6rem;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.4rem;
  line-height: 1.2;
  text-align: left;
}

.post-card p {
  color: #000;
  font-size: 0.95rem;
  line-height: 1.6;
}

.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.25rem;
}

.post-author {
  font-size: 0.78rem;
  font-weight: 700;
}

.post-link {
  display: inline-block;
  padding: 0.6rem 0.9rem;
  border: 1px solid #b89b2e;
  border-radius: 25px;
  color: #b89b2e;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.post-link:hover {
  background: #b89b2e;
  color: #fff;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.page-btn {
  display: inline-block;
  min-width: 2.6rem;
  padding: 0.55rem 0.75rem;
  background: #fff;
  border: 1px solid #b89b2e;
  border-radius: 25px;
  color: #b89b2e;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.page-btn:hover:not(:disabled) {
  background: rgba(184, 155, 46, 0.15);
}

.page-btn.active {
  background: #b89b2e;
  border-color: #b89b2e;
  color: #fff;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

[data-theme="dark"] .posts-page {
  background: #121212;
}

[data-theme="dark"] .posts-intro h1,
[data-theme="dark"] .posts-intro p {
  color: #f2f2f2;
}

[data-theme="dark"] .posts-search input {
  background: #2a2a2a;
  color: #f2f2f2;
}

[data-theme="dark"] .posts-results,
[data-theme="dark"] .posts-empty {
  color: #ccc;
}

[data-theme="dark"] .post-card {
  background: #2a2a2a;
}

[data-theme="dark"] .post-card p {
  color: #f2f2f2;
}

[data-theme="dark"] .page-btn {
  background: #2a2a2a;
}

@media (max-width: 700px) {
  .posts-site nav {
    padding: 1.25rem;
  }

  .posts-site .menu-toggle {
    display: flex;
  }

  .posts-site .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0 1.25rem 1rem;
    background: #000;
  }

  .posts-site .nav-links.active {
    display: flex;
  }

  .posts-site .nav-links li {
    padding: 0.75rem 0;
  }

  .posts-page {
    padding: 7rem 1.25rem 3rem;
  }

  .posts-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }
}
