body {
    font-family: "Poppins", sans-serif;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

.navbar {
    background-color: #106541;
    margin-bottom: 0;
    display: flex;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding-left: 20px;
    margin-top: 35px;
    margin-right: 200px;
}

.navbar-brand img {
    position: absolute;
    height: 120px;
    width: 90px;
    background-color: white;
    padding: 5px;
    object-fit: contain;
    border-bottom: 3px solid #039c46;
}

.navbar-nav .nav-item {
    margin: 0 15px;
}

@media (max-width: 768px) {
    .navbar-toggler {
        margin-left: auto;
        border: none;
    }

    .navbar-toggler:focus,
    .navbar-toggler:hover {
        outline: none;
        box-shadow: none;
    }

    .search-bar {
        width: 100%;
        display: flex;
    }

    .search-bar input {
        flex: 1;
        width: 100%;
        max-width: 250px;
        height: 45px;
        padding: 5px 12px;
    }

    .search-bar button {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    .search-bar button i {
        font-size: 16px;
    }

    .navbar-nav .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    }

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

.carousel {
    width: 100%;
    max-height: 500px;
}

.carousel-item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    /* opacity: 80%; */
}

.carousel-caption {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    text-align: center;
    width: 100%;
}

.carousel-caption h1 {
    font-weight: 700;
    font-style: italic;
    font-size: 90px;
    opacity: 80%;
    color: white;
    opacity: 80%;
}

.carousel-caption p {
    font-size: 30px;
    font-weight: bold;
    /* color: rgb(0, 0, 0); */
    color: black;
    -webkit-text-stroke: 1px white;
}

.carousel-item img {
    animation: fadeIn 1.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .carousel-item img {
        width: 100%;
        height: auto;
        max-height: 250px;
        object-fit: cover;
    }

    .carousel-caption {
        bottom: 5%;
        width: 100%;
        padding: 0 15px;
    }

    .carousel-caption h1 {
        font-size: 28px;
    }

    .carousel-caption p {
        font-size: 16px;
    }

    .carousel-caption .custom-btn {
        font-size: 14px;
        padding: 8px 16px;
    }
}

.more {
    text-align: center;
    padding: 50px 20px;
    border-radius: 10px;
    max-width: 1200px;
    margin: 40px auto;
    animation: fadeInUp 0.8s ease-in-out;
}

.more h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.more p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-divider-top {
    border: none;
    height: 1px;
    background-color: #000000;
    width: 100%;
    margin: 40px auto;
    margin-top: 50px;
}

.section-divider {
    border: none;
    height: 1px;
    background-color: #000000;
    width: 100%;
    margin: 40px auto;
    margin-top: 150px;
}

.section-divider-breadcumb {
    border: none;
    height: 1px;
    background-color: #000000;
    width: 100%;
    margin-top: 20px;
}

.banner-carousel {
    width: 100vw;
    margin: 0;
    padding: 0;
}

.banner-carousel .carousel-inner {
    width: 100%;
}

.banner-carousel img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 650px;
}


@media (max-width: 768px) {
    .section-divider-top {
        margin: 40px auto;
        margin-top: 30px;
    }

    .section-divider {
        margin: 40px auto;
        margin-top: 50px;
    }
}

.installation-card {
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.installation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}

.card-img-top {
    height: 250px;
    object-fit: cover;
}

.footer {
    background-color: #106541;
    color: white;
    padding: 40px 0;
    border-top: 4px solid #e67e22;
}

.footer h5 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #f39c12;
    text-transform: uppercase;
    font-weight: bold;
    text-align: center;
}

.footer p {
    font-size: 14px;
    color: #ddd;
}

.footer .social-icons {
    margin: 10px 0;
}

.footer .social-link img {
    width: 30px;
    margin: 0 10px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer .social-link img:hover {
    transform: scale(1.2);
    opacity: 0.8;
}

.footer .map-container iframe {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.copyright {
    font-size: 14px;
    margin-top: 20px;
    color: #bbb;
}

.nav-link {
    position: relative;
    transition: color 0.3s ease-in-out;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background-color: #ff5722;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-link-news {
    text-decoration: none;
    color: inherit;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    justify-content: center;
    max-width: 95%;
    margin: 0 auto;
}

.product-item {
    background: #fff;
    /* padding: 15px; */
    border-radius: 8px;
    text-align: center;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 300px;
}

.product-item .product-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-more {
    transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.btn-more:hover {
    background-color: #ff5722;
    transform: scale(1.05);
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.main {
    margin-top: 55px;
    width: 100%;
    max-width: 100vw;
    padding: 0;
    overflow: hidden;
}

.float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.float:hover {
    background-color: #128c7e;
}

.about-container {
    max-width: 1000px;
    margin: auto;
}

.about-title {
    font-size: 2rem;
}

.about-text {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .about-container {
        padding: 20px !important;
    }
    .about-title {
        font-size: 1.5rem;
    }
    .about-text {
        font-size: 1rem;
    }
    .about-img {
        max-width: 100% !important;
    }
}

.product h1,
.product h3 {
    text-align: center;
    font-weight: bold;
    color: #0a2a5a;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    justify-content: center;
}

.product-item {
    background: #f1f1f1;
    /* padding: 20px; */
    text-align: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s;
}

.product-item img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    display: block;
}

.product-item p {
    font-weight: bold;
    font-size: 1.2rem;
    margin: 10px;
}

.product-item span {
    font-size: 1rem;
    color: #333;
    margin: 10px;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}

.button {
    display: block;
    width: max-content;
    margin: 20px auto;
    padding: 10px 20px;
    background: #039c46;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
    margin-bottom: 50px;
}

.button:hover {
    background: #073a7a;
}

.button-category {
    display: block;
    width: max-content;
    margin: 20px auto;
    padding: 10px 20px;
    background: #039c46;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.button-category:hover {
    background: #073a7a;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    justify-content: center;
}

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .kategori-lainnya {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .kategori-lainnya .product-item {
        width: 90%;
        max-width: 350px;
    }

    .kategori-lainnya .product-item img {
        height: 180px;
    }

    .kategori-lainnya .button-category {
        width: 100%;
        display: block;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .kategori-lainnya {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

.news-container {
    max-width: 1200px;
    margin: auto;
    padding: 40px 15px;
}

.news-card {
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    background: #fff;
    border: none;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.card-body {
    padding: 20px;
}

.news-title {
    font-weight: 600;
    color: #333;
    font-size: 18px;
    margin-bottom: 10px;
}

.news-date {
    font-size: 14px;
    color: #888;
}

.btn-read {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
    color: #073a7a;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.news-tags .badge {
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 15px;
    display: inline-block;
    white-space: nowrap;
}

.btn-read:hover {
    color: #0056b3;
}

.custom-btn {
    background: #039c46;
    border: none;
    padding: 12px 24px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 15px rgba(255, 126, 95, 0.4);
}

.custom-btn:hover {
    background: linear-gradient(135deg, #feb47b, #ff7e5f);
    box-shadow: 0 6px 20px rgba(255, 126, 95, 0.6);
    transform: scale(1.05);
}

.btn-order img {
    display: inline-flex;
    align-items: center;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 16px;
    transition: 0.3s;
    width: 313px;
    height: 75px;
}

.whatsapp-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.breadcrumb-container {
    position: relative;
    width: 100%;
    height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    background-size: contain;
}


.breadcrumb {
    background: transparent;
    padding: 10px 0;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
    font-size: 20px;
}

.home-link {
    position: absolute;
    top: 10px;
    right: 30px;
    font-size: 20px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    z-index: 3;
    padding: 10px 15px;
    border-radius: 5px;
}

.home-link:hover {
    background: rgba(255, 255, 255, 0.3);
}

.filter-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 10px;
}

.filter-dropdown {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.product-details span {
    display: block;
    margin-top: 4px;
    text-align: left;
}

@media (max-width: 1024px) {
    .all-product-page .card-link {
        width: calc(33.33% - 20px);
    }
}

@media (max-width: 768px) {
    .all-product-page .card-link {
        width: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .all-product-page .card-link {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .filter-container {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
        align-items: center;
    }

    .filter-dropdown {
        width: 100%;
        max-width: 200px;
        text-align: center;
        padding: 10px;
        font-size: 14px;
        border: 1px solid #ccc;
        border-radius: 5px;
        background-color: white;
        box-sizing: border-box;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
    }

    .dropdown-wrapper {
        position: relative;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    select {
        width: 100%;
        max-width: 200px;
        overflow-x: hidden;
    }
}

@media (max-width: 768px) {
    .breadcrumb-container {
        height: 180px;
        background-position: center top;
        background-size: contain;
    }

    .breadcrumb-container .home-link {
        font-size: 14px;
    }
}

body.modal-open {
    overflow: auto !important;
    padding-right: 0px !important;
}

.hidden-product {
    display: none;
}

.product-hidden {
    display: none !important;
}

.custom-modal {
    border-radius: 15px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease-in-out;
}

.modal-header {
    background: #f0f8ff;
    border-radius: 15px 15px 0 0;
}

.modal-body img {
    opacity: 0.9;
    animation: pop 0.5s ease-in-out;
}

.modal-footer {
    padding: 20px;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pop {
    0% {
        transform: scale(0.8);
    }

    100% {
        transform: scale(1);
    }
}
