/* ================ Variables ================ */

:root {
    --primary-color: #05888a;
    --secondary-color: #f1f4f9;
    --text-dark: #333;
    --text-light: #fff;
    --transition: all 0.3s ease;
}


/* ================ General Styles ================ */

body {
    font-family: 'Arial', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px;
}


/* ================ Navbar ================ */

.navbar {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.495);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition) !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
}

.dropdown-item {
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--secondary-color);
    color: var(--primary-color) !important;
}


/* ================ Hero Section ================ */

.hero-section {
    position: relative;
    height: 80vh;
    min-height: 740px;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: url('../img/menuutama.jpg') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-title {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.hero-salam {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    z-index: 2;
    position: relative;
}

.hero-cta .btn {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    margin-right: 1rem;
    position: relative;
    z-index: 2;
}


/* ================ Produk Section ================ */

.produk-section {
    padding: 5rem 0;
    background: var(--secondary-color);
}

.produk-card {
    background: var(--text-light);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.produk-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.produk-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.produk-body {
    padding: 1.5rem;
}

.produk-body h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}


/* ================ Berita Section ================ */

.berita-section {
    padding: 5rem 0;
}

.berita-card {
    background: var(--text-light);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.berita-card:hover {
    transform: translateY(-5px);
}

.berita-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}


/* Lanjutan CSS dari sebelumnya */

.berita-body {
    padding: 1.5rem;
}

.berita-body time {
    color: #666;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.berita-body h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.berita-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.berita-link:hover {
    color: #026c6e;
    text-decoration: underline;
}


/* ================ Footer ================ */

.footer {
    background: #2a2a2a;
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

.footer-info {
    margin-bottom: 2rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer address p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer .fas {
    width: 20px;
    color: var(--primary-color);
}

.footer-jam h4 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-jam ul {
    list-style: none;
    padding-left: 0;
}

.footer-jam li {
    margin-bottom: 0.5rem;
    color: #ccc;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #444;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}


/* ================ Responsive Design ================ */

@media (max-width: 992px) {
    .hero-section {
        height: auto;
        padding: 120px 0 60px;
    }
    .hero-title {
        font-size: 2rem;
    }
    .produk-section,
    .berita-section {
        padding: 3rem 0;
    }
    .footer-map {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar-brand img {
        width: 120px !important;
    }
    .hero-title {
        font-size: 1.75rem;
    }
    .hero-cta .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    .footer-bottom {
        flex-direction: column;
    }
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        background-position: 60% center;
    }
    .produk-card,
    .berita-card {
        margin-bottom: 1.5rem;
    }
    .footer address p {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }
}


/* ================ Animasi ================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-in;
}


/* ================ Utility Classes ================ */

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.section-subtitle {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}


/* About Page Specific Styles */

.about-hero {
    background: url('../img/perusahaanprofil.jpg') center/cover;
}

.timeline {
    position: relative;
    padding-left: 40px;
    margin: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-date {
    position: absolute;
    left: -40px;
    top: 0;
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.timeline-content {
    background: var(--secondary-color);
    padding: 1rem;
    border-radius: 8px;
    position: relative;
}

.legalitas-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--secondary-color);
    border-radius: 8px;
}

.mission-list {
    list-style: none;
    padding-left: 0;
}

.mission-list li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 2rem;
}

.mission-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}


/* OJK Page Specific Styles */

.ojk-content .list-group-item {
    border-left: 3px solid var(--primary-color);
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.ojk-content .list-group-item:hover {
    background: var(--secondary-color);
    padding-left: 1.5rem;
}


/* Pembiayaan Page Specific Styles */

.pembiayaan-hero {
    background: url('../img/pembiyaann.jpg') center/cover;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    text-align: center;
}

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.step-icon i {
    color: white;
    font-size: 1.5rem;
}


/* Simulasi Page Specific Styles */

.simulasi-hero {
    background: url('../img/simulasipemba.jpg') center/cover;
}

.hasil-simulasi {
    background: var(--secondary-color);
    padding: 1.5rem;
    border-radius: 8px;
    height: 100%;
}

.hasil-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
}

.hasil-item:last-child {
    border-bottom: none;
}

.hasil-item span {
    color: var(--text-dark);
    font-size: 0.9rem;
}

.hasil-item strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .hasil-simulasi {
        margin-top: 2rem;
    }
}


/* Pengaduan Page Specific Styles */

.pengaduan-hero {
    background: url('../img/layananpengaduan.jpg') center/cover;
}

.form-section {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin: 2rem 0;
}

.form-section-title {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.invalid-feedback {
    font-size: 0.9rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(5, 136, 138, 0.25);
}


/* Manajemen Page Specific Styles */

.manajemen-hero {
    background: url('../img/perusahaanstruktur.jpg') center/cover;
}

.management-card {
    transition: transform 0.3s ease;
}

.management-card:hover {
    transform: translateY(-5px);
}

.management-card img {
    height: 300px;
    object-fit: cover;
    border-bottom: 3px solid var(--primary-color);
}


/* Laporan Page Specific Styles */

.laporan-hero {
    background: url('../img/laporanpublikasi.jpg') center/cover;
}

.accordion-button:not(.collapsed) {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

/* Gallery Page Specific Styles */

.gallery-hero {
    background: url('../img/galeri.jpg') center/cover;
}

.gallery-filter {
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.gallery-card {
    display: block;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
}

.image-container {
    position: relative;
    aspect-ratio: 1/1;
}

.image-container img {
    width: 100%;
    height: 150%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
}

.gallery-card:hover .image-overlay {
    opacity: 1;
}

.overlay-content {
    color: white;
}

.overlay-content h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.overlay-content p {
    font-size: 0.9rem;
    margin: 0;
}


/* LightGallery Customization */

.lg-backdrop {
    background-color: rgba(0, 0, 0, 0.9);
}

.lg-outer .lg-thumb-item.active,
.lg-outer .lg-thumb-item:hover {
    border-color: var(--primary-color);
}

.lg-progress-bar .lg-progress {
    background-color: var(--primary-color);
}


/* News Page Specific Styles */

.news-hero {
    background: url('../img/newterbary.jpg') center/cover;
}

.news-card {
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card img {
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid var(--primary-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-link {
    color: var(--primary-color);
}

.page-link:hover {
    color: #026c6e;
}


/* Simulasi Deposito Page Specific Styles */

.deposito-hero {
    background: linear-gradient(rgba(5, 136, 138, 0.9), rgba(5, 136, 138, 0.9)), url('../img/deposito-bg.webp') center/cover;
}

.hasil-simulasi {
    background: var(--secondary-color);
    padding: 1.5rem;
    border-radius: 8px;
    height: 100%;
}

.hasil-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
}

.hasil-item:last-child {
    border-bottom: none;
}

.hasil-item span {
    color: var(--text-dark);
    font-size: 0.9rem;
}

.hasil-item strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .hasil-simulaci {
        margin-top: 2rem;
    }
}


/* simpanan Page Specific Styles */

.simpanan-hero {
    background: url('../img/simpannn.jpg') center/cover;
}


/* contact Page Specific Styles */

.contact-hero {
    background: url('../img/hubungikami.jpg') center/cover;
}

.modal-body img {
    max-width: 100%;
    /* Gambar tidak akan melebihi lebar modal */
    height: auto;
    /* Tinggi otomatis untuk menjaga rasio aspek */
    display: block;
    /* Menghindari spasi di bawah gambar */
    margin: 0 auto;
    /* Memusatkan gambar */
}
