/* --- Improved Ministries Grid Alignment --- */
.grid-ministries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: #fffdfa;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,64,128,0.07);
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #f2a90033;
}
/* --- Global Styles --- */
:root {
  --primary-color: #004080; /* A deep, trustworthy blue */
  --secondary-color: #f2a900; /* A warm, welcoming gold/yellow */
  --accent-color: #28a745; /* A positive green for donation/action */
  --text-color: #333;
  --light-gray: #f4f4f4;
  --white: #ffffff;
  --header-height: 70px; /* For scroll offset */
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height); /* Offset for fixed header */
}

body {
  font-family: "Lato", "Hind Madurai", sans-serif;
  margin: 0;
  padding: 0;
  color: var(--text-color);
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  font-family: "Roboto Slab", "Arima", serif;
  color: var(--primary-color);
  font-weight: 700;
}

.tamil-text {
  font-family: "Hind Madurai", sans-serif;
  font-weight: 500;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
  overflow: hidden;
  padding: 20px 0;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* --- Header & Navigation --- */
.main-header {
  background: var(--white);
  border-bottom: 2px solid var(--light-gray);
  padding: 0 20px;
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--primary-color);
}

.main-nav {
  display: flex;
  align-items: center;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.main-nav ul li {
  margin-left: 25px;
}

.main-nav ul li a {
  color: var(--text-color);
  font-weight: bold;
  padding: 5px 0;
  transition: color 0.3s ease, border-bottom 0.3s ease;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
  color: var(--secondary-color);
  border-bottom: 2px solid var(--secondary-color);
}

.menu-toggle {
  display: none; /* Hidden on desktop */
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--primary-color);
}

/* --- Logo Image + Text --- */
.logo-with-image {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
}
.site-logo {
  height: 46px;
  width: auto;
  display: block;
}
.logo-text { font-size: 0.95rem; line-height: 1.1; max-width: 150px; color: var(--primary-color); }
@media (max-width: 600px) {
  .site-logo { height: 40px; }
  .logo-text { font-size: 0.8rem; max-width: 120px; }
}

/* --- Button Styles --- */
.btn {
  display: inline-block;
  padding: 12px 25px;
  background: var(--secondary-color);
  color: var(--white) !important;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  border-bottom: none !important;
}

.btn:hover {
  background-color: #d99500;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background: var(--primary-color);
}
.btn-primary:hover {
  background: #002a54;
}

.btn-donate {
  background-color: var(--accent-color);
  margin-left: 25px;
}
.btn-donate:hover {
  background-color: #218838;
}

/* --- Hero/Banner Section --- */
#home {
  background: linear-gradient(135deg, #f2a900 0%, #004080 100%);
  color: var(--white);
  height: calc(100vh - var(--header-height));
  min-height: 450px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

.christian-hero {
  z-index: 1;
  padding: 40px 20px 20px 20px;
  position: relative;
}

.hero-cross-wrapper {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px auto;
  background: radial-gradient(circle at 50% 50%, #ffffff33, transparent 70%);
}
.hero-cross-svg {
  width: 70px;
  height: 70px;
  fill: var(--white);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
  animation: glow 4s ease-in-out infinite;
}
@keyframes glow {
  0%,100% { opacity: 0.9; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.96); }
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  color: var(--white);
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

/* Verse features removed */
/* Single verse block styling */
.hero-verse {
  font-size: 0.95rem;
  max-width: 720px;
  margin: 0 auto 28px;
  background: rgba(255,255,255,0.12);
  padding: 12px 16px;
  border-left: 4px solid var(--secondary-color);
  border-radius: 4px;
  font-style: italic;
  line-height: 1.5;
}
.hero-verse .verse-ref {
  font-weight: 700;
  color: var(--secondary-color);
  margin-right: 8px;
  font-style: normal;
}
.hero-verse .verse-version {
  font-size: 0.65rem;
  background: var(--primary-color);
  color: #fff;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 6px;
  letter-spacing: 0.5px;
  vertical-align: middle;
}
@media (max-width: 600px) {
  .hero-verse { font-size: 0.85rem; padding: 10px 12px; }
}

/* --- General Section Styling --- */
.section {
  padding: 60px 20px;
}

.section-light {
  background: var(--light-gray);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
}

/* --- Donate Simple Styles --- */
.simple-donate-card ul.donate-methods {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
  text-align: left;
}
.simple-donate-card ul.donate-methods li {
  margin-bottom: 8px;
  padding-left: 0;
}
.text-link.small-note {
  display: inline-block;
  margin-top: 5px;
  font-size: 0.85rem;
  color: var(--primary-color);
  text-decoration: underline;
}

.donate-steps {
  padding-left: 18px;
  margin-top: 0;
  line-height: 1.5;
}
.donate-steps li { margin-bottom: 10px; }
.tax-note { background:#fffdfa; border-left:4px solid var(--secondary-color); padding:10px 15px; border-radius:4px; font-size:0.9rem; }

.donate-quick.box {
  background: #fffdfa;
  padding: 25px 25px 15px;
  border: 1px solid #f2a90044;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.donate-quick.box h3 { margin-top:0; }
.donate-quick.box p { margin: 0 0 14px; }
.donate-quick.box code { background:#004080; color:#fff; padding:2px 6px; font-size:0.8rem; border-radius:4px; }

@media (max-width: 600px) {
  .donate-quick.box { padding:18px; }
  .donate-steps { padding-left: 16px; }
}

/* --- Specific Section Styles --- */
.grid-2-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  align-items: stretch;
}
/* .card unified above */

#about .leader-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid var(--primary-color);
}

.ministry-card {
  background: var(--white);
  padding: 25px;
  margin-bottom: 20px;
  border-left: 5px solid var(--primary-color);
  border-radius: 5px;
}

#get-involved .card h3 {
  color: var(--secondary-color);
}

/* --- Forms --- */
.form-container {
  flex: 1;
  min-width: 300px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

#contact iframe {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: 8px;
  margin-top: 40px;
}

/* --- Footer --- */
.main-footer {
  background: linear-gradient(90deg, #004080 60%, #f2a900 100%);
  color: var(--white);
  text-align: center;
  padding: 30px 20px;
}
.main-footer p {
  margin: 5px 0;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
  .grid-2-col, .grid-ministries {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .menu-toggle {
    display: block; /* Show hamburger */
    z-index: 1002;
  }
  .btn-donate {
    margin-left: 0;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%; /* Start off-screen */
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: var(--primary-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease-in-out;
    z-index: 1001;
  }

  .main-nav.active {
    right: 0; /* Slide in */
  }

  .main-nav ul {
    flex-direction: column;
    width: 100%;
    text-align: center;
  }
  .main-nav ul li {
    margin: 20px 0;
  }
  .main-nav ul li a {
    color: var(--white);
    font-size: 1.2rem;
  }
  .main-nav ul li a:hover,
  .main-nav ul li a.active {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero-desc {
    font-size: 1rem;
  }
  .card {
    padding: 1.2rem;
  }
  .container {
    padding: 10px 0;
  }
  .main-header .container.header-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* --- Header Flex Helper --- */
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Ensure nav and donate button wrap nicely on smaller wide tablets */
@media (max-width: 1200px) and (min-width: 993px) {
  .header-flex { gap: 0.75rem; }
  .btn-donate { padding: 10px 18px; font-size: 0.9rem; }
}
