/* ==========================================================================
   Home Page Slider (News & Blog) Premium Styles
   ========================================================================== */

.home-slider-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 15px;
    position: relative;
}

.home-slider-header {
    margin-bottom: 30px;
    position: relative;
}

.home-slider-title {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.home-slider-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #ff455b, #6c5ce7);
    border-radius: 2px;
}

/* Slick Slider Custom Styles */
.home-slider-wrapper.slick-slider {
    margin: 0 -15px;
    position: relative;
}

.home-slider-wrapper .slick-list {
    overflow: hidden;
    padding: 20px 0;
}

.slider-item-card {
    background: #ffffff;
    border-radius: 16px;
    margin: 0 15px;
    overflow: hidden;
    display: flex !important;
    flex-direction: column;
    height: auto;
    border: none;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
    position: relative;
}

.slider-item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

/* Image section & custom graphic decoration */
.slider-item-image-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.slider-item-decor-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(185, 212, 236, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
    clip-path: polygon(0 100%, 100% 100%, 0 0);
    z-index: 1;
    pointer-events: none;
    transition: transform 0.5s ease;
}

.slider-item-card:hover .slider-item-decor-bg {
    transform: scale(1.05);
}

.slider-item-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 2;
    transition: transform 0.5s ease;
}

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

.slider-item-image.placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e2e2e2, #f1f1f1);
    position: relative;
    z-index: 2;
}

/* Content block */
.slider-item-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    z-index: 3;
    background: #ffffff;
    text-align: center; /* Centering content as in screenshot */
}

/* Tags in block */
.slider-item-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.slider-item-tag {
    font-size: 11px;
    font-weight: 500;
    color: #8c8c8c;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: color 0.2s ease;
}

.slider-item-tag:hover {
    color: #6c5ce7;
    text-decoration: none;
}

/* Title in block */
.slider-item-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 50px;
}

.slider-item-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.slider-item-title a:hover {
    color: #6c5ce7;
    text-decoration: none;
}

/* Meta author and date */
.slider-item-meta {
    display: flex;
    flex-direction: column; /* stacked layout for author and date */
    align-items: center;
    font-size: 12px;
    color: #8c8c8c;
    margin-bottom: 20px;
    border-top: none;
    padding-top: 0;
    gap: 4px;
}

.slider-item-author {
    font-weight: 400;
    color: #8c8c8c;
}

.slider-item-date {
    font-weight: 400;
    color: #8c8c8c;
}

/* Read More Button */
.slider-item-actions {
    margin-top: auto;
    display: flex;
    justify-content: center;
    width: 100%;
}

.slider-item-button {
    display: inline-block;
    padding: 10px 32px;
    background: linear-gradient(90deg, #b9d4ec 0%, #f3ccd3 100%);
    color: #4a4a4a;
    font-weight: 600;
    font-size: 14px;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.slider-item-button:hover {
    color: #2a2a2a;
    text-decoration: none;
    transform: scale(1.03);
    opacity: 0.95;
}

/* Slick Arrows Styling */
.home-slider-wrapper .slick-prev,
.home-slider-wrapper .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    font-size: 0;
    color: transparent;
    outline: none;
    transition: all 0.2s ease;
}

.home-slider-wrapper .slick-prev {
    left: -22px;
}

.home-slider-wrapper .slick-next {
    right: -22px;
}

.home-slider-wrapper .slick-prev:hover,
.home-slider-wrapper .slick-next:hover {
    background: #6c5ce7;
    border-color: #6c5ce7;
    box-shadow: 0 6px 16px rgba(108, 92, 231, 0.3);
}

.home-slider-wrapper .slick-prev:before,
.home-slider-wrapper .slick-next:before {
    font-size: 20px;
    color: #2d3436;
    line-height: 44px;
    display: block;
    text-align: center;
    font-weight: bold;
    transition: color 0.2s ease;
}

.home-slider-wrapper .slick-prev:hover:before,
.home-slider-wrapper .slick-next:hover:before {
    color: #ffffff;
}

.home-slider-wrapper .slick-prev:before {
    content: '‹';
}

.home-slider-wrapper .slick-next:before {
    content: '›';
}

.home-slider-wrapper .slick-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Slick Dots Styling */
.home-slider-wrapper .slick-dots {
    display: flex !important;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 24px 0 0 0;
    gap: 8px;
}

.home-slider-wrapper .slick-dots li {
    margin: 0;
    padding: 0;
}

.home-slider-wrapper .slick-dots li button {
    font-size: 0;
    line-height: 0;
    display: block;
    width: 8px;
    height: 8px;
    padding: 0;
    cursor: pointer;
    color: transparent;
    border: 0;
    outline: none;
    background: #dfe6e9;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.home-slider-wrapper .slick-dots li.slick-active button {
    background: #6c5ce7;
    width: 24px;
    border-radius: 4px;
}
