:root {
  --color-background: #1b0d06;
  --color-surface: #251107;
  --color-primary: #f1892d;
  --color-primary-dark: #c86116;
  --color-accent: #ffb962;
  --color-text: #fff6ea;
  --color-muted: #f3cfa5;
  --color-border: rgba(241, 137, 51, 0.2);
  --max-width: 1280px;
  --shadow-soft: 0 22px 44px rgba(168, 72, 20, 0.28);
  --shadow-card: 0 16px 32px rgba(6, 3, 1, 0.35);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: linear-gradient(180deg, #35160a 0%, #241007 55%, #120804 100%);
  color: var(--color-text);
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--color-accent);
}
.container {
  width: min(var(--max-width), calc(100% - 3rem));
  margin: 0 auto;
}
.banner {
  background-color: #1B0D06;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid rgba(255, 184, 108, 0.45);
  display: block;
  padding: 0;
  line-height: 0;
  height: 250px;
}
.banner img {
  width: min(var(--max-width), 100%);
  height: 100%;
  max-height: 250px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  object-position: center top;
}
.banner::after {
  content: none;
}
body.home > header {
  background: linear-gradient(185deg, rgba(23, 9, 4, 0.92) 0%, rgba(109, 40, 16, 0.78) 60%, rgba(35, 20, 13, 0) 100%);
  padding: clamp(1.6rem, 5vw, 2.6rem) 0 clamp(3.5rem, 6vw, 4.6rem);
  position: relative;
  overflow: hidden;
}

body.home > header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('images/main.png');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  opacity: 0.3;
  filter: brightness(0.72) contrast(0.92) sepia(0.25) saturate(0.82);
  z-index: 0;
}

body.home > header > .container {
  position: relative;
  z-index: 1;
}
nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: clamp(2.2rem, 5.5vw, 3.5rem);
  padding: 0 1.25rem;
}
.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  font-weight: 600;
  color: rgba(255, 234, 214, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-wrap: wrap;
  justify-content: center;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(241, 137, 51, 0.28);
  background: linear-gradient(180deg, rgba(40, 16, 6, 0.92), rgba(22, 8, 3, 0.9));
  color: inherit;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(12, 6, 3, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.nav-links a:hover {
  color: #ffe7c1;
  background: linear-gradient(160deg, rgba(241, 137, 51, 0.22), rgba(40, 16, 6, 0.92));
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}
.nav-links a {
  position: relative;
}
.badge-new {
  display: inline-block;
  background: linear-gradient(135deg, #f1892d, #ff6b35);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 8px;
  margin-left: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 6px rgba(241, 137, 51, 0.4);
  vertical-align: middle;
  line-height: 1.2;
}
.hero {
  display: grid;
  gap: clamp(2rem, 4vw, 2.75rem);
  color: #ffeede;
  margin-top: 0;
  text-align: center;
  color: #ffe3bd;
  padding: 0 1rem 0.5rem;
}
.hero h1 {
  color: #fff5e6;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  line-height: 1.12;
  margin: 0;
}
.hero p {
  font-size: 1.05rem;
  color: rgba(255, 240, 224, 0.86);
  margin: 0;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.85rem 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.button.primary {
  background: linear-gradient(140deg, #ffb347, #ff7f00);
  color: #2b1a12;
  box-shadow: var(--shadow-soft);
}
.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(109, 40, 217, 0.18);
}
.button.secondary {
  background: rgba(22, 11, 6, 0.45);
  color: rgba(255, 236, 215, 0.85);
  border: 1px solid rgba(255, 191, 128, 0.3);
}
.section {
  padding: clamp(1.25rem, 4vw, 2.2rem) 0;
  background: rgba(255, 228, 201, 0.04);
}
body.home #about.section {
  background: linear-gradient(180deg, rgba(45, 20, 9, 0.9), rgba(26, 12, 5, 0.88));
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
  color: #ffe9d1;
  margin: 0 auto 1.1rem;
}
.grid {
  display: grid;
  gap: 1.5rem;
}
.grid.columns-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.card {
  display: block;
  background: linear-gradient(180deg, rgba(58, 24, 10, 0.9), rgba(32, 12, 5, 0.88));
  border-radius: 1.25rem;
  padding: 2.1rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(241, 137, 51, 0.3);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
  color: #ffe3bd;
}
.card p {
  color: rgba(255, 244, 232, 0.92);
  margin: 0;
}
.timeline {
  display: grid;
  gap: 1.4rem;
  margin-top: 1.5rem;
}
.timeline-step {
  position: relative;
  padding-left: 3rem;
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 1.1rem;
  padding: 2rem 2rem 2rem 3.2rem;
  background: linear-gradient(180deg, rgba(54, 20, 8, 0.8), rgba(28, 10, 4, 0.72));
  border: 1px solid rgba(241, 137, 51, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.timeline-step::before {
  content: attr(data-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  color: var(--color-primary-dark);
  font-weight: 700;
  display: grid;
  place-items: center;
  background: #fff;
}
.timeline-step h3 {
  margin: 0 0 0.5rem;
}
.timeline-step p {
  margin: 0 0 0.75rem;
  color: rgba(255, 222, 196, 0.85);
}
#prayers .section-title {
  color: #f6cf9d;
}
#prayers p {
  color: rgba(255, 237, 214, 0.9);
}
.prayers {
  display: grid;
  gap: 1.65rem;
  margin-top: 1.6rem;
}
.prayer-card {
  background: linear-gradient(180deg, rgba(50, 18, 6, 0.92), rgba(28, 10, 4, 0.88));
  border: 1px solid rgba(241, 137, 51, 0.32);
  border-radius: 1.25rem;
  padding: 2.1rem;
  box-shadow: var(--shadow-card);
}
.prayer-card header {
  padding: 0;
  background: transparent;
  border-bottom: 1px solid rgba(241, 137, 51, 0.32);
  margin-bottom: 0.55rem;
  padding-bottom: 0.45rem;
}
.prayer-card h3 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: #ffce99;
}
.prayer-card p {
  margin: 0;
  white-space: pre-line;
  color: #ffffff;
}
.callout {
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.09), rgba(251, 191, 36, 0.12));
  border-radius: 1.5rem;
  padding: clamp(2rem, 6vw, 3.5rem);
  text-align: center;
  color: #ffe3bd;
  box-shadow: var(--shadow-soft);
}
.callout h2 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}
.callout p {
  margin: 0 auto 2rem;
  max-width: 540px;
  color: var(--color-muted);
}
footer {
  background: #0f172a;
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0;
}
footer .footer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
footer h4 {
  margin-top: 0;
  color: #fff;
}
footer a {
  color: rgba(255, 255, 255, 0.75);
}
footer a:hover {
  color: #fff;
}
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 1.5rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .timeline-step {
    padding-left: 2.5rem;
  }
}
.scripture-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.scripture-card {
  background: linear-gradient(180deg, rgba(44, 18, 6, 0.88), rgba(26, 10, 4, 0.82));
  border-radius: 1.25rem;
  padding: 1.9rem;
  border: 1px solid rgba(241, 137, 51, 0.3);
  box-shadow: var(--shadow-card);
  position: relative;
}
.scripture-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1.25rem;
  border: 2px solid rgba(217, 119, 6, 0.25);
  pointer-events: none;
}
.scripture-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: #ffddb3;
}
.scripture-card blockquote {
  margin: 0;
  font-size: 1rem;
  font-style: italic;
  color: rgba(255, 245, 232, 0.92);
  line-height: 1.7;
}
@media (max-width: 768px) {
  .scripture-card {
    padding: 1.5rem;
  }
}
.timeline-intro {
  color: #ffe3bd;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  text-align: center;
}
.timeline.paired {
  display: grid;
  gap: 2.5rem;
}
.timeline-row {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(0, 0.35fr);
  gap: 1.4rem;
  align-items: stretch;
}
.timeline-row .timeline-step {
  border-radius: 1.25rem;
  background: rgba(52, 26, 18, 0.94);
  padding: 2.15rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 196, 128, 0.18);
}
.timeline-row .timeline-step h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}
.timeline-row .timeline-step p {
  color: var(--color-muted);
  margin: 0;
}
.timeline-row .scripture-card {
  height: 100%;
}
@media (max-width: 900px) {
  .timeline-row, .timeline-row.reversed {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}
.card.linked-card:hover {
  cursor: pointer;
  transform: translateY(-4px);
  border-color: rgba(255, 190, 110, 0.5);
  background: linear-gradient(180deg, rgba(76, 28, 10, 0.95), rgba(38, 16, 7, 0.93));
  box-shadow: 0 18px 34px rgba(12, 5, 1, 0.45);
}
.timeline-step.linked-step:hover {
  cursor: pointer;
  transform: translateY(-4px);
  border-color: rgba(255, 190, 110, 0.45);
  background: linear-gradient(180deg, rgba(70, 24, 8, 0.75), rgba(32, 12, 5, 0.7));
  box-shadow: 0 16px 28px rgba(8, 3, 1, 0.4);
}
.subpage {
  background: linear-gradient(180deg, #35160a 0%, #241007 55%, #120804 100%);
  color: var(--color-text);
}
.sub-hero {
  padding: clamp(1.6rem, 5vw, 2.6rem) 0;
  background: linear-gradient(160deg, rgba(36, 14, 4, 0.85), rgba(18, 7, 4, 0.75));
  border-bottom: 1px solid rgba(241, 137, 51, 0.25);
}
.sub-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 224, 200, 0.8);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 1.5rem;
  transition: color 0.2s ease;
}
.back-link::before {
  content: "\2190";
  display: inline-block;
  font-size: 0.95rem;
  line-height: 1;
}
.back-link:hover {
  color: #ffb962;
}
.sub-hero h1 {
  margin: 0 0 0.6rem;
}
.sub-hero p {
  margin: 0;
}
.sub-content {
  padding: clamp(1.3rem, 4.5vw, 2.4rem) 0;
}
.sub-card {
  background: linear-gradient(180deg, rgba(45, 20, 9, 0.9), rgba(26, 12, 5, 0.88));
  border-radius: 1.25rem;
  border: 1px solid rgba(241, 137, 51, 0.28);
  padding: clamp(2rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-card);
  color: rgba(255, 244, 232, 0.92);
}
.sub-card p {
  margin: 0;
  line-height: 1.75;
}
.sub-layout {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}
.sub-sidebar {
  width: 260px;
  background: linear-gradient(180deg, rgba(40, 16, 6, 0.92), rgba(22, 8, 3, 0.9));
  border-radius: 1rem;
  border: 1px solid rgba(241, 137, 51, 0.28);
  box-shadow: var(--shadow-card);
  padding: 1.75rem;
  position: sticky;
  top: 2rem;
  color: rgba(255, 244, 232, 0.9);
  align-self: flex-start;
}
.sub-main {
  flex: 1;
}
.sub-nav-section + .sub-nav-section {
  margin-top: 1.75rem;
}
.sub-nav-section h4 {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: #ffb962;
}
.sub-nav-item {
  display: block;
  padding: 0.5rem 0.65rem;
  border-radius: 0.6rem;
  text-decoration: none;
  color: rgba(255, 244, 232, 0.85);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  margin-bottom: 0.35rem;
}
.sub-nav-item:hover {
  background: rgba(241, 137, 51, 0.16);
  color: #ffe7c1;
  transform: translateX(2px);
}
.sub-nav-item.active {
  background: rgba(241, 137, 51, 0.32);
  color: #fff4d8;
  font-weight: 600;
}
.subpage .sub-card p {
  color: rgba(255, 247, 235, 0.92);
}

.menu-toggle {
  position: fixed;
  left: clamp(0.85rem, 4vw, 1.5rem);
  top: clamp(0.85rem, 5vw, 1.75rem);
  z-index: 1200;
  display: none;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(241, 137, 51, 0.3);
  background: rgba(37, 17, 8, 0.94);
  color: #ffe7c1;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 18px 32px rgba(8, 3, 1, 0.45);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.menu-toggle .menu-icon {
  font-size: 1.1rem;
  line-height: 1;
}
.menu-toggle .menu-label {
  font-size: 0.95rem;
}
.menu-toggle:hover {
  color: #ffbc70;
  transform: translateX(1px);
}

.menu-toggle.active {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateX(-40%);
  transition: opacity 0.2s ease;
}
.menu-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 4, 2, 0.68);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}
.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.menu-close {
  display: none;
  align-self: flex-end;
  background: none;
  border: none;
  color: #ffe9d4;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  margin-bottom: 1rem;
  transition: color 0.2s ease, transform 0.2s ease;
}
.menu-close:hover {
  color: #ffbc70;
  transform: scale(1.05);
}
.menu-close:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .sub-content {
    padding-top: clamp(3.1rem, 9vw, 4.25rem);
  }

  .sub-layout {
    flex-direction: column;
    gap: 1.8rem;
  }

  .sub-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(80vw, 320px);
    max-height: none;
    border-radius: 0;
    padding: clamp(1.75rem, 6vw, 2.5rem) clamp(1.35rem, 5vw, 2rem);
    transform: translateX(-110%);
    transition: transform 0.3s ease;
    z-index: 1100;
    box-shadow: 0 24px 52px rgba(8, 3, 1, 0.55);
  }

  .sub-sidebar.open,
  body.menu-open .sub-sidebar {
    transform: translateX(0);
  }

  .menu-close {
    display: inline-flex;
  }

  .sub-sidebar .back-link {
    margin-bottom: 1.1rem;
  }

  .sub-sidebar .sub-nav-section + .sub-nav-section {
    margin-top: 1.5rem;
  }

  body.menu-open {
    overflow: hidden;
  }

  .menu-overlay {
    display: block;
  }

  .sub-main {
    width: 100%;
  }
}

.scripture {
  color: #ffe3bd;
  font-style: italic;
  font-weight: 500;
}


/* interactive link prompts */
.card.linked-card,
.timeline-step.linked-step {
  position: relative;
  cursor: pointer;
}

.card.linked-card {
  overflow: hidden;
}

.card.linked-card::after {
    content: "Click to learn more ->";
  position: absolute;
  right: 1.2rem;
  bottom: 1.1rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 236, 210, 0.9);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.card.linked-card:hover::after,
.card.linked-card:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.timeline-step.linked-step::after {
    content: "Tap to explore ->";
  position: absolute;
  right: 1.5rem;
  bottom: 1.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 230, 200, 0.9);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.timeline-step.linked-step:hover::after,
.timeline-step.linked-step:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.card.linked-card:focus-visible,
.timeline-step.linked-step:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.card.linked-card.sinners-prayer-card::after {
  content: "CLICK FOR EXAMPLES";
}

.card.linked-card.sinners-prayer-card:hover::after,
.card.linked-card.sinners-prayer-card:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

/* Contact Form Styles */
#contact-form input:focus,
#contact-form textarea:focus {
  outline: 2px solid rgba(241, 137, 51, 0.5);
  outline-offset: 2px;
  border-color: rgba(241, 137, 51, 0.5);
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
  color: rgba(255, 246, 234, 0.5);
}

/* Content Image Styles */
.sub-card img.content-image {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 12px 28px rgba(6, 3, 1, 0.4);
  border: 1px solid rgba(241, 137, 51, 0.3);
  display: block;
}

.sub-card img.content-image.full-width {
  width: 100%;
  margin: 2rem 0;
}

.sub-card img.content-image.float-left {
  float: left;
  margin: 0 2rem 1.5rem 0;
  max-width: 350px;
}

.sub-card img.content-image.float-right {
  float: right;
  margin: 0 0 1.5rem 2rem;
  max-width: 350px;
}

.sub-card img.content-image.center {
  margin: 2rem auto;
  display: block;
}

.sub-card img.content-image.hero {
  width: 100%;
  max-width: 600px;
  margin: 2rem auto;
  display: block;
}

@media (max-width: 768px) {
  .sub-card img.content-image.float-left,
  .sub-card img.content-image.float-right {
    float: none;
    margin: 1.5rem auto;
    display: block;
    max-width: 100%;
  }
}

/* Blog Styles */
.blog-listing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  max-width: 100%;
}

@media (min-width: 900px) {
  .blog-listing {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-post-tile {
  background: linear-gradient(180deg, rgba(45, 20, 9, 0.9), rgba(26, 12, 5, 0.88));
  border-radius: 1.25rem;
  border: 1px solid rgba(241, 137, 51, 0.28);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  width: 100%;
}

.blog-post-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 190, 110, 0.5);
  box-shadow: 0 18px 34px rgba(12, 5, 1, 0.45);
}

.blog-tile-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: rgba(22, 8, 3, 0.6);
  display: block;
}

.blog-tile-image img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 200px !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  transition: transform 0.3s ease;
}

.blog-post-tile:hover .blog-tile-image img {
  transform: scale(1.05);
}

.blog-tile-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.blog-tile-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-post-tile h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
  color: #ffe3bd;
  line-height: 1.3;
}

.blog-post-tile h2 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-post-tile h2 a:hover {
  color: var(--color-accent);
}

/* Share Section Styles */
.blog-share-section {
  margin: 1.5rem 0;
  padding: 1rem 0;
  border-top: 1px solid rgba(241, 137, 51, 0.2);
  border-bottom: 1px solid rgba(241, 137, 51, 0.2);
}

.blog-share-section.blog-share-full {
  margin: 2.5rem 0 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(45, 20, 9, 0.6), rgba(26, 12, 5, 0.5));
  border-radius: 1rem;
  border: 1px solid rgba(241, 137, 51, 0.3);
}

.share-label.share-heading {
  color: #ffe3bd;
  font-size: 1.1rem;
  font-weight: 600;
  margin-right: 1rem;
  display: inline-block;
  vertical-align: middle;
}

.share-label {
  color: rgba(255, 244, 232, 0.9);
  font-size: 0.9rem;
  font-weight: 600;
  margin-right: 0.75rem;
  display: inline-block;
  vertical-align: middle;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.share-btn {
  background: rgba(37, 17, 8, 0.8);
  border: 1px solid rgba(241, 137, 51, 0.4);
  border-radius: 0.5rem;
  color: #ffe3bd;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.share-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex-shrink: 0;
}

.share-btn:hover {
  background: rgba(241, 137, 51, 0.3);
  border-color: rgba(241, 137, 51, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.share-btn:active {
  transform: translateY(0);
}

.share-btn.share-facebook:hover {
  background: rgba(24, 119, 242, 0.3);
  border-color: rgba(24, 119, 242, 0.6);
}

.share-btn.share-twitter:hover {
  background: rgba(29, 161, 242, 0.3);
  border-color: rgba(29, 161, 242, 0.6);
}

.share-btn.share-linkedin:hover {
  background: rgba(0, 119, 181, 0.3);
  border-color: rgba(0, 119, 181, 0.6);
}

.share-btn.share-email:hover {
  background: rgba(234, 67, 53, 0.3);
  border-color: rgba(234, 67, 53, 0.6);
}

.share-btn.share-copy:hover {
  background: rgba(76, 175, 80, 0.3);
  border-color: rgba(76, 175, 80, 0.6);
}

.blog-post-image-container {
  position: relative;
  width: 100%;
  margin-bottom: 2rem;
  border-radius: 1rem;
  overflow: hidden;
}

.blog-post-featured-image {
  width: 100% !important;
  max-width: 100% !important;
  max-height: 400px !important;
  height: auto !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

.blog-post-image-container {
  max-width: 100%;
  overflow: hidden;
}


/* Legacy blog-post-card styles (for backward compatibility) */
.blog-post-card {
  background: linear-gradient(180deg, rgba(45, 20, 9, 0.9), rgba(26, 12, 5, 0.88));
  border-radius: 1.25rem;
  border: 1px solid rgba(241, 137, 51, 0.28);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.blog-post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 190, 110, 0.5);
  box-shadow: 0 18px 34px rgba(12, 5, 1, 0.45);
}

.blog-post-card h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.75rem;
  color: #ffe3bd;
}

.blog-post-card h2 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-post-card h2 a:hover {
  color: var(--color-accent);
}

.blog-post-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  color: rgba(255, 244, 232, 0.75);
}

.blog-post-author,
.blog-post-date {
  color: rgba(255, 230, 200, 0.8);
}

.blog-post-excerpt {
  color: rgba(255, 244, 232, 0.92);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.blog-post-link {
  display: inline-block;
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.blog-post-link:hover {
  color: #ffd700;
  transform: translateX(4px);
}

.blog-loading {
  text-align: center;
  padding: 3rem;
  color: rgba(255, 244, 232, 0.8);
}

#postContent {
  color: rgba(255, 244, 232, 0.92);
  line-height: 1.8;
}

#postContent img {
  max-width: 100%;
  height: auto;
  display: block;
}

#postContent p {
  margin-bottom: 1.25rem;
}

#postContent ul,
#postContent ol {
  margin-bottom: 1.25rem;
  padding-left: 2rem;
}

#postContent li {
  margin-bottom: 0.75rem;
  color: rgba(255, 244, 232, 0.92);
}

#postContent h2,
#postContent h3,
#postContent h4 {
  color: #ffe3bd;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

#postContent h2 {
  font-size: 1.75rem;
}

#postContent h3 {
  font-size: 1.5rem;
}

#postContent h4 {
  font-size: 1.25rem;
}

#postContent strong {
  color: #ffe3bd;
  font-weight: 600;
}

#postContent a {
  color: var(--color-accent);
  text-decoration: underline;
}

#postContent a:hover {
  color: #ffd700;
}

#postMeta {
  color: rgba(255, 230, 200, 0.85);
  font-size: 1rem;
}

@media (max-width: 768px) {
  .blog-listing {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    padding: 0;
  }
  
  .blog-post-card {
    padding: 1.75rem;
  }
  
  .blog-post-card h2,
  .blog-post-tile h2 {
    font-size: 1.5rem;
  }
  
  .blog-post-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .blog-tile-image {
    height: 180px;
    max-width: 100%;
    overflow: hidden;
  }
  
  .blog-tile-image img {
    max-height: 180px !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  
  .blog-post-featured-image {
    max-height: 250px !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
  
  .blog-post-image-container {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  
  .blog-share-section {
    margin: 1rem 0;
    padding: 0.75rem 0;
  }
  
  .blog-share-section.blog-share-full {
    margin: 1.5rem 0;
    padding: 1rem;
  }
  
  .share-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .share-btn {
    width: 100%;
    padding: 0.6rem;
    font-size: 0.9rem;
  }
  
  .share-label {
    display: block;
    margin-bottom: 0.5rem;
    text-align: center;
  }
  
  #postContent img {
    max-width: 100% !important;
    height: auto !important;
    width: auto !important;
  }
  
  .sub-card {
    padding: 1.5rem;
    overflow-x: hidden;
  }
}

