.stepbystep-container {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.step-item {
    display: flex;
    align-items: stretch;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 2rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

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

.step-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.step-image-section {
    position: relative;
    flex: 0 0 25%;
    min-height: 300px;
    overflow: hidden;
}

.step-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.step-item:hover .step-image {
    transform: scale(1.05);
}

.step-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 176, 25, 0.85) 0%, rgba(129, 11, 0, 0.85) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.step-icon {
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.step-item:hover .step-icon {
    transform: scale(1.1);
    background: rgba(255,255,255,0.3);
}

.step-icon i {
    font-size: 2rem;
    color: white;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    color: white;
}

.step-content-section {
    flex: 1;
    background: white;
    padding: 3rem;
    display: flex;
    align-items: center;
    position: relative;
}

.step-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
    margin: 0;
}

.news-section {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.news-title {
    text-align: center;
    margin-bottom: 3rem;
}

.news-slider {
    position: relative;
}

.news-slider .slick-slide {
    padding: 0 1rem;
}

/* Ensure uniform sizes for article cards inside the news slider */
.news-slider .custom-article-card {
    width: 100%;
    max-width: 360px;
    box-sizing: border-box;
}

.news-slider .custom-article-card .card {
    height: 360px;
    display: flex;
    flex-direction: column;
}

.news-slider .custom-article-card .media-header {
    flex: 0 0 50%;
    min-height: 170px;
    overflow: hidden;
}

.news-slider .custom-article-card .article-image,
.news-slider .custom-article-card .embed-responsive-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Ensure embedded videos/iframes don't expand beyond the media header
   Remove aspect-ratio padding and force full width/height inside the header */
.news-slider .custom-article-card .media-header {
    padding-top: 0 !important;
    height: 100%;
    position: relative;
}

.news-slider .custom-article-card .media-header .embed-responsive,
.news-slider .custom-article-card .media-header .embed-responsive-16by9 {
    height: 100% !important;
    padding-top: 0 !important;
    position: relative;
}

.news-slider .custom-article-card .media-header iframe,
.news-slider .custom-article-card .media-header video,
.news-slider .custom-article-card .media-header embed,
.news-slider .custom-article-card .media-header object {
    width: 100% !important;
    height: 100% !important;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.news-slider .custom-article-card .card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.news-slider .custom-article-card .card-title {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-slider .slick-prev,
.news-slider .slick-next {
    background: linear-gradient(135deg, #ffb019 0%, #810b00 100%);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    z-index: 1;
    transition: all 0.3s ease;
}

.news-slider .slick-prev:hover,
.news-slider .slick-next:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 176, 25, 0.3);
}

.news-slider .slick-prev:before,
.news-slider .slick-next:before {
    font-family: inherit;
    font-weight: 900;
    font-size: 1.2rem;
}

.news-slider .slick-prev:before {
    content: '\f104';
}

.news-slider .slick-next:before {
    content: '\f105';
}

@media (max-width: 992px) {
    .step-item {
        flex-direction: column;
    }
    
    .step-image-section {
        flex: none;
        min-height: 250px;
    }
    
    .step-content-section {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .step-image-section {
        min-height: 200px;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
    }
    
    .step-icon i {
        font-size: 1.5rem;
    }
    
    .step-title {
        font-size: 1.25rem;
    }
    
    .step-content-section {
        padding: 1.5rem;
    }
    
    .step-text {
        font-size: 1rem;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

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

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