/* ========== GLOBAL STYLES ========== */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.hover-lift {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gradient-primary {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 50%, #115e59 100%);
}

.gradient-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: float 8s ease-in-out infinite;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(13, 148, 136, 0.1);
    color: #0d9488;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.icon-box {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-size: 1.75rem;
    transition: all 0.3s ease;
}

/* ========== ABOUT SECTION ========== */
.about-modern {
    position: relative;
    overflow: hidden;
}

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    border-radius: 30px;
    top: 20px;
    left: 20px;
    z-index: 0;
}

.about-image-wrapper img {
    position: relative;
    z-index: 1;
    border-radius: 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.about-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: white;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    color: #374151;
    transition: all 0.3s ease;
}

.about-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.about-badge i {
    color: #0d9488;
}


/* ========== UNIT KAMI ========== */
.unit-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.unit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.unit-card>img:first-child {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.unit-card:hover>img:first-child {
    transform: scale(1.1);
}

/* Dark overlay - always visible for logo visibility */
.unit-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
    transition: all 0.4s ease;
}

.unit-card:hover::before {
    background: linear-gradient(to top,
            rgba(13, 148, 136, 0.95) 0%,
            rgba(13, 148, 136, 0.7) 50%,
            rgba(13, 148, 136, 0.3) 100%);
}

/* Logo container with white background */
.unit-card-logo-wrapper {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    background: white;
    padding: 0.75rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.unit-card:hover .unit-card-logo-wrapper {
    bottom: 50%;
    transform: translate(-50%, 50%);
    padding: 1rem 2rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.unit-card-logo-wrapper img {
    max-width: 180px;
    height: auto;
    display: block;
    transition: all 0.4s ease;
}

.unit-card:hover .unit-card-logo-wrapper img {
    max-width: 220px;
}

/* Info overlay - shown on hover */
.unit-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.unit-card:hover .unit-card-overlay {
    opacity: 1;
    transform: translateY(0);
}

.unit-card-overlay h4 {
    font-size: 1.25rem;
}

.unit-card-overlay p {
    font-size: 0.9rem;
}

/* Unit name badge - always visible */
.unit-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 3;
    background: white;
    color: #0d9488;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.unit-card:hover .unit-badge {
    background: #0d9488;
    color: white;
}

/* ========== MADING PRESTASI ========== */
.mading-modern {
    position: relative;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    overflow: hidden;
}

.mading-card-new {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.mading-card-new:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.mading-card-new img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mading-card-new:hover img {
    transform: scale(1.1);
}

.mading-card-new::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mading-card-new:hover::after {
    opacity: 1;
}

/* ========== TESTIMONIAL ========== */
.testimonial-modern {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.testimonial-card-new {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    transition: all 0.4s ease;
    height: 100%;
}

.testimonial-card-new:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.testimonial-quote {
    font-size: 4rem;
    line-height: 1;
    color: #0d9488;
    opacity: 0.3;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 1.25rem;
}

.testimonial-small {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
}

/* ========== NEWS ========== */
.news-modern {
    background: #f8fafc;
}

.news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.news-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover img {
    transform: scale(1.05);
}

.news-card-body {
    padding: 1.5rem;
}

.news-date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0d9488;
    font-size: 0.875rem;
    font-weight: 500;
}

/* ========== BUTTONS ========== */
.btn-modern {
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-modern-primary {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: white;
    border: none;
}

.btn-modern-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.4);
    color: white;
}

.btn-modern-outline {
    background: transparent;
    color: #0d9488;
    border: 2px solid #0d9488;
}

.btn-modern-outline:hover {
    background: #0d9488;
    color: white;
    transform: translateY(-3px);
}

/* ===== CRIVY VALUES SECTION ===== */
.crivy-section {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 50%, #115e59 100%);
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}

/* Background decorative pattern */
.crivy-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 L55 30 L30 55 L5 30 Z' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 60px 60px;
    pointer-events: none;
    /* PENTING: agar tidak block hover */
}

/* Decorative background image - HARUS pointer-events: none */
.logo-decor {
    position: absolute;
    inset: 0;
    background: url(../img/home/karakter.png) no-repeat center center;
    background-size: contain;
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
    /* PENTING: agar tidak block hover */
}

/* Value card - z-index lebih tinggi */
.value-card {
    position: relative;
    padding: 2rem;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    height: 100%;
    transition: all 0.3s ease;
    z-index: 3;
    /* Di atas logo-decor */
    background: transparent;
}

.value-card:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Corner brackets decoration */
.value-card::before,
.value-card::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.value-card::before {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
    border-radius: 10px 0 0 0;
}

.value-card::after {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
    border-radius: 0 0 10px 0;
}

/* Corner brackets hover effect */
.value-card:hover::before,
.value-card:hover::after {
    border-color: rgba(255, 255, 255, 0.8);
    width: 30px;
    height: 30px;
}

.value-title {
    font-family: 'Georgia', serif;
    font-size: 2.5rem;
    font-weight: 700;
    font-style: italic;
    color: #ffffff;
    margin-bottom: 1rem;
}

.value-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* Center logo container */
.logo-center {
    position: relative;
    z-index: 4;
    /* Di atas semua */
}

.logo-wrapper {
    background: white;
    border-radius: 20px;
    padding: 1.5rem 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: inline-block;
    transition: all 0.3s ease;
}

.logo-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
}

.logo-wrapper img {
    max-width: 300px;
    height: auto;
}

/* Responsive */
@media (max-width: 991.98px) {
    .value-title {
        font-size: 2rem;
    }

    .value-card {
        padding: 1.5rem;
    }

    .logo-center {
        display: none;
    }
    .text-unit{
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    .crivy-section {
        padding: 3rem 0;
    }

    .value-title {
        font-size: 1.75rem;
    }

    .value-desc {
        font-size: 0.9rem;
    }

    .logo-center {
        display: none;
    }
    .text-unit{
        display: none !important;
    }
}