/* FCCCC Modern Responsive Layout - Main Stylesheet */

/* ===== RESET & BASE ===== */
* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  background-color: transparent !important;
  background-image: url("../images/homebk.jpg") !important;
  background-repeat: repeat !important;
  background-position: bottom right !important;
  min-height: 100%;
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: "MS Serif", "New York", SimSun, serif;
  background-color: transparent !important;
  background-image: url("../images/homebk.jpg") !important;
  background-repeat: repeat !important;
  background-position: bottom right !important;
  background-size: auto !important;
  color: #333;
  line-height: 1.5;
  min-height: 100vh;
}

/* Mobile-specific background fix */
@media (max-width: 767px) {
  html, body {
    background-color: transparent !important;
    background-image: url("../images/homebk.jpg") !important;
    background-repeat: repeat !important;
    background-position: bottom right !important;
    background-attachment: scroll !important;
  }
}

/* ===== HEADER ===== */
.site-header {
  background-color: #74A4B4;
  padding: 0;
  text-align: center;
  width: 100%;
}

.site-header img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ===== CONTAINER & LAYOUT ===== */
.container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 200px);
  background-color: transparent;
}

/* Mobile: Single column */
@media (max-width: 767px) {
  .container {
    grid-template-columns: 1fr;
  }
  
  .sidebar-nav {
    order: 2;
  }
  
  .main-content {
    order: 1;
  }
  
  .sidebar-right {
    display: none; /* Hide empty sidebar on mobile */
  }
}

/* Tablet: Two columns */
@media (min-width: 768px) and (max-width: 1023px) {
  .container {
    grid-template-columns: 200px 1fr;
  }
  
  .sidebar-right {
    display: none; /* Hide empty sidebar on tablet */
  }
}

/* Desktop: Two columns */
@media (min-width: 1024px) {
  .container {
    grid-template-columns: 200px 1fr;
  }
}

/* ===== NAVIGATION ===== */
.sidebar-nav {
  background-color: transparent;
  padding: 10px 5px;
  min-height: 400px;
}

.sidebar-nav ul {
  list-style-type: none;
  margin: 0;
  padding: 1px 0 2px 0;
}

.sidebar-nav a:link,
.sidebar-nav a:visited {
  display: block;
  margin: 1px;
  border: 1px solid #ffffff;
  font-weight: normal;
  color: #FFFFFF;
  background-color: #74A4B4;
  width: 100%;
  text-align: center;
  padding: 8px 4px;
  text-decoration: none;
  text-transform: capitalize;
  font-size: 14px;
}

.sidebar-nav a img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  margin: 0 auto;
}

.sidebar-nav a:hover,
.sidebar-nav a:active {
  background-color: #277478;
}

.contact-info {
  text-align: center;
  font-size: 10px;
  color: #74A4B4;
  margin-top: 15px;
  padding: 10px 5px;
}

/* Mobile menu toggle (hamburger menu) */
.menu-toggle {
  display: none;
  background-color: #74A4B4;
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 18px;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

@media (max-width: 767px) {
  .menu-toggle {
    display: block;
  }
  
  .sidebar-nav {
    position: fixed;
    left: -100%;
    top: 95px; /* Below header */
    width: 200px;
    height: calc(100vh - 95px);
    overflow-y: auto;
    z-index: 1000;
    transition: left 0.3s ease;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
  }
  
  .sidebar-nav.open {
    left: 0;
  }
  
  /* Overlay when menu is open */
  .menu-overlay {
    display: none;
    position: fixed;
    top: 95px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
  }
  
  .menu-overlay.open {
    display: block;
  }
}

/* ===== MAIN CONTENT ===== */
.main-content {
  background-color: transparent;
  padding: 15px 20px;
  min-height: 400px;
}

/* ===== SIDEBAR RIGHT ===== */
/* Removed - empty sidebar no longer needed */

/* ===== FOOTER ===== */
.site-footer {
  background-color: #f5f5f5;
  padding: 15px;
  text-align: center;
  margin-top: 20px;
  border-top: 1px solid #ddd;
}

.footer-address {
  font-size: 10px;
  color: #003300;
  margin: 0;
}

/* ===== UTILITY CLASSES ===== */
.hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ===== HOMEPAGE-SPECIFIC STYLES ===== */

/* Service Info Section */
.serviceinfo {
  font-family: "MS Serif", "New York", SimSun, serif;
  color: #066;
  margin: 0;
  padding: 0;
  background-color: transparent;
}

.serviceinfo section {
  margin-top: 0.5rem;
}

.serviceinfo section:first-of-type {
  margin-top: 0.875rem;
}

/* Slideshow */
.slideshow {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  background-color: transparent;
}

.slideshow p {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slideshow p.active {
  opacity: 1;
  position: relative;
}

.slideshow img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Homepage Grid Layout */
.homepage-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
}

.homepage-main .main-content-left {
  grid-column: 1;
}

.homepage-main .main-content-right {
  grid-column: 2;
}

.homepage-main .main-content-full {
  grid-column: 1 / -1;
}

@media (max-width: 768px) {
  .homepage-main {
    grid-template-columns: 1fr;
  }
  
  .homepage-main .main-content-left,
  .homepage-main .main-content-right,
  .homepage-main .main-content-full {
    grid-column: 1;
  }
}

/* Teal Text Utility */
.teal-text {
  color: #006666;
  line-height: 1.5;
}

/* Inline "more" link: smaller, italic, stays on one line */
.more-link {
  font-size: 0.85em;
  font-style: italic;
  white-space: nowrap;
}

/* Verse Reference */
.verse-reference {
  color: red;
  font-size: 0.85em;
}

.verse-reference a {
  text-decoration: none;
  color: inherit;
  cursor: help;
}

/* Announcements Section */
.announcements-section {
  margin-top: 2rem;
  border: 1px solid;
  background-color: transparent;
}

.announcement-link,
.announcement-link-blue {
  color: #0000CC;
}

.announcement-link-orange {
  color: #cc7000;
}

.announcement-link a {
  font-size: 1.1em;
}

/* Bible Reading Section */
.bible-reading-section {
  border: 1px outset;
  border-color: #336699;
  padding-top: 10px;
  background-color: transparent;
}

.bible-reading-text {
  font-family: 'Arial';
}

.bible-reading-link {
  color: blue;
  font-size: small;
}

.daily-manna-header {
  font-size: 16px;
}

.bible-cn {
  font-size: smaller;
}

/* Hide BibleGateway attribution links */
.bible-cn a[href*="biblegateway"],
.bible-cn a[href*="BibleGateway"],
.bible-cn a[href*="biblegateway.com"] {
  display: none !important;
}

/* ===== PRINT STYLES ===== */
@media print {
  .sidebar-nav,
  .sidebar-right,
  .menu-toggle {
    display: none;
  }
  
  .container {
    grid-template-columns: 1fr;
  }
  
  .main-content {
    padding: 0;
  }
}
