/* =========================================================
   STAR News
   Uses global variables from variables.css
   ========================================================= */

/* =========================================================
   1) Stories Listing
   ========================================================= */

/* Hero */


/* Toolbar / Filter */
.stories-toolbar{
  background: var(--card);
  border-bottom: 1px solid var(--border-soft);
  padding: 24px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.stories-toolbar-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.stories-categories-wrapper{
  flex: 1;
  min-width: 0;
}

.stories-categories{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.stories-categories::-webkit-scrollbar{
  display: none;
}

.stories-category-chip{
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: #f8fafb;
  border: 2px solid var(--border-soft);
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all .3s ease;
  cursor: pointer;
}

.stories-category-chip:hover{
  background: #f0f8ff;
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  text-decoration: none;
}

.stories-category-chip.active{
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
}

.stories-toolbar-actions{
  display: flex;
  gap: 16px;
  align-items: center;
}

.stories-search-wrapper{
  position: relative;
  min-width: 250px;
}

.stories-search-input{
  width: 100%;
  padding: 10px 40px 10px 16px;
  border: 2px solid var(--border-soft);
  border-radius: var(--radius-pill);
  font-size: .9375rem;
  transition: all .3s ease;
}

.stories-search-input:focus{
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(1,146,220,.1);
}

.stories-search-icon{
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.stories-sort-wrapper{
  min-width: 180px;
}

.stories-sort-select{
  width: 100%;
  padding: 10px 16px;
  border: 2px solid var(--border-soft);
  border-radius: var(--radius-pill);
  font-size: .9375rem;
  background: var(--card);
  cursor: pointer;
  transition: all .3s ease;
}

.stories-sort-select:focus{
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(1,146,220,.1);
}

.filter-wrap{
  margin: 32px 0 28px;
}

.news-type-filter{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.news-type-filter li{
  margin: 0;
}

.news-type-filter a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  transition: all .25s ease;
}

.news-type-filter a.active{
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(1,146,220,.15);
}

/* Content */
.stories-content{
  padding: 48px 0;
}

.stories-grid{
  margin: 0;
  row-gap: 32px;
}

.stories-grid .col-lg-4,
.stories-grid .col-md-6,
.stories-grid .col-sm-12{
  padding-left: 16px;
  padding-right: 16px;
}

/* Cards */
.stories-card{
  background: var(--card);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-soft);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.stories-card:hover{
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--brand-blue);
}

.stories-card-image{
  position: relative;
  overflow: hidden;
  background: #f2f5f8;
  flex-shrink: 0;
}

.stories-card-normal .stories-card-image,
.stories-card-before-after .stories-card-image{
  aspect-ratio: 16 / 10;
}

.stories-card-normal .stories-card-image img,
.stories-card-before-after .stories-card-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}

.stories-card:hover .stories-card-image img,
.stories-card-before-after:hover .stories-ba-before img,
.stories-card-before-after:hover .stories-ba-after img{
  transform: scale(1.05);
}

.stories-card-badge{
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: .8125rem;
  font-weight: 700;
  color: #fff;
}

.stories-badge-campaign{
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}

.stories-badge-news{
  background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
}

.stories-badge-before-after{
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  color: #2d3748;
}

.stories-card-content{
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.stories-card-before-after .stories-card-content{
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.stories-card-meta{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 12px;
  font-size: .875rem;
  color: var(--muted);
}

.stories-card-date,
.stories-card-location{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.stories-card-meta i{
  color: var(--brand-blue);
  font-size: .8125rem;
  flex-shrink: 0;
}

.stories-card-title{
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 12px;
  line-height: 1.4;
}

.stories-card-title a{
  color: inherit;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .3s ease;
}

.stories-card-title a:hover{
  color: var(--brand-blue);
}

.stories-card-snippet{
  font-size: .9375rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 20px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stories-card-footer{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #f1f3f5;
}

.stories-card-cta{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-blue);
  font-weight: 600;
  font-size: .9375rem;
  text-decoration: none;
  transition: gap .2s ease, color .2s ease;
}

.stories-card-cta:hover{
  color: var(--brand-blue-dark);
  gap: 10px;
  text-decoration: none;
}

.stories-card-cta i{
  font-size: .8125rem;
  transition: transform .3s ease;
}

.stories-card-cta:hover i{
  transform: translateX(-4px);
}

.stories-card-share{
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  background: var(--card);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .3s ease;
}

.stories-card-share:hover{
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
}

.stories-card-share:focus{
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

/* Before / After */
.stories-ba-split{
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  height: 100%;
}

.stories-ba-before,
.stories-ba-after{
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.stories-ba-after{
  /* border-left: 2px solid rgba(255,255,255,.75); */
}

.stories-ba-before img,
.stories-ba-after img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.stories-ba-label{
  display: none;
}

/* Empty / Pagination */
.pets-empty-icon{
  font-size: 34px;
  opacity: .7;
}

.stories-pagination{
  margin-top: 48px;
  margin-bottom: 20px;
}

.stories-load-more{
  padding: 14px 40px;
  font-size: 1rem;
  font-weight: 600;
}

.stories-load-more:disabled{
  opacity: .6;
  cursor: not-allowed;
}

.stories-load-more .fa-spinner{
  animation: spin 1s linear infinite;
}

@keyframes spin{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}

/* Focus visible */
.stories-category-chip:focus-visible,
.stories-search-input:focus-visible,
.stories-sort-select:focus-visible,
.stories-card-cta:focus-visible{
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

/* =========================================================
   2) News Details
   ========================================================= */

/* Hero */
.news-hero-section{
  position: relative;
}

.news-hero-cover{
  position: relative;
  min-height: 460px;
  overflow: hidden;
  background: var(--text-dark);
}

.news-hero-image{
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
}

.news-hero-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15,23,42,.12) 0%,
    rgba(15,23,42,.36) 42%,
    rgba(15,23,42,.82) 100%
  );
  z-index: 1;
}

.news-hero-content{
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  padding: 32px 0;
  color: #fff;
}

.news-hero-content-inner{
  max-width: 820px;
}

.news-hero-title{
  color: #fff;
  font-weight: 1000;
  font-size: 2.3rem;
  line-height: 1.3;
  margin: 0 0 14px;
}

.news-hero-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 18px;
}

.news-meta-item{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.95);
  font-size: 14px;
  font-weight: 700;
}

/* .news-meta-item i{
  color: var(--brand-gold);
} */

.news-hero-actions{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.news-hero-badge{
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(0,0,0,.18);
}

.news-hero-badge[data-type="campaign"]{
  background: #dc2626;
}

.news-hero-badge[data-type="before_after"]{
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  color: #000;
}

.news-hero-badge[data-type="news"]{
  background: var(--brand-blue);
}

/* Before / After hero */
.before-after-hero{
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  height: 100%;
}

.before-after-col{
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.before-after-col .news-hero-image{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Summary / Content */
.news-summary-card,
.news-sidebar-card{
  background: var(--card);
}

.news-summary-text{
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #212529;
}

.news-summary-list{
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-summary-list li{
  padding: 8px 0 8px 24px;
  position: relative;
  color: #212529;
}

.news-summary-list li::before{
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-blue);
  font-weight: bold;
}

.news-content-blocks{
  margin-top: 32px;
}

.content-block{
  margin-bottom: 24px;
}

.content-block-heading{
  margin-top: 32px;
  margin-bottom: 16px;
}

.content-block-heading:first-child{
  margin-top: 0;
}

.block-title{
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 0;
}

.block-paragraph{
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #212529;
  margin-bottom: 0;
}

.block-quote{
  border-right: 4px solid var(--brand-blue);
  padding: 20px 24px;
  background: #f1f3f5;
  border-radius: var(--radius-sm);
  margin: 24px 0;
  position: relative;
}

.block-quote i{
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 2rem;
  color: var(--brand-blue);
  opacity: .2;
}

.block-quote p{
  font-size: 1.125rem;
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 12px;
  padding-right: 40px;
}

.block-quote-footer{
  font-size: .875rem;
  color: var(--text-soft);
  margin-top: 8px;
}

.block-list{
  list-style: none;
  padding: 0;
  margin: 0;
}

.block-list li{
  padding: 10px 0 10px 28px;
  position: relative;
  color: #212529;
  line-height: 1.6;
}

.block-list li::before{
  content: "•";
  position: absolute;
  left: 0;
  color: var(--brand-blue);
  font-size: 1.5rem;
  line-height: 1;
}

/* Gallery */
.news-gallery-strip{
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 12px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.news-gallery-strip.is-grid-on-desktop{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: visible;
}

.news-gallery-item{
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: #f3f4f6;
  border: 1px solid var(--border);
  flex: 0 0 240px;
  width: 240px;
  height: 220px;
  padding: 0;
}

.news-gallery-strip.is-grid-on-desktop .news-gallery-item{
  width: 100%;
  flex: auto;
}

.news-gallery-item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}

.news-gallery-item:hover img{
  transform: scale(1.03);
}

.news-gallery-overlay{
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity .25s ease;
}

.news-gallery-overlay i{
  color: #fff;
  font-size: 2rem;
}

.news-gallery-item:hover .news-gallery-overlay{
  opacity: 1;
}

/* Sidebar */
.news-sidebar-item{
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
}

.news-sidebar-item:last-child{
  border-bottom: none;
  padding-bottom: 0;
}

.news-sidebar-card .list-unstyled li{
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
}

.news-sidebar-card .list-unstyled li:last-child{
  border-bottom: none;
}

.news-sidebar-card .list-unstyled a{
  color: #212529;
  transition: color .2s ease;
}

.news-sidebar-card .list-unstyled a:hover{
  color: var(--brand-blue);
}

/* Related */
.news-related-item{
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
}

.news-related-item:last-child{
  border-bottom: none;
  padding-bottom: 0;
}

.news-related-thumb{
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.news-related-item a{
  color: var(--text-dark);
  transition: color .2s ease;
}

.news-related-item a:hover{
  color: var(--brand-blue);
}

.news-related-card{
  transition: transform .3s ease, box-shadow .3s ease;
  border-radius: 15px;
  overflow: hidden;
}

.news-related-card:hover{
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,.1) !important;
}

.news-related-card img{
  height: 180px;
  object-fit: cover;
}

.news-related-card .card-body a{
  font-size: 1.1rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-type-news{
  background: rgba(1,146,220,.10);
  color: var(--brand-blue);
}

.related-type-campaign{
  background: rgba(220,38,38,.10);
  color: #dc2626;
}

.related-type-before_after{
  background: linear-gradient(
    135deg,
    rgba(168,237,234,.30) 0%,
    rgba(254,214,227,.30) 100%
  );
  color: #000;
}

.related-before-after{
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 210px;
  overflow: hidden;
  background: #f3f4f6;
}

.related-before-after-col{
  position: relative;
  overflow: hidden;
}

.related-before-after-col img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.related-before-after-col + .related-before-after-col{
  border-right: 2px solid rgba(255,255,255,.9);
}

/* CTA Banner */
.news-cta-banner{
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
  color: #fff;
}

.news-cta-banner .card-body{
  background: transparent;
}

.news-cta-banner h2{
  color: #fff;
  font-weight: 700;
}

.news-cta-banner .news-cta-text{
  color: #fff;
  opacity: .95;
  line-height: 1.6;
}

.news-cta-banner .btn-style-one{
  background-color: #fff;
  color: var(--brand-blue);
  border-color: #fff;
  font-weight: 700;
}

.news-cta-banner .btn-style-one:hover{
  background-color: rgba(255,255,255,.9);
  color: var(--brand-blue-dark);
  border-color: rgba(255,255,255,.9);
}

.news-cta-banner .news-cta-secondary{
  background: transparent;
  border-color: #fff;
  color: #fff;
  padding: 4px 29px;
  font-size: 14px;
  line-height: 29px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.news-cta-banner .news-cta-secondary:hover{
  background: #fff;
  border-color: #fff;
  color: var(--brand-blue);
}

/* Copy toast */
.copy-toast{
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #28a745;
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  z-index: 9999;
  animation: slideIn .3s ease;
}

@keyframes slideIn{
  from{
    transform: translateX(100%);
    opacity: 0;
  }
  to{
    transform: translateX(0);
    opacity: 1;
  }
}

/* Floating share */
.sticky-share-bar{
  position: fixed;
  top: 50%;
  left: 20px;
  right: auto;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
}

.sticky-share-bar button{
  background-color: #fff;
  border: 2px solid var(--brand-blue);
  color: var(--brand-blue);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,.1);
  transition: all .3s ease-in-out;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
}

.sticky-share-bar button:hover{
  background-color: var(--brand-blue);
  color: #fff;
  transform: translateX(5px);
}

/* Support section */
.news-support-section{
  margin: 18px 0;
}

.support-banner{
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,.18);
}

.support-title{
  color: #fff;
  font-weight: 1000;
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.support-sub{
  color: #fff;
  opacity: .95;
  margin: 0;
  line-height: 1.8;
  font-weight: 700;
  max-width: 680px;
}

.support-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.support-btn{
  border-radius: var(--radius-pill);
  padding: 12px 18px;
  font-weight: 1000;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}

.support-btn:hover{
  transform: translateY(-1px);
  text-decoration: none;
}

.support-btn-primary{
  background: #fff;
  color: var(--brand-blue);
  box-shadow: 0 12px 26px rgba(0,0,0,.14);
}

.support-btn-primary:hover{
  background: rgba(255,255,255,.92);
  color: var(--brand-blue-dark);
}

.support-btn-outline{
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.9);
}

.support-btn-outline:hover{
  background: #fff;
  color: var(--brand-blue);
  border-color: #fff;
}

/* =========================================================
   3) Responsive
   ========================================================= */
@media (max-width: 991px){
  .stories-content{
    padding: 32px 0;
  }

  .stories-toolbar{
    padding: 20px 0;
  }

  .stories-toolbar-row{
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .stories-categories-wrapper{
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .stories-categories{
    padding-bottom: 4px;
  }

  .stories-toolbar-actions{
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }

  .stories-search-wrapper,
  .stories-sort-wrapper{
    width: 100%;
  }

  .stories-card-content{
    padding: 20px;
  }

  .stories-card-title{
    font-size: 1.125rem;
  }

  .inner-hero{
    padding: 72px 0 64px;
  }

  .inner-hero__title{
    font-size: 32px;
  }

  .news-hero-cover,
  .news-hero-image{
    height: 400px;
    min-height: 400px;
  }

  .news-hero-title{
    font-size: 1.8rem;
  }

  .news-hero-cover.is-before-after{
    height: 360px;
    min-height: 360px;
  }

  .news-gallery-strip.is-grid-on-desktop{
    display: flex;
    overflow-x: auto;
  }
}

@media (max-width: 768px){
  .sticky-share-bar{
    left: 15px;
    bottom: 100px;
    top: auto;
    transform: none;
    flex-direction: column;
    gap: 8px;
  }

  .sticky-share-bar button{
    width: 45px;
    height: 45px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .btn-text{
    display: none;
  }
}

@media (max-width: 767px){
  .stories-content{
    padding: 32px 0;
  }

  .stories-toolbar{
    padding: 16px 0;
  }

  .stories-category-chip{
    padding: 8px 16px;
    font-size: .875rem;
  }

  .stories-grid{
    row-gap: 24px;
  }

  .stories-grid .col-lg-4,
  .stories-grid .col-md-6,
  .stories-grid .col-sm-12{
    padding-left: 12px;
    padding-right: 12px;
  }

  .stories-card-content{
    padding: 16px;
  }

  .stories-card-title{
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .stories-card-snippet{
    font-size: .875rem;
    margin-bottom: 16px;
  }

  .stories-card-meta{
    font-size: .8125rem;
    gap: 12px;
    margin-bottom: 10px;
  }

  .stories-card-footer{
    padding-top: 12px;
  }

  .stories-card-cta{
    font-size: .875rem;
  }

  .stories-card-share{
    width: 32px;
    height: 32px;
    font-size: .875rem;
  }

  .stories-card-badge{
    top: 12px;
    right: 12px;
    padding: 5px 12px;
    font-size: .75rem;
  }

  .inner-hero{
    padding: 56px 0 50px;
  }

  .inner-hero__title{
    font-size: 26px;
    line-height: 1.4;
  }

  .inner-hero__description{
    font-size: 14px;
  }

  .stories-card-meta{
    font-size: 12px;
  }

  .news-hero-cover,
  .news-hero-image{
    height: 320px;
    min-height: 320px;
  }

  .news-hero-content{
    padding: 20px 0;
  }

  .news-hero-title{
    font-size: 1.12rem;
    line-height: 1.45;
    margin-bottom: 10px;
    max-width: 82%;
  }

  .news-hero-badge{
    top: 14px;
    right: 14px;
    min-height: 32px;
    padding: 0 12px;
    font-size: 11px;
  }

  .news-hero-meta{
    gap: 8px 12px;
    margin-bottom: 0;
  }

  .news-meta-item{
    font-size: 12px;
    gap: 6px;
  }

  .news-hero-meta .news-meta-item:last-child{
    display: none;
  }

  .news-hero-actions{
    display: none;
  }

  .news-gallery-item{
    flex: 0 0 190px;
    width: 190px;
    height: 170px;
  }

  .support-banner{
    flex-direction: column;
    align-items: flex-start;
  }

  .support-actions{
    width: 100%;
  }

  .support-btn{
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 575.98px){
  .news-hero-cover,
  .news-hero-image{
    height: 300px;
    min-height: 300px;
  }

  .news-hero-title{
    font-size: 1.02rem;
    line-height: 1.42;
    max-width: 80%;
  }

  .news-meta-item{
    font-size: 11px;
  }

  .news-hero-cover.is-before-after{
    height: 250px;
    min-height: 250px;
  }

  .related-before-after{
    height: 190px;
  }
}

/* 1. تحديد ارتفاع ثابت للحاوية الأساسية */
.news-hero-cover {
    height: 550px; /* يمكنك تغيير الرقم حسب الرغبة، مثلاً 500px أو 600px */
    overflow: hidden;
    width: 100%;
}

/* 2. ضبط الحاوية المنقسمة في حالة "قبل وبعد" */
.before-after-hero {
    display: flex;
    height: 100%; /* تأخذ كامل الـ 550px */
    width: 100%;
}

.before-after-col {
    flex: 1; /* تجعل العمودين متساويين في العرض */
    height: 100%;
    position: relative;
    overflow: hidden;
    border-right: 1px solid rgba(255,255,255,0.2); /* فاصل بسيط بين الصورتين */
}

/* 3. التنسيق السحري للصور لملء المساحة دون تمدد */
.news-hero-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover; /* هذا السطر يمنع الصورة من أن "تمط" ويقصها بشكل ذكي */
    object-position: center; /* لضمان تركيز القص على منتصف الصورة */
}

/* 4. لمسة إضافية للموبايل لتقليل الارتفاع */
@media (max-width: 768px) {
    .news-hero-cover {
        height: 350px; /* ارتفاع أصغر ليتناسب مع شاشات الجوال */
    }
    
    .news-hero-title {
        font-size: 24px; /* تصغير الخط قليلاً ليتناسب مع المساحة */
    }
}