/* ============================================
   1. Responsive Table Styling
============================================ */
table.responsive-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #000;
}
table.responsive-table th,
table.responsive-table td {
  border: 1px solid #000;
  padding: 8px;
  font-size: 18px;
  text-align: left;
}
@media screen and (max-width: 768px) {
  table.responsive-table thead { display: none; }
  table.responsive-table,
  table.responsive-table tbody,
  table.responsive-table tr,
  table.responsive-table td { display: block; width: 100%; }
  table.responsive-table tr {
    border: 1px solid #000;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #fff;
  }
  table.responsive-table td {
    text-align: left;
    padding-left: 50%;
    position: relative;
    border: none;
    border-bottom: 1px solid #ccc;
  }
  table.responsive-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    top: 8px;
    width: 45%;
    white-space: nowrap;
    font-weight: bold;
  }
}

/* ============================================
   2. Main Body & Layout Adjustments (No Sticky Footer)
============================================ */
#sp-body-inner {
  display: block !important;
  min-height: auto !important;
  flex-direction: initial !important;
  overflow: visible !important;
}
#sp-main-body {
  flex-grow: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
#sp-footer {
  position: relative !important;
  margin-top: 0 !important;
  z-index: 1 !important;
}

/* ============================================
   3. Menu Links Styling
============================================ */
#sp-topmenu a,
#sp-main-menu a,
.sp-megamenu-parent > a { font-weight: bold !important; }

/* ============================================
   4. Article & Page Text Styling
============================================ */
.page-header h2,
.article-details h1,
.article-details h2 { font-size: 1.6rem !important; line-height: 1.3; margin-bottom: 10px; }
.article-details p,
.article-body p { font-size: 1.05rem; line-height: 1.7; }
.article-details h3,
.article-body h3 { font-size: 1.3rem; margin-top: 1em; margin-bottom: .5em; }

/* ============================================
   5. Events Page Styling
============================================ */
.events-year .event-box {
  background-color: #d5dfd2;
  border: 1px solid #a5b2a0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.events-year .section-title {
  text-align: center;
  color: #2f5e2f;
  margin-bottom: 15px;
  font-weight: bold;
}
.events-year .weekly-item { padding: 15px; border-radius: 6px; margin-bottom: 15px; }
.events-year .weekly-item.odd { background-color: #e8efe5; }
.events-year .weekly-item.even { background-color: #cfdacb; }
.events-year .highlight { color: #0033cc; font-weight: bold; }
.events-year a { color: #006699; font-weight: bold; text-decoration: none; }
.events-year a:hover { text-decoration: underline; }

/* ============================================
   6. Venerable Bio Page & Buttons
============================================ */
.venerable-bio-container {
  max-width: 950px;
  margin: auto;
  font-family: Arial,sans-serif;
  color: #333;
  text-align: left;
  padding: 20px;
}
.venerable-title { text-align: center; margin-bottom: 25px; color: #2c3e50; }
.venerable-bio {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  font-size: 16px;
}
.venerable-text { flex: 1 1 55%; line-height: 1.6; }
.venerable-photo { flex: 1 1 35%; text-align: right; }
.venerable-photo img { max-width: 100%; height: auto; border-radius: 10px; box-shadow: 0 4px 10px rgba(0,0,0,.15); }
.venerable-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}
.bio-btn {
  background-color: #4a7856;
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  min-width: 150px;
  box-shadow: 0 3px 6px rgba(0,0,0,.1);
  transition: all .3s ease;
}
.bio-btn:hover { background-color: #3d6549; color: #ff7f7f; transform: translateY(-2px); }
.facebook-btn { background-color: #3b5998; }
.facebook-btn:hover { background-color: #324b84; color: #ff7f7f; }
.burmese-verse { font-style: italic; margin: 20px 0; color: #444; }

@media (max-width:768px) {
  .venerable-bio { flex-direction: column-reverse; text-align: center; }
  .venerable-photo { text-align: center; }
  .venerable-text { flex: 1 1 100%; }
}

/* ============================================
   7. Contact Page Hover Effects
============================================ */
.directions-block a:hover { opacity: .85; }


#sp-right .sp-module {
  margin: 0 !important;
  padding: 5px 5px 5px 5px !important;
}

#sp-right .sp-module .sp-module-content {
  padding: 5px 5px 5px 5px !important;
}


/* ====== Offcanvas Menu Font Size Fix ====== */
.offcanvas-menu ul li a,
.offcanvas-menu ul li span,
#offcanvas-toggler {
  font-size: 22px !important;     /* adjust size here */
  line-height: 1.4 !important;
}

/* Optional: make submenu items slightly smaller */
.offcanvas-menu ul ul li a {
  font-size: 18px !important;
    line-height: 1.4 !important;
}

/* Optional: improve spacing between items */
.offcanvas-menu ul li {
  margin-bottom: 8px !important;
}


/* Make Digi Showcase show 2 per row on mobile */
@media (max-width: 767.98px) {
  .showcase-item.col-md-3 {
    width: 50% !important;
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Optional: revert to 1 per row on tiny phones */
@media (max-width: 480px) {
  .showcase-item.col-md-3 {
    width: 50% !important;
    flex: 0 0 50%;
    max-width: 50%;
  }
}
/* Center images in Digi Showcase items */
.showcase-item .image {
  text-align: center;
}

/* Optional: make sure image itself doesn’t overflow */
.showcase-item .image img {
  display: inline-block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

