/* ===== WELCOME PAGE STYLES ===== */

body, h1, h2, h4, h3, h5, h6, .display-2, .lead, p {
    font-family: 'Nunito Sans', sans-serif !important;
}


/* Navbar default (idle) */
#navbar-main {
    background: transparent;
    transition: all 0.3s ease;
}

/* Menu default */
.menu-link {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600;
    color: #2d3748 !important;
    transition: all 0.3s ease;
}

/* Saat scroll */
#navbar-main.scrolled {
    background-color: #0093dd;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Menu jadi putih saat scroll */
#navbar-main.scrolled .menu-link {
    color: #ffffff !important;
}

/* Hover saat scroll */
#navbar-main.scrolled .menu-link:hover {
    color: #cfe2ff !important;
}

/* Supaya konten tidak ketutup navbar */
body {
    padding-top: 80px;
}

.footer {
    background-color: #0093dd !important;
}

/* ===== RESPONSIVE STYLES ===== */

/* Responsive display headings */
.display-3 {
    font-size: 1.75rem;
}

@media (min-width: 768px) {
    .display-md-2 {
        font-size: 3.5rem !important;
    }
}

/* Responsive heading styles */
.h1-md {
    font-size: 1.5rem;
}

.h2-md {
    font-size: 1.75rem;
}

@media (min-width: 768px) {
    .h1-md {
        font-size: 2.5rem;
    }
    
    .h2-md {
        font-size: 2rem;
    }
}

/* Service cards responsive */
.konsul-card {
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.konsul-card .image {
    overflow: hidden;
    height: 200px;
    display: block;
}

.konsul-card .image img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block !important;
}

.konsul-card:hover .image img {
    transform: scale(1.05);
}

.konsul-card .content {
    padding: 0.7rem;
    background-color: #0093dd;
    border-radius: 1rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.konsul-card h4 {
    margin: 0;
    color: #ffffff;
    text-align: center;
    font-weight: 500; 
}


@media (max-width: 576px) {
    .konsul-card .image {
        height: 150px;
    }
    
    .konsul-card .content {
        padding: 1rem;
    }
}

/* Section responsive */
.section-header {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

@media (max-width: 576px) {
    .section-header {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .display-3 {
        font-size: 1.5rem;
    }
    
    .h2 {
        font-size: 1.5rem;
    }
    
    body {
        padding-top: 80px;
    }
}

/* Button responsive */
.btn {
    min-width: 120px;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    display: inline-block;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.btn-primary {
    background-color: #0093dd;
    border-color: #0093dd;
}

.btn-primary:hover {
    background-color: #0077b6;
    border-color: #0077b6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 147, 221, 0.3);
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

@media (max-width: 576px) {
    .btn {
        min-width: 100px;
        font-size: 0.9rem;
        padding: 0.4rem 0.75rem;
        margin-right: 0.25rem;
    }
    
    .btn-block {
        display: block;
        width: 100%;
    }
}

/* Responsive gap utilities */
.gy-4 {
    row-gap: 2rem;
}

.g-4 {
    gap: 2rem;
}

@media (max-width: 576px) {
    .gy-4 {
        row-gap: 1.5rem;
    }
    
    .g-4 {
        gap: 1rem;
    }
}

/* Image responsive */
img.img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Override img-fluid inside konsul-card */
.konsul-card .image img.img-fluid {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover;
    object-position: center;
    display: block !important;
}

/* Responsive footer */
.footer .col-lg-6 {
    margin-bottom: 1.5rem;
}

@media (max-width: 991px) {
    .footer .col-lg-6 {
        margin-bottom: 2rem;
    }
}

/* Responsive logo */
@media (max-width: 576px) {
    #logo-blue, #logo-white {
        height: 40px;
    }
}

/* Navbar toggler styling for mobile */
.navbar-toggler {
    background-color: rgba(0, 0, 0, 0.1);
    border: 1px solid #ccc;
    border-radius: 0.25rem;
}

#navbar-main.scrolled .navbar-toggler {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

