

.hero-slider-section {
    position: relative;
    height: 100vh;
    min-height: 720px;
    overflow: hidden;
    background: #f8f9fa;
    width: 100%;
    max-width: 100vw;
    margin-top: 120px;
}

@media (max-width: 768px) {
    .hero-slider-section {
        min-height: 100vh;
        height: 100vh;
        margin-top: -68px;
        padding-top: 68px;
    }

    .slide-content {
        padding: 140px 0 40px;
        align-items: center;
    }

    .slide-content .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

.hero-slider-section .carousel-item img {
    border-radius: 16px;
    object-fit: cover;
}

.hero-slider-section .carousel {
    border-radius: 16px;
    overflow: hidden;
    margin: 0 16px;
    width: calc(100% - 32px);
}

@media (max-width: 768px) {
    .hero-slider-section .carousel {
        margin: 0 8px;
        width: calc(100% - 16px);
    }
    
    .hero-slider-section .carousel-item img {
        border-radius: 12px;
    }
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0;
}

@media (max-width: 768px) {
    .slider-container {
        padding: 0; /* Hilangkan padding untuk wadah lebih lebar */
    }
    
    .hero-slider-section .carousel {
        margin: 0; /* Hilangkan margin untuk full width */
        width: 100%; /* Full width container */
    }
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    flex-direction: column;
}

.slider-item.active {
    opacity: 1;
}

/* Override Bootstrap carousel default styles */
.carousel-item {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    transition: opacity 1s ease-in-out !important;
    transform: none !important;
    display: flex !important;
    flex-direction: column !important;
}

.carousel-item.active {
    opacity: 1 !important;
    transform: none !important;
}

/* Slide Background */
.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Responsive image fixes for mobile/tablet - prevent cropping */
@media (max-width: 768px) {
    .slide-image {
        object-fit: contain; /* Prevent cropping on tablet/mobile */
        object-position: center center;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
}

@media (max-width: 576px) {
    .slide-image {
        object-fit: contain; /* Show full image without cropping */
        object-position: right center; /* Geser gambar ke kiri pada mobile */
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
    
    /* Alternative background approach for mobile */
    .slide-background {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        display: flex;
        align-items: center;
        justify-content: flex-start; /* Align content ke kiri */
        padding-right: 0px; /* Sedikit padding dari kiri */
    }
    
    /* Wadah lebih melebar untuk mobile */
    .slider-container {
        padding: 0 0px; /* Sedikit padding untuk rounded corners */
        width: 100%; /* Tidak full viewport untuk border radius */
        max-width: none; /* Remove max-width constraint */
        margin: 0; /* No margin */
    }
    
    .hero-slider-section .carousel {
        margin: 0; /* Full width carousel dalam container */
        width: 100%; /* No margins */
        border-radius: 16px; /* Kembalikan border radius */
        overflow: hidden;
    }
    
    .hero-slider-section .carousel-item img {
        border-radius: 16px; /* Kembalikan border radius untuk gambar */
    }
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.452) 0%, rgba(0, 0, 0, 0.233) 50%, rgba(255, 253, 253, 0) 100%);
    z-index: 1;
}

/* Mobile overlay - lebih gelap */
@media (max-width: 768px) {
    .slide-overlay {
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.55) 50%, rgba(0, 0, 0, 0.3) 100%);
    }
}

@media (max-width: 576px) {
    .slide-overlay {
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.35) 100%);
    }
}

/* Slide Content */
.slide-content {
    position: relative;
    z-index: 3;
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start; /* Default alignment */
    padding: 80px 0 60px;
    height: 100%; /* Pastikan tinggi penuh */
}

.slide-content .container {
    padding-left: 100px;
    padding-right: 40px;
    position: relative;
    z-index: 10;
}

.slide-text {
    color: white;
    max-width: 100%;
    position: relative;
    z-index: 10;
}

.slide-badge {
    display: inline-block;
    margin-bottom: 24px;
    overflow: visible;
    position: relative;
    top: 0;
}

.slide-badge .badge-text {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.95) 0%, rgba(30, 64, 175, 0.9) 100%);
    color: white;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(59, 130, 246, 0.4);
    display: inline-block;
    white-space: nowrap;
    box-shadow: 
        0 8px 32px rgba(59, 130, 246, 0.5),
        0 4px 16px rgba(30, 64, 175, 0.3),
        0 12px 24px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 20px rgba(59, 130, 246, 0.6);
    text-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.8),
        0 1px 3px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
    animation: badgeGlow 2.5s ease-in-out infinite alternate;
}

@keyframes badgeGlow {
    0% {
        box-shadow: 
            0 8px 32px rgba(59, 130, 246, 0.5),
            0 4px 16px rgba(30, 64, 175, 0.3),
            0 12px 24px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            0 0 20px rgba(59, 130, 246, 0.6);
    }
    100% {
        box-shadow: 
            0 8px 32px rgba(59, 130, 246, 0.7),
            0 4px 16px rgba(30, 64, 175, 0.4),
            0 12px 24px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            0 0 30px rgba(59, 130, 246, 0.9),
            0 0 40px rgba(30, 64, 175, 0.6);
    }
}

.slide-badge .badge-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.slide-badge .badge-text:hover::before {
    left: 100%;
}

.slide-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 30%, #ffffff  70%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* text-shadow: 
        0 3px 8px rgba(0, 4, 66, 0.7),
        0 1px 4px rgba(4, 0, 29, 0.5); */
    position: relative;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
    animation: titleGlow 3s ease-in-out infinite alternate;
}

/* @keyframes titleGlow {
    0% {
        filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 20px rgba(59, 130, 246, 0.4));
    }
    100% {
        filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 30px rgba(59, 130, 246, 0.7)) drop-shadow(0 0 40px rgba(30, 64, 175, 0.5));
    }
} */

.slide-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #1e40af);
    border-radius: 2px;
    /* box-shadow: 
        0 2px 8px rgba(59, 130, 246, 0.6),
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(59, 130, 246, 0.8); */
    animation: underlineGlow 3s ease-in-out infinite alternate;
}

/* @keyframes underlineGlow {
    0% {
        box-shadow: 
            0 2px 8px rgba(59, 130, 246, 0.6),
            0 4px 16px rgba(0, 0, 0, 0.3),
            0 0 20px rgba(59, 130, 246, 0.8);
    }
    100% {
        box-shadow: 
            0 2px 8px rgba(59, 130, 246, 0.8),
            0 4px 16px rgba(0, 0, 0, 0.3),
            0 0 30px rgba(59, 130, 246, 1),
            0 0 40px rgba(30, 64, 175, 0.7);
    }
} */

.slide-description {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    text-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.7),
        0 1px 3px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(255, 255, 255, 0.3);
    animation: descriptionGlow 4s ease-in-out infinite alternate;
}

@keyframes descriptionGlow {
    0% {
        text-shadow: 
            0 2px 6px rgba(0, 0, 0, 0.7),
            0 1px 3px rgba(0, 0, 0, 0.5),
            0 0 15px rgba(255, 255, 255, 0.3);
    }
    100% {
        text-shadow: 
            0 2px 6px rgba(0, 0, 0, 0.7),
            0 1px 3px rgba(0, 0, 0, 0.5),
            0 0 25px rgba(255, 255, 255, 0.6),
            0 0 35px rgba(219, 234, 254, 0.4);
    }
}

.slide-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-slide-primary,
.btn-slide-secondary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-slide-primary {
    background: #ffffff;
    color: rgb(0, 0, 0);
    border: 2px solid #4a7c59;
}

.btn-slide-primary:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 124, 89, 0.3);
}

.btn-slide-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-slide-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: white;
    transform: translateY(-2px);
}

/* Slide Statistics */
.slide-stats {
    position: relative;
    z-index: 3;
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stats-container {
    display: flex;
    gap: 60px;
    align-items: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    color: white;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* Slider Navigation */
.slider-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    z-index: 4;
    transform: translateY(-50%);
    pointer-events: none;
}

.slider-nav {
    position: absolute;
    width: 60px;
    height: 60px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-nav:hover {
    transform: scale(1.2);
    color: rgba(255, 255, 255, 0.8);
}

.slider-prev {
    left: 40px;
}

.slider-next {
    right: 40px;
}

/* Slider Indicators */
.slider-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
    z-index: 4;
}

.slider-indicator {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
}

.indicator-line {
    display: block;
    width: 40px;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.slider-indicator.active .indicator-line {
    background: white;
    width: 60px;
}

.slider-indicator:hover .indicator-line {
    background: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-slider-section {
        min-height: 700px;
    }
    
    .slide-title {
        font-size: 3rem;
    }
    
    .stats-container {
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .hero-slider-section {
        min-height: 600px;
    }
    
    .slide-content {
        padding: 100px 0 40px;
    }
    
    .slide-title {
        font-size: 2.5rem;
    }
    
    .slide-description {
        font-size: 1.1rem;
    }
    
    .stats-container {
        gap: 30px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .slider-nav {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
    
    .slider-prev {
        left: 20px;
    }
    
    .slider-next {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .hero-slider-section {
        min-height: 100vh;
        height: 100vh;
        margin-top: -68px;
        padding-top: 68px;
    }

    .slide-content {
        padding: 0px 0 60px;
        align-items: flex-end; /* Posisikan konten di bagian bawah */
        justify-content: flex-end; /* Posisikan konten di bagian bawah */
    }

    .slide-content .container {
        padding-left: 40px;
        padding-right: 25px;
        margin-bottom: 0; /* Hilangkan margin bawah */
    }

    .slide-text {
        padding: 0;
        max-width: 100%;
        text-align: left; /* Rata kiri untuk mobile */
        margin-top: 0; /* Hilangkan margin atas */
        margin-bottom: 20px; /* Tambah margin bawah */
    }

    .slide-title {
        font-size: 2rem;
        margin-bottom: 16px;
        line-height: 1.2;
    }

    .slide-description {
        font-size: 1rem;
        margin-bottom: 30px;
        max-width: 100%;
        background-color: #000000a4;
        box-shadow: 
            0 6px 24px rgba(59, 130, 246, 0.25),
            0 2px 12px rgba(30, 64, 175, 0.15) ,
            inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    }

    .slide-actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .btn-slide-primary,
    .btn-slide-secondary {
        padding: 14px 24px;
        font-size: 14px;
        text-align: center;
        justify-content: center;
        width: 100%;
        max-width: 280px;
    }

    .slide-stats {
        padding: 30px 0;
    }

    .stats-container {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0 15px;
    }

    .stat-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        min-width: 80px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin: 0 auto;
    }

    .stat-number {
        font-size: 18px;
    }

    .stat-label {
        font-size: 11px;
    }

    .slider-nav {
        display: none;
    }

    .slider-indicators {
        bottom: 20px;
        gap: 12px;
    }

    .indicator-line {
        width: 30px;
        height: 2px;
    }

    .slider-indicator.active .indicator-line {
        width: 45px;
    }
}

@media (max-width: 576px) {
    .hero-slider-section {
        min-height: 85vh; /* Dikurangi dari 100vh ke 85vh */
        height: 92vh;
        margin-top: -60px;
        padding-top: 60px;
    }

    .slide-content {
        padding: 0px 0 40px; /* Padding hanya bawah */
        display: flex;
        align-items: flex-end; /* Posisikan di bagian bawah */
        justify-content: flex-start; /* Alignment horizontal */
    }

    .slide-text {
        padding: 0 12px;
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* Rata kiri */
        text-align: left; /* Teks rata kiri */
        width: 100%;
    }

    .slide-badge {
        margin-bottom: 16px;
        margin-top: 0;
        text-align: center;
        width: 100%;
    }

    .badge-text {
        padding: 8px 18px !important;
        font-size: 11px !important;
        border-width: 1px !important;
        box-shadow: 
            0 6px 24px rgba(59, 130, 246, 0.25),
            0 2px 12px rgba(30, 64, 175, 0.15) ,
            inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    }

    .slide-title {
        font-size: 2rem !important;
        margin-bottom: 16px;
        line-height: 1.2 !important;
        text-align: center;
    }
    
    .slide-title::after {
        width: 40px !important;
        height: 3px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .slide-description {
        font-size: 1rem !important;
        margin-bottom: 25px;
        line-height: 1.5 !important;
        padding: 16px 20px !important;
        border-radius: 12px !important;
        text-align: center;
        max-width: 95% !important;
    }

    .btn-slide-primary,
    .btn-slide-secondary {
        padding: 12px 20px;
        font-size: 13px;
        gap: 8px;
    }

    .slide-stats {
        padding: 25px 0;
    }

    .stats-container {
        flex-direction: column;
        gap: 15px;
        padding: 0 12px;
    }

    .stat-item {
        gap: 6px;
    }

    .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .stat-number {
        font-size: 16px;
    }

    .stat-label {
        font-size: 10px;
    }

    .slider-indicators {
        bottom: 15px;
        gap: 10px;
    }

    .indicator-line {
        width: 25px;
        height: 2px;
    }

    .slider-indicator.active .indicator-line {
        width: 40px;
    }
}

/* Animation untuk slide transition */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

.carousel-item.active .slide-text {
    animation: slideInFromLeft 0.8s ease-out;
}

.carousel-item.active .stats-container {
    animation: slideInFromRight 0.8s ease-out 0.3s both;
}

/* Ensure proper z-index for header */
.header-main {
    z-index: 1050 !important;
}

/* Ensure slider content is properly positioned */
.hero-slider-section {
    margin-top: 0;
    padding-top: 0;
}

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

.container {
    max-width: 100%;
    overflow-x: hidden;
}

/* Mobile viewport fixes */
@media (max-width: 768px) {
    html {
        overflow-x: hidden;
    }

    body {
        overflow-x: hidden;
        position: relative;
        width: 100%;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100%;
    }
}

/* Fix any potential conflicts with Bootstrap */
.hero-slider-section .carousel-inner {
    height: 100%;
}

.hero-slider-section .carousel-item {
    height: 100%;
}

/* Loading state */
.hero-slider-section.loading {
    background: #f8f9fa;
}

.hero-slider-section.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #4a7c59;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
