/* ===== HOME PAGE STYLES ===== */

/* Main Banner Styling */
.main-banner {
    padding: 120px 40px 90px 40px !important;
}

.main-banner .left-content p {
    margin-bottom: 25px;
}

/* Services Section */
.services {
    padding: 60px 0px 0px 0px;
}

/* Consistent Section Padding */
.section {
    padding: 80px 0px;
}

/* Main Banner - No extra padding needed */
.main-banner {
    padding: 0;
}

/* About Us Section */
.section.about-us {
    padding: 80px 0px;
}

/* Override for specific sections that need different spacing */
.section.main-banner {
    padding: 0 !important;
}

/* Consistent spacing for section content */
.section .section-heading {
    margin-bottom: 50px;
}

.section .container {
    margin-bottom: 0;
}

/* Card spacing consistency */
.section .row {
    margin-bottom: 0;
}

/* Alert boxes spacing */
.alert-box {
    margin: 15px 0;
}

/* Accordion spacing */
.accordion {
    margin-bottom: 40px;
}

/* Section Background Alternating Colors */
.section:nth-child(odd) {
    background-color: #f8f9fa;
}

.section:nth-child(even) {
    background-color: #ffffff;
}

/* Main banner white background */
.main-banner {
    background-color: #ffffff !important;
}

.services .section-heading {
    margin-bottom: 0px;
}

#newsletter {
    margin-top: 0px !important;
}

/* Reduce excessive margin in services section */
#services .container.mt-5 {
    margin-top: 1rem !important;
}

/* Override footer margin for home page */
footer {
    margin-top: 0px !important;
}

/* Add padding-bottom to services section to match footer padding-top */
#services {
    padding-bottom: 20px !important;
}

/* Section Heading */
.section-heading {
    text-align: center;
    position: relative;
}

.section-heading h4 {
    color: #0E0F3B;
    font-weight: 800;
    font-size: 2.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-heading h4::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 4px;
    background: #F7931E;
    border-radius: 2px;
}

.section-heading h4 em {
    color: #F7931E;
    font-style: normal;
    position: relative;
}

.section-heading img {
    display: none;
}

/* Text Styling */
p {
    color: black;
    font-weight: 400;
}

/* BSP Card Styling - Copied from tentang-kami */
.bsp-card {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(26, 27, 89, 0.05);
    height: 100%;
}

.bsp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 27, 89, 0.05) 0%, rgba(247, 147, 30, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.bsp-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(26, 27, 89, 0.15);
    border-color: rgba(247, 147, 30, 0.2);
}

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

.bsp-card > .card-body {
    position: relative;
    z-index: 2;
    padding: 2.5rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.bsp-card > .card-body > .card-icon {
    color: #1a1b59;
    font-size: 60px;
    text-align: center;
    margin-bottom: 25px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: block;
    order: 1;
}

.bsp-card:hover > .card-body > .card-icon {
    transform: scale(1.2) rotate(5deg);
    color: #F7931E;
    text-shadow: 0 5px 15px rgba(247, 147, 30, 0.3);
}

.bsp-card > .card-body > .card-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    color: #2a2a2a;
    order: 2;
    line-height: 1.2;
}

.bsp-card:hover > .card-body > .card-title {
    color: #1a1b59;
    transform: scale(1.05);
}

.bsp-card > .card-body > .card-text {
    text-align: center;
    transition: all 0.3s ease;
    color: #666;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.6;
    order: 3;
    margin-bottom: 0;
}

.bsp-card:hover > .card-body > .card-text {
    color: #555;
    transform: translateY(-2px);
}

/* Utility Classes */
.no-border {
    border: 0px;
}

/* ===== MODERN BUTTON STYLING ===== */
/* Primary Button - Konsultasi Sekarang */
.main-banner .btn-primary,
.btn.btn-primary,
a.btn-primary,
button.btn-primary {
    background: linear-gradient(135deg, #0E0F3B 0%, #1a1b59 100%) !important;
    border: none !important;
    border-radius: 15px !important;
    padding: 15px 30px !important;
    font-weight: 600 !important;
    color: white !important;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    text-decoration: none !important;
    display: inline-block !important;
    box-shadow: 0 4px 15px rgba(14, 15, 59, 0.2) !important;
}

.main-banner .btn-primary::before,
.btn.btn-primary::before,
a.btn-primary::before,
button.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.main-banner .btn-primary:hover,
.btn.btn-primary:hover,
a.btn-primary:hover,
button.btn-primary:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(14, 15, 59, 0.4) !important;
    background: linear-gradient(135deg, #1a1b59 0%, #2a2b69 100%) !important;
    color: white !important;
    text-decoration: none !important;
}

.main-banner .btn-primary:hover::before,
.btn.btn-primary:hover::before,
a.btn-primary:hover::before,
button.btn-primary:hover::before {
    left: 100%;
}

.btn-primary > a {
    color: white !important;
    text-decoration: none !important;
}

.btn-primary:hover > a {
    color: white !important;
    text-decoration: none !important;
}

/* Secondary Button - Lihat Portfolio */
.main-banner .btn-secondary,
.btn.btn-secondary,
a.btn-secondary,
button.btn-secondary {
    background: linear-gradient(135deg, #F7931E 0%, #e8851a 100%) !important;
    border: none !important;
    border-radius: 15px !important;
    padding: 15px 30px !important;
    font-weight: 600 !important;
    color: white !important;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    text-decoration: none !important;
    display: inline-block !important;
    box-shadow: 0 4px 15px rgba(247, 147, 30, 0.2) !important;
}

.main-banner .btn-secondary::before,
.btn.btn-secondary::before,
a.btn-secondary::before,
button.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.main-banner .btn-secondary:hover,
.btn.btn-secondary:hover,
a.btn-secondary:hover,
button.btn-secondary:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(247, 147, 30, 0.4) !important;
    background: linear-gradient(135deg, #e8851a 0%, #d57e15 100%) !important;
    color: white !important;
    text-decoration: none !important;
}

.main-banner .btn-secondary:hover::before,
.btn.btn-secondary:hover::before,
a.btn-secondary:hover::before,
button.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary > a {
    color: white !important;
    text-decoration: none !important;
}

.btn-secondary:hover > a {
    color: white !important;
    text-decoration: none !important;
}

/* Button States */
.btn-primary:active,
.btn-primary:focus,
.btn-primary:focus-visible,
.btn-primary:visited {
    background: linear-gradient(135deg, #06061e 0%, #0a0a2e 100%) !important;
    border-color: #06061e !important;
    box-shadow: 0 0 0 0.25rem rgba(14, 15, 59, 0.5) !important;
    color: white !important;
}

.btn-secondary:active,
.btn-secondary:focus,
.btn-secondary:focus-visible,
.btn-secondary:visited {
    background: linear-gradient(135deg, #a85e0e 0%, #965408 100%) !important;
    border-color: #a85e0e !important;
    box-shadow: 0 0 0 0.25rem rgba(247, 147, 30, 0.5) !important;
    color: white !important;
}

/* Button Size Adjustments */
.btn-lg {
    padding: 15px 30px !important;
    font-size: 1.1rem !important;
    border-radius: 15px !important;
}

/* Inline Button Spacing */
.btn-inline {
    margin-left: 15px;
}

/* WhatsApp Button Styling */
.btn-success {
    background: linear-gradient(135deg, #25d366 0%, #20b358 100%) !important;
    border: none !important;
    border-radius: 15px !important;
    padding: 15px 30px !important;
    font-weight: 600 !important;
    color: white !important;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    text-decoration: none !important;
    display: inline-block !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2) !important;
}

.btn-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.btn-success:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4) !important;
    background: linear-gradient(135deg, #20b358 0%, #128c7e 100%) !important;
    color: white !important;
    text-decoration: none !important;
}

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

.btn-success:focus,
.btn-success:active {
    background: linear-gradient(135deg, #128c7e 0%, #0f7a6b 100%) !important;
    border-color: #128c7e !important;
    color: white !important;
    box-shadow: 0 0 0 0.25rem rgba(37, 211, 102, 0.5) !important;
}

/* General Button Link Styling */
.btn > a {
    color: white !important;
    text-decoration: none !important;
}

.btn:hover > a {
    color: white !important;
    text-decoration: none !important;
}

/* Override Template Button Styles */
.main-banner .white-button a.btn-primary,
.main-banner .gradient-button a.btn-primary {
    background: linear-gradient(135deg, #0E0F3B 0%, #1a1b59 100%) !important;
    border: none !important;
    border-radius: 15px !important;
    padding: 15px 30px !important;
    font-weight: 600 !important;
    color: white !important;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    text-decoration: none !important;
    display: inline-block !important;
    box-shadow: 0 4px 15px rgba(14, 15, 59, 0.2) !important;
}

.main-banner .white-button a.btn-secondary,
.main-banner .gradient-button a.btn-secondary {
    background: linear-gradient(135deg, #F7931E 0%, #e8851a 100%) !important;
    border: none !important;
    border-radius: 15px !important;
    padding: 15px 30px !important;
    font-weight: 600 !important;
    color: white !important;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    text-decoration: none !important;
    display: inline-block !important;
    box-shadow: 0 4px 15px rgba(247, 147, 30, 0.2) !important;
}

.main-banner .white-button a.btn-primary:hover,
.main-banner .gradient-button a.btn-primary:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(14, 15, 59, 0.4) !important;
    background: linear-gradient(135deg, #1a1b59 0%, #2a2b69 100%) !important;
    color: white !important;
    text-decoration: none !important;
}

.main-banner .white-button a.btn-secondary:hover,
.main-banner .gradient-button a.btn-secondary:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(247, 147, 30, 0.4) !important;
    background: linear-gradient(135deg, #e8851a 0%, #d57e15 100%) !important;
    color: white !important;
    text-decoration: none !important;
}

/* BSP Card Responsive Design */
@media (max-width: 991px) {
    .bsp-card {
        margin-bottom: 2rem;
    }
}

@media (min-width: 992px) {
    .bsp-card {
        margin-bottom: 0;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .bsp-card > .card-body {
        padding: 1.8rem 1.3rem;
    }
    
    .bsp-card > .card-body > .card-icon {
        font-size: 45px;
    }
}

@media (max-width: 768px) {
    .bsp-card > .card-body {
        padding: 1.5rem 1rem;
    }
    
    .bsp-card > .card-body > .card-icon {
        font-size: 40px;
    }
    
    .bsp-card > .card-body > .card-title {
        font-size: 1.3rem;
    }
    
    .bsp-card > .card-body > .card-text {
        font-size: 0.95rem;
    }
}

/* ===== RESPONSIVE FIXES FOR 14 INCH SCREENS ===== */
@media (min-width: 1200px) and (max-width: 1440px) {
    /* Main Banner Optimization for 14 inch */
    .main-banner {
        padding: 100px 40px 60px 40px !important;
    }
    
    .main-banner .left-content h2 {
        font-size: 40px !important;
        line-height: 52px !important;
        margin-bottom: 18px;
    }
    
    .main-banner .left-content p {
        font-size: 15px;
        line-height: 26px;
        margin-bottom: 30px;
    }
    
    .main-banner .left-content .btn {
        padding: 10px 18px !important;
        font-size: 14px;
        margin-right: 12px;
        margin-bottom: 10px;
    }
    
    .main-banner .right-image img {
        max-width: 85%;
        height: auto;
    }
    
    /* Services section optimization */
    .services {
        padding: 45px 0px 0px 0px;
    }
    
    .services .section-heading {
        margin-bottom: 35px;
    }
    
    .services .section-heading h4 {
        font-size: 26px;
    }
    
    /* BSP Cards optimization */
    .bsp-card .card-body {
        padding: 1.6rem 1.3rem;
    }
    
    .bsp-card .card-icon {
        font-size: 45px;
        margin-bottom: 12px;
    }
    
    .bsp-card .card-title {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }
    
    .bsp-card .card-text {
        font-size: 13px;
        line-height: 20px;
    }
    
    /* Splide carousel optimization */
    .splide__slide img {
        max-height: 55px;
        width: auto;
    }
}

/* Extra optimization for 1366px screens */
@media (min-width: 1300px) and (max-width: 1400px) {
    .main-banner {
        padding: 90px 30px 50px 30px !important;
    }
    
    .main-banner .left-content h2 {
        font-size: 36px !important;
        line-height: 48px !important;
    }
    
    .main-banner .left-content .btn {
        padding: 8px 16px !important;
        font-size: 13px;
    }
}

/* WhatsApp Button - Chat Langsung Card */
.alert-box-button-whatsapp,
.btn.btn-primary.alert-box-button-whatsapp,
button.btn-primary.alert-box-button-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
    border: none !important;
    border-radius: 15px !important;
    padding: 15px 30px !important;
    font-weight: 600 !important;
    color: white !important;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    text-decoration: none !important;
    display: inline-block !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3) !important;
}

.alert-box-button-whatsapp:hover,
.btn.btn-primary.alert-box-button-whatsapp:hover,
button.btn-primary.alert-box-button-whatsapp:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4) !important;
    background: linear-gradient(135deg, #128c7e 0%, #075e54 100%) !important;
    color: white !important;
    text-decoration: none !important;
}

.alert-box-button-whatsapp:active,
.alert-box-button-whatsapp:focus,
.alert-box-button-whatsapp:focus-visible,
.btn.btn-primary.alert-box-button-whatsapp:active,
.btn.btn-primary.alert-box-button-whatsapp:focus,
.btn.btn-primary.alert-box-button-whatsapp:focus-visible,
button.btn-primary.alert-box-button-whatsapp:active,
button.btn-primary.alert-box-button-whatsapp:focus,
button.btn-primary.alert-box-button-whatsapp:focus-visible {
    background: linear-gradient(135deg, #128c7e 0%, #075e54 100%) !important;
    border-color: #128c7e !important;
    box-shadow: 0 0 0 0.25rem rgba(37, 211, 102, 0.5) !important;
    color: white !important;
}

/* ===== RESPONSIVE FONT SIZE OPTIMIZATION FOR HOME PAGE ===== */

/* For 1366x768 and similar resolutions */
@media (min-width: 1300px) and (max-width: 1400px) {
    /* Hero section with 60px font */
    .main-banner h2,
    .hero-title {
        font-size: 45px !important;
        line-height: 52px !important;
    }
    
    /* Section headings with 45px font */
    .section-heading h2,
    .about-heading h2 {
        font-size: 35px !important;
        line-height: 42px !important;
    }
    
    /* Card titles with 40px font */
    .service-item h4,
    .feature-title {
        font-size: 30px !important;
        line-height: 36px !important;
    }
}

/* For 1024x768 and tablet landscape */
@media (min-width: 1024px) and (max-width: 1199px) {
    /* Hero section with 60px font */
    .main-banner h2,
    .hero-title {
        font-size: 40px !important;
        line-height: 46px !important;
    }
    
    /* Section headings with 45px font */
    .section-heading h2,
    .about-heading h2 {
        font-size: 32px !important;
        line-height: 38px !important;
    }
    
    /* Card titles with 40px font */
    .service-item h4,
    .feature-title {
        font-size: 28px !important;
        line-height: 34px !important;
    }
}

/* For tablet portrait */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Hero section with 60px font */
    .main-banner h2,
    .hero-title {
        font-size: 36px !important;
        line-height: 42px !important;
    }
    
    /* Section headings with 45px font */
    .section-heading h2,
    .about-heading h2 {
        font-size: 28px !important;
        line-height: 34px !important;
    }
    
    /* Card titles with 40px font */
    .service-item h4,
    .feature-title {
        font-size: 24px !important;
        line-height: 30px !important;
    }
}