/*
Theme Name: MAX.vn AI Magazine
Theme URI: https://max.vn/
Author: dot vn Studio
Description: MAX.vn magazine theme converted from bright magazine base. Bright AI, automation, digital, robotics and technology magazine platform.
Version: 1.0.0
Text Domain: coffeebike-maxvn-theme
*/
:root{
      --blue:#2563eb;
      --blue-2:#38bdf8;
      --blue-dark:#1d4ed8;
      --navy:#0f766e;
      --navy-2:#14b8a6;
      --gold:#f59e0b;
      --gold-2:#fde68a;
      --cream:#eef7ff;
      --paper:#f8fbff;
      --white:#fff;
      --text:#111827;
      --muted:#64748b;
      --line:#dbe7f3;
      --green:#10b981;
      --pink:#ec4899;
      --orange:#f59e0b;
      --shadow:0 12px 30px rgba(37,99,235,.10);
      --radius:8px;
      --container:1250px;
    }
    *{box-sizing:border-box}
    body{
      margin:0;
      font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
      font-size:14px;
      line-height:1.5;
      color:var(--text);
      background:var(--paper);
      font-weight:400;
    }
    img{display:block;max-width:100%}
    a{text-decoration:none;color:inherit}
    .container{width:min(var(--container),calc(100% - 52px));margin:0 auto}

    .mini-bar{
      height:42px;
      background:#fff;
      border-bottom:1px solid var(--line);
      color:#24334b;
      font-size:12px;
    }
    .mini-bar .inner{
      height:42px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:20px;
    }
    .story-tag{
      display:flex;
      align-items:center;
      gap:8px;
      color:#1d4ed8;
      font-family:Georgia,serif;
      font-size:15px;
    }
    .story-tag i{color:#2563eb}
    .mini-links{
      display:flex;
      align-items:center;
      gap:18px;
      color:#172033;
    }
    .mini-links .sep{color:#bec7d3}
    .mini-links .social{display:flex;gap:15px;color:#2563eb}

    .header{
      background:#fff;
      border-bottom:1px solid var(--line);
    }
    .header-main{
      min-height:96px;
      display:grid;
      grid-template-columns:235px 1fr 360px;
      gap:28px;
      align-items:center;
    }
    .logo{
      display:flex;
      align-items:center;
      gap:12px;
      color:var(--blue);
    }
    .logo-mark{
      width:48px;
      height:48px;
      border:3px solid var(--blue);
      border-radius:10px 10px 12px 12px;
      display:flex;
      align-items:center;
      justify-content:center;
      position:relative;
      color:var(--blue);
      font-size:24px;
    }
    .logo-mark:before,.logo-mark:after{
      content:"";
      position:absolute;
      width:18px;
      height:28px;
      border:2px solid var(--blue);
      border-radius:4px 4px 2px 2px;
      bottom:8px;
      background:#fff;
    }
    .logo-mark:before{left:8px;transform:skewY(-12deg)}
    .logo-mark:after{right:8px;transform:skewY(12deg)}
    .logo-mark i{position:relative;z-index:2;font-size:15px;margin-top:-3px}
    .logo-text strong{
      display:block;
      font-size:31px;
      line-height:1;
      letter-spacing:-1.3px;
      font-weight:600;
      color:var(--blue);
    }
    .logo-text small{
      display:block;
      margin-top:5px;
      font-size:11px;
      color:#5b6472;
      font-weight:600;
    }
    .search{
      height:48px;
      border:1px solid #cbd6e5;
      border-radius:7px;
      display:flex;
      overflow:hidden;
      background:#fff;
    }
    .search input{
      flex:1;
      border:0;
      outline:0;
      padding:0 18px;
      color:#6c7481;
      font-family:Inter,sans-serif;
      background:#fff;
    }
    .search button{
      width:54px;
      border:0;
      color:#fff;
      background:var(--blue);
      font-size:18px;
      cursor:pointer;
    }
    .quick-actions{
      display:flex;
      align-items:center;
      justify-content:flex-end;
      gap:28px;
      color:var(--blue);
    }
    .quick-actions a{
      display:flex;
      flex-direction:column;
      align-items:center;
      gap:6px;
      min-width:54px;
      font-size:12px;
      font-weight:600;
      position:relative;
    }
    .quick-actions i{font-size:23px}
    .badge{
      position:absolute;
      top:-7px;
      right:10px;
      width:18px;
      height:18px;
      border-radius:50%;
      background:#f59e0b;
      color:#fff;
      display:flex;
      align-items:center;
      justify-content:center;
      font-size:10px;
      font-weight:600;
    }
    .nav{
      height:52px;
      display:flex;
      align-items:center;
      gap:39px;
      overflow:auto;
      white-space:nowrap;
    }
    .nav a{
      height:52px;
      display:flex;
      align-items:center;
      color:#111827;
      font-size:14px;
      font-weight:500;
      border-bottom:3px solid transparent;
    }
    .nav a.active{
      color:var(--blue);
      border-bottom-color:var(--blue);
      font-weight:600;
    }

    main{padding:18px 0 0}
    .top-grid{
      display:grid;
      grid-template-columns:minmax(0,1fr) 285px;
      gap:22px;
      align-items:start;
    }
    .hero-area{
      display:grid;
      grid-template-columns:1.52fr .98fr;
      gap:12px;
      align-items:stretch;
    }
    .hero{
      position:relative;
      min-height:430px;
      border-radius:8px;
      overflow:hidden;
      background:#111;
      box-shadow:var(--shadow);
    }
    .hero img{
      position:absolute;
      inset:0;
      width:100%;
      height:100%;
      object-fit:cover;
    }
    .hero::after{
      content:"";
      position:absolute;
      inset:0;
      background:linear-gradient(90deg,rgba(0,0,0,.7),rgba(0,0,0,.23) 65%,rgba(0,0,0,.03));
    }
    .hero-copy{
      position:absolute;
      z-index:2;
      left:30px;
      right:30px;
      bottom:28px;
      color:#fff;
    }
    .label{
      display:inline-flex;
      align-items:center;
      padding:7px 11px;
      border-radius:5px;
      background:#f4d377;
      color:#10233e;
      text-transform:uppercase;
      font-size:11px;
      font-weight:600;
      margin-bottom:18px;
    }
    .hero h1{
      margin:0 0 16px;
      max-width:480px;
      font-size:31px;
      line-height:1.25;
      letter-spacing:-.8px;
      font-weight:600;
    }
    .hero p{
      margin:0 0 24px;
      max-width:450px;
      color:rgba(255,255,255,.9);
      font-size:15px;
      line-height:1.65;
    }
    .read-more{
      display:inline-flex;
      align-items:center;
      gap:14px;
      color:#fff;
      font-size:13px;
      font-weight:600;
    }
    .hero-dots{
      position:absolute;
      right:18px;
      bottom:23px;
      display:flex;
      align-items:center;
      gap:10px;
      z-index:3;
    }
    .hero-dots span{
      width:8px;
      height:8px;
      border-radius:50%;
      background:rgba(255,255,255,.85);
    }
    .hero-dots span:last-child{
      background:transparent;
      border:1px solid rgba(255,255,255,.7);
    }
    .hero-dots i{
      color:rgba(255,255,255,.9);
      font-size:11px;
      margin-left:2px;
    }

    .story-stack{
      display:flex;
      flex-direction:column;
      gap:12px;
    }
    .stack-card{
      min-height:132px;
      display:grid;
      grid-template-columns:1fr 150px;
      gap:14px;
      background:#fff;
      border:1px solid var(--line);
      border-radius:8px;
      padding:12px;
      overflow:hidden;
      box-shadow:0 8px 22px rgba(17,49,90,.04);
    }
    .stack-card img{
      width:150px;
      height:108px;
      object-fit:cover;
      border-radius:6px;
    }
    .tag{
      display:inline-flex;
      padding:4px 7px;
      border-radius:4px;
      color:#fff;
      text-transform:uppercase;
      font-size:10px;
      font-weight:600;
      margin-bottom:7px;
    }
    .tag.blue{background:#2d82ce}
    .tag.gold{background:#ca943a}
    .tag.gray{background:#6b7280}
    .tag.green{background:#17a76f}
    .tag.pink{background:#e86084}
    .stack-card h3{
      margin:0 0 7px;
      font-size:17px;
      line-height:1.35;
      font-weight:600;
    }
    .stack-card p{
      margin:0;
      color:#596274;
      font-size:12px;
      line-height:1.45;
    }
    .arrow-circle{
      margin-top:7px;
      width:24px;
      height:24px;
      border-radius:50%;
      border:1px solid #cfd7e2;
      display:flex;
      align-items:center;
      justify-content:center;
      color:var(--blue);
      font-size:11px;
    }

    .right-sidebar{display:flex;flex-direction:column;gap:18px}
    .side-box{
      background:#fff;
      border:1px solid var(--line);
      border-radius:8px;
      padding:18px;
      box-shadow:0 9px 24px rgba(17,49,90,.045);
    }
    .side-title{
      margin:0 0 15px;
      color:#17355d;
      font-size:18px;
      font-weight:600;
    }
    .featured-list{display:flex;flex-direction:column;gap:15px}
    .featured-item{
      display:grid;
      grid-template-columns:86px 1fr;
      gap:12px;
      align-items:center;
    }
    .featured-item img{
      width:86px;
      height:62px;
      object-fit:cover;
      border-radius:4px;
    }
    .featured-item h4{
      margin:0 0 5px;
      font-size:13px;
      line-height:1.36;
      font-weight:600;
    }
    .meta{
      color:#7c8490;
      font-size:11px;
      font-weight:500;
    }
    .ad-blue{
      position:relative;
      overflow:hidden;
      min-height:164px;
      border-radius:8px;
      padding:22px;
      background:
        linear-gradient(110deg,rgba(0,63,125,.96),rgba(9,84,157,.76)),
        url("https://images.unsplash.com/photo-1497633762265-9d179a990aa6?auto=format&fit=crop&w=500&q=85");
      background-size:cover;
      color:#fff;
    }
    .ad-blue h3{
      margin:0 0 8px;
      max-width:190px;
      color:#fde68a;
      font-size:22px;
      line-height:1.12;
      text-transform:uppercase;
      font-weight:600;
    }
    .ad-blue p{
      margin:0 0 18px;
      max-width:210px;
      color:rgba(255,255,255,.9);
      font-size:13px;
      font-weight:500;
    }
    .ad-blue a{
      display:inline-flex;
      padding:9px 14px;
      border-radius:999px;
      background:#ffd37b;
      color:#103359;
      font-size:12px;
      font-weight:600;
    }

    .category-row{
      margin-top:14px;
      display:grid;
      grid-template-columns:repeat(8,1fr);
      background:#fff;
      border:1px solid var(--line);
      border-radius:9px;
      overflow:hidden;
      box-shadow:0 10px 24px rgba(17,49,90,.045);
    }
    .cat-icon{
      min-height:88px;
      display:flex;
      flex-direction:column;
      align-items:center;
      justify-content:center;
      gap:9px;
      border-right:1px solid var(--line);
      color:var(--blue);
      font-size:12px;
      font-weight:600;
    }
    .cat-icon:last-child{border-right:0}
    .cat-icon i{
      font-size:24px;
      color:var(--blue);
    }

    .content-grid{
      margin-top:22px;
      display:grid;
      grid-template-columns:minmax(0,1fr) 285px;
      gap:22px;
      align-items:start;
    }
    .section{margin-bottom:26px}
    .section-head{
      display:flex;
      justify-content:space-between;
      align-items:center;
      margin-bottom:14px;
      gap:18px;
    }
    .section-title{
      margin:0;
      font-size:18px;
      font-weight:600;
      line-height:1;
    }
    .view-more{
      font-size:12px;
      font-weight:500;
      color:var(--blue);
    }
    .view-more i{margin-left:10px}
    .card-grid{
      display:grid;
      grid-template-columns:repeat(4,1fr);
      gap:16px;
    }
    .post-card{
      background:#fff;
      border:1px solid var(--line);
      border-radius:8px;
      overflow:hidden;
      box-shadow:0 9px 24px rgba(17,49,90,.04);
    }
    .post-img{
      height:150px;
      position:relative;
      overflow:hidden;
    }
    .post-img img{
      width:100%;
      height:100%;
      object-fit:cover;
    }
    .post-img .tag{
      position:absolute;
      left:10px;
      bottom:10px;
      margin:0;
      border-radius:3px;
    }
    .post-body{padding:14px}
    .post-body h3{
      margin:0 0 10px;
      font-size:16px;
      line-height:1.35;
      font-weight:600;
    }

    .two-col{
      display:grid;
      grid-template-columns:.86fr 1.25fr;
      gap:22px;
    }
    .list-box{
      background:#fff;
      border:1px solid var(--line);
      border-radius:8px;
      padding:18px;
      box-shadow:0 9px 24px rgba(17,49,90,.04);
    }
    .number-list{
      list-style:none;
      margin:0;
      padding:0;
      display:flex;
      flex-direction:column;
      gap:12px;
    }
    .number-list li{
      display:grid;
      grid-template-columns:26px 1fr 68px;
      gap:12px;
      align-items:center;
      color:#303949;
      font-size:12px;
    }
    .number-list b{
      color:var(--blue);
      font-weight:600;
    }
    .number-list span:last-child{
      color:#637084;
      text-align:right;
      font-size:11px;
    }
    .topic-scroll{
      background:#fff;
      border:1px solid var(--line);
      border-radius:8px;
      padding:18px;
      box-shadow:0 9px 24px rgba(17,49,90,.04);
    }
    .topic-row{
      display:grid;
      grid-template-columns:repeat(4,1fr);
      gap:12px;
    }
    .topic-card img{
      width:100%;
      height:86px;
      object-fit:cover;
      border-radius:6px;
      margin-bottom:9px;
    }
    .topic-card h4{
      margin:0 0 5px;
      color:var(--blue);
      font-size:13px;
      line-height:1.3;
      font-weight:600;
    }
    .topic-card p{
      margin:0 0 4px;
      color:#5e6878;
      font-size:11px;
      line-height:1.4;
    }

    .authors-video{
      display:grid;
      grid-template-columns:.86fr 1.25fr;
      gap:22px;
    }
    .author-list{
      display:flex;
      flex-direction:column;
      gap:13px;
    }
    .author{
      display:grid;
      grid-template-columns:48px 1fr 76px;
      gap:12px;
      align-items:center;
    }
    .author img{
      width:48px;
      height:48px;
      border-radius:50%;
      object-fit:cover;
    }
    .author h4{
      margin:0 0 3px;
      font-size:13px;
      font-weight:600;
    }
    .author p{
      margin:0;
      color:#616b7c;
      font-size:11px;
      line-height:1.35;
    }
    .follow{
      height:30px;
      border:1px solid #b8c9e3;
      border-radius:4px;
      display:flex;
      align-items:center;
      justify-content:center;
      color:var(--blue);
      font-size:11px;
      font-weight:600;
    }
    .video-podcast{
      background:#fff;
      border:1px solid var(--line);
      border-radius:8px;
      padding:18px;
      box-shadow:0 9px 24px rgba(17,49,90,.04);
    }
    .video-layout{
      display:grid;
      grid-template-columns:1.55fr .8fr;
      gap:16px;
    }
    .video-main{
      position:relative;
      min-height:212px;
      border-radius:7px;
      overflow:hidden;
      background:#111;
    }
    .video-main img{
      width:100%;
      height:212px;
      object-fit:cover;
      filter:brightness(.64);
    }
    .video-main .caption{
      position:absolute;
      left:18px;
      top:18px;
      z-index:2;
      color:#fff;
      max-width:300px;
    }
    .video-main h3{
      margin:0 0 8px;
      font-size:24px;
      line-height:1.25;
      font-weight:600;
    }
    .video-main p{
      margin:0;
      color:rgba(255,255,255,.82);
      font-size:12px;
    }
    .play-red{
      position:absolute;
      left:50%;
      bottom:18px;
      width:36px;
      height:36px;
      transform:translateX(-50%);
      background:#e8422b;
      border-radius:50%;
      display:flex;
      align-items:center;
      justify-content:center;
      color:#fff;
      z-index:2;
    }
    .video-time{
      position:absolute;
      left:15px;
      bottom:16px;
      color:#fff;
      font-size:12px;
      z-index:2;
    }
    .small-videos{
      display:flex;
      flex-direction:column;
      gap:11px;
    }
    .small-video{
      display:grid;
      grid-template-columns:82px 1fr;
      gap:11px;
      align-items:center;
    }
    .small-thumb{
      position:relative;
      width:82px;
      height:54px;
      overflow:hidden;
      border-radius:5px;
      background:#111;
    }
    .small-thumb img{
      width:100%;
      height:100%;
      object-fit:cover;
    }
    .small-thumb span{
      position:absolute;
      right:4px;
      bottom:4px;
      background:rgba(0,0,0,.72);
      color:#fff;
      padding:2px 4px;
      border-radius:2px;
      font-size:9px;
    }
    .small-video h4{
      margin:0;
      font-size:12px;
      line-height:1.35;
      font-weight:600;
    }

    .trending-tags{
      background:#fff;
      border:1px solid var(--line);
      border-radius:8px;
      padding:18px;
      box-shadow:0 9px 24px rgba(17,49,90,.04);
    }
    .tag-list{
      display:flex;
      flex-direction:column;
      gap:10px;
    }
    .tag-row{
      display:grid;
      grid-template-columns:1fr 54px;
      gap:12px;
      align-items:center;
      background:#f4f7fb;
      border-radius:6px;
      padding:8px 10px;
      font-size:12px;
      color:var(--blue);
      font-weight:600;
    }
    .tag-row span:last-child{
      color:#e04343;
      text-align:right;
    }
    .tag-row:nth-child(n+2) span:last-child{color:#1ca66a}
    .newsletter{
      background:#fff8ec;
      border-color:#f1dec1;
      position:relative;
      overflow:hidden;
    }
    .newsletter h3{
      color:#24426d;
      margin:0 0 10px;
      font-size:18px;
      font-weight:600;
    }
    .newsletter p{
      margin:0 0 14px;
      color:#626b78;
      font-size:13px;
      line-height:1.55;
    }
    .newsletter input{
      width:100%;
      height:38px;
      border:1px solid #e3cfad;
      border-radius:4px;
      padding:0 12px;
      font-family:Inter,sans-serif;
      margin-bottom:10px;
      background:#fff;
    }
    .newsletter button{
      width:100%;
      height:39px;
      border:0;
      background:var(--blue);
      color:#fff;
      border-radius:4px;
      font-family:Inter,sans-serif;
      font-size:12px;
      font-weight:600;
      text-transform:uppercase;
    }

    .cta-row{
      margin:28px 0 20px;
      display:grid;
      grid-template-columns:1fr 1fr;
      gap:20px;
    }
    .cta{
      min-height:132px;
      border-radius:8px;
      overflow:hidden;
      position:relative;
      display:grid;
      grid-template-columns:1fr 220px;
      align-items:center;
      padding:24px 28px;
      box-shadow:var(--shadow);
    }
    .cta.community{
      background:
        linear-gradient(90deg,rgba(0,55,101,.98),rgba(0,68,119,.84)),
        url("https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=800&q=85");
      background-size:cover;
      color:#fff;
    }
    .cta.ad{
      background:
        linear-gradient(90deg,rgba(255,247,236,.96),rgba(255,247,236,.62)),
        url("https://images.unsplash.com/photo-1551817958-d9d86fb29431?auto=format&fit=crop&w=800&q=85");
      background-size:cover;
      color:#9a5b1d;
    }
    .cta h3{
      margin:0 0 8px;
      font-size:26px;
      line-height:1.12;
      font-weight:600;
    }
    .cta p{
      margin:0 0 18px;
      max-width:390px;
      font-size:13px;
      color:rgba(255,255,255,.86);
    }
    .cta.ad p{color:#744d31}
    .cta a{
      display:inline-flex;
      padding:12px 18px;
      border-radius:4px;
      background:#ffe0a3;
      color:#082d58;
      font-size:12px;
      font-weight:600;
      text-transform:uppercase;
    }
    .cta.ad a{
      background:#b96e25;
      color:#fff;
    }

    footer{
      background:linear-gradient(90deg,#00365f,#003b6f);
      color:#fff;
      padding:34px 0 20px;
    }
    .footer-grid{
      display:grid;
      grid-template-columns:1.55fr repeat(3,1fr) 1.35fr;
      gap:44px;
      align-items:start;
    }
    .footer-logo{
      display:flex;
      align-items:center;
      gap:10px;
      margin-bottom:12px;
    }
    .footer-logo .mark{
      width:38px;
      height:38px;
      border:2px solid #fff;
      border-radius:7px;
      display:flex;
      align-items:center;
      justify-content:center;
    }
    .footer-logo strong{
      font-size:26px;
      line-height:1;
      font-weight:600;
    }
    .footer-tag{
      color:#fff;
      font-size:12px;
      font-weight:500;
      margin-bottom:14px;
    }
    .footer-about{
      color:rgba(255,255,255,.72);
      font-size:13px;
      line-height:1.65;
      max-width:320px;
      margin:0 0 18px;
    }
    .footer-social{
      display:flex;
      gap:20px;
      font-size:16px;
    }
    footer h4{
      margin:0 0 14px;
      font-size:13px;
      text-transform:uppercase;
      font-weight:600;
    }
    footer ul{
      list-style:none;
      margin:0;
      padding:0;
      display:flex;
      flex-direction:column;
      gap:7px;
      color:rgba(255,255,255,.72);
      font-size:12px;
    }
    .store-row{
      display:flex;
      gap:9px;
      margin-top:14px;
    }
    .store{
      display:flex;
      align-items:center;
      gap:8px;
      background:#0b0f16;
      border-radius:5px;
      padding:7px 10px;
      color:#fff;
      min-width:112px;
      font-size:10px;
      line-height:1.1;
    }
    .store i{font-size:20px}
    .store b{display:block;font-size:13px;font-weight:600}
    .copyright{
      border-top:1px solid rgba(255,255,255,.12);
      margin-top:24px;
      padding-top:14px;
      text-align:center;
      color:rgba(255,255,255,.64);
      font-size:12px;
    }

    @media(max-width:1120px){
      .header-main{grid-template-columns:1fr;gap:16px;padding:18px 0}
      .quick-actions{justify-content:flex-start}
      .top-grid,.content-grid,.hero-area,.two-col,.authors-video{grid-template-columns:1fr}
      .right-sidebar{display:grid;grid-template-columns:repeat(2,1fr)}
      .category-row{grid-template-columns:repeat(4,1fr)}
      .card-grid{grid-template-columns:repeat(2,1fr)}
      .footer-grid{grid-template-columns:repeat(2,1fr)}
    }
    @media(max-width:760px){
      .container{width:calc(100% - 28px)}
      .mini-bar .inner{height:auto;min-height:42px;flex-direction:column;align-items:flex-start;padding:10px 0}
      .header-main{padding:16px 0}
      .quick-actions{gap:12px;flex-wrap:wrap}
      .nav{gap:24px}
      .hero{min-height:430px}
      .hero h1{font-size:26px}
      .stack-card,.featured-item,.popular-item,.small-video{grid-template-columns:1fr}
      .stack-card img,.featured-item img{width:100%;height:160px}
      .right-sidebar{grid-template-columns:1fr}
      .category-row,.card-grid,.topic-row,.video-layout,.cta-row{grid-template-columns:1fr}
      .post-img{height:190px}
      .cta{grid-template-columns:1fr}
      .footer-grid{grid-template-columns:1fr}
    }

/* WordPress normalization */
html,body{margin:0;padding:0;overflow-x:hidden}body,button,input,select,textarea{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important}b,strong,h1,h2,h3,h4,h5,h6,.fw{font-weight:600!important}.container{width:min(var(--container),calc(100% - 52px));margin:0 auto}.page{width:auto!important;height:auto!important;min-height:0!important;overflow:visible!important;box-shadow:none!important;background:transparent!important}.custom-logo{max-height:64px;width:auto}.nav{overflow:visible!important;white-space:normal!important;flex-wrap:wrap;gap:28px;min-height:52px;height:auto}.nav a{min-height:48px;height:auto}.header{position:sticky;top:0;z-index:50}.hero h1,.section-title,.cta h3,.video-main h3{font-size:clamp(22px,2vw,24px)!important;line-height:1.26!important}.logo-text strong{font-weight:600!important}.hero p,.post-body p,.news-card p,.entry-content p{font-size:15px}.post-card h3 a,.stack-card h3 a,.featured-item h4 a,.number-list a,.news-card h3 a,.topic-card a{transition:.18s}.post-card h3 a:hover,.stack-card h3 a:hover,.featured-item h4 a:hover,.number-list a:hover,.news-card h3 a:hover,.topic-card a:hover{color:var(--blue)}.wp-block-image img{height:auto}.screen-reader-text{position:absolute;left:-9999px}.pagination{margin-top:24px}.pagination .nav-links{display:flex;gap:8px;flex-wrap:wrap}.pagination a,.pagination span{padding:8px 11px;border:1px solid var(--line);background:#fff;border-radius:4px}.pagination .current{background:var(--blue);color:#fff}.tgc-wrap{width:min(var(--container),calc(100% - 52px));margin:28px auto 42px}.tgc-grid{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:26px;align-items:start}.tgc-card{background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);padding:28px}.tgc-title{font-size:clamp(22px,2vw,24px)!important;line-height:1.3;margin:8px 0 20px;color:#17355d}.tgc-thumb{width:100%;height:390px;object-fit:cover;border-radius:8px;margin:0 0 24px}.entry-content{font-size:16px;line-height:1.8;color:#273349}.entry-content img{height:auto;border-radius:8px}.archive-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.rank-item{display:grid;grid-template-columns:42px 1fr;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}.rank-no{font-size:22px;color:var(--blue);font-weight:600;line-height:1}.rank-item h4{margin:0 0 4px;font-size:13px;line-height:1.4}.newsletter-box p{font-size:14px;color:var(--muted);line-height:1.6}.side-box .section-head{margin-bottom:14px}@media(max-width:1120px){.header-main{grid-template-columns:1fr;gap:16px;padding:18px 0}.quick-actions{justify-content:flex-start}.top-grid,.content-grid,.hero-area,.two-col,.authors-video,.tgc-grid{grid-template-columns:1fr}.right-sidebar{display:grid;grid-template-columns:repeat(2,1fr)}.category-row{grid-template-columns:repeat(4,1fr)}.card-grid,.archive-grid{grid-template-columns:repeat(2,1fr)}.footer-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.container,.tgc-wrap{width:calc(100% - 28px)}.mini-bar .inner{height:auto;min-height:42px;flex-direction:column;align-items:flex-start;padding:10px 0}.header-main{padding:16px 0}.quick-actions{gap:12px;flex-wrap:wrap}.nav{gap:20px}.hero{min-height:430px}.hero h1{font-size:24px!important}.stack-card,.featured-item,.small-video{grid-template-columns:1fr}.stack-card img,.featured-item img{width:100%;height:160px}.right-sidebar{grid-template-columns:1fr}.category-row,.card-grid,.topic-row,.video-layout,.cta-row,.archive-grid{grid-template-columns:1fr}.post-img{height:190px}.cta{grid-template-columns:1fr}.footer-grid{grid-template-columns:1fr}.tgc-card{padding:20px}.tgc-thumb{height:240px}}


/* MAX.vn bright AI/digital overrides */
.logo-mark{border-color:var(--blue);border-radius:16px;background:linear-gradient(135deg,#fff 0%,#eef7ff 48%,#fff1d8 100%);box-shadow:0 10px 26px rgba(154,90,50,.14)}
.logo-mark:before,.logo-mark:after{display:none!important}
.logo-mark i{font-size:22px;margin-top:0;color:var(--blue)}
.footer-logo .mark{background:linear-gradient(135deg,var(--blue),var(--orange));color:#fff;border:0}
.category-row{background:linear-gradient(90deg,#fff,#fff7ef)}
.cat-icon:hover{background:#fff0df;color:var(--blue)}
.ad-blue{background:linear-gradient(135deg,#2563eb,#f59e0b)!important;color:#fff}
.newsletter,.newsletter-box{background:linear-gradient(135deg,#eef7ff,#ffffff)}
.play-red{background:var(--blue)}

/* === dot vn Studio FIX 2026-07-01: menu cấp 2/3, card tin tức, scale heading trang chủ === */
.header{position:sticky;top:0;z-index:500;}
.nav{
  overflow:visible!important;
  white-space:normal!important;
  min-height:52px!important;
  height:auto!important;
  display:block!important;
  position:relative;
  z-index:600;
}
.primary-menu{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:0 28px;
}
.primary-menu li{list-style:none;margin:0;padding:0;position:relative;}
.primary-menu > li > a,
.nav > a{
  min-height:52px;
  height:auto!important;
  display:flex;
  align-items:center;
  gap:7px;
  color:#0f172a;
  font-size:13px!important;
  font-weight:500!important;
  border-bottom:3px solid transparent;
  padding:0;
}
.primary-menu > li.current-menu-item > a,
.primary-menu > li.current-menu-ancestor > a,
.primary-menu > li > a:hover,
.nav > a.active,
.nav > a:hover{color:var(--blue);border-bottom-color:var(--blue);}
.primary-menu .menu-item-has-children > a::after{
  content:"\f107";
  font-family:"Font Awesome 6 Free";
  font-weight:900;
  font-size:10px;
  line-height:1;
  color:currentColor;
  opacity:.72;
}
.primary-menu .sub-menu{
  display:none;
  position:absolute;
  top:100%;
  left:0;
  z-index:9999;
  min-width:230px;
  margin:0;
  padding:8px;
  list-style:none;
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px;
  box-shadow:0 18px 42px rgba(15,23,42,.13);
  white-space:normal;
}
.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu{display:block;}
.primary-menu .sub-menu .sub-menu{top:-8px;left:100%;}
.primary-menu .sub-menu li{display:block;width:100%;}
.primary-menu .sub-menu a{
  min-height:0!important;
  height:auto!important;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:9px 10px;
  border:0!important;
  border-radius:6px;
  color:#172033;
  font-size:13px!important;
  line-height:1.35;
  font-weight:500!important;
}
.primary-menu .sub-menu a:hover{background:#f8fbff;color:var(--blue);}
.primary-menu .sub-menu .menu-item-has-children > a::after{content:"\f105";margin-left:auto;}

.post-img{display:block!important;width:100%;height:126px!important;position:relative;overflow:hidden;background:#eef6ff;}
.post-img img{width:100%!important;height:100%!important;object-fit:cover!important;}
.post-img .tag{position:absolute!important;left:8px!important;bottom:8px!important;margin:0!important;max-width:calc(100% - 16px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.post-body p{margin:0 0 7px;color:#5f6b7a;font-size:12px!important;line-height:1.45;}
.news-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;}
.news-card-grid .post-card{
  display:grid!important;
  grid-template-columns:118px minmax(0,1fr);
  align-items:start;
  min-height:96px;
  border-radius:8px;
  overflow:hidden;
}
.news-card-grid .post-img{height:96px!important;min-height:96px;}
.news-card-grid .post-body{padding:9px 11px!important;min-width:0;}
.news-card-grid .post-body h3{margin:0 0 5px!important;font-size:13px!important;line-height:1.35!important;font-weight:600!important;}
.news-card-grid .post-body h3 a{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.news-card-grid .post-body p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0 0 5px!important;font-size:12px!important;line-height:1.4!important;}
.news-card-grid .meta{font-size:11px!important;line-height:1.35;color:#748094;}

body.home .hero h1{font-size:18px!important;line-height:1.25!important;letter-spacing:-.2px!important;}
body.home .hero p{font-size:13px!important;line-height:1.5!important;}
body.home .section-title{font-size:13px!important;line-height:1.2!important;}
body.home .stack-card h3{font-size:12px!important;line-height:1.32!important;}
body.home .featured-item h4{font-size:12px!important;line-height:1.32!important;}
body.home .post-body h3{font-size:13px!important;line-height:1.35!important;}
body.home .topic-card h4{font-size:12px!important;line-height:1.32!important;}
body.home .video-main h3{font-size:15px!important;line-height:1.35!important;}
body.home .small-video h4{font-size:12px!important;line-height:1.35!important;}
body.home .cta h3{font-size:15px!important;line-height:1.35!important;}
body.home .logo-text strong{font-size:26px!important;}

@media(max-width:1120px){
  .primary-menu{gap:0 20px;}
  .news-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:760px){
  .nav{padding:4px 0 10px;}
  .primary-menu{display:block!important;}
  .primary-menu > li{border-bottom:1px solid var(--line);}
  .primary-menu > li > a{min-height:42px;justify-content:space-between;}
  .primary-menu .sub-menu{display:block;position:static;min-width:0;padding:0 0 8px 14px;border:0;box-shadow:none;background:transparent;border-radius:0;}
  .primary-menu .sub-menu .sub-menu{position:static;left:auto;top:auto;padding-left:14px;}
  .primary-menu .sub-menu a{padding:7px 0;background:transparent!important;}
  .news-card-grid{grid-template-columns:1fr!important;}
  .news-card-grid .post-card{grid-template-columns:96px minmax(0,1fr);}
  .news-card-grid .post-img{height:78px!important;min-height:78px;}
  body.home .hero h1{font-size:18px!important;}
}


/* === dot vn Studio FIX 2026-07-01 MAX: desktop menu ngang + dropdown ổn định === */
@media(min-width:761px){
  .nav{
    display:flex!important;
    align-items:center!important;
    flex-wrap:wrap!important;
    gap:0 28px!important;
    overflow:visible!important;
    white-space:normal!important;
    min-height:52px!important;
    height:auto!important;
  }
  .nav > a{display:flex!important;width:auto!important;margin:0!important;}
  .primary-menu{
    display:flex!important;
    align-items:center!important;
    flex-wrap:wrap!important;
    gap:0 28px!important;
    width:100%;
  }
}
.logo-mark{background:linear-gradient(135deg,#fff 0%,#eef7ff 48%,#fff1d8 100%)!important;}
.footer-logo .mark{background:linear-gradient(135deg,var(--blue),var(--gold))!important;}
.category-row{background:linear-gradient(90deg,#fff,#fff7ef)!important;}
.cat-icon:hover{background:#fff0df!important;color:var(--blue)!important;}
.ad-blue{background:linear-gradient(135deg,#2563eb,#f59e0b)!important;color:#fff!important;}
.newsletter,.newsletter-box{background:linear-gradient(135deg,#eef7ff,#ffffff)!important;}

/* === dot vn Studio MOBILE MENU FINAL FIX 2026-07-01 ===
   Desktop: menu ngang + dropdown hover.
   Mobile: menu đóng mặc định, chỉ xổ khi bấm nút Menu.
*/
.menu-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:44px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  color:var(--text);
  font-weight:600;
  font-size:14px;
  cursor:pointer;
  box-shadow:0 8px 22px rgba(15,23,42,.06);
}
.menu-toggle i{font-size:16px;color:var(--blue);}

@media (min-width:761px){
  .menu-toggle{display:none!important;}
  .header .nav{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-start!important;
    flex-wrap:wrap!important;
    gap:0 22px!important;
    min-height:52px!important;
    height:auto!important;
    overflow:visible!important;
    white-space:normal!important;
    padding:0!important;
  }
  .header .nav > a{
    display:inline-flex!important;
    align-items:center!important;
    width:auto!important;
    min-height:48px!important;
    margin:0!important;
    padding:0!important;
  }
  .header .primary-menu{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-start!important;
    flex-wrap:wrap!important;
    gap:0 22px!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
    list-style:none!important;
  }
  .header .primary-menu > li{
    display:block!important;
    position:relative!important;
    width:auto!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
  }
  .header .primary-menu > li > a{
    display:flex!important;
    align-items:center!important;
    width:auto!important;
    min-height:48px!important;
    margin:0!important;
    padding:0!important;
    white-space:nowrap!important;
  }
  .header .primary-menu .sub-menu{
    display:none!important;
    position:absolute!important;
    top:100%!important;
    left:0!important;
    z-index:9999!important;
    min-width:220px!important;
    width:max-content!important;
    max-width:280px!important;
    margin:0!important;
    padding:8px!important;
    list-style:none!important;
    background:#fff!important;
    border:1px solid var(--line)!important;
    border-radius:12px!important;
    box-shadow:0 18px 45px rgba(15,23,42,.14)!important;
  }
  .header .primary-menu li:hover > .sub-menu,
  .header .primary-menu li:focus-within > .sub-menu{
    display:block!important;
  }
  .header .primary-menu .sub-menu .sub-menu{
    top:-8px!important;
    left:100%!important;
  }
  .header .primary-menu .sub-menu li,
  .header .primary-menu .sub-menu a{
    display:block!important;
    width:100%!important;
  }
  .header .primary-menu .sub-menu a{
    min-height:0!important;
    padding:10px 12px!important;
    white-space:normal!important;
    border-radius:8px!important;
  }
}

@media (max-width:760px){
  .header-main{padding-bottom:10px!important;}
  .menu-toggle{
    display:flex!important;
    width:calc(100% - 28px)!important;
    margin:0 auto 10px!important;
  }
  .menu-toggle[aria-expanded="true"]{border-color:var(--blue);color:var(--blue);}
  .header .nav{
    display:none!important;
    width:calc(100% - 28px)!important;
    margin:0 auto 12px!important;
    padding:8px 0!important;
    min-height:0!important;
    height:auto!important;
    overflow:visible!important;
    background:#fff!important;
    border:1px solid var(--line)!important;
    border-radius:12px!important;
    box-shadow:0 14px 34px rgba(15,23,42,.10)!important;
  }
  .header .nav.is-open{
    display:block!important;
  }
  .header .nav > a{
    display:flex!important;
    width:100%!important;
    min-height:42px!important;
    padding:10px 14px!important;
    margin:0!important;
    border-bottom:1px solid var(--line)!important;
    justify-content:flex-start!important;
  }
  .header .nav > a:last-child{border-bottom:0!important;}
  .header .primary-menu{
    display:block!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
    list-style:none!important;
  }
  .header .primary-menu li{
    display:block!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
    border-bottom:1px solid var(--line)!important;
  }
  .header .primary-menu li:last-child{border-bottom:0!important;}
  .header .primary-menu a{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    width:100%!important;
    min-height:42px!important;
    padding:10px 14px!important;
    margin:0!important;
    white-space:normal!important;
  }
  .header .primary-menu .sub-menu{
    display:block!important;
    position:static!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
    padding:0 0 8px 16px!important;
    background:#fff!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
  }
  .header .primary-menu .sub-menu li{border-bottom:0!important;}
  .header .primary-menu .sub-menu a{
    min-height:36px!important;
    padding:7px 14px!important;
    color:var(--muted)!important;
    font-size:13px!important;
    background:transparent!important;
  }
}

/* === dot vn Studio FINAL MOBILE HEADER + FOOTER MENU v4 ===
   Mobile header chỉ còn: logo + ô tìm kiếm + icon menu.
   Các thành phần phụ như mini bar, quick actions, social, link phụ được ẩn trên mobile.
*/
.footer-menu-nav{
  margin-top:24px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.18);
}
.footer-menu-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:10px 18px;
  align-items:center;
}
.footer-menu-list li{margin:0;padding:0;list-style:none;}
.footer-menu-list a{
  color:#dbe7f6;
  text-decoration:none;
  font-size:13px;
  line-height:1.4;
}
.footer-menu-list a:hover{color:#fff;}

@media (min-width:761px){
  .header .menu-toggle{display:none!important;}
}

@media (max-width:760px){
  body{padding-top:0!important;}
  .mini-bar,
  .quick-actions,
  .header .story-tag,
  .header .mini-links,
  .header .social{
    display:none!important;
  }
  .header{
    position:sticky!important;
    top:0!important;
    z-index:9999!important;
    background:#fff!important;
    border-bottom:1px solid var(--line)!important;
    box-shadow:0 10px 24px rgba(15,23,42,.08)!important;
  }
  .header-main.container,
  .header .header-main{
    width:100%!important;
    max-width:none!important;
    min-height:58px!important;
    margin:0!important;
    padding:8px 58px 8px 12px!important;
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr)!important;
    align-items:center!important;
    gap:8px!important;
  }
  .header .logo{
    min-width:0!important;
    width:auto!important;
    max-width:132px!important;
    display:flex!important;
    align-items:center!important;
    gap:7px!important;
    overflow:hidden!important;
    white-space:nowrap!important;
  }
  .header .logo-mark{
    width:32px!important;
    height:32px!important;
    min-width:32px!important;
    border-radius:10px!important;
    font-size:14px!important;
  }
  .header .logo-text{
    min-width:0!important;
    overflow:hidden!important;
  }
  .header .logo-text strong{
    display:block!important;
    max-width:86px!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:16px!important;
    line-height:1.1!important;
  }
  .header .logo-text small{display:none!important;}
  .header .custom-logo,
  .header .logo img{
    max-height:36px!important;
    max-width:128px!important;
    width:auto!important;
    object-fit:contain!important;
  }
  .header .search{
    width:100%!important;
    min-width:0!important;
    height:38px!important;
    min-height:38px!important;
    margin:0!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 38px!important;
    border-radius:12px!important;
    overflow:hidden!important;
    border:1px solid var(--line)!important;
    background:#f8fafc!important;
    box-shadow:none!important;
  }
  .header .search input{
    width:100%!important;
    min-width:0!important;
    height:38px!important;
    padding:0 10px!important;
    border:0!important;
    background:transparent!important;
    font-size:12px!important;
    line-height:38px!important;
  }
  .header .search button{
    width:38px!important;
    height:38px!important;
    min-height:38px!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
  }
  .header .menu-toggle{
    display:flex!important;
    position:absolute!important;
    top:9px!important;
    right:10px!important;
    z-index:10000!important;
    width:42px!important;
    height:40px!important;
    min-height:40px!important;
    margin:0!important;
    padding:0!important;
    border:1px solid var(--line)!important;
    border-radius:12px!important;
    background:#fff!important;
    box-shadow:none!important;
    color:var(--blue)!important;
  }
  .header .menu-toggle span{display:none!important;}
  .header .menu-toggle i{font-size:18px!important;margin:0!important;color:var(--blue)!important;}
  .header .menu-toggle[aria-expanded="true"]{
    border-color:var(--blue)!important;
    background:#f8fbff!important;
  }
  .header .nav{
    display:none!important;
    width:calc(100% - 24px)!important;
    max-width:none!important;
    margin:0 12px 10px!important;
    padding:8px 0!important;
    min-height:0!important;
    height:auto!important;
    overflow:hidden!important;
    background:#fff!important;
    border:1px solid var(--line)!important;
    border-radius:14px!important;
    box-shadow:0 16px 36px rgba(15,23,42,.12)!important;
  }
  .header .nav.is-open{display:block!important;}
  .header .nav > a,
  .header .primary-menu a{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    width:100%!important;
    min-height:40px!important;
    padding:10px 14px!important;
    margin:0!important;
    border-bottom:1px solid var(--line)!important;
    white-space:normal!important;
    font-size:13px!important;
    line-height:1.35!important;
  }
  .header .nav > a:last-child{border-bottom:0!important;}
  .header .primary-menu,
  .header .primary-menu li{
    display:block!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
    list-style:none!important;
  }
  .header .primary-menu .sub-menu{
    display:block!important;
    position:static!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
    padding:0 0 6px 16px!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    background:#fff!important;
  }
  .header .primary-menu .sub-menu a{
    min-height:34px!important;
    padding:7px 14px!important;
    border-bottom:0!important;
    color:var(--muted)!important;
    font-size:12px!important;
  }
  .footer-menu-nav{
    margin-top:18px!important;
    padding-top:16px!important;
  }
  .footer-menu-list{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px 12px!important;
  }
  .footer-menu-list a{
    display:block!important;
    padding:6px 0!important;
    font-size:13px!important;
  }
}


/* === dot vn Studio v6: archive card đẹp + breadcrumb đẹp + mobile 2 cột có chọn lọc === */
.tgc-breadcrumb{
  display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:7px!important;
  margin:0 0 16px!important;padding:10px 12px!important;
  border:1px solid var(--line)!important;border-radius:999px!important;background:linear-gradient(180deg,#fff,#f8fbff)!important;
  box-shadow:0 8px 22px rgba(15,23,42,.045)!important;color:#64748b!important;font-size:12px!important;line-height:1.35!important;
}
.tgc-breadcrumb a{display:inline-flex!important;align-items:center!important;gap:6px!important;color:var(--blue)!important;text-decoration:none!important;font-weight:600!important;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.tgc-breadcrumb a:hover{text-decoration:none!important;color:#0f172a!important;}
.tgc-breadcrumb .bc-home{padding:4px 8px!important;border-radius:999px!important;background:#eef6ff!important;}
.tgc-breadcrumb .bc-sep{display:inline-flex!important;align-items:center!important;color:#94a3b8!important;font-size:9px!important;}
.tgc-breadcrumb .current{display:inline-block!important;max-width:360px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:#475569!important;font-weight:500!important;}
.tgc-archive-layout{display:grid!important;grid-template-columns:minmax(0,1fr) 300px!important;gap:24px!important;align-items:start!important;}
.archive-main{min-width:0!important;}
.archive-sidebar{position:sticky;top:92px;}
.archive-header .tgc-title{margin-top:0!important;margin-bottom:14px!important;}
.archive-desc{margin:-4px 0 18px!important;color:var(--muted)!important;font-size:14px!important;line-height:1.65!important;}
.archive-card-grid,.archive-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;}
.archive-card{display:block!important;background:#fff!important;border:1px solid var(--line)!important;border-radius:13px!important;overflow:hidden!important;box-shadow:0 10px 26px rgba(15,23,42,.075)!important;transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease!important;color:var(--text)!important;text-decoration:none!important;}
.archive-card:hover{transform:translateY(-2px)!important;box-shadow:0 14px 34px rgba(15,23,42,.10)!important;border-color:rgba(37,99,235,.22)!important;}
.archive-thumb{display:block!important;height:156px!important;background:#eef6ff!important;overflow:hidden!important;}
.archive-thumb img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;transition:transform .25s ease!important;}
.archive-card:hover .archive-thumb img{transform:scale(1.035)!important;}
.archive-body{padding:13px!important;min-width:0!important;}
.archive-tag{display:inline-flex!important;align-items:center!important;max-width:100%!important;margin:0 0 8px!important;padding:4px 8px!important;border-radius:999px!important;background:#eef6ff!important;color:var(--blue)!important;font-size:10px!important;line-height:1.1!important;font-weight:600!important;text-decoration:none!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.archive-body h2{margin:0 0 7px!important;font-size:15px!important;line-height:1.35!important;font-weight:600!important;}
.archive-body h2 a{display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;color:var(--text)!important;text-decoration:none!important;}
.archive-body h2 a:hover{color:var(--blue)!important;}
.archive-body p{margin:0 0 9px!important;color:#64748b!important;font-size:12px!important;line-height:1.45!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;}
.archive-meta{font-size:11px!important;color:#7c8490!important;font-weight:500!important;}
.archive-cat-list{display:flex!important;flex-direction:column!important;gap:0!important;margin:0!important;padding:0!important;list-style:none!important;}
.archive-cat-list li{margin:0!important;padding:0!important;list-style:none!important;}
.archive-cat-list a{display:flex!important;justify-content:space-between!important;gap:12px!important;padding:10px 0!important;border-bottom:1px solid var(--line)!important;color:var(--text)!important;text-decoration:none!important;font-size:13px!important;}
.archive-cat-list a:hover{color:var(--blue)!important;}
.archive-cat-list em{font-style:normal!important;color:#94a3b8!important;}

@media(max-width:1120px){
  .tgc-archive-layout{grid-template-columns:1fr!important;}
  .archive-sidebar{position:static!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;}
}
@media(max-width:760px){
  .container,.tgc-wrap{width:calc(100% - 24px)!important;}
  .tgc-archive-layout{grid-template-columns:1fr!important;gap:16px!important;}
  .archive-card-grid,.archive-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
  .archive-thumb{height:96px!important;}
  .archive-body{padding:8px!important;}
  .archive-tag{font-size:9px!important;padding:3px 6px!important;margin-bottom:6px!important;}
  .archive-body h2{font-size:12px!important;line-height:1.28!important;margin-bottom:5px!important;}
  .archive-body p{font-size:10.5px!important;line-height:1.34!important;margin-bottom:6px!important;-webkit-line-clamp:2!important;}
  .archive-meta{font-size:10px!important;line-height:1.25!important;}
  .archive-sidebar{display:block!important;}
  .archive-sidebar .side-box{margin-bottom:14px!important;}
  .tgc-breadcrumb{border-radius:12px!important;padding:8px 9px!important;gap:5px!important;font-size:11px!important;}
  .tgc-breadcrumb a{max-width:118px!important;}
  .tgc-breadcrumb .current{max-width:150px!important;}

  /* Trang chủ: chỉ ép các cụm card/tin nhỏ thành 2 cột; KHÔNG ép hero, CTA, video lớn, sidebar lớn */
  body.home .card-grid,
  body.home .news-card-grid,
  body.home .topic-row{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;
  }
  body.home .news-card-grid .post-card,
  body.home .card-grid .post-card{
    display:block!important;grid-template-columns:none!important;min-height:0!important;border-radius:10px!important;overflow:hidden!important;
  }
  body.home .news-card-grid .post-img,
  body.home .card-grid .post-img{display:block!important;height:92px!important;min-height:92px!important;width:100%!important;}
  body.home .news-card-grid .post-img img,
  body.home .card-grid .post-img img{width:100%!important;height:100%!important;object-fit:cover!important;}
  body.home .news-card-grid .post-body,
  body.home .card-grid .post-body{padding:8px!important;}
  body.home .news-card-grid .post-body h3,
  body.home .card-grid .post-body h3{font-size:12px!important;line-height:1.28!important;margin:0 0 4px!important;}
  body.home .news-card-grid .post-body h3 a,
  body.home .card-grid .post-body h3 a{display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;}
  body.home .news-card-grid .post-body p,
  body.home .card-grid .post-body p{display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;font-size:10.5px!important;line-height:1.35!important;margin:0 0 5px!important;}
  body.home .news-card-grid .meta,
  body.home .card-grid .meta{font-size:10px!important;line-height:1.25!important;}
  body.home .post-img .tag{font-size:9px!important;left:6px!important;bottom:6px!important;padding:3px 6px!important;}

  body.home .top-grid,
  body.home .content-grid,
  body.home .hero-area,
  body.home .two-col,
  body.home .authors-video,
  body.home .video-layout,
  body.home .cta-row,
  body.home .right-sidebar{grid-template-columns:1fr!important;}
  body.home .category-row{grid-template-columns:repeat(4,minmax(0,1fr))!important;}
  body.home .cat-icon{min-height:68px!important;font-size:10px!important;gap:6px!important;padding:6px 4px!important;}
  body.home .cat-icon i{font-size:18px!important;}
  .footer-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px 14px!important;align-items:start!important;}
  .footer-grid > div:first-child{grid-column:1 / -1!important;}
  footer h4{font-size:12px!important;margin-bottom:9px!important;}
  footer ul{font-size:11px!important;gap:6px!important;}
  .footer-about{font-size:11px!important;line-height:1.5!important;}
  .footer-menu-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px 10px!important;}
}
@media(max-width:390px){
  .archive-card-grid,.archive-grid{gap:8px!important;}
  .archive-thumb{height:86px!important;}
  body.home .news-card-grid .post-img,body.home .card-grid .post-img{height:86px!important;min-height:86px!important;}
}


/* === dot vn Studio v7: MOBILE 2-COLUMN HARD FIX (safe selectors) ===
   - Archive/category: always 2-column article cards on mobile.
   - Homepage: only small icon grids + post/news/topic thumbnail grids are 2 columns.
   - Structural blocks (hero, banner, video layout, sidebar wrappers) stay 1 column.
*/
@media (max-width:760px){
  /* 1) Trang danh mục/archive: chắc chắn 2 cột */
  body.archive .archive-card-grid,
  body.archive .archive-grid,
  body.category .archive-card-grid,
  body.category .archive-grid,
  .tgc-archive-page .archive-card-grid,
  .tgc-archive-page .archive-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
    align-items:stretch!important;
  }
  body.archive .archive-card,
  body.category .archive-card,
  .tgc-archive-page .archive-card{
    display:flex!important;
    flex-direction:column!important;
    min-width:0!important;
    width:auto!important;
    margin:0!important;
    border-radius:12px!important;
    background:#fff!important;
    border:1px solid var(--line)!important;
    box-shadow:0 8px 22px rgba(15,23,42,.075)!important;
    overflow:hidden!important;
  }
  body.archive .archive-thumb,
  body.category .archive-thumb,
  .tgc-archive-page .archive-thumb{
    display:block!important;
    width:100%!important;
    height:88px!important;
    min-height:88px!important;
    overflow:hidden!important;
    background:#eef6ff!important;
  }
  body.archive .archive-thumb img,
  body.category .archive-thumb img,
  .tgc-archive-page .archive-thumb img{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
  }
  body.archive .archive-body,
  body.category .archive-body,
  .tgc-archive-page .archive-body{
    padding:8px!important;
    min-width:0!important;
    flex:1 1 auto!important;
  }
  body.archive .archive-tag,
  body.category .archive-tag,
  .tgc-archive-page .archive-tag{
    max-width:100%!important;
    font-size:9px!important;
    line-height:1!important;
    padding:3px 6px!important;
    margin:0 0 5px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  body.archive .archive-body h2,
  body.category .archive-body h2,
  .tgc-archive-page .archive-body h2{
    font-size:12px!important;
    line-height:1.28!important;
    margin:0 0 5px!important;
    font-weight:600!important;
  }
  body.archive .archive-body h2 a,
  body.category .archive-body h2 a,
  .tgc-archive-page .archive-body h2 a{
    display:-webkit-box!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
  }
  body.archive .archive-body p,
  body.category .archive-body p,
  .tgc-archive-page .archive-body p{
    display:-webkit-box!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
    font-size:10.5px!important;
    line-height:1.34!important;
    margin:0 0 6px!important;
  }
  body.archive .archive-meta,
  body.category .archive-meta,
  .tgc-archive-page .archive-meta{
    font-size:9.5px!important;
    line-height:1.25!important;
  }

  /* 2) Trang chủ: icon/category grid ép 2 cột, không 4 cột */
  .edustory-front-home .category-row,
  body.front-page .category-row,
  body.home .category-row{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:9px!important;
  }
  .edustory-front-home .cat-icon,
  body.front-page .cat-icon,
  body.home .cat-icon{
    min-height:66px!important;
    padding:8px 6px!important;
    border-radius:10px!important;
    font-size:11px!important;
  }
  .edustory-front-home .cat-icon i,
  body.front-page .cat-icon i,
  body.home .cat-icon i{
    font-size:18px!important;
  }

  /* 3) Trang chủ: chỉ các grid bài viết/thumbnail nhỏ chia 2 cột */
  .edustory-front-home .card-grid,
  .edustory-front-home .news-card-grid,
  .edustory-front-home .topic-row,
  body.front-page .card-grid,
  body.front-page .news-card-grid,
  body.front-page .topic-row,
  body.home .card-grid,
  body.home .news-card-grid,
  body.home .topic-row{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
    align-items:stretch!important;
  }
  .edustory-front-home .card-grid > .post-card,
  .edustory-front-home .news-card-grid > .post-card,
  body.front-page .card-grid > .post-card,
  body.front-page .news-card-grid > .post-card,
  body.home .card-grid > .post-card,
  body.home .news-card-grid > .post-card{
    display:flex!important;
    flex-direction:column!important;
    grid-template-columns:none!important;
    min-height:0!important;
    width:auto!important;
    margin:0!important;
    border-radius:11px!important;
    overflow:hidden!important;
    box-shadow:0 8px 20px rgba(15,23,42,.065)!important;
  }
  .edustory-front-home .card-grid > .post-card .post-img,
  .edustory-front-home .news-card-grid > .post-card .post-img,
  body.front-page .card-grid > .post-card .post-img,
  body.front-page .news-card-grid > .post-card .post-img,
  body.home .card-grid > .post-card .post-img,
  body.home .news-card-grid > .post-card .post-img{
    display:block!important;
    width:100%!important;
    height:88px!important;
    min-height:88px!important;
  }
  .edustory-front-home .card-grid > .post-card .post-img img,
  .edustory-front-home .news-card-grid > .post-card .post-img img,
  body.front-page .card-grid > .post-card .post-img img,
  body.front-page .news-card-grid > .post-card .post-img img,
  body.home .card-grid > .post-card .post-img img,
  body.home .news-card-grid > .post-card .post-img img{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
  }
  .edustory-front-home .card-grid > .post-card .post-body,
  .edustory-front-home .news-card-grid > .post-card .post-body,
  body.front-page .card-grid > .post-card .post-body,
  body.front-page .news-card-grid > .post-card .post-body,
  body.home .card-grid > .post-card .post-body,
  body.home .news-card-grid > .post-card .post-body{
    padding:8px!important;
    min-width:0!important;
  }
  .edustory-front-home .card-grid > .post-card h3,
  .edustory-front-home .news-card-grid > .post-card h3,
  body.front-page .card-grid > .post-card h3,
  body.front-page .news-card-grid > .post-card h3,
  body.home .card-grid > .post-card h3,
  body.home .news-card-grid > .post-card h3{
    font-size:12px!important;
    line-height:1.28!important;
    margin:0 0 5px!important;
  }
  .edustory-front-home .card-grid > .post-card h3 a,
  .edustory-front-home .news-card-grid > .post-card h3 a,
  body.front-page .card-grid > .post-card h3 a,
  body.front-page .news-card-grid > .post-card h3 a,
  body.home .card-grid > .post-card h3 a,
  body.home .news-card-grid > .post-card h3 a{
    display:-webkit-box!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
  }
  .edustory-front-home .card-grid > .post-card p,
  .edustory-front-home .news-card-grid > .post-card p,
  body.front-page .card-grid > .post-card p,
  body.front-page .news-card-grid > .post-card p,
  body.home .card-grid > .post-card p,
  body.home .news-card-grid > .post-card p{
    display:-webkit-box!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
    font-size:10.5px!important;
    line-height:1.34!important;
    margin:0 0 5px!important;
  }
  .edustory-front-home .card-grid > .post-card .meta,
  .edustory-front-home .news-card-grid > .post-card .meta,
  body.front-page .card-grid > .post-card .meta,
  body.front-page .news-card-grid > .post-card .meta,
  body.home .card-grid > .post-card .meta,
  body.home .news-card-grid > .post-card .meta{
    font-size:9.5px!important;
    line-height:1.25!important;
  }
  .edustory-front-home .topic-card,
  body.front-page .topic-card,
  body.home .topic-card{
    min-width:0!important;
    width:auto!important;
    border-radius:11px!important;
    overflow:hidden!important;
  }
  .edustory-front-home .topic-card img,
  body.front-page .topic-card img,
  body.home .topic-card img{
    height:86px!important;
    object-fit:cover!important;
  }
  .edustory-front-home .topic-card h4,
  body.front-page .topic-card h4,
  body.home .topic-card h4{
    font-size:12px!important;
    line-height:1.28!important;
  }
  .edustory-front-home .topic-card p,
  body.front-page .topic-card p,
  body.home .topic-card p{
    font-size:10.5px!important;
    line-height:1.34!important;
  }

  /* Structural wrappers giữ 1 cột để không phá layout lớn */
  .edustory-front-home .top-grid,
  .edustory-front-home .content-grid,
  .edustory-front-home .hero-area,
  .edustory-front-home .two-col,
  .edustory-front-home .authors-video,
  .edustory-front-home .video-layout,
  .edustory-front-home .cta-row,
  .edustory-front-home .right-sidebar,
  body.front-page .top-grid,
  body.front-page .content-grid,
  body.front-page .hero-area,
  body.front-page .two-col,
  body.front-page .authors-video,
  body.front-page .video-layout,
  body.front-page .cta-row,
  body.front-page .right-sidebar,
  body.home .top-grid,
  body.home .content-grid,
  body.home .hero-area,
  body.home .two-col,
  body.home .authors-video,
  body.home .video-layout,
  body.home .cta-row,
  body.home .right-sidebar{
    grid-template-columns:1fr!important;
  }
}
@media (max-width:390px){
  body.archive .archive-card-grid,
  body.archive .archive-grid,
  body.category .archive-card-grid,
  body.category .archive-grid,
  .tgc-archive-page .archive-card-grid,
  .tgc-archive-page .archive-grid,
  .edustory-front-home .card-grid,
  .edustory-front-home .news-card-grid,
  .edustory-front-home .topic-row,
  .edustory-front-home .category-row{
    gap:8px!important;
  }
}

/* === dot vn Studio v8: footer menu chỉ dành cho mobile, không lòi ở desktop === */
@media (min-width: 761px){
  footer .footer-menu-nav,
  .footer-menu-nav{
    display:none!important;
    visibility:hidden!important;
    height:0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    overflow:hidden!important;
  }
}
@media (max-width: 760px){
  footer .footer-menu-nav,
  .footer-menu-nav{
    display:block!important;
    visibility:visible!important;
    height:auto!important;
    margin-top:18px!important;
    padding-top:16px!important;
    border-top:1px solid rgba(255,255,255,.18)!important;
    overflow:visible!important;
  }
  footer .footer-menu-list,
  .footer-menu-list{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px 10px!important;
  }
}


/* === dot vn Studio v9: settings, real video, profile CPT, sidebar navigation === */
.tgc-video-embed{position:relative;width:100%;aspect-ratio:16/9;background:#0f172a;border-radius:12px;overflow:hidden}
.tgc-video-embed iframe,.tgc-video-embed video{position:absolute;inset:0;width:100%;height:100%;border:0;object-fit:cover}
.real-video-card .tgc-video-embed{height:auto;min-height:260px}
.real-video-card .caption{pointer-events:none}
.video-link-fallback{display:flex;min-height:260px;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--blue),var(--gold));color:#fff;border-radius:12px;overflow:hidden;position:relative}
.sidebar-nav-box .side-title,.side-box .side-title{font-weight:600}
.sidebar-links-grid{display:grid;grid-template-columns:1fr;gap:8px}
.sidebar-link-pill{display:flex;align-items:center;gap:8px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--text);font-size:13px;font-weight:600;box-shadow:0 8px 18px rgba(15,23,42,.035)}
.sidebar-link-pill i{color:var(--blue);font-size:11px}.sidebar-link-pill:hover{color:var(--blue);border-color:rgba(37,99,235,.25)}
.rich-rank h4{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.rich-home-sidebar .newsletter-box input,.sidebar .newsletter-box input{width:100%;height:42px;border:1px solid var(--line);border-radius:8px;padding:0 12px;margin:8px 0;background:#fff}.rich-home-sidebar .newsletter-box button,.sidebar .newsletter-box button{width:100%;height:42px;border:0;border-radius:8px;background:var(--blue);color:#fff;font-weight:600;cursor:pointer}
.author-list .author{min-width:0}.author-list .author img{flex:0 0 54px;width:54px;height:54px;object-fit:cover;border-radius:50%}.author-list .author h4,.author-list .author p{overflow:hidden;text-overflow:ellipsis}.author-list .author p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
@media(max-width:760px){.real-video-card .tgc-video-embed{min-height:190px}.sidebar-links-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.sidebar-link-pill{font-size:11px;line-height:1.25;padding:8px}.rich-home-sidebar{display:block!important}.rich-home-sidebar .side-box{margin-bottom:14px!important}}


/* === dot vn Studio v10: footer menu only mobile + video link only === */
@media (min-width:761px){
  footer .footer-menu-nav, .footer-menu-nav{
    display:none!important;
    visibility:hidden!important;
    height:0!important;
    min-height:0!important;
    overflow:hidden!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
  }
}
@media (max-width:760px){
  footer .footer-menu-nav, .footer-menu-nav{
    display:block!important;
    visibility:visible!important;
    height:auto!important;
    overflow:visible!important;
    margin:14px auto 0!important;
    padding:12px 0 0!important;
    border-top:1px solid rgba(255,255,255,.14)!important;
  }
  footer .footer-menu-list, .footer-menu-list{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px 10px!important;
    margin:0!important;
    padding:0!important;
  }
  footer .footer-menu-list li, .footer-menu-list li{list-style:none!important;margin:0!important;padding:0!important;}
}
.tgc-video-empty{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex-direction:column!important;
  gap:10px!important;
  min-height:260px!important;
  background:linear-gradient(135deg,var(--blue),var(--gold))!important;
  color:#fff!important;
  text-align:center!important;
  padding:22px!important;
}
.tgc-video-empty p{margin:0!important;color:#fff!important;font-size:14px!important;}
.tgc-video-empty .play-red{position:static!important;transform:none!important;}

/* === dot vn Studio v11: mobile homepage stable layout repair ===
   Mục tiêu: mobile gọn, không xộc xệch; chỉ 2 cột ở icon/card tin/topic/thumbnail nhỏ.
*/
@media (max-width:760px){
  html,body{overflow-x:hidden!important;}
  .container{width:calc(100% - 24px)!important;max-width:100%!important;}
  .edustory-front-home{padding-top:10px!important;}
  .edustory-front-home *,
  .edustory-front-home *::before,
  .edustory-front-home *::after{box-sizing:border-box!important;}

  /* Khối lớn giữ 1 cột sạch */
  .edustory-front-home .top-grid,
  .edustory-front-home .content-grid,
  .edustory-front-home .hero-area,
  .edustory-front-home .two-col,
  .edustory-front-home .authors-video,
  .edustory-front-home .video-layout,
  .edustory-front-home .cta-row,
  body.home .top-grid,
  body.home .content-grid,
  body.home .hero-area,
  body.home .two-col,
  body.home .authors-video,
  body.home .video-layout,
  body.home .cta-row,
  body.front-page .top-grid,
  body.front-page .content-grid,
  body.front-page .hero-area,
  body.front-page .two-col,
  body.front-page .authors-video,
  body.front-page .video-layout,
  body.front-page .cta-row{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:14px!important;
    align-items:start!important;
  }

  .edustory-front-home .section{margin-bottom:20px!important;}
  .edustory-front-home .section-head{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
    margin-bottom:10px!important;
  }
  .edustory-front-home .section-title{
    font-size:15px!important;
    line-height:1.25!important;
    letter-spacing:0!important;
  }
  .edustory-front-home .view-more{font-size:11px!important;white-space:nowrap!important;}
  .edustory-front-home .view-more i{margin-left:5px!important;}

  /* Hero gọn, không cao quá */
  .edustory-front-home .hero{
    min-height:258px!important;
    height:258px!important;
    border-radius:12px!important;
  }
  .edustory-front-home .hero-copy{left:16px!important;right:16px!important;bottom:16px!important;}
  .edustory-front-home .hero-copy .label{font-size:9px!important;padding:4px 7px!important;margin-bottom:7px!important;}
  .edustory-front-home .hero h1{
    font-size:20px!important;
    line-height:1.22!important;
    margin:0 0 7px!important;
    display:-webkit-box!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
  }
  .edustory-front-home .hero p{
    font-size:12px!important;
    line-height:1.42!important;
    margin:0 0 9px!important;
    display:-webkit-box!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
  }
  .edustory-front-home .hero-dots{display:none!important;}
  .edustory-front-home .read-more{font-size:11px!important;padding:7px 10px!important;}

  /* Tin phụ ngay cạnh hero: 2 cột dạng card nhỏ */
  .edustory-front-home .story-stack{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }
  .edustory-front-home .stack-card{
    display:flex!important;
    flex-direction:column-reverse!important;
    gap:0!important;
    min-height:0!important;
    padding:0!important;
    border-radius:11px!important;
    overflow:hidden!important;
    background:#fff!important;
    box-shadow:0 8px 20px rgba(15,23,42,.06)!important;
  }
  .edustory-front-home .stack-card > div{padding:8px!important;min-width:0!important;}
  .edustory-front-home .stack-card img{
    width:100%!important;
    height:88px!important;
    border-radius:0!important;
    object-fit:cover!important;
  }
  .edustory-front-home .stack-card .tag{font-size:8.5px!important;padding:3px 5px!important;margin-bottom:5px!important;}
  .edustory-front-home .stack-card h3{
    font-size:12px!important;
    line-height:1.28!important;
    margin:0!important;
    display:-webkit-box!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
  }
  .edustory-front-home .stack-card p,
  .edustory-front-home .stack-card .arrow-circle{display:none!important;}

  /* Sidebar/top featured nếu xuất hiện trên mobile: 2 cột gọn */
  .edustory-front-home .right-sidebar{
    display:block!important;
    min-width:0!important;
  }
  .edustory-front-home .right-sidebar .side-box{
    padding:12px!important;
    border-radius:12px!important;
    margin-bottom:14px!important;
  }
  .edustory-front-home .right-sidebar .side-title{font-size:14px!important;margin-bottom:10px!important;}
  .edustory-front-home .featured-list{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }
  .edustory-front-home .featured-item{
    display:flex!important;
    flex-direction:column!important;
    gap:7px!important;
    align-items:stretch!important;
    min-width:0!important;
    padding:0!important;
  }
  .edustory-front-home .featured-item img{
    width:100%!important;
    height:82px!important;
    border-radius:8px!important;
    object-fit:cover!important;
  }
  .edustory-front-home .featured-item h4{
    font-size:11.5px!important;
    line-height:1.28!important;
    margin:0 0 3px!important;
    display:-webkit-box!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
  }
  .edustory-front-home .featured-item .meta{font-size:9.5px!important;}

  /* Icon/category homepage: luôn 2 cột */
  .edustory-front-home .category-row,
  body.home .category-row,
  body.front-page .category-row{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    padding:8px!important;
    border-radius:12px!important;
    overflow:visible!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    margin-top:14px!important;
  }
  .edustory-front-home .cat-icon,
  body.home .cat-icon,
  body.front-page .cat-icon{
    min-height:64px!important;
    border:1px solid var(--line)!important;
    border-radius:11px!important;
    background:#fff!important;
    box-shadow:0 7px 18px rgba(15,23,42,.045)!important;
    font-size:11px!important;
    line-height:1.2!important;
    padding:8px 6px!important;
    gap:6px!important;
  }
  .edustory-front-home .cat-icon i{font-size:18px!important;}

  /* Các grid tin thumbnail/card: 2 cột nhưng card gọn, đều */
  .edustory-front-home .card-grid,
  .edustory-front-home .news-card-grid,
  body.home .card-grid,
  body.home .news-card-grid,
  body.front-page .card-grid,
  body.front-page .news-card-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
    align-items:stretch!important;
  }
  .edustory-front-home .card-grid > .post-card,
  .edustory-front-home .news-card-grid > .post-card,
  body.home .card-grid > .post-card,
  body.home .news-card-grid > .post-card,
  body.front-page .card-grid > .post-card,
  body.front-page .news-card-grid > .post-card{
    display:flex!important;
    flex-direction:column!important;
    min-width:0!important;
    width:auto!important;
    min-height:0!important;
    border-radius:12px!important;
    overflow:hidden!important;
    background:#fff!important;
    box-shadow:0 8px 20px rgba(15,23,42,.06)!important;
  }
  .edustory-front-home .card-grid > .post-card .post-img,
  .edustory-front-home .news-card-grid > .post-card .post-img,
  body.home .card-grid > .post-card .post-img,
  body.home .news-card-grid > .post-card .post-img,
  body.front-page .card-grid > .post-card .post-img,
  body.front-page .news-card-grid > .post-card .post-img{
    display:block!important;
    width:100%!important;
    height:92px!important;
    min-height:92px!important;
    flex:0 0 auto!important;
  }
  .edustory-front-home .post-img img{width:100%!important;height:100%!important;object-fit:cover!important;}
  .edustory-front-home .post-img .tag{
    left:6px!important;
    bottom:6px!important;
    max-width:calc(100% - 12px)!important;
    font-size:8.5px!important;
    padding:3px 5px!important;
  }
  .edustory-front-home .post-body{padding:8px!important;min-width:0!important;}
  .edustory-front-home .post-body h3{
    font-size:12px!important;
    line-height:1.28!important;
    margin:0 0 5px!important;
  }
  .edustory-front-home .post-body h3 a{
    display:-webkit-box!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
  }
  .edustory-front-home .post-body p{
    font-size:10.5px!important;
    line-height:1.35!important;
    margin:0 0 5px!important;
    display:-webkit-box!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
  }
  .edustory-front-home .post-body .meta{font-size:9.5px!important;line-height:1.25!important;}

  /* Topic/icon ảnh nhỏ: 2 cột */
  .edustory-front-home .topic-row,
  body.home .topic-row,
  body.front-page .topic-row{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }
  .edustory-front-home .topic-card{
    min-width:0!important;
    background:#fff!important;
    border:1px solid var(--line)!important;
    border-radius:12px!important;
    padding:8px!important;
    box-shadow:0 8px 20px rgba(15,23,42,.045)!important;
  }
  .edustory-front-home .topic-card img{height:82px!important;border-radius:9px!important;margin-bottom:7px!important;}
  .edustory-front-home .topic-card h4{font-size:12px!important;line-height:1.28!important;margin:0 0 4px!important;}
  .edustory-front-home .topic-card p{font-size:10.5px!important;line-height:1.35!important;margin:0!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;}

  /* Box danh sách / tác giả / video sạch lại */
  .edustory-front-home .list-box,
  .edustory-front-home .topic-scroll,
  .edustory-front-home .video-podcast{
    padding:12px!important;
    border-radius:12px!important;
  }
  .edustory-front-home .number-list li{
    grid-template-columns:22px minmax(0,1fr) 48px!important;
    gap:8px!important;
    font-size:11px!important;
  }
  .edustory-front-home .author{
    grid-template-columns:42px minmax(0,1fr) 62px!important;
    gap:8px!important;
  }
  .edustory-front-home .author img{width:42px!important;height:42px!important;}
  .edustory-front-home .author h4{font-size:12px!important;line-height:1.25!important;}
  .edustory-front-home .author p{font-size:10.5px!important;-webkit-line-clamp:2!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;overflow:hidden!important;}
  .edustory-front-home .follow{height:28px!important;font-size:10px!important;}
  .edustory-front-home .video-main{min-height:0!important;border-radius:12px!important;}
  .edustory-front-home .real-video-card .tgc-video-embed{min-height:0!important;aspect-ratio:16/9!important;border-radius:12px!important;}
  .edustory-front-home .video-main .caption{
    position:static!important;
    max-width:none!important;
    padding:9px!important;
    background:#fff!important;
    color:var(--text)!important;
  }
  .edustory-front-home .video-main h3{font-size:13px!important;line-height:1.3!important;margin:0 0 4px!important;}
  .edustory-front-home .video-main p{font-size:11px!important;line-height:1.35!important;color:var(--muted)!important;}
  .edustory-front-home .video-time{display:none!important;}
  .edustory-front-home .small-videos{display:grid!important;grid-template-columns:1fr!important;gap:9px!important;}
  .edustory-front-home .small-video{display:grid!important;grid-template-columns:82px minmax(0,1fr)!important;gap:9px!important;align-items:center!important;}

  /* CTA và footer sạch */
  .edustory-front-home .cta{grid-template-columns:1fr!important;min-height:0!important;padding:16px!important;border-radius:12px!important;}
  .edustory-front-home .cta h3{font-size:16px!important;line-height:1.25!important;}
  footer .footer-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px 14px!important;}
  footer .footer-grid > div:first-child{grid-column:1 / -1!important;}
}
@media (max-width:390px){
  .edustory-front-home .card-grid,
  .edustory-front-home .news-card-grid,
  .edustory-front-home .topic-row,
  .edustory-front-home .story-stack,
  .edustory-front-home .featured-list,
  .edustory-front-home .category-row{gap:8px!important;}
  .edustory-front-home .card-grid > .post-card .post-img,
  .edustory-front-home .news-card-grid > .post-card .post-img{height:86px!important;min-height:86px!important;}
}

/* === Logo natural aspect ratio fix v12 ===
   Desktop: custom/uploaded logo is 368px wide and keeps natural height.
   Mobile: logo scales down by width and keeps natural height. */
@media (min-width:1121px){
  .header-main{
    grid-template-columns:368px minmax(0,1fr) 360px!important;
  }
  .header .logo{
    width:368px!important;
    max-width:368px!important;
    min-width:0!important;
    flex:0 0 368px!important;
    display:flex!important;
    align-items:center!important;
  }
  .header .custom-logo,
  .header .logo > img{
    width:368px!important;
    max-width:368px!important;
    height:auto!important;
    max-height:none!important;
    aspect-ratio:auto!important;
    object-fit:contain!important;
    display:block!important;
  }
}
@media (max-width:1120px){
  .header .custom-logo,
  .header .logo > img{
    width:min(368px,100%)!important;
    max-width:100%!important;
    height:auto!important;
    max-height:none!important;
    aspect-ratio:auto!important;
    object-fit:contain!important;
    display:block!important;
  }
}
@media (max-width:760px){
  .header .logo{
    width:auto!important;
    max-width:132px!important;
    flex:0 1 132px!important;
  }
  .header .custom-logo,
  .header .logo > img{
    width:min(128px,28vw)!important;
    max-width:128px!important;
    height:auto!important;
    max-height:none!important;
    aspect-ratio:auto!important;
    object-fit:contain!important;
  }
}

