/* =============================================
   VEXILLA REGIS - SHARED STYLES
   ============================================= */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&amp;family=Roboto+Slab:wght@300;400;600;700&amp;family=Charm:wght@400;700&amp;family=Nova+Round&amp;display=swap');

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', Helvetica, Arial, sans-serif;
  font-size: 16px;
  color: #333;
  background: #fff;
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ---- HEADER ---- */
.site-header {
  background: #fff;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid #ae1e0c;
}

.site-header .logo img {
  height: 80px;
  width: auto;
}

.site-header .tagline {
  font-family: 'Charm', cursive;
  font-size: 27px;
  color: #ae1e0c;
  font-style: italic;
  text-align: right;
  line-height: 1.3;
}

/* ---- NAVIGATION ---- */
.site-nav {
  background: #510756;
  position: relative;
  z-index: 100;
}

.site-nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

.site-nav ul li a {
  display: block;
  font-family: 'Nova Round', sans-serif;
  font-size: 17px;
  color: #fff;
  padding: 14px 20px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.site-nav ul li a:hover,
.site-nav ul li a.active {
  background: #ae1e0c;
  color: #fff;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 14px 20px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s;
}

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: #510756;
  padding: 60px 40px;
  text-align: center;
}
.page-hero img {
  max-width: 600px;
  margin: 0 auto;
}

/* ---- MAIN CONTENT WRAPPER ---- */
.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 30px;
}

.page-content h1 {
  font-family: 'Roboto Slab', serif;
  font-size: 2.2rem;
  color: #ae1e0c;
  margin-bottom: 20px;
  border-bottom: 2px solid #ae1e0c;
  padding-bottom: 12px;
}

.page-content h2 {
  font-family: 'Roboto Slab', serif;
  font-size: 1.5rem;
  color: #510756;
  margin: 36px 0 14px;
}

.page-content h3 {
  font-family: 'Roboto Slab', serif;
  font-size: 1.2rem;
  color: #333;
  margin: 24px 0 10px;
}

.page-content p {
  margin-bottom: 18px;
  color: #444;
}

.page-content ul.styled-list {
  margin: 0 0 24px 0;
  padding-left: 0;
}
.page-content ul.styled-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  border-bottom: 1px solid #f0f0f0;
  color: #444;
}
.page-content ul.styled-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: #ae1e0c;
  border-radius: 50%;
}

/* ---- HOMEPAGE HERO ---- */
.home-hero {
  position: relative;
  min-height: 480px;
  background: url('../openalliance.buzz/wp-content/uploads/2015/04/cropped-tlo3.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.home-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(81, 7, 86, 0.55);
  z-index: 1;
}
.home-hero .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 40px 20px;
}
.home-hero .hero-content h1 {
  font-family: 'Roboto Slab', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  margin-bottom: 16px;
}
.home-hero .hero-content p {
  font-family: 'Charm', cursive;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-style: italic;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

/* ---- FLIP CARDS SECTION ---- */
.flip-cards-section {
  background: #f8f8f8;
  padding: 70px 30px;
}
.flip-cards-section h2.section-title {
  font-family: 'Roboto Slab', serif;
  font-size: 2rem;
  color: #510756;
  text-align: center;
  margin-bottom: 50px;
}

.flip-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.flip-card {
  height: 280px;
  perspective: 1000px;
  cursor: pointer;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}
.flip-card:hover .flip-card-inner,
.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 24px;
  text-align: center;
}

.flip-card-front {
  background: #510756;
  color: #fff;
}
.flip-card-front .card-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  color: #fff;
  opacity: 0.9;
}
.flip-card-front h3 {
  font-family: 'Roboto Slab', serif;
  font-size: 1.3rem;
  color: #fff;
}

.flip-card-back {
  background: #ae1e0c;
  color: #fff;
  transform: rotateY(180deg);
}
.flip-card-back p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}
.flip-card-back .btn-card {
  display: inline-block;
  border: 2px solid #fff;
  color: #fff;
  padding: 8px 22px;
  border-radius: 4px;
  font-family: 'Roboto', sans-serif;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}
.flip-card-back .btn-card:hover {
  background: #fff;
  color: #ae1e0c;
}

/* ---- NEWS / AKTUALNOSCI SECTION ---- */
.news-section {
  padding: 70px 30px;
  background: #fff;
  max-width: 1200px;
  margin: 0 auto;
}
.news-section h2.section-title {
  font-family: 'Roboto Slab', serif;
  font-size: 2rem;
  color: #ae1e0c;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}
.news-section h2.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #ae1e0c;
  margin: 12px auto 0;
}

/* Carousel */
.carousel-wrapper {
  position: relative;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.4s ease;
}
.news-card {
  min-width: calc(33.333% - 16px);
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: box-shadow 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.news-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.13);
  transform: translateY(-3px);
}
.news-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}
.news-card .card-body {
  padding: 18px 20px;
}
.news-card .card-date {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 6px;
}
.news-card .card-title {
  font-family: 'Roboto Slab', serif;
  font-size: 1rem;
  color: #333;
  line-height: 1.4;
  margin-bottom: 10px;
}
.news-card .card-excerpt {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.5;
}
.news-card .card-link {
  display: inline-block;
  margin-top: 12px;
  color: #ae1e0c;
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.news-card .card-link:hover { border-color: #ae1e0c; }

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}
.carousel-btn {
  background: #510756;
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-btn:hover { background: #ae1e0c; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.2s;
}
.dot.active { background: #ae1e0c; }

/* ---- NEWS LISTING PAGE ---- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 10px;
}

/* ---- CONTACT INFO BOXES ---- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 30px 0;
}
.contact-box {
  background: #f8f5f9;
  border-left: 4px solid #510756;
  border-radius: 6px;
  padding: 24px 26px;
}
.contact-box h3 {
  font-family: 'Roboto Slab', serif;
  font-size: 1rem;
  color: #510756;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.contact-box p, .contact-box a {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.8;
}
.contact-box a:hover { color: #ae1e0c; text-decoration: underline; }

.contact-box.highlight {
  border-left-color: #ae1e0c;
  background: #fff5f4;
}

/* Donation box */
.donation-box {
  background: linear-gradient(135deg, #510756 0%, #ae1e0c 100%);
  color: #fff;
  border-radius: 8px;
  padding: 36px 40px;
  margin: 40px 0;
  text-align: center;
}
.donation-box h2 {
  font-family: 'Roboto Slab', serif;
  font-size: 1.6rem;
  margin-bottom: 14px;
  color: #fff;
}
.donation-box p { color: rgba(255,255,255,0.9); margin-bottom: 10px; }
.donation-box .bank-num {
  font-family: 'Roboto', monospace;
  font-size: 1.05rem;
  letter-spacing: 1px;
  background: rgba(255,255,255,0.15);
  padding: 10px 20px;
  border-radius: 4px;
  display: inline-block;
  margin: 8px 0;
}
.donation-box .btn-paypal {
  display: inline-block;
  margin-top: 18px;
  background: #fff;
  color: #510756;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 6px;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
}
.donation-box .btn-paypal:hover { background: #f0e0f5; }

/* ---- CONTACT FORM ---- */
.contact-form-section {
  background: #f8f8f8;
  border-radius: 8px;
  padding: 40px;
  margin-top: 40px;
}
.contact-form-section h2 {
  font-family: 'Roboto Slab', serif;
  font-size: 1.6rem;
  color: #510756;
  margin-bottom: 24px;
}

#contactForm {
  display: grid;
  gap: 18px;
}
#contactForm .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
#contactForm input,
#contactForm textarea,
#contactForm select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: 'Roboto', sans-serif;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
#contactForm input:focus,
#contactForm textarea:focus {
  outline: none;
  border-color: #510756;
  box-shadow: 0 0 0 3px rgba(81,7,86,0.1);
}
#contactForm textarea { min-height: 140px; resize: vertical; }
#contactForm button[type="submit"] {
  background: #ae1e0c;
  color: #fff;
  border: none;
  padding: 14px 36px;
  font-family: 'Nova Round', sans-serif;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  justify-self: start;
}
#contactForm button[type="submit"]:hover { background: #8a1709; transform: translateY(-1px); }
#contactForm button[type="submit"]:disabled { background: #ccc; cursor: not-allowed; transform: none; }

#formStatus { font-size: 0.95rem; margin-top: 8px; }
#formStatus .success { color: #2e7d32; }
#formStatus .error { color: #c62828; }

/* ---- ABOUT US — special boxes ---- */
.info-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 28px 30px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.info-card h3 {
  font-family: 'Roboto Slab', serif;
  font-size: 1.15rem;
  color: #510756;
  margin-bottom: 12px;
}
.info-card p { margin-bottom: 0; }

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 10px;
}
.partner-box {
  background: #f8f5f9;
  border-left: 4px solid #ae1e0c;
  border-radius: 6px;
  padding: 20px 22px;
}
.partner-box h4 {
  font-family: 'Roboto Slab', serif;
  font-size: 1rem;
  color: #ae1e0c;
  margin-bottom: 8px;
}
.partner-box p { font-size: 0.9rem; color: #555; margin: 0; }

/* ---- HYMN PAGE ---- */
.hymn-text {
  background: #f8f5f9;
  border-radius: 8px;
  padding: 40px;
  margin: 30px 0;
  font-family: 'Roboto Slab', serif;
  font-size: 1rem;
  line-height: 2;
  color: #333;
  border-left: 4px solid #510756;
}
.hymn-text .stanza { margin-bottom: 28px; }
.hymn-text .stanza p { margin-bottom: 0; line-height: 2; }
.hymn-latin {
  font-style: italic;
  color: #510756;
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.hymn-polish { color: #555; font-size: 0.95rem; }

/* ---- DOCUMENTS PAGE ---- */
.doc-list { margin: 20px 0; }
.doc-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  margin-bottom: 12px;
  background: #fff;
  transition: box-shadow 0.2s;
}
.doc-item:hover { box-shadow: 0 3px 12px rgba(0,0,0,0.1); }
.doc-icon {
  font-size: 1.8rem;
  color: #ae1e0c;
  flex-shrink: 0;
}
.doc-info h4 {
  font-family: 'Roboto Slab', serif;
  font-size: 1rem;
  color: #333;
  margin-bottom: 4px;
}
.doc-info p { font-size: 0.85rem; color: #888; margin: 0; }

/* ---- PARTNERS PAGE ---- */
.partners-section { margin-top: 20px; }
.partner-card {
  display: flex;
  gap: 24px;
  padding: 28px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  margin-bottom: 20px;
  background: #fff;
  align-items: flex-start;
}
.partner-card .partner-logo-placeholder {
  width: 80px;
  height: 80px;
  background: #510756;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
}
.partner-card .partner-info h3 {
  font-family: 'Roboto Slab', serif;
  font-size: 1.15rem;
  color: #ae1e0c;
  margin-bottom: 8px;
}
.partner-card .partner-info p { font-size: 0.92rem; color: #555; margin-bottom: 8px; }
.partner-card .partner-info a { color: #510756; font-size: 0.9rem; }
.partner-card .partner-info a:hover { color: #ae1e0c; text-decoration: underline; }

/* ---- FOOTER ---- */
.site-footer {
  background: #323437;
  color: #ccc;
  padding: 50px 40px 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto 30px;
}
.footer-col h4 {
  font-family: 'Roboto Slab', serif;
  font-size: 0.95rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a {
  color: #aaa;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: #fff; }
.footer-col p {
  color: #aaa;
  font-size: 0.9rem;
  line-height: 1.8;
}
.footer-col a.email-link {
  color: #e0a0a0;
  font-size: 0.9rem;
}
.footer-col a.email-link:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid #4a4d50;
  padding-top: 20px;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}
.footer-bottom p { font-size: 0.82rem; color: #777; }
.footer-bottom a {
  color: #777;
  text-decoration: none;
  opacity: 0.5;
  font-weight: 300;
}
.footer-bottom a:hover { color: #aaa; }

/* ---- BREADCRUMB ---- */
.breadcrumb {
  background: #f2e8f5;
  padding: 10px 40px;
  font-size: 0.85rem;
  color: #666;
}
.breadcrumb a { color: #510756; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: #999; margin: 0 6px; }

/* ---- INNER PAGE HERO (with background image) ---- */
.inner-page-hero {
  position: relative;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.inner-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(81, 7, 86, 0.65);
  z-index: 1;
}
.inner-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 60px 30px;
}
.inner-hero-content h1 {
  font-family: 'Roboto Slab', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  margin-bottom: 12px;
  color: #fff;
  border: none;
  padding: 0;
}
.inner-hero-content p {
  font-family: 'Charm', cursive;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-style: italic;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  color: rgba(255,255,255,0.92);
  margin: 0;
}

/* ---- ABOUT PAGE – INTRO ROW ---- */
.about-intro-row {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: center;
  margin-bottom: 50px;
}
.about-intro-logo img {
  max-width: 100%;
  background: #510756;
  padding: 20px;
  border-radius: 8px;
}

/* ---- STATS STRIP ---- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: linear-gradient(135deg, #510756 0%, #ae1e0c 100%);
  border-radius: 10px;
  margin: 0 0 50px;
  overflow: hidden;
}
.stat-item {
  text-align: center;
  padding: 28px 16px;
  border-right: 1px solid rgba(255,255,255,0.15);
  color: #fff;
}
.stat-item:last-child { border-right: none; }
.stat-number {
  display: block;
  font-family: 'Roboto Slab', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.8);
}

/* ---- MISSION VALUES GRID ---- */
.mission-values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 24px 0 40px;
}
.value-card {
  background: #f8f5f9;
  border-radius: 8px;
  padding: 24px 18px;
  text-align: center;
  border-top: 3px solid #510756;
  transition: transform 0.2s, box-shadow 0.2s;
}
.value-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(81,7,86,0.12);
}
.value-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}
.value-card h3 {
  font-family: 'Roboto Slab', serif;
  font-size: 1rem;
  color: #510756;
  margin-bottom: 8px;
}
.value-card p {
  font-size: 0.85rem;
  color: #555;
  margin: 0;
  line-height: 1.6;
}

/* ---- ABOUT QUOTE ---- */
.about-quote {
  border-left: 5px solid #ae1e0c;
  background: #fff5f4;
  padding: 24px 30px;
  margin: 10px 0 50px;
  font-family: 'Charm', cursive;
  font-size: 1.2rem;
  color: #510756;
  font-style: italic;
  line-height: 1.7;
  border-radius: 0 8px 8px 0;
}

/* ---- TIMELINE ---- */
.timeline {
  position: relative;
  margin: 20px 0 50px 0;
  padding-left: 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 80px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #510756, #ae1e0c);
  border-radius: 2px;
}
.timeline-item {
  display: flex;
  gap: 30px;
  margin-bottom: 32px;
  align-items: flex-start;
}
.timeline-year {
  flex-shrink: 0;
  width: 68px;
  text-align: right;
  font-family: 'Roboto Slab', serif;
  font-size: 1rem;
  font-weight: 700;
  color: #ae1e0c;
  padding-top: 4px;
}
.timeline-body {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 18px 22px;
  flex: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: relative;
}
.timeline-body::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 14px;
  width: 14px;
  height: 14px;
  background: #510756;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #510756;
}
.timeline-body h4 {
  font-family: 'Roboto Slab', serif;
  font-size: 1rem;
  color: #510756;
  margin-bottom: 6px;
}
.timeline-body p {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
  line-height: 1.6;
}

/* ---- ACTIVITY BLOCKS ---- */
.activity-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid #f0f0f0;
}
.activity-block--reverse {
  direction: rtl;
}
.activity-block--reverse > * {
  direction: ltr;
}
.activity-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.activity-text h3 {
  font-family: 'Roboto Slab', serif;
  font-size: 1.3rem;
  color: #ae1e0c;
  margin-bottom: 14px;
  margin-top: 0;
}

/* ---- STATUTORY GRID ---- */
.statutory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 20px 0 40px;
}
.statutory-item {
  background: #f8f8f8;
  border-radius: 8px;
  padding: 20px 16px;
  text-align: center;
  border-bottom: 3px solid #ae1e0c;
}
.statutory-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 10px;
}
.statutory-item p {
  font-size: 0.85rem;
  color: #555;
  margin: 0;
  line-height: 1.5;
}

/* ---- FORMAL DATA GRID ---- */
.formal-data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 10px;
}

/* ---- DATA TABLE ---- */
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table td {
  padding: 8px 12px 8px 0;
  font-size: 0.93rem;
  color: #444;
  vertical-align: top;
  border-bottom: 1px solid #f0f0f0;
  line-height: 1.6;
}
.data-table td:first-child {
  white-space: nowrap;
  color: #333;
  padding-right: 16px;
  width: 110px;
}
.data-table a { color: #ae1e0c; }
.data-table a:hover { text-decoration: underline; }

/* ---- BANK NUM INLINE ---- */
.bank-num-inline {
  font-family: 'Roboto', monospace;
  font-size: 0.95rem;
  letter-spacing: 1px;
  background: #f0e8f5;
  color: #510756;
  padding: 8px 14px;
  border-radius: 4px;
  display: inline-block;
  margin: 6px 0;
}

/* ---- OUTLINE BUTTON ---- */
.btn-outline-red {
  border: 2px solid #ae1e0c;
  color: #ae1e0c;
  padding: 8px 20px;
  border-radius: 5px;
  font-family: 'Nova Round', sans-serif;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}
.btn-outline-red:hover { background: #ae1e0c; color: #fff; }

/* ---- CONTACT PAGE EXTRAS ---- */
.contact-grid--4 {
  grid-template-columns: repeat(2, 1fr);
}
.contact-box-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.contact-map-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 40px 0;
  align-items: start;
}
.contact-map-block h2,
.contact-details-block h2 {
  font-family: 'Roboto Slab', serif;
  font-size: 1.4rem;
  color: #510756;
  margin-bottom: 16px;
  margin-top: 0;
}
.map-embed {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* ---- DONATION USE GRID ---- */
.donation-use-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 20px 0 40px;
}
.donation-use-item {
  background: #f8f5f9;
  border-radius: 8px;
  padding: 24px 18px;
  text-align: center;
  border-top: 3px solid #510756;
}
.donation-use-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 10px;
}
.donation-use-item h4 {
  font-family: 'Roboto Slab', serif;
  font-size: 1rem;
  color: #510756;
  margin-bottom: 8px;
}
.donation-use-item p {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.5;
  margin: 0;
  line-height: 1.6;
}

/* ---- CONTACT IMAGE BANNER ---- */
.contact-image-banner {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin: 0 0 40px;
  min-height: 200px;
}
.contact-image-banner img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.contact-image-banner-text {
  position: absolute;
  inset: 0;
  background: rgba(81,7,86,0.70);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  color: #fff;
}
.contact-image-banner-text h3 {
  font-family: 'Roboto Slab', serif;
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 8px;
}
.contact-image-banner-text p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 16px;
}
.btn-outline-white {
  border: 2px solid #fff;
  color: #fff;
  padding: 10px 26px;
  border-radius: 5px;
  font-family: 'Nova Round', sans-serif;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}
.btn-outline-white:hover { background: #fff; color: #510756; }

/* ---- UTILITY ---- */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.divider {
  width: 60px;
  height: 3px;
  background: #ae1e0c;
  margin: 14px 0 30px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .about-intro-row { grid-template-columns: 1fr; }
  .about-intro-logo { display: none; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .mission-values-grid { grid-template-columns: repeat(2, 1fr); }
  .statutory-grid { grid-template-columns: repeat(2, 1fr); }
  .donation-use-grid { grid-template-columns: repeat(2, 1fr); }
  .social-links-row { grid-template-columns: repeat(2, 1fr); }
  .activity-block { grid-template-columns: 1fr; gap: 20px; }
  .activity-block--reverse { direction: ltr; }
  .formal-data-grid { grid-template-columns: 1fr; }
  .contact-map-row { grid-template-columns: 1fr; }
  .timeline::before { left: 60px; }
  .timeline-year { width: 48px; font-size: 0.9rem; }

  .flip-cards-grid { grid-template-columns: 1fr 1fr; }
  .news-card { min-width: calc(50% - 12px); }
  .contact-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 650px) {
  .inner-page-hero { min-height: 220px; }
  .inner-hero-content { padding: 40px 20px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .mission-values-grid { grid-template-columns: 1fr 1fr; }
  .statutory-grid { grid-template-columns: 1fr 1fr; }
  .donation-use-grid { grid-template-columns: 1fr 1fr; }
  .social-links-row { grid-template-columns: 1fr; }
  .timeline::before { left: 50px; }
  .timeline-year { width: 38px; font-size: 0.8rem; }
  .timeline-body { padding: 14px 16px; }
  .contact-grid--4 { grid-template-columns: 1fr; }
  .activity-image img { height: 200px; }

  .site-header {
    padding: 14px 20px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .site-header .logo img { height: 55px; }
  .site-header .tagline { font-size: 18px; }

  .site-nav ul { display: none; flex-direction: column; width: 100%; }
  .site-nav ul.open { display: flex; }
  .site-nav ul li a { padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 15px; }
  .nav-toggle { display: flex; margin-left: auto; }

  .flip-cards-grid { grid-template-columns: 1fr; }
  .flip-card { height: 240px; }
  .news-card { min-width: 90%; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-form-section { padding: 24px 18px; }
  #contactForm .form-row { grid-template-columns: 1fr; }
  .page-content { padding: 40px 20px; }
  .donation-box { padding: 28px 20px; }
  .hymn-text { padding: 24px 20px; }
  .partner-card { flex-direction: column; }
  .breadcrumb { padding: 10px 20px; }
  .site-footer { padding: 40px 20px 24px; }
  .contact-social-section { padding: 24px 0; }
}

/* ---- SOCIAL LINKS ROW (CONTACT PAGE) ---- */
.contact-social-section {
  margin: 40px 0;
  padding: 32px 0;
  border-top: 1px solid #e8e0ec;
  border-bottom: 1px solid #e8e0ec;
}

.contact-social-section h2 {
  margin-top: 0;
  margin-bottom: 6px;
}

.social-links-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.social-link-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 22px 16px;
  background: #f8f5f9;
  border: 2px solid #e8e0ec;
  border-radius: 10px;
  text-decoration: none;
  color: #333;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.social-link-box:hover {
  border-color: #510756;
  background: #f1e8f4;
  transform: translateY(-3px);
}

.social-link-icon {
  font-size: 2rem;
}

.social-link-name {
  font-family: 'Roboto Slab', serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #510756;
}

.social-link-handle {
  font-size: 0.82rem;
  color: #666;
  word-break: break-all;
  text-align: center;
}
