/* Font imports and base styles */
:root {
    --primary-color: #333;
    --secondary-color: #666;
    --accent-color: #8B4513;
    --light-color: #f8f8f8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
h
body {
    font-family: 'Open Sans', sans-serif;
    color: var(--primary-color);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-color);
}

/* Header styles */
header {
    background-color: var(--light-color);
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-align: center;
}

.logo span {
    display: block;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

/* Navigation */

.navbar-logo {
  height: 50px;  
  width: auto;  
  display: block;
}


nav ul {
    display: flex;
    list-style: none;
    position: relative;
}

nav ul li {
    position: relative;
    margin-left: 1.5rem;
}

nav ul li a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.5rem 0;
    display: block;
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 160px;
    padding: 0.5rem 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 999;
}

.dropdown-menu li {
    margin: 0; 
}

.dropdown-menu li a {
    padding: 0.5rem 1rem;
    color: var(--primary-color);
    white-space: nowrap;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
    display: block;
}



/* Hero section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* Main content */
.container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title:after {
    content: "";
    display: block;
    width: 80px;
    height: 2px;
    background-color: var(--accent-color);
    margin: 1rem auto;
}

/* Grid layout for sections */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

/* Footer */
footer {
    background-color: #351d0e;
    color: white;
    padding: 0.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
    }

    nav ul {
        margin-top: 1rem;
    }

    nav ul li {
        margin: 0 0.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }
}

/* Top Footer (Contact Info) */
.top-footer {
    background-color: #654321;
    color: white;
    padding: 2rem 0;
}

.top-footer h3 {
    font-family: 'Libre Baskerville', serif;
    margin-bottom: 0.5rem;
}

.top-footer p {
    margin-bottom: 0.5rem;
    color: #f5f5f5;
}

.top-footer a {
    color: #ffd699;
}

.top-footer a:hover {
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    align-items: start; /* keeps all columns top-aligned */
}

.footer-logo {
    display: flex;
    align-items: center; /* vertical centering if the column grows */
    justify-content: center; /* horizontal centering */
}

.footer-logo img {
    max-width: 120px; /* tweak this size */
    height: auto;
}


/* Newsletter Banner */
.newsletter-banner {
    width: 100%;
    background-color: #654321;
    color: white;
    padding: 2rem 1rem;
    border-radius: 20px;
}

.newsletter-banner-content {
    max-width: 1200px; 
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    text-align: center;
}


.newsletter-banner-content p {
    font-size: 1.1rem;
    margin: 0;
    flex: 1 1 auto;
}

.newsletter-btn {
    background-color: #351d0e;
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.newsletter-btn:hover {
    background-color: #f0c97f;
}

/* newsletters list page */
.newsletter-list {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.newsletter-card {
  background: #654321;
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.newsletter-card h2 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.newsletter-link {
  display: inline-block;
  margin-top: 1rem;
  color: #fff;
  background: #351d0e;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
}
.newsletter-link:hover {
  background-color: #f0c97f;
}

.about-intro {
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
    font-size: 1.05rem;
    color: var(--secondary-color);
    line-height: 1.7;
}

#about {
    margin-bottom: 3rem; 
}

#newsletter-banner {
    margin-bottom: 3rem; 
}

/* Focus Areas Section */
.focus-areas {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* Each focus area row */
.focus-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  padding: 2rem;
}

/* Images */
.focus-image img {
  width: 100%;
  height: 350px;
  border-radius: 0.75rem;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.focus-image img:hover {
  transform: scale(1.05);
}

/* Text styling */
.focus-text h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: #654321; 
}

.focus-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
}

/* Alternate left/right layout */
.focus-area:nth-child(even) .focus-image {
  grid-column: 2; /* move image to right */
}

.focus-area:nth-child(even) .focus-text {
  grid-column: 1; /* move text to left */
}

/* Responsive Design */
@media (max-width: 900px) {
  .focus-area {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1.5rem;
  }

  /* Reset alternation for single-column layout */
  .focus-area:nth-child(even) .focus-image,
  .focus-area:nth-child(even) .focus-text {
    grid-column: auto;
  }

  .focus-text h3 {
    font-size: 1.5rem;
  }

  .focus-text p {
    font-size: 0.95rem;
  }
}

/* communities landing page */

.communities-intro {
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: center;
  font-size: 1.05rem;
  color: var(--secondary-color);
  line-height: 1.7;
}

#communities-intro {
  margin-bottom: 3rem;
}

.community-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 1rem;
}

.community-cards .card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 250px;
  text-align: center;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s, box-shadow 0.3s;
}

.community-cards .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.community-cards img {
  width: 100%;
  height: 200px;   
  object-fit: cover;
  border-bottom: 2px solid #eee;
}

.community-cards h3 {
  margin: 1rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #5a381e; 
}

/* Individual communities list page */
.community-list {
  max-width: 900px; /* slightly wider */
  margin: 2rem auto;
  padding: 0 1rem;
}

.community-card {
  background: #fff;
  border-radius: 6px; /* more rectangular */
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  margin-bottom: 2.5rem;
  overflow: hidden;
  padding: 1.5rem;
  text-align: left; /* switch from center to left */
}

.community-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-color);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.community-location {
  font-size: 1.1rem;
  font-weight: 500;
  color: #374151; /* darker neutral gray */
  margin: 0.3rem 0 1rem;
}

.community-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: block;
}

.details-toggle {
  display: block;
  width: 100%;
  text-align: center;
  background: none;
  border: none;
  color: var(--primary-color);
  font-weight: 600;
  cursor: pointer;
  margin: 1rem 0;
  transition: color 0.2s ease;
}

.details-toggle:hover {
  color: #d97706;
}

.community-details {
  display: none;
  text-align: left;
  color: #4b5563; /* neutral gray */
  line-height: 1.6;
  font-size: 0.95rem;
}

.community-details h3 {
  margin-top: 1rem;
  color: var(--primary-color);
  font-size: 1.1rem;
}

/* Media Page Specific Styles */
.media-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 1rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

/* Magazine Banner  */
/* .magazine-banner {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #8B4513;
    margin-top: 1.5rem;
    text-align: center;
}

.magazine-banner p {
    margin-bottom: 1rem;
    font-style: italic;
    color: #555;
    font-size: 1rem;
} */

/* Keep your existing newsletter button styles */
.newsletter-btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: #8B4513;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #8B4513;
}

.newsletter-btn:hover {
    background-color: transparent;
    color: #8B4513;
}

/* Scroll Up Button */
#scrollUpBtn {
  display: none; /* Hidden by default */
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: #000;
  color: white;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 50%;
  transition: 0.3s;
}

#scrollUpBtn:hover {
  background-color: #654321;
}
