/* header */
.scrolled .header {
    --background-color: #ffffff !important;
    --nav-color: #212529 !important; 
    --heading-color: #212529 !important;
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.15) !important;
    border-bottom: none !important;
}

.scrolled .header .navmenu a:hover,
.scrolled .header .navmenu .active,
.scrolled .header .navmenu .active:focus {
    color: #125e54 !important; 
}
    
.scrolled .header .navmenu a i {
    color: #212529;
}

.header .lang-toggle {
    color: var(--nav-color); /* Mewarisi warna default menu */
    font-weight: 500;
    font-size: 15px;
    font-family: var(--nav-font);
    transition: 0.3s;
}

.header .lang-toggle:hover {
    color: var(--nav-hover-color);
}

/* Memastikan warna tombol bahasa ikut berubah jadi gelap saat di-scroll */
.scrolled .header .lang-toggle {
    color: #212529 !important;
}

/* Efek hover tosca saat di-scroll */
.scrolled .header .lang-toggle:hover {
    color: #125e54 !important;
}

/* Styling dropdown menu bahasa agar lebih rapi */
.header-actions .dropdown-item.active {
    background-color: #125e54;
    color: #ffffff;
}

/* LANDING PAGE */
/* Landing page hero section */

#hero {
    position: relative;
    overflow: hidden; 
    width: 100%;
    height: 100vh;
  }

  .video-background-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    z-index: -1;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
}

  #hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center; 
  }

  .info {
    z-index: 1;
    position: relative;
  }

  /* about landing page */

  .text-teal {
    color: #0f6c61 !important; 
  }
  
  .btn-teal {
    background-color: #0f6c61;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 24px;
    border-radius: 8px; 
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;
  }

  .btn-teal:hover {
    background-color: #0a4f47;
    color: #ffffff;
  }

  .btn-teal i {
    font-size: 1.2rem;
    font-weight: bold;
  }

  .stat-number {
    font-size: 4.5rem;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 12px;
  }

  .stat-text {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.4;
  }

  /* product landing page */

  .product-features {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
  }
  
  .product-features li {
    font-size: 1.4rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .product-features li i {
    color: #0f6c61;
    font-size: 1.8rem;
    font-weight: 900;
  }

  .product-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 400px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  }

  .product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }

  .product-card:hover img {
    transform: scale(1.05); 
  }

  .product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
    padding: 30px 20px 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 15px;
  }

  .product-info {
    flex-grow: 1;
  }

  .product-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
  }

  .product-desc-page {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.9);
  }

  .product-link {
    color: white;
    font-size: 1.8rem;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.3s ease;
  }

  .product-card:hover .product-link {
    transform: translateX(5px); 
    color: #ffffff;
  }

  /* services landing page */

  .service-custom-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .service-custom-card:hover {
    transform: translateY(-5px); 
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  }

  .service-custom-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }

  .service-custom-card:hover img {
    transform: scale(1.05); 
  }

  .service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%; 
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    padding: 20px;
    display: flex;
    align-items: flex-end; 
  }

  .service-overlay-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 15px;
    color: #ffffff;
  }

  .service-text-wrap {
    flex-grow: 1;
  }

  .service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
  }

  .service-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85); 
    margin-bottom: 0;
    line-height: 1.4;
  }

  .service-icon {
    font-size: 1.8rem;
    color: #ffffff;
    line-height: 1;
    transition: transform 0.3s ease;
  }

  .service-custom-card:hover .service-icon {
    transform: translateX(5px); 
  }

  /* testimonial landing page */

  .testimonial-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
  }

  .testimonial-card:hover {
    transform: translateY(-5px);
  }

  .testimonial-card .stars {
    color: #ffc107; 
    margin-bottom: 15px;
    font-size: 1.1rem;
  }

  .testimonial-card .quote-icon {
    color: #0f6c61; 
    font-size: 1.5rem;
    opacity: 0.3;
    margin-right: 5px;
  }

  .testimonial-card .testimonial-text {
    font-style: italic;
    color: #555;
    margin-bottom: 25px;
    flex-grow: 1; 
    line-height: 1.6;
  }

  .testimonial-card .client-profile {
    display: flex;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
  }

  .testimonial-card .client-profile img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
  }

  .testimonial-card .client-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #333;
  }

  .testimonial-card .client-info span {
    font-size: 0.85rem;
    color: #888;
  }
  
/* ABOUT */

.banner {
    position: relative;
    width: 100%;
    height: 350px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
  }

  .banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); 
    z-index: 1;
  }

  .banner h1 {
    position: relative;
    z-index: 2; 
    color: #ffffff;
    font-size: 5.5rem;
    font-weight: 800; 
    text-transform: uppercase;
    letter-spacing: 4px;
    margin: 0;
    text-shadow: 2px 4px 15px rgba(0, 0, 0, 0.5);
    text-align: center;
    width: 100%;
  }

  @media (max-width: 768px) {
    .banner {
      height: 200px;
    }
    .banner h1 {
      font-size: 3rem;
      letter-spacing: 2px;
    }
}

/* ABOUT PAGE */
.about-overlap-card {
        background-color: #828282; 
        color: #ffffff;
        z-index: 2;
        position: relative;
    }
    .about-teal-bg {
        background-color: #125e54; 
        color: #ffffff;
    }
    
    @media (min-width: 992px) {
        .about-overlap-card {
            margin-left: -120px; 
        }
    }
    
    @media (max-width: 991px) {
        .about-overlap-card {
            margin-top: -40px; 
            margin-left: 15px;
            margin-right: 15px;
        }
    }

    .keunggulan-card {
        background-color: #125e54;
        color: #ffffff;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .keunggulan-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    }
    .keunggulan-icon {
        font-size: 3.5rem;
        color: #f5a623; 
        line-height: 1;
    }
    .keunggulan-title {
        font-size: 1.25rem;
        font-weight: 500;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    }

/* PRODUCT PAGE */

.product-detail-section {
    overflow: hidden;
    position: relative;
    background-color: #ffffff;
}
    
.product-image-col {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vertical-text-nikel {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    font-size: clamp(100px, 12vw, 160px); 
    font-weight: 900;
    letter-spacing: 5px;
    background: linear-gradient(to right, #0d4b43 0%, #208e80 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 0;
    white-space: nowrap;
    margin: 0;
    line-height: 1;
    margin-left: -30px; 
}

.product-ore-image {
    position: relative;
    z-index: 1;
    max-width: 90%;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.15));
    transform: translateX(90px);
    -webkit-transform: translateX(90px);
    -moz-transform: translateX(90px);
    -ms-transform: translateX(90px);
    -o-transform: translateX(90px);
}

.product-desc {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #212529;
    font-weight: 600; 
    text-align: justify; 
}

.bg-teal-product {
    background-color: #125e54; 
    color: #ffffff;
}
.text-teal-product {
    color: #125e54;
}
    
@media (max-width: 991px) {
    .vertical-text-nikel {
        margin-left: -80px;
        opacity: 0.2; 
    }
    .product-ore-image {
        transform: translateX(15px);
    }
}

/* CONTACT PAGE */

@media (min-width: 576px) {
    .custom-sidebar {
        grid-template-columns: 1fr !important;
    }
}


/* NEWS PAGE */

.news-card {
        border: 1px solid #e0e0e0;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .news-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    }
    
    .news-link {
        transition: color 0.3s ease, transform 0.3s ease;
        display: inline-block;
    }
    
    .news-link i {
        transition: transform 0.3s ease;
    }
    
    .news-card:hover .news-link i {
        transform: translateX(5px);
    }
    
    /* Styling untuk Input Search agar icon menyatu */
    .search-input-group .input-group-text {
        background-color: transparent;
        border-right: none;
        color: #6c757d;
    }
    
    .search-input-group .form-control {
        border-left: none;
    }
    
    .search-input-group .form-control:focus {
        box-shadow: none;
        border-color: #dee2e6;
    }

/* NEWS */
    .btn-all-news {
        background-color: #125e54;
        color: #ffffff;
        border-radius: 50px;
        padding: 8px 22px;
        font-weight: 600;
        transition: all 0.3s ease;
    }

    .btn-all-news:hover {
        background-color: #0d463e;
        color: #ffffff;
    }

    .featured-news-card {
        background: #ffffff;
        border-radius: 16px;
        overflow: hidden;
        border: none;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .featured-news-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.08) !important;
    }

    .featured-news-title {
        color: #125e54;
        font-weight: 700;
        line-height: 1.4;
        font-size: 1.25rem;
    }

    .news-list-item {
        border-bottom: 1px solid #dcdcdc;
        padding-bottom: 14px;
        margin-bottom: 14px;
        display: block;
        text-decoration: none;
    }

    .news-list-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .news-list-title {
        color: #125e54;
        font-weight: 700;
        font-size: 1.05rem;
        line-height: 1.4;
        margin-bottom: 4px;
        transition: color 0.2s ease;
    }

    .news-list-item:hover .news-list-title {
        color: #0d463e;
        text-decoration: underline;
    }

    .news-date {
        color: #212529;
        font-size: 0.9rem;
        font-weight: 500;
    }

/* FOOTER */

.custom-footer {
        background-color: #125e54; /* Warna hijau tosca */
        color: #ffffff;
        padding: 60px 0 30px 0;
        border-top: none;
    }
    
    .custom-footer .footer-heading {
        color: #f5a623; /* Warna oranye/emas */
        font-size: 1.15rem;
        font-weight: 500;
        margin-bottom: 25px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .custom-footer .company-name {
        color: #ffffff;
        font-size: 1.35rem;
        font-weight: 500;
        margin-bottom: 20px;
        text-transform: none;
    }
    
    .custom-footer ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .custom-footer ul li {
        margin-bottom: 15px;
    }
    
    .custom-footer ul a {
        color: #ffffff;
        text-decoration: none;
        transition: color 0.3s ease;
        font-size: 1rem;
    }
    
    .custom-footer ul a:hover {
        color: #f5a623;
    }
    
    .custom-footer p {
        font-size: 1rem;
        line-height: 1.6;
        color: #ffffff;
    }
    
    .custom-footer .social-links {
        display: flex;
        gap: 15px;
        margin-top: 20px;
    }
    
    .custom-footer .social-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        background-color: #ffffff;
        color: #125e54;
        font-size: 1.3rem;
        transition: all 0.3s ease;
        text-decoration: none;
    }
    
    .custom-footer .social-links a:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        background-color: #f5a623;
        color: #ffffff;
    }
    
    .custom-footer-bottom {
        margin-top: 60px;
        padding-top: 20px;
    }

    /* Styling Halaman Detail Berita */
    .news-detail-section {
        padding: 60px 0;
        background-color: #ffffff;
    }

    .news-detail-title {
        font-size: 2.3rem;
        font-weight: 800;
        color: #000000;
        line-height: 1.25;
        letter-spacing: -0.5px;
    }

    .news-meta {
        font-size: 1rem;
        color: #6c757d;
    }

    .share-btn {
        color: #125e54;
        text-decoration: none;
        font-weight: 600;
        transition: color 0.2s ease;
    }

    .share-btn:hover {
        color: #0d463e;
    }

    .news-content {
        font-size: 1.05rem;
        line-height: 1.8;
        color: #1a1a1a;
    }

    .news-content p {
        margin-bottom: 1.5rem;
    }

    .news-subtitle {
        font-weight: 700;
        font-style: italic;
        margin-top: 2rem;
        margin-bottom: 0.75rem;
        display: block;
    }

    /* Penyesuaian Responsif untuk Layar HP */
    @media (max-width: 768px) {
        .news-detail-title {
            font-size: 1.6rem;
        }

        .news-content {
            font-size: 1rem;
        }
    }

    .news-content figure.image {
        display: table;
        clear: both;
        margin: 1rem auto;
        max-width: 100%;
    }

    .news-content figure.image img {
        display: block;
        max-width: 100%;
        height: auto;
    }

    .news-content figure.image-style-align-left {
        float: left;
        margin-right: 1.5rem;
        margin-bottom: 1rem;
        clear: none;
    }

    .news-content figure.image-style-align-right {
        float: right;
        margin-left: 1.5rem;
        margin-bottom: 1rem;
        clear: none;
    }

    .news-content::after {
        content: "";
        display: table;
        clear: both;
    }