/* ==========================================
   MYGRED LANDING PAGE
========================================== */

#headerWrapper.mygred-hero {
    background:
        radial-gradient(circle at 85% 30%,
            rgba(34, 197, 94, 0.07),
            transparent 42%),
        linear-gradient(135deg, #ffffff, #f7fbff);

    min-height: 780px;
    display: flex;
    align-items: center;
    padding: 85px 0;
    overflow: hidden;
}

.mygred-hero .header-wrapper {
    width: 100%;
}

/* LABEL ATAS */

.mygred-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #64748b;
}

.mygred-dot {
    width: 9px;
    height: 9px;
    background: #16a34a;
    border-radius: 50%;
}

/* TAJUK */

.mygred-title {
    font-size: clamp(58px, 6vw, 92px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -3px;
}

.mygred-title-my {
    color: #252b42;
}

.mygred-title-gred {
    background: linear-gradient(100deg,
            #078343 0%,
            #059669 40%,
            #087ac5 100%);

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mygred-subtitle {
    font-size: clamp(25px, 3vw, 37px);
    font-weight: 750;
    line-height: 1.25;
    color: #252b42;
}

.mygred-description {
    font-size: 17px;
    line-height: 1.9;
    color: #64748b;
    max-width: 570px;
}

/* BUTANG UTAMA */

.mygred-primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #252b42;
    color: #fff;
    border-radius: 10px;
    padding: 15px 27px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    transition: all 0.25s ease;
    box-shadow: 0 10px 25px rgba(37, 43, 66, 0.12);
}

.mygred-primary-btn:hover {
    background: #087c52;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(8, 124, 82, 0.18);
}

/* AKSES PANTAS */

.mygred-section-label {
    font-weight: 700;
    color: #252b42;
    font-size: 14px;
}

.mygred-quick-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 150px;
    height: 100%;
    padding: 20px 16px;
    background: #fff;
    border: 1px solid #eef1f5;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 8px 25px rgba(30, 41, 59, 0.04);
}

.mygred-quick-card:hover {
    transform: translateY(-5px);
    border-color: #bbf7d0;
    box-shadow: 0 15px 35px rgba(30, 41, 59, 0.10);
}

.mygred-icon {
    width: 43px;
    height: 43px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 14px;
}

.mygred-icon i {
    font-size: 23px;
}

.bg-green {
    background: linear-gradient(135deg, #16a34a, #047857);
}

.bg-red {
    background: linear-gradient(135deg, #fb7185, #e11d48);
}

.bg-blue {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.mygred-card-title {
    color: #252b42;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 5px;
}

.mygred-card-desc {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.5;
}

/* GAMBAR HERO */

.mygred-hero-visual {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    isolation: isolate;
}

.mygred-visual-glow {
    position: absolute;
    width: 85%;
    aspect-ratio: 1;
    background: radial-gradient(circle,
            rgba(34, 197, 94, 0.13),
            rgba(59, 130, 246, 0.07) 50%,
            transparent 75%);
    border-radius: 50%;
    z-index: -1;
}

.mygred-hero-image {
    display: block;
    width: 100%;
    max-width: 680px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 25px rgba(30, 41, 59, 0.10));
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 1199.98px) {

    #headerWrapper.mygred-hero {
        padding: 75px 0;
    }

    .mygred-description {
        margin-left: auto;
        margin-right: auto;
    }

    .mygred-quick-section {
        max-width: 650px;
        margin: 0 auto;
    }

    .mygred-hero-visual {
        margin-top: 15px;
    }

    .mygred-hero-image {
        max-width: 600px;
    }
}

@media (max-width: 575.98px) {

    #headerWrapper.mygred-hero {
        padding: 55px 0;
        min-height: auto;
    }

    .mygred-title {
        font-size: 56px;
        letter-spacing: -2px;
    }

    .mygred-subtitle {
        font-size: 24px;
    }

    .mygred-description {
        font-size: 14px;
        line-height: 1.8;
    }

    .mygred-eyebrow {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .mygred-quick-card {
        min-height: 110px;
        align-items: center;
        text-align: center;
    }

    .mygred-hero-image {
        max-width: 100%;
    }
}

/* ==========================================
   DARK MODE - CORK
========================================== */

body.dark #headerWrapper.mygred-hero {
    background: linear-gradient(135deg,
            #0e1726,
            #17243a);
}

body.dark .mygred-title-my,
body.dark .mygred-subtitle,
body.dark .mygred-section-label {
    color: #f1f5f9;
}

body.dark .mygred-description,
body.dark .mygred-eyebrow {
    color: #a6b0c3;
}

body.dark .mygred-quick-card {
    background: #1b2e4b;
    border-color: #253b58;
}

body.dark .mygred-card-title {
    color: #f1f5f9;
}

body.dark .mygred-card-desc {
    color: #a6b0c3;
}

body.dark .mygred-primary-btn {
    background: #087c52;
}

/* Pastikan penerangan jelas */
#headerWrapper .mygred-description {
    color: #64748b !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-weight: 400;
}

/* Tambah kesan lembut di sebelah kiri */
#headerWrapper.mygred-hero {
    background:
        radial-gradient(ellipse at 18% 45%,
            rgba(16, 185, 129, 0.045),
            transparent 45%),
        radial-gradient(ellipse at 85% 45%,
            rgba(14, 165, 233, 0.07),
            transparent 45%),
        #ffffff;
}

/* Kad lebih menyerlah */
.mygred-quick-card {
    box-shadow: 0 10px 30px rgba(30, 41, 59, 0.07);
}

/* Gambar lebih menonjol */
.mygred-hero-image {
    max-width: 750px;
    filter: drop-shadow(0 20px 30px rgba(30, 41, 59, 0.10));
}

/* Dark mode */
body.dark #headerWrapper .mygred-description {
    color: #a6b0c3 !important;
}


/* ==========================================
   MYGRED FOOTER
========================================== */

/* Footer utama */
#footerWrapper {
    background: #f1f5f9 !important;
    border-top: 1px solid #e2e8f0;
    padding: 55px 0 30px;
}

/* Buang spacing berlebihan daripada template */
#footerWrapper .footer-wrapper {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Logo MBI */
#footerWrapper .navbar-brand img {
    width: 65px;
    height: auto;
    object-fit: contain;
}

/* Maklumat alamat */
#footerWrapper p {
    color: #64748b !important;
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 0;
}

/* Copyright */
#copyrightFooterWrapper {
    background: #e2e8f0 !important;
    border-top: 1px solid #cbd5e1;
    padding: 18px 0;
}

#copyrightFooterWrapper .copyright-footer-wrapper {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

#copyrightFooterWrapper p {
    color: #475569 !important;
    font-size: 13px;
    margin-bottom: 0;
}

#copyrightFooterWrapper a {
    color: #047857 !important;
    font-weight: 600;
    text-decoration: none;
}

#copyrightFooterWrapper a:hover {
    text-decoration: underline;
}

/* ==========================================
   DARK MODE
========================================== */

body.dark #footerWrapper {
    background: #17243a !important;
    border-color: #253b58;
}

body.dark #footerWrapper p {
    color: #a6b0c3 !important;
}

body.dark #copyrightFooterWrapper {
    background: #0e1726 !important;
    border-color: #253b58;
}

body.dark #copyrightFooterWrapper p {
    color: #cbd5e1 !important;
}

body.dark #copyrightFooterWrapper a {
    color: #34d399 !important;
}

/* RESPONSIVE */
@media (max-width: 767.98px) {
    #footerWrapper {
        padding: 35px 0 20px;
    }

    #copyrightFooterWrapper {
        padding: 15px 0;
    }
}