/* ==========================================================
   BLOG.CSS — Meg World Technologies Malaysia
   Blog page only. Reuses design tokens, buttons, eyebrow,
   section-tag and shine/hover language already defined in
   home.css (:root variables, .btn, .eyebrow, .section-tag).
   ========================================================== */

/* ===== SHARED BLOG UTILITIES ===== */
.blog-eyebrow{margin-bottom:16px;}

.nav-links li.active a.nav-link{color:var(--blue);}

/* ===== BLOG HERO ===== */


.blog-hero{position:relative;padding:20px 0 90px;background:url('assets/banner_img/blog1.webp') center/cover no-repeat;overflow:hidden;height: 458px;}

.blog-hero::after{display:none;}

.blog-hero .container{position:relative;z-index:2;}

.blog-breadcrumb{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:rgba(255,255,255,.7);margin-bottom:22px;flex-wrap:wrap;}

.blog-breadcrumb a{color:rgba(255,255,255,.85);transition:.3s;}

.blog-breadcrumb a:hover{color:#fff;}

.blog-breadcrumb .sep{opacity:.7;color:#fff;}

.blog-breadcrumb .current{color:#fff;}

.blog-hero-content{max-width:640px;}

.blog-hero .eyebrow{color:#2563eb;}

.blog-hero .eyebrow::before{background:#cfe0ff;}

.blog-hero-content h1{font-family:'Manrope',sans-serif;font-size:clamp(32px,4vw,48px);line-height:1.18;color:#0c0c0c;font-weight:800;margin-bottom:18px;letter-spacing:-0.02em;}

.blog-hero-content h1 .accent{display:block;background:none;color:#2563eb;-webkit-background-clip:initial;-webkit-text-fill-color:initial;background-clip:initial;}

.blog-hero-content p{font-size:16.5px;line-height:1.85;color:rgba(6,6,6,.85);max-width:540px;font-weight:bold;}

@media(max-width:768px){.blog-hero{padding:90px 0 60px;}.blog-hero-content h1{font-size:34px;}.blog-hero-content p{font-size:15px;}}

/* ===== BLOG INTRO ===== */
.blog-intro{padding:50px 0 20px;}

.blog-intro-head{max-width:720px;margin:0 auto;text-align:center;}

.blog-intro-head h2{
  font-size:clamp(26px,3vw,36px);line-height:1.2;
  margin-bottom:14px;color:#101828;font-weight:800;
}

.blog-intro-head h2 span{color:#2563eb;}

.blog-intro-head p{color:#64748b;font-size:16px;line-height:1.85;}

@media(max-width:768px){.blog-intro{padding:48px 0 12px;}}

/* ===== BLOG SEARCH + CATEGORIES ===== */
.blog-toolbar{padding:36px 0 8px;}

.blog-search{
  position:relative;max-width:440px;margin:0 auto 26px;
}

.blog-search i{
  position:absolute;left:20px;top:50%;transform:translateY(-50%);
  color:#94a3b8;font-size:15px;pointer-events:none;
}

.blog-search input{
  width:100%;height:50px;padding:0 20px 0 48px;
  border-radius:100px;border:1.5px solid var(--border);
  font-family:'Inter',sans-serif;font-size:14.5px;color:var(--dark);
  background:#fff;transition:.3s ease;box-shadow:0 6px 18px rgba(15,23,42,.04);
}

.blog-search input:focus{
  outline:none;border-color:var(--blue);
  box-shadow:0 10px 26px rgba(13,91,255,.14);
}

.blog-cat-filters{
  display:flex;flex-wrap:wrap;justify-content:center;gap:10px;
  margin-bottom:8px;
}

.cat-btn{
  padding:10px 20px;border-radius:100px;
  border:1.5px solid var(--border);background:#fff;
  font-size:13.5px;font-weight:600;color:#475569;
  transition:.3s ease;white-space:nowrap;
}

.cat-btn:hover{border-color:var(--blue);color:var(--blue);background:var(--blue-tint);}

.cat-btn.active{
  background:var(--blue);border-color:var(--blue);color:#fff;
  box-shadow:0 10px 22px rgba(13,91,255,.25);
}

@media(max-width:576px){
  .blog-cat-filters{gap:8px;}
  .cat-btn{padding:8px 16px;font-size:12.5px;}
}

/* ===== FEATURED ARTICLE ===== */
.featured-section{padding:36px 0 10px;}

.featured-card{
  position:relative;display:grid;grid-template-columns:1fr 1fr;
  gap:0;background:#fff;border:1px solid #e7edf7;border-radius:24px;
  overflow:hidden;box-shadow:0 20px 50px rgba(15,23,42,.08);
}

.featured-media{position:relative;min-height:280px;display:flex;align-items:center;justify-content:center;overflow:hidden;}

.featured-media i{font-size:64px;color:rgba(255,255,255,.92);position:relative;z-index:2;}

.featured-media::after{
  content:"";position:absolute;top:-160%;left:-90%;width:45%;height:420%;
  background:linear-gradient(120deg,transparent,rgba(255,255,255,.35),transparent);
  transform:rotate(25deg);transition:1s ease;pointer-events:none;
}

.featured-card:hover .featured-media::after{left:170%;}

.featured-body{padding:40px 44px;display:flex;flex-direction:column;align-items:flex-start;}

.featured-body h2{
  font-size:clamp(22px,2.4vw,28px);line-height:1.3;margin:14px 0 12px;
  font-weight:800;color:#101828;
}

.featured-body h2 a{color:inherit;transition:.3s;}
.featured-card:hover .featured-body h2 a{color:#2563eb;}

.featured-body p{color:#64748b;font-size:15px;line-height:1.85;margin-bottom:18px;}

.featured-meta{margin-bottom:22px;}

@media(max-width:900px){
  .featured-card{grid-template-columns:1fr;}
  .featured-media{min-height:200px;}
  .featured-body{padding:28px;}
}

/* ===== BLOG GRID ===== */
.blog-grid-section{padding:44px 0 10px;}

.blog-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:26px;
}

.no-results{
  text-align:center;color:#64748b;font-size:15px;padding:60px 20px;
}

@media(max-width:1100px){.blog-grid{grid-template-columns:repeat(2,1fr);}}
@media(max-width:640px){.blog-grid{grid-template-columns:1fr;gap:20px;}}

/* ===== POSTER IMAGES (replace FA icons in media areas) ===== */
.poster-img{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;z-index:1;
}

/* ===== BLOG CARD ===== */
.blog-card{
  position:relative;display:flex;flex-direction:column;
  background:#fff;border:1px solid #e7edf7;border-radius:20px;
  overflow:hidden;transition:all .4s cubic-bezier(.22,1,.36,1);
  box-shadow:0 10px 28px rgba(15,23,42,.05);
}

.blog-card.hide{display:none;}

.blog-card-media{
  position:relative;height:170px;display:flex;align-items:center;justify-content:center;
  overflow:hidden;transition:.5s ease;
}

.blog-card-media i{
  font-size:40px;color:rgba(255,255,255,.92);
  transition:transform .5s cubic-bezier(.22,1,.36,1);
  position:relative;z-index:2;
}

.blog-card-media::after{
  content:"";position:absolute;top:-170%;left:-90%;width:45%;height:420%;
  background:linear-gradient(120deg,transparent,rgba(255,255,255,.4),transparent);
  transform:rotate(25deg);transition:1s ease;pointer-events:none;
}

.blog-card:hover .blog-card-media::after{left:170%;}
.blog-card:hover .blog-card-media i{transform:scale(1.12);}
.blog-card:hover .blog-card-media{transform:scale(1.03);}

.blog-card-body{padding:24px 24px 26px;display:flex;flex-direction:column;flex:1;}

.blog-card-meta{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  margin-bottom:12px;flex-wrap:wrap;
}

.blog-card-cat{
  display:inline-block;padding:5px 13px;border-radius:30px;
  background:linear-gradient(135deg,#2563eb,#60a5fa);color:#fff;
  font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
}

.blog-card-date{font-size:12.5px;color:#94a3b8;font-weight:500;white-space:nowrap;}

.blog-card-title{font-size:18px;line-height:1.4;margin-bottom:10px;}

.blog-card-title a{color:#101828;font-weight:800;transition:.3s;}

.blog-card:hover .blog-card-title a{color:#2563eb;}

.blog-card-excerpt{
  font-size:14px;line-height:1.75;color:#64748b;margin-bottom:18px;
  flex:1;
}

.blog-card-btn{
  display:inline-flex;align-items:center;gap:8px;
  font-size:13.5px;font-weight:700;color:#2563eb;
  margin-top:auto;transition:.3s ease;
}

.blog-card-btn i{font-size:12px;transition:.3s ease;}

.blog-card:hover .blog-card-btn{gap:13px;}
.blog-card:hover .blog-card-btn i{transform:translateX(5px);}

.blog-card:hover{
  transform:translateY(-8px);
  border-color:#2563eb;
  box-shadow:0 26px 50px rgba(37,99,235,.15);
}

/* Card media gradient themes (kept within the site's blue/teal palette) */
.img-web{background:linear-gradient(135deg,#0D5BFF,#38bdf8);}
.img-mobile{background:linear-gradient(135deg,#1d4ed8,#818cf8);}
.img-software{background:linear-gradient(135deg,#0A46CC,#3b82f6);}
.img-crm{background:linear-gradient(135deg,#2563eb,#06b6d4);}
.img-hrm{background:linear-gradient(135deg,#1e3a8a,#60a5fa);}
.img-retail{background:linear-gradient(135deg,#0d5bff,#4FD1C5);}
.img-restaurant{background:linear-gradient(135deg,#1d4ed8,#38bdf8);}
.img-hotel{background:linear-gradient(135deg,#312e81,#6366f1);}
.img-realestate{background:linear-gradient(135deg,#0A46CC,#818cf8);}
.img-seo{background:linear-gradient(135deg,#2563eb,#0ea5e9);}
.img-ai{background:linear-gradient(135deg,#4338ca,#0D5BFF);}
.img-cloud{background:linear-gradient(135deg,#0ea5e9,#0D5BFF);}
.img-industry{background:linear-gradient(135deg,#0A46CC,#4FD1C5);}
.img-biztech{background:linear-gradient(135deg,#0D5BFF,#2f7bff);}

/* ===== ARTICLE CONTENT (reading view) ===== */
.article-view{padding:48px 0 20px;}

.article-header{max-width:820px;margin:0 auto 36px;}

.article-category{
  display:inline-block;padding:6px 16px;border-radius:30px;
  background:#eef5ff;color:#2563eb;font-size:11.5px;font-weight:700;
  letter-spacing:.1em;text-transform:uppercase;margin-bottom:16px;
}

.article-header h1{
  font-size:clamp(28px,3.6vw,42px);line-height:1.2;
  color:#101828;font-weight:800;margin-bottom:18px;
}

.article-meta-row{
  display:flex;align-items:center;gap:16px;flex-wrap:wrap;
  font-size:13.5px;color:#94a3b8;font-weight:600;margin-bottom:8px;
}

.article-meta-row .dot{opacity:.6;}

.article-hero-media{
  max-width:960px;margin:8px auto 40px;height:280px;border-radius:22px;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 20px 45px rgba(15,23,42,.12);position:relative;overflow:hidden;
}

.article-hero-media i{font-size:72px;color:rgba(255,255,255,.9);}

.article-content-wrap{
  max-width:760px;margin:0 auto;
}

.article-intro{
  font-size:18px;line-height:1.85;color:#334155;font-weight:500;
  margin-bottom:28px;padding-bottom:28px;border-bottom:1px solid #eef1f6;
}

.article-body h2{
  font-size:24px;line-height:1.3;color:#101828;font-weight:800;
  margin:34px 0 14px;
}

.article-body h3{
  font-size:19px;color:#101828;font-weight:700;margin:24px 0 10px;
}

.article-body p{
  font-size:16px;line-height:1.9;color:#475569;margin-bottom:16px;
}

.article-body ul{
  margin:0 0 20px;padding:0;list-style:none;display:flex;flex-direction:column;gap:10px;
}

.article-body ul li{
  position:relative;padding-left:26px;font-size:15.5px;line-height:1.8;color:#475569;
}

.article-body ul li::before{
  content:"\f00c";font-family:"Font Awesome 6 Free";font-weight:900;
  position:absolute;left:0;top:2px;color:#2563eb;font-size:12px;
}

.article-internal-link{
  margin-top:24px;padding:20px 24px;background:#f8fafc;border:1px solid #eef1f6;
  border-radius:16px;font-size:15px;line-height:1.8;color:#475569;
}

.article-internal-link a{color:#2563eb;font-weight:700;}
.article-internal-link a:hover{text-decoration:underline;}

.article-back{
  display:inline-flex;align-items:center;gap:8px;
  font-size:14px;font-weight:700;color:#2563eb;margin-bottom:24px;
}

.article-back i{font-size:12px;transition:.3s;}
.article-back:hover i{transform:translateX(-4px);}

@media(max-width:768px){
  .article-hero-media{height:200px;border-radius:16px;}
  .article-hero-media i{font-size:52px;}
  .article-intro{font-size:16px;}
  .article-body h2{font-size:21px;}
}

/* ===== RELATED ARTICLES ===== */
.related-section{padding:56px 0 10px;max-width:1100px;margin:0 auto;}

.related-section .section-head{max-width:100%;text-align:center;margin-bottom:34px;}

.related-section .section-head h2{
  font-size:clamp(22px,2.6vw,30px);color:#101828;font-weight:800;
}

.related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;}

@media(max-width:900px){.related-grid{grid-template-columns:1fr;}}

/* ===== BLOG CTA ===== */
.blog-cta-section{padding:70px 0 90px;}

.blog-cta-banner{
  position:relative;padding:52px 48px;border-radius:26px;text-align:center;
  background:linear-gradient(135deg,#2563eb,#1d4ed8,#3b82f6);
  overflow:hidden;box-shadow:0 24px 55px rgba(37,99,235,.18);
}

.blog-cta-banner::before{
  content:"";position:absolute;right:-90px;top:-90px;width:220px;height:220px;
  border-radius:50%;background:rgba(255,255,255,.08);
}

.blog-cta-banner::after{
  content:"";position:absolute;top:-180%;left:-70%;width:35%;height:420%;
  background:linear-gradient(120deg,transparent,rgba(255,255,255,.25),transparent);
  transform:rotate(25deg);animation:blogCtaShine 6s linear infinite;
}

@keyframes blogCtaShine{
  0%{left:-70%;}
  50%{left:170%;}
  100%{left:170%;}
}

.blog-cta-banner .section-tag{background:rgba(255,255,255,.14);color:#fff;}

.blog-cta-banner h2{
  position:relative;z-index:2;color:#fff;font-size:clamp(26px,3.2vw,38px);
  font-weight:800;margin-bottom:14px;line-height:1.25;
}

.blog-cta-banner h2 span{color:#c9e0ff;}

.blog-cta-banner p{
  position:relative;z-index:2;color:rgba(255,255,255,.88);max-width:600px;
  margin:0 auto 30px;font-size:16px;line-height:1.85;
}

.blog-cta-actions{
  position:relative;z-index:2;display:flex;align-items:center;justify-content:center;
  gap:16px;flex-wrap:wrap;
}

.blog-cta-actions .btn-outline{
  background:rgba(255,255,255,.08);color:#fff;border-color:rgba(255,255,255,.35);
}

.blog-cta-actions .btn-outline:hover{
  background:#fff;color:#2563eb;border-color:#fff;
}

@media(max-width:768px){
  .blog-cta-banner{padding:38px 26px;border-radius:20px;}
  .blog-cta-actions{flex-direction:column;width:100%;}
  .blog-cta-actions .btn{width:100%;justify-content:center;}
}

/* ===== RESPONSIVE (page-wide fixes) ===== */
@media(max-width:1100px){
  .blog-grid-section .container,
  .featured-section .container{padding:0 20px;}
}

@media(max-width:480px){
  .blog-hero{padding:40px 0 32px;}
  .blog-intro{padding:40px 0 8px;}
  .featured-body{padding:22px;}
  .blog-card-body{padding:20px 20px 22px;}
  .blog-search input{height:46px;font-size:14px;}
}

html,body{overflow-x:clip;}
/* ==================================================
   GLOBAL MOBILE HEADING STANDARD
   Keep all page headings consistent on mobile
   ================================================== */

@media (max-width: 768px){

    h1{font-size:32px !important;line-height:1.2 !important;}

    h2{font-size:25px !important;line-height:1.25 !important;}

    h3{font-size:22px !important;line-height:1.3 !important;}

    h4{font-size:18px !important;line-height:1.35 !important;}

    h5{font-size:16px !important;line-height:1.4 !important;}

    h6{font-size:14px !important;line-height:1.4 !important;}

}
/* ==================================================
   GLOBAL MOBILE SECTION SPACING
   Reduce excessive gaps between sections
   ================================================== */

@media (max-width:768px){

    section{margin-top:0 !important;margin-bottom:0 !important;padding-top:35px !important;padding-bottom:35px !important;}

    section+section{margin-top:0 !important;}

    .container{padding-left:16px !important;padding-right:16px !important;}

    .section-heading{margin-bottom:25px !important;}

    .section-title{margin-bottom:10px !important;}

    .section-subtitle{margin-bottom:20px !important;}

}
/* ==================================================
   BLOG HERO — MOBILE
   SAME STYLE AS ABOUT / SERVICES / PORTFOLIO
   ================================================== */

@media (max-width:576px){

    /* -----------------------------------------------
       BLOG HERO
       ----------------------------------------------- */

    .blog-hero{
        position:relative !important;
        overflow:hidden !important;

        background-position:right center !important;
        background-size:cover !important;
        background-repeat:no-repeat !important;
    }


    /* -----------------------------------------------
       BLUE / BLACK OVERLAY
       ----------------------------------------------- */

    .blog-hero::before{
        content:"" !important;

        position:absolute !important;
        inset:0 !important;

        width:100% !important;
        height:100% !important;

        background:rgba(0,20,70,.40) !important;

        z-index:1 !important;

        pointer-events:none !important;
    }


    /* -----------------------------------------------
       HERO CONTENT
       ----------------------------------------------- */

    .blog-hero-content{
        position:relative !important;

        z-index:5 !important;

        width:100% !important;
        max-width:100% !important;

        margin:0 auto !important;

        padding-top:30px !important;
        padding-left:16px !important;
        padding-right:16px !important;

        text-align:center !important;
    }


    /* -----------------------------------------------
       EYEBROW / TOP PILL
       ----------------------------------------------- */

    .blog-hero .eyebrow{
        display:flex !important;

        align-items:center !important;
        justify-content:center !important;

        width:max-content !important;
        max-width:100% !important;

        margin:0 auto 18px !important;

        padding:9px 20px !important;

        background:#ffffff !important;

        border:none !important;
        border-radius:40px !important;

        color:#2563eb !important;

        font-size:10px !important;
        font-weight:800 !important;

        line-height:1.2 !important;

        letter-spacing:2px !important;

        text-align:center !important;

        white-space:nowrap !important;

        box-shadow:
            0 4px 15px rgba(0,0,0,.10) !important;
    }


    /* -----------------------------------------------
       EYEBROW BLUE LINE
       ----------------------------------------------- */

    .blog-hero .eyebrow::before{
        content:"" !important;

        display:block !important;

        width:22px !important;
        height:2px !important;

        margin-right:10px !important;

        background:#2563eb !important;

        border-radius:10px !important;

        flex-shrink:0 !important;
    }


    /* -----------------------------------------------
       MAIN HEADING
       ----------------------------------------------- */

    .blog-hero h1{
        position:relative !important;

        z-index:6 !important;

        width:100% !important;
        max-width:100% !important;

        margin:0 auto 18px !important;

        color:#ffffff !important;

        font-size:32px !important;

        line-height:1.2 !important;

        font-weight:800 !important;

        text-align:center !important;

        text-shadow:
            0 2px 4px rgba(0,0,0,.90),
            0 4px 12px rgba(0,0,0,.65) !important;
    }


    /* -----------------------------------------------
       ACCENT
       ----------------------------------------------- */

    .blog-hero h1 .accent{
        color:#ffffff !important;

        background:none !important;

        -webkit-background-clip:initial !important;

        background-clip:initial !important;

        -webkit-text-fill-color:#ffffff !important;

        text-shadow:
            0 2px 5px rgba(0,0,0,.90) !important;
    }


    /* -----------------------------------------------
       DESCRIPTION
       ----------------------------------------------- */

    .blog-hero p{
        position:relative !important;

        z-index:6 !important;

        width:100% !important;
        max-width:100% !important;

        margin:0 auto !important;

        color:#ffffff !important;

        font-size:15px !important;

        font-weight:600 !important;

        line-height:1.7 !important;

        text-align:center !important;

        text-shadow:
            0 2px 5px rgba(0,0,0,.90),
            0 3px 10px rgba(0,0,0,.60) !important;
    }

}

/* =========================================================
   BLOG HERO - MOBILE BANNER
   ========================================================= */

@media screen and (max-width: 576px) {

    .blog-hero {
        background-image: url("assets/mobile_banner/blog.webp") !important;
        background-size: cover !important;
        background-position: center top !important;
        background-repeat: no-repeat !important;

        min-height: 650px !important;
        overflow: hidden !important;
    }

    /* Hide HTML overlay */
    .blog-hero-overlay,
    .blog-hero .hero-overlay,
    .blog-hero .overlay {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        background: transparent !important;
    }

    /* Remove pseudo-element overlays */
    .blog-hero::before,
    .blog-hero::after {
        display: none !important;
        content: none !important;
        opacity: 0 !important;
        background: none !important;
    }

    /* Hide HTML hero content */
    .blog-hero-content {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

}