/*
  Global styles for Spirit Temple Bible Center Worldwide.
  Colors and typography are chosen to be calming and readable. You can
  customize the CSS variables below to match your ministry’s branding.
*/
:root {
  --primary-color: #3a3962;
  --secondary-color: #201e40;
  --accent-color: #8075aa;
  --background-color: #f6f4f9;
  --text-color: #333;
  --white: #ffffff;
}

/* Reset some default styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  background: var(--background-color);
  color: var(--text-color);
}

a {
  color: var(--accent-color);
  text-decoration: none;
}

header {
  background: var(--primary-color);
  color: var(--white);
}

/* Navigation bar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}
.logo a {
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--white);
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}
.nav-links li a {
  color: var(--white);
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  transition: background 0.3s ease;
}
.nav-links li a:hover {
  background: var(--secondary-color);
  border-radius: 4px;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}

/* Responsive menu */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--primary-color);
    flex-direction: column;
    width: 200px;
    display: none;
    padding: 1rem;
    border-radius: 0 0 0 8px;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
}

/* Hero section */
.hero {
  background: url('https://images.unsplash.com/photo-1568605114967-8130f3a36994?auto=format&fit=crop&w=1950&q=80')
    center/cover no-repeat;
  color: var(--white);
  text-align: center;
  padding: 6rem 1rem;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

/* Mission and call-to-action sections */
.mission,
.cta {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem;
  text-align: center;
}
.mission h2,
.cta h2 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}
.mission p,
.cta p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent-color);
  color: var(--white);
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  transition: background 0.3s ease;
}
.btn:hover {
  background: var(--secondary-color);
}

/* Footer */
footer {
  background: var(--primary-color);
  color: var(--white);
  padding: 1rem;
}
footer .footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
footer .footer-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}
footer .footer-links li a {
  color: var(--white);
  transition: opacity 0.3s ease;
}
footer .footer-links li a:hover {
  opacity: 0.8;
}

/* Page titles */
.page-title {
  text-align: center;
  padding: 4rem 1rem 2rem;
  background: var(--secondary-color);
  color: var(--white);
}
.page-title h1 {
  font-size: 2.2rem;
}

/* Content sections on inner pages */
main section {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}
main h2 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}
main p {
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* Events list */
.events article {
  border-left: 4px solid var(--accent-color);
  padding-left: 1rem;
  margin-bottom: 2rem;
}
.events h3 {
  margin-bottom: 0.25rem;
}

/* Contact forms */
.forms {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.forms > div {
  flex: 1;
  min-width: 280px;
}
.forms form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.forms label {
  font-weight: 600;
}
.forms input,
.forms textarea {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}
.forms button {
  padding: 0.5rem;
  background: var(--accent-color);
  color: var(--white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.forms button:hover {
  background: var(--secondary-color);
}
.logo img {
  height: 42px;        /* main desktop size */
  width: auto;
  max-height: 42px;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .logo img {
    height: 34px;
  }
}
.hero-logo {
  max-width: 320px;
  width: 100%;
  height: auto;
  margin: 0 auto 2rem;
  display: block;
}
@media (max-width: 768px) {
  .hero-logo {
    max-width: 220px;
  }
}
/* FORCE hero logo sizing */
.hero-logo {
  max-width: 220px !important;
  width: 100% !important;
  height: auto !important;
  display: block;
  margin: 0 auto 1.5rem;
}

/* If hero uses flex or grid */
.hero {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
@media (max-width: 768px) {
  .hero-logo {
    max-width: 160px !important;
  }
}
/* Mobile fixes: keep layout proportional */
img {
  max-width: 100%;
  height: auto;
}
/* Mobile fixes: keep layout proportional */
img {
  max-width: 100%;
  height: auto;
}

/* If any large logo is still present in main content, limit it */
main img[src*="stbc-logo"] {
  max-width: 220px;
  margin: 0 auto 16px;
  display: block;
}

/* Hero section should not overflow on mobile */
.hero {
  padding: 24px 16px;
}

.hero .container,
.container {
  max-width: 1100px;
  width: 100%;
}

/* Make the hero image/banner responsive */
.hero img,
.hero .hero-image,
.hero .hero-media {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Improve spacing on small screens */
@media (max-width: 768px) {
  .navbar {
    padding: 10px 12px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  .logo img {
    height: 38px;
  }
}
.navbar-brand img,
.logo {
  width: 180px !important;
  height: 48px !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: left center !important;
  overflow: visible !important;
}
}

.navbar-brand,
.logo {
  overflow: visible !important;
  width: auto !important;
}