/*******************************************************
  SIS — GLOBAL STYLES
  Divi Child Theme
*******************************************************/

/* =====================================================
   LINK HOVER HIGHLIGHT EFFECT
   ===================================================== */

p a {
  color: #000;
  background-image: linear-gradient(#6cace4, #6cace4);
  background-size: 100% 0.1em;
  background-position-y: 100%;
  background-repeat: no-repeat;
  transition: background-size 0.2s ease-in-out;
}

footer .et_pb_module:not(#social_links) ul li a {
  background-image: linear-gradient(#6cace4, #6cace4);
  background-size: 100% 0;
  background-position-y: 100%;
  background-repeat: no-repeat;
  transition: background-size 0.2s ease-in-out;
}

p a:hover,
p a:focus,
p a:active,
footer .et_pb_module:not(#social_links) ul li a:hover {
  background-image: linear-gradient(#cbe9ff, #cbe9ff);
  background-size: 102% 102%;
}

.et_pb_bg_layout_dark p a,
footer .et_pb_bg_layout_dark .et_pb_module:not(#social_links) ul li a {
  color: #fff;
  background-image: linear-gradient(#fc8d2c, #fc8d2c);
}

.et_pb_bg_layout_medium p a {
  color: #000;
  background-image: linear-gradient(#fc8d2c, #fc8d2c);
}

.et_pb_bg_layout_dark p a:hover,
.et_pb_bg_layout_dark p a:focus,
.et_pb_bg_layout_dark p a:active,
footer .et_pb_bg_layout_dark .et_pb_module:not(#social_links) ul li a:hover {
  color: #333;
}

/* =====================================================
   GTRANSLATE
   ===================================================== */

.gtranslate_wrapper a.glink span {
  font-size: 18px !important;
}

/* =====================================================
   HUBSPOT FORMS
   ===================================================== */

.hsfc-Step__Content {
  padding: 0 !important;
}

.hsfc-Step__Content .hsfc-Row:first-child {
  margin-bottom: 0 !important;
}

h1.hsfc-Heading,
.hsfc-Row h1 {
  font-size: 2.5rem !important;
  margin-block: 0 !important;
}

.hsfc-RichText p {
  margin-block-start: 0 !important;
}

/* =====================================================
   EP CAPTIONS
   ===================================================== */

.et_pb_image.sc-caption {
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
}

.et_pb_image.sc-caption .sis-wp-media-caption {
  font-size: 1rem;
  line-height: 1.5;
  font-style: italic;
  margin-top: 0.75rem;
  color: #555;
}

.et_pb_image.sc-caption {
  row-gap: 0;
}

/* =====================================================
   DIPI ARCHIVES
   ===================================================== */
body.dipi-custom-archive-page.dipi-archive-style2 .et_pb_module.et_pb_posts.dipi-styled-blog .et_pb_ajax_pagination_container article.et_pb_post,body.dipi-custom-archive-page.dipi-archive-style2 .et_pb_module.et_pb_blog_grid_wrapper.dipi-styled-blog .et_pb_ajax_pagination_container article.et_pb_post,body.dipi-custom-archive-page.dipi-archive-style3 .et_pb_module.et_pb_posts.dipi-styled-blog .et_pb_ajax_pagination_container article.et_pb_post,body.dipi-custom-archive-page.dipi-archive-style3 .et_pb_module.et_pb_blog_grid_wrapper.dipi-styled-blog .et_pb_ajax_pagination_container article.et_pb_post,body.dipi-custom-archive-page.search.dipi-archive-style2 #left-area article.et_pb_post,body.dipi-custom-archive-page.search.dipi-archive-style3 #left-area article.et_pb_post,body.archive.dipi-archive-style2 #main-content #left-area article.et_pb_post,body.blog.dipi-archive-style2 #left-area article.et_pb_post,body.archive.dipi-archive-style3 #left-area article.et_pb_post,body.blog.dipi-archive-style3 #left-area article.et_pb_post {
    max-height:260px;
}

/* =====================================================
   DIPI FILTERABLE GRID READ MORE BUTTON
   ===================================================== */
/* Stories filterable grid read more button */
.post-grid-enhanced .dipi-fg-readmore-button {
  background-color: #00558c !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 15px !important;
  line-height: 1.2 !important;
  opacity: 1 !important;
  text-decoration: none !important;
}

/* Hover/focus state */
.post-grid-enhanced .dipi-fg-readmore-button:hover,
.post-grid-enhanced .dipi-fg-readmore-button:focus {
  background-color: #00558c !important;
  color: #ffffff !important;
  border: 0 !important;
  padding-right: 35px !important;
  opacity: 1 !important;
}

/* Prevent Divi hover padding shift */
.post-grid-enhanced .et_pb_button.dipi-fg-readmore-button:hover {
  padding: 15px 35px 15px 15px !important;
}

.post-grid-enhanced .et_pb_button.dipi-fg-readmore-button:after {
    font-size: 1rem !important;
    margin-left: 0.2rem !important;
}

/* =====================================================
   DIVI BLOG MODULE GRID READ MORE BUTTON
   ===================================================== */
/* Hide misplaced read-more only when JS is available */
html.js .post-archive article > .dipi-read-more-wrap {
  visibility: hidden;
  position: absolute;
  opacity: 0;
  pointer-events: none;c
}

/* Reveal once JS moves it into the correct content wrapper */
html.js .post-archive .blog-content-wrap .dipi-read-more-wrap {
  visibility: visible;
  position: static;
  opacity: 1;
  pointer-events: auto;
}

/* Reserve button space while the misplaced button is hidden */
html.js .post-archive article .blog-content-wrap::after {
  content: "";
  display: block;
  height: 50px;
  margin-top: 15px;
}

/* Remove placeholder only when the real button is inside the content wrap */
html.js .post-archive article .blog-content-wrap:has(.dipi-read-more-wrap)::after {
  display: none;
}

/* =====================================================
   PROGRAM NAME STYLE
   ===================================================== */
.sis-program-name {
    font-weight: 700;
    /*color: #005b8f;*/
}
a .sis-program-name,
.sis-program-name {
    font-weight: 700;
}

/* =====================================================
   EXTERNAL VIDEO THUMB
   ===================================================== */
.video-thumb {
  position: relative;
  display: inline-block;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.2); /* always visible */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  transition: background 0.3s ease, opacity 0.3s ease;
}

/* Make text slightly subtle by default */
.overlay-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0.95;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
  background: rgba(0,0,0,0.35);
  padding: 0.25em 0.5em;
  border-radius: 4px;
}

.play-icon {
  font-size: 2.75rem;
  margin-bottom: 1rem;
  opacity: 0.95;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

/* Enhance on hover + keyboard focus */
.video-thumb:hover .video-overlay,
.video-thumb:focus .video-overlay {
  background: rgba(0,0,0,0.3);
}

.video-thumb:hover .video-overlay,
.video-thumb:focus .video-overlay {
  background: rgba(0,0,0,0.5);
}

.video-thumb:hover .overlay-text,
.video-thumb:focus .overlay-text {
  opacity: 1;
}


/* Divi Blog cards: closer DIPI styling */
.et_pb_post .entry-featured-image-url {
    margin-bottom: 1rem;
}

.sis-divi-blog-match .et_pb_image_container {
    aspect-ratio: 4 / 3;
    overflow: hidden !important;
}

.sis-divi-blog-match .et_pb_image_container a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
}

.sis-divi-blog-match .et_pb_image_container img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform .35s ease !important;
  margin-bottom: 1rem !important;
}

.sis-divi-blog-match .et_pb_post:hover .et_pb_image_container img {
  transform: scale(1.06) !important;
}

/* Date */
.sis-divi-blog-match .post-meta {
  padding-bottom: 0.5rem !important;
}

/* Title */
.sis-divi-blog-match .entry-title {
  margin-bottom: 0.5rem !important;
}

/* Inner Spacing */
.sis-divi-blog-match .post-meta,
.sis-divi-blog-match .entry-title,
.sis-divi-blog-match .post-content,
.sis-divi-blog-match .dipi-read-more-wrap {
    margin-left: 1rem;
    margin-right: 1rem;
}

/* Button spacing */
.sis-divi-blog-match .dipi-read-more-wrap {
  margin: 1rem 0 1rem 1rem !important;
}