/* ----------------------------------------- */
/* Reset and Base Styles                     */
/* ----------------------------------------- */
* {
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

a {
  color: #5d5387;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ----------------------------------------- */
/* Header, Navigation, Title Section         */
/* ----------------------------------------- */
.header-container {
  max-width: 1000px;
  margin: 0 auto 20px auto;
  border-radius: 8px;
  overflow: hidden;
}

.header-container img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  border-radius: 8px;
}

.nav-wrapper {
  max-width: 1000px;
  margin: 0 auto 20px auto;
  background-color: #5d5387;
  padding: 10px 20px;
  border-radius: 0 0 8px 8px;
  text-align: right;
}

.nav-wrapper a {
  color: white;
  font-weight: bold;
  text-decoration: none;
  margin-left: 15px;
}

.nav-wrapper a:hover {
  text-decoration: underline;
}

.project-title-section {
  max-width: 1000px;
  margin: 0 auto 20px auto;
  text-align: center;
  font-weight: bold;
  font-size: 1.5em;
  color: #5d5387;
}

/* ----------------------------------------- */
/* Layout: Container, Main, Sidebar          */
/* ----------------------------------------- */
.container {
  max-width: 1000px;
  margin: 20px auto;
  padding: 0 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
}

.main-content {
  flex: 1 1 600px;
  min-width: 300px;
  padding: 20px;
}

.sidebar {
  flex: 0 0 280px;
  min-width: 280px;
  background-color: #fff;
  border-left: 1px solid #ddd;
  padding: 20px;
  font-size: 0.9em;
  color: #444;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-radius: 0 8px 8px 0;
}

/* ----------------------------------------- */
/* Content / Projects                        */
/* ----------------------------------------- */
.project-section {
  margin-bottom: 30px;
}

.project-section h3 {
  background-color: #5d5387;
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  margin: 0 0 10px 0;
  font-size: 1.2em;
}

.project-section img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 10px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.project-section img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.project-section p {
  line-height: 1.6;
  margin-bottom: 10px;
}

.read-more {
  font-weight: 600;
  color: #5d5387;
  transition: color 0.3s ease;
  cursor: pointer;
}

.read-more:hover {
  color: #b22222;
  text-decoration: underline;
}

/* ----------------------------------------- */
/* Sidebar Sections                          */
/* ----------------------------------------- */
.sidebar h3 {
  background-color: #5d5387;
  color: white;
  margin: 0 0 10px 0;
  padding: 10px 15px;
  border-radius: 5px;
  text-align: center;
  font-size: 1.1em;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.sidebar ul li {
  margin-bottom: 10px;
}

.sidebar ul li a {
  color: #5d5387;
  font-weight: bold;
  text-decoration: none;
}

.sidebar ul li a:hover {
  text-decoration: underline;
}

.sidebar img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 15px;
}

/* ----------------------------------------- */
/* Video Embeds                              */
/* ----------------------------------------- */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 15px;
}

.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 6px;
}

/* ----------------------------------------- */
/* Outreach Intro & Scripture                */
/* ----------------------------------------- */
.outreach-intro {
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 15px;
  color: #333;
  font-size: 1em;
  line-height: 1.6em;
}

.outreach-intro h2 {
  color: #5d5387;
  font-size: 1.4em;
  margin-bottom: 10px;
}

.scripture-excerpts {
  background-color: #f1f1f8;
  border-left: 4px solid #5d5387;
  padding: 12px 18px;
  margin-top: 15px;
  border-radius: 5px;
}

.scripture {
  font-style: italic;
  color: #444;
  margin-bottom: 10px;
}

/* ----------------------------------------- */
/* Footer                                    */
/* ----------------------------------------- */
footer {
  max-width: 1000px;
  margin: 30px auto 20px auto;
  text-align: center;
  font-size: 0.9em;
  color: #555;
}

footer a {
  color: #5d5387;
  margin: 0 8px;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ----------------------------------------- */
/* Responsive Styles                         */
/* ----------------------------------------- */
@media (max-width: 900px) {
  .container {
    flex-direction: column;
    padding: 10px;
  }

  .sidebar {
    border-left: none;
    border-top: 1px solid #ddd;
    border-radius: 0 0 8px 8px;
    min-width: auto;
    padding: 15px 10px;
  }

  .main-content {
    padding: 15px 10px;
  }

  .nav-wrapper {
    text-align: center;
    padding: 10px 10px;
  }

  .nav-wrapper a {
    margin: 0 10px;
  }
}
