/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com
Description: A child theme for the Hello Elementor parent theme.
Author: Your Name
Author URI: https://yourwebsite.com
Template: hello-elementor
Version: 1.0.0
*/

.elementor-widget-text-editor a,
.elementor-widget-theme-post-content a{border-bottom:1px solid;}

.wp-block-buttons>.wp-block-button{margin:20px 0 0 0;}

.elementor-widget-text-editor ul,
.elementor-widget-theme-post-content ul{margin:0 0 1em 0;}
.elementor-widget-text-editor ul li,
.elementor-widget-theme-post-content ul li{margin:0 0 0.5em 0;}
.elementor-widget-text-editor ul li ul,
.elementor-widget-theme-post-content ul li ul{margin: 0.5em 0 1em 0;}

.wp-block-button a{
        text-decoration:none; 
        background-color: #32373c;
        color:#ffffff!important;
        line-height:1.2em;
}
.wp-block-button a:hover,.wp-block-button a:active{
        background-color:#555555!important;
        -webkit-transition: background-color 100ms linear;
        -ms-transition: background-color 100ms linear;
        transition: background-color 100ms linear;
}

.wp-block-quote{
background: rgba(255, 191, 0, 0.05);
    border-left: 5px solid #dd5903;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0 2rem;
    border-radius: 0 6px 6px 0;
    /*font-weight: 600;*/
    font-size: 18px;
    line-height: 1.4em;
}

.elementor-widget-theme-post-content h2{
    margin: 1em 0 0.5em;
}
.elementor-widget-theme-post-content h3{
    margin: 1em 0 0.5em;
}
.elementor-widget-theme-post-content h4{
    margin: 1em 0 0.5em;
}


.elementor-widget-theme-post-content ul {
    margin: 0 0 1.5em 0;
}


/* News reference posts: summary + linked source article card */

.news-ref {
  --news-accent: #dd5903;
  --news-text-soft: #55595f;
  --news-text-muted: #80858c;
  --news-border: #d9dce0;
  --news-rule: #e8eaed;
}

/* Summary / standfirst */
.news-ref .news-ref__summary {
  /*
  font-size: 1.15em;
  line-height: 1.7;
  color: var(--news-text-soft);
  */
  margin: 0 0 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--news-rule);
}

/* Small label above the card */
.news-ref .news-ref__label {
  font-size: 0.8rem;
  color: var(--news-text-muted);
  margin: 0 0 0.5rem;
}

/* The source article card */
.news-ref .source-card {
  position: relative;
  border: 1px solid var(--news-border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem 1.25rem 2.75rem;
  margin: 0;
}

/* Straight accent bar inside the card */
.news-ref .source-card::before {
  content: "";
  position: absolute;
  top: 1.25rem;
  bottom: 1.25rem;
  left: 1.25rem;
  width: 4px;
  border-radius: 2px;
  background: var(--news-accent);
}

.news-ref .source-card > * {
  margin-top: 0;
  margin-bottom: 0;
}

/* Source logo: small, top left, any shape of logo */
.news-ref .source-card__logo {
  margin: 0 0 0.75rem;
  line-height: 0;
}

.news-ref .source-card__logo img {
  display: block;
  height: 24px !important;
  width: auto !important;
  max-width: 180px;
  object-fit: contain;
  object-position: left center;
}

/* Hide the slot if no logo has been added */
.news-ref .source-card__logo:not(:has(img[src])) {
  display: none;
}

.news-ref .source-card__pub {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--news-accent);
  margin-bottom: 0.4rem;
}

.news-ref .source-card__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

/* Remove theme underlines from both card links */
.news-ref .source-card__title a,
.news-ref .source-card__cta a {
  text-decoration: none !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  background-image: none !important;
  transition: color 0.15s ease;
}

.news-ref .source-card__title a {
  color: inherit;
  font-weight: inherit !important;
  font-size: inherit;
}

.news-ref .source-card__title a:hover,
.news-ref .source-card__title a:focus-visible {
  color: var(--news-accent);
}

.news-ref .source-card__standfirst {
  font-style: italic;
  color: var(--news-text-soft);
  margin-bottom: 1rem;
}

/* Byline + "Read the full article" row */
.news-ref .source-card__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1rem;
}

.news-ref .source-card__footer > * {
  margin: 0;
}

.news-ref .source-card__byline {
  font-size: 0.85rem;
  color: var(--news-text-muted);
  flex: 0 0 100%;
}

/* Links in the byline (e.g. social handles) */
.news-ref .source-card__byline a {
  text-decoration: none !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  background-image: none !important;
  transition: color 0.15s ease;
}

.news-ref .source-card__byline a:hover,
.news-ref .source-card__byline a:focus-visible {
  color: var(--news-accent);
}

/* "Read the full article" sits below the byline, on the right */
.news-ref .source-card__footer > .source-card__cta {
  flex: 0 0 auto;
  margin-left: auto;
  margin-top: 20px;
  margin-bottom: 15px;
}

.news-ref .source-card__cta a {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  background: #dd5903;
  padding: 10px 20px;
  border-radius: 20px;
transition: background-color 0.4s ease, color 0.4s ease;
    -moz-transition: background-color 0.4s ease, color 0.4s ease;
    -o-transition: background-color 0.4s ease, color 0.4s ease;
    -webkit-transition: background-color 0.4s ease, color 0.4s ease;
}

.news-ref .source-card__cta a:hover,
.news-ref .source-card__cta a:focus-visible {
  color: #343a40;
  background: #f1f2f3;
}

/* External-link icon after the CTA */
.news-ref .source-card__cta a::after {
  content: "";
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-left: 0.35em;
  vertical-align: -0.05em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 600px) {
  .news-ref .source-card {
    padding: 1rem 1.1rem 1rem 2.1rem;
  }
  .news-ref .source-card::before {
    top: 1rem;
    bottom: 1rem;
    left: 1rem;
  }
  .news-ref .source-card__title {
    font-size: 20px;
  }
}