/* E-Office Portal Custom Styles */

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Reset semua margin dan padding */
* {
    box-sizing: border-box;
}

/* Hilangkan semua border dan garis putus-putus */
.main-banner::before,
.main-banner::after,
main::before,
main::after,
header::after,
footer::before {
    display: none !important;
}

/* Override template borders */
.main-banner,
main,
section,
.container {
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    outline: none !important;
}

.container {
    margin: 0 auto;
    padding: 0 15px;
}

main {
    flex: 1;
    padding: 0;
    margin: 0;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
}

footer {
    background: linear-gradient(135deg, #1976D2 0%, #2196F3 100%) !important;
    color: #ffffff !important;
    padding: 30px 0 !important;
    flex-shrink: 0;
    margin: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-content {
    text-align: center !important;
}

.footer-content p {
    margin: 0 !important;
    font-size: 14px !important;
    color: #ffffff !important;
}

/* Header/Navbar Modern Design */
.header-area {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #1976D2 0%, #2196F3 100%) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-area.scrolled {
    background: linear-gradient(135deg, #1565C0 0%, #1976D2 100%) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.header-area.loaded {
    transform: translateY(0);
    opacity: 1;
}

.header-area .main-nav {
    background: transparent !important;
    padding: 0px 0;
    height: 48px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.header-area.scrolled .main-nav {
    height: 44px;
}

.header-area .main-nav .container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
}

/* Logo Styling dengan efek modern */
.header-area .main-nav .logo {
    display: flex;
    align-items: center;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    color: #1976D2;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-area .main-nav .logo::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1976D2;
    border-radius: 1px;
    transition: width 0.3s ease;
}

.header-area .main-nav .logo:hover::after {
    width: 100%;
}

.header-area .main-nav .logo:hover {
    transform: scale(1.02);
    color: #1565C0;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.header-area .main-nav .logo img {
    height: 40px;
    width: auto;
    margin-right: 12px;
    transition: all 0.3s ease;
}

.header-area .main-nav .logo:hover img {
    transform: scale(1.05);
}

/* Navigation Menu dengan Layout Horizontal Minimal */
.header-area .main-nav .nav {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0 0 0 auto;
    padding: 0;
    gap: -8px;
    height: 100%;
}

.header-area .main-nav .nav li {
    margin: 0;
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.header-area .main-nav .nav li a {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    padding: 0 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    height: 40px;
}

.header-area .main-nav .nav li a i {
    font-size: 0.85rem;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.header-area .main-nav .nav li a:hover i {
    opacity: 1;
    transform: scale(1.05);
}

.header-area .main-nav .nav li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    transition: left 0.3s ease;
    z-index: -1;
    border-radius: 6px;
}

.header-area .main-nav .nav li a:hover::before {
    left: 0;
}

.header-area .main-nav .nav li a:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Mobile Menu Toggle dengan Modern Design */
.header-area .main-nav .menu-trigger {
    display: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-area .main-nav .menu-trigger:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header-area .main-nav .menu-trigger.active {
    background: rgba(244, 67, 54, 0.9);
    border-color: rgba(244, 67, 54, 0.8);
}

/* Animasi untuk loading - sederhana */
.header-area {
    transform: translateY(0);
    opacity: 1;
    transition: all 0.3s ease;
}

/* Card Layout Improvements - Modern 2 Column Grid */
.main-banner {
    padding: 60px 0 0 0;
    margin: 0;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    position: relative;
}

/* Gradient fade untuk mobile */
.main-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent 0%, rgba(25, 118, 210, 0.3) 70%, rgba(25, 118, 210, 0.8) 100%);
    pointer-events: none;
    display: none;
}

.main-banner .container {
    max-width: 1200px;
    width: 100%;
}

/* Title Section */
.main-banner-title {
    text-align: center;
    margin-bottom: 40px;
    padding: 80px 20px 0 20px;
}

.main-banner-title h1 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 800;
    font-size: 3.5rem;
    color: white;
    margin: 0 0 10px 0;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.main-banner-title h2 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 20px 0;
    line-height: 1.4;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.main-banner-title p {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.card-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch;
    padding: 60px 0 40px 0;
    max-width: 1000px;
    margin: 0 auto;
}

/* Card Besar di Kiri */
.card-main {
    grid-column: 1;
    display: flex;
    flex-direction: column;
}

/* Grid 2x2 untuk Card Kecil di Kanan */
.card-grid-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    height: 100%;
}

.card-sub-1 {
    grid-area: 1 / 1;
}

.card-sub-2 {
    grid-area: 1 / 2;
}

.card-sub-3 {
    grid-area: 2 / 1;
}

.card-sub-4 {
    grid-area: 2 / 2;
}

/* Card Styling Modern */
.card-main .thumb,
.card-sub .thumb {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    height: 100%;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

/* Background Icons dengan Opacity Rendah */
.card-main .thumb::before {
    content: '\f015';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.card-sub-1 .thumb::before {
    content: '\f279';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.15);
    z-index: 0;
}

.card-sub-2 .thumb::before {
    content: '\f201';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.15);
    z-index: 0;
}

.card-sub-3 .thumb::before {
    content: '\f0e0';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.15);
    z-index: 0;
}

.card-sub-4 .thumb::before {
    content: '\f4ad';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.15);
    z-index: 0;
}

/* Pastikan content di atas background icon */
.thumb .inner-content {
    position: relative;
    z-index: 1;
}

.card-main .thumb {
    padding: 40px;
    flex: 1;
}

.card-sub .thumb {
    min-height: 180px;
}

.card-main .thumb:hover,
.card-sub .thumb:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

/* Efek hover untuk background icons */
.card-main .thumb:hover::before {
    color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.card-sub .thumb:hover::before {
    color: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* Typography Modern */
.thumb .inner-content h4 {
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.card-sub .thumb .inner-content h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.thumb .inner-content p {
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-sub .thumb .inner-content p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Tombol Modern */
.main-border-button a {
    background: white;
    color: #2196F3;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid white;
}

.card-sub .main-border-button a {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.main-border-button a:hover {
    background: #2196F3;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Hide images untuk fokus ke content */
.thumb img {
    display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-area .main-nav {
        height: 44px;
    }

    .header-area.scrolled .main-nav {
        height: 40px;
    }

    .main-banner {
        padding: 56px 0 0 0;
        min-height: calc(100vh - 56px);
    }

    .header-area .main-nav .nav {
        gap: -10px;
        margin: 0 0 0 auto;
    }

    .header-area .main-nav .nav li a {
        padding: 0 8px;
        font-size: 0.9rem;
        height: 35px;
    }

    .header-area .main-nav .logo {
        font-size: 1.4rem;
        padding: 5px 10px;
    }

    .header-area .main-nav .logo img {
        height: 36px;
    }

    .main-banner-title h1 {
        font-size: 2.8rem;
    }

    .main-banner-title h2 {
        font-size: 1.5rem;
    }

    .main-banner-title p {
        font-size: 1.1rem;
    }

    .card-grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 40px 20px 30px 20px;
        max-width: 600px;
    }

    .card-grid-right {
        grid-template-columns: 1fr 1fr;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .header-area .main-nav {
        height: 42px;
    }

    .header-area .main-nav .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #1976D2 0%, #2196F3 100%);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        padding: 20px 15px;
        border-radius: 0 0 15px 15px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
        gap: 5px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        height: auto;
        margin: 0;
    }

    .header-area .main-nav .nav.active {
        display: flex;
        animation: slideDown 0.3s ease;
    }

    .header-area .main-nav .nav li {
        width: 100%;
        height: auto;
    }

    .header-area .main-nav .nav li a {
        width: 100%;
        text-align: left;
        padding: 12px 16px;
        margin: 2px 0;
        border-radius: 8px;
        font-size: 0.9rem;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.1);
        height: auto;
    }

    .header-area .main-nav .nav li a i {
        margin-right: 10px;
        font-size: 1rem;
        width: 18px;
        text-align: center;
    }

    .header-area .main-nav .nav li a:hover {
        background: rgba(255, 255, 255, 0.2);
        color: white !important;
        transform: translateX(5px);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .header-area .main-nav .menu-trigger {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .header-area .main-nav .menu-trigger i {
        font-size: 0.9rem;
    }

    .header-area .main-nav .container {
        gap: 0;
    }

    .header-area .main-nav .logo {
        font-size: 1.3rem;
        padding: 4px 8px;
    }

    .header-area .main-nav .logo img {
        height: 32px;
    }

    .main-banner {
        padding: 54px 0 40px 0;
        min-height: calc(100vh - 54px);
    }

    /* Aktifkan gradient fade untuk mobile */
    .main-banner::after {
        display: block;
        height: 40px;
    }

    .main-banner-title {
        margin-bottom: 30px;
        padding: 60px 15px 0 15px;
    }

    .main-banner-title h1 {
        font-size: 2.2rem;
    }

    .main-banner-title h2 {
        font-size: 1.2rem;
    }

    .main-banner-title p {
        font-size: 1rem;
    }

    .card-grid-container {
        padding: 20px 10px 40px 10px;
        gap: 12px;
        max-width: 100%;
    }

    .card-grid-right {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 15px;
    }

    .card-main .thumb,
    .card-sub .thumb {
        padding: 15px;
        min-height: 140px;
        border-radius: 15px;
    }

    /* Typography untuk mobile */
    .thumb .inner-content h4 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .card-sub .thumb .inner-content h4 {
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .thumb .inner-content p {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 12px;
    }

    .card-sub .thumb .inner-content p {
        font-size: 0.75rem;
        margin-bottom: 10px;
    }

    /* Button untuk mobile */
    .main-border-button a {
        padding: 8px 16px;
        font-size: 0.8rem;
        border-radius: 20px;
    }

    .card-sub .main-border-button a {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    /* Background icons untuk mobile */
    .card-main .thumb::before {
        font-size: 2.5rem;
        top: 12px;
        right: 12px;
    }

    .card-sub-1 .thumb::before,
    .card-sub-2 .thumb::before,
    .card-sub-3 .thumb::before,
    .card-sub-4 .thumb::before {
        font-size: 1.8rem;
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .header-area .main-nav .container {
        gap: 0;
    }

    .header-area .main-nav .logo {
        font-size: 1.2rem;
        padding: 3px 6px;
    }

    .header-area .main-nav .logo img {
        height: 30px;
        margin-right: 8px;
    }

    .header-area .main-nav .menu-trigger {
        padding: 10px 12px;
        font-size: 0.8rem;
    }

    .main-banner {
        padding: 52px 0 60px 0;
        min-height: calc(100vh - 52px);
    }

    /* Gradient fade yang lebih besar untuk mobile kecil */
    .main-banner::after {
        display: block;
        height: 60px;
        background: linear-gradient(to bottom, transparent 0%, rgba(25, 118, 210, 0.4) 60%, rgba(25, 118, 210, 0.9) 100%);
    }

    .main-banner-title {
        margin-bottom: 25px;
        padding: 50px 10px 0 10px;
    }

    .main-banner-title h1 {
        font-size: 1.8rem;
    }

    .main-banner-title h2 {
        font-size: 1rem;
    }

    .main-banner-title p {
        font-size: 0.9rem;
    }

    .card-grid-container {
        padding: 15px 8px 50px 8px;
        gap: 10px;
    }

    .card-main .thumb,
    .card-sub .thumb {
        padding: 12px;
        min-height: 120px;
        border-radius: 12px;
    }

    /* Typography untuk mobile sangat kecil */
    .thumb .inner-content h4 {
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .card-sub .thumb .inner-content h4 {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }

    .thumb .inner-content p {
        font-size: 0.75rem;
        margin-bottom: 10px;
    }

    .card-sub .thumb .inner-content p {
        font-size: 0.7rem;
        margin-bottom: 8px;
    }

    /* Button untuk mobile sangat kecil */
    .main-border-button a {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .card-sub .main-border-button a {
        padding: 5px 10px;
        font-size: 0.7rem;
    }

    /* Background icons untuk mobile sangat kecil */
    .card-main .thumb::before {
        font-size: 2rem;
        top: 10px;
        right: 10px;
    }

    .card-sub-1 .thumb::before,
    .card-sub-2 .thumb::before,
    .card-sub-3 .thumb::before,
    .card-sub-4 .thumb::before {
        font-size: 1.5rem;
        top: 8px;
        right: 8px;
    }
}

/* Animasi untuk mobile menu */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
