/* =========================================
   SWHSP HOMEPAGE - NEWS & EVENTS
   ========================================= */

/* Consistent styling for both gadgets */
.homepage-news,
.homepage-events {
  background: transparent;
  border: none;
  padding: 0;
}

/* Matching section headings */
.homepage-news .gadgetStyleTitle,
.homepage-events .gadgetStyleTitle {
  color: #153453;
}

/* Consistent article and event links */
.homepage-news .title a,
.homepage-events a {
  color: #153453 !important;
  text-decoration: none;
  font-weight: 600;
}

.homepage-news .title a:hover,
.homepage-events a:hover {
  color: #087da3 !important;
  text-decoration: underline;
}

/* Hide news author names */
.homepage-news .author {
  display: none !important;
}

/* News publication dates */
.homepage-news .date {
  color: #777777;
  font-size: 12px;
}

/* Consistent spacing between entries */
.homepage-news .gadgetStyleBody ul li,
.homepage-events .gadgetStyleBody ul li {
  margin-bottom: 12px;
}

/* No extra margin after last entry */
.homepage-news .gadgetStyleBody ul li:last-child,
.homepage-events .gadgetStyleBody ul li:last-child {
  margin-bottom: 0;
}


/* =====================================
   SWHSP - SECTION DIVIDING LINES
   ===================================== */

/* Navy line beneath News & Events headings */
.homepage-news .gadgetStyleTitle,
.homepage-events .gadgetStyleTitle {
  border-bottom: 2px solid #153453 !important;
  padding-bottom: 10px !important;
  margin-bottom: 18px !important;
}

/* =====================================
   SWHSP - NEWS METADATA
   ===================================== */

/* Keep author names hidden */
.homepage-news .author {
  display: none !important;
}

/* Format publication dates */
.homepage-news .date {
  color: #777777;
  font-size: 12px;
}

/* Hide CSS-generated separators, if present */
.homepage-news .date::after,
.homepage-news .date::before {
  content: none !important;
}


/* =====================================
   SWHSP MAIN NEWS PAGE
   ===================================== */

/* Article headings */
.swhsp-news-page .boxHeaderTitle {
  font-size: 20px !important;
  line-height: 1.4 !important;
  font-weight: 600 !important;
  margin-bottom: 8px !important;
}

/* Article title links */
.swhsp-news-page .boxHeaderTitle a {
  color: #153453 !important;
  text-decoration: none !important;
}

.swhsp-news-page .boxHeaderTitle a:hover {
  color: #087da3 !important;
  text-decoration: underline !important;
}

/* Consistent spacing between posts */
.swhsp-news-page ul.boxesList li.boxesListItem {
  margin-bottom: 32px !important;
  padding-bottom: 24px !important;
  border-bottom: 1px solid #dddddd;
}

/* Remove border after final article */
.swhsp-news-page ul.boxesList li.boxesListItem:last-child {
  border-bottom: none;
}


/* =========================================
   SWHSP NEWS PAGE - ADDITIONAL REFINEMENTS
   ========================================= */

/* Make article preview text consistent */
.swhsp-news-page .boxBodyInfoContainer {
  font-size: 15px;
  line-height: 1.6;
}

/* Keep images within the article width */
.swhsp-news-page .boxBodyInfoContainer img {
  max-width: 100%;
  height: auto;
}

/* Make Read More links navy */
.swhsp-news-page .boxFooterContainer a {
  color: #153453 !important;
  text-decoration: none !important;
  font-weight: 600;
}

/* Hover effect */
.swhsp-news-page .boxFooterContainer a:hover {
  text-decoration: underline !important;
}

/* More consistent spacing between posts */
.swhsp-news-page ul.boxesList li.boxesListItem {
  margin-bottom: 28px !important;
  padding-bottom: 20px !important;
}

/* Avoid excessive spacing in preview paragraphs */
.swhsp-news-page .boxBodyInfoContainer p {
  margin-top: 0;
  margin-bottom: 12px;
}


/* =====================================
   SWHSP NEWS PAGE - AUTHOR INFORMATION
   ===================================== */

/* Hide author name and link */
.swhsp-news-page .postedByLink {
  display: none !important;
}

/* Keep publication date visible */
.swhsp-news-page .postedOn {
  color: #777777 !important;
  font-size: 13px !important;
  font-style: italic;
}

/* Hide the "by" prefix if generated by CSS */
.swhsp-news-page .boxInfoContainer h5::before {
  content: none !important;
}


/* =========================================
   SWHSP NEWS PAGE - CLEAN ARTICLE PREVIEWS
   ========================================= */

/* Compact article previews */
.swhsp-news-page .boxBodyInfoContainer {
  max-height: 125px !important;
  overflow: hidden !important;
}

/* Standardize headings within previews */
.swhsp-news-page .boxBodyInfoContainer h1,
.swhsp-news-page .boxBodyInfoContainer h2,
.swhsp-news-page .boxBodyInfoContainer h3,
.swhsp-news-page .boxBodyInfoContainer h4 {
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
  font-weight: 600 !important;
  margin: 0 0 8px !important;
}

/* Consistent preview paragraphs */
.swhsp-news-page .boxBodyInfoContainer p {
  font-size: 14px !important;
  line-height: 1.5 !important;
  margin: 0 0 10px !important;
}

/* Hide images in archive previews */
.swhsp-news-page .boxBodyInfoContainer img {
  display: none !important;
}

/* Keep Read More separate from preview */
.swhsp-news-page .boxFooterContainer {
  margin-top: 12px !important;
}


/* =========================================
   SWHSP NEWS - HIDE IMAGES IN PREVIEWS
   ========================================= */

/* Hide images in blog listing previews */
.swhsp-news-page .blogPostBody img {
  display: none !important;
}


/* =========================================
   SWHSP NEWS - CLEAN PREVIEW FORMATTING
   ========================================= */

/* Standardize headings within previews */
.swhsp-news-page ul.boxesList li.boxesListItem
.blogPostBody h1,
.swhsp-news-page ul.boxesList li.boxesListItem
.blogPostBody h2,
.swhsp-news-page ul.boxesList li.boxesListItem
.blogPostBody h3,
.swhsp-news-page ul.boxesList li.boxesListItem
.blogPostBody h4 {
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
  font-weight: 600 !important;
  margin: 0 0 8px !important;
}

/* Standardize paragraph spacing */
.swhsp-news-page ul.boxesList li.boxesListItem
.blogPostBody p {
  line-height: 1.5 !important;
  margin: 0 0 10px !important;
}
