/**
 * Mojo Bootstrap - Japan Recruitment & Job Matching Corporate Theme
 * Designed for Indonesian Sending Organizations (SO), LPK, and P3MI to Japan
 * Concept: Clean, Minimalist, Ultra-Premium (Kanso & Shibui)
 * 
 * @package Mojo_Bootstrap
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* ==========================================================================
   Root Variables & Color Scheme
   ========================================================================== */
:root {
    --mj-primary: #0f172a;        /* Elegant Slate Charcoal */
    --mj-primary-navy: #0a2540;   /* Corporate Navy */
    --mj-japan-red: #c9182b;       /* Japanese Crimson Accent */
    --mj-japan-red-hover: #a81222;
    --mj-japan-red-subtle: #fef2f2;
    --mj-gold: #d49a37;           /* Prestigious Gold */
    --mj-surface-white: #ffffff;
    --mj-surface-gray: #f8fafc;
    --mj-border: #e2e8f0;
    --mj-border-light: #f1f5f9;
    --mj-text-main: #1e293b;
    --mj-text-muted: #64748b;
}

body {
    font-family: 'Plus Jakarta Sans', 'Noto Sans JP', system-ui, -apple-system, sans-serif;
    color: var(--mj-text-main);
    background-color: var(--mj-surface-gray);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

main {
    flex: 1 0 auto;
}

/* ==========================================================================
   Minimalist Top Bar
   ========================================================================== */
.top-bar {
    background-color: #ffffff;
    font-size: 0.825rem;
    color: var(--mj-text-muted);
    border-bottom: 1px solid var(--mj-border);
}

.top-bar a {
    color: var(--mj-text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.top-bar a:hover {
    color: var(--mj-japan-red);
}

/* ==========================================================================
   Main Navbar & Logo Constraints
   ========================================================================== */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--mj-border);
    transition: all 0.3s ease;
}

/* Strict Logo Dimensions - Prevents Giant Uploaded Logos */
.custom-logo-link,
.navbar-brand {
    display: inline-flex !important;
    align-items: center;
    max-width: 280px;
    padding: 0 !important;
    margin-right: 1.5rem;
}

.custom-logo,
.custom-logo-link img,
.navbar-brand img,
.site-header img.custom-logo {
    max-height: 52px !important;
    height: auto !important;
    width: auto !important;
    max-width: 250px !important;
    object-fit: contain !important;
    display: block !important;
}

@media (max-width: 991px) {
    .custom-logo,
    .custom-logo-link img,
    .navbar-brand img,
    .site-header img.custom-logo {
        max-height: 44px !important;
        max-width: 180px !important;
    }
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.navbar-toggler {
    padding: 0.45rem 0.65rem;
    border-radius: 8px;
    border: 1px solid var(--mj-border) !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(201, 24, 43, 0.2) !important;
}

.navbar-brand .brand-title {
    color: var(--mj-primary);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.navbar-brand .brand-subtitle {
    font-size: 0.685rem;
    color: var(--mj-japan-red);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    display: block;
}

.navbar-nav .nav-link {
    font-weight: 600;
    font-size: 0.925rem;
    color: #475569;
    padding: 0.6rem 1rem !important;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--mj-japan-red);
    background-color: var(--mj-japan-red-subtle);
}

.navbar-nav .nav-link.active {
    color: var(--mj-japan-red) !important;
    background-color: var(--mj-japan-red-subtle);
}

/* Action Buttons */
.btn-japan {
    background-color: var(--mj-japan-red);
    color: #ffffff !important;
    font-weight: 600;
    border: none;
    padding: 0.65rem 1.4rem;
    border-radius: 50px;
    box-shadow: 0 4px 14px rgba(201, 24, 43, 0.25);
    transition: all 0.2s ease;
}

.btn-japan:hover {
    background-color: var(--mj-japan-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 24, 43, 0.35);
}

.btn-japan-outline {
    border: 2px solid var(--mj-border);
    background: #ffffff;
    color: #334155 !important;
    font-weight: 600;
    border-radius: 50px;
    padding: 0.6rem 1.4rem;
    transition: all 0.2s ease;
}

.btn-japan-outline:hover {
    border-color: var(--mj-japan-red);
    color: var(--mj-japan-red) !important;
    background-color: var(--mj-japan-red-subtle);
    transform: translateY(-2px);
}

/* ==========================================================================
   Hero Section - Clean & Dynamic Slider Carousel
   ========================================================================== */
.hero-slider-section {
    background-color: #ffffff;
    position: relative;
}

.hero-slide-item {
    min-height: 540px;
    position: relative;
    padding: 5rem 0 4.5rem;
    transition: transform 0.6s ease;
}

.hero-slide-item.default-hero-bg {
    background-color: #ffffff;
    background-image: radial-gradient(circle at 50% 0%, rgba(201, 24, 43, 0.04) 0%, rgba(255, 255, 255, 0) 70%);
}

.hero-slide-item.has-bg-image {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #ffffff;
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.72) 0%, rgba(15, 23, 42, 0.85) 100%);
    z-index: 1;
}

.hero-slide-item > .container {
    z-index: 2;
}

/* Indicators */
.hero-slider-section .carousel-indicators {
    bottom: 12px;
    z-index: 5;
    margin-bottom: 0;
}

.hero-slider-section .carousel-indicators [data-bs-target] {
    width: 32px;
    height: 6px;
    border-radius: 4px;
    background-color: var(--mj-japan-red);
    opacity: 0.28;
    border: none;
    margin: 0 4px;
    transition: all 0.3s ease;
}

.hero-slider-section .carousel-indicators .active {
    width: 48px;
    opacity: 1;
    background-color: var(--mj-japan-red);
}

/* Controls (Prev/Next) */
.hero-carousel-btn {
    width: 48px;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 5;
    border-radius: 50%;
    margin: 0 1.5rem;
}

.hero-slider-section:hover .hero-carousel-btn {
    opacity: 0.85;
}

.hero-carousel-btn:hover {
    opacity: 1 !important;
}

.hero-control-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--mj-japan-red);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    font-size: 1.25rem;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.hero-carousel-btn:hover .hero-control-icon {
    background-color: #ffffff;
    transform: scale(1.08);
}

.hero-trust-bar {
    background-color: #fbfbfc;
    letter-spacing: -0.2px;
}

/* ==========================================================================
   Hero Split 2-Column Visual Card Styles
   ========================================================================== */
.hero-slide-split .hero-main-title {
    font-size: 3rem;
    line-height: 1.22;
}

@media (max-width: 991.98px) {
    .hero-slide-split .hero-main-title {
        font-size: 2.25rem;
    }
}

.hero-visual-wrapper {
    max-width: 480px;
    padding: 12px 10px;
}

.hero-visual-card {
    border-radius: 28px !important;
    background: #ffffff;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.16) !important;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-visual-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px -12px rgba(201, 24, 43, 0.18) !important;
}

.hero-visual-img {
    height: 390px;
    object-fit: cover;
    display: block;
    border-radius: 26px;
    transition: transform 0.7s ease;
}

.hero-visual-card:hover .hero-visual-img {
    transform: scale(1.03);
}

.hero-visual-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 65%, rgba(0,0,0,0.35) 100%);
    pointer-events: none;
    border-radius: 26px;
}

.hero-floating-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 50px;
    padding: 0.45rem 1rem;
    z-index: 4;
    transform: translateY(-20%);
}

.hero-floating-card {
    position: absolute;
    bottom: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    z-index: 4;
    transform: translateY(25%);
    max-width: 280px;
}

@media (max-width: 575.98px) {
    .hero-visual-wrapper {
        max-width: 100%;
        padding: 10px 0;
    }

    .hero-visual-img {
        height: 250px;
    }

    .hero-floating-badge {
        font-size: 0.78rem;
        padding: 0.35rem 0.75rem;
        right: 10px;
        top: 10px;
        transform: none;
    }

    .hero-floating-card {
        left: 10px;
        bottom: 10px;
        transform: none;
        padding: 0.65rem 0.85rem !important;
        max-width: calc(100% - 20px);
    }
}

/* ==========================================================================
   Extreme Hero Slider Object Entrance & Exit Animations
   ========================================================================== */

/* 1. Base Pre-animation State (Inactive Slides or Out of View) */
.hero-slider-section .carousel-item:not(.hero-slide-active) .hero-anim-badge,
.hero-slider-section .carousel-item:not(.hero-slide-active) .hero-anim-title,
.hero-slider-section .carousel-item:not(.hero-slide-active) .hero-anim-desc,
.hero-slider-section .carousel-item:not(.hero-slide-active) .hero-anim-btns,
.hero-slider-section .carousel-item:not(.hero-slide-active) .hero-anim-trust,
.hero-slider-section .carousel-item:not(.hero-slide-active) .hero-anim-visual,
.hero-slider-section .carousel-item:not(.hero-slide-active) .hero-anim-float-top,
.hero-slider-section .carousel-item:not(.hero-slide-active) .hero-anim-float-bottom {
    opacity: 0;
    pointer-events: none;
    animation: none !important;
}

/* 2. Extreme Entrance Animations (Active / In-View Slide) */
.hero-slider-section .carousel-item.hero-slide-active:not(.hero-slide-out) .hero-anim-badge {
    animation: heroAnimBadgeEnter 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) 0.12s forwards;
    pointer-events: auto;
}

.hero-slider-section .carousel-item.hero-slide-active:not(.hero-slide-out) .hero-anim-title {
    animation: heroAnimTitleEnter 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.22s forwards;
    pointer-events: auto;
}

.hero-slider-section .carousel-item.hero-slide-active:not(.hero-slide-out) .hero-anim-desc {
    animation: heroAnimDescEnter 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.38s forwards;
    pointer-events: auto;
}

.hero-slider-section .carousel-item.hero-slide-active:not(.hero-slide-out) .hero-anim-btns {
    animation: heroAnimBtnsEnter 0.85s cubic-bezier(0.34, 1.45, 0.64, 1) 0.52s forwards;
    pointer-events: auto;
}

.hero-slider-section .carousel-item.hero-slide-active:not(.hero-slide-out) .hero-anim-trust {
    animation: heroAnimTrustEnter 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.68s forwards;
    pointer-events: auto;
}

.hero-slider-section .carousel-item.hero-slide-active:not(.hero-slide-out) .hero-anim-visual {
    animation: heroAnimVisualEnter 1s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
    pointer-events: auto;
}

.hero-slider-section .carousel-item.hero-slide-active:not(.hero-slide-out) .hero-anim-float-top {
    animation: heroAnimFloatTopEnter 0.8s cubic-bezier(0.34, 1.6, 0.64, 1) 0.75s forwards, heroFloatBobbingTop 3.5s ease-in-out 1.6s infinite alternate;
    pointer-events: auto;
}

.hero-slider-section .carousel-item.hero-slide-active:not(.hero-slide-out) .hero-anim-float-bottom {
    animation: heroAnimFloatBottomEnter 0.85s cubic-bezier(0.34, 1.6, 0.64, 1) 0.9s forwards, heroFloatBobbingBottom 4s ease-in-out 1.8s infinite alternate;
    pointer-events: auto;
}

/* 3. Extreme Exit Animations (Leaving Slide) */
.hero-slider-section .carousel-item.hero-slide-out .hero-anim-badge {
    opacity: 0 !important;
    transform: translateY(-40px) scale(0.85) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 1, 1) !important;
    pointer-events: none;
}

.hero-slider-section .carousel-item.hero-slide-out .hero-anim-title {
    opacity: 0 !important;
    transform: translateY(-45px) translateX(-40px) !important;
    filter: blur(6px) !important;
    transition: all 0.45s cubic-bezier(0.4, 0, 1, 1) !important;
    pointer-events: none;
}

.hero-slider-section .carousel-item.hero-slide-out .hero-anim-desc {
    opacity: 0 !important;
    transform: translateY(-30px) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 1, 1) !important;
    pointer-events: none;
}

.hero-slider-section .carousel-item.hero-slide-out .hero-anim-btns {
    opacity: 0 !important;
    transform: translateY(35px) scale(0.85) !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 1, 1) !important;
    pointer-events: none;
}

.hero-slider-section .carousel-item.hero-slide-out .hero-anim-trust {
    opacity: 0 !important;
    transform: translateY(20px) !important;
    transition: all 0.3s ease !important;
    pointer-events: none;
}

.hero-slider-section .carousel-item.hero-slide-out .hero-anim-visual {
    opacity: 0 !important;
    transform: scale(0.85) translateX(70px) rotate(-3deg) !important;
    filter: blur(6px) !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 1, 1) !important;
    pointer-events: none;
}

.hero-slider-section .carousel-item.hero-slide-out .hero-anim-float-top {
    opacity: 0 !important;
    transform: translateY(-20%) scale(0.2) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 1, 1) !important;
    pointer-events: none;
}

.hero-slider-section .carousel-item.hero-slide-out .hero-anim-float-bottom {
    opacity: 0 !important;
    transform: translateY(25%) scale(0.2) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 1, 1) !important;
    pointer-events: none;
}

/* 4. Entrance Keyframes with Spring Physics */
@keyframes heroAnimBadgeEnter {
    0% {
        opacity: 0;
        transform: translateY(-45px) scale(0.75);
    }
    70% {
        opacity: 1;
        transform: translateY(5px) scale(1.08);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes heroAnimTitleEnter {
    0% {
        opacity: 0;
        transform: translateY(65px) scale(0.92);
        filter: blur(10px);
    }
    60% {
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes heroAnimDescEnter {
    0% {
        opacity: 0;
        transform: translateY(45px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroAnimBtnsEnter {
    0% {
        opacity: 0;
        transform: translateY(45px) scale(0.85);
    }
    70% {
        opacity: 1;
        transform: translateY(-4px) scale(1.04);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes heroAnimTrustEnter {
    0% {
        opacity: 0;
        transform: translateY(25px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroAnimVisualEnter {
    0% {
        opacity: 0;
        transform: translateX(100px) scale(0.8) rotate(5deg);
        filter: blur(8px);
    }
    75% {
        transform: translateX(-4px) scale(1.01) rotate(-0.5deg);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1) rotate(0deg);
        filter: blur(0);
    }
}

@keyframes heroAnimFloatTopEnter {
    0% {
        opacity: 0;
        transform: translateY(-40px) scale(0.2);
    }
    75% {
        opacity: 1;
        transform: translateY(calc(-20% + 6px)) scale(1.15);
    }
    100% {
        opacity: 1;
        transform: translateY(-20%) scale(1);
    }
}

@keyframes heroAnimFloatBottomEnter {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.2);
    }
    75% {
        opacity: 1;
        transform: translateY(calc(25% - 7px)) scale(1.12);
    }
    100% {
        opacity: 1;
        transform: translateY(25%) scale(1);
    }
}

/* 5. Idle Floating Bobbing (Luxury Levitation after landing) */
@keyframes heroFloatBobbingTop {
    0% {
        transform: translateY(-20%);
    }
    100% {
        transform: translateY(calc(-20% - 8px));
    }
}

@keyframes heroFloatBobbingBottom {
    0% {
        transform: translateY(25%);
    }
    100% {
        transform: translateY(calc(25% + 8px));
    }
}

@media (max-width: 575.98px) {
    .hero-slider-section .carousel-item.active:not(.hero-slide-out) .hero-anim-float-top,
    .hero-slider-section .carousel-item.hero-slide-in:not(.hero-slide-out) .hero-anim-float-top {
        animation: heroAnimMobileFloatTop 0.65s cubic-bezier(0.34, 1.5, 0.64, 1) 0.5s forwards;
    }

    .hero-slider-section .carousel-item.active:not(.hero-slide-out) .hero-anim-float-bottom,
    .hero-slider-section .carousel-item.hero-slide-in:not(.hero-slide-out) .hero-anim-float-bottom {
        animation: heroAnimMobileFloatBottom 0.65s cubic-bezier(0.34, 1.5, 0.64, 1) 0.65s forwards;
    }

    @keyframes heroAnimMobileFloatTop {
        0% { opacity: 0; transform: translateY(-20px) scale(0.5); }
        100% { opacity: 1; transform: translateY(0) scale(1); }
    }

    @keyframes heroAnimMobileFloatBottom {
        0% { opacity: 0; transform: translateY(20px) scale(0.5); }
        100% { opacity: 1; transform: translateY(0) scale(1); }
    }
}

.clean-hero {
    background-color: #ffffff;
    background-image: radial-gradient(circle at 50% 0%, rgba(201, 24, 43, 0.04) 0%, rgba(255, 255, 255, 0) 70%);
    padding: 5.5rem 0 5rem;
    position: relative;
    border-bottom: 1px solid var(--mj-border-light);
}

.hero-pill-badge {
    background-color: var(--mj-japan-red-subtle);
    border: 1px solid rgba(201, 24, 43, 0.2);
    color: var(--mj-japan-red);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.45rem 1.25rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-main-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--mj-primary);
    letter-spacing: -1.2px;
}

@media (max-width: 768px) {
    .hero-main-title {
        font-size: 2.3rem;
        letter-spacing: -0.5px;
    }
}

.hero-lead-text {
    font-size: 1.18rem;
    color: var(--mj-text-muted);
    line-height: 1.7;
    max-width: 780px;
    margin: 0 auto;
}

/* ==========================================================================
   Stats Strip - Minimalist & Sleek
   ========================================================================== */
.stats-clean-strip {
    background: #ffffff;
    border: 1px solid var(--mj-border);
    border-radius: 20px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.06);
    padding: 2.25rem 1.5rem;
}

.stat-clean-item {
    padding: 0.5rem 1rem;
    border-right: 1px solid var(--mj-border-light);
}

.stat-clean-item:last-child {
    border-right: none;
}

@media (max-width: 768px) {
    .stat-clean-item {
        border-right: none;
        border-bottom: 1px solid var(--mj-border-light);
        padding-bottom: 1.25rem;
        margin-bottom: 1.25rem;
    }
    .stat-clean-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
}

.stat-clean-number {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--mj-primary);
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.stat-clean-label {
    font-size: 0.875rem;
    color: var(--mj-text-muted);
    font-weight: 500;
}

/* ==========================================================================
   Program Cards - Spacious 2-Column Focus
   ========================================================================== */
.clean-program-card {
    background: #ffffff;
    border: 1px solid var(--mj-border);
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.clean-program-card:hover {
    transform: translateY(-5px);
    border-color: var(--mj-japan-red);
    box-shadow: 0 20px 40px -15px rgba(201, 24, 43, 0.12);
}

.program-icon-badge {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Job Order Cards - Clean Grid
   ========================================================================== */
.clean-job-card {
    background: #ffffff;
    border: 1px solid var(--mj-border);
    border-radius: 16px;
    padding: 1.75rem;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.4s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.clean-job-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(201, 24, 43, 0.4) !important;
    box-shadow: 0 20px 40px -10px rgba(201, 24, 43, 0.16) !important;
}

.clean-job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    margin-bottom: 0.85rem;
    overflow: hidden;
}

.job-prefecture-pill {
    background: #f1f5f9;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    max-width: 60%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-flex;
    align-items: center;
    flex-shrink: 1;
}

.clean-job-card .badge,
.clean-job-card-header .badge {
    max-width: 38%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
    display: inline-block;
}

.job-salary-amount {
    font-size: 1.25rem;
    font-weight: 800;
    color: #047857;
    letter-spacing: -0.5px;
}

.job-salary-sub {
    font-size: 0.8rem;
    color: var(--mj-text-muted);
}

/* ==========================================================================
   Process Timeline (5 Steps)
   ========================================================================== */
.clean-step-card {
    background: #ffffff;
    border: 1px solid var(--mj-border);
    border-radius: 16px;
    padding: 2rem 1.25rem;
    text-align: center;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}

.clean-step-card:hover {
    transform: translateY(-8px);
    border-color: var(--mj-japan-red) !important;
    box-shadow: 0 16px 30px -8px rgba(15, 23, 42, 0.14) !important;
}

.clean-step-circle {
    width: 48px;
    height: 48px;
    background-color: var(--mj-japan-red);
    color: #ffffff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    transition: transform 0.35s cubic-bezier(0.34, 1.5, 0.64, 1), box-shadow 0.3s ease;
}

.clean-step-card:hover .clean-step-circle {
    transform: scale(1.15) rotate(6deg);
    box-shadow: 0 8px 20px rgba(201, 24, 43, 0.35);
}
    font-weight: 800;
    font-size: 1.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 4px 12px rgba(201, 24, 43, 0.25);
}

/* ==========================================================================
   Red Footer with Crisp White Text
   ========================================================================== */
.site-footer {
    background-color: #c9182b;
    background: linear-gradient(135deg, #c9182b 0%, #a01020 100%);
    color: #ffffff;
    border-top: 4px solid #7f0a17;
}

.site-footer .reveal,
.site-footer .reveal-up {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
}

.site-footer h5,
.site-footer h6 {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    padding: 0.2rem 0;
}

.footer-link:hover {
    color: #ffffff;
    text-decoration: underline;
    transform: translateX(4px);
}

.footer-nav-menu {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.footer-nav-menu li {
    margin-bottom: 0.5rem;
}

.footer-nav-menu li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    padding: 0.2rem 0;
}

.footer-nav-menu li a:hover {
    color: #ffffff;
    text-decoration: underline;
    transform: translateX(4px);
}

.footer-contact-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.85rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.92);
}

.footer-contact-item i {
    color: #fef08a;
    font-size: 1.15rem;
    margin-top: 0.15rem;
}

/* Floating WhatsApp Quick Consultation */
.floating-wa-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #ffffff !important;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.floating-wa-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

/* =========================================================================
   PAGE STYLING - FULL WIDTH, SEAMLESS (NO CARD, NO OVERFLOW)
   ========================================================================= */
body.page {
    background-color: #ffffff;
}

.site-page-container {
    background-color: #ffffff;
    min-height: 65vh;
    width: 100%;
}

.page-entry {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 2rem;
}

/* Prevent Any Content Overflow (Google Maps, Iframes, Tables, Embeds) */
.entry-content {
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.entry-content iframe,
.entry-content embed,
.entry-content object,
.entry-content video,
.entry-content img,
.entry-content table {
    max-width: 100% !important;
    box-sizing: border-box;
}

.entry-content iframe {
    width: 100% !important;
    border-radius: 12px;
}

/* ==========================================================================
   About Us (Tentang Kami) Corporate Profile Styling
   ========================================================================== */
.about-hero-section {
    background-color: #ffffff;
    background-image: radial-gradient(circle at 80% 20%, rgba(201, 24, 43, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
}

.about-brand-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-brand-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.12) !important;
}

.corporate-profile-table th {
    padding: 1.15rem 1.25rem;
    font-size: 0.85rem;
    letter-spacing: 0.4px;
    vertical-align: top;
    border-color: #e2e8f0;
}

.corporate-profile-table td {
    padding: 1.15rem 1.25rem;
    vertical-align: middle;
    border-color: #e2e8f0;
}

.director-card {
    transition: transform 0.3s ease;
}

.director-card:hover {
    transform: translateY(-4px);
}

.director-avatar-box {
    border: 3px solid rgba(201, 24, 43, 0.15) !important;
}

/* Gutenberg WordPress Block Alignments & Overflow Protection */
.entry-content .wp-block-embed,
.entry-content .wp-block-embed__wrapper,
.entry-content .wp-block-table,
.entry-content .wp-block-image,
.entry-content .wp-block-group,
.entry-content .wp-block-columns {
    max-width: 100% !important;
    box-sizing: border-box;
}

.entry-content .wp-block-table {
    overflow-x: auto;
}

/* Gutenberg Responsive Columns on Tablet / Mobile */
@media (max-width: 767.98px) {
    .entry-content .wp-block-columns {
        flex-wrap: wrap !important;
    }
    .entry-content .wp-block-column {
        flex-basis: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* =========================================================================
   CLEAN NEWS CARDS FOR HOMEPAGE
   ========================================================================= */
.clean-news-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.clean-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08) !important;
}

.hover-zoom {
    transition: transform 0.4s ease;
}

.clean-news-card:hover .hover-zoom {
    transform: scale(1.05);
}

.hover-danger:hover {
    color: var(--mj-crimson, #c9182b) !important;
}

/* =========================================================================
   SMOOTH SCROLL-REVEAL ANIMATIONS & MICRO-INTERACTIONS
   ========================================================================= */
html {
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
}

/* Base Reveal Animation Classes - Dramatic Spring & 3D Blur Clearing */
.reveal,
.reveal-up {
    opacity: 0;
    transform: translateY(50px) scale(0.96);
    filter: blur(4px);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.34, 1.4, 0.64, 1), filter 0.75s ease;
    will-change: opacity, transform, filter;
}

.reveal.is-visible,
.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.reveal-fade {
    opacity: 0;
    transition: opacity 0.85s ease;
    will-change: opacity;
}

.reveal-fade.is-visible {
    opacity: 1;
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.86);
    filter: blur(4px);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.34, 1.4, 0.64, 1), filter 0.75s ease;
    will-change: opacity, transform, filter;
}

.reveal-scale.is-visible {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

.reveal-pop {
    opacity: 0;
    transform: translateY(40px) scale(0.82);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.34, 1.55, 0.64, 1);
    will-change: opacity, transform;
}

.reveal-pop.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px) scale(0.96);
    filter: blur(4px);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.34, 1.4, 0.64, 1), filter 0.75s ease;
    will-change: opacity, transform, filter;
}

.reveal-left.is-visible {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px) scale(0.96);
    filter: blur(4px);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.34, 1.4, 0.64, 1), filter 0.75s ease;
    will-change: opacity, transform, filter;
}

.reveal-right.is-visible {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
}

/* Stagger Delay Modifiers with Smooth Timing */
.delay-100 { transition-delay: 0.1s !important; }
.delay-200 { transition-delay: 0.2s !important; }
.delay-300 { transition-delay: 0.3s !important; }
.delay-400 { transition-delay: 0.4s !important; }
.delay-500 { transition-delay: 0.5s !important; }

/* Micro-Interaction: Badge Pulse Glow */
@keyframes badge-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(201, 24, 43, 0.35);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(201, 24, 43, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(201, 24, 43, 0);
    }
}

.pulse-badge {
    animation: badge-pulse 2.2s infinite ease-in-out;
}

/* Micro-Interaction: Floating WhatsApp Breathing Glow */
@keyframes wa-glow {
    0% {
        box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5), 0 0 0 12px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.floating-wa-btn {
    animation: wa-glow 2.5s infinite ease-in-out;
}

/* Card Hover Elevation Transitions */
.clean-program-card,
.clean-job-card,
.clean-step-card,
.clean-news-card {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease !important;
}

.clean-program-card:hover,
.clean-job-card:hover,
.clean-news-card:hover {
    transform: translateY(-6px) !important;
}

.clean-step-card:hover {
    transform: translateY(-4px) !important;
}

.clean-step-card:hover .clean-step-circle {
    transform: scale(1.1) rotate(6deg);
}

.clean-step-circle {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Button Interactive Feedback */
.btn-japan,
.btn-japan-outline {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
}

.btn-japan:active,
.btn-japan-outline:active {
    transform: scale(0.96) !important;
}

/* =========================================================================
   COMPREHENSIVE RESPONSIVE DESIGN (ALL DEVICES & SCREENS)
   ========================================================================= */

/* Prevent iOS Safari input zoom by enforcing 16px minimum */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Mobile Screens (< 576px: iPhone, Android) */
@media (max-width: 575.98px) {
    .hero-main-title {
        font-size: 2.15rem !important;
        letter-spacing: -0.5px !important;
        line-height: 1.25 !important;
    }

    .hero-lead-text {
        font-size: 0.98rem !important;
        line-height: 1.6 !important;
        padding: 0 0.25rem;
    }

    .clean-hero,
    .hero-slide-item {
        min-height: auto;
        padding: 3.5rem 0 3rem !important;
    }

    .clean-hero .btn-lg,
    .hero-slide-item .btn-lg {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1.25rem !important;
        font-size: 0.95rem !important;
    }

    .hero-carousel-btn {
        display: none !important;
    }

    .stats-clean-strip {
        padding: 1.25rem 0.75rem !important;
        border-radius: 16px !important;
    }

    .stat-clean-number {
        font-size: 1.75rem !important;
    }

    .stat-clean-label {
        font-size: 0.75rem !important;
    }

    .clean-program-card {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }

    .clean-job-card {
        padding: 1.25rem !important;
    }

    .clean-step-card {
        padding: 1.5rem 1rem !important;
    }

    /* Floating WhatsApp Button on Mobile */
    .floating-wa-btn {
        width: 50px !important;
        height: 50px !important;
        font-size: 24px !important;
        bottom: 18px !important;
        right: 18px !important;
    }
}

/* Tablet Screens (576px - 991.98px) */
@media (min-width: 576px) and (max-width: 991.98px) {
    .hero-main-title {
        font-size: 2.75rem !important;
    }

    .clean-hero,
    .hero-slide-item {
        padding: 4.5rem 0 4rem !important;
    }

    .clean-program-card {
        padding: 2rem !important;
    }
}

/* Responsive Navigation Bar Drawer (< 992px) */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #ffffff;
        padding: 1rem 0.5rem 1.25rem;
        margin-top: 0.75rem;
        border-top: 1px solid var(--mj-border-light);
        border-radius: 0 0 16px 16px;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: 8px;
        margin-bottom: 0.25rem;
    }

    .site-header .btn-japan {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }
}

/* Accessibility: Respect Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal,
    .reveal-up,
    .reveal-fade,
    .reveal-scale,
    .reveal-left,
    .reveal-right {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ==========================================================================
   Single Post & Job Spec Box Styling (Anti-Overflow & Responsive Grid)
   ========================================================================== */
.single-post {
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.job-spec-box {
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.job-spec-box .badge {
    white-space: normal !important;
    word-break: break-word;
    text-align: left;
    max-width: 100%;
    line-height: 1.35;
}

.job-spec-box .card,
.job-spec-box .border {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* ==========================================================================
   Archive & News Listing Card Styling (Fixed Height & Uniform Grid)
   ========================================================================== */
.post-card {
    transition: transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}

.post-card:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.16) !important;
    border-color: rgba(201, 24, 43, 0.35) !important;
}

.post-card-thumb {
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
    background-color: #f1f5f9;
}

.post-card-img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-card:hover .post-card-img {
    transform: scale(1.05);
}

.post-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    min-height: 2.8rem;
}

.post-thumb-placeholder {
    transition: background-color 0.3s ease;
}

/* ==========================================================================
   Sidebar Widget Area Styling (Modern Cards)
   ========================================================================== */
.sidebar-widget-area .widget {
    background: #ffffff;
    border: 1px solid var(--mj-border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.05);
}

.sidebar-widget-area .widget-title,
.sidebar-widget-area .widgettitle {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--mj-primary);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(201, 24, 43, 0.15);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-widget-area ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.sidebar-widget-area ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--mj-border-light);
    font-size: 0.9rem;
}

.sidebar-widget-area ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-widget-area ul li a {
    color: #475569;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.sidebar-widget-area ul li a:hover {
    color: var(--mj-japan-red);
    padding-left: 4px;
}

