/* REBRAND BERANDA SCOPED CSS */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --rb-primary: #0f172a;
    --rb-accent: #2563eb;
    --rb-accent-light: #dbeafe;
    --rb-text-main: #1e293b;
    --rb-text-muted: #64748b;
    --rb-bg-light: #f8fafc;
    --rb-white: #ffffff;
    --rb-glass: rgba(255, 255, 255, 0.8);
    --rb-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.rb-body {
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--rb-text-main);
    background-color: var(--rb-bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    box-sizing: border-box;
    max-width: 100vw;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
}

*, *::before, *::after {
    box-sizing: inherit;
}

.rb-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.rb-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--rb-glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--rb-transition);
}

.rb-header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.rb-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    transition: var(--rb-transition);
}

.rb-logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.rb-logo-filter {
    mix-blend-mode: multiply;
}

.rb-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    margin-left: auto; /* Push menu and CTA to the right */
    margin-right: 2.5rem;
}

.rb-menu-item {
    position: relative;
}

.rb-menu-item a {
    text-decoration: none;
    color: var(--rb-text-main);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--rb-transition);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 1.5rem 0;
}

.rb-menu-item a:hover {
    color: var(--rb-accent);
}

/* Dropdown */
.rb-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: white;
    min-width: 200px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 0.8rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--rb-transition);
    z-index: 100;
}

.rb-menu-item:hover .rb-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.rb-dropdown a {
    display: block;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--rb-text-main);
    white-space: nowrap;
}

.rb-dropdown a:hover {
    background: var(--rb-bg-light);
    color: var(--rb-accent);
}

.rb-cta-btn {
    background: var(--rb-primary);
    color: var(--rb-white);
    padding: 0.8rem 2rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--rb-transition);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1);
}

.rb-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.15);
    background: #1e293b;
}

/* Hamburger */
.rb-hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    z-index: 1100;
}

.rb-hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--rb-primary);
    border-radius: 10px;
    transition: var(--rb-transition);
}

/* Hero Section */
.rb-hero {
    padding-top: 180px;
    padding-bottom: 100px;
    background: radial-gradient(circle at top right, #e0f2fe 0%, #f8fafc 50%);
}

.rb-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

.rb-hero-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: var(--rb-accent-light);
    color: var(--rb-accent);
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.rb-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--rb-primary);
    letter-spacing: -0.02em;
}

.rb-hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--rb-text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
}

.rb-hero-btns {
    display: flex;
    gap: 1.5rem;
}

.rb-btn-primary {
    background: var(--rb-accent);
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 800;
    transition: var(--rb-transition);
}

.rb-btn-outline {
    background: white;
    color: var(--rb-primary);
    padding: 1.2rem 3rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 800;
    border: 1px solid #e2e8f0;
    transition: var(--rb-transition);
}

.rb-btn-primary:hover, .rb-btn-outline:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.rb-hero-img img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 32px;
    box-shadow: 0 40px 100px rgba(15, 23, 42, 0.1);
    animation: rb-float 6s ease-in-out infinite;
}

@keyframes rb-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Marquee Banner */
.rb-marquee-section {
    padding: 4rem 0;
    background: white;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    overflow: hidden;
}

.rb-marquee-section h3 {
    text-align: center;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #94a3b8;
    margin-bottom: 3rem;
}

.rb-marquee-wrapper {
    display: flex;
    width: 200%;
    animation: rb-marquee-scroll 40s linear infinite;
}

.rb-marquee-content {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 50%;
    gap: 4rem;
}

.rb-marquee-content img {
    height: 50px;
    width: auto;
    filter: grayscale(1);
    opacity: 0.5;
    transition: var(--rb-transition);
}

.rb-marquee-content img:hover {
    filter: grayscale(0);
    opacity: 1;
}

@keyframes rb-marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Services */
.rb-services {
    padding: 10rem 0;
}

.rb-section-head {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.rb-section-head h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--rb-primary);
}

.rb-section-head p {
    font-size: 1.15rem;
    color: var(--rb-text-muted);
}

.rb-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.rb-service-card {
    background: white;
    padding: 4rem;
    border-radius: 40px;
    border: 1px solid #f1f5f9;
    transition: var(--rb-transition);
}

.rb-service-card:hover {
    border-color: var(--rb-accent-light);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.05);
    transform: translateY(-10px);
}

.rb-service-icon {
    width: 80px;
    height: 80px;
    background: var(--rb-bg-light);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    font-size: 2rem;
}

.rb-service-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.rb-service-card p {
    color: var(--rb-text-muted);
    margin-bottom: 2rem;
}

.rb-service-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--rb-accent);
    text-decoration: none;
    font-weight: 700;
}

/* Testimonials */
.rb-testimonials {
    padding: 10rem 0;
    background: var(--rb-primary);
    color: white;
    border-radius: 80px;
    margin: 0 2rem;
}

.rb-testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.rb-testi-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 3rem;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.rb-testi-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    font-style: italic;
    color: #cbd5e1;
}

.rb-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rb-user img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.rb-user h4 {
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.rb-user span {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* CTA Section */
.rb-cta-section {
    padding: 10rem 0;
}

.rb-cta-box {
    background: var(--rb-accent);
    padding: 6rem;
    border-radius: 60px;
    color: white;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.rb-cta-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.rb-video-box {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
}

.rb-video-box video {
    width: 100%;
    display: block;
}

/* Footer */
.rb-footer {
    padding: 8rem 0 4rem;
    background: #f8fafc;
}

.rb-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
}

.rb-footer-brand p {
    margin-top: 1.5rem;
    color: var(--rb-text-muted);
}

.rb-footer-col h4 {
    font-weight: 800;
    margin-bottom: 2rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.rb-footer-col ul {
    list-style: none;
    padding: 0;
}

.rb-footer-col li {
    margin-bottom: 1rem;
}

.rb-footer-col a {
    text-decoration: none;
    color: var(--rb-text-muted);
    transition: var(--rb-transition);
}

.rb-footer-col a:hover {
    color: var(--rb-accent);
}

.rb-footer-bottom {
    padding-top: 4rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Responsive Public Site */


/* --- Tambahan Styling Sistem Tab --- */
.rb-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 30px 0 15px 0;
    flex-wrap: wrap;
}

.rb-tab-btn {
    padding: 12px 24px;
    background: #f4f6f9;
    border: 2px solid transparent;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rb-tab-btn i {
    font-size: 1rem;
}

.rb-tab-btn:hover {
    background: #e9ecef;
    color: #000;
}

.rb-tab-btn.active {
    background: var(--rb-accent, #007bff); /* Fallback warna jika var belum diset */
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tab-category-desc {
    text-align: center;
    font-style: italic;
    color: #777;
    margin-bottom: 35px;
    font-size: 0.95rem;
}

/* Sembunyikan tab content default */
.rb-tab-content {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

/* Tampilkan jika aktif */
.rb-tab-content.active {
    display: block;
}

/* Modifikasi teks pendukung dalam kartu */
.service-focus {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #444;
    margin-bottom: 10px !important;
}

.service-details {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    text-align: left;
    font-size: 0.85rem;
    border-top: 1px dashed #e0e0e0;
    padding-top: 10px;
}

.service-details li {
    margin-bottom: 6px;
    color: #666;
    line-height: 1.3;
}

/* Animasi perpindahan tab smoother */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Styling Modifikasi Hero Right Side (Poster Card) --- */

/* Memastikan grid utama di hero rata tengah secara vertikal */
@media (min-width: 1025px) {
    .rb-hero-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        align-items: center; /* Membuat kolom kiri & kanan rata tengah vertikal */
    }
}

.rb-hero-poster-side {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Container Utama Kartu Poster */
.rb-poster-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 420px; /* Batas lebar proporsional poster */
    border: 1px solid #eef2f5;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rb-poster-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Tag Status Berkedip (Pulse) */
.rb-poster-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.pulse-icon {
    width: 8px;
    height: 8px;
    background: #28a745; /* Warna hijau aktif */
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    animation: pulseAnimation 1.5s infinite;
}

/* Bingkai Foto Poster */
.rb-poster-media {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    position: relative;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rb-poster-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    transition: scale 0.5s ease;
}

.rb-poster-card:hover .rb-poster-media img {
    scale: 1.02;
}

/* Bagian Konten/Teks Bawah Poster */
.rb-poster-body {
    padding: 24px;
    background: #ffffff;
}

.rb-poster-body h3 {
    font-size: 1.25rem;
    color: #111111;
    margin: 0 0 12px 0;
    font-weight: 700;
    line-height: 1.3;
}

/* Meta info (Tanggal & Durasi) */
.rb-poster-meta {
    background: #f8f9fa;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.rb-poster-meta p {
    font-size: 0.85rem;
    color: #444444;
    margin: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rb-poster-meta i {
    color: var(--rb-accent, #007bff);
    width: 14px;
}

/* Deskripsi Singkat */
.rb-poster-desc {
    font-size: 0.88rem;
    color: #666666;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Tombol Pendaftaran CTA */
.rb-btn-register {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: var(--rb-accent, #007bff); /* Sesuaikan dengan warna primer RDS */
    color: #ffffff;
    padding: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: background 0.2s ease, transform 0.1s ease;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.rb-btn-register:hover {
    background: #0056b3; /* Warna saat dihover lebih gelap */
    color: #ffffff;
}

.rb-btn-register:active {
    transform: scale(0.98);
}

/* Animasi Pulse untuk Tag Terdekat */
@keyframes pulseAnimation {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(40, 167, 69, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* Responsif Mobile (Stacking ke bawah) */

/* Container Ikon/Image */
.rb-service-card .rb-service-icon {
    display: flex;
    justify-content: center; /* Rata tengah secara horizontal */
    align-items: center;     /* Rata tengah secara vertikal */
    width: 200px;            /* Sesuai ukuran gambar dari prompt sebelumnya */
    height: 200px;           /* Sesuai ukuran gambar dari prompt sebelumnya */
    max-width: 100%;
    margin: 0 auto 20px auto; /* '0 auto' membuat container ini pas di tengah-tengah card */
    border-radius: 12px;     /* Opsional: membuat sudut gambar melengkung halus seperti gaya Pixar */
    overflow: hidden;        /* Memotong bagian gambar yang keluar dari border radius */
}

/* Pengaturan Gambar di Dalamnya */
.rb-service-card .rb-service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;       /* Memastikan gambar proporsional memenuhi area 200x200 */
    display: block;
}

/* --- MEDIA QUERIES (MOVED TO BOTTOM FOR CASCADE) --- */

@media (max-width: 1024px) {
    .rb-container { padding: 0 1.5rem; }
    
    .rb-nav { height: 70px; }
    .rb-logo img { height: 38px; }

    /* Navbar Responsive */
    .rb-hamburger { display: flex; }
    
    .rb-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 100px 40px;
        gap: 1.5rem;
        box-shadow: -20px 0 60px rgba(0,0,0,0.1);
        transition: var(--rb-transition);
        z-index: 1050;
        margin-left: 0;
        margin-right: 0;
    }

    .rb-menu.active { right: 0; }

    .rb-menu-item a { font-size: 1.2rem; padding: 0.5rem 0; color: var(--rb-text-main) !important; }
    
    .rb-dropdown {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 0 0 1rem !important;
        margin-top: 0.5rem !important;
        display: none;
        width: 100% !important;
    }

    .rb-menu-item.active .rb-dropdown { 
        display: block; 
        margin-top: 1rem;
        background: #f1f5f9;
        border-radius: 12px;
    }
    
    .rb-dropdown a {
        padding: 0.8rem 1rem !important;
        font-size: 1rem !important;
        color: var(--rb-primary) !important;
    }
    
    #rbDesktopCta { display: none !important; }
    .rb-menu .rb-cta-btn { 
        display: inline-block !important; 
        margin-top: 1rem; 
        text-align: center; 
        color: white !important;
    }

    /* Grids stacking */
    .rb-hero-grid, .rb-services-grid, .rb-testi-grid, .rb-cta-box, .rb-footer-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem;
    }

    .rb-hero { text-align: center; padding-top: 100px; padding-bottom: 60px; }
    .rb-hero p { margin: 0 auto 2rem; }
    .rb-hero-btns { justify-content: center; }
    
    .rb-menu-item.active .rb-dropdown-toggle i {
        transform: rotate(180deg);
    }
    
    .rb-dropdown-toggle i {
        transition: transform 0.3s ease;
    }

    .rb-hero-img img { aspect-ratio: 1; height: 300px; object-fit: cover; border-radius: 24px; }
    
    .rb-service-card, .rb-testi-card { padding: 2rem !important; border-radius: 24px !important; }
    .rb-service-card .rb-service-icon, .rb-service-icon { 
        width: 100px; 
        height: 100px; 
        font-size: 1.5rem; 
        margin: 0 auto 1.5rem auto !important; 
        border-radius: 12px;
    }
    .rb-service-card .rb-service-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    .rb-service-card h3 { font-size: 1.4rem; text-align: center; }
    .rb-service-card p.service-focus { text-align: center; }
    
    .rb-testimonials { margin: 0 1rem; border-radius: 32px; padding: 4rem 0; }
    .rb-section-head { margin-bottom: 3rem; }
    .rb-section-head h2 { font-size: 2.2rem; }
    
    .rb-cta-box { padding: 3rem 1.5rem; border-radius: 32px; }
    .rb-cta-content h2 { font-size: 2.5rem; }

    /* Specific grids for blog and jadwal */
    .blog-grid, .rb-jadwal-grid {
        grid-template-columns: 1fr !important;
    }

    .rb-footer-brand { text-align: center; }
    .rb-footer-col { text-align: center; }
}

@media (max-width: 640px) {
    .rb-hero { padding-top: 100px; padding-bottom: 60px; }
    .rb-hero h1 { font-size: 2.5rem; }
    .rb-hero-btns { flex-direction: column; width: 100%; }
    .rb-hero-btns a { 
        width: 100%; 
        text-align: center; 
        padding: 1rem 1.5rem !important; 
        font-size: 1rem !important;
    }
    .rb-cta-box { padding: 3rem 1.5rem; }
    .rb-cta-content h2 { font-size: 2.2rem; }
    
    /* General Button Fix for Mobile */
    .rb-btn-primary, .rb-btn-outline, .rb-cta-btn {
        width: 100% !important;
        display: block !important;
        text-align: center;
        padding: 1rem 1.2rem !important;
        box-sizing: border-box;
    }
    
    .rb-footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 768px) {
    .rb-hero-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }
    .rb-hero-btns {
        justify-content: center;
    }
    .rb-poster-card {
        margin: 0 auto;
    }
}