/* ----------------------------------------------------------------
	Custom CSS
	
	Add all your Custom Styled CSS here for New Styles or
	Overwriting Default Theme Styles for Better Handling Updates
-----------------------------------------------------------------*/

:root {
	--cnvs-themecolor:	#0B409B;
}

#content {
	background: url('/images/background.png') no-repeat center/cover;
}

#header-wrap #logo img {
  height: auto !important;
}

.swiper-slide-bg {
  background-position: 20% center !important;
	/* background-size: auto 80% !important; */
}

/* Slider Responsiveness */
#slider.slider-element.include-header {
  min-height: 0;
  padding-top: 31.25%; /* 100/3.2 = 31.25% untuk rasio 3.2:1 */
  position: relative;
}

.slider-inner {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.swiper-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center center !important;
  background-size: cover !important;
}

.h-217px {
    height: 217px !important;
}

.h-md-167px {
    height: 167px !important;
}

/* Timeline Custom Styles */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--cnvs-themecolor), #e9ecef);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-badge {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--cnvs-themecolor);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    box-shadow: 0 0 0 4px #fff, 0 0 0 8px rgba(11, 64, 155, 0.1);
    transition: all 0.3s ease;
}

.timeline-badge:hover {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 0 0 4px #fff, 0 0 0 8px rgba(11, 64, 155, 0.2);
}

.timeline-badge .badge {
    font-size: 1.2rem;
    padding: 0.5rem;
    background: transparent !important;
}

.timeline-panel {
    position: relative;
    width: calc(50% - 30px);
    padding: 1.5rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.timeline-item:nth-child(odd) .timeline-panel {
    margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-panel {
    margin-right: auto;
}

.timeline-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}

.timeline-heading {
    margin-bottom: 1rem;
}

.timeline-title {
    color: var(--cnvs-themecolor);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.timeline-body {
    color: #6c757d;
}

.timeline-body p {
    margin-bottom: 0;
}

.timeline-body a {
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.timeline-body a:hover {
    text-decoration: underline;
}

@media (max-width: 767.98px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-badge {
        left: 30px;
    }
    
    .timeline-panel {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }
    
    .timeline-item:nth-child(odd) .timeline-panel {
        margin-left: 60px !important;
    }
}

/* Statistics Section Enhancements */
#statistics-section .text-center.p-4 {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef; /* Subtle border */
    background: linear-gradient(145deg, #ffffff, #f8f9fa); /* Subtle gradient background */
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075)!important; /* Slightly adjusted shadow */
}

#statistics-section .text-center.p-4:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important; /* More pronounced shadow on hover */
    border-color: var(--cnvs-themecolor); /* Highlight border on hover */
}

#statistics-section .col-lg-4:nth-child(1) .uil-users-alt { color: var(--cnvs-themecolor) !important; } /* primary */
#statistics-section .col-lg-4:nth-child(2) .uil-calendar-alt { color: #198754 !important; } /* success - Bootstrap default */
#statistics-section .col-lg-4:nth-child(3) .uil-clipboard-notes { color: #ffc107 !important; } /* warning - Bootstrap default */

/* Make statistics cards equal height on larger screens */
@media (min-width: 992px) { /* Apply on large screens and up */
    .statistics-row {
        display: flex;
        align-items: stretch;
    }

    .statistics-row .col-lg-4 {
        display: flex; /* Make columns flex containers */
    }

    .statistics-row .text-center.p-4 {
        flex-grow: 1; /* Allow cards to grow and fill the height */
    }
}

/* Business Process Flow Styles */
.business-process-flow {
    position: relative;
}

.process-step {
    position: relative;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.process-step:nth-child(1) { animation-delay: 0.1s; }
.process-step:nth-child(2) { animation-delay: 0.2s; }
.process-step:nth-child(3) { animation-delay: 0.3s; }
.process-step:nth-child(4) { animation-delay: 0.4s; }
.process-step:nth-child(5) { animation-delay: 0.5s; }

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

.process-card {
    background: #fff;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.process-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--cnvs-themecolor), #60a5fa);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.process-card:hover::before {
    transform: scaleX(1);
}

.process-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
    border-color: var(--cnvs-themecolor);
}

.process-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--cnvs-themecolor), #60a5fa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    box-shadow: 0 0.5rem 1rem rgba(11, 64, 155, 0.3);
    transition: all 0.3s ease;
}

.process-icon i {
    font-size: 2rem;
    color: #fff;
}

.process-card:hover .process-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0.75rem 1.5rem rgba(11, 64, 155, 0.4);
}

/* Step number styles removed */

.process-content {
    text-align: center;
    position: relative;
}

.process-title {
    color: var(--cnvs-themecolor);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.process-description {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.process-action .btn {
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.process-action .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Connector styles removed */

/* Process Summary */
.process-summary {
    margin-top: 3rem;
}

.summary-card {
    background: linear-gradient(135deg, var(--cnvs-themecolor), #60a5fa);
    border-radius: 2rem;
    padding: 3rem 2rem;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1rem 2rem rgba(11, 64, 155, 0.3);
}

.summary-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

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

.summary-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.summary-icon i {
    font-size: 3rem;
    color: #fff;
}

.summary-content {
    position: relative;
    z-index: 2;
}

.summary-content h5 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.summary-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.summary-content .btn {
    background: #fff;
    color: var(--cnvs-themecolor);
    border: none;
    font-weight: 700;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.summary-content .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.2);
    background: #f8f9fa;
}

/* Responsive Design */
@media (max-width: 1199.98px) {
    .business-process-flow {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
        padding: 1rem 0;
    }
    
    .process-step {
        margin-bottom: 0;
        flex: none;
    }
    
    .process-card {
        margin: 0;
        min-height: auto;
    }
    
    .process-content {
        display: block;
    }
}

@media (max-width: 767.98px) {
    .process-card {
        padding: 1.5rem;
    }
    
    .process-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .process-icon i {
        font-size: 1.5rem;
    }
    
    .process-title {
        font-size: 1.25rem;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
        top: -5px;
        right: -5px;
    }
    
    .summary-card {
        padding: 2rem 1.5rem;
    }
    
    .summary-icon {
        width: 80px;
        height: 80px;
    }
    
    .summary-icon i {
        font-size: 2.5rem;
    }
    
    .summary-content h5 {
        font-size: 1.5rem;
    }
    
    .summary-content p {
        font-size: 1rem;
    }
}

/* Desktop Layout - Horizontal Flow */
@media (min-width: 1200px) {
    .business-process-flow {
        display: flex;
        align-items: stretch;
        justify-content: center;
        gap: 0;
        padding: 2rem 0;
        position: relative;
    }
    
    .process-step {
        flex: 0 0 300px;
        margin-bottom: 0;
        position: relative;
        display: flex;
        flex-direction: column;
    }
    
    .process-card {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 400px;
        margin: 0 10px;
    }
    
    .process-content {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    /* Connector and step number styles removed for cleaner look */
    
    .process-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
        line-height: 1.3;
    }
    
    .process-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        flex-grow: 1;
    }
    
    .process-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }
    
    .process-icon i {
        font-size: 1.75rem;
    }
}
