/* General page styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #333;
}

/* Paragraph indentations */

mb {
  margin-bottom: 1rem;
}

/* Header and Footer styles */
header, footer {
    background-color: #009900;
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

footer {
    background-color: white;
    color: black;
}

/*slides*/

.slideshow {
    position: relative;
    max-width: 100%;
    margin: auto;
}

.slides img {
    display: block;
    margin: auto;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: #009900;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.prev {
    left: 0;
}

.next {
    right: 0;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}


/* Logo container */
.logo-container {
    margin-bottom: 20px;
}

.logo-container img {
    width: 300px; /* Default size */
    max-width: 100%;
}

/* Navigation styles */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    background-color: #009900;
    flex-wrap: wrap; /* Allows wrapping for smaller screens */
}

nav ul li {
    margin: 0 15px;
    position: relative; /* Required for dropdown positioning */
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    padding: 5px 10px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    text-decoration: underline;
    color: #80ff80;
}

/* Dropdown Menu */
nav ul li .dropdown-content {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%; /* Position below the parent link */
    left: -38px;
    background-color: #007700; /* Slightly darker green */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    padding: 0;
    z-index: 10;
    min-width: 150px; /* Ensures consistent dropdown width */
}

nav ul li .dropdown-content li {
    margin: 0;
    padding: 0;
}

nav ul li .dropdown-content li a {
    text-decoration: none;
    color: white;
    padding: 10px 15px;
    display: block; /* Ensures full clickable area */
    transition: background-color 0.3s ease;
}

nav ul li .dropdown-content li a:hover {
    background-color: #005500; /* Darker green for hover */
    color: #80ff80;
}

/* Show Dropdown on Hover */
nav ul li:hover .dropdown-content {
    display: block; /* Shows dropdown when hovering */
}

ul {
  padding-left: 1.2rem;   /* controls bullet distance from edge */
  margin: 1rem 0;
}

li {
  margin-bottom: 0.4rem;  /* even vertical spacing */
  line-height: 1.5;       /* keeps multi-line items clean */
}

/* Content container */
.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.main-container {
    background-color: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.main-container h2,
.main-container h3 {
    margin-bottom: 20px;
}

.main-container a {
    color: #009900;
    text-decoration: none;
    font-weight: bold;
}

.main-container p {
	text-indent: 1.5em;
	line-height: 1.6; /* Adjust the spacing between lines */
	margin-left: 0; /* Ensure no additional margin offsets the paragraph */
	margin-right: 0;
	text-align: justify; /* Optional: Justify text for a clean edge */
}

/* Instagram Container */
.instagram-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.instagram-button img {
    width: 32px; /* Default size */
    height: auto; /* Maintain aspect ratio */
    transition: transform 0.3s ease;
    max-width: 100%;
}

.instagram-button img:hover {
    transform: scale(1.1);
}

/* Container for the map */
.map-container {
  position: relative;
  width: 100%; /* Make the container full width */
  padding-top: 56.25%; /* 16:9 aspect ratio (height is 56.25% of the width) */
  height: 0; /* No explicit height, will be controlled by padding */
  overflow: hidden;
  background: #eee; /* Optional: add a background color for better styling */
}

/* Make the iframe responsive */
.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-container {
  position: relative;
  width: 100%;
  padding-top: 100%; /* taller aspect ratio */
  overflow: hidden;
  background: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/*Contact Form Styling*/

.contact-form-section {
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
}

/* Form Styling */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

label {
    font-size: 16px;
    color: #555;
    font-weight: 600;
}

input, textarea {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus, textarea:focus {
    border-color: #f0a500;
    box-shadow: 0 0 8px rgba(240, 165, 0, 0.6);
    outline: none;
}

input::placeholder, textarea::placeholder {
    color: #999;
}

textarea {
    resize: vertical;
}

.submit-btn {
    background-color: #f0a500;
    color: white;
    padding: 14px 30px;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    align-self: center;
    width: 200px;
}

.submit-btn:hover {
    background-color: #e18b00;
    transform: scale(1.05);
}

.submit-btn:active {
    background-color: #d17800;
}

/* Mobile and Small Screen Responsiveness */
@media (max-width: 600px) {
    .contact-form-section {
        width: 90%;
    }

    .submit-btn {
        width: 100%;
    }
}



/* --- Responsive Design --- */
@media (max-width: 768px) {
    /* Navigation */

	nav ul {
		justify-content: center; /* Makes sure items stay spread out */
	}

	nav ul li {
		width: auto; /* Prevents forcing items into 45% width */
		margin-bottom: 10px; /*spaces out links in nav bar verticaly*/
	}

	
	.map-container {
		padding-top: 56.25%; /* Keep aspect ratio */
	}
	
	.map-container iframe {
		max-width: 100%; /* Ensure iframe doesn't overflow */
	}

    /* Content adjustments */
    .content-container {
        max-width: 100%;
        padding: 10px;
    }

    .main-container {
        padding: 15px;
    }

    /* Gallery images */
    .gallery-container img {
        max-width: 100%;
    }

    /* Instagram button */
    .instagram-button img {
        max-width: 40px; /* Smaller size for mobile */
    }
	
	/*Mobile contact form */
    .contact-form {
        display: flex;
        flex-direction: column; /* Stack elements vertically */
        gap: 10px; /* Add spacing between form elements */
        padding: 15px; /* Add padding to prevent crowding */
    }
	
	.contact-form-section {
		width: 90%; /* Occupy most of the screen width */
		max-width: 100%; /* Ensure it doesn't exceed container */
		margin: 0 auto; /* Center horizontally */
		padding: 15px;
		box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
		background: #ffffff;
		border-radius: 8px;
    }

    .contact-form .form-group {
        width: 100%; /* Ensure inputs take the full width */
    }

    .contact-form input, 
    .contact-form textarea {
        font-size: 14px; /* Adjust font size for better readability */
    }

    .submit-btn {
        width: 100%; /* Make the submit button full-width */
        font-size: 16px; /* Slightly larger button text */
    }

    h1 {
        font-size: 24px; /* Adjust heading size */
        text-align: center; /* Center the heading */
    }

    .content-container {
        margin: 10px; /* Add breathing room around the form */
    }
	
}

@media (max-width: 480px) {
    /* Further refine smaller screens if needed */
	nav ul {
		flex-direction: nowrap;
		justify-content: center; /* Centers nav items */
	}

	nav ul li {
		width: auto; /* Makes each item take up full width */
		margin-bottom: 10px; /*spaces out vertical space in nav bar*/
	}

    .instagram-button img {
        max-width: 40px; /* Even smaller for very small screens */
    }
}

/* Style for success and error messages */
.message {
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* Video */

.video-container {
  position: relative;
  width: 100%;
  max-width: 800px;   /* stays inside your main column */
  margin: 20px auto;  /* centers + spacing */
  padding-top: 56.25%; /* 16:9 aspect ratio (9/16 = 0.5625) */
  overflow: hidden;
  border-radius: 8px;  /* matches your image corners */
  background: #000;    /* fallback background */
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.dbox-donation-page-button {
  background: #009900;
  color: #fff;
  text-decoration: none;
  font-family: Verdana, sans-serif;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  font-size: 16px;
  line-height: 24px;

  margin: 20px auto;
}






/* ============================================================
   Contact — email call-to-action (replaced the old PHP form)
   ============================================================ */

.contact-card {
    max-width: 520px;
    margin: 36px auto 44px;
    padding: 32px 28px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact-card-label {
    display: block;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #009900;
    font-weight: bold;
    margin-bottom: 18px;
}

.main-container .contact-card .btn-link {
    display: inline-block;
    width: auto;
    max-width: 100%;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    word-break: break-word;
}

.contact-card .contact-note {
    text-indent: 0;
    text-align: center;
    font-size: 14px;
    color: #666;
    margin: 18px 0 0;
}

.main-container address {
    font-style: normal;
    line-height: 1.7;
    margin-bottom: 10px;
}

/* ============================================================
   Press / media cards (History page)
   ============================================================ */

.media-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    padding: 0;
    margin: 24px 0 10px;
    text-align: left;
}

.media-grid li {
    margin: 0;
}

.media-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.main-container a.media-card {
    text-decoration: none;
    color: inherit;
}

.main-container a.media-card:hover,
.main-container a.media-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.media-card img {
    display: block;
    width: 100%;
    /* sources are near-square (0.75–0.97); a square card keeps ~75–95% of each
       instead of the ~50% a landscape crop would discard */
    aspect-ratio: 1 / 1;
    object-fit: cover;
    /* article screenshots are top-heavy — anchor the crop so the headline stays visible */
    object-position: top center;
    background-color: #eaeaea;
    border-radius: 0;
    margin: 0;
}

.media-card-body {
    display: block;
    padding: 14px 16px 18px;
}

.media-outlet {
    display: block;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #009900;
    font-weight: bold;
    margin-bottom: 6px;
}

.main-container .media-card .media-title {
    display: block;
    font-size: 16px;
    line-height: 1.4;
    color: #333;
    font-weight: 600;
    margin: 0;
    text-align: left;
}

@media (max-width: 600px) {
    .media-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-card {
        padding: 26px 18px;
    }
}
