 /* ===== MSB COLOR VARS ===== */
  :root {
    --cam1:#FFBF66;
    --nau1:#540000;
    --msb-red: #D0211C;
    --msb-red-dark: #A51815;
    --msb-orange: #FFBF66;
    --msb-orange-light: rgba(200,130,0,0.3);
    --msb-gold: #F5A623;
    --msb-gold-text: #FFD369;
    --msb-white: #FFFFFF;
    --msb-text-light: rgba(255,255,255,0.85);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
  }
@media (min-width: 768px) {
  .mobile { display: none !important; }
}
@media (max-width: 767px) {
   .mobile {
        display: block !important;
    }
    .desktop {    display: none !important;    }   
}
@font-face {
  font-family: 'SVN-GohamRounded';
  font-style: normal;
  font-weight: 700;
  font-display: auto;
  src: url('/wp-content/uploads/2026/06/SVN-GothamRoundedBold.ttf') format('truetype');
}
.transition{-webkit-transition:all 0.3s;transition:all 0.3s;}
.relative{ position:relative; }
.font_rounded{ font-family: 'SVN-GohamRounded';}
  /* ===== SECTION WRAPPER ===== */
  .mfest-section {
    position: relative;
    padding-top:66px;
    font-size: 16px;
    line-height: 24px;
    background: url(https://35nam.msb.com.vn/wp-content/uploads/2026/05/M-Legacy_background.jpg);
    overflow: hidden;
    color: var(--msb-white);
  }

.text-white{ color:#fff }
.wr-cd{ text-align:left; }
.mw-635{ max-width:635px; }
.w-100{ width:100%; }
.fs25{ font-size:25px; }
.d-flex{ display:flex; }


  /* Texture overlay */
  .mfest-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      radial-gradient(ellipse 60% 40% at 50% 100%, rgba(180,40,0,0.5) 0%, transparent 70%),
      radial-gradient(ellipse 80% 50% at 20% 50%, rgba(120,0,0,0.3) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
  }

  .mfest-inner {
    position: relative;
    padding: 0 10px;
    z-index: 1;
    max-width: 1460px;
    margin: 0 auto;
    --padding: 48px 40px 56px;
    display: grid;
    -grid-template-columns: 340px 1fr 280px;
    grid-template-rows: auto auto;
    gap: 0 32px;
  }

.node{     background: linear-gradient(to right, #EC9201, #F2672B);
    padding:5px 10px;
    border-radius: 4px;
    color: #fff;
    width: 140px;
    text-align: center;
    position: absolute;
    font-size: 14px;
    top: -15px;
    left: 50%;
    transform: translateX(-70px); }
  /* ===== LEFT COLUMN ===== */
  .mfest-left {
    margin-top: 15%;
    grid-column: 1;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .mfest-hero-text { width:115%; margin-bottom:50px; }

  .mfest-title {
    margin-bottom: 6px;
  }

  .mfest-subtitle {
    font-size: 28px;
    font-weight: 700;
    color: var(--msb-white);
    margin-bottom: 14px;
    line-height: 1.2;
  }

  .mfest-desc {
    color: var(--msb-text-light);
    margin-bottom: 20px;
    font-weight: 500;
  }

  .mfest-cta {
    display: inline-block;
    background: linear-gradient( to right, #ED6E3B 0, #FFBF66 50%, #ED6E3B 100%) #ED6E3B;   
    color: var(--msb-white);
/*    font-size: 13px;*/
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 12px 42px;
    border-radius: 30px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    width: fit-content;
  }
  .mfest-cta:hover {
    background: transparent;
    border:1px solid var(--msb-white);
    color: var(--msb-white);
    text-decoration: none;
  }

  /* Activities List */
  .mfest-activities {
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 20px 10px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.15);
  }

  .mfest-activities-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--msb-white);
    margin-bottom: 26px;
  }

  .mfest-activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
  }
  .mfest-activity-item:last-child { border-bottom: none; padding-bottom: 0; }
  .mfest-activity-item:first-of-type { padding-top: 0; }

  .mf-wrap1{ border:2px solid var(--msb-orange-light);  border-radius: 8px; background: var(--nau1); padding: 8px; display: flex; width: 100%;}

 .mfest-activity-item {

  cursor: pointer;
  display: flex;
  align-items: stretch; /* thay vì center */
  gap: 0; /* bỏ gap, để num tự sát cạnh */
  padding: 0;
 
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}
.mfest-activity-item:last-child { margin-bottom: 0; border-bottom: none; }

.mfest-activity-num {
  position: relative;
  width: 26px;
  min-height: 100%;
  margin-right: 8px;
  
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: stretch; /* full height */
  transition: background 0.2s;
  padding: 12px 0;
}
.mfest-activity-num:before{ content:''; background:#EC9201; position:absolute; top:50%; left:0; width:26px; height:26px; transform: translateY(-13px); border-radius:50%; z-index:-1; -webkit-transition:all 0.3s;transition:all 0.3s; }

.mfest-activity-item:hover .mfest-activity-num:before{  background:var(--nau1); top:0%;   height:100%; transform: translateY(0px); border-radius:50px;}



.mfest-activity-item:hover .mf-wrap1 {
  background: var(--msb-orange-light); 
}

.mfest-activity-num img {
  width: 13px; 
  display: block;
}
.mfest-activity-img {
    width: 100px;
    height: 100px;
    margin-right: 6px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: rgba(255,255,255,0.5);
    overflow: hidden;
  }
  .mfest-activity-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .mfest-activity-info {}
  .mfest-activity-region {
    font-size: 12px;
    font-weight: 700;
    color: var(--msb-white);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 3px;
  }
  .mfest-activity-date {
    font-size: 11.5px;
/*    color: rgba(255,255,255,0.7);*/
    line-height: 1.5;
  }
  .mfest-activity-date span { display: block; }

  /* ===== CENTER TOP: Logo shape + countdown label ===== */
  .mfest-center-top {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  /* M logo heart shape */
  .mfest-logo-shape {
    position: relative;
    flex-shrink: 0;
  }
  .mfest-logo-shape img{ max-width: 570px; }

  .mfest-countdown-label {
    font-size: 27px;
  }

  /* ===== COUNTDOWN ===== */
  .mfest-countdown {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 4px;
  }

  .mfest-cd-block {
    background: rgba(255,255,255,0.13);
    border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: var(--radius-md);
    padding: 14px 20px 10px;
    text-align: center;
    min-width: 80px;
    backdrop-filter: blur(4px);
  }

  .mfest-cd-num {
    font-size: 42px;
    font-weight: 800;
    color: var(--msb-white);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -1px;
    display: block;
    font-family: 'SVN-GohamRounded', Arial, monospace;
  }

  .mfest-cd-label {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.5px;
    margin-top: 6px;
    display: block;
  }

  /* ===== CENTER BOTTOM: Detail card ===== */
  .mfest-center-bottom {
    grid-column: 2;
    grid-row: 2;
    margin-top: 20px;
  }

  .mfest-detail-card {
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 22px 26px;
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
  }

  .mfest-detail-card-title {
/*    font-size: 19px;*/
    font-weight: 800;
    color: var(--msb-gold-text);
    margin-bottom: 10px;
  }

  .mfest-detail-desc {
    font-size: 13px;
    line-height: 1.65;
    color: var(--msb-text-light);
    margin-bottom: 16px;
    max-width: 300px;
  }

  /* Timeline bar */
  .mfest-timeline {
    margin-top: 12px;
  }

  .mfest-timeline-bar {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 10px;
    position: relative;
  }

  .mfest-tl-segment {
    flex: 1;
    position: relative;
  }

  .mfest-tl-time {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--msb-white);
    margin-bottom: 4px;
  }

  .mfest-tl-track {
    height: 4px;
    background: rgba(255,255,255,0.25);
    position: relative;
    margin-bottom: 8px;
  }

  .mfest-tl-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--msb-gold);
    position: absolute;
    right: -5px;
    top: -3px;
    z-index: 1;
  }

  .mfest-tl-label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--msb-white);
    margin-bottom: 4px;
  }

  .mfest-tl-cards {
    display: flex;
    gap: 10px;
    margin-top: 16px;
  }

  .mfest-tl-card {
    flex: 1;
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.5;
  }

  .mfest-tl-card.mo-dau {
    background: rgba(255,255,255,0.12);
    color: var(--msb-white);
    border: 1px solid rgba(255,255,255,0.2);
  }
  .mfest-tl-card.le {
    background: rgba(220,50,50,0.5);
    color: var(--msb-white);
    border: 1px solid rgba(255,100,100,0.3);
  }
  .mfest-tl-card.hoi {
    background: rgba(245,166,35,0.25);
    color: var(--msb-white);
    border: 1px solid rgba(245,166,35,0.4);
  }

  .mfest-detail-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 12px;
    flex-wrap: wrap;
  }

  .mfest-detail-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .mfest-detail-meta-label {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
  }
  .mfest-detail-meta-val {
    font-size: 13px;
    color: var(--msb-white);
    font-weight: 600;
  }

  /* Timeline horizontal */
  .mfest-tl-row {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 6px;
  }
  .mfest-tl-step {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    position: relative;
  }
  .mfest-tl-step-time {
    font-size: 11px;
    font-weight: 700;
    color: var(--msb-gold-text);
    margin-bottom: 2px;
  }
  .mfest-tl-step-line {
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.2);
    position: relative;
    margin-bottom: 4px;
  }
  .mfest-tl-step-arrow {
    position: absolute;
    right: -6px;
    top: -5px;
    font-size: 14px;
    color: var(--msb-gold);
  }
  .mfest-tl-step-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--msb-white);
  }

  /* ===== RIGHT COLUMN: Tiêu điểm ===== */
  .mfest-right {
    margin-top: 40%;
    grid-column: 3;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .mfest-spotlight-title{   position: absolute;
    top: -37px;
    width: 100%;
    text-align: center; }

  .mfest-spotlight-list {
    display: flex;
    flex-direction: column;
    padding: 50px 10px 30px 10px;
    gap: 12px;
    background: rgb(84 0 0 / 60%);
    border:3px solid rgb(255 191 102 / 50%);
    border-radius: 14px;
  }

  .mfest-spotlight-card {
    background: #FFF7E2;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgb(255 191 102 / 50%);
    cursor: pointer;
    transition: background 0.2s;
    padding: 8px;
    color: #000;
  }
 

  .mfest-spotlight-thumb {
    width: 100%;
    height: 120px;   
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
  }
  .mfest-spotlight-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .mfest-spotlight-text {
    padding: 10px 12px;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }

  /* ===== TIMELINE DETAIL (horizontal flow) ===== */
  .mfest-flow {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 16px;
  }

.mfest-flow-step {
  background: rgb(243 187 124 / 40%);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  padding: 30px 10px 10px 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--msb-white);
}
  .mfest-flow-step.step-1 { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); }
  .mfest-flow-step.step-2 { background: rgba(180,30,30,0.45); border: 1px solid rgba(255,100,80,0.3); }
  .mfest-flow-step.step-3 { background: rgba(200,130,0,0.3); border: 1px solid rgba(245,166,35,0.4); }

  /* ===== RESPONSIVE ===== */
  @media (max-width: 1100px) {
    .mfest-inner {
      grid-template-columns: 1fr 1fr;
      grid-template-rows: auto;
      padding: 32px 24px 40px;
    }
    .mfest-left { grid-column: 1; grid-row: 1; }
    .mfest-center-top { grid-column: 2; grid-row: 1; }
    .mfest-center-bottom { grid-column: 1 / 3; grid-row: 2; }
    .mfest-right { grid-column: 1 / 3; grid-row: 3; flex-direction: row; flex-wrap: wrap; }
    .mfest-spotlight-list { flex-direction: row; }
    .mfest-spotlight-card { flex: 1; min-width: 160px; }
  }


/* ===== GLOBAL OVERFLOW FIX ===== */
.mfest-section {
  overflow-x: hidden; /* bỏ dấu - trước overflow */
}

/* ===== MOBILE ===== */
@media (max-width: 680px) {
  .img-mw100{ width:100% }

  /* --- Fix tràn chung --- */
  .mfest-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 16px 16px 32px;
    width: 100%;
    overflow-x: hidden;
  }

  /* --- Tất cả column về 1 --- */
  .mfest-left,
  .mfest-center-top,
  .mfest-center-bottom,
  .mfest-right {
    grid-column: 1 !important;
    grid-row: auto !important;
    width: 100%;
    min-width: 0; /* quan trọng: ngăn grid child tự stretch */
  }

  /* --- Reset margin-top cứng --- */
  .mfest-left  { margin-top: 0; }
  .mfest-right { margin-top: 0; }

  /* --- Hero text không vượt khung --- */
  .mfest-hero-text {
    width: 100% !important;
    margin-bottom: 24px;
  }

  /* --- Tất cả ảnh co theo container --- */
  .mfest-section img:not(.img-tit),
  .mfest-logo-shape img:not(.img-tit),
  .mfest-title img:not(.img-tit) {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* --- Activity item: ảnh nhỏ lại --- */
  .mfest-activity-img {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
  }

  /* --- mw-635 không fix cứng trên mobile --- */
  .mfest-center-bottom.mw-635 {
    max-width: 100% !important;
  }

  /* --- Timeline flow: 1 cột thay vì 3 --- */
  .mfest-flow {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* --- Countdown co lại --- */
  .mfest-cd-block {
    min-width: 60px;
    padding: 10px 12px 8px;
  }
  .mfest-cd-num {
    font-size: 28px;
  }
  .mfest-cd-label {
    font-size: 11px;
  }

  /* --- Spotlight list về dọc --- */
  .mfest-spotlight-list {
    flex-direction: column;
  }

  /* --- Detail card padding --- */
  .mfest-detail-card {
    padding: 16px;
  }

  /* --- d-flex trong detail card: wrap trên mobile --- */
  .mfest-detail-card .d-flex {
    flex-direction: column;
  }
  .mfest-detail-card .d-flex > img {
    max-width: 140px;
    align-self: flex-end;
    margin-top: -60px; /* kéo mascot lên chồng lên text một chút */
  }

}

