/* HRD Forum - Front Page Styles (extracted from inline <style> for caching) */

.fade-up, .fade-left, .fade-right, .article-card, .contact-card {
    opacity: 0 !important;
    will-change: transform, opacity;
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.fade-up, .article-card, .contact-card { transform: translateY(40px) !important; }
.fade-left { transform: translateX(-40px) !important; }
.fade-right { transform: translateX(40px) !important; }

.fade-up.loaded, .fade-left.loaded, .fade-right.loaded, .article-card.loaded, .contact-card.loaded {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}

.fade-up.loaded[style*="--i:0"], .article-card.loaded:nth-child(1), .contact-card.loaded[style*="--i:0"] { transition-delay: 0.05s !important; }
.fade-up.loaded[style*="--i:1"], .article-card.loaded:nth-child(2), .contact-card.loaded[style*="--i:1"] { transition-delay: 0.15s !important; }
.fade-up.loaded[style*="--i:2"], .article-card.loaded:nth-child(3), .contact-card.loaded[style*="--i:2"] { transition-delay: 0.25s !important; }
.fade-up.loaded[style*="--i:3"], .contact-card.loaded[style*="--i:3"] { transition-delay: 0.35s !important; }
.fade-up.loaded[style*="--i:4"] { transition-delay: 0.45s !important; }
.fade-up.loaded[style*="--i:5"] { transition-delay: 0.55s !important; }
.fade-up.loaded[style*="--i:6"] { transition-delay: 0.65s !important; }
.fade-up.loaded[style*="--i:7"] { transition-delay: 0.75s !important; }
.fade-up.loaded[style*="--i:8"] { transition-delay: 0.85s !important; }

.service-card { transition: all 0.4s cubic-bezier(.22,.61,.36,1) !important; }
.service-card:hover .service-readmore { opacity: 1 !important; transform: translateX(0) !important; }

.hr-home-hero {
    background-color: #05070c !important; 
    position: relative;
    overflow: hidden;
}

.b2b-reveal-item {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 1.2s cubic-bezier(0.25, 1, 0.5, 1) !important;
    will-change: opacity, transform;
}

.hr-home-hero.loaded .b2b-reveal-item {
    opacity: 1;
    transform: translateY(0);
}

.hr-home-hero.loaded .b2b-reveal-item:nth-child(1) { transition-delay: 0.1s !important; }
.hr-home-hero.loaded .b2b-reveal-item:nth-child(2) { transition-delay: 0.25s !important; }
.hr-home-hero.loaded .b2b-reveal-item:nth-child(3) { transition-delay: 0.4s !important; }
.hr-home-hero.loaded .b2b-reveal-item:nth-child(4) { transition-delay: 0.55s !important; }

.hero-scroll, .hr-glow-orb {
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
    transition-delay: 0.8s !important;
}
.hr-home-hero.loaded .hero-scroll,
.hr-home-hero.loaded .hr-glow-orb {
    opacity: 1;
}

.hr-glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    -webkit-filter: blur(150px);
    pointer-events: none;
    z-index: 1;
}

.orb-home-1 { top: -15%; right: -10%; width: 550px; height: 550px; background: #c5a85c; opacity: 0.12; }
.orb-home-2 { bottom: -10%; left: -15%; width: 600px; height: 600px; background: #1e3a8a; opacity: 0.15; }

.hero-actions .btn-outline {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.hero-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: #c5a85c !important;
    transform: translateY(-3px);
}

.article-thumb {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}
.article-thumb-link { display: block; width: 100%; height: 100%; }
.article-img-fluid { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.article-card:hover .article-img-fluid { transform: scale(1.06); }

.btn-load-more {
    background-color: #0B1F33 !important; 
    border: 1px solid #c8a24a !important; 
    color: #ffffff !important; 
    padding: 1.2rem 3.5rem !important; 
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.2em !important; 
    text-transform: uppercase !important;
    border-radius: 6px !important; 
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 4px 20px rgba(11, 31, 51, 0.15) !important;
    outline: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}
.btn-load-more:hover {
    background-color: #c8a24a !important; 
    color: #0B1F33 !important; 
    border-color: #c8a24a !important;
    transform: translateY(-4px) !important; 
    box-shadow: 0 15px 35px rgba(200, 162, 74, 0.35) !important; 
}
.loading-active { opacity: 0.6 !important; cursor: not-allowed !important; }

.services-grid .service-card {
    position: relative;
    overflow: hidden;
    background: #FFFFFF !important; 
    z-index: 1;
    transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.services-grid .service-card:hover {
    background-color: #0B1F33 !important; 
    transform: translateY(-4px); 
}
.services-grid .service-card h3 {
    position: relative;
    z-index: 3;
    padding-right: 50px !important;
    transition: color 0.3s ease !important;
}
.services-grid .service-card:hover h3 {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    color: #FFFFFF !important; 
    transform: none !important;
}
.services-grid .service-card:hover p {
    color: #94A3B8 !important; 
    opacity: 1 !important;
    visibility: visible !important;
}
.services-grid .service-card .service-num {
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 2;
    font-size: 1.5rem !important;
    font-weight: 800;
    transition: color 0.3s ease !important;
}
.services-grid .service-card:hover .service-num { color: rgba(255, 255, 255, 0.08) !important; }
.services-grid .service-card:hover .service-readmore { opacity: 1 !important; color: #C8A24A !important; transform: translateX(0) !important; }

.articles-grid { display: flex !important; flex-wrap: wrap !important; gap: 30px !important; }
.articles-grid .article-card {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 calc(33.333% - 20px) !important; 
    min-width: 300px !important;
    background: #ffffff !important;
    border: 1px solid rgba(11, 31, 51, 0.05) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02) !important;
}
.articles-grid .article-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 20px 40px rgba(11, 31, 51, 0.08) !important;
}
.articles-grid .article-body { display: flex !important; flex-direction: column !important; flex-grow: 1 !important; padding: 2.5rem !important; }
.articles-grid .article-body p { flex-grow: 1 !important; margin-bottom: 2rem !important; color: #64748B !important; font-size: 0.95rem !important; line-height: 1.6 !important; }

.articles-grid .article-link {
    margin-top: auto !important; 
    display: inline-flex !important;
    align-items: center;
    color: #0B1F33 !important; 
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    transition: color 0.3s ease, transform 0.3s ease !important;
}
.articles-grid .article-link::after {
    content: "\2192" !important;
    margin-left: 6px !important;
    font-weight: 400 !important;
    display: inline-block;
    transition: transform 0.3s ease !important;
}
.articles-grid .article-link:hover { color: #c8a24a !important; }
.articles-grid .article-link:hover::after { transform: translateX(4px) !important; }

.contact-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 28px !important;
    align-items: stretch !important;
}
.contact-grid .contact-card, .b2b-center-card {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: #FFFFFF !important;
    border: 1px solid #E6E9EE !important;
    padding: 40px 24px !important;
    height: 100% !important;
    margin: 0 !important;
}
.contact-grid .contact-card h4 { min-height: 44px !important; display: flex !important; align-items: center !important; justify-content: center !important; }
@media (max-width: 991px) {
    .contact-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 599px) {
    .contact-grid { grid-template-columns: 1fr !important; }
}
.contact-grid .contact-card h4 {
    color: #0B1F33 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    transition: color 0.3s ease !important;
}
.contact-grid .contact-card .contact-value {
    color: #0B1F33 !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    margin-bottom: 15px !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: color 0.3s ease !important;
}
.contact-grid .contact-card:hover, .b2b-center-card:hover {
    background: #0B1F33 !important; 
    box-shadow: 0 15px 35px rgba(11, 31, 51, 0.15) !important;
}
.contact-grid .contact-card:hover h4, .b2b-center-card:hover h4 {
    color: #FFFFFF !important; 
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    transform: none !important; 
}
.contact-grid .contact-card:hover .contact-value, .b2b-center-card:hover .contact-value {
    color: #c8a24a !important; 
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    transform: none !important;
}
.contact-grid .contact-card:hover .b2b-front-hover-btn, .b2b-center-card:hover .b2b-front-hover-btn {
    background: #0B1F33 !important;
    color: #FFFFFF !important;
    border-color: #c8a24a !important;
    box-shadow: 0 10px 20px rgba(11, 31, 51, 0.4) !important;
}
.b2b-front-hover-btn {
    display: inline-flex !important; 
    align-items: center; 
    justify-content: center; 
    background: transparent !important; 
    color: #c8a24a !important; 
    border: 1px solid #c8a24a !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    padding: 14px 28px !important; 
    border-radius: 4px !important; 
    text-decoration: none !important; 
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
}

/* ================= FORM CTA SECTION (Pendaftaran / Permintaan Layanan) ================= */
.b2b-form-cta {
    background: linear-gradient(135deg, #0B1F33 0%, #05070c 100%) !important;
    position: relative;
    overflow: hidden;
    padding: 110px 0 !important;
}
.b2b-form-cta .orb-register-1 {
    top: -25%;
    left: 50%;
    transform: translateX(-50%);
    width: 620px;
    height: 620px;
    background: #c5a85c;
    opacity: 0.10;
}
.b2b-form-cta .container { position: relative; z-index: 2; }

.form-cta-grid {
    display: grid !important;
    grid-template-columns: 1.35fr auto !important;
    align-items: center !important;
    gap: 70px !important;
    max-width: 1080px;
    margin: 0 auto;
}
.b2b-form-cta .form-cta-text { text-align: left !important; }
.b2b-form-cta .eyebrow { color: #c8a24a !important; justify-content: flex-start !important; }
.b2b-form-cta h2 {
    color: #ffffff !important;
    margin-bottom: 20px !important;
    font-size: 2.1rem !important;
    line-height: 1.3 !important;
}
.b2b-form-cta p {
    color: #94A3B8 !important;
    margin-bottom: 40px !important;
    font-size: 1.05rem !important;
    line-height: 1.75 !important;
}

/* ---- QR Code Card ---- */
.form-cta-qr {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-self: center;
}
.qr-card {
    position: relative;
    background: #ffffff !important;
    padding: 22px !important;
    border-radius: 10px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(200, 162, 74, 0.25) !important;
    line-height: 0;
}
.qr-card img {
    display: block;
    width: 190px;
    height: 190px;
    border-radius: 4px;
}
.qr-card-corner {
    position: absolute;
    width: 26px;
    height: 26px;
    border: 2px solid #c8a24a;
    opacity: 0.9;
}
.corner-tl { top: -8px; left: -8px; border-right: none; border-bottom: none; border-radius: 6px 0 0 0; }
.corner-tr { top: -8px; right: -8px; border-left: none; border-bottom: none; border-radius: 0 6px 0 0; }
.corner-bl { bottom: -8px; left: -8px; border-right: none; border-top: none; border-radius: 0 0 0 6px; }
.corner-br { bottom: -8px; right: -8px; border-left: none; border-top: none; border-radius: 0 0 6px 0; }
.qr-caption {
    display: inline-block;
    margin-top: 18px !important;
    color: #c8a24a !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
}

@media (max-width: 900px) {
    .form-cta-grid { grid-template-columns: 1fr !important; gap: 44px !important; text-align: center !important; }
    .b2b-form-cta .form-cta-text { text-align: center !important; }
    .b2b-form-cta .eyebrow { justify-content: center !important; }
    .form-cta-qr { order: -1; }
}
.btn-form-cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background-color: #c8a24a !important;
    color: #0B1F33 !important;
    border: 1px solid #c8a24a !important;
    padding: 18px 42px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 15px 35px rgba(200, 162, 74, 0.25) !important;
}
.btn-form-cta:hover {
    background-color: transparent !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35) !important;
}

/* Kartu form di dalam contact-grid, gold accent agar sedikit menonjol dari 3 kartu WA */
.b2b-contact-form-card {
    border: 1px solid #c8a24a !important;
}
.b2b-contact-form-card .b2b-form-btn {
    background: #c8a24a !important;
    color: #0B1F33 !important;
    border-color: #c8a24a !important;
}
.b2b-contact-form-card:hover .b2b-form-btn,
.b2b-contact-form-card.loaded:hover .b2b-form-btn {
    background: #ffffff !important;
    color: #0B1F33 !important;
    border-color: #ffffff !important;
}

@media (max-width: 767px) {
    .b2b-form-cta { padding: 70px 0 !important; }
    .b2b-form-cta h2 { font-size: 1.6rem !important; }
}

/* Base style untuk .service-readmore (sebelumnya inline style di setiap <span>, sekarang di-consolidate di sini) */
.service-readmore {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    color: #C8A24A;
    margin-top: 16px;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
}
