.navbar-area {
    padding: 10px 0;
}

.navbar {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.navbar-brand img {
    max-height: 40px;
    width: auto;
}

.navbar-nav .nav-item {
    padding: 0 10px;
    position: relative;
}

.navbar-nav .nav-link {
    padding: 8px 0 !important;
    font-size: 14px;
}

.header {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Dropdown Menu Styles */
.dropdown-menu-custom {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 8px;
}

.dropdown-menu-custom a {
    display: block;
    padding: 10px 20px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-menu-custom a:hover {
    background: #f8f9fa;
    color: #667eea;
    border-left-color: #667eea;
    padding-left: 25px;
}

.nav-item.has-dropdown > a::after {
    content: '▼';
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

/* Desktop hover behavior */
@media (min-width: 769px) {
    .nav-item:hover .dropdown-menu-custom {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav-item.has-dropdown:hover > a::after {
        transform: rotate(180deg);
    }
}

/* Mobile touch behavior */
@media (max-width: 768px) {
    .dropdown-menu-custom {
        position: static;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        margin-top: 5px;
        opacity: 0;
        visibility: hidden;
        transform: none;
        display: none;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-item.has-dropdown.active .dropdown-menu-custom {
        display: block;
        opacity: 1;
        visibility: visible;
        max-height: 500px;
    }
    
    .dropdown-menu-custom a {
        padding: 12px 20px;
        font-size: 14px;
        border-left: none;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .dropdown-menu-custom a:last-child {
        border-bottom: none;
    }
    
    .nav-item.has-dropdown > a::after {
        transition: transform 0.3s ease;
    }
    
    .nav-item.has-dropdown.active > a::after {
        transform: rotate(180deg);
    }
    
    .navbar-nav .nav-item {
        padding: 5px 0;
    }
    
    .navbar-nav .nav-link {
        padding: 12px 15px !important;
        font-size: 15px;
    }
}

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../img/cfi/home.png'); 
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
    padding: 100px 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); 
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content-wrapper h1 {
    color: #ffffff;
    font-size: 48px;
    margin-bottom: 25px;
    margin-top: 0;
}

.hero-content-wrapper p {
    color: #f8f9fa;
}

.hero-content-wrapper span {
    color: #ffffff; 
    font-size: 20px;
    margin-bottom: 40px;
    display: block;
}

.product-1 {
    top: 15%;
    left: 5%;
    width: 180px;
    height: 180px;
    animation-delay: 0s;
}

.product-2 {
    top: 20%;
    left: 20%;
    width: 120px;
    height: 120px;
    animation-delay: 1s;
}

.product-3 {
    top: 10%;
    right: 15%;
    width: 150px;
    height: 150px;
    animation-delay: 2s;
}

.product-4 {
    top: 25%;
    right: 5%;
    width: 200px;
    height: 200px;
    animation-delay: 0.5s;
}

.product-5 {
    bottom: 20%;
    left: 8%;
    width: 160px;
    height: 160px;
    animation-delay: 1.5s;
}

.product-6 {
    bottom: 25%;
    left: 25%;
    width: 130px;
    height: 130px;
    animation-delay: 2.5s;
}

.product-7 {
    bottom: 15%;
    right: 10%;
    width: 170px;
    height: 170px;
    animation-delay: 3s;
}

.product-8 {
    bottom: 30%;
    right: 25%;
    width: 140px;
    height: 140px;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@media (max-width: 1200px) {
    .product-float {
        opacity: 0.7;
    }
    
    .product-1, .product-4, .product-7 { width: 150px; height: 150px; }
    .product-2, .product-6, .product-8 { width: 100px; height: 100px; }
    .product-3, .product-5 { width: 120px; height: 120px; }
}

@media (max-width: 768px) {
    .hero-content-wrapper h1 {
        font-size: 36px;
    }
    
    .hero-content-wrapper p {
        font-size: 16px;
    }
    
    .product-float {
        opacity: 0.4;
    }
    
    .product-1, .product-4, .product-7 { width: 100px; height: 100px; }
    .product-2, .product-6, .product-8 { width: 70px; height: 70px; }
    .product-3, .product-5 { width: 80px; height: 80px; }
}

.btn-neon-glow {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    text-decoration: none;
    margin-top: 15px;
}

.btn-neon-glow:hover {
    background: #667eea;
    color: white;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.6),
                0 0 30px rgba(102, 126, 234, 0.4),
                0 0 45px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.faq-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 15px;
}

.faq-content {
    flex: 1;
    margin-bottom: 0 !important;
}

.btn-neon-glow-wrapper {
    flex-shrink: 0;
    align-self: flex-end;
}

/* Detail Page Styles */
.detail-page {
    padding: 80px 0;
    background: #f8f9fa;
}

.detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.detail-header {
    text-align: center;
    margin-bottom: 50px;
}

.detail-header h1 {
    font-size: 42px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.detail-divider {
    width: 80px;
    height: 4px;
    background: #667eea;
    margin: 20px auto;
}

.detail-content {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.detail-content-flex {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.detail-text {
    flex: 1;
}

.detail-text p {
    color: #6c757d;
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 20px;
}

.detail-image {
    flex: 1;
    max-width: 500px;
}

.detail-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-back {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
}

.btn-back:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Service Section */
.service-section {
    padding: 100px 0;
    background: #f8f9fa;
}

/* Contact Us Page Styles */
.contact-map-large {
    margin-bottom: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 15px;
    overflow: hidden;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-info-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
}

.contact-info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.contact-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-info-card h3 {
    color: #2c3e50;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

.contact-info-card p {
    color: #6c757d;
    line-height: 1.8;
    font-size: 15px;
    margin-bottom: 5px;
}

.contact-info-card a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-info-card a:hover {
    color: #5568d3;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-info-card {
        padding: 30px 20px;
    }
    
    .contact-map-large iframe {
        height: 300px;
    }
}

.page {
    display: none;
}

.page.active {
    display: block;
}

#homePage.active {
    display: block;
}

.product-slider-wrapper {
    overflow: hidden;
    position: relative;
    padding: 40px 0;
}

.product-slider-track {
    display: flex;
    animation: scroll 40s linear infinite;
    width: fit-content;
}

.product-slider-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.product-slide {
    min-width: 300px;
    max-width: 300px;
    margin: 0 15px;
    flex-shrink: 0;
}

.single-service {
    background: white;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.single-service:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.single-service:hover .product-image img {
    transform: scale(1.1);
}

.single-service .content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2c3e50;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.single-service .content .btn-neon-glow {
    margin-top: 10px;
    padding: 6px 18px;
    font-size: 12px;
}

.product-slider-wrapper::before,
.product-slider-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.product-slider-wrapper::before {
    left: 0;
    background: linear-gradient(to right, rgba(248, 249, 250, 1), rgba(248, 249, 250, 0));
}

.product-slider-wrapper::after {
    right: 0;
    background: linear-gradient(to left, rgba(248, 249, 250, 1), rgba(248, 249, 250, 0));
}

/* ===== JUSTIFY TEXT ===== */

/* About Company, Vision & Mission, Values, Detail Produk, Detail Process */
.detail-text p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
}

/* Deskripsi di halaman Processes Overview (kartu 01-07) */
.process-description {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
}

/* Detail News & Event */
.nd-text p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
}

/* Excerpt di daftar News (opsional, supaya seragam) */
.nv-excerpt {
    text-align: justify;
    text-justify: inter-word;
}

.footer {
    background-color: #f8f9fa;
    padding: 60px 0 30px;
    margin-top: 80px;
    position: relative;
    z-index: 1;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#homePage,
.page.detail-page,
.page.processes-overview-page,
.page.news-page {
    flex: 1;
}

.footer .footer-widget h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #2c3e50;
}

.footer .footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer .footer-widget ul li {
    margin-bottom: 12px;
    color: #6c757d;
    font-size: 14px;
}

.footer .footer-widget ul.links li a {
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer .footer-widget ul.links li a:hover {
    color: #667eea;
    padding-left: 5px;
}

.footer .footer-logo {
    width: 120px;
    margin-bottom: 20px;
}

.footer .contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.6;
}

.footer .contact-info a {
    color: #6c757d;
    text-decoration: none;
    margin-bottom: 8px;
    display: block;
}

.footer .copy-right {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #dee2e6;
    text-align: center;
}

.footer .copy-right p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

.contact_map {
    width: 100%;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gmap_canvas {
    width: 100%;
    height: 100%;
}

.gmap_canvas iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .product-slide {
        min-width: 250px;
        max-width: 250px;
    }
    
    .product-image {
        height: 150px;
    }
    
    .single-service .content h3 {
        font-size: 16px;
        min-height: 40px;
    }
}

/* Processes Overview Page Styles */
.processes-overview-page {
    padding: 80px 0;
    background: #f8f9fa;
}

.processes-title-section {
    text-align: center;
    margin-bottom: 60px;
}

.processes-title-section h1 {
    font-size: 42px;
    color: #2c3e50;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.processes-title-section .subtitle {
    color: #667eea;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
}

.process-flow-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.process-row {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    align-items: stretch;
}

.process-card {
    flex: 1;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.process-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.process-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 25px;
    position: relative;
}

.process-number {
    position: absolute;
    top: -10px;
    left: 25px;
    background: white;
    color: #667eea;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.process-label {
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    margin-top: 35px;
}

.process-title {
    color: white;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
}

.process-body {
    padding: 25px;
}

.process-description {
    color: #6c757d;
    line-height: 1.8;
    font-size: 15px;
    margin-bottom: 20px;
}

.process-image-container {
    width: 100%;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.process-carousel {
    height: 100%;
}

.process-carousel .carousel-inner,
.process-carousel .carousel-item {
    height: 100%;
}

.process-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flow-connector {
    position: relative;
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.flow-arrow {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
    position: relative;
}

.flow-arrow::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid #764ba2;
}

/* Responsive */
@media (max-width: 992px) {
    .process-row {
        flex-direction: column;
    }
    
    .flow-connector {
        display: block;
    }
}

@media (max-width: 768px) {
    .processes-title-section h1 {
        font-size: 32px;
    }
    
    .process-title {
        font-size: 20px;
    }
    
    .process-image-container {
        height: 200px;
    }
}

.process-card[onclick] {
  cursor: pointer;
  transition: all 0.3s ease;
}

.process-card[onclick]:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(102, 126, 234, 0.3);
}

.process-card[onclick]:hover .process-header {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* ===== ANIMATIONS ===== */

/* Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll Reveal Elements */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Animation untuk children */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.stagger-item.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section Parallax & Animation */
.hero-section {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-content-wrapper h1 {
    animation: slideInDown 1s ease-out;
}

.hero-content-wrapper p {
    animation: fadeInUp 1.2s ease-out;
}

.hero-content-wrapper span {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Button Animations */
.btn-neon-glow {
    position: relative;
    overflow: hidden;
}

.btn-neon-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.btn-neon-glow:hover::before {
    left: 100%;
}

.btn-back {
    position: relative;
    overflow: hidden;
}

.btn-back::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-back:hover::before {
    width: 300px;
    height: 300px;
}

/* Product Card Enhanced Animations */
.single-service {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.single-service:hover {
    transform: translateY(-15px) scale(1.02);
}

.product-image {
    overflow: hidden;
}

.product-image img {
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.single-service:hover .product-image img {
    transform: scale(1.15) rotate(3deg);
}

/* Accordion Enhanced Animation */
.single-faq {
    transition: all 0.3s ease;
}

.single-faq:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.single-faq button {
    transition: all 0.3s ease;
}

.single-faq button:hover {
    color: #667eea;
}

/* Footer Link Hover Effect */
.footer .footer-widget ul.links li a {
    position: relative;
    display: inline-block;
}

.footer .footer-widget ul.links li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #667eea;
    transition: width 0.3s ease;
}

.footer .footer-widget ul.links li a:hover::after {
    width: 100%;
}

/* Process Card Enhanced Animations */
.process-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.process-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 15px;
    pointer-events: none;
}

.process-card:hover::before {
    opacity: 1;
}

/* Contact Card Pulse Animation */
.contact-info-card {
    animation: cardFloat 3s ease-in-out infinite;
}

.contact-info-card:nth-child(1) {
    animation-delay: 0s;
}

.contact-info-card:nth-child(2) {
    animation-delay: 0.5s;
}

.contact-info-card:nth-child(3) {
    animation-delay: 1s;
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Navbar Scroll Effect */
.navbar-area {
    transition: all 0.3s ease;
}

.navbar-area.sticky {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Image Loading Animation */
img {
    animation: imageLoad 0.6s ease;
}

@keyframes imageLoad {
    from {
        opacity: 0;
        filter: blur(10px);
    }
    to {
        opacity: 1;
        filter: blur(0);
    }
}

/* Page Transition */
.page {
    animation: pageSlideIn 0.5s ease;
}

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

.carousel-item {
    transition: transform 0.8s ease-in-out;
}

.preloader {
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Logo di tengah preloader */
.preloader .loader {
    position: relative;
}

.preloader-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;          /* sesuaikan dengan ukuran spinner */
    height: auto;
    z-index: 2;
    animation: none !important;  /* hindari efek blur dari rule "img" global */
}

.detail-divider {
    animation: expandWidth 1s ease;
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 80px;
    }
}

.contact-icon svg {
    transition: transform 0.3s ease;
}

.contact-info-card:hover .contact-icon svg {
    transform: scale(1.1) rotate(5deg);
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.15) rotate(5deg);
    }
}

.navbar-nav .nav-link {
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #667eea;
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.scroll-top {
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease;
}

.scroll-top:hover {
    transform: translateY(-5px) scale(1.1);
}

.contact-map-large,
.contact_map {
    animation: fadeInUp 1s ease;
    transition: transform 0.3s ease;
}

.contact-map-large:hover {
    transform: scale(1.01);
}

/* News Page Styles */
.news-page {
    padding: 100px 0 80px;
    background: #f8f9fa;
    min-height: 100vh;
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-header {
    text-align: center;
    margin-bottom: 60px;
}

.news-header h1 {
    font-size: 48px;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
}

.news-divider {
    width: 80px;
    height: 4px;
    background: #667eea;
    margin: 0 auto;
}

.news-content-wrapper {
    background: white;
    border-radius: 15px;
    padding: 60px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.news-item {
    margin-bottom: 80px;
}

.news-item:last-child {
    margin-bottom: 0;
}

.news-title {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 40px;
    font-weight: 700;
    text-align: left;
}

.news-content-flex {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.news-image {
    flex: 0 0 45%;
    max-width: 45%;
}

.news-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.news-text {
    flex: 1;
}

.news-text p {
    color: #2c3e50;
    line-height: 2;
    font-size: 16px;
    text-align: justify;
    margin: 0;
}

@media (max-width: 992px) {
    .news-content-flex {
        flex-direction: column;
    }
    
    .news-image {
        flex: 1;
        max-width: 100%;
    }
    
    .news-content-wrapper {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .news-header h1 {
        font-size: 36px;
    }
    
    .news-title {
        font-size: 28px;
    }
    
    .news-content-wrapper {
        padding: 30px 20px;
    }
    
    .news-text p {
        font-size: 15px;
    }
}

/* ===== Tambahan versi CodeIgniter ===== */
.cfi-h3 { color: #667eea; margin-bottom: 20px; margin-top: 30px; }
.detail-text > .cfi-h3:first-child { margin-top: 0; }
.cfi-value { margin-top: 30px; }
.cfi-value strong { color: #667eea; font-size: 18px; }
.cfi-date { color: #6c757d; font-size: 14px; margin-bottom: 15px; }
.product-image img { max-width: 100%; }
.navbar-nav .nav-item .dropdown-menu-custom a { display: block; }

/* ===== Slider produk: versi lebih ringkas ===== */
#service .section-title { margin-bottom: 0 !important; }
#service .product-slider-wrapper { padding: 20px 0 30px; }   /* dulu 40px 0 */
.product-slide { min-width: 220px; max-width: 220px; margin: 0 10px; }
.single-service { padding: 18px 14px; border-radius: 12px; }
.product-image { height: 130px; margin-bottom: 12px; }
.single-service .content h3 { font-size: 15px; min-height: 40px; margin-bottom: 6px; }
.single-service .content .btn-neon-glow { margin-top: 6px; padding: 5px 14px; font-size: 11px; }
.single-service:hover { transform: translateY(-8px) scale(1.02); }
.product-slider-wrapper::before, .product-slider-wrapper::after { width: 100px; }
@media (max-width: 768px) {
    .product-slide { min-width: 180px; max-width: 180px; margin: 0 8px; }
    .product-image { height: 105px; }
    .single-service .content h3 { font-size: 14px; min-height: 36px; }
}