:root {
  --hwa-font-sans: system-ui, -apple-system, BlinkMacSystemFont,
                   "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--hwa-font-sans);
}

a:link {
  color: #3a83dc;
  text-decoration: none;
}

a:visited {
  color: #3A83DC;
  text-decoration: none;
}

a:hover {
  color: #FF0000;
  text-decoration: underline;
}

a:active {
  color: #FF0000;
  text-decoration: none;
}

/* ===========================
   CARD TITLES (Telecast, etc.)
   =========================== */

/* Stronger, modern style for the ShowType link in the header
   Example HTML:
   <a class="home-card-title home-card-title--shadow" ...>$ShowType</a>
*/
.home-card-header a.home-card-title {
  display: inline-block;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f9fafb;
  text-decoration: none;
  text-rendering: optimizeLegibility;
}

/* Shadow variant (you used home-card-title--shadow on the header link) */
.home-card-header a.home-card-title.home-card-title--shadow {
  text-shadow:
    -1px -1px 4px rgba(0, 0, 0, 0.55),
     1px -1px 4px rgba(0, 0, 0, 0.55),
    -1px  1px 4px rgba(0, 0, 0, 0.55),
     1px  1px 4px rgba(0, 0, 0, 0.55);
}

/* Hover state for header title link */
.home-card-header a.home-card-title:hover {
  text-decoration: underline;
}

/* Wrapper for main content titles (e.g. $InfoTitle)
   Example HTML:
   <h3 class="home-card-title">
     <a class="title" ...>$InfoTitle</a>
   </h3>
*/
.home-card-title {
  margin: 0 0 6px 0;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.02em;
  text-rendering: optimizeLegibility;
}

/* The link inside the h3 (class="title") */
.home-card-title .title {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

/* Hover effect for the main title link */
.home-card-title .title:hover {
  color: #0f172a;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

/* Optional: if you ever add shadow to the h3 itself:
   <h3 class="home-card-title home-card-title--shadow"> */
.home-card-title.home-card-title--shadow {
  text-shadow:
    -1px -1px 4px rgba(0,0,0,0.45),
     1px -1px 4px rgba(0,0,0,0.45),
    -1px  1px 4px rgba(0,0,0,0.45),
     1px  1px 4px rgba(0,0,0,0.45);
}

/* ===========================
   HEADER IMAGE + TEXT
   =========================== */

/* Container for header image */
.hwa-header {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Header image */
.hwa-header-img {
  width: 100%;
  height: auto;
  display: block;
}

/* === Header text over the image === */
.hwa-header-text {
  position: absolute;
  top: 15px;
  left: 25px;
  right: 25px;

  display: flex;
  justify-content: space-between;
  align-items: flex-start;

  font-family: Arial, Helvetica, sans-serif;
  color: #ffffff;
}

/* Left side title text */
.hwa-header-title {
  font-size: 60px;
  font-weight: bold;
  margin-right: 16px;
  text-shadow:
    -1px -1px rgba(0,0,0,0.9),
     1px -1px rgba(0,0,0,0.9),
    -1px  1px rgba(0,0,0,0.9),
     1px  1px rgba(0,0,0,0.9);
}

/* Right side links */
.hwa-header-links {
  font-weight: bold;
  font-size: 18px;
  white-space: nowrap;
  text-shadow:
    -1px -1px rgba(0,0,0,0.9),
     1px -1px rgba(0,0,0,0.9),
    -1px  1px rgba(0,0,0,0.9),
     1px  1px rgba(0,0,0,0.9);
}

.hwa-header-links a {
  color: #ffffff;
  text-decoration: none;
  padding: 0 4px;
}

.hwa-header-links a:hover {
  text-decoration: underline;
}

/* === Responsive behavior === */
@media (max-width: 900px) {
  .hwa-header-text {
    flex-direction: column;
    align-items: flex-end;
  }

  .hwa-header-title {
    font-size: 50px;
    margin-bottom: 8px;
  }

  .hwa-header-links {
    font-size: 18px;
    white-space: normal;
		text-align: right;
  }


#telecast {
            -ms-grid-row: 1;
            -ms-grid-column: 2;
						-ms-grid-column-span: 4;
            grid-row: 1;
            grid-column: 1 / 3;
}

#telecast_video {
            -ms-grid-row: 1;
            -ms-grid-column: 1;
            grid-column: 1;
            grid-row: 1 / 3;
    				width: 320px;
    				height: auto;
						margin: 0px 5px 0px 5px;
    				float: left;
						border-top: 1px solid #888;
						border-left: 1px solid #888;
						border-right: 1px solid #888;
						border-bottom: 1px solid #888;
						-moz-box-shadow: 0 3px 5px #888;
 						-webkit-box-shadow: 0 3px 5px #888;
 						box-shadow: 0 3px 5px #888;
}

#telecast_teaser {
            -ms-grid-row: 1;
            -ms-grid-column: 4;
            grid-column: 2;
            grid-row: 1 / 4;
    				max-width: 300px;
						margin: 0px 5px 0px 5px;
    				float: right;
}

}

@media (max-width: 600px) {
  .hwa-header-title {
    font-size: 32px;
  }

  .hwa-header-links {
    font-size: 16px;
  }
}

/******************************************
 * HEADER + FOOTER NAVIGATION (SHARED)
 ******************************************/

.hwa-nav {
  background: #0f172a;        /* dark bar */
  color: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.hwa-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand/title (left) */
.hwa-nav-brand {
  font-size: 18px;
  font-weight: 600;
  padding: 14px 0;
  white-space: nowrap;
}

.hwa-nav-brand a {
  color: #ffffff;
  text-decoration: none;
}

/* Hide both header & footer nav toggles */
#hwa-nav-toggle,
#hwa-nav-toggle-header,
#hwa-nav-toggle-footer {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

/* Toggle label (hamburger) */
.hwa-nav-toggle-label {
  display: none; /* hidden on desktop */
  cursor: pointer;
  padding: 10px;
}

.hwa-nav-toggle-label span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: #ffffff;
}

/* Main menu list */
.hwa-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

/* Top-level items */
.hwa-menu > li {
  position: relative;
}

/* =========================================================
   TOP-LEVEL ITEMS: <a> AND parent <button> MUST MATCH
   ========================================================= */

.hwa-menu > li > a,
.hwa-menu > li > button.hwa-menu-parent {
  display: block;
  padding: 14px 16px;
  color: #ffffff;
  text-decoration: none;

  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: normal;

  background: transparent;
  border: none;              /* for button */
  cursor: pointer;           /* for button */
  appearance: none;          /* normalize buttons */
  -webkit-appearance: none;
}

/* Remove default button focus outline (optional, keeps look consistent) */
.hwa-menu > li > button.hwa-menu-parent:focus {
  outline: none;
}

/* Hover/active (apply to BOTH links and parent buttons) */
.hwa-menu > li:hover > a,
.hwa-menu > li:hover > button.hwa-menu-parent {
  background: #1f2937;
  color: #ffffff;
}

/* =========================================================
   SUBMENU (DROPDOWN)
   ========================================================= */

.hwa-menu li ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: #111827;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  min-width: 220px;
  display: none;
  z-index: 1000;
  text-align: left;
}

.hwa-menu li:hover > ul {
  display: block;
}

/* Submenu links */
.hwa-menu li ul li a {
  display: block;
  padding: 10px 14px;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
  text-align: left;
}

.hwa-menu li ul li a:hover {
  background: #1f2937;
}

/*************** Responsive nav ***************/

@media (max-width: 900px) {
  .hwa-nav-inner {
    flex-wrap: wrap;
  }

  .hwa-nav-toggle-label {
    display: block;          /* show hamburger */
  }

  .hwa-menu {
    width: 100%;
    flex-direction: column;
    display: none;           /* hidden until toggle */
    border-top: 1px solid #1f2937;
  }

  /* Show menu when header OR footer toggle is checked */
#hwa-nav-toggle:checked ~ .hwa-menu,
#hwa-nav-toggle-header:checked ~ .hwa-menu,
#hwa-nav-toggle-footer:checked ~ .hwa-menu {
  display: block;
}

  /* Top-level items on mobile: keep SAME font, just adjust padding */
  .hwa-menu > li > a,
  .hwa-menu > li > button.hwa-menu-parent {
    padding: 12px 10px;
    border-top: 1px solid #1f2937;
  }

  /* Submenus as nested lists on mobile */
  .hwa-menu li ul {
    position: static;
    background: #020617;
    padding-left: 10px;
    display: none;
  }

  .hwa-menu li:hover > ul {
    display: block;
  }
}

.hwa-nav:not(.hwa-nav-footer) #hwa-nav-toggle:checked ~ .hwa-menu-header { display:block; }
.hwa-nav-footer #hwa-nav-toggle-footer:checked ~ .hwa-menu-footer { display:block; }

/* Header navigation menu End */

/* ============================
   FOOTER (WHITE, MODERN, 3-COLUMN)
   ============================ */

#list_page_ft {
  background: #ffffff;
  color: #111827;
  margin-top: 2.5rem;
  border-top: 1px solid #e5e7eb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Outer wrapper */
.site-footer {
  padding: 2rem 1rem 3rem;
  background: #ffffff;
}

/******************************************
 * FOOTER NAV: REMOVE BOTTOM LINE
 ******************************************/

/* Only affect the footer version of the nav bar */
.hwa-nav-footer {
  border-bottom: none !important;
  box-shadow: none !important;
}

/******************************************
 * FOOTER LAYOUT
 ******************************************/

#list_page_ft {
  background: #ffffff;
  color: #111827;
  margin-top: 0;
  border-top: none !important;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.site-footer {
  padding: 2rem 1rem 3rem;
  background: #ffffff;
  border-top: none !important;
}

/* Inner container centered on page */
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 1.25rem;
}

/******************************************
 * THREE COLUMNS (RIGHT-ALIGNED)
 ******************************************/

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  justify-content: center;   /* center whole group */
}

.footer-links__item {
  flex: 1 1 220px;
  min-width: 0;
  text-align: left;         /* left-align text in each column */
}

.footer-links__title {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #111827;
}

.footer-links__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links__list li {
  margin: 0.12rem 0;
}

.footer-links__list a {
  display: inline-block;
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 400;
  color: #374151;
  text-decoration: none;
}

.footer-links__list a:hover {
  color: #111827;
  text-decoration: underline;
}

/******************************************
 * SOCIAL ICONS (CENTERED, BIGGER)
 ******************************************/

.footer-social {
  margin-top: 1rem;
  text-align: center;
}

.footer-social-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.4rem;
}

.footer-social-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 0.6rem;
}

/* Larger icons */
.footer-social-icons img {
  height: 32px;
  width: 32px;
  vertical-align: middle;
}

/******************************************
 * COPYRIGHT / META
 ******************************************/

.footer-meta {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: #374151;
  text-align: center;
}

.footer-meta a {
  color: #374151;
  text-decoration: none;
}

.footer-meta a:hover {
  color: #111827;
  text-decoration: underline;
}

.footer-meta-sep {
  display: inline-block;
  width: 18px;
}

.footer-meta__wcg img {
  height: 18px;
  width: auto;
  vertical-align: middle;
}

/******************************************
 * FOOTER RESPONSIVE
 ******************************************/

@media (max-width: 800px) {
  .footer-links {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-links__item {
    flex: 1 1 auto;
    text-align: left;  /* keep left-aligned on mobile */
  }
}

/* ============================
   SOCIAL ICONS (CENTERED)
   ============================ */

.footer-social {
  margin-top: 1rem;
  text-align: center;
}

.footer-social-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.4rem;
}

.footer-social-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 0.6rem;
}

/* Larger icons */
.footer-social-icons img {
  height: 32px;
  width: 32px;
  vertical-align: middle;
}

/* ============================
   COPYRIGHT / META
   ============================ */

.footer-meta {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: #374151;
  text-align: center;
}

.footer-meta a {
  color: #374151;
  text-decoration: none;
}

.footer-meta a:hover {
  color: #111827;
  text-decoration: underline;
}

.footer-meta-sep {
  display: inline-block;
  width: 18px;
}

.footer-meta__wcg img {
  height: 18px;
  width: auto;
  vertical-align: middle;
}

/* ============================
   RESPONSIVE
   ============================ */

@media (max-width: 800px) {
  .footer-links {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-links__item {
    flex: 1 1 auto;
    text-align: left;  /* still left-justify on mobile */
  }
}

/* Left align footer nav items */
.hwa-nav-footer .hwa-menu {
  justify-content: flex-start !important;
  text-align: left !important;
}

/* ===========================
   SSI Home Page Grid Layout
   =========================== */

#indexgrid {
  width: 100%;
  margin: 0 auto;
  padding: 12px 16px;
  box-sizing: border-box;

  display: grid;

  /* Two columns: left wider, right narrower */
  grid-template-columns: 2fr 1fr;

  /* Four content rows on desktop */
  grid-template-rows: auto auto auto auto;
  grid-auto-rows: min-content;

  /* Telecast is LEFT of Magazine, Magazine spans all 4 rows on the RIGHT */
  grid-template-areas:
    "telecast  magazine"
    "booklets  magazine"
    "biblestudy magazine"
    "sermons   magazine";

  gap: 16px;
}

/* Explicitly assign each ID to a grid area */
#telecast   { grid-area: telecast; }
#booklets   { grid-area: booklets; }
#biblestudy { grid-area: biblestudy; }
#sermons    { grid-area: sermons; }
#magazine   { grid-area: magazine; }

/* Prevent any legacy floats from breaking the grid */
#telecast,
#booklets,
#biblestudy,
#sermons,
#magazine {
  float: none !important;
  margin: 0;
}

/* Make sure Telecast has real height so the grid row is solid */
#telecast {
  display: flex;
  flex-direction: column;
}

/****************************************************
 * OPTIONAL: CARD STYLING FOR EACH SECTION
 ****************************************************/
#telecast,
#magazine,
#booklets,
#biblestudy,
#sermons {
  background: #f9fafb;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.22);
  border: 1px solid rgba(148,163,184,0.35);
  padding: 10px 12px 14px 12px;
}

/****************************************************
 * RESPONSIVE BEHAVIOR
 ****************************************************/

/* Medium screens: single column, logical order */
@media (max-width: 1000px) {
  #indexgrid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto auto;
    grid-template-areas:
      "telecast"
      "magazine"
      "booklets"
      "biblestudy"
      "sermons";
  }
}

/* Small phones: same as above with tighter spacing */
@media (max-width: 600px) {
  #indexgrid {
    padding: 10px;
    gap: 12px;
  }

  #telecast,
  #magazine,
  #booklets,
  #biblestudy,
  #sermons {
    padding: 8px 10px 12px 10px;
  }
}

/**********************************************
 * TELECAST SECTION: Title + Video + Teaser
 **********************************************/

/* Outer card within the home grid (#telecast is already a grid area) */
.telecast-section {
  background: #f9fafb;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 12px 14px 16px;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
}

/* Make sure old floats don’t interfere */
#telecast,
#telecast_video,
#telecast_teaser {
  float: none !important;
}

/* =========================
   HEADER TITLE
   ========================= */

.telecast-header {
  margin-bottom: 10px;
}

.telecast-main-title {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #111827;
  text-decoration: none;
}

.telecast-main-title:hover {
  text-decoration: underline;
}

/* =========================
   BODY LAYOUT
   ========================= */

.telecast-body {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

/* LEFT: video column */
.telecast-video {
  flex: 0 0 60%;
  max-width: 640px;
}

/* Keeps video/iframe in 16:9 ratio and responsive */
.telecast-video-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 ratio */
  overflow: hidden;
}

/* Fill the box with YouTube iframe or Video.js player */
.telecast-video-inner iframe,
.telecast-video-inner .video-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* RIGHT: text column */
.telecast-text {
  flex: 1;
}

.telecast-text-inner {
  font-family: inherit;
}

/* Episode title: "$InfoTitle" */
.telecast-episode-title {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #111827;
}

.telecast-episode-title a {
  color: inherit;
  text-decoration: none;
}

.telecast-episode-title a:hover {
  text-decoration: underline;
}

/* Teaser paragraph */
.telecast-description {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #374151;
}

/**********************************************
 * RESPONSIVE (MOBILE)
 * - Video full-width
 * - Text under video
 * - Tighter side padding
 **********************************************/

@media (max-width: 800px) {

  /* Let the grid breathe less on phones */
  #indexgrid {
    padding-left: 4px;
    padding-right: 4px;
  }

  .telecast-section {
    padding: 10px 4px 12px;   /* very small left/right padding */
    border-radius: 6px;
  }

  .telecast-body {
    flex-direction: column;
    gap: 10px;
  }

  .telecast-video {
    flex: 0 0 auto;
    max-width: 100%;
  }

  .telecast-text {
    width: 100%;
  }

  .telecast-main-title {
    font-size: 1.4rem;
  }

  .telecast-episode-title {
    font-size: 1.1rem;
  }
}

@media (max-width: 600px) {

  /* Let the whole home grid breathe less on phones */
  #indexgrid {
    padding-left: 0;
    padding-right: 0;
  }

  /* Make the Telecast card nearly full-width with small insets */
  .telecast-section {
    padding-left: 6px;
    padding-right: 6px;
    border-radius: 0;  /* optional: removes rounded corners at the very edge */
  }
}


/**********************************************
 * MAGAZINE SECTION: header + list of items
 **********************************************/

.mag-section {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
}

/* Top heading: "Magazines" */
.mag-header {
  margin-bottom: 8px;
}

.mag-main-title {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #111827;
  text-decoration: none;
}

.mag-main-title:hover {
  text-decoration: underline;
}

/* List of magazine entries */
.mag-list {
  display: flex;
  flex-direction: column;
  gap: 8px;            /* small gap between items */
}

/* One magazine row: text left, image right, aligned top */
.mag-item {
  display: flex;
  align-items: flex-start;  /* image top-aligned with text */
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0 8px;
  border-bottom: 1px solid #e5e7eb;
}

.mag-item:last-child {
  border-bottom: none;
}

/* TEXT COLUMN (left) */
.mag-text {
  flex: 1 1 auto;
}

/* Title under "Magazines", left-aligned, small spacing */
.mag-title {
  margin: 0 0 3px;
  font-size: 0.98rem;
  font-weight: 700;
  color: #111827;
}

.mag-title a {
  color: inherit;
  text-decoration: none;
}

.mag-title a:hover {
  text-decoration: underline;
}

/* Teaser text under title, small line spacing */
.mag-teaser {
  margin: 0 0 3px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #374151;
}

/* "Read More" under teaser, left aligned */
.mag-readmore {
  margin: 0;
  font-size: 0.9rem;
}

.mag-readmore a {
  text-decoration: none;
}

.mag-readmore a:hover {
  text-decoration: underline;
}

.mag-arrows img {
  vertical-align: middle;
}

/* IMAGE COLUMN (right) */
.mag-thumb {
  flex: 0 0 auto;
  text-decoration: none;
}

.mag-thumb-img {
  display: block;
  width: 150px;       /* adjust width as desired */
  height: auto;
  border-radius: 4px;
  object-fit: cover;
}

/* IMAGE COLUMN (right) */
.mag-image {
  flex: 0 0 auto;
  text-decoration: none;
}

.mag-image-img {
  display: block;
  width: 150px;       /* adjust width as desired */
  height: auto;
  border-radius: 4px;
  object-fit: cover;
}

/**********************************************
 * Responsive: stack image above text on small phones
 **********************************************/

@media (max-width: 600px) {
  .mag-item {
    flex-direction: column-reverse; /* image on top, text below if you prefer; 
                                       use 'column' to put image below text */
    align-items: flex-start;
  }

  .mag-thumb-img {
    width: 120px;
  }

  .mag-image-img {
    width: 150px;
  }
}

/**********************************************
 * BOOKLETS SECTION (mirrored layout)
 **********************************************/

.bk-section {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
}

/* Heading: Booklets */
.bk-header {
  margin-bottom: 8px;
}

.bk-main-title {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #111827;
  text-decoration: none;
}

.bk-main-title:hover {
  text-decoration: underline;
}

/* One booklet row: IMAGE LEFT, TEXT RIGHT */
.bk-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0 8px;
  border-bottom: 1px solid #e5e7eb;
}

/* LEFT IMAGE */
.bk-thumb {
  flex: 0 0 auto;
  text-decoration: none;
}

.bk-thumb-img {
  width: 90px;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
}

/* LEFT IMAGE */
.bk-image {
  flex: 0 0 auto;
  text-decoration: none;
}

.bk-image-img {
  width: 150px;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
}

/* RIGHT TEXT */
.bk-text {
  flex: 1;
}

.bk-title {
  margin: 0 0 3px;
  font-size: 0.98rem;
  font-weight: 700;
  color: #111827;
}

.bk-title a {
  color: inherit;
  text-decoration: none;
}

.bk-title a:hover {
  text-decoration: underline;
}

.bk-teaser {
  margin: 0 0 3px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #374151;
}

.bk-readmore {
  margin: 0;
  font-size: 0.9rem;
}

.bk-readmore a:hover {
  text-decoration: underline;
}

.bk-arrows img {
  vertical-align: middle;
}

/**********************************************
 * SERMONS SECTION (mirrored layout)
 **********************************************/

.sm-section {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
}

/* Heading: Booklets */
.sm-header {
  margin-bottom: 8px;
}

.sm-main-title {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #111827;
  text-decoration: none;
}

.sm-main-title:hover {
  text-decoration: underline;
}

/* One booklet row: IMAGE LEFT, TEXT RIGHT */
.sm-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0 8px;
  border-bottom: 1px solid #e5e7eb;
}

/* LEFT IMAGE */
.sm-thumb {
  flex: 0 0 auto;
  text-decoration: none;
}

.sm-thumb-img {
  width: 90px;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
}

/* LEFT IMAGE */
.sm-image {
  flex: 0 0 auto;
  text-decoration: none;
}

.sm-image-img {
  width: 200px;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
}

/* RIGHT TEXT */
.sm-text {
  flex: 1;
}

.sm-title {
  margin: 0 0 3px;
  font-size: 0.98rem;
  font-weight: 700;
  color: #111827;
}

.sm-title a {
  color: inherit;
  text-decoration: none;
}

.sm-title a:hover {
  text-decoration: underline;
}

.sm-teaser {
  margin: 0 0 3px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #374151;
}

.sm-readmore {
  margin: 0;
  font-size: 0.9rem;
}

.sm-readmore a:hover {
  text-decoration: underline;
}

.sm-arrows img {
  vertical-align: middle;
}

/* LEFT IMAGE */
.sm-thumb {
  flex: 0 0 auto;
  text-decoration: none;
}


/**********************************************
 * Responsive for phones
 **********************************************/

@media (max-width: 600px) {
  .bk-item {
    flex-direction: column; /* stacks neatly */
  }

  .bk-thumb-img {
    width: 120px;
  }
  .bk-image-img {
    width: 150px;
  }
}


/**********************************************
 * Responsive for phones
 **********************************************/

@media (max-width: 600px) {
  .sm-item {
    flex-direction: column-reverse; /* image on top, text below if you prefer; 
                                       use 'column' to put image below text */
    align-items: flex-start;
  }

  .sm-thumb-img {
    width: 120px;
  }

  .sm-image-img {
    width: 150px;
  }
}

/**********************************************
 * BOOKS PAGE LAYOUT
 **********************************************/

/* Outer 2-column layout: left menu + right books */
.books-grid {
  display: flex;
  align-items: flex-start;
  gap: 32px;                     /* space between menu & books card */
  padding: 20px 40px 40px;       /* overall padding from page edge */
  width: 100%;
  box-sizing: border-box;
}

/* Neutralize any old float/width on this page */
#sidemenu.books-sidemenu,
#content.books-content {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
}

/* Left column – fixed width */
.books-sidemenu {
  flex: 0 0 270px;               /* adjust if you want wider/narrower menu */
}

/* Right column – fills the rest */
.books-content {
  flex: 1 1 auto;
  max-width: 100%;
}

/* Main Books card on the right */
.books-main-card {
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #d9e3f0;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  padding: 22px 26px 26px;
}

.books-main-header {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 18px;
  color: #12233b;
}

/* Pagination row under list */
.books-pagination {
  margin-top: 18px;
  text-align: center;
}

/**********************************************
 * LEFT NAV CARD + ICON MENU
 **********************************************/

.bk-side-card .left-card-title {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  text-align: left;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
}

/* Container of all 3 booklets */
.bk-side-list-v2 {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* One booklet stack */
.bk-side-item-v2 {
  text-align: center;
}

/* Cover images */
.bk-side-thumb-large {
  width: 150px;
  height: auto;
  border-radius: 10px;
  border: 1px solid #c0c0c0;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.bk-side-thumb-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22);
}

/* Title below cover */
.bk-side-title-v2 {
  display: block;
  margin-top: 8px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.28;
  font-weight: 500;
  color: #0f172a;
  text-decoration: none;
}

.bk-side-title-v2:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* White card that contains the icon nav */
.books-left-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #d9e3f0;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  padding: 16px 14px;
}

/* Container for one book entry (divider line) */
.book-item {
  padding: 14px 0 18px;
  border-bottom: 1px solid #e5e7eb;
}

.book-item:last-child {
  border-bottom: none;
}

/* Two-column layout inside a book row:
   text on the left, cover on the right */
.book-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.book-text {
  flex: 1 1 auto;
}

.book-cover-wrap {
  flex: 0 0 auto;
}

/* Detail page layout: media floated right, text wraps around it */
.books-detail-card .book-detail-body {
  overflow: hidden; /* clearfix for float */
}

/* Broadcast / Lecture detail: keep video same size,
   just pull it in from the right edge of the card */
.books-detail-card .lecture-media-float {
  float: right;
  /* top | right | bottom | left */
  margin: 0 62px 24px 24px;
}

.book-detail-media {
  float: right;
  width: 320px;              /* match your player width */
  max-width: 100%;
  margin: 0 0 16px 24px;     /* space to the left and below */
  text-align: center;
}

.book-detail-media .video-responsive,
.book-detail-media video,
.book-detail-media img {
  width: 100%;
  height: auto;
}

.qrcode-img {
  margin-top: 12px;
}

/* Mobile: stack media on top, full width */
@media (max-width: 900px) {
  .book-detail-media {
    float: none;
    width: 100%;
    margin: 0 0 16px 0;
  }
}

/* QR Code sizing and alignment under video player */
.book-detail-media .qrcode-img {
  width: 90px;          /* Good size under video */
  height: auto;
  display: block;
  margin-top: 12px;
  margin-left: auto;     /* Force to right */
  margin-right: 0;       /* No centering */
  float: right;          /* Always right-aligned */
  clear: right;
}

/* On mobile, stack naturally with left alignment preserved */
@media (max-width: 900px) {
  .book-detail-media .qrcode-img {
    float: none;
    clear: both;
    width: 90px;    /* slightly larger for mobile scanning */
    margin-top: 12px;
    margin-right: 0;
    margin-left: auto;
  }
}

.book-actions-box--inline {
  margin-top: 10px;
  gap: 10px;
}

.book-action--sm {
  padding: 8px 10px;
  font-size: 13px;
}

.book-action--sm img {
  width: 18px;
  height: 18px;
}

.lecture-media-float {
  float: right;
  width: 360px;       /* adjust to your player width */
  max-width: 40%;
  margin-left: 24px;
  margin-bottom: 24px;
}

/* Make sure content clears below the float */
.book-detail-content::after {
  content: "";
  display: block;
  clear: both;
}

/* Shared QR container */
.lecture-qrcode {
  display: inline-block;
  margin: 10px 0 14px;
}

/* Mobile video wrapper */
.lecture-video-mobile {
  margin-bottom: 16px;
}

/* Mobile QR to the right of first lines of text */
.lecture-qrcode-mobile {
  float: right;
  margin-left: 10px;
  margin-bottom: 6px;
}

.lecture-main-row {
  display: block;
}

.lecture-info-col {
  width: 100%;
}

.lecture-media-aside {
  float: right;
  max-width: 360px;          /* width of video/QR block */
  margin: 0 0 16px 24px;     /* space between media and text */
  text-align: right;
}

.lecture-media-aside .video-responsive,
.lecture-media-aside .video-js {
  width: 100%;
  height: auto;
}

.lecture-qrcode-desktop {
  margin-top: 12px;
}

.lecture-video-center{
  display: flex;
  justify-content: center;
  width: 100%;
}

.lecture-video-center .lecture-video-wrapper{
  width: 100%;
  max-width: 900px;  /* adjust as you like */
}

.lecture-video-wrapper{
  max-width: 640px;
  margin: 0 auto;
}

/* ensure text clears floats correctly at bottom */
.book-detail-text::after {
  content: "";
  display: block;
  clear: both;
}

/* Mobile: keep your current behavior (float right inside text) */
@media (max-width: 900px) {
  .lecture-qrcode {
    float: right;
    margin: 0 0 10px 12px;
  }
}

@media (min-width: 901px) {
  .lecture-qrcode {
    float: right;
    margin: 0 0 10px 14px;
  }
}

/* Mobile: stack media above text and keep QR to the right */
@media (max-width: 900px) {
  .lecture-media-aside {
    float: none;
    max-width: 100%;
    margin: 0 0 16px 0;
  }

  .lecture-media-aside .video-responsive iframe,
  .lecture-media-aside .video-js {
    width: 100%;
    height: auto;
  }

  .lecture-qrcode-mobile {
    float: right;
    display: inline-block;
    margin: 0 0 8px 12px;
  }
}

.lecture-video-col {
  flex: 0 0 340px;
  max-width: 360px;
  order: 2;
}

/* Video player sizing */
.lecture-video-player,
.lecture-poster-img {
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.28);
}

/* Desktop QR under video, aligned right */
.lecture-qrcode-desktop {
  margin-top: 12px;
  text-align: right;
}

/* Mobile QR floats to the right in the text */
.lecture-qrcode-mobile {
  float: right;
  margin: 0 0 12px 16px;
}

/* Shared QR size */
.lecture-qrcode-img {
  display: block;
  width: 110px;
  height: auto;
  border-radius: 10px;
}

/* Stack on mobile: video first, then info */
@media (max-width: 900px) {
  .lecture-main-row {
    flex-direction: column;
  }
  .lecture-video-col {
    order: 1;
    max-width: none;
  }
  .lecture-info-col {
    order: 2;
  }
}

/**********************************************
 * TITLE, META, TEASER
 **********************************************/

.book-card-title-link {
  font-size: 18px;
  font-weight: 600;
  color: #0355a6;
  text-decoration: none;
}

.book-card-title-link:hover {
  text-decoration: underline;
}

.book-card-meta {
  font-size: 13px;
  color: #6b7280;
  margin-top: 2px;
  margin-bottom: 6px;
}

.book-card-teaser {
  font-size: 14px;
  line-height: 1.5;
  color: #111827;
  margin-bottom: 8px;
}

.book-card-readmore {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.book-readmore-link {
  color: #88bbf9;
  text-decoration: none;
  font-weight: 500;
}

.book-readmore-link:hover {
  text-decoration: underline;
}

/**********************************************
 * READ STATUS
 **********************************************/

.book-card-status {
  margin-top: 6px;
  font-size: 12px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 6px;
}

.book-card-status-text {
  white-space: nowrap;
}

/**********************************************
 * BOOK COVER IMAGE
 **********************************************/

.book-cover {
  width: 150px;
  max-width: 100%;
  border-radius: 6px;
  border: 1px solid #c0c0c0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
  display: block;
}

/**********************************************
 * ACTION BUTTONS (Audio / View PDF / Download)
 **********************************************/

.book-actions-box {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 8px 14px;
  background: #f9fafc;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
}

.book-actions-box form {
  margin: 0;
}

/* pill buttons */
.book-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #ffffff;
  border-radius: 999px;
  border: 1px solid #d1d5db;

  /* ?? Force readable text on Apple */
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #111827;             /* dark text color, fixes white-on-white */

  cursor: pointer;
  text-decoration: none;

  /* Make it look like a custom control on iOS/macOS */
  -webkit-appearance: none;
  appearance: none;

  transition: background 0.15s ease,
              box-shadow 0.15s ease,
              transform 0.1s ease;
}

.book-action span {
  display: inline-block;
  color: inherit;             /* inherit the dark color above */
  white-space: nowrap;
}

.book-action img {
  width: 18px;
  height: 18px;
  display: block;
}

.book-action span {
  white-space: nowrap;
}

.book-action:hover {
  background: #e6f1ff;
  box-shadow: 0 3px 8px rgba(148, 163, 184, 0.55);
  transform: translateY(-1px);
}

/**********************************************
 * RESPONSIVE
 **********************************************/

/* On tablets/phones, stack columns and hide menu */
@media (max-width: 900px) {
  .books-grid {
    flex-direction: column;
    padding: 16px 14px 24px;
  }

  .books-sidemenu {
    display: none;
  }
}

/* On narrow phones, put cover under text */
@media (max-width: 720px) {
  .book-row {
    flex-direction: column-reverse;
    align-items: center;
  }

  .book-cover {
    width: 170px;
  }

  .book-actions-box {
    justify-content: center;
  }
}

@media (max-width: 900px) {

  .books-content,
  .books-main-card {
    background: #ffffff;
    border: 1px solid #d9e3f0;
    border-radius: 20px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    padding: 22px 18px 26px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
  }

  /* Make the whole Books area background white */
  #mtrlgrid,
  .books-grid,
  #content.books-content,
  .curved_blue,
  .curved_blue2 {
    background-color: #ffffff !important;
    border: none;
  }

  /* Force the Books card to look like desktop */
  .books-main-card {
    background-color: #ffffff !important;
    border-radius: 20px !important;
    border: 1px solid #d9e3f0 !important;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06) !important;
    padding: 20px 18px 24px !important;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
  }

  .books-grid {
    background: transparent;   /* remove gray behind it */
    padding: 15px;
  }

}

/**********************************************
 * MODERN SIDE NAVIGATION WITH ICONS
 **********************************************/
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: transparent;  /* left card provides bg */
  padding: 0;
  margin: 0;
}

/* Each link wrapper */
.side-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: #14365f;
  text-decoration: none;

  /* prevents wrapping */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  /* animation & interactivity */
  transition: background 0.15s ease,
              color 0.15s ease,
              transform 0.1s ease,
              box-shadow 0.15s ease;
}

/* Icon circle */
.side-nav-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #e6f1ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

/* Text label */
.side-nav-label {
  white-space: nowrap;
}

/* Hover behavior */
.side-nav-link:hover {
  background: #e6f1ff;
  color: #0a3ea7;
  transform: translateX(3px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

/* Optional: highlight current page */
.side-nav-link.active {
  background: #cfe4ff;
  color: #093e87;
  font-weight: 600;
}

/* Remove weird outlines */
.side-nav-link:focus {
  outline: none;
}

/* Global font override for all regular text */
body,
input,
textarea,
select,
button {
  font-family: var(--hwa-font-sans) !important;
}

/**********************************************
 * TELECAST SIDE DISPLAY
 **********************************************/

.telcast-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 6px;
}

.telcast-item {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.telcast-thumb img {
    width: 100%;
    max-width: 160px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.telcast-title a {
    font-size: 14px;
    font-weight: 600;
    color: #1b68ac;
    text-decoration: none;
}

.telcast-title a:hover {
    text-decoration: underline;
}

.side-nav-title {
    font-size: 15px;
    font-weight: 700;
    color: #0a3e87;
    margin-bottom: 8px;
    border-bottom: 1px solid #dfe8f5;
    padding-bottom: 4px;
}

/********************************************
 * MAGAZINES SIDE CARD (menu_mag)
 ********************************************/

/* Outer card wrapper (already matching your nav cards) */
.mag-side-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #d9e3f0;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  padding: 16px 14px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Title row: "Magazines" with underline */
.mag-side-card .left-card-title {
  margin: 0 0 10px;
  padding-bottom: 6px;
  text-align: center;
  border-bottom: 1px solid #dfe8f5 !important;  /* ?? the line under “Magazines” */
}

/* Make the word “Magazines” blue and link-like */
.mag-side-card .left-card-title a {
  color: #1b68ac !important;   /* ?? blue link */
  font-weight: 700;
  text-decoration: none;
  font-size: 16px;
}

.mag-side-card .left-card-title a:hover {
  text-decoration: underline;
}

/* Container for the 3 random magazine items */
.mag-side-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Each magazine entry – vertical stack */
.mag-side-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Thumbnail image */
.mag-side-thumb-img {
  display: block;
  width: 150px;
  height: auto;
  border: 1px solid #c0c0c0;
  border-radius: 4px;
  margin: 0 auto 6px;
}

/* Title directly under image */
.mag-side-title {
  display: block;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: #14365f;
  text-decoration: none;
}

.mag-side-title:hover {
  text-decoration: underline;
}

.mag-media-float{
  float:right;
  width:260px;
  max-width:38%;
  margin:0 0 16px 24px;
}

.mag-media-float .mag-cover{
  width:100%;
  height:auto;
  display:block;
  border-radius:12px;
}

/* QR under the cover, aligned left inside same float */
.mag-media-float .lecture-qrcode{
  margin-top:12px;
  display:flex;
  justify-content:flex-start;
}

.mag-media-float .lecture-qrcode-img{
  display:block;
  max-width:100%;
  height:auto;
}

/* clear the float so later content doesn’t overlap */
.book-detail-text::after{
  content:"";
  display:block;
  clear:both;
}

/* Mobile: stack */
@media (max-width:900px){
  .mag-media-float{
    float:none;
    width:100%;
    max-width:100%;
    margin:0 0 14px 0;
  }
  .mag-media-float .mag-cover{
    max-width:340px;
    margin:0 auto;
  }
  .mag-media-float .lecture-qrcode{
    justify-content:center;
  }
}

/**********************************************
 * A VOICE CRIES OUT – DESKTOP SIDE CARD
 **********************************************/

.vc-side-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #d9e3f0;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  padding: 16px 14px 18px;
  margin-bottom: 20px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.vc-side-card-header {
  margin-bottom: 10px;
}

.vc-side-card-eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 3px;
}

.vc-side-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  line-height: 1.4;
}

/* Chapters list */
.vc-chapter-list {
  list-style: none;
  margin: 0;
  padding: 6px 0 0 0;
}

.vc-chapter {
  margin-bottom: 8px;
}

/* Hidden checkbox used only when there are sections */
.vc-chapter-toggle {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

/* Common style for chapter label/link */
.vc-chapter-link {
  display: block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #14365f;
  background: #e6f1ff;
  cursor: pointer;
  transition: background 0.15s ease,
              color 0.15s ease,
              transform 0.1s ease;
  position: relative;
}

/* Chapter WITH sections – show arrow caret */
.vc-chapter--has-sections .vc-chapter-link::after {
/* content: "?"; */
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: #4b5563;
  transition: transform 0.15s ease;
}

/* Chapter WITHOUT sections – no caret */
.vc-chapter--no-sections .vc-chapter-link::after {
  content: none;
}

.vc-chapter-link:hover {
  background: #d1e6ff;
  color: #0a3e9f;
  transform: translateX(2px);
}

/* When checkbox (for chapters with sections) is checked */
.vc-chapter-toggle:checked + .vc-chapter-link {
  background: #88bbf9;
  color: #ffffff;
}

.vc-chapter-toggle:checked + .vc-chapter-link::after {
  transform: translateY(-50%) rotate(180deg);
}

/* "Active" chapter (server-side class) */
.vc-chapter--active .vc-chapter-link {
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.25);
}

/* Sections list (hidden by default) */
.vc-section-list {
  list-style: none;
  margin: 4px 0 0 0;
  padding-left: 14px;
  border-left: 2px solid #e5e7eb;
  display: none;
}

/* Show sections when that chapter's checkbox is checked */
.vc-chapter-toggle:checked + .vc-chapter-link + .vc-section-list {
  display: block;
}

.vc-section-item {
  margin: 2px 0;
}

.vc-section-link {
  font-size: 13px;
  color: #374151;
  text-decoration: none;
  padding: 2px 0;
  display: inline-block;
}

.vc-section-link:hover {
  text-decoration: underline;
}

.vc-section-link--active {
  font-weight: 600;
  color: #88bbf9;
}

/* Single-link chapter (no sections) – tweak a bit */
.vc-chapter-link--single {
  cursor: pointer;
}

/* Footer "Back to Books" link */
.vc-side-card-footer {
  margin-top: 10px;
  border-top: 1px solid #e5e7eb;
  padding-top: 8px;
}

.vc-back-link {
  font-size: 13px;
  color: #88bbf9;
  text-decoration: none;
}

.vc-back-link:hover {
  text-decoration: underline;
}

/**********************************************
 * A VOICE CRIES OUT – MOBILE MENU
 **********************************************/

.vc-mobile-wrapper {
  display: none;
}

/* invisible checkbox that controls open/close */
.vc-mobile-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* hamburger button */
.vc-mobile-hamburger {
  display: none; /* only on mobile */
}

/* dropdown panel with the vc-side-card inside */
.vc-mobile-panel {
  display: none; /* closed by default */
}


/* ---------- MOBILE ONLY ---------- */
@media (max-width: 900px) {

  .vc-mobile-wrapper {
    display: block;
    margin: 12px 0 18px 0;
  }

  .vc-mobile-hamburger {
    display: inline-flex;
    flex-direction: column;      /* <-- stack the 3 lines */
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 36px;
    margin-left: 8px;
    border-radius: 999px;
    background: #0f172a;
    box-shadow: 0 3px 8px rgba(15,23,42,0.40);
    cursor: pointer;
  }

  .vc-mobile-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
    margin: 3px 0;              /* vertical spacing between the lines */
  }

  .vc-mobile-toggle:checked ~ .vc-mobile-panel {
    display: block;
    margin-top: 10px;
  }
}

/**********************************************
 * Author Bio pill + popover + URL pill
 **********************************************/

.bio-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.bio-author {
  font-size: 14px;
}

/* Bio & URL pills share the same look */
.bio-pill,
.url-pill {
  border: 0;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  background: #88bbf9;        /* same family as your blue tones */
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
  transition:
    background 0.15s ease,
    transform 0.10s ease,
    box-shadow 0.15s ease;
}

.bio-pill:hover,
.url-pill:hover {
  background: #0a4fa5;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.28);
}

.bio-pill:focus,
.url-pill:focus {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.bio-pill-icon,
.url-pill-icon {
  font-size: 14px;
}

/* Wrapper so hover/focus can reveal the popup */
.bio-popover-wrapper {
  position: relative;
  display: inline-block;
}

/* The popup box */
.bio-popover {
  position: absolute;
  z-index: 40;
  top: 115%;
  left: 0;
  min-width: 220px;
  max-width: 260px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s ease;
}

/* little arrow under the popup */
.bio-popover::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 20px;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-left: 1px solid #e5e7eb;
  border-top: 1px solid #e5e7eb;
  transform: rotate(45deg);
}

/* Show popup on hover or keyboard focus */
.bio-popover-wrapper:hover .bio-popover,
.bio-pill:focus + .bio-popover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.bio-popover-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
  color: #111827;
}

.bio-popover-body {
  font-size: 13px;
  line-height: 1.5;
  color: #374151;
}

.url-pill-text {
  /* optional, keep text a bit tighter */
}

/* ------------------------------------------------------------
   HWA-UI-2026 SIDE MENU (light card + blue pill links)
   Used by sidemenu_ac_2026, etc.
------------------------------------------------------------- */

.sidemenu-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.4); /* soft slate border */
  padding: 14px 16px 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  max-width: 260px;
}

.sidemenu-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}

/* Each row acts like a pill button */
.sidemenu-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  margin: 0;
  background: #f1f5f9;              /* light neutral like the chapter pills */
  color: #0f172a;                    /* dark slate text */
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  text-decoration: none;
  line-height: 1.35;
  transition:
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.12s ease,
    color 0.18s ease;
}

.sidemenu-title-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 8px 12px;
  margin-bottom: 10px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
}

/* Primary color version (used in Bible Study menu) */
.sidemenu-title-pill--primary {
  background: #dbeafe;   /* slate-700 */
  color: #64748b;        /* slate-50 */
}

/* Emoji / icon in the title pill */
.sidemenu-title-icon {
  font-size: 17px;
  line-height: 1;
}

/* Text in the title pill */
.sidemenu-title-text {
  line-height: 1.2;
}

/* Container around the pill links */
.sidemenu-links {
  display: flex;
  flex-direction: column;
  gap: 10px;        /* space between each pill */
  margin-top: 4px;
}

/* Icon inside each link pill */
.sidemenu-link-icon {
  font-size: 14px;
  line-height: 1;
}

/* Label text inside link pill */
.sidemenu-link-label {
  flex: 1;
  line-height: 1.3;
}

/* Make the first menu pill slightly darker for emphasis */
.sidemenu-nav .sidemenu-link:first-of-type {
  background: #dbeafe; /* slightly darker blue */
  font-weight: 600;
}

/* Hover version for the first pill */
.sidemenu-nav .sidemenu-link:first-of-type:hover {
  background: #bfdbfe; /* hover darkens a bit */
}

.sidemenu-icon {
  width: 18px;
  font-size: 15px;
  text-align: center;
  flex-shrink: 0;
}

.sidemenu-label {
  flex: 1;
}

/* Hover: soft blue highlight like AVCRORC chapter pills */
.sidemenu-link:hover,
.sidemenu-link:focus-visible {
  background: #e0f2fe; /* light sky blue */
  color: #0f172a;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.10);
  transform: translateY(-1px);
}

/* Optional "current page" pill */
.sidemenu-link.is-active {
  background: #bfdbfe; /* a bit stronger blue */
  color: #0f172a;
  font-weight: 600;
}

.sidemenu-list .sidemenu-link {
  margin-bottom: 10px;
}

/* Lay out links in a vertical stack with built-in spacing */
.sidemenu-card .sidemenu-lists {
  display: flex;
  flex-direction: column;
  gap: 6px;          /* space between each pill, including the first one */
  margin-top: 6px;   /* extra breathing room under the title pill */
}

/* Make sure the title pill itself doesn’t collapse into the nav */
.sidemenu-card .sidemenu-title-pill {
  display: block;
  margin-bottom: 0;  /* gap is handled by .sidemenu-lists now */
}

/* Slightly tighter on small screens */
@media (max-width: 900px) {
  .sidemenu-card {
    max-width: none;
    padding: 12px 12px 14px;
  }
  .sidemenu-link {
    font-size: 13px;
    padding: 6px 10px;
  }
}

/* ------------------------------------------------------------
   HWA-UI-2026 MOBILE DROPDOWN SIDEMENU
------------------------------------------------------------- */

.sidemenu-mobile-select-wrap {
  max-width: 260px;
  margin: 0 0 18px 0;
}

.sidemenu-mobile-label {
  display: block;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 6px;
}

.sidemenu-mobile-select {
  width: 100%;
  padding: 9px 40px 9px 12px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  color: #0f172a;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background-color: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.10);
  outline: none;
  cursor: pointer;

  /* basic custom arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image:
    linear-gradient(45deg, #64748b 50%, transparent 50%),
    linear-gradient(-45deg, #64748b 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px;
}

.sidemenu-mobile-select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px #38bdf8, 0 12px 30px rgba(15, 23, 42, 0.18);
}

/* Optional tighter look on small screens */
@media (max-width: 900px) {
  .sidemenu-mobile-select-wrap {
    max-width: none;
  }
}

.sidemenu-mobile-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  padding: 10px 12px;
  margin-bottom: 16px;
}

/* <details> wrapper */
.sidemenu-mobile-accordion {
  border: none;
}

/* Remove default disclosure triangle in most browsers */
.sidemenu-mobile-summary {
  list-style: none;
}

.sidemenu-mobile-summary::-webkit-details-marker {
  display: none;
}

/* Summary row: hamburger + label */
.sidemenu-mobile-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 6px 4px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

/* 3 stacked lines */
.sidemenu-mobile-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 16px;
}

.sidemenu-mobile-burger span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: #0f172a;
}

/* Label text next to hamburger */
.sidemenu-mobile-label {
  flex: 1;
}

/* The dropdown list when <details> is open */
.sidemenu-mobile-list {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Each link row */
.sidemenu-mobile-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  text-decoration: none;
  background: #f1f5f9;
  color: #0f172a;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  transition:
    background 0.16s ease,
    transform 0.12s ease,
    box-shadow 0.16s ease;
}

/* reuse existing icon/label classes from desktop */
.sidemenu-link-icon {
  width: 18px;
  font-size: 15px;
  text-align: center;
  flex-shrink: 0;
}

.sidemenu-link-label {
  flex: 1;
}

/* Hover */
.sidemenu-mobile-link:hover {
  background: #e0f2fe;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

/* Active/selected row in the mobile sidemenu */
.sidemenu-mobile-link--active {
  background: #e0f2fe;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.45);
}

/* ------------------------------------------------------------
   HWA-UI-2026 Booklets PC
------------------------------------------------------------- */

.bk-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 14px 16px 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  max-width: 260px;
  margin-bottom: 20px;
}

.bk-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bk-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #0f172a;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  text-decoration: none;
  transition: background .16s ease, transform .12s ease, color .16s ease;
}

.bk-link:first-of-type {
  background: #dbeafe;
  font-weight: 600;
}

.bk-link:hover {
  background: #e0f2fe;
  color: #0f172a;
  transform: translateY(-1px);
}

.bk-icon {
  width: 18px;
  font-size: 15px;
  text-align: center;
}

.bk-label {
  flex: 1;
}

.bk-subtitle {
  margin-top: 8px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #64748b;
}

/* ================================
   Booklets view toggle (PC + Mobile) for Graphic/List drop menu
   ================================ */

/* Base container used by both subs
   NOTE: no display: here – PC/Mobile classes will control that */
.bklet-view-select {
  width: 100%;
  margin: 0 0 1rem 0;
  justify-content: flex-start;
}

/* Light blue background for pill */
.bklet-dropdown-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 6px 14px;
  border-radius: 999px;
  background: #dbeafe; /* light blue */
  color: #1e293b;      /* dark text */
  border: 1px solid rgba(30, 41, 59, 0.2);
}

.bklet-dropdown-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: #1e293b;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Dropdown itself */
.bklet-dropdown {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background: transparent;
  border: none;
  color: #1e293b;
  padding: 6px 26px 6px 6px;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;

  /* dark arrow */
  background-image:
      url("data:image/svg+xml,%3Csvg width='16' height='10' viewBox='0 0 16 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 2L8 8L14 2' stroke='%231e293b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 14px;
}

/* Dropdown menu items */
.bklet-dropdown option {
  background: #ffffff;
  color: #1e293b;
}

/* Hover & focus */
.bklet-dropdown-wrap:focus-within,
.bklet-dropdown-wrap:hover {
  border-color: #facc15;
}

/* Screen-reader-only label */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/********************************************
 * PC vs Mobile visibility
 ********************************************/

/* On desktop: show PC version, hide mobile */
.bklet-view-select-pc {
  display: flex;
}

.bklet-view-select-mobile {
  display: none;
}

/* Mobile (= 640px): hide PC, show mobile in column 2 */
@media (max-width: 640px) {

  .bklet-view-select-pc {
    display: none;
  }

  .bklet-view-select-mobile {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 0.75rem;
  }

  .bklet-view-select-mobile .bklet-dropdown-wrap {
    width: auto;
    padding: 10px 14px;
  }

  .bklet-view-select-mobile .bklet-dropdown {
    width: auto;
    max-width: 240px;
    font-size: 1rem;
  }
}

/* Make VIEW selector visually match "All Lectures" button */
.bklet-view-select-pc .bklet-dropdown-wrap,
.view-select-pc .bklet-dropdown-wrap {
  width: 100%;
  max-width: 220px; /* Exact match to All Lectures width */
  justify-content: center;
  padding: 9px 14px;
}

.bklet-dropdown {
  font-size: 14px;
  padding: 6px 26px 6px 8px;
}

/* Generic visibility helpers for 2026 menus - Hids PC dropmenu */
.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

@media (max-width: 900px) {
  .desktop-only {
    display: none;
  }
  .mobile-only {
    display: block;
  }
}

/* Keeps layout same position as Booklets but for video/audio images */
.video-cover-wrap {
  width: 200px;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Thumbnail image: match style of book-cover but locked to 200x150 */
.video-cover {
  width: 200px;
  height: 150px;
  object-fit: cover; /* ensures clean crop without distortion */
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  transition: transform .15s ease, box-shadow .15s ease;
}

.video-cover:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

/* Q&A Card (HWA-UI-2026) */
.hwa-qa-card{
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
}

.hwa-qa-header{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  background: linear-gradient(180deg, rgba(30, 64, 175, 0.10), rgba(30, 64, 175, 0.03));
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.hwa-qa-badge{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 64, 175, 0.12);
  font-size: 18px;
}

.hwa-qa-title{
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.hwa-qa-subtitle{
  margin: 2px 0 0 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  color: #475569;
}

.hwa-qa-body{
  padding: 14px 14px 16px;
}

.hwa-qa-question-label,
.hwa-qa-answer-label,
.hwa-qa-ref-label{
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 6px;
}

.hwa-qa-question-text,
.hwa-qa-answer-text,
.hwa-qa-ref-text{
  font-family: "Inter", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: #0f172a;
}

.hwa-qa-details{
  margin-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  padding-top: 10px;
}

.hwa-qa-summary{
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(15, 23, 42, 0.03);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.hwa-qa-summary::-webkit-details-marker{ display:none; }

.hwa-qa-details[open] .hwa-qa-summary-text{
  content: "";
}

.hwa-qa-answer{
  margin-top: 10px;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(2, 132, 199, 0.06);
  border: 1px solid rgba(2, 132, 199, 0.18);
}

.hwa-qa-ref{
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(148, 163, 184, 0.6);
}

/* MOBILE ONLY: Booklets LIST view — force LEFT alignment (scoped, safe) */
@media (max-width: 900px) {

  /* Only affects the right content area, only list items */
  #content .book-item--list,
  #content .book-item--list .book-row--list,
  #content .book-item--list .book-text,
  #content .book-item--list .book-card-title,
  #content .book-item--list .book-card-meta {
    text-align: left !important;
  }

  /* If any of these are flex on mobile, stop centering */
  #content .book-item--list .book-row--list,
  #content .book-item--list .book-text,
  #content .book-item--list .book-card-title {
    justify-content: flex-start !important;
    align-items: flex-start !important;
  }

  /* Make the title link behave like a normal left-aligned block */
  #content .book-item--list .book-card-title-link {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
  }
}

/* Header row: Articles / Written by */
.mag-articles-header-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 8px;
}

.mag-articles-header-label--right {
  text-align: right;
}

/* One magazine issue block */
.mag-issue {
  display: flex;
  align-items: flex-start;
  padding: 16px 0 20px;
}

.mag-issue + .mag-issue {
  border-top: 1px solid rgba(148, 163, 184, 0.5); /* line between magazines */
  margin-top: 8px;
}

.mag-issue-main {
  flex: 1 1 auto;
  min-width: 0;
}

/* Cover + actions pinned to top-right (PC + mobile) */
.mag-issue-side {
  flex: 0 0 auto;
  width: 140px;
  margin-left: 16px;
  text-align: center;
}

.mag-issue-cover-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 8px;
  border: 1px solid #c0c0c0;
  border-radius: 6px;
}

/* Reuse pill button style from booklets (.book-action) */

/* Article rows: title left, author right */
.mag-article-row {
  display: flex;
  align-items: baseline;
  padding-bottom: 2px;
	margin-bottom: 6px;
}

.mag-article-title {
  flex: 1 1 auto;
  min-width: 0;
}

.mag-article-author {
  flex: 0 0 32%;
  text-align: right;
  font-size: 13px;
  color: #4b5563;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Magazine line at bottom */
.mag-issue-meta {
  margin-top: 15px;
  font-size: 15px;
  color: #4b5563;
}

/* Mobile tweaks: OK for "Written by" to drop under title */
@media (max-width: 768px) {
  .mag-issue {
    padding: 12px 0 16px;
  }

  .mag-issue-side {
    width: 110px;          /* keeps cover on the right */
  }

  .mag-article-author {
    flex: 0 0 35%;
    font-size: 12px;
  }
}

/* Match booklet title link color for magazine article titles */
.mag-article-title a {
  color: #3a83dc;
  text-decoration: none;
  border-bottom: 1px solid #0355ac;
  padding-bottom: 2px;
}

.mag-article-title a:hover {
  border-bottom-color: #024793; /* darker on hover */
}

/* Dark gray for "Written by" links */
.mag-article-author a {
  color: #374151;            /* dark gray */
  text-decoration: none;
}

.mag-article-author a:hover {
  text-decoration: underline;
}

/* Desktop layout (default) */
.mag-article-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* Title left, Author right */
.mag-article-title {
  flex: 1;
}

.mag-article-author {
  white-space: nowrap; /* prevents wrapping on desktop */
}

/* ---------- Mobile Fix ---------- */
@media (max-width: 768px) {
  .mag-article-row {
    flex-direction: column;      /* stacks title + author vertically */
    align-items: flex-start;
    gap: 2px;
  }

  .mag-article-author {
    white-space: normal;         /* allow wrapping on mobile */
    margin-top: 2px;
  }
}

.mag-pdf-pill {
  margin-top: 8px;      /* adjust to 6–12px if you want more or less */
}

.mag-issue-divider{
  margin: 18px 0;
  border-top: 1px solid rgba(15,23,42,.14);
}
.mag-issue-actions{
  display: grid;
  gap: 10px;
  margin-top: 10px;
  justify-items: start;
}
.wwn-allpdf{
  margin-top: 14px;
}

/* PGR year select styled like the other pill menus */
.mag-year-select-wrap { width: 100%; }

.pgr-year-pill{
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  border-radius: 999px;

  /* match the “pill” look */
  background: rgba(219, 234, 254, 0.65);           /* soft blue */
  border: 1px solid rgba(148, 163, 184, 0.55);     /* subtle border */
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.pgr-year-select{
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  width: 100%;
  border: 0;
  background: transparent;

  padding: 10px 42px 10px 14px;  /* room for chevron */
  border-radius: 999px;

  font: inherit;
  color: inherit;
  line-height: 1.1;
  cursor: pointer;
}

.pgr-year-pill:hover{
  border-color: rgba(59, 130, 246, 0.55);
}

.pgr-year-select:focus{
  outline: none;
}

.pgr-year-pill:focus-within{
  border-color: rgba(59, 130, 246, 0.75);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.20);
}

.pgr-year-chevron{
  position: absolute;
  right: 14px;
  pointer-events: none;
  opacity: 0.75;
  font-size: 14px;
}

/* Inline hamburger placement */
.sidemenu-inline-hamburger {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

/* Icon-only button */
.sidemenu-hamburger-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* 3-line hamburger */
.hamburger-lines {
  width: 22px;
  height: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-lines span {
  height: 2px;
  width: 100%;
  background: #1f2937; /* same tone as header */
  border-radius: 2px;
}

/* =========================================================
   HWA-UI-2026 Video.js float player
   Supports:
   - audio-only "mp3 with poster" as 320x240
   - video "mp4" as 640x480
   Mobile stays full width, 4:3, no distortion.
   ========================================================= */

/* =========================================================
   VIDEO.JS FLOAT WRAPPERS (320x240 + 640x480)
   - Desktop: fixed sizes, float right
   - Mobile: full width, 4:3 aspect ratio
   ========================================================= */

/* Container: do not lock size */
/* ===========================
   TEL VIDEO 1 — 640x480 VIDEO
   =========================== */

.tel_video1{
  display:block;
  width:auto;
  height:auto;
  max-width:100%;
}

/* Wrapper */
.tel_video1 .video_right_640{
  float:right;
  width:640px;
  height:480px;
  margin:0 0 16px 24px;
  border:1px solid rgba(15,23,42,.18);
  border-radius:14px;
  box-shadow:0 10px 22px rgba(15,23,42,.10);
  overflow:hidden;
  background:#000;
}

/* Force Video.js to fully fill wrapper */
.tel_video1 .video_right_640 .video-js{
  width:100% !important;
  height:100% !important;
  display:block;
}

/* Force actual video element to fill */
.tel_video1 .video_right_640 .video-js .vjs-tech{
  width:100% !important;
  height:100% !important;
  display:block;
  object-fit:cover;
}

/* Poster fill */
.tel_video1 .video_right_640 .video-js .vjs-poster{
  background-size:cover !important;
  background-position:center center !important;
}

/* ---------- Mobile ---------- */
@media (max-width:900px){

  .tel_video1 .video_right_640{
    float:none;
    width:100% !important;
    height:auto !important;
    margin:0 auto 14px;
  }

  .tel_video1 .video_right_640 .video-js{
    width:100% !important;
    height:auto !important;
    aspect-ratio:4 / 3;
  }

  .tel_video1 .video_right_640 .video-js .vjs-tech{
    width:100% !important;
    height:100% !important;
    object-fit:cover;
  }
}

/* ===========================
   TEL VIDEO 3 — 320x240 AUDIO
   =========================== */

.tel_video3{
  display:block;
  width:auto;
  height:auto;
  max-width:100%;
}

/* Wrapper */
.tel_video3 .video_right_320{
  float:right;
  width:320px;
  height:240px;
  margin:0 0 16px 24px;
  border:1px solid rgba(15,23,42,.18);
  border-radius:14px;
  box-shadow:0 10px 22px rgba(15,23,42,.10);
  overflow:hidden;
  background:#000;
}

/* Fill wrapper */
.tel_video3 .video_right_320 .video-js{
  width:100% !important;
  height:100% !important;
  display:block;
}

.tel_video3 .video_right_320 .video-js .vjs-tech{
  width:100% !important;
  height:100% !important;
  display:block;
  object-fit:cover;
}

.tel_video3 .video_right_320 .video-js .vjs-poster{
  background-size:cover !important;
  background-position:center center !important;
}

/* ---------- Mobile ---------- */
@media (max-width:900px){

  .tel_video3 .video_right_320{
    float:none;
    width:100% !important;
    height:auto !important;
    margin:0 auto 14px;
  }

  .tel_video3 .video_right_320 .video-js{
    width:100% !important;
    height:auto !important;
    aspect-ratio:4 / 3;
  }

  .tel_video3 .video_right_320 .video-js .vjs-tech{
    width:100% !important;
    height:100% !important;
    object-fit:cover;
  }
}

  /* Search */

@media (max-width: 640px) {

  /* Keep the table structure but reflow each row into paired checkbox+label units */
  #searchCheckboxGrid {
    width: 100% !important;
    border-collapse: collapse !important;
  }

  /* Each row becomes a 2-column grid of PAIRS:
     (cb+label) (cb+label) then wraps to next line */
  #searchCheckboxGrid tr {
    display: grid !important;
    grid-template-columns: min-content 1fr min-content 1fr !important;
    column-gap: 14px !important;
    row-gap: 10px !important;
    width: 100% !important;
  }

  /* Hide spacer cells (cb,label,spacer x4 => 3,6,9,12) */
  #searchCheckboxGrid tr > td:nth-child(3),
  #searchCheckboxGrid tr > td:nth-child(6),
  #searchCheckboxGrid tr > td:nth-child(9),
  #searchCheckboxGrid tr > td:nth-child(12) {
    display: none !important;
  }

  /* Reset widths/padding so the grid can control layout */
  #searchCheckboxGrid td {
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    vertical-align: top !important;
  }

  /* Checkbox cells align nicely */
  #searchCheckboxGrid tr > td:nth-child(1),
  #searchCheckboxGrid tr > td:nth-child(4),
  #searchCheckboxGrid tr > td:nth-child(7),
  #searchCheckboxGrid tr > td:nth-child(10) {
    padding-top: 2px !important;   /* aligns checkbox with first line of label */
  }

  /* Labels wrap nicely and stay with their checkbox */
  #searchCheckboxGrid tr > td:nth-child(2),
  #searchCheckboxGrid tr > td:nth-child(5),
  #searchCheckboxGrid tr > td:nth-child(8),
  #searchCheckboxGrid tr > td:nth-child(11) {
    white-space: normal !important;
  }

  #searchCheckboxGrid .font6 {
    font-size: 14px !important;
    line-height: 1.25 !important;
  }
}

/* HWA-UI-2026: make input + button match the dropdown */

/* === HWA-UI-2026 unified search controls === */
.search-input-row {
  display: flex;
  align-items: center;   /* forces vertical alignment */
  gap: 10px;
}

/* Unified height + shape */

.search-input-row select,
.search-input-row input.terms2,
.search-input-row .gobutton2 {
  height: 42px !important;
  box-sizing: border-box !important;
  border-radius: 10px !important;
  border: 1px solid rgba(0,0,0,0.15) !important;
  background: #fff !important;
  font-size: 14px !important;
}

.search-input-row input.terms2 {
  padding: 0 14px !important;
  line-height: 42px !important;     /* key for vertical alignment */
  display: block !important;
}

/* input specifics */
.search-input-row .terms2 {
  padding: 0 12px;
  outline: none;
}

/* button specifics */
.search-input-row .gobutton2 {
  padding: 0 18px !important;
  min-width: 64px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}

/* Optional: subtle hover/focus to feel modern */
.search-input-row select:focus,
.search-input-row .terms2:focus {
  box-shadow: 0 0 0 3px rgba(59,130,246,0.18);
  border-color: rgba(59,130,246,0.45);
}

.search-input-row .gobutton2:hover {
  box-shadow: 0 6px 14px rgba(0,0,0,0.10);
}

/* === HWA-UI-2026 unified search controls === */
.search-input-row {
  display: flex;
  align-items: center;   /* forces vertical alignment */
  gap: 10px;
}

/* Unified height + shape */
.search-input-row select,
.search-input-row .terms2,
.search-input-row .gobutton2 {
  height: 42px;                 /* <-- single source of truth */
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.15);
  background: #ffffff;
  font-size: 14px;
}

/* Text input */
.search-input-row .terms2 {
  padding: 0 14px;
  flex: 1 1 auto;
  line-height: normal;          /* prevents vertical drift */
}

/* Go button — perfect centering */
.search-input-row .gobutton2 {
  min-width: 64px;
  padding: 0 18px;
  display: inline-flex;         /* THIS fixes centering */
  align-items: center;          /* vertical center */
  justify-content: center;      /* horizontal center */
  line-height: 1;
  cursor: pointer;
}

/* Focus & hover polish */
.search-input-row select:focus,
.search-input-row .terms2:focus {
  outline: none;
  border-color: rgba(59,130,246,0.45);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.18);
}

.search-input-row .gobutton2:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* Mobile stack still clean */
@media (max-width: 640px) {
  .search-input-row {
    flex-wrap: wrap;
  }
  .search-input-row select,
  .search-input-row .terms2,
  .search-input-row .gobutton2 {
    width: 100%;
  }
}

      /* HWA-UI-2026: clean inline search row */
      .search-input-row {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
      }
      .search-input-row select {
        padding: 8px 10px;
        border-radius: 10px;
        border: 1px solid rgba(0,0,0,0.15);
        background: #fff;
        font-size: 14px;
      }
      .search-input-row .terms2 {
        flex: 1 1 260px;
        min-width: 200px;
      }
      .search-input-row .gobutton2 {
        flex: 0 0 auto;
        padding: 7px 14px;
        border-radius: 10px;
      }
      @media (max-width: 640px) {
        .search-input-row { gap: 8px; }
        .search-input-row select { width: 100%; }
        .search-input-row .terms2 { width: 100%; min-width: 0; }
        .search-input-row .gobutton2 { width: 100%; }
      }

@media (max-width: 640px) {

  /* Refine header row: force full width + stack nicely */
  #refine_search > table,
  #refine_search > table tbody,
  #refine_search > table tr,
  #refine_search > table td {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* The header table inside the refine pill/card */
  #refine_search .books-inner-card table,
  #refine_search .books-inner-card tbody,
  #refine_search .books-inner-card tr {
    display: block !important;
    width: 100% !important;
  }

  /* Turn the two header cells into stacked blocks */
  #refine_search .books-inner-card td {
    display: block !important;
    width: 100% !important;
    text-align: left !important;
  }

  /* Put Select/Unselect All under the label, aligned left */
  #refine_search #checkBoxes {
    text-align: left !important;
    margin-top: 8px !important;
  }
}

@media (max-width: 640px) {
  #refine_search table[width="100%"] td {
    display: block !important;
    width: 100% !important;
    text-align: left !important;
  }
  #refine_search #checkBoxes {
    text-align: left !important;
    margin-top: 8px !important;
  }
}

/* ===============================
   FORCE LARGE SEARCH INPUT (GLOBAL)
   =============================== */
.search-modal__form .search-input {
  height: auto !important;
}

.search-modal__form .search-input__field {
  height: 40px !important;          /* taller input */
  font-size: 18px !important;       /* bigger typed text */
  line-height: 40px !important;     /* vertically center text */
  padding: 0 20px 0 52px !important;/* room for icon */
  box-sizing: border-box !important;
}

/* Keep icon centered vertically in taller input */
.search-modal__form .search-input__icon {
  font-size: 20px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

/* === Mobile: make search INPUT same width as button === */
@media (max-width: 640px) {

  .search-modal__form .search-input {
    width: 100% !important;
  }

  .search-modal__form .search-input__field {
    width: 100% !important;
    display: block !important;
  }

}

/* ==============================
   SEARCH2: Mobile checkbox alignment (final override)
   ============================== */
@media (max-width: 640px) {

  /* Force the known-good grid layout */
  #searchCheckboxGrid {
    width: 100% !important;
  }

  #searchCheckboxGrid tr {
    display: grid !important;
    grid-template-columns: 18px 1fr 18px 1fr !important;
    column-gap: 14px !important;
    row-gap: 12px !important;
    align-items: start !important;
    width: 100% !important;
  }

  /* Hide spacer TDs (cb,label,spacer ×4 => 3,6,9,12) */
  #searchCheckboxGrid tr > td:nth-child(3),
  #searchCheckboxGrid tr > td:nth-child(6),
  #searchCheckboxGrid tr > td:nth-child(9),
  #searchCheckboxGrid tr > td:nth-child(12) {
    display: none !important;
  }

  /* Reset TD behavior so grid can align them correctly */
  #searchCheckboxGrid td {
    display: block !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: left !important;
    box-sizing: border-box !important;
  }

  /* Make sure the checkbox itself isn't adding odd margins */
  #searchCheckboxGrid input.checkboxall,
  #searchCheckboxGrid input[type="checkbox"] {
    margin: 0 !important;
    transform: translateY(2px); /* slight optical alignment with label */
  }

  /* Labels wrap cleanly */
  #searchCheckboxGrid .font6 {
    white-space: normal !important;
    line-height: 1.25 !important;
  }
}

    .ui-autocomplete-loading{
      background:#fff url('/images/indicator.gif') right 12px center no-repeat;
    }
    /* jQuery UI menu must sit above your modal */
    .ui-autocomplete{ z-index: 999999 !important; }

    /* Make room for loading gif */
    .search-modal__form .search-input__field{ padding-right:34px; }

/********************************************
 * HEADER PILLS (Search, Sign In, MyHWA)
 ********************************************/

/* Container that holds the three pills */
.hwa-header-links--new {
  display: inline-flex;
  align-items: center;
  gap: 14px;           /* spacing between pills */
  margin-top: 6px;
}

/* Pill style – this is the BIG desktop look */
.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 40px;       /* lots of space around text */
  line-height: 1.2;
  font-size: 15px;
  font-weight: 500;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", sans-serif;
  color: #e5e7eb;
  text-decoration: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.80);
  border: 1px solid rgba(148, 163, 184, 0.6);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease,
              transform 0.1s ease;
}

/* SVG icon inside pill */
.pill-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
}

/* Hover effect */
.nav-pill:hover {
  background: rgba(30, 64, 175, 0.9);
  border-color: rgba(96, 165, 250, 0.9);
  transform: translateY(-1px);
}

/* ?? MOBILE: scale pills down visually */
@media (max-width: 640px) {
  .hwa-header-links--new {
    transform: scale(0.8);        /* shrink pills on mobile */
    transform-origin: top center; /* scale from the center-top */
    gap: 10px;
  }
}

/* jQuery UI autocomplete must appear above modal and not be clipped */
.ui-autocomplete {
  z-index: 999999 !important;
  position: absolute !important;
}

/* Make sure modal wrappers don't clip the dropdown */
.search-modal__content,
.search-modal__form,
.search-input {
  overflow: visible !important;
}







/* ############################################################### */
/* ############################################################### */
/* ############################################################### */
/* ############################################################### */
/* Old CSS needed in upgrade */
/* Page Layout Start PC */
/* ############################################################### */

@media screen and (min-width: 641px) {

fieldset {
	 	padding:10px;
   	font-size: 13px;
		line-height: 1.25em;
}

.fieldset_red_border {
		border: 1px solid #AA0A00;
}

.legend_red {
		background-color:#AA0A00;
    text-align: center;
		width : 155px;
		padding: 3px;
}

.fieldset_right {
		width: 325px; 
		float: right;
}

.fieldset_left {
		width: 325px; 
		float: left;
}

.fieldset_right_325 {
		width: 316px; 
		float: right;
}

.fieldset_left_325 {
		width: 325px; 
		float: left;
}

.fieldset_center_325 {
		width: 325px; 
		float: center;
}

.div_caption {
     padding: 5px 5px 5px 5px;
		 margin: 15px 0px 15px 0px;
		 border-top: 1px solid #808080;
		 border-bottom: 1px solid #808080;
		 font-size: 13px;
		 font-style: italic;
}

.hr { height: 0; border-style: dotted; border-width: 1px 0 0 0; border-color:#3A83DC; }
.hr_div { height: 0; border-style: solid; border-width: 1px 0 0 0; border-color:#C0C0C0; }

.imgborder {
	float: right;
	border: 1px solid #888;
	padding: 5px;
	background-color: #FFFFFF;
	margin: 5px 5px 5px 5px;
	-moz-box-shadow: 0 3px 5px #888;
 	-webkit-box-shadow: 0 3px 5px #888;
 	box-shadow: 0 3px 5px #888;
	}

.imgborder {
	clear: both;
}

.imgborder_center {
	float: center;
	border: 1px solid #888;
	padding: 5px;
	background-color: #FFFFFF;
	margin: 5px 5px 5px 5px;
	-moz-box-shadow: 0 3px 5px #888;
 	-webkit-box-shadow: 0 3px 5px #888;
 	box-shadow: 0 3px 5px #888;
	}
	
.imgborder_center {
	clear: both;
}

.imgborderleft {
	float: left;
	border: 1px solid #888;
	padding: 5px;
	background-color: #FFFFFF;
	margin: 5px 10px 10px 5px;
	-moz-box-shadow: 0 3px 5px #888;
 	-webkit-box-shadow: 0 3px 5px #888;
 	box-shadow: 0 3px 5px #888;
	}

.imgborderleft {
	clear: both;
}

.imgborder_top {
	top: 20;
	float: right;
	position: relative;
	border: 1px solid #888;
	padding: 5px;
	background-color: #FFFFFF;
	margin: 5px 5px 5px 5px;
	-moz-box-shadow: 0 3px 5px #888;
 	-webkit-box-shadow: 0 3px 5px #888;
 	box-shadow: 0 3px 5px #888;
	}

.imgborder_top {
	clear: both;
}

.img_resize_both_left {
	width: 98%;
  height: auto;
	border: 1px solid #888;
	padding: 5px;
	background-color: #FFFFFF;
	margin: 5px 5px 5px 5px;
	-moz-box-shadow: 0 3px 5px #888;
 	-webkit-box-shadow: 0 3px 5px #888;
 	box-shadow: 0 3px 5px #888;
}

.img_resize_both_left {
	clear: both;
}

.imgborder_r_300 {
	width: 300px;
	float: right;
	border: 1px solid #888;
	padding: 5px;
	background-color: #FFFFFF;
	margin: 5px 5px 5px 5px;
	-moz-box-shadow: 0 3px 5px #888;
 	-webkit-box-shadow: 0 3px 5px #888;
 	box-shadow: 0 3px 5px #888;
	}

.imgborder_r_300 {
	clear: both;
}

.imgborder_faq {
	float: right;
	border: 1px solid #888;
	padding: 5px;
	background-color: #FFFFFF;
	margin: 5px 5px 5px 5px;
	-moz-box-shadow: 0 3px 5px #888;
 	-webkit-box-shadow: 0 3px 5px #888;
 	box-shadow: 0 3px 5px #888;
	}

.imgborder_faq {
	clear: both;
}

.imgborder_thb {
	float: right;
	border: 1px solid #888;
	padding: 5px;
	background-color: #FFFFFF;
	margin: 5px 5px 5px 5px;
	-moz-box-shadow: 0 3px 5px #888;
 	-webkit-box-shadow: 0 3px 5px #888;
 	box-shadow: 0 3px 5px #888;
	}

.imgborder_thb {
	clear: both;
}

input.btnblk5 {
     text-decoration: underline;
     text-align: left;
		 font-size: 18px;
     background-color: transparent;
     border-top-style: none;
     border-right-style: none;
     border-bottom-style: none;
     border-left-style: none;
     cursor:pointer;
     color: #3A83DC;
	   margin: 0px;
	   padding: 0px;
}


}  /* @media screen  */

.div_faq_left {
	padding: 0 0 10px 5px;
}

.div_faq_right {
  float:right;
}

.font_white1 {
     font-size: 10pt;
		 color: #FFFFFF;
}

/*Sabbath & Bible Study Audio/Video Player Start */

.div_video_player {
     color: #444444;
     font-size: 12pt;
     font-weight: bold;
		 line-height: 1.2;
}

.div_video_player_mobile {
    position: absolute;
    top: -99999px;
}

.div_audio_player {
		margin-top: 10px;
}

#playlist {
    display:table;
    padding:0 0 0 25px;
}
#playlist li {
   	font-size: 13px;
    font-weight: bold;
    color:#3A83DC;
    cursor:pointer;
    padding:0 0 10px 0;
}

#playlist li:hover {
    color:#FF0000;                        
}

#videoarea {
    float:left;
    width:480px;
    height:360px;
    margin:5px;    
		background-color: rgb(0,0,0);
		border: 1px solid #888;
		-moz-box-shadow: 0 3px 5px #888;
 		-webkit-box-shadow: 0 3px 5px #888;
 		box-shadow: 0 3px 5px #888;
}

#mediaplayergrid {
        display: -ms-grid;
        -ms-grid-columns: 68% 32%;
        -ms-grid-rows: auto 1fr;
        display: grid;
				grid-gap: 5px;
        grid-template-rows: auto 1fr;
				grid-template-columns: 68% 32%;
}

#mediaplayergrid1 {
            -ms-grid-row: 1;
            -ms-grid-column: 1;
						-ms-grid-column-span: 1;
            grid-row: 1;
            grid-column: 1;
}

#mediaplayergrid2 {
            -ms-grid-row: 1;
            -ms-grid-column: 2;
						-ms-grid-column-span: 1;
            grid-row: 1;
            grid-column: 2;
}

#tzeastwestgrid {
        display: -ms-grid;
        -ms-grid-columns: 50% 50%;
        -ms-grid-rows: auto 1fr;
        display: grid;
				grid-gap: 5px;
        grid-template-rows: auto 1fr;
				grid-template-columns: 50% 50%;
}

#tzeastwestgrid1 {
            -ms-grid-row: 1;
            -ms-grid-column: 1;
            grid-row: 1;
            grid-column: 1;
}

#tzeastwestgrid2 {
            -ms-grid-row: 1;
            -ms-grid-column: 2;
            grid-row: 1;
            grid-column: 2;
}

.video_right_320 {
	float: right;
	width: 320px;
	height: 240px;
	border-top: 1px solid #888;
	border-left: 1px solid #888;
	border-right: 1px solid #888;
	border-bottom: 1px solid #888;
	-moz-box-shadow: 0 3px 5px #888;
 	-webkit-box-shadow: 0 3px 5px #888;
 	box-shadow: 0 3px 5px #888;
}

.video_right_427 {
	float: right;
	width: 427px;
	height: 240px;
	border-top: 1px solid #888;
	border-left: 1px solid #888;
	border-right: 1px solid #888;
	border-bottom: 1px solid #888;
	-moz-box-shadow: 0 3px 5px #888;
 	-webkit-box-shadow: 0 3px 5px #888;
 	box-shadow: 0 3px 5px #888;
}

.tel_video1 {
	width: 640px;
	height: 480px;
}

.tel_video2 {
	width: 480px;
	height: 360px;
}

.tel_video3 {
	width: 320px;
	height: 240px;
}

/*Sabbath & Bible Study Audio/Video Player End */

.font_sabbath1 {
     color: #ffffff;
}

#term{
    width:260px;
		height:20px;
		font-size:13px;
		white-space: nowrap;
		zoom: 1;
}

#term2{
    width:530px;
		height:26px;
		font-size:13px;
		display:inline-block;
		white-space: nowrap;
		zoom: 1;
}

.gobutton {
  font-family: verdana;
  font-weight: bold;
  color: #FFFFFF;
  font-size: 13px !important;
  text-shadow: 1px 1px 0px #7CACDE;
  padding: 4px;
  border: 1px solid #3866A3;
  background: #63B8EE;
  background: linear-gradient(top,  #63B8EE,  #468CCF);
  background: -ms-linear-gradient(top,  #63B8EE,  #468CCF);
  background: -webkit-gradient(linear, left top, left bottom, from(#63B8EE), to(#468CCF));
  background: -moz-linear-gradient(top,  #63B8EE,  #468CCF);
}
.gobutton:hover {
  color: #F4FF61 !important;
  background: #468CCF;
  background: linear-gradient(top,  #468CCF,  #63B8EE);
  background: -ms-linear-gradient(top,  #468CCF,  #63B8EE);
  background: -webkit-gradient(linear, left top, left bottom, from(#468CCF), to(#63B8EE));
  background: -moz-linear-gradient(top,  #468CCF,  #63B8EE);
}

.gobutton2 {
		width:75px;
		height:26px;
		font-family: arial;
		font-size:13px;
		padding: 3px 3px 3px 3px;
    cursor:pointer;
}

/* Old CSS needed in upgrade */
/* End Old PC */






/* Start Mobile Old CSS needed in upgrade */
/* Page Layout Start Mobile */

@media screen and (max-width: 640px) {

fieldset {
	 	padding:10px;
		line-height: 1.25em;
}

.fieldset_red_border {
		border: 1px solid #AA0A00;
}

.legend_red {
		background-color:#AA0A00;
    text-align: center;
		width : 155px;
		padding: 3px;
}

.fieldset_right {
		width: 325px; 
		float: right;
}

.fieldset_left {
		width: 325px; 
		float: left;
}

.fieldset_right_325 {
		width: 316px; 
		float: right;
}

.fieldset_left_325 {
		width: 325px; 
		float: left;
}

.fieldset_center_325 {
		width: 325px; 
		float: center;
}

.div_caption {
     padding: 5px 5px 5px 5px;
		 margin: 15px 0px 15px 0px;
		 border-top: 1px solid #808080;
		 border-bottom: 1px solid #808080;
		 font-size: 13px;
		 font-style: italic;
}

.imgborder {
  max-width: 98%;
  height: auto;
	float: right;
	border: 1px solid #888;
	padding: 5px;
	background-color: #FFFFFF;
	margin: 5px 5px 5px 5px;
	-moz-box-shadow: 0 3px 5px #888;
 	-webkit-box-shadow: 0 3px 5px #888;
 	box-shadow: 0 3px 5px #888;
	}

.imgborder {
	clear: both;
}

.imgborder_center {
  max-width: 100%;
  height: auto;
	float: center;
	border: 1px solid #888;
	padding: 5px;
	background-color: #FFFFFF;
	margin: 5px 5px 5px 5px;
	-moz-box-shadow: 0 3px 5px #888;
 	-webkit-box-shadow: 0 3px 5px #888;
 	box-shadow: 0 3px 5px #888;
	}
	
.imgborder_center {
	clear: both;
}

.imgborderleft {
  max-width: 100%;
  height: auto;
	float: left;
	border: 1px solid #888;
	padding: 5px;
	background-color: #FFFFFF;
	margin: 5px 10px 10px 5px;
	-moz-box-shadow: 0 3px 5px #888;
 	-webkit-box-shadow: 0 3px 5px #888;
 	box-shadow: 0 3px 5px #888;
	}

.imgborderleft {
	clear: both;
}

.imgborder_top {
  max-width: 100%;
  height: auto;
	top: 5;
	float: right;
	position: relative;
	border: 1px solid #888;
	padding: 5px;
	background-color: #FFFFFF;
	margin: 5px 5px 5px 5px;
	-moz-box-shadow: 0 3px 5px #888;
 	-webkit-box-shadow: 0 3px 5px #888;
 	box-shadow: 0 3px 5px #888;
	}

.imgborder_top {
	clear: both;
}

.img_resize_both_left {
  width: 98%;
  height: auto;
	border: 1px solid #888;
	padding: 5px;
	background-color: #FFFFFF;
	margin: 5px 5px 5px 5px;
	-moz-box-shadow: 0 3px 5px #888;
 	-webkit-box-shadow: 0 3px 5px #888;
 	box-shadow: 0 3px 5px #888;
}

.img_resize_both_left {
	clear: both;
}

.imgborder_r_300 {
  max-width: 100%;
  height: auto;
	float: right;
	border: 1px solid #888;
	padding: 5px;
	background-color: #FFFFFF;
	margin: 5px 5px 5px 5px;
	-moz-box-shadow: 0 3px 5px #888;
 	-webkit-box-shadow: 0 3px 5px #888;
 	box-shadow: 0 3px 5px #888;
	}

.imgborder_r_300 {
	clear: both;
}

.imgborder_faq {
  max-width: 100%;
  height: auto;
	float: right;
	border: 1px solid #888;
	padding: 5px;
	background-color: #FFFFFF;
	margin: 5px 5px 5px 5px;
	-moz-box-shadow: 0 3px 5px #888;
 	-webkit-box-shadow: 0 3px 5px #888;
 	box-shadow: 0 3px 5px #888;
	}

.imgborder_faq {
	clear: both;
}

.imgborder_thb {
	float: right;
	border: 1px solid #888;
	padding: 5px;
	background-color: #FFFFFF;
	margin: 5px 5px 5px 5px;
	-moz-box-shadow: 0 3px 5px #888;
 	-webkit-box-shadow: 0 3px 5px #888;
 	box-shadow: 0 3px 5px #888;
	}

.imgborder_thb {
	clear: both;
}

.font_white1 {
     font-size: 2vm;
		 color: #FFFFFF;
}

/*Sabbath & Bible Study Audio/Video Player Start */

.div_video_player {
    position: absolute;
    top: -99999px;
}

.div_video_player_mobile {
     font-weight: bold;
     font-size: 2vm;
		 padding: 10px 20px 0px 0px;
}

.div_audio_player {
		margin-top: 10px;
}

#playlist {
    display:table;
    padding:0 0 0 5px;
}
#playlist li {
   	font-size: 13px;
    font-weight: bold;
    color:#3A83DC;
    cursor:pointer;
    padding:0 0 5px 0;
}

#playlist li:hover {
    color:#FF0000;                        
}

#videoarea {
    float:left;
    width:95%;
		height: auto;
    margin:1px;    
		border: 1px solid #888;
		-moz-box-shadow: 0 3px 5px #888;
 		-webkit-box-shadow: 0 3px 5px #888;
 		box-shadow: 0 3px 5px #888;
}

#mediaplayergrid {
        display: -ms-grid;
        -ms-grid-columns: auto auto;
        -ms-grid-rows: auto 1fr;
        display: inline-grid;
				grid-gap: 5px;
        grid-template-rows: auto 1fr;
				grid-template-columns: auto auto;
}

#mediaplayergrid1 {
            -ms-grid-row: 1;
            -ms-grid-column: 1;
						-ms-grid-column-span: 1;
            grid-row: 1;
            grid-column: 1;
}

#mediaplayergrid2 {
            -ms-grid-row: 2;
            -ms-grid-column: 1;
						-ms-grid-column-span: 1;
            grid-row: 2;
            grid-column: 1;
						display: flex;
}

#tzeastwestgrid {
        display: -ms-grid;
        -ms-grid-columns: 100%;
        -ms-grid-rows: auto 1fr;
        display: inline-grid;
				grid-gap: 5px;
        grid-template-rows: auto 1fr;
				grid-template-columns: 100%;
}

#tzeastwestgrid1 {
            -ms-grid-row: 1;
            -ms-grid-column: 1;
						-ms-grid-column-span: 1;
            grid-row: 1;
            grid-column: 1;
}

#tzeastwestgrid2 {
            -ms-grid-row: 2;
            -ms-grid-column: 1;
						-ms-grid-column-span: 1;
            grid-row: 2;
            grid-column: 1;
}

.video_right_320 {
	width: 100%;
	max-width: 320px;
	height: auto;
	border-top: 1px solid #888;
	border-left: 1px solid #888;
	border-right: 1px solid #888;
	border-bottom: 1px solid #888;
	-moz-box-shadow: 0 3px 5px #888;
 	-webkit-box-shadow: 0 3px 5px #888;
 	box-shadow: 0 3px 5px #888;
}

.video_right_427 {
	width: 100%;
	max-width: 427px;
	height: auto;
	border-top: 1px solid #888;
	border-left: 1px solid #888;
	border-right: 1px solid #888;
	border-bottom: 1px solid #888;
	-moz-box-shadow: 0 3px 5px #888;
 	-webkit-box-shadow: 0 3px 5px #888;
 	box-shadow: 0 3px 5px #888;
}

.tel_video1 {
  width: 100%;
  height: 100%;
}

.tel_video2 {
	width: 320px;
	height: 240px;
}

.tel_video3 {
	width: 256px;
	height: 192px;
}

/*Sabbath & Bible Study Audio/Video Player End */

.font_sabbath1 {
     color: #ffffff;
}

#term{
    width:125px;
		white-space: nowrap;
		zoom: 1;
		z-index: 3;
}

#term2{
    width:330px;
		font-family:arial;
		display:inline-block;
		white-space: nowrap;
		zoom: 1;
		position:relative;
		z-index: 3;
}

.gobutton {
	width:50px;
  font-family: verdana;
  font-weight: bold;
  color: #FFFFFF !important;
  text-shadow: 1px 1px 0px #7CACDE;
  border: 2px solid #3866A3;
  background: #63B8EE;
  background: linear-gradient(top,  #63B8EE,  #468CCF);
  background: -ms-linear-gradient(top,  #63B8EE,  #468CCF);
  background: -webkit-gradient(linear, left top, left bottom, from(#63B8EE), to(#468CCF));
  background: -moz-linear-gradient(top,  #63B8EE,  #468CCF);
}
.gobutton:hover {
  color: #F4FF61 !important;
  background: #468CCF;
  background: linear-gradient(top,  #468CCF,  #63B8EE);
  background: -ms-linear-gradient(top,  #468CCF,  #63B8EE);
  background: -webkit-gradient(linear, left top, left bottom, from(#468CCF), to(#63B8EE));
  background: -moz-linear-gradient(top,  #468CCF,  #63B8EE);
}

.gobutton2 {
		width:50px;
		height:28px;
    cursor:pointer;
}

}  /* @media screen  */
/* End Mobile Old  */





/* Standard - No PC - No Mobile  */

.img-frame-cap-right {
     width:300px;
     background:#ffffff;
     padding:5px 5px 5px 5px;
		 margin: 5px 5px 5px 10px;
     border:1px solid #999999;
		 float: right;
}

.img-frame-cap-left {
     width:300px;
     background:#ffffff;
     padding:5px 5px 5px 5px;
		 margin: 5px 10px 5px 5px;
     border:1px solid #999999;
		 float: left;
}

input.btnblk5 {
		 white-space: normal;
     text-decoration: underline;
     text-align: left;
		 font-size: 16px;
     background-color: transparent;
     border-top-style: none;
     border-right-style: none;
     border-bottom-style: none;
     border-left-style: none;
     cursor:pointer;
     color: #3A83DC;
	   margin: 0px;
	   padding: 0px;
}

.div_faq_left {
	padding: 10px 0 10px 0px;
}

.div_faq_right {
	padding: 10px 0 10px 0px;
}



/* Standard - No PC - No Mobile  */