/* =====================================================
 * Theme 5 – Maybank2u Style (Flat Yellow)
 * File : css/theme5.css
 * Last Update: 01/12/2025 (MYT)
 * ===================================================== */

/* ---------------------------------
 * 0) GLOBAL WRAPPER + HIDE KADENCE
 * --------------------------------- */
.wr-landing-wrap {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color:#111827;
    background:#f5f1e6; /* lembut ala dashboard bank */
}

/* content container */
.wr-landing-inner {
    max-width: 1100px;
    margin: 20px auto 40px;
    padding: 20px 15px 40px;
}

/* Hide header Kadence pada page yang guna shortcode ini */
body.page .entry-header,
body.page .page-title,
body.page .kadence-hero-title,
body.page .site-header {
    display:none !important;
}

body.page .content-area,
body.page .entry-content {
    padding-top:0 !important;
    margin-top:0 !important;
}

/* =====================================================
 * 1) HERO BOX – FLAT YELLOW
 * ===================================================== */
.wr-landing-hero {
    border-radius:24px;
    padding:28px 22px 40px;
    margin:0 0 30px;
    background:#ffcf00; /* kuning Maybank */
    color:#111827;
    box-shadow:0 18px 40px rgba(0,0,0,0.18);
    overflow:hidden;
}

.wr-landing-hero-inner {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:22px;
}

/* =====================================================
 * 2) HERO – TEKS
 * ===================================================== */
.wr-hero-text {
    flex:1 1 55%;
    min-width:280px;
}

.wr-hero-meta{
    display:inline-block;
    padding:4px 12px;
    border-radius:999px;
    background:#374151; /* kelabu gelap */
    color:#f9fafb;
    font-weight:600;
    letter-spacing:0.03em;
    font-size:11px;
}

.wr-hero-text h1{
    font-size:clamp(26px, 4vw, 34px);
    margin:10px 0 8px;
    letter-spacing:-0.02em;
    font-weight:800;
    color:#111827;
    text-shadow:0 2px 4px rgba(255,255,255,0.6);
}

.wr-hero-sub{
    max-width:640px;
    margin:0 0 16px;
    font-size:18px;
    line-height:1.6;
    color:#111827;
}

.wr-hero-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    align-items:center;
}

.wr-btn-primary{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:9px 24px 11px;
    border-radius:999px;
    background:#16a34a;     /* hijau butang */
    color:#f9fafb;
    font-weight:700;
    text-decoration:none;
    box-shadow:0 12px 26px rgba(22,163,74,0.55);
    border:2px solid #14532d;
    font-size:15px;
}
.wr-btn-primary:hover{
    filter:brightness(1.03);
    transform:translateY(-1px);
}

/* =====================================================
 * 3) HERO – GAMBAR
 * ===================================================== */
.wr-hero-image{
    flex:1 1 40%;
    min-width:240px;
    text-align:center;
}
.wr-hero-image img{
    max-width:460px;
    width:100%;
    border-radius:22px;
    border:4px solid #f9fafb;
    box-shadow:0 16px 40px rgba(15,23,42,0.65);
    background:#020617;
    object-fit:cover;
}

/* Ada video + gambar: dua column biasa */
.wr-hero-has-video{
    align-items:stretch;
}

/* Gambar sahaja (tanpa YouTube) → stack: teks atas, gambar bawah */
.wr-hero-img-full{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
}
.wr-hero-img-full .wr-hero-text{
    width:100%;
}
.wr-hero-img-full .wr-hero-image{
    margin-top:22px;
    width:100%;
    text-align:center;
}
.wr-hero-img-full .wr-hero-image img{
    width:100%;
    max-width:100%;
    margin:0 auto;
    display:block;
}

/* =====================================================
 * 4) HERO – YouTube box
 * ===================================================== */
.wr-yt-box{
    margin-top:16px;
    border-radius:16px;
    padding:4px;
    background:#111827;
    border:2px solid #facc15;
    box-shadow:0 10px 26px rgba(0,0,0,0.35);
}
.wr-yt-box iframe{
    max-width:100%;
    width:100%;
    display:block;
    border-radius:12px;
    aspect-ratio:16/9;
    height:auto;
}

/* =====================================================
 * 5) SEKSYEN GENERIC
 * ===================================================== */
.wr-landing-section{
    margin-bottom:30px;
    padding:30px 22px 50px; /* atas 30, bawah 50 – space LEGA */
    border-radius:20px;
    background:#ffffff;
    box-shadow:0 10px 24px rgba(15,23,42,0.08);
}

.wr-landing-section h2{
    margin-top:0;
    margin-bottom:12px;
    font-size:20px;
    font-weight:800;
    color:#111827;
}

.wr-landing-section p{
    margin-top:0;
    line-height:1.6;
}

/* Bullet list umum */
.wr-landing-list{
    margin:8px 0 0 18px;
}
.wr-landing-list li{
    margin-bottom:4px;
}

/* =====================================================
 * 6) BUKA MINDA – KOTAK BIRU GELAP
 * ===================================================== */
.wr-mindset-section{
    background:#111827;
    color:#f9fafb;
    text-align:center;
    box-shadow:0 14px 32px rgba(15,23,42,0.4);
}
.wr-mindset-section h2{
    color:#facc15;
    font-size:clamp(22px, 3vw, 30px);
    margin:0 0 10px;
}
.wr-mindset-section p{
    color:#e5e7eb;
    font-size:clamp(16px, 2vw, 18px);
}

/* =====================================================
 * 7) KENAPA JOIN – GRID BENEFIT
 * ===================================================== */
.wr-benefits-section{
    background:#fffef4;
    border:2px solid #facc15;
}

.wr-benefits-list{
    max-width:860px;
    margin:0 auto;
}

.wr-benefits-list ul{
    list-style:none;
    margin:0;
    padding:0;
    display:grid;
    gap:10px 14px;
    grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
}
.wr-benefits-list li{
    position:relative;
    padding:10px 12px 10px 42px;
    border-radius:16px;
    background:#ffffff;
    box-shadow:0 6px 16px rgba(15,23,42,0.08);
    font-size:15px;
    font-weight:600;
    color:#111827;
}
.wr-benefits-list li::before{
    content:"";
    position:absolute;
    left:14px;
    top:50%;
    width:16px;
    height:16px;
    border-radius:999px;
    background:#facc15;
    box-shadow:0 0 0 3px rgba(250,204,21,0.55);
    transform:translateY(-50%);
}

/* =====================================================
 * 8) INFO SYARIKAT
 * ===================================================== */
.wr-company-section{
    background:#111827;
    color:#f9fafb;
    border-radius:22px;
    padding:24px 22px 40px;
    box-shadow:0 18px 40px rgba(15,23,42,0.4);
}

.wr-company-inner{
    max-width:820px;
    margin:0 auto;
}

.wr-company-section h2{
    margin:0 0 4px;
    font-size:14px;
    text-transform:uppercase;
    letter-spacing:0.18em;
    color:#e5e7eb;
}
.wr-company-section h1{
    margin:0 0 12px;
    font-size:clamp(24px, 3vw, 30px);
    font-weight:800;
    letter-spacing:-0.02em;
}

.wr-company-intro p{
    margin:4px 0 6px;
}

.wr-company-meta{
    list-style:none;
    margin:16px 0 0;
    padding:0;
}
.wr-company-meta li{
    display:flex;
    align-items:center;
    gap:8px;
    background:#facc15;
    color:#111827;
    padding:8px 16px 9px;
    border-radius:999px;
    width:fit-content;
    max-width:100%;
}
.wr-company-dot{
    width:14px;
    height:14px;
    border-radius:999px;
    background:#111827;
    flex-shrink:0;
}
.wr-company-meta a{
    color:#1d4ed8;
    font-weight:700;
    text-decoration:underline;
    text-underline-offset:2px;
}

/* =====================================================
 * 9) PRODUK / PAKEJ
 * ===================================================== */
.wr-product-section{
    background:#fff9db;
    border-radius:22px;
    padding:32px 22px 60px;
    box-shadow:0 18px 40px rgba(15,23,42,0.12);
}

.wr-product-heading{
    margin:0 0 18px;
    text-align:center;
    font-size:clamp(20px, 2.6vw, 26px);
    font-weight:800;
    color:#111827;
}

.wr-product-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
    gap:18px;
}

.wr-product-card{
    background:#ffffff;
    border-radius:20px;
    padding:12px 14px 14px;
    box-shadow:0 10px 24px rgba(15,23,42,0.10);
    display:flex;
    flex-direction:column;
    height:100%;
}

.wr-product-image-wrap{
    border-radius:16px;
    overflow:hidden;
    border:2px solid #facc15;
    margin-bottom:10px;
}

.wr-product-image-wrap img,
.wr-product-placeholder{
    width:100%;
    display:block;
}

.wr-product-placeholder{
    padding:40px 10px;
    text-align:center;
    background:#f3f4f6;
    color:#6b7280;
}

.wr-product-title{
    margin:0 0 6px;
    font-size:16px;
    font-weight:700;
}

.wr-product-desc{
    max-height:0;
    overflow:hidden;
    transition:max-height 0.35s ease;
}
.wr-product-desc-inner{
    font-size:14px;
    line-height:1.5;
    color:#374151;
    padding-top:2px;
}
.wr-product-card.is-open .wr-product-desc{
    max-height:260px;
}
.wr-product-desc-inner p{
    margin:0 0 6px;
}

.wr-product-toggle{
    margin-top:6px;
    align-self:flex-start;
    border:none;
    border-radius:999px;
    padding:5px 14px 6px;
    font-size:13px;
    font-weight:600;
    cursor:pointer;
    background:#111827;
    color:#f9fafb;
}

/* Video produk */
.wr-product-video-wrap{
    margin:1.5rem 0 2rem;
}
.wr-product-video-inner{
    position:relative;
    width:100%;
    padding-bottom:56.25%;
    height:0;
    overflow:hidden;
    border-radius:16px;
    box-shadow:0 10px 25px rgba(0,0,0,0.12);
}
.wr-product-video-inner iframe{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
}

/* =====================================================
 * 10) TESTIMONI
 * ===================================================== */
.wr-testimonials{
    display:flex;
    flex-wrap:wrap;
    gap:18px;
}
.wr-testi-card{
    flex:1 1 260px;
    border-radius:16px;
    border:1px solid #e5e7eb;
    padding:14px 14px 16px;
    background:#f9fafb;
}
.wr-testi-head{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:6px;
}
.wr-testi-head img{
    width:46px;
    height:46px;
    border-radius:999px;
    object-fit:cover;
}
.wr-testi-name{
    font-weight:600;
    font-size:14px;
}
.wr-testi-text{
    font-size:14px;
    line-height:1.6;
}

.wr-testi-video-wrap{
    margin:2rem auto 0;
    max-width:900px;
}
.wr-testi-video-inner{
    position:relative;
    width:100%;
    padding-bottom:56.25%;
    height:0;
    overflow:hidden;
    border-radius:16px;
    box-shadow:0 10px 25px rgba(0,0,0,0.12);
    background:#000;
}
.wr-testi-video-inner iframe{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
}

/* =====================================================
 * 11) FINAL CTA
 * ===================================================== */
.wr-final-cta{
    background:#111827;
    color:#f9fafb;
    border-radius:24px;
    padding:32px 22px 70px;
    text-align:center;
    box-shadow:0 18px 40px rgba(15,23,42,0.45);
}
.wr-final-inner{
    max-width:780px;
    margin:0 auto;
}
.wr-final-heading{
    margin:0 0 12px;
    font-size:clamp(20px, 2.4vw, 26px);
    font-weight:800;
    color:#facc15;
}
.wr-final-text{
    font-size:16px;
    line-height:1.6;
    color:#F5E027;
    margin:0 0 20px;
}
.wr-final-actions{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:14px;
}
.wr-final-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:10px 26px 12px;
    border-radius:999px;
    font-size:15px;
    font-weight:700;
    text-decoration:none;
    border:none;
    cursor:pointer;
}

/* WA button */
.wr-final-btn-wa{
    background:#16a34a;
    color:#f9fafb;
    box-shadow:0 14px 32px rgba(22,163,74,0.55);
}

/* Button daftar – hitam kuning */
.wr-final-btn-daftar{
    background:#ffcf00;
    color:#111827;
    border:2px solid #92400e;
}
.wr-final-btn-daftar:hover{
    filter:brightness(1.03);
}

/* =====================================================
 * 12) PAYMENT INFO
 * ===================================================== */
.wr-payment-section{
  margin-top:24px;
}
.wr-payment-heading{
  font-size:20px;
  font-weight:700;
  margin:0 0 10px;
}
.wr-payment-card{
  max-width:640px;
  margin:0 auto;
  padding:16px 18px;
  border-radius:16px;
  background:#111827;
  color:#f9fafb;
  box-shadow:0 14px 30px rgba(15,23,42,0.45);
}
.wr-payment-intro{
  font-size:16px;
  opacity:.92;
  margin-bottom:10px;
  color:#fef9c3;
}
.wr-payment-list{
  list-style:none;
  margin:0 0 10px;
  padding:0;
  font-size:14px;
}
.wr-payment-item{
  margin-bottom:4px;
}
.wr-payment-label{
  font-weight:700;
  margin-right:4px;
}
.wr-payment-acc{
  letter-spacing:0.03em;
}
.wr-payment-qr{
  margin-top:12px;
  text-align:center;
}
.wr-payment-qr-text{
  font-size:13px;
  margin-bottom:6px;
  opacity:.9;
}
.wr-payment-qr-box{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:220px;
  height:220px;
  border-radius:12px;
  background:#fff;
  border:1px solid rgba(148,163,184,0.7);
  overflow:hidden;
}
.wr-payment-qr-img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
}

/* =====================================================
 * 13) PROFILE BLOCK
 * ===================================================== */
.wr-profile-section{
  margin-top:20px;
}
.wr-profile-main{
  padding:18px 12px;
  border-radius:18px;
  background-image:url('../images/bgprofile.jpg');
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}
.wr-profile-card{
  max-width:520px;
  margin:0 auto 10px;
  padding:18px 18px 20px;
  border-radius:18px;
  background:rgba(249,250,251,0.9);
  border:1px solid #e5e7eb;
  text-align:center;
  box-shadow:0 10px 24px rgba(15,23,42,0.08);
  display:flex;
  flex-direction:column;
  align-items:center;
}
.wr-profile-intro{
  margin-bottom:10px;
  font-size:13px;
  color:#6b7280;
}
.wr-profile-img-wrap{
  margin-bottom:10px;
}
.wr-profile-img{
  width:120px;
  height:120px;
  border-radius:999px;
  object-fit:cover;
  border:3px solid #e5e7eb;
  display:block;
  margin:0 auto;
}
.wr-profile-name{
  font-weight:700;
  font-size:18px;
  margin-bottom:4px;
}
.wr-profile-url{
  font-size:13px;
  margin-bottom:14px;
  color:#6b7280;
}
.wa-profile-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:9px 18px;
  border-radius:999px;
  background:#16a34a;
  color:#f9fafb;
  font-weight:700;
  text-decoration:none;
  border:1px solid #14532d;
  font-size:14px;
}
.wr-profile-warning{
  font-size:13px;
  color:#ef4444;
}

/* =====================================================
 * 14) ERROR BOX
 * ===================================================== */
.wr-landing-error{
    max-width:600px;
    margin:20px auto;
    padding:12px 16px;
    border-radius:10px;
    background:#fef2f2;
    border:1px solid #fecaca;
    color:#991b1b;
}

/* =====================================================
 * 15) RESPONSIVE PHONE (≤768px)
 * ===================================================== */
@media (max-width:768px){

    .wr-landing-inner{
        max-width:none;
        padding:0 0 30px;
        margin:0;
    }

    .wr-landing-wrap{
        margin-top:-18px;
    }

    .wr-landing-hero{
        position:relative;
        left:50%;
        right:50%;
        width:100vw;
        margin-left:-50vw;
        margin-right:-50vw;
        border-radius:0;
    }

    .wr-landing-hero-inner{
        flex-direction:column-reverse;
    }

    .wr-hero-image{
        width:100%;
        text-align:center;
        display:flex;
        justify-content:center;
    }
    .wr-hero-image img{
        max-width:100%;
        width:100%;
        display:block;
        margin:0 auto;
    }

    .wr-mindset-section,
    .wr-product-section,
    .wr-final-cta,
    .wr-company-section{
        padding:24px 16px 46px;
    }

    .wr-final-actions{
        flex-direction:column;
    }
    .wr-final-btn{
        width:100%;
        max-width:320px;
        margin-left:auto;
        margin-right:auto;
    }

    .wr-benefits-list li{
        font-size:14px;
    }
}

/* Override khas theme5 – CTA Akhir */
.wr-final-cta .wr-final-heading{
    color:#facc15;
}
