/* Modernized Styles with Hexagonal Theme */
:root {
  --primary: #6a0dad;
  --primary-light: #9c27b0;
  --secondary: #ffd700;
  --secondary-light: #ffeb3b;
  --accent: #4a148c;
  --light: #f8f4fc;
  --dark: #333;
  --text: #444;
  --white: #ffffff;
  --gray: #e0e0e0;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Header Styles */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    text-align: center;
    padding: 10px 0;
}

.main-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 10px;
    width: 100%;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.logo {
    display: flex;
    align-items: center;
    margin-bottom: 2px; /* Adjusted from 20px if main-heading is not used here */
}

.logo a {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.hex-logo {
    width: 30px;
    height: 35px;
    background-color: var(--secondary);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    margin-right: 10px;
    background-image: url('images/noah-blessed-int-ministries-logo.png'); /* Ensure this image exists or matches the .jpg if it's the same logo */
    background-size: cover;
    background-position: center;
}


.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px; /* Adjusted from 20px */
}

.nav-links {
    display: flex;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px 25px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.donate-button { /* This specific button can coexist with general .button styles */
    background-color: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    /* position: relative; /* For hex-hover */
    /* overflow: hidden; /* For hex-hover */
}

.donate-button:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
}

.button-container {
  padding-top: 10px;
}

.logo-container { /* This class was defined but not used in HTML, keeping it in case */
    display: flex;
    align-items: center;
}
.logo-image img {
    max-height: 50px; 
    width: auto; 
    margin-right: 10px; 
}
.logo-text { /* This class was defined but not used in HTML */
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff; 
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    transition: all 0.3s ease;
}


/* General Button Styles (NEW) */
.button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease, transform 0.3s ease; /* Added transform here */
    font-size: 1rem;
    text-decoration: none;
    text-align: center;
    position: relative; /* For hex-hover if applied directly or via child */
}

.primary-button {
    background-color: var(--primary);
    color: var(--white) !important; /* Important to override potential conflicts */
}

.primary-button:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
}

.secondary-button {
    background-color: var(--secondary);
    color: var(--primary) !important; /* Important to override potential conflicts */
}

.secondary-button:hover {
    background-color: var(--secondary-light);
    color: var(--accent) !important;
    transform: translateY(-2px);
}

/* Ensure .hex-hover works well with these buttons */
.button.hex-hover {
    overflow: hidden; /* Crucial for the ::before pseudo-element of hex-hover */
}
.amount-options button { /* Styles for donation amount buttons if they don't use .button class */
    padding: 10px 15px;
    margin: 5px;
    border: 1px solid var(--gray);
    background-color: var(--white);
    color: var(--primary);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.amount-options button:hover,
.amount-options button.selected { /* 'selected' class might be added by JS */
    background-color: var(--secondary-light);
    border-color: var(--secondary);
}


/* Responsive Styles */
@media (max-width: 768px) {
    .main-heading {
        font-size: 1.5rem;
    }
    
    .logo a {
        font-size: 1.3rem; /* Ensure this is readable, or adjust based on available space */
        flex-direction: column; /* Stack logo image and text if too long */
        text-align: center;
    }
    .logo-image img {
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .header-content {
        flex-direction: row; /* Align logo and hamburger/button row */
        justify-content: space-between;
        width: 100%;
        padding: 0 20px; /* Add some padding for mobile header */
    }

    .logo {
        margin-bottom: 0; /* Reset margin if header-content handles spacing */
    }
    .header-right {
        margin-bottom: 0; /* Reset margin */
    }

    .nav-links {
        display: none; /* Ensure it's hidden by default */
        width: 100%; /* Take full width when open */
    }
    
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; /* Position below the header */
        left: 0;
        right: 0;
        background-color: white;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 999; /* Ensure it's above other content but below sticky header */
    }
    .nav-links.open li {
        padding: 10px 0;
        text-align: center;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .projects-grid, .about-grid, .donation-options, .contact-grid {
        grid-template-columns: 1fr; /* Stack cards on smaller screens */
    }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px; /* Adjusted padding for better spacing on various screens */
}

.section {
  padding: 50px 0;
  position: relative;
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}


.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--secondary);
  margin: 20px auto;
}

/* Hexagon Elements */
.hex-pattern {
  position: fixed;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="%236a0dad" opacity="0.03"><polygon points="50,0 93.3,25 93.3,75 50,100 6.7,75 6.7,25"/></svg>');
  background-size: 150px;
  z-index: -1;
  pointer-events: none;
}

.hexagon {
  width: 60px;
  height: 70px; /* Adjusted for typical hexagon proportion with this clip-path */
  background-color: var(--secondary);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: bold;
  font-size: 1.2rem;
}

.hex-badge {
  width: 60px;
  height: 70px;
  background-color: var(--primary);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  position: absolute;
  top: -20px; /* Adjust if it collides or looks off */
  right: 30px;
  z-index: 10; /* Ensure badge is above card content */
}

.hex-icon {
  width: 50px;
  height: 58px; /* Adjusted for typical hexagon proportion */
  background-color: var(--secondary);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  margin: 0 auto 20px;
}

.hex-icon.small {
  width: 30px;
  height: 35px; /* Adjusted */
  font-size: 1rem;
  margin: 0 10px 0 0; /* Keep original margin */
}

.hex-divider {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--secondary), transparent);
  margin: 30px auto;
  position: relative;
  max-width: 500px;
}

.hex-divider::before, .hex-divider::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: var(--secondary);
  transform: rotate(45deg);
  top: -4px; /* Vertically center with the line */
}

.hex-divider::before {
  left: 0;
}

.hex-divider::after {
  right: 0;
}

.hex-image-frame {
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  width: 100%; /* Make it responsive within its container */
  max-width: 300px; /* Example max width, adjust as needed */
  height: 350px; /* Maintain fixed height or adjust for aspect ratio */
  overflow: hidden;
  margin: 0 auto; /* Center if it's a block element */
  transition: all 0.3s ease;
}

.hex-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover ensures the frame is filled, might crop */
  transition: transform 0.5s ease;
}
.hex-image-frame:hover img {
    transform: scale(1.1); /* Example hover effect */
}


.hex-hover {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden; /* Ensure this is set for the ::before to be clipped */
  z-index: 1; /* Ensure content is above ::before if not already */
}

.hex-hover::before {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(255,215,0,0.2) 0%, rgba(255,215,0,0) 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s ease;
  z-index: -1; /* Position behind the content */
}

.hex-hover:hover::before {
  transform: translate(-50%, -50%) scale(1);
}

.hex-input {
  border: 1px solid var(--gray);
  border-radius: 5px;
  padding: 12px 15px;
  font-size: 1rem;
  transition: all 0.3s ease;
  width: 100%;
  margin-bottom: 15px;
  background-color: var(--white);
}

.hex-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(106,13,173,0.2);
}

/* Card Styles */
.card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    padding-top: 40px; /* Extra space for badge if present */
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    position: relative;
    margin-bottom: 20px; /* Space between cards if stacked */
    overflow: hidden; /* If any internal elements might overflow */
}











#video-gallery {
    background-color: #f4f6f8; /* A slightly different light background */
    padding-top: 60px;
    padding-bottom: 60px;
}

#video-gallery .section-title {
    margin-bottom: 40px;
    color: var(--primary-dark); /* Using existing variable */
}

.video-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; /* Spacing between video items */
}

.video-item {
    /* background-color: #fff; */ /* Already handled by .card if you use it */
    /* border-radius: 10px; */ /* Already handled by .card if you use it */
    overflow: hidden;
    /* box-shadow: 0 8px 16px rgba(0,0,0,0.1); */ /* Already handled by .card */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column; /* Ensures info is below thumbnail */
}

.video-item:hover {
    transform: translateY(-5px);
    /* box-shadow: 0 12px 24px rgba(0,0,0,0.15); */ /* .card hover might have its own */
}

.video-thumbnail-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio for video thumbnails */
    cursor: pointer;
    background-color: #333; /* Dark placeholder if image fails */
    overflow: hidden; /* To ensure image respects container bounds */
}

.video-thumbnail-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area, might crop */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.video-item:hover .video-thumbnail-container img {
    opacity: 0.7;
    transform: scale(1.05); /* Slight zoom on hover */
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;  /* Slightly smaller */
    height: 60px; /* Slightly smaller */
    background-color: rgba(106, 27, 154, 0.85); /* var(--primary) with alpha */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    pointer-events: none; /* So click goes to parent container */
}

.video-item:hover .play-button-overlay {
    background-color: var(--primary-dark); /* Darker on hover */
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button-overlay i.fa-play {
    font-size: 24px; /* Adjust icon size */
    color: #fff;
    margin-left: 4px; /* Optical adjustment for play icon */
}

.video-info {
    padding: 15px 20px 20px; /* Adjust padding */
    text-align: left; /* Or center, depending on preference */
    flex-grow: 1;
    background-color: #fff; /* Ensure background if card styling is minimal */
}

.video-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15em; /* Slightly adjusted size */
    color: var(--primary-dark);
    margin-top: 0; /* Remove default margin if any */
    margin-bottom: 8px;
}

.video-info p {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9em;
    color: #555;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Video Modal Styles */
.video-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1050; /* High z-index to be on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Prevent scrolling of body when modal is open */
    background-color: rgba(0,0,0,0.88); /* Dark overlay */
    justify-content: center; /* For flex vertical centering */
    align-items: center;   /* For flex horizontal centering */
    animation: fadeInModal 0.3s ease-out;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.video-modal-content {
    position: relative;
    /* margin: auto; Used flex on parent for centering */
    padding: 0;
    width: 90%;
    max-width: 800px; /* Max width for the video player */
    background-color: #000; /* Background for the iframe area */
    border-radius: 5px; /* Subtle rounding */
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    animation: scaleInModal 0.3s ease-out;
    /* Aspect ratio for the iframe container itself */
    aspect-ratio: 16 / 9;
}

@keyframes scaleInModal { /* Changed animation */
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.video-modal-close {
    color: #fff;
    position: absolute;
    top: -35px; /* Position above modal content */
    right: -5px;
    font-size: 30px;
    font-weight: bold;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    background: none; /* Ensure no background interference */
    border: none;
    padding: 5px;
}

.video-modal-close:hover,
.video-modal-close:focus {
    color: #ccc;
    transform: scale(1.1);
    text-decoration: none;
}

#videoModalIframe {
    position: absolute; /* Fill the aspect-ratio container */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    border: none; /* Remove iframe border */
    border-radius: 5px; /* Match content container rounding */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-modal-content {
        width: 95%;
        /* Height will be set by aspect-ratio */
    }
    .video-modal-close {
        top: -30px;
        right: 0px;
        font-size: 28px;
    }
    .video-info h3 {
        font-size: 1.1em;
    }
    .video-info p {
        font-size: 0.85em;
    }
}

/* Active link styles (ensure these are present or adjust as needed) */
.nav-links a.active-link {
    color: var(--primary) !important; /* Make sure it overrides */
    font-weight: 700;
    position: relative;
}

.nav-links a.active-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    animation: drawLine 0.3s ease-out forwards;
}

/* Impact Stats Grid */
.impact-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 25px 0;
}

.stat {
  text-align: center;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat .number {
  font-size: 2.2rem;
  font-weight: 700;
  color: #ff6b9d; /* Pink accent color for feminine health */
  margin-bottom: 5px;
}

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

/* Impact Levels */
.impact-levels {
  margin: 20px 0;
}

.impact-level {
  padding: 12px;
  margin: 8px 0;
  background: rgba(255, 107, 157, 0.1);
  border-left: 3px solid #ff6b9d;
  border-radius: 0 5px 5px 0;
}

/* Social Sharing */
.social-share {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.social-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.social-button:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

/* Feminine Health Color Adjustments */
#donate .hex-badge {
  background: linear-gradient(135deg, #ff6b9d 0%, #ff8aae 100%);
}

#donate .primary-button {
  background: linear-gradient(135deg, #ff6b9d 0%, #ff4785 100%);
}

#donate .primary-button:hover {
  background: linear-gradient(135deg, #ff4785 0%, #ff2a72 100%);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .impact-stats {
    grid-template-columns: 1fr;
  }
  
  .impact-level {
    padding: 10px;
    font-size: 0.9rem;
  }
}


/* Certification Section Styles */
.certification-section {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
    border-left: 5px solid #8e44ad;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.certification-section h3 {
    color: #5d337b;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.certification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.certification-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.cert-badge {
    font-size: 2.5rem;
    color: #e74c3c;
    margin-bottom: 10px;
}

.certification-card h4 {
    color: #2c3e50;
    margin: 10px 0;
}

.certification-card p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.pdf-button {
    background: #e74c3c;
    color: white !important;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.pdf-button:hover {
    background: #c0392b;
    transform: scale(1.05);
}




@keyframes drawLine {
    from { width: 0; }
    to { width: 100%; }
}

/* Adjust active link for mobile if needed */
@media (max-width: 768px) {
    .nav-links.open a.active-link {
        background-color: rgba(106, 27, 154, 0.08); /* Light hex background for active mobile link */
        border-left: 3px solid var(--primary);
        padding-left: calc(1em - 3px); /* Adjust padding */
    }
    .nav-links.open a.active-link::after {
        display: none; /* Hide underline in open mobile menu */
    }
}












/* Hero Section */
.hero {
    background: linear-gradient(rgba(106,13,173,0.7), rgba(74,20,140,0.8)), url('images/hero-background.jpg'); /* Add a placeholder or actual background */
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}
@media (min-width: 768px) {
    .hero-content {
        flex-direction: row;
        text-align: left;
        gap: 50px;
    }
    .hero-text {
        flex: 1;
    }
    .hero-image {
        flex: 1;
        max-width: 800px; /* Control size of hex image frame */
    }
}
.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--white);
}
.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.9);
}
.key-metrics {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}
@media (min-width: 768px) {
    .key-metrics {
        justify-content: flex-start;
    }
}
.metric-hex {
    text-align: center;
}
.metric-hex .hexagon {
    background-color: var(--secondary);
    color: var(--primary);
    margin: 0 auto 10px;
}
.metric-hex span {
    font-weight: 600;
    color: var(--white);
}
.hero .hex-image-frame { /* Hero specific hex image */
    width: 100%;
    max-width: 400px; /* Adjust as needed */
    height: 400px; /* Adjust as needed */
}

/* Mission Section Specifics (Our Guiding Principles) */
.mission-card h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
    text-align: center;
}
.mission-card > p { /* Paragraph directly under mission-card */
    text-align: center;
    margin-bottom: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 20px;
}
.mission-item {
    text-align: center;
}
.mission-item h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary);
    margin-bottom: 10px;
}

/* About Section Specifics */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.about-card h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Projects Section Specifics */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.project-card .project-image { /* Re-using hex-image-frame for projects */
    max-width: 100%; /* Ensure it's contained */
    height: 250px; /* Fixed height for project images */
    margin-bottom: 20px;
}
.project-card .project-content h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.4rem;
}
.project-card .project-content p {
    margin-bottom: 15px;
}
.progress-container {
    margin-bottom: 20px;
}
.progress-bar {
    width: 0; /* Initial width, set by JS */
    height: 10px;
    background-color: var(--secondary);
    border-radius: 5px;
    transition: width 1s ease-in-out;
    margin-bottom: 5px;
}
.progress-container span {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Pastor Story Section Styles (NEW - for sanctuary_building_noah.jpg) */
.mission-section .mission-card { /* Targeting the card in the pastor story section */
     padding-top: 50px; /* More space if badge is large or text is close to top */
}
.mission-section h2 {
    font-size: 1.8rem; /* Slightly smaller if it's a long title */
    color: var(--primary);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.3;
}
.mission-content {
    margin-top: 20px;
}
.mission-paragraph {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}
.mission-paragraph .paragraph-icon {
    flex-shrink: 0;
    width: 35px;
    height: 40px; /* Hexagon proportions */
    background-color: var(--secondary-light);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}
.mission-paragraph .paragraph-icon i {
    font-size: 1rem;
}
.mission-paragraph p {
    flex-grow: 1;
    line-height: 1.7;
}
.highlight-box {
    background-color: rgba(255, 235, 59, 0.2); /* Light yellow transparent */
    border-left: 4px solid var(--secondary);
    padding: 15px 20px;
    margin: 25px 0;
    border-radius: 4px;
}
.highlight-box .highlight-content {
    display: flex;
    align-items: center;
    gap: 10px;
}
.highlight-box .highlight-content i {
    color: var(--secondary);
    font-size: 1.5rem;
}
.highlight-box p {
    font-weight: 600;
    color: var(--accent);
    margin: 0;
}
.bible-verse {
    text-align: center;
    padding: 20px;
    margin: 25px auto;
    background-color: rgba(106, 13, 173, 0.05); /* Light primary bg */
    border-radius: 5px;
    max-width: 80%;
}
.bible-verse p {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--accent);
    margin: 0;
}
.bible-verse span {
    display: block;
    font-style: normal;
    font-size: 0.9rem;
    color: var(--primary);
    margin-top: 8px;
    font-weight: 600;
}
.cta-box {
    text-align: center;
    padding: 25px;
    background-color: var(--light); /* Or var(--white) */
    border: 1px solid var(--gray);
    border-radius: 8px;
    margin-top: 30px;
}
.cta-box h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.6rem;
}
.cta-box p {
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.cta-box .button.primary-button.pulse { /* Ensure pulse animation is defined or remove if not */
    /* Pulse animation might be external or needs to be defined */
}

/* Styles for the mission story section image (sanctuary_building_noah.jpg) (NEW) */
.mission-section .mission-image-container {
    width: 100%;
    max-width: 600px; /* Adjust to desired max width of the image display area */
    margin: 25px auto; 
    padding: 8px; 
    background-color: var(--white); 
    border-radius: 8px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
}

.mission-section .mission-image {
    text-align: center;
}

.mission-section .mission-img { /* Class for sanctuary_building_noah.jpg */
    display: block; 
    width: 100%;    
    height: auto;   
    object-fit: contain; /* Ensures the full image is visible and scaled correctly */
    border-radius: 6px; 
    border: 1px solid var(--gray); 
}

.mission-section .image-caption {
    font-size: 0.9rem;
    color: var(--text);
    margin-top: 10px;
    padding: 8px;
    font-style: italic;
    background-color: rgba(0,0,0,0.03);
    border-radius: 4px;
}


/* Donate Section Specifics */
.donate-card h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
    text-align: center;
}
.donate-card > p {
    text-align: center;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.donation-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}
@media (min-width: 768px) {
    .donation-options {
        grid-template-columns: 1fr 1fr;
    }
}
.donation-option {
    text-align: center;
    padding: 20px;
    border: 1px solid var(--gray);
    border-radius: 8px;
}
.donation-option h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary);
    margin-bottom: 15px;
}
.amount-options {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.amount-options button { /* These are the $20, $50 buttons */
    padding: 10px 15px; /* Standardized padding */
    /* hex-hover class is on these in HTML, so they get that effect */
}

.transparency {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 0.9rem;
}
.transparency .hex-icon.small {
    margin: 0; /* Reset margin if centered */
}

/* Gallery Section */
.hex-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 30px;
}
.hex-gallery-item {
    width: 100%;
    padding-bottom: 115.47%; /* Aspect ratio for hexagon (height = width * sqrt(3)/2 * 2 rows) approx for stacked look */
    /* For a single hexagon: height approx width * sqrt(3)/2. For grid, this makes them roughly square overall */
    position: relative;
    background-size: cover;
    background-position: center;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hex-gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Contact Section */
.contact-card h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
    text-align: center;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.contact-info .contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.contact-info .social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}
.contact-info .social-links a {
    color: var(--primary);
    font-size: 1.5rem;
    /* hex-hover class is on these in HTML */
}
.contact-info .social-links a i { /* ensure icon itself gets hover effect if desired */
    transition: transform 0.3s ease;
}
.contact-info .social-links a:hover i {
    transform: scale(1.2);
}

.contact-form h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--light);
    padding: 40px 0;
    text-align: center;
    margin-top: auto; /* Pushes footer to bottom if content is short */
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-logo .hex-logo { /* Footer hex logo might need different styling or be an actual image */
    background-color: var(--secondary); /* Or transparent if using background image */
}
.footer-links a {
    color: var(--light);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: var(--secondary);
}
.footer-legal {
    font-size: 0.9rem;
}
.footer-legal p {
    margin: 5px 0;
}

/* Pulse animation for buttons if not defined elsewhere */
.pulse {
  animation: pulse-animation 1.5s infinite;
}

@keyframes pulse-animation {
  0% {
    box-shadow: 0 0 0 0 rgba(106, 13, 173, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(106, 13, 173, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(106, 13, 173, 0);
  }
}

/* Ensure button text remains visible over hex-hover effect */
.button span, .button i, .donate-button span, .donate-button i {
    position: relative;
    z-index: 1;
}
.amount-options button { /* Apply to donation amount buttons as well if they have text/icons */
    position: relative;
    z-index: 1; /* Ensure text is above hex-hover */
}
/* For <a> tags styled as buttons */
a.button, a.button:visited {
    color: var(--white); /* Default for primary, secondary will override */
}
a.secondary-button, a.secondary-button:visited {
    color: var(--primary) !important;
}