html {
    scroll-behavior: smooth;
}

/* Vector data image styling */
.vector-data-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin-top: 20px;
    transform: scale(1.3);
    display: block;
    margin-left: auto;
    margin-right: auto;
    transform-origin: center;
}

/* Search bar styling */
.search-section {
    padding: 80px 0;
    background-color: transparent;
}

.search-section .search-element {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0;
}

.search-section .form-control {
    height: 60px !important;
    border-radius: 40px;
    padding: 0 160px 0 20px;
    font-size: 0.9rem;
    border: 2px solid #6777ef;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.search-section .form-control:focus {
    border-color: #89b4fa;
    box-shadow: 0 0 8px rgba(103, 119, 239, 0.3);
}

.search-section .btn-cari {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    height: 43px;
    border-radius: 22px;
    padding: 0 20px;
    font-size: 1.1rem;
    color: #fff;
    background: linear-gradient(45deg, #0a58ca, #0d6efd);
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    box-shadow: none;
    outline: none;
}

.search-section .btn-cari:hover {
    background: linear-gradient(45deg, #0d6efd, #0a58ca);
    transform: translateY(-50%) scale(1.05);
}

.search-section .btn-cari i {
    font-size: 1rem;
}

.search-section .form-inline {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Urusan section (card-based with prominent illustrations) */
.urusan-section {
    margin-top: 50px;
}

.urusan-section .section-title-page {
    text-align: center;
    margin-bottom: 30px;
}

.urusan-section .section-title-page h2 {
    color: #0a58ca;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.urusan-section .section-title-page p {
    color: #6c757d;
    font-size: 1.1rem;
}

/* New Urusan Section Styles */
.urusan-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* padding: 0 15px; */
}

.urusan-card-new {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 10px;
    /* Square shape initially */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100px;
    text-decoration: none !important;
    position: relative;
}

.urusan-card-new:hover {
    background: linear-gradient(45deg, #0a58ca, #0d6efd);
    /* Blue background on hover */
    border-radius: 10px 50px 50px 10px;
    /* Rounded right side on hover */
    transform: translateX(10px);
}

.urusan-card-new:hover .urusan-content h3 {
    color: white;
    text-decoration: none !important;
}

.urusan-card-new:hover .urusan-icon {
    background: white;
}

.urusan-icon {
    width: 80px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.urusan-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.urusan-content {
    padding: 0 20px;
    flex-grow: 1;
}

.urusan-content h3 {
    color: #2d3748;
    margin: 0;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

@media (max-width: 768px) {
    .search-section {
        padding: 10px 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .urusan-section .container-fluid {
        padding: 0;
    }

    .urusan-section .row {
        margin: 0;
        flex-direction: column;
    }

    .urusan-section .col-md-6 {
        padding: 0 10px;
        width: 100%;
    }

    .urusan-column {
        gap: 10px;
        padding: 0 !important;
        margin-bottom: 15px;
    }

    .urusan-card-new {
        border-radius: 8px;
        margin-bottom: 10px;
        height: 70px;
    }

    .urusan-card-new:hover {
        border-radius: 8px 40px 40px 8px;
        transform: translateX(5px);
    }

    .urusan-card-new:last-child {
        margin-bottom: 0;
    }
}

@keyframes shine {
    0% {
        transform: rotate(45deg) translateX(-100%);
    }

    100% {
        transform: rotate(45deg) translateX(100%);
    }
}

@media (max-width: 768px) {
    .vector-data-img {
        display: none !important;
    }

    .search-section .form-control {
        height: 50px !important;
        font-size: 1rem;
        padding: 0 130px 0 15px;
        border-radius: 30px;
    }

    .search-section .btn-cari {
        height: 36px;
        font-size: 0.9rem;
        padding: 0 15px;
        border-radius: 18px;
        gap: 6px;
    }
}

@media (max-width: 992px) {
    .vector-data-img {
        display: none !important;
    }
}

/* stats-card.css */
.stats-composite-card {
    display: flex;
    background: white;
    border-radius: 100px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 10px;
}

.stats-composite-card .stat-item {
    flex: 1;
    padding: 1px 1px;
    text-align: center;
    position: relative;
}

.stats-composite-card .stat-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 1px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.1) 20%,
        rgba(0, 0, 0, 0.1) 80%,
        transparent 100%
    );
}

.stats-composite-card .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 1px 0;
    background: linear-gradient(45deg, #0a58ca, #0d6efd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.stats-composite-card .stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 5px 0;
    color: #4a5568;
}

.stats-composite-card .stat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    border-radius: 20px;
    background: linear-gradient(45deg, #0a58ca, #0d6efd);
    color: #fff;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    box-shadow: 0 4px 8px rgba(103, 119, 239, 0.2);
    margin: 10px 0;
}

.stats-composite-card .stat-btn:hover {
    background: linear-gradient(45deg, #0b5ed7, #2b8eff);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(103, 119, 239, 0.3);
}

.stats-composite-card .stat-btn i {
    margin-left: 6px;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.stats-composite-card .stat-btn:hover i {
    transform: translateX(4px);
}

/* Responsive styles */
@media (max-width: 768px) {
    .stats-composite-card {
        flex-direction: column;
        border-radius: 20px;
    }

    .stats-composite-card .stat-item:not(:last-child)::after {
        right: 50%;
        top: 100%;
        transform: translateX(50%);
        height: 1px;
        width: 60%;
        background: linear-gradient(
            to right,
            transparent 0%,
            rgba(0, 0, 0, 0.1) 20%,
            rgba(0, 0, 0, 0.1) 80%,
            transparent 100%
        );
    }

    .stats-composite-card .stat-value {
        font-size: 1.8rem;
    }

    .stats-composite-card .stat-label {
        font-size: 0.9rem;
    }
}

/* Most Viewed Section */
.mostview-section {
    margin-top: 20px;
}

.mostview-section .section-title-page {
    text-align: center;
    margin-bottom: 30px;
}

.mostview-section .section-title-page h2 {
    color: #0a58ca;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.mostview-section .section-title-page p {
    color: #6c757d;
    font-size: 1.1rem;
}

/* Dual Dataset Cards with Equal Content Height */
.datasets-container {
    display: flex;
    gap: 25px;
    margin-top: 30px;
}

.dataset-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dataset-header {
    height: 80px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding-left: 25px;
}

.dataset-header .header-title {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    z-index: 2;
    flex-grow: 1;
}

.dataset-header .header-title i {
    font-size: 1.1em;
    opacity: 0.9;
}

.dataset-header img {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    height: 60px;
    width: auto;
    opacity: 0.9;
    z-index: 1;
}

.popular-header {
    background: linear-gradient(135deg, #0a58ca, #34a853);
}

.new-header {
    background: linear-gradient(135deg, #0a58ca, #fbbc05);
}

.dataset-body {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dataset-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dataset-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    flex: 1;
    min-height: 0;
    /* Crucial for equal height */
}

.dataset-item:last-child {
    border-bottom: none;
}

.dataset-content {
    flex: 1;
    min-width: 0;
    /* Prevent overflow */
    overflow: hidden;
}

.dataset-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #2d3748;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.dataset-subtitle {
    font-size: 0.85rem;
    color: #0a58ca;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dataset-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dataset-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.popular-dataset .dataset-badge {
    /* background: rgba(66, 133, 244, 0.1);
    color: #0a58ca; */
    background-color: rgba(13, 110, 253, 0.1); /* Biru sangat muda transparan */
    color: #0d6efd; /* Biru solid yang kontras */
    padding: 0.25rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
}

.new-dataset .dataset-badge {
    /* background: rgba(66, 133, 244, 0.1);
    color: #0a58ca; */
    background-color: rgba(13, 110, 253, 0.1); /* Biru sangat muda transparan */
    color: #0d6efd; /* Biru solid yang kontras */
    padding: 0.25rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
}

.dataset-link {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    text-decoration: none !important;
    margin-left: 10px;
    flex-shrink: 0;
}

.popular-dataset .dataset-link {
    background: #0a58ca;
}

.new-dataset .dataset-link {
    background: #0a58ca;
}

.dataset-item:hover {
    background-color: #f8f9fa;
}

.dataset-item:hover::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
}

.popular-dataset .dataset-item:hover::before {
    background: #0a58ca;
}

.new-dataset .dataset-item:hover::before {
    background: #0a58ca;
}

.dataset-item:hover .dataset-link {
    opacity: 1;
}

.dataset-link:hover {
    /* transform: scale(1.1); */
    transform: rotate(360deg);
    color: white;
}

/* Responsive */
@media (max-width: 992px) {
    .datasets-container {
        flex-direction: column;
    }

    .dataset-item {
        min-height: 70px;
    }
}

@media (max-width: 768px) {
    .dataset-header {
        height: 70px;
    }

    .dataset-header img {
        height: 50px;
        right: 15px;
    }

    .dataset-title {
        font-size: 0.9rem;
    }

    .dataset-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }

    .dataset-header .header-title {
        font-size: 1.1rem;
        padding-left: 15px;
    }
}

/* Text Logo Styling */
.text-logo {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 2.6rem;
    line-height: 1;
}

.lumajang {
    color: #4361ee;
    /* Blue color */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.satu-data {
    color: #6c757d;
    /* Gray color */
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .text-logo {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .text-logo {
        font-size: 1.8rem;
    }
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-load {
    opacity: 0;
}

.animate-on-load.loaded {
    animation: fadeUp 1s ease forwards;
}

/* Animasi masuk dari kiri */
.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: fadeInLeft 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

/* Animasi masuk dari kanan */
.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    animation: fadeInRight 0.8s ease-out forwards;
    animation-delay: 0.4s;
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.badge-success {
    background-color: rgba(40, 167, 69, 0.15);
    color: #28a745;
    min-width: 100px;
}
