/* ========================================================= */
/* 1. GLOBAL STYLES & HEADER NAVIGATION                      */
/* ========================================================= */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #333;
}

.site-header {
  background-color: #830E0D;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.main-nav .nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.main-nav .nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: opacity 0.2s;
}

.main-nav .nav-links a:hover {
  opacity: 0.8;
}

.giving-btn {
  background-color: #ffffff;
  color: #830E0D !important;
  padding: 8px 16px;
  border-radius: 4px;
}

.logo-container img {
  max-height: 50px;
  width: auto;
}

.menu-toggle {
  display: none;
}

/* ========================================================= */
/* 2. HOMEPAGE STYLES                                        */
/* ========================================================= */
.hero {
  text-align: center;
  padding: 60px 20px;
  background-color: #fafafa; 
  border-bottom: 1px solid #eaeaea; 
}

.hero h1 {
  color: #830E0D;
  font-size: 3.5rem;
  margin-bottom: 15px;
  font-weight: bold;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2); 
}

.hero p {
  color: #666;
  font-size: 1.1rem;
}

.hero + hr.section-divider { display: none; }

hr.section-divider {
  border: none;
  height: 1px;
  background-color: #e0e0e0;
  max-width: 80%;
  border-radius: 2px;
  margin: 20px auto; 
}

.service-times {
  display: flex;
  justify-content: center;
  gap: 120px; 
  padding: 60px 20px 20px 20px;
  max-width: 1200px; 
  margin: 0 auto;
  text-align: center;
}

.service-col h2 {
  color: #830E0D;
  font-size: 1.6rem;
  margin-bottom: 25px;
  font-weight: bold;
  letter-spacing: 1px;
  border-bottom: 2px solid #eaeaea; 
  padding-bottom: 10px;
  display: inline-block;
}

.service-col ul {
  list-style-type: none; 
  padding: 0;
  margin: 0;
}

.service-col li, .service-col p {
  margin: 12px 0; 
  font-size: 1.05rem;
  color: #444;
  letter-spacing: 0.5px;
}

.newsletter-promo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px; 
  padding: 40px 20px 100px 20px;
  max-width: 1200px; 
  margin: 0 auto;
}

.newsletter-image img {
  max-width: 350px;
  width: 100%;
  height: auto;
}

.newsletter-text {
  text-align: left; 
  max-width: 600px;
}

.newsletter-text h2 {
  color: #830E0D;
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: bold;
}

.newsletter-text p {
  line-height: 1.6;
  color: #444;
  margin-bottom: 25px;
  font-size: 1.05rem;
}

.newsletter-text a {
  color: #830E0D;
  font-weight: bold;
  text-decoration: underline;
}

/* ========================================================= */
/* 3. DEVOTIONAL PAGE STYLES                                 */
/* ========================================================= */
.devotional-content {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 20px;
  min-height: 50vh;
}

.devotional-post {
  background-color: #ffffff;
  padding: 60px 50px;
  border: 2px solid #830E0D;
  outline: 1px solid #000000;
  outline-offset: -10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  margin-top: 20px;
}

.devotional-header {
  text-align: center;
  margin-bottom: 35px;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 25px;
}

.devotional-header h2 {
  color: #830E0D;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.devotional-meta {
  color: #666666;
  font-style: italic;
  font-size: 1rem;
}

.devotional-body p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #333333;
  margin-bottom: 25px;
}

.accessibility-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eaeaea;
}

.accessibility-controls button {
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 5px 12px;
  font-weight: bold;
  cursor: pointer;
}

.accessibility-controls button:hover {
  background-color: #830E0D;
  color: #fff;
  border-color: #830E0D;
}

.devotional-body h3 {
  color: #830E0D;
  margin-top: 35px;
  margin-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 5px;
}

.scripture-block {
  background-color: #f9f9f9;
  border-left: 5px solid #830E0D;
  padding: 20px 25px;
  margin: 30px 0;
  font-style: italic;
  color: #444;
  line-height: 1.7;
}

.scripture-block strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-style: normal;
  color: #830E0D;
}

.footnote-divider {
  margin-top: 50px;
  border: none;
  border-top: 1px solid #ccc;
}

.footnotes p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
  margin-bottom: 8px;
}

/* ========================================================= */
/* 4. GIVING PAGE STYLES                                     */
/* ========================================================= */
.giving-page-wrapper {
  background-color: #830E0D;
  color: #ffffff;
  padding: 80px 20px 100px 20px;
}

.giving-header {
  text-align: center;
  margin-bottom: 60px;
}

.giving-header h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.giving-header p {
  font-size: 1.2rem;
  font-weight: bold;
  line-height: 1.5;
  max-width: 800px;
  margin: 0 auto;
  text-transform: uppercase;
}

.giving-columns {
  display: flex;
  justify-content: center;
  gap: 40px; 
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.giving-col {
  flex: 1;
  background-color: rgba(0, 0, 0, 0.3); 
  padding: 50px 30px;
  border-radius: 16px; 
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5); 
  border: 1px solid rgba(255, 255, 255, 0.05); 
  transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

.giving-col:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

.giving-col h2 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffffff;
}

.giving-col p {
  font-size: 1.05rem;
  line-height: 1.8;
  font-weight: bold;
  margin-bottom: 25px;
  text-transform: uppercase;
  color: #f0f0f0; 
}

.giving-phone {
  font-size: 2rem !important;
  margin: 30px 0 !important;
  letter-spacing: 1px;
  color: #ffffff !important;
}

.tithely-image-btn {
  display: inline-block;
  background-color: #ffffff;
  padding: 15px 25px;
  margin: 15px 0 30px 0;
  border-radius: 6px; 
  box-shadow: 0 4px 15px rgba(0,0,0,0.25); 
  transition: transform 0.2s, box-shadow 0.2s;
}

.tithely-image-btn:hover {
  transform: translateY(-3px); 
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

.tithely-image-btn img {
  max-width: 200px;
  height: auto;
  display: block; 
}

/* ========================================================= */
/* 5. FOOTER STYLES                                          */
/* ========================================================= */
.site-footer {
  background-color: #fafafa; 
  color: #333333;
  text-align: center;
  padding: 60px 20px 40px; 
  border-top: 1px solid #eaeaea;
}

.footer-socials { margin-bottom: 25px; }
.footer-socials a { text-decoration: none; display: inline-block; }
.footer-socials img { width: 32px; margin: 0 12px; transition: transform 0.2s; }
.footer-socials img:hover { transform: translateY(-3px); }

.footer-org {
  margin: 15px 0 5px 0 !important;
  font-size: 1.2rem !important;
  font-weight: bold;
  letter-spacing: 1.5px;
  color: #830E0D !important; 
}

.footer-address, .footer-copyright {
  margin: 4px 0;
  font-size: 0.85rem;
  font-weight: normal; 
  color: #666666;
  letter-spacing: 0.5px;
}

.footer-contact {
  margin-top: 20px !important;
  font-size: 0.95rem !important;
  font-weight: bold;
  color: #333333;
}

.footer-contact a {
  color: #830E0D;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid #830E0D; 
  transition: opacity 0.2s;
}

.footer-contact a:hover { opacity: 0.7; }
.footer-credit { display: none; }

/* ========================================================= */
/* 7. GIVING PAGE UNIQUE HEADER                              */
/* ========================================================= */
.giving-specific-header {
  background-color: #000000;
}
/* ========================================================= */
/* 8. CALENDAR & MODAL STYLES                                */
/* ========================================================= */
.calendar-section {
  background: #fafafa;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.cal-nav-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #830E0D;
  cursor: pointer;
  padding: 5px 15px;
  transition: transform 0.2s;
}

.cal-nav-btn:hover {
  transform: scale(1.2);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  text-align: center;
}

.cal-day-label {
  font-weight: bold;
  color: #333;
  padding-bottom: 10px;
  border-bottom: 2px solid #830E0D;
}

.cal-day {
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 4px;
  padding: 15px 5px;
  position: relative;
  transition: background 0.2s;
}

.cal-day:hover {
  background: #f0f0f0;
}

/* The little red dot that shows an event exists */
.event-dot {
  width: 8px;
  height: 8px;
  background-color: #830E0D;
  border-radius: 50%;
  margin: 5px auto 0 auto;
}

/* Modal Dark Background Overlay */
.calendar-modal {
  display: none; 
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); 
  align-items: center;
  justify-content: center;
}

/* Modal White Content Box */
.calendar-modal-box {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-btn:hover {
  color: #830E0D;
}
/* ========================================================= */
/* 6. MOBILE-ONLY STYLES                                     */
/* ========================================================= */
@media screen and (max-width: 768px) {
  .site-header { padding: 15px 15px; }

  .menu-toggle {
    display: flex; flex-direction: column; justify-content: space-between;
    width: 30px; height: 22px; background: transparent; border: none;
    cursor: pointer; padding: 0;
  }
  .menu-toggle span { width: 100%; height: 3px; background-color: #000000; border-radius: 2px; }

  /* Turns the hamburger button white on the Giving page since the header is black */
  .giving-specific-header .menu-toggle span { background-color: #ffffff; }

  .main-nav .nav-links {
    display: none; flex-direction: column; background-color: #000000;
    position: absolute; top: 100%; left: 0; width: 100%; padding: 15px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4); border-bottom: 2px solid #830E0D;
    z-index: 1000; gap: 0; margin: 0;
  }
  .main-nav .nav-links.active { display: flex; }
  .main-nav .nav-links li { width: 100%; text-align: center; border-bottom: 1px solid rgba(131, 14, 13, 0.4); }
  .main-nav .nav-links li:last-child { border-bottom: none; padding-bottom: 10px; }
  .main-nav .nav-links a { display: block; padding: 14px 20px; color: #ffffff !important; }

  .main-nav .nav-links a.giving-btn {
    background-color: #ffffff; color: #830E0D !important; display: inline-block;
    margin: 5px 0; padding: 10px 24px; border-radius: 4px; width: auto;
  }

  .logo-container img { max-width: 130px; height: auto; }

  .service-times { flex-direction: column; gap: 30px; padding: 30px 15px; }
  .newsletter-promo { flex-direction: column; gap: 30px; padding: 30px 15px; text-align: center; }
  .newsletter-text { text-align: center; }

  .devotional-content { margin-top: 40px !important; margin-bottom: 25px !important; padding: 0 15px; }
  .hero h1, .devotional-header h2 { font-size: 1.6rem !important; line-height: 1.3; }
  .devotional-post { padding: 30px 20px !important; outline-offset: -6px; }
  .accessibility-controls { justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }

  .tithely-image-btn img { max-width: 160px; }

  .giving-page-wrapper { padding: 40px 15px 60px 15px; }
  .giving-header h1 { font-size: 2.2rem; }
  .giving-header p { font-size: 1rem; }
  .giving-columns { flex-direction: column; gap: 60px; }
}
/* Fix for header logo container and conditional Staff Portal button */
.logo-container {
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
}
/* Staff Portal Header Button Styling */
#headerStaffPortal {
  background-color: #830E0D !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  font-family: sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  transition: background-color 0.2s, border-color 0.2s;
}

#headerStaffPortal:hover {
  background-color: #a01211 !important;
  border-color: #ffffff;
}
/* Responsive YouTube Video Wrapper */
.video-responsive {
  position: relative;
  padding-bottom: 56.25%; /* Creates a perfect 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  border-radius: 8px; /* Optional: Gives the video player nicely rounded corners */
  box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* Optional: Adds a subtle shadow behind the video */
}

.video-responsive iframe,
.video-responsive object,
.video-responsive embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
/* Professional Live Stream Navigation Badge */
.live-badge {
  background-color: rgba(0, 0, 0, 0.25);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 5px 14px !important;
  border-radius: 20px;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.live-badge:hover {
  background-color: rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.4);
}

/* The animated pulsing red dot */
.pulse-dot {
  width: 10px;
  height: 10px;
  background-color: #ff3333;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 rgba(255, 51, 51, 0.7);
  animation: pulse-animation 1.5s infinite;
}

@keyframes pulse-animation {
  0% { box-shadow: 0 0 0 0 rgba(255, 51, 51, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(255, 51, 51, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 51, 51, 0); }
}
