/* Global Styles */
html,
body {
    position: relative;
    font-size: 1em;
}

body {
    font-family: "Montserrat", sans-serif;
    color: #444;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Link Styles */
a {
    color: #28a745;
    text-decoration: none;
}

a:hover {
    color: #1e7e34;
}

/* Heading Styles */
h1 {
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
}

h2 {
    font-size: clamp(1.4rem, 2vw, 1.8rem);
}

h3 {
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
}

h4 {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
}

h5 {
    font-size: clamp(1rem, 1.3vw, 1.2rem);
}

h6 {
    font-size: clamp(0.9rem, 1vw, 1rem);
}

/* Carousel Styles */
.hero .carousel-inner img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.carousel {
    margin-bottom: 20px;
}

.carousel-item img {
    object-fit: cover;
    height: 400px;
}

.carousel-caption {
    bottom: 20px;
}

/* Badge Styles */
.badge.bg-info > a {
    color: #fff;
}

/* Back to Top Button Styles */
#backToTop {
    display: none;
    z-index: 999;
    transition: opacity 0.3s ease;
}

#backToTop.show {
    display: block;
}

/* Navbar Styles */
.navbar-custom,
.navbar {
    background-color: #2E8B57;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    padding: 12px 20px;
    transition: all 0.3s ease-in-out;
}

.navbar-brand img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 991px) {
    .navbar-brand img {
        max-width: 140px;
        filter: brightness(0) invert(1);
    }

    .navbar-brand.d-lg-none {
        position: absolute;
        top: 50%;
        left: 10px;
        transform: translateY(-50%);
        max-width: 120px;
    }

    .navbar-toggler {
        margin-left: auto;
    }
}

.navbar-toggler {
    margin-left: auto;
}

.navbar-nav .nav-link {
    font-size: clamp(13px, 1vw, 15px);
    font-weight: 600;
    color: #F0FFF0;
    padding: 10px 15px;
    transition: all 0.3s ease-in-out;
    border-radius: 5px;
    margin: 5px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.2);
}

/* Dropdown Menu Styles */
.dropdown-menu {
    background: #2E8B57;
    border: none;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    transition: all 0.3s ease-in-out;
}

.dropdown-menu .dropdown-item {
    font-size: clamp(13px, 1vw, 14px);
    padding: 10px 20px;
    color: #F0FFF0;
    transition: background 0.3s ease-in-out;
}

.dropdown-menu .dropdown-item:hover {
    background: #3CB371;
    color: #ffffff;
    border-radius: 5px;
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 992px) {
    .navbar-nav {
        background: #2E8B57;
        padding: 15px;
        border-radius: 10px;
    }

    .navbar-nav .nav-link {
        color: #F0FFF0;
        padding: 10px 10px;
    }

    .navbar-nav .nav-link:hover {
        background: #3CB371;
        color: #ffffff;
    }
}

/* Custom Colors */
.bg-light-green {
    background-color: #e9f5e9;
}

.text-dark-green {
    color: #1e7e34;
}

.bg-dark-green {
    background-color: #1e7e34;
}

.text-light-green {
    color: #e9f5e9;
}

.link-dark-green {
    color: #1e7e34;
}

.text-success {
    color: #28a745;
}

/* Card Styles */
.layanan-card {
    transition: all 0.3s ease-in-out;
}

.layanan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

/* Additional Background Colors */
.bg-dark-green {
    background-color: #1b3a2f;
}

.bg-green-dark {
    background-color: #206a42;
}

/* Client Logo Styles */
.client-logo {
    filter: grayscale(80%);
    transition: filter 0.3s ease-in-out;
    width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
}

.client-logo:hover {
    filter: grayscale(0%);
}

/* Social Container Styles */
.social-container {
    background-color: #2d6a4f;
    padding: 15px 0;
}

.social-text {
    color: white;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Social Link Styles */
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    text-decoration: none;
    margin: 0 8px;
    transition: all 0.3s ease-in-out;
}
.social-link.facebook:hover {
    color: #1877F2;
}

.social-link.twitter:hover {
    color: #1DA1F2;
}

.social-link.instagram:hover {
    color: #E4405F;
}

.social-link.tiktok:hover {
    color: #000000;
}

.social-link.youtube:hover {
    color: #FF0000;
}
