/* ===========================
   Central Baptist Church
   Main Stylesheet
   =========================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: #2c2c2c;
  background-color: #faf9f6;
  line-height: 1.6;
}

a {
  color: #1a3a5c;
  text-decoration: none;
}

a:hover {
  color: #c9a84c;
}

/* ===========================
   Header / Navigation
   =========================== */

.site-header {
  background-color: #1a3a5c;
  color: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 30px;
  gap: 16px;
  background-color: #142e4a;
  position: relative;
}

.header-top h1 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #c9a84c;
  line-height: 1.1;
}

.header-top .subtitle {
  font-size: 18px;
  color: #b0c4d8;
  font-style: italic;
  text-align: center;
}

.header-nav {
  display: flex;
  justify-content: center;
  gap: 0;
  background-color: #1a3a5c;
}

.header-nav a {
  color: #d4dce6;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background-color 0.2s, color 0.2s;
  border-bottom: 3px solid transparent;
}

.header-nav a:hover,
.header-nav a.active {
  background-color: #142e4a;
  color: #c9a84c;
  border-bottom: 3px solid #c9a84c;
}

/* ===========================
   Hero Section
   =========================== */

.hero {
  background: linear-gradient(rgba(20, 46, 74, 0.7), rgba(20, 46, 74, 0.85)),
              url('images/church-hero.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 100px 30px;
  min-height: 450px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero h2 {
  font-size: 2.8rem;
  margin-bottom: 12px;
  color: #c9a84c;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin-bottom: 24px;
  color: #d4dce6;
}

.hero .btn {
  display: inline-block;
  padding: 14px 32px;
  background-color: #c9a84c;
  color: #1a3a5c;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color 0.2s;
}

.hero .btn:hover {
  background-color: #b8953e;
  color: #fff;
}

/* ===========================
   Content Sections
   =========================== */

.section {
  padding: 60px 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.section h3 {
  font-size: 1.8rem;
  color: #1a3a5c;
  margin-bottom: 16px;
  text-align: center;
}

.section p {
  font-size: 1.05rem;
  color: #444;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 20px;
}

.section-divider {
  width: 60px;
  height: 3px;
  background-color: #c9a84c;
  margin: 0 auto 30px;
  border: none;
}

/* ===========================
   Info Cards (Service Times, etc.)
   =========================== */

.card-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.card {
  background: #fff;
  border: 1px solid #e0ddd5;
  border-radius: 8px;
  padding: 30px 24px;
  text-align: center;
  width: 280px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.card h4 {
  font-size: 1.2rem;
  color: #1a3a5c;
  margin-bottom: 8px;
}

.card p {
  font-size: 0.95rem;
  color: #666;
}

/* ===========================
   Footer
   =========================== */

.site-footer {
  background-color: #142e4a;
  color: #b0c4d8;
  text-align: center;
  padding: 30px;
  font-size: 0.85rem;
  margin-top: 40px;
}

.site-footer a {
  color: #c9a84c;
}

.site-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 768px) {
  .header-top h1 {
    font-size: 2rem;
  }

  .header-logo {
    height: 50px;
  }

  .header-nav {
    flex-wrap: wrap;
  }

  .header-nav a {
    padding: 10px 16px;
    font-size: 0.85rem;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .card-row {
    flex-direction: column;
    align-items: center;
  }
}


/* ===========================
   Nav Dropdown
   =========================== */

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  cursor: pointer;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #142e4a;
  min-width: 180px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 200;
  border-radius: 0 0 6px 6px;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: flex;
  flex-direction: column;
}

.nav-dropdown-menu a {
  padding: 10px 20px;
  font-size: 0.9rem;
  color: #d4dce6;
  border-bottom: none;
  text-transform: none;
  font-weight: 500;
}

.nav-dropdown-menu a:hover {
  background-color: #1a3a5c;
  color: #c9a84c;
}

/* ===========================
   Staff Cards
   =========================== */

.staff-card {
  background: #fff;
  border: 1px solid #e0ddd5;
  border-radius: 8px;
  padding: 30px 24px;
  text-align: center;
  width: 280px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.staff-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.staff-photo-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: #d4dce6;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 0.85rem;
  font-style: italic;
}

.staff-card h4 {
  font-size: 1.15rem;
  color: #1a3a5c;
  margin-bottom: 4px;
}

.staff-role {
  font-size: 0.9rem;
  color: #c9a84c;
  font-weight: 600;
  margin-bottom: 12px;
}

.staff-bio {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
}


/* ===========================
   Staff Feature Layout
   =========================== */

.staff-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 0;
}

.staff-feature-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #c9a84c;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.staff-feature-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.staff-feature-info h3 {
  font-size: 1.5rem;
  color: #1a3a5c;
  margin-bottom: 4px;
}

.staff-feature-info .staff-role {
  font-size: 1.5rem;
  color: #c9a84c;
  font-weight: 600;
  margin-bottom: 16px;
}

.staff-feature-bio {
  max-width: 650px;
  text-align: left;
}

.staff-feature-bio p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.7;
  margin-bottom: 14px;
  text-align: left;
}

.staff-divider {
  width: 100%;
  height: 1px;
  background-color: #e0ddd5;
  border: none;
  margin: 10px 0;
}

@media (max-width: 768px) {
  .staff-feature-photo {
    width: 140px;
    height: 140px;
  }
}


/* ===========================
   Staff Card Photo (row layout)
   =========================== */

.staff-card-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #c9a84c;
  margin: 0 auto 16px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.staff-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ===========================
   Header Logo
   =========================== */

.header-logo {
  height: 90px;
  width: auto;
  object-fit: contain;
}

/* Ensure dropdown sits inline with other nav items */
.header-nav {
  align-items: center;
}

.nav-dropdown {
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
}


/* ===========================
   About / Location Layout
   =========================== */

.about-location-row {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-top: 20px;
}

.about-info {
  flex: 1;
  min-width: 280px;
}

.about-info-block {
  margin-bottom: 24px;
}

.about-info-block h4 {
  font-size: 1.1rem;
  color: #1a3a5c;
  margin-bottom: 6px;
  text-align: center;
}

.about-info-block p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
  text-align: center;
}

.about-info-block a {
  color: #1a3a5c;
  font-weight: 600;
}

.about-info-block a:hover {
  color: #c9a84c;
}

.about-directions {
  display: flex;
  gap: 20px;
  margin-top: 14px;
  justify-content: center;
}

.direction-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background-color: #1a3a5c;
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  letter-spacing: 0.3px;
  transition: background-color 0.2s, transform 0.15s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.direction-btn:hover {
  background-color: #c9a84c;
  color: #1a3a5c !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.direction-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.about-map {
  flex: 1;
  min-width: 300px;
  min-height: 350px;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.about-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
  display: block;
}

@media (max-width: 768px) {
  .about-location-row {
    flex-direction: column;
  }

  .about-map {
    min-height: 280px;
    width: 100%;
  }
}


/* ===========================
   Contact Page
   =========================== */

.contact-row {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 20px;
}

.contact-info {
  flex: 1;
  min-width: 280px;
}

.contact-block {
  margin-bottom: 24px;
  text-align: center;
}

.contact-block h4 {
  font-size: 1.1rem;
  color: #1a3a5c;
  margin-bottom: 6px;
}

.contact-block p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
}

.contact-block a {
  color: #1a3a5c;
  font-weight: 600;
}

.contact-block a:hover {
  color: #c9a84c;
}

.contact-form-container {
  flex: 1;
  min-width: 300px;
  background: #fff;
  border: 1px solid #e0ddd5;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.contact-form-container h4 {
  font-size: 1.2rem;
  color: #1a3a5c;
  margin-bottom: 20px;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
  color: #333;
  background: #faf9f6;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #c9a84c;
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.15);
}

.form-group textarea {
  resize: vertical;
}

.form-submit-btn {
  padding: 12px 24px;
  background-color: #1a3a5c;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s;
  margin-top: 8px;
}

.form-submit-btn:hover {
  background-color: #c9a84c;
  color: #1a3a5c;
  transform: translateY(-2px);
}

.contact-success {
  text-align: center;
  padding: 30px;
}

.contact-success p {
  font-size: 1.1rem;
  color: #1a3a5c;
  font-weight: 600;
}

@media (max-width: 768px) {
  .contact-row {
    flex-direction: column;
  }
}


/* ===========================
   Social Icons
   =========================== */

/* Header social */
.header-social {
  display: flex;
  gap: 14px;
  align-items: center;
  position: absolute;
  right: 30px;
}

.header-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #d4dce6;
  transition: background-color 0.2s, color 0.2s, transform 0.15s;
}

.header-social a:hover {
  background-color: #c9a84c;
  color: #1a3a5c;
  transform: scale(1.1);
}

.header-social svg {
  width: 20px;
  height: 20px;
}

/* Footer social */
.footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 14px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #b0c4d8;
  transition: background-color 0.2s, color 0.2s, transform 0.15s;
}

.footer-social a:hover {
  background-color: #c9a84c;
  color: #1a3a5c;
  transform: scale(1.1);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

/* Contact page social links */
.contact-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 8px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background-color: #1a3a5c;
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  transition: background-color 0.2s, transform 0.15s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.social-link:hover {
  background-color: #c9a84c;
  color: #1a3a5c !important;
  transform: translateY(-2px);
}

.social-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}


/* ===========================
   Mission Page
   =========================== */

.mission-value {
  margin-bottom: 40px;
  padding: 30px;
  background: #fff;
  border: 1px solid #e0ddd5;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.mission-value:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.mission-value-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.mission-value-header h3 {
  font-size: 1.4rem;
  color: #1a3a5c;
  margin: 0;
  text-align: left;
}

.mission-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.mission-scripture {
  font-size: 0.95rem;
  color: #1a3a5c;
  font-weight: 600;
  font-style: italic;
  margin-bottom: 12px;
  padding-left: 16px;
  border-left: 3px solid #c9a84c;
  text-align: left;
}

.mission-scripture em {
  color: #c9a84c;
  font-weight: 700;
}

.mission-value p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.7;
  text-align: left;
}


/* ===========================
   Giving Page
   =========================== */

.giving-btn {
  display: inline-block;
  padding: 12px 28px;
  background-color: #c9a84c;
  color: #1a3a5c !important;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 6px;
  letter-spacing: 0.5px;
  transition: background-color 0.2s, transform 0.15s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.giving-btn:hover {
  background-color: #1a3a5c;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


/* ===========================
   Sermons Page
   =========================== */

.sermon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 20px;
}

.sermon-item {
  background: #fff;
  border: 1px solid #e0ddd5;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.sermon-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.sermon-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.sermon-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.sermon-info {
  padding: 14px 16px;
  text-align: center;
}

.sermon-info h4 {
  font-size: 1rem;
  color: #1a3a5c;
  margin-bottom: 4px;
}

.sermon-date {
  font-size: 0.85rem;
  color: #888;
}

.sermon-yt-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background-color: #cc0000;
  color: #fff !important;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  transition: background-color 0.2s, transform 0.15s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.sermon-yt-btn:hover {
  background-color: #a00;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .sermon-grid {
    grid-template-columns: 1fr;
  }
}
