/* ============================================================================
   TCV4 OVERRIDES · isolated refinements (added later, easy to migrate)
   All rules here are additive overrides. Nothing in the original style.css
   was modified. Remove this single <link> to fully revert these tweaks.
   ============================================================================ */

/* (#1) Header: solid aubergine (slide color) from the very start so the hero
   center divider line never shows through/over the header bar. */
.threds-header {
  background-color: #4a3148 !important;
}

/* (#3) Story section masked media: video shown through the empty mask cutout.
   Mirrors the existing .video-text-mask-container technique. */
.main-img-wrapper.tcv4-mask-media {
  position: relative;
  overflow: hidden;
}

.main-img-wrapper.tcv4-mask-media .tcv4-mask-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  border: 4px solid #d6d4ca;
}

.main-img-wrapper.tcv4-mask-media .tcv4-mask-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* (#5) Domains section: clickable items swap a representative background image.
   The image is faded in behind the existing dark overlay for readability. */
.domains-section {
  position: relative;
}

.domains-section .tcv4-domains-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.8s ease, background-image 0.4s ease;
  pointer-events: none;
}

.domains-section .tcv4-domains-bg.is-active {
  opacity: 0.45;
}

/* keep the original overlay + content above the new background layer */
.domains-section .overlaydomains,
.domains-section .header-text,
.domains-section .containerdomains {
  position: relative;
  z-index: 1;
}

/* (#7) Achievements/stats section hidden (markup kept for later migration). */
#achievements.tcv4-hidden {
  display: none !important;
}

/* (#8) Partner logos: drop the baked white background so logos sit transparent
   on the section. multiply blends pure-white away on the light backdrop. */
.partner-card {
  background: #e8e6df !important;
  box-shadow: none !important;
}

.partner-card img {
  mix-blend-mode: multiply;
}

/* (#9) Newsletter block visually joins "أخبارنا": trim the gap above it while
   the news section keeps its outer top/bottom padding. */
.threds-news .news-footer {
  padding-top: 0;
  margin-top: 0;
  margin-bottom: 0;
}

.threds-news__slider-wrap {
  margin-bottom: 24px;
}

/* (#10) Wide container: 90% width on desktop for header, projects, partners,
   footer. Overrides Bootstrap's fixed .container max-width. */
@media (min-width: 992px) {
  .container.tcv4-container-wide {
    max-width: 90% !important;
    width: 90% !important;
  }

  .main-img-wrapper.tcv4-mask-media .tcv4-mask-video {

    border: 2px solid #d6d4ca;
  }
}

/* (#11) Footer: 20px base font + links laid out in two columns. */
.threds-footer,
.threds-footer__desc,
.threds-footer__links a,
.threds-footer__copyright p,
.contact-box__value,
.contact-box__label {
  font-size: 20px !important;
}

.threds-footer__links ul {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 12px 40px;
  justify-content: start;
  text-align: right;
}

.threds-footer__links {
  text-align: right;
}

/* (#12) News cards: text-shadow for legibility over bright imagery. */
.news-card__title,
.news-card__date {
  text-shadow: 0 0px 1px rgba(0, 0, 0, 0.5);
}

.news-card__content .tag {
  text-shadow: 0 0px 1px rgba(0, 0, 0, 0.5);
}

/* News cards: gradient scrim behind the content (dark at bottom -> transparent
   at top) so the written content stands out. It intensifies on hover. */
.news-card__content {
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.55) 40%,
      rgba(0, 0, 0, 0) 100%);
  transition: background 0.4s ease;
}

.news-card:hover .news-card__content {
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.95) 0%,
      rgba(0, 0, 0, 0.75) 55%,
      rgba(0, 0, 0, 0) 100%);
}

/* News tags: clearer, more polished look + subtle lift on card hover. */
.news-card__tags {
  flex-wrap: wrap;
}

.news-card .tag {
  padding: 7px 16px;
  font-size: 13px;
  letter-spacing: 0.2px;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card .tag--glass {
  background-color: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.news-card:hover .tag {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}