/* CSS Variables - Sharp/Square Design Inspired by Thorn.org */
:root {
  --primary-color: #175794; /* Chugo Blue */
  --primary-dark: #0f3c66; /* Darker shade */
  --primary-light: #2a6ba5; /* Lighter shade */
  --secondary-color: #f87b5e; /* Accent Orange/Peach */
  --secondary-dark: #e05a3d; /* Darker shade */
  --dark-text: #2c4550; /* Dark teal-gray */
  --light-text: #666;
  --background-light: #f7f6f5; /* Light peach-white */
  --background-white: #fff;
  --font-heading: "Merriweather", serif;
  --font-body: "Open Sans", sans-serif;
  --border-radius: 0; /* Sharp/square - no radius */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-body);
}

body {
  padding-top: 135px;
  background-color: var(--background-white);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-text);
}

.navbar {
  width: 100%;
  padding: 1.2rem 0;
  position: fixed;
  top: 0;
  z-index: 1000;
  background-color: var(--background-white);
  box-shadow: 0 2px 1px rgba(0, 0, 0, 0.1);
  /* background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent); */
}

.nav-container {
  max-width: 85%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 90px;
  margin-right: 12px;
}

.nav-links a {
  margin-left: 2rem;
  text-decoration: none;
  color: rgba(44, 44, 44, 0.9);
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  transition: uppercase;
  letter-spacing: 0.5px;
}

.nav-links a:hover {
  color: var(--primary-color);
  transition: 0.2s ease-in-out;
}

.btn-donate-nav {
  margin-left: 2rem;
  padding: 0.8rem 1.8rem;
  background: var(--secondary-color);
  color: #fff;
  border: none;
  font-family: var(--font-heading);
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.5px;
  font-size: 0.95rem;
}

.btn-donate-nav i {
  font-size: 1rem;
}

.btn-donate-nav span {
  display: inline;
}

.btn-donate-nav:hover {
  background: var(--secondary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(248, 123, 94, 0.4);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #333;
}

.hero-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  text-align: left;
  color: #fff;
  padding-left: 10%;
}

@media (max-width: 768px) {
  .hero-section {
    padding-left: 0;
  }
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.hero-content {
  position: relative;
  padding: 3rem 4rem;
}

.hero-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.2);
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 15%,
    black 85%,
    transparent 100%
  ),
  linear-gradient(
    to bottom,
    transparent 0%,
    black 15%,
    black 85%,
    transparent 100%
  );
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 15%,
    black 85%,
    transparent 100%
  ),
  linear-gradient(
    to bottom,
    transparent 0%,
    black 15%,
    black 85%,
    transparent 100%
  );
  mask-composite: intersect;
  z-index: -1;
}

.hero-content > * {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 3.2rem;
  font-family: var(--font-heading);
  margin-bottom: 1rem;
  line-height: 1.2;
  font-weight: 700;
}

.hero-tagline {
  font-size: 1.1rem;
  font-family: var(--font-heading);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-weight: 700;
  opacity: 0.95;
}

.hero-content p {
  font-size: 1.2rem;
  font-family: var(--font-body);
  margin-bottom: 2rem;
  max-width: 600px;
  line-height: 1.6;
  font-weight: 400;
}

.hero-buttons {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.hero-buttons a {
  /* color: #fff; */
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  transition: 0.3s;
}

.hero-buttons a:hover {
  color: var(--primary-color);
}

/* Buttons - Sharp/Square Design */
.btn-primary,
.plumb-button {
  padding: 1rem 2rem;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  color: var(--background-white);
  background-color: var(--primary-color);
  background-image: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
  border-radius: var(--border-radius);
  font-family: var(--font-heading);
  line-height: 1.4;
  letter-spacing: 0.5px;
  box-sizing: border-box;
}

.plumb-button {
  margin: 2rem 1rem 2rem 0;
}

.btn-primary:hover,
.plumb-button:hover {
  background-color: var(--primary-dark);
}

.plumb-button.midnight-button {
  background-color: var(--dark-text);
  color: #fff;
}

.plumb-button.midnight-button:hover {
  background-color: #1a3440;
}

.plumb-button.coral-button {
  background-color: var(--secondary-color);
  color: #fff;
}

.plumb-button.coral-button:hover {
  background-color: var(--secondary-dark);
}

.plumb-button.outline-button {
  background-color: transparent;
  color: var(--dark-text);
  border: 2px solid var(--dark-text);
}

.plumb-button.outline-button:hover {
  background-color: var(--dark-text);
  color: #fff;
}

.btn-secondary {
  padding: calc(1rem - 2px) calc(2rem - 2px);
  border: 2px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  border-radius: var(--border-radius);
  box-sizing: border-box;
  line-height: 1.4;
  letter-spacing: 0.5px;
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: #fff;
}

.btn-outline {
  padding: calc(1rem - 2px) calc(2rem - 2px);
  border: 2px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  border-radius: var(--border-radius);
  box-sizing: border-box;
  line-height: 1.4;
  letter-spacing: 0.5px;
}

.btn-outline:hover {
  background: var(--primary-color);
  color: #fff;
}

/* General Section Styles */
.section {
  padding: 3.5rem 0;
}

.container {
  max-width: 85%;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--dark-text);
  margin-bottom: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
}

.section-title p {
  font-size: 1rem;
  color: var(--light-text);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Split Layout (Image + Text) */
.split-layout {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 4rem;
}

.split-layout:nth-child(even) {
  flex-direction: row-reverse;
}

.split-content {
  flex: 1;
}

.split-content h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.3;
}

.split-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 1.5rem;
}

.split-image {
  flex: 1;
  position: relative;
  z-index: 1;
}

.split-image img {
  width: 100%;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
  display: block;
}

.split-image::before {
  content: "";
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  width: 100%;
  height: 100%;
  border: 2px solid var(--primary-color);
  z-index: -1;
  opacity: 0.5;
  transition: 0.3s ease;
}

.split-layout:hover .split-image::before {
  top: 1.5rem;
  left: 1.5rem;
  opacity: 1;
}

/* NEW: Announcement Section */
.announcement-section {
  background-color: var(--primary-dark);
  color: #fff;
  padding: 1.5rem 0;
}

.announcement-content {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.5rem;
}

.announcement-content i {
  font-size: 2rem;
  opacity: 0.8;
}

.announcement-text h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
  letter-spacing: 0.5px;
}

.announcement-text p {
  margin: 0;
  color: #e0e0e0;
  font-size: 1rem;
}

.announcement-text a {
  color: var(--secondary-color);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.announcement-text a:hover {
  text-decoration: underline;
}

/* NEW: Impact Snippet Section */
.impact-snippet-section {
  background-color: var(--background-white);
}

.impact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.impact-text h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--dark-text);
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.impact-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--light-text);
  margin-bottom: 2rem;
}

.impact-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  text-align: center;
  border-left: 3px solid #e0e0e0;
  padding-left: 4rem;
}

.stat-block h3 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.stat-block p {
  font-size: 1.1rem;
  color: var(--light-text);
}

@media (max-width: 900px) {
  .impact-grid {
    grid-template-columns: 1fr;
  }
  .impact-stats {
    border-left: none;
    padding-left: 0;
    border-top: 3px solid #e0e0e0;
    padding-top: 2rem;
  }
}

@media (max-width: 768px) {
  .announcement-content {
    flex-direction: column;
    gap: 1rem;
  }
  .announcement-text h4 {
    font-size: 1.1rem;
  }
}
/* Stats / Achievements */
.stats-section {
  background-color: var(--background-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: block;
}

.stat-item h3 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.stat-item p {
  font-size: 1.2rem;
  color: var(--light-text);
}

/* Partners */
.partners-section {
  padding: 4rem 0;
}
.partners-grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 2rem;
}

.partner-logo {
  height: 80px;
  opacity: 0.7;
  transition: 0.3s;
  filter: grayscale(100%);
}

.partner-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.team-member {
  background: #fff;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
  padding-bottom: 1.5rem;
}

.team-member:hover {
  transform: translateY(-5px);
}

.member-image {
  height: 300px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.3s;
}

.team-member:hover .member-image img {
  transform: scale(1.05);
}

.team-member h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--dark-text);
  margin-bottom: 0.3rem;
}

.team-member p {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Programs Grid */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 2rem;
}

.program-card {
  background: #fff;
  /* border-radius: var(--border-radius); */
  overflow: hidden;
  transition: transform 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.program-card:hover {
  transform: translateY(-5px);
}

.program-image {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.program-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.program-card:hover .program-image img {
  transform: scale(1.1);
}

.program-content {
  padding: 2rem;
  flex: 1;
  border: 1px solid #eee;
  border-top: none;
  /* border-radius: 0 0 8px 8px; */
}

.program-content h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.program-content p {
  color: var(--light-text);
  line-height: 1.6;
  font-size: 1rem;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(8px);
}

.modal-overlay.is-hidden {
  display: none !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal-content {
  background: #fff;
  padding: 0;
  width: 95%;
  max-height: 95vh;
  max-width: 1000px;
  position: relative;
  display: flex;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-left {
  flex: 0.8;
  background-color: var(--primary-dark);
  display: none;
  position: relative;
}

.modal-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.story-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 3rem 2rem;
  background: linear-gradient(to top, var(--primary-dark) 20%, transparent 80%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: left;
}

.story-overlay p {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  line-height: 1.5;
  font-style: italic;
  font-weight: 500;
  border-left: 3px solid var(--secondary-color);
  padding-left: 1.5rem;
}

.modal-right {
  flex: 1.2;
  padding: 2rem;
  text-align: left;
  overflow-y: auto;
  max-height: 95vh;
}

.modal-header {
  margin-bottom: 1.5rem;
}

.modal-header h3 {
  font-size: 1.8rem;
  font-family: var(--font-heading);
  color: var(--primary-color);
  margin-bottom: 0.4rem;
  line-height: 1.1;
}

.modal-header p {
  color: var(--light-text);
  font-size: 0.95rem;
}

.payment-details-modern {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.pay-info-box {
  padding: 1rem;
  background-color: #f8f9fa;
  border: 1px solid #edf0f2;
}

.pay-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  font-weight: 700;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pay-label i {
  color: var(--primary-color);
}

.pay-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-color);
  font-family: var(--font-heading);
  line-height: 1.2;
}

.pay-value-small {
  color: var(--dark-text);
  font-weight: 700;
  font-size: 0.85rem;
}

.modal-partner-footer {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid #eee;
}

.partner-logos-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.partner-logo-sm {
  height: 30px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: 0.3s;
}

.partner-logo-sm:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.trust-text {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #777;
  font-size: 0.85rem;
  font-style: italic;
}

.trust-text i {
  color: #28a745;
  font-size: 1rem;
}

.donation-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.preset-card {
  border: 1px solid #eee;
  padding: 1rem;
  text-align: center;
  transition: all 0.2s;
  background-color: #fff;
  cursor: pointer;
}

.preset-card:hover {
  border-color: var(--primary-color);
  background-color: #f8fbff;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(23, 87, 148, 0.1);
}

.preset-card.active {
  border-color: var(--primary-color);
  background-color: #edf4fc;
  box-shadow: 0 3px 8px rgba(23, 87, 148, 0.15);
}

/* Custom amount + donor form rows */
.custom-amount-row {
  margin-bottom: 1rem;
}

.custom-amount-row input,
.donor-details-form input {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid #dde3e9;
  background: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--dark-text);
  transition: border-color 0.2s;
  box-sizing: border-box;
  margin-bottom: 0;
}

.custom-amount-row input:focus,
.donor-details-form input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.donor-details-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

/* IntaSend donate button */
.btn-intasend-donate {
  display: block;
  width: 100%;
  padding: 1rem;
  background: var(--secondary-color);
  color: #fff;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-bottom: 0.75rem;
  text-align: center;
  letter-spacing: 0.5px;
}

.btn-intasend-donate:hover {
  background: #c0392b;
  transform: translateY(-1px);
}

/* Feedback states */
.feedback-message.feedback-success {
  color: #1a7a3e;
  background: #e6f9ee;
  padding: 0.6rem 1rem;
  border-left: 3px solid #1a7a3e;
}

.feedback-message.feedback-error {
  color: #b0220d;
  background: #fdf0ed;
  padding: 0.6rem 1rem;
  border-left: 3px solid #c0392b;
}

.preset-card .amount {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.3rem;
}

.preset-card .label {
  font-size: 0.75rem;
  color: var(--light-text);
  line-height: 1.3;
  display: block;
}

@media (max-width: 768px) {
  .payment-details-modern, .donation-presets {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .modal-right {
    padding: 2rem;
  }
  .donor-details-form {
    grid-template-columns: 1fr;
  }
}

.close-modal {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  transition: 0.2s;
}

.close-modal:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* M-Pesa Paybill Box */
.mpesa-paybill-box {
  background: linear-gradient(135deg, #00a651 0%, #008744 100%);
  color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  margin: 1.5rem 0 2rem 0;
  box-shadow: 0 4px 12px rgba(0, 166, 81, 0.3);
}

.paybill-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.paybill-header i {
  font-size: 2rem;
}

.paybill-header h4 {
  font-size: 1.3rem;
  font-family: var(--font-heading);
  margin: 0;
  font-weight: 700;
}

.paybill-details {
  background: rgba(255, 255, 255, 0.15);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
}

.paybill-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.paybill-item:last-child {
  border-bottom: none;
}

.paybill-label {
  font-size: 0.95rem;
  opacity: 0.9;
}

.paybill-value {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
  letter-spacing: 1px;
}

.paybill-instructions {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.2rem;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
}

.paybill-instructions p {
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.paybill-instructions ol {
  margin-left: 1.2rem;
  line-height: 1.8;
}

.paybill-instructions ol li {
  margin-bottom: 0.5rem;
}

.paybill-instructions strong {
  font-weight: 800;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.1rem 0.4rem;
  border-radius: var(--border-radius);
}

.modal-header h3 {
  font-size: 1.8rem;
  font-family: var(--font-heading);
  color: #333;
  margin-bottom: 0.5rem;
}

.modal-header p {
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
}

.custom-amount {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.custom-amount p {
  margin-bottom: 1rem;
  color: var(--light-text);
  font-weight: 600;
}

.custom-amount input {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.custom-amount input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.custom-amount button {
  width: 100%;
  padding: 0.8rem;
  background: var(--primary-color);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}

.custom-amount button:hover {
  background: #0f3c66;
}

.feedback-message {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  font-weight: 700;
  min-height: 1.2em;
}

.feedback-message.error {
  color: #dc3545;
}

.feedback-message.success {
  color: #28a745;
}

.trust-badges {
  margin-top: 1.5rem;
  padding-top: 1rem;
  text-align: center;
}

.trust-badges img {
  max-width: 100%;
  height: auto;
}

/* Video Wrapper */
.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  background-color: #000;
  cursor: pointer;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Video Placeholder & Play Button */
.video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000;
}

.video-placeholder img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.video-wrapper:hover .video-placeholder img {
  opacity: 0.6;
}

.play-button {
  position: relative;
  z-index: 2;
  width: 80px;
  height: 80px;
  background: rgba(23, 87, 148, 0.9); /* primary color with alpha */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, background 0.3s ease;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 2rem;
  padding-left: 5px; /* Visual optical alignment for play icon */
}

.video-wrapper:hover .play-button {
  transform: scale(1.1);
  background: var(--primary-color);
}

/* Highlights Page Specifics */
.featured-story {
  display: flex;
  flex-direction: row-reverse; /* Image on the right */
  gap: 2rem;
  align-items: center;
  background: var(--background-white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  margin-bottom: 2rem;
}

.featured-image {
  flex: 1;
}

.featured-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  object-fit: cover;
}

.featured-content {
  flex: 1;
}

.story-tag {
  display: inline-block;
  background: #eef4fa;
  color: var(--primary-color);
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  letter-spacing: 1px;
}

.featured-content h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--dark-text);
  line-height: 1.2;
}

.story-date {
  display: block;
  color: #888;
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
  font-style: italic;
}

.category-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(23, 87, 148, 0.9); /* primary color with alpha */
  color: #fff;
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.story-date-sm {
  font-size: 0.8rem;
  color: #999;
  display: block;
  margin-bottom: 0.5rem;
}

@media (max-width: 900px) {
  .featured-story {
    flex-direction: column-reverse; /* Stack image on top on mobile */
    padding: 1.5rem;
  }
  .featured-content {
    padding: 0;
  }
  .featured-image {
    height: 250px;
    width: 100%;
  }
}

/* Impact Page Styles */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.impact-card {
  background: #fff;
  border: 1px solid #eee;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  position: relative;
  /* border-radius: var(--border-radius); */
}

.impact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.fundraiser-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--secondary-color);
  color: #fff;
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.impact-icon {
  margin-bottom: 1.5rem;
}

.impact-icon .impact-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.impact-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--dark-text);
}

.impact-amount {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-family: var(--font-body);
}

.btn-donate-card {
  margin-top: 1.5rem;
  padding: 0.6rem 1.5rem;
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}

.impact-card:hover .btn-donate-card {
  background: var(--primary-color);
  color: #fff;
}

/* NEW: CTA Section */
.cta-section {
  background: var(--primary-color);
  color: #fff;
  text-align: left;
  padding: 6rem 0;
  overflow: hidden;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.cta-section h2 {
  font-family: var(--font-heading);
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: #fff;
  line-height: 1.1;
}

.cta-content p {
  font-size: 1.3rem;
  margin: 0 0 2.5rem;
  color: #e0e0e0;
  line-height: 1.6;
}

.cta-section .btn-primary {
  background: #fff;
  color: var(--primary-color);
  border: 2px solid #fff;
}
.cta-section .btn-primary:hover {
  background: transparent;
  color: #fff;
}

.cta-image-wrapper {
  position: relative;
  padding: 1rem;
}

.cta-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-image-wrapper::before {
  content: "";
  position: absolute;
  top: 2rem;
  left: 2rem;
  width: 92%;
  height: 92%;
  border: 2px solid var(--secondary-color);
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 900px) {
  .cta-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .cta-image-wrapper {
    order: -1;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  .cta-image-wrapper::before {
    top: 1rem;
    left: 1rem;
  }
}

/* Video Fallback Link */
.video-fallback {
  text-align: center;
  margin-top: 1rem;
}

.video-fallback a {
  color: var(--light-text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.video-fallback a:hover {
  color: #ff0000; /* YouTube Red */
}

/* Footer Styles */
footer {
  background: #1a1a1a;
  color: #fff;
  padding: 4rem 0 1rem;
  margin-top: auto;
}

.footer-container {
  max-width: 85%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  font-size: 1.2rem;
  font-family: var(--font-heading);
  margin-bottom: 1.5rem;
  color: #fff;
}

.footer-section p,
.footer-section a {
  color: #bbb;
  display: block;
  margin-bottom: 0.8rem;
  text-decoration: none;
  line-height: 1.6;
}

.footer-section a:hover {
  color: #fff;
  padding-left: 5px;
  transition: 0.3s;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 35px;
  height: 35px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius);
  transition: 0.3s;
  margin-left: 0;
}

.social-links a:hover {
  background: var(--primary-color);
  padding-left: 0;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--light-text);
  font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 1250px) {
  .nav-container {
    position: relative;
  }

  .nav-actions {
    gap: 0.75rem;
  }

  .hamburger {
    display: block;
  }

  .btn-donate-nav {
    margin-left: 0;
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }

  .btn-donate-nav span {
    display: inline;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    align-items: center;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transform: none;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    display: flex;
    z-index: 999;
    border-top: 1px solid #eee;
  }

  .nav-links.active {
    max-height: 600px;
    padding: 2rem 0;
  }

  .nav-links a {
    margin: 1rem 0;
    margin-left: 0;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 900px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .split-layout,
  .split-layout:nth-child(even) {
    flex-direction: column;
  }
}

/* Tablet & small screen font scaling */
@media (max-width: 768px) {
  body {
    padding-top: 100px;
    font-size: 15px;
  }

  .logo img {
    height: 65px;
  }

  .navbar {
    padding: 0.8rem 0;
  }

  .hero-section {
    height: 85vh;
    padding-left: 5%;
    padding-right: 5%;
    text-align: center;
    justify-content: center;
  }

  .hero-content {
    padding: 2rem 1.5rem;
  }

  .hero-content h1 {
    font-size: 2rem;
    line-height: 1.25;
  }

  .hero-tagline {
    font-size: 0.85rem;
    letter-spacing: 2px;
  }

  .hero-content p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-buttons a,
  .btn-primary,
  .btn-secondary,
  .btn-outline {
    padding: 0.85rem 1.5rem;
    font-size: 0.9rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }

  .section-title p {
    font-size: 0.95rem;
  }

  .split-content h3 {
    font-size: 1.5rem;
  }

  footer {
    padding: 2rem 0 1rem;
  }

  .footer-section h4 {
    font-size: 1rem;
  }

  .footer-section p,
  .footer-section a {
    font-size: 0.9rem;
  }
}

/* Phone-specific font scaling */
@media (max-width: 480px) {
  body {
    padding-top: 90px;
    font-size: 14px;
  }

  .logo img {
    height: 55px;
  }

  .btn-donate-mobile {
    padding: 0.5rem 0.85rem;
    font-size: 0.78rem;
  }

  .hamburger {
    font-size: 1.5rem;
  }

  .hero-section {
    height: 80vh;
  }

  .hero-content {
    padding: 1.5rem 1.25rem;
  }

  .hero-content h1 {
    font-size: 1.65rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
  }

  .hero-tagline {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
  }

  .hero-content p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .hero-buttons a,
  .btn-primary,
  .btn-secondary,
  .btn-outline,
  .plumb-button {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
  }

  .section {
    padding: 2rem 0;
  }

  .container {
    max-width: 92%;
  }

  .section-title h2 {
    font-size: 1.35rem;
  }

  .section-title p {
    font-size: 0.9rem;
  }

  .split-content h3 {
    font-size: 1.3rem;
  }

  .split-content p {
    font-size: 0.9rem;
  }

  /* Modal adjustments for phones */
  .modal-content {
    width: 95%;
    max-height: 90vh;
  }

  .modal-header h3 {
    font-size: 1.25rem;
  }

  .modal-header p {
    font-size: 0.9rem;
  }

  .preset-card .amount {
    font-size: 1rem;
  }

  .preset-card .label {
    font-size: 0.8rem;
  }
}

@media (min-width: 768px) {
  .modal-left {
    display: block;
  }
}

/* 404 Error Page */
.error-hero {
  height: 85vh;
  min-height: 500px;
}

.error-code {
  font-size: 12rem;
  font-weight: 700;
  line-height: 0.8;
  opacity: 0.2;
  margin-bottom: -2rem;
  color: #fff;
}

.error-content h2 {
  font-size: 3.5rem;
}
/* ============================================
   Thorn.org-Inspired Styles - Sharp/Square Design
   ============================================ */

/* Remove all border-radius globally */
*,
*::before,
*::after {
  border-radius: var(--border-radius) !important;
}

/* WP Block Group Styles */
.wp-block-group {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background-size: cover;
  background-position: center center;
  position: relative;
}

.wp-block-group.alignfull {
  width: 100vw;
  max-width: none;
  margin-left: calc((100vw - 100%) / -2);
}

.wp-block-group.alignwide {
  max-width: 1140px;
  margin: 0 auto;
  width: 90vw;
}

.wp-block-group__inner-container {
  margin: 0 auto;
  width: 90vw;
  max-width: 1140px;
}

.wp-block-group.has-background {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

/* Hero Text Block */
.hero-text-block {
  text-align: center;
  padding: 4rem 0 2rem;
}

.hero-text-block h1 {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 500;
  margin: 1rem 0;
  line-height: 1.1;
  color: var(--dark-text);
}

.hero-text-block .font-size-large {
  font-size: 2.6rem;
  line-height: 1.4;
  color: var(--light-text);
  margin: 2rem 0;
}

/* WP Block Columns */
.wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin: 2rem 0;
}

.wp-block-columns.has-2-columns .wp-block-column {
  flex: 1 1 calc(50% - 1.5rem);
  min-width: 0;
}

.wp-block-column {
  flex: 1;
  min-width: 0;
}

/* WP Block Text */
.wp-block-text {
  margin: 2rem 0;
}

.wp-block-text h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  margin: 1rem 0;
  line-height: 1.1;
  color: var(--dark-text);
}

.wp-block-text h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  margin: 1rem 0;
  color: var(--dark-text);
}

.wp-block-text p {
  font-size: 1.8rem;
  line-height: 1.5;
  color: var(--dark-text);
  margin: 2rem 0;
}

.wp-block-text .font-size-small {
  font-size: 1.4rem;
}

.wp-block-text .statistic {
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
  line-height: 1;
  margin: 0.5rem 0;
}

.wp-block-text.aligncenter {
  text-align: center;
}

/* WP Block Separator */
.wp-block-separator {
  border: none;
  border-top: 2px solid #eaeced;
  margin: 2rem 0;
}

/* WP Block Video */
.wp-block-video {
  display: flex;
  gap: 3rem;
  margin: 2rem 0;
}

.wp-block-video .thumbnail {
  display: block;
  position: relative;
  overflow: hidden;
}

.wp-block-video .thumbnail img {
  display: block;
  width: 100%;
  height: auto;
}

.wp-block-video .thumbnail span {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--dark-text);
  opacity: 0.8;
}

.wp-block-video .thumbnail .button-placement {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  padding-bottom: 12rem;
  font-size: 2.8rem;
  max-width: 32rem;
  text-align: center;
  font-weight: 300;
  line-height: 1.2;
  z-index: 10;
}

.wp-block-video .thumbnail .button-placement::before {
  content: "";
  display: block;
  position: absolute;
  z-index: 15;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 9rem;
  height: 9rem;
  background: #fff;
  z-index: 15;
  bottom: 0.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232c4550'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  background-size: 30%;
  background-position: 53% center;
  background-repeat: no-repeat;
}

/* Call to Action Section */
.wp-block-call-to-action {
  margin: 4rem 0;
}

.wp-block-call-to-action .wp-block-custom {
  padding: 6rem 0;
  background: var(--background-light);
}

.wp-block-call-to-action .container {
  max-width: 1140px;
  margin: 0 auto;
  width: 90vw;
}

.wp-block-call-to-action .cta-content {
  text-align: center;
  margin-bottom: 3rem;
}

.wp-block-call-to-action .cta-content h2 {
  font-family: var(--font-heading);
  font-size: 3.4rem;
  font-weight: 600;
  margin: 1rem 0;
  color: var(--dark-text);
}

.wp-block-call-to-action .cta-content h6 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: var(--dark-text);
}

.wp-block-call-to-action .buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.wp-block-call-to-action .cta {
  margin-top: 3rem;
  text-align: center;
}

.wp-block-call-to-action .cta .content {
  max-width: 600px;
  margin: 0 auto;
}

.wp-block-call-to-action .cta .content p {
  font-size: 1.8rem;
  line-height: 1.5;
  margin: 1rem 0;
}

/* Featured Story Grid */
.featured-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin: 3rem 0;
}

.featured-content {
  padding: 1rem 0;
}

.story-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
}

.featured-content h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0.5rem 0;
  color: var(--dark-text);
}

.featured-content p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--light-text);
  margin: 1rem 0;
}

.featured-image {
  position: relative;
}

.featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive Design */
@media (max-width: 1060px) {
  .wp-block-columns.has-2-columns .wp-block-column {
    flex: 1 1 100%;
  }

  .featured-story-grid {
    grid-template-columns: 1fr;
  }

  .hero-text-block h1 {
    font-size: 3rem;
  }

  .hero-text-block .font-size-large {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .wp-block-group {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .wp-block-group.has-background {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .hero-text-block h1 {
    font-size: 2.5rem;
  }

  .wp-block-text h2 {
    font-size: 2rem;
  }

  .wp-block-call-to-action .cta-content h2 {
    font-size: 2.5rem;
  }
}

/* Legal Pages Styling */
.legal-content {
  font-family: var(--font-body);
  line-height: 1.8;
  color: var(--dark-text);
}

.legal-content h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal-content h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--dark-text);
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
}

.legal-content p {
  margin-bottom: 1rem;
}

.legal-content ul {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.legal-content ul li {
  margin-bottom: 0.5rem;
}

.legal-content strong {
  color: var(--primary-color);
  font-weight: 700;
}

/* ===========================================
   STORY/ARTICLE PAGE STYLES
   =========================================== */

/* Story Hero */
.story-hero .hero-content {
  max-width: 800px;
}

.story-category-badge {
  display: inline-block;
  background: var(--secondary-color);
  color: #fff;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.story-meta {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

.story-meta i {
  margin-right: 0.5rem;
}

/* Story Article */
.story-article {
  padding: 4rem 0;
}

.story-article .container {
  max-width: 900px;
}

.story-video {
  margin-bottom: 3rem;
}

.story-body {
  font-size: 1.15rem;
  line-height: 1.8;
}

.story-body p {
  margin-bottom: 1.5rem;
  color: var(--dark-text);
}

.story-body h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--primary-color);
  margin: 2.5rem 0 1rem;
}

.story-body blockquote {
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  background: var(--background-light);
  font-style: italic;
  font-size: 1.2rem;
}

.story-body blockquote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary-color);
}

.story-figure {
  margin: 2rem 0;
}

.story-figure img {
  width: 100%;
  height: auto;
}

.story-figure figcaption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--light-text);
  margin-top: 0.75rem;
  font-style: italic;
}

/* Story Gallery */
.story-gallery-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.story-gallery-section h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--dark-text);
}

.story-gallery-section h3 i {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

.story-gallery {
  display: grid;
  gap: 1rem;
}

.story-gallery.inline-gallery {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin: 2rem 0;
}

.story-gallery.full-gallery {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.gallery-item {
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Story Tags */
.story-tags {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.story-tags .tag {
  display: inline-block;
  background: var(--background-light);
  padding: 0.4rem 0.8rem;
  margin: 0.25rem;
  font-size: 0.85rem;
  color: var(--light-text);
}

/* Story Share */
.story-share {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--background-light);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.story-share span {
  font-weight: 600;
  color: var(--dark-text);
}

.share-buttons {
  display: flex;
  gap: 0.5rem;
}

.share-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  text-decoration: none;
  transition: opacity 0.3s;
}

.share-btn:hover {
  opacity: 0.8;
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.whatsapp { background: #25d366; }

/* Related Stories */
.related-stories .story-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.related-stories .story-card h3 {
  color: var(--dark-text);
  transition: color 0.3s;
}

.related-stories .story-card:hover h3 {
  color: var(--primary-color);
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 3000;
  justify-content: center;
  align-items: center;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-image {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 1rem;
  transition: opacity 0.3s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 0.7;
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
}

.lightbox-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-caption {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.95rem;
  text-align: center;
}

/* Mobile Responsive for Stories */
@media (max-width: 768px) {
  .story-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .story-body {
    font-size: 1.05rem;
  }
  
  .story-share {
    flex-direction: column;
    text-align: center;
  }
  
  .story-gallery.full-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* HTMX loading indicators (used for boosted forms + SPA navigation) */
.htmx-indicator {
  display: none;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  display: inline-block;
}

/* Inline styles on form submit buttons set cursor/opacity, so use !important */
.btn-primary:disabled {
  opacity: 0.65 !important;
  cursor: not-allowed !important;
}
