/* ═══════════════════════════════════════════
   NIEUWS / CASES - JT Trading Agency
   Vervangt oude MX_NEWS styling
═══════════════════════════════════════════ */
/* =========================================================
   BLOG - BLOCK VIEW HOMEPAGE
   EXACTE OPZET:
   links uitgelicht / rechts overige berichten
========================================================= */

#mx_news_block {
    width: 100%;
    margin: 0;
}


/* =========================================================
   HOOFDLAYOUT
========================================================= */

.mx_news_block_layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    align-items: stretch;
}


/* =========================================================
   LINKS - UITGELICHT BERICHT
========================================================= */

.mx_news_block_left {
    min-width: 0;
}


/* Complete kaart */
.mx_news_block_featured {
    display: flex;
    flex-direction: column;

    width: 100%;
    height: 100%;

    overflow: hidden;

    background: #fff;

    border: 1px solid var(--border-color);
    border-radius: 20px;

    box-shadow: var(--shadow-sm);

    transition: var(--transition);
}


/* Geen sterke hoverbeweging */
.mx_news_block_featured:hover {
    box-shadow: var(--shadow-md);
}


/* =========================================================
   FOTO
========================================================= */

.mx_news_block_featured_image {
    display: block;

    width: 100%;
    height: 255px;

    overflow: hidden;

    margin: 0;
    padding: 0;

    background: #f6f6f6;

    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}


/* Foto zelf */
.mx_news_block_featured_image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;

    transition: transform .4s ease;
}


.mx_news_block_featured:hover
.mx_news_block_featured_image img {
    transform: scale(1.02);
}


/* Placeholder */
.mx_news_block_image_placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f6f6f6;

    color: var(--secondary-color);

    font-size: .75rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}


/* =========================================================
   ONDERKANT UITGELICHT
   exact 50 / 50
========================================================= */

.mx_news_block_featured_bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;

    flex: 1;
    min-height: 200px;
}


/* =========================================================
   DONKERE LINKERHELFT
========================================================= */

.mx_news_block_featured_left {
    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 32px;

    background: var(--dark-color);
    color: #fff;
}


/* Subtiel cirkelaccent */
.mx_news_block_featured_left::before {
    content: "";

    position: absolute;

    width: 280px;
    height: 280px;

    right: -105px;
    bottom: -165px;

    border: 1px solid rgba(255, 144, 39, .12);
    border-radius: 50%;

    pointer-events: none;
}


/* Uitgelicht */
.mx_news_block_featured_label {
    position: relative;
    z-index: 1;

    display: block;

    margin: 0 0 30px;

    color: var(--primary-color);

    font-size: .70rem;
    font-weight: 700;
    line-height: 1;

    letter-spacing: .05em;
    text-transform: uppercase;
}


/* Titel */
.mx_news_block_featured_left h3 {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;

    margin: 0 0 10px;

    font-family: "Montserrat", sans-serif;

    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
}


.mx_news_block_featured_left h3 > a {
    color: #fff;

    text-decoration: none;
}


.mx_news_block_featured_left h3 > a:hover {
    color: var(--primary-color);
}


/* Datum */
.mx_news_block_featured_left time {
    position: relative;
    z-index: 1;

    color: rgba(255,255,255,.55);

    font-size: .75rem;
    line-height: 1.4;
}


/* =========================================================
   WITTE RECHTERHELFT
========================================================= */

.mx_news_block_featured_right {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 30px 32px;

    background: #fff;
}


/* Intro */
.mx_news_block_featured_right p {
    margin: 0 0 12px;

    color: var(--text-color);

    font-size: .9rem;
    font-weight: 400;
    line-height: 1.65;
}


/* Leeslink */
.mx_news_block_readmore {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    width: fit-content;

    color: var(--primary-color);

    font-size: .76rem;
    font-weight: 700;
    line-height: 1.4;

    text-decoration: none;

    transition: var(--transition);
}


.mx_news_block_readmore:hover {
    color: var(--primary-dark);
    gap: 11px;
}


/* =========================================================
   RECHTS - OVERIGE BLOGBERICHTEN
========================================================= */

.mx_news_block_right {
    min-width: 0;

    height: 100%;

    padding: 34px;

    background: #f8f9fa;

    border: 1px solid var(--border-color);
    border-radius: 20px;

    box-shadow: var(--shadow-sm);
}


/* Bericht */
.mx_news_block_item {
    display: block;

    margin: 0 0 24px;
    padding: 0 0 24px;

    background: transparent;

    border: 0;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;

    box-shadow: none;
}


/* Laatste bericht */
.mx_news_block_item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;

    border-bottom: 0;
}


/* Geen kaart-hover */
.mx_news_block_item:hover {
    transform: none;
    box-shadow: none;
}


/* Content */
.mx_news_block_content {
    display: block;
    padding: 0;
}


/* Titel */
.mx_news_block_content h3 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    margin: 0 0 8px;

    font-family: "Montserrat", sans-serif;

    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
}


.mx_news_block_content h3 > a {
    color: var(--primary-color);

    text-decoration: none;
}


.mx_news_block_content h3 > a:hover {
    color: var(--primary-dark);
}


/* Datum */
.mx_news_block_content em {
    display: block;

    margin: 0 0 10px;

    color: var(--secondary-color);

    font-size: .76rem;
    font-style: italic;
    line-height: 1.4;
}


/* Intro */
.mx_news_block_content p {
    margin: 0;

    color: var(--text-color);

    font-size: .9rem;
    font-weight: 400;
    line-height: 1.6;
}


/* =========================================================
   LEES MEER KNOP RECHTS
========================================================= */

.mx_news_block_small_readmore {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-top: 8px;
    padding: 7px 11px;

    background: var(--dark-color);
    color: #fff !important;

    border-radius: 3px;

    font-size: .75rem;
    font-weight: 500;
    line-height: 1.3;

    text-decoration: none !important;

    transition: var(--transition);
}


.mx_news_block_small_readmore:hover {
    background: var(--primary-color);
    color: #fff !important;
}


/* =========================================================
   CMS BEHEERKNOPPEN
   BLIJVEN ZICHTBAAR
========================================================= */

#mx_news_block .mx_buttons-icons {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    margin: 0 0 0 4px;
    padding: 0;

    vertical-align: middle;
}


#mx_news_block .mx_buttons-icons a {
    flex: 0 0 auto;
    margin: 0;
}


/* =========================================================
   EVENTUELE GLOBALE IMG-STYLING UITSCHAKELEN
========================================================= */

#mx_news_block figure,
#mx_news_block figure img,
#mx_news_block .mx_news_block_featured_image,
#mx_news_block .mx_news_block_featured_image img {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {

    .mx_news_block_layout {
        grid-template-columns: 1fr;
    }

    .mx_news_block_featured {
        height: auto;
    }
}


@media (max-width: 700px) {

    .mx_news_block_featured_bottom {
        grid-template-columns: 1fr;
    }

    .mx_news_block_featured_image {
        height: 240px;
    }

    .mx_news_block_featured_left,
    .mx_news_block_featured_right,
    .mx_news_block_right {
        padding: 24px;
    }
}


@media (max-width: 480px) {

    .mx_news_block_featured,
    .mx_news_block_right {
        border-radius: 16px;
    }

    .mx_news_block_featured_image {
        height: 210px;
    }
}
/* =========================================================
   BLOGTITELS
   Wel klikbaar, maar GEEN knopvormgeving
========================================================= */

#mx_news_block .mx_news_block_content h3 > a {
    display: inline !important;

    width: auto !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
    background-color: transparent !important;

    border: 0 !important;
    border-radius: 0 !important;

    box-shadow: none !important;

    color: var(--primary-color) !important;

    font-family: "Montserrat", sans-serif;
    font-size: inherit;
    font-weight: 700;
    line-height: inherit;

    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;

    transform: none !important;
}


/* Hover: alleen iets donkerder oranje */
#mx_news_block .mx_news_block_content h3 > a:hover {
    background: transparent !important;
    background-color: transparent !important;

    color: var(--primary-dark) !important;

    border: 0 !important;
    box-shadow: none !important;

    text-decoration: none !important;
    transform: none !important;
}


/* Lees meer blijft WEL een knop */
#mx_news_block .mx_news_block_small_readmore {
    display: inline-flex;

    width: auto;
    padding: 7px 11px;

    background: var(--dark-color);
    color: #fff !important;

    border-radius: 3px;

    font-size: .75rem;
    font-weight: 500;
    text-decoration: none !important;
}


/* Hover lees meer */
#mx_news_block .mx_news_block_small_readmore:hover {
    background: var(--primary-color);
    color: #fff !important;
}

/* =========================
   CATEGORY VIEW - TWIG
========================= */
#mx_news_category {
  margin-top: 60px;
}

.nieuws-section {
  background: #fff;
}

.nieuws-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.nieuws-meer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  letter-spacing: .03em;
  white-space: nowrap;
  transition: var(--transition);
}

.nieuws-meer:hover {
  gap: 10px;
  color: var(--primary-dark);
}

.nieuws-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.nieuws-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.nieuws-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.nieuws-card-top {
  height: 4px;
  background: var(--primary-color);
}

.nieuws-card-foto {
  width: 100%;
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.nieuws-card-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.nieuws-card:hover .nieuws-card-foto img {
  transform: scale(1.04);
}

.nieuws-card-foto-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6f6f6;
}

.nieuws-card-foto-placeholder span {
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--secondary-color);
}

.nieuws-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 28px 28px;
}

.nieuws-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.nieuws-datum {
  font-size: .78rem;
  color: var(--secondary-color);
  letter-spacing: .04em;
}

.nieuws-categorie {
  display: inline-block;
  padding: 3px 9px;
  background: rgba(255, 144, 39, .12);
  color: var(--primary-color);
  border-radius: 3px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.nieuws-card h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--dark-color);
  margin: 0 0 12px;
}

.nieuws-card p {
  flex: 1;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-color);
  margin: 0 0 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nieuws-lees {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--primary-color);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .03em;
  transition: gap .2s ease;
}

.nieuws-card:hover .nieuws-lees {
  gap: 10px;
}

/* =========================
   UITGELICHT NIEUWSBERICHT
========================= */
.nieuws-uitgelicht {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.nieuws-uitgelicht:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.nieuws-uitgelicht-foto {
  grid-column: span 2;
  height: 360px;
  overflow: hidden;
  position: relative;
}

.nieuws-uitgelicht-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.nieuws-uitgelicht:hover .nieuws-uitgelicht-foto img {
  transform: scale(1.03);
}

.nieuws-uitgelicht-foto-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-color);
}

.nieuws-uitgelicht-foto-placeholder span {
  color: rgba(255,255,255,.45);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nieuws-uitgelicht-links {
  background: var(--dark-color);
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.nieuws-uitgelicht-links::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 1px solid rgba(255, 144, 39, .10);
  top: -160px;
  right: -120px;
}

.uitgelicht-label {
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
  color: var(--primary-color);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.uitgelicht-titel {
  position: relative;
  z-index: 1;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 16px;
}

.uitgelicht-datum {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,.55);
  font-size: .8rem;
  letter-spacing: .04em;
}

.nieuws-uitgelicht-rechts {
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.uitgelicht-categorie {
  display: inline-block;
  margin-bottom: 20px;
  padding: 4px 10px;
  background: rgba(255, 144, 39, .12);
  color: var(--primary-color);
  border-radius: 3px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.uitgelicht-tekst {
  flex: 1;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-color);
  margin-bottom: 24px;
}

.uitgelicht-lees {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .03em;
  transition: gap .2s ease;
}

.nieuws-uitgelicht:hover .uitgelicht-lees {
  gap: 13px;
}

/* =========================
   OUDE CATEGORY CLASSES
========================= */
.mx_news_category_item {
  display: grid;
  grid-template-columns: 120px 1fr 40%;
  gap: 1.5rem;
  margin-bottom: 40px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}

.mx_news_category_item:hover {
  transform: translateY(-6px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-lg);
}

.mx_news_category_date {
  background: var(--dark-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px 15px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
}

.mx_news_category_content {
  background: #fff;
  padding: 28px 10px;
}

.mx_news_category_content h3 {
  font-family: "Montserrat", sans-serif;
  color: var(--primary-color);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.mx_news_category_content p {
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 15px;
}

.mx_news_category_content em {
  display: block;
  margin-bottom: 10px;
  color: var(--secondary-color);
  font-size: .85rem;
}

.mx_news_category_image {
  min-height: 230px;
  background-size: cover;
  background-position: center;
}

.mx_news_category_footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  background: var(--dark-color);
  color: #fff;
  border-radius: 4px;
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.mx_news_category_footer a:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
}

/* =========================
   ITEM / DETAIL VIEW
========================= */
#mx_news_item {
  max-width: 900px;
  margin: 0 auto;
}

#mx_news_item img {
  max-width: 100%;
  height: auto;
}

#mx_news_item .mx_news_item_main_image {
  width: 100%;
  margin: 0 0 2rem;
  float: none;
}

#mx_news_item .mx_news_item_main_image img {
  width: 100% !important;
  display: block;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

#mx_news_item h2,
#mx_news_item h3,
#mx_news_item h4 {
  font-family: "Montserrat", sans-serif;
  color: var(--dark-color);
}

#mx_news_item h2::after {
  content: "";
  display: block;
  width: 55px;
  height: 3px;
  margin-top: 12px;
  background: var(--primary-color);
}

#mx_news_item p {
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.75;
}

#mx_news_item .addthis_toolbox {
  margin: 3rem 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.mx_news_item_images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.mx_news_item_image {
  width: auto;
  margin: 0;
  float: none;
  display: block;
}

.mx_news_item_image a {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
}

.mx_news_item_image img {
  width: 100%;
  display: block;
  border-radius: 12px;
  transition: transform .3s ease;
}

.mx_news_item_image:hover img {
  transform: scale(1.04);
}

.mx_news_item_image span {
  display: block;
  margin-top: .5rem;
  color: var(--secondary-color);
  font-size: .85rem;
  text-align: center;
}

.nieuws-detail-content {
  margin-top: 2rem;
}

.nieuws-detail-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.nieuws-terug {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.nieuws-terug:hover {
  gap: 12px;
  color: var(--primary-dark);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 992px) {
  .nieuws-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nieuws-uitgelicht {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  .mx_news_category_item {
    grid-template-columns: 100px 1fr;
  }

  .mx_news_category_image {
    grid-column: 1 / -1;
    min-height: 280px;
  }
}

@media (max-width: 768px) {
  #mx_news_block {
    padding: 24px;
    border-radius: 16px;
  }

  .nieuws-grid {
    grid-template-columns: 1fr;
  }

  .nieuws-uitgelicht {
    grid-column: 1;
    grid-template-columns: 1fr;
  }

  .nieuws-uitgelicht-foto {
    grid-column: 1;
    height: 280px;
  }

  .nieuws-uitgelicht-links,
  .nieuws-uitgelicht-rechts {
    padding: 30px;
  }

  .nieuws-card-foto {
    height: 240px;
  }

  #mx_news_item {
    max-width: 100%;
  }

  .mx_news_item_images {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .mx_news_category_item {
    grid-template-columns: 1fr;
  }

  .mx_news_category_date {
    justify-content: flex-start;
    padding: 15px 20px;
  }

  .mx_news_category_content {
    padding: 22px;
  }

  .mx_news_category_image {
    min-height: 220px;
  }
}

@media (max-width: 480px) {
  #mx_news_block {
    padding: 20px;
  }

  .mx_news_block_item {
    padding-bottom: 18px;
    margin-bottom: 18px;
  }

  .nieuws-card-body {
    padding: 22px;
  }

  .nieuws-uitgelicht-links,
  .nieuws-uitgelicht-rechts {
    padding: 24px;
  }

  .nieuws-uitgelicht-foto {
    height: 220px;
  }

  .mx_news_item_images {
    grid-template-columns: 1fr;
  }
}
