/* ==========================================================================
   ITGI Blog Cards & Slick Slider Component Styles
   ========================================================================== */

/* Container Wrapper */
.itgi-blogs-wrapper {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 30px 15px;
    font-family: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
}

/* Section Title */
.itgi-blogs-heading {
    margin-bottom: 24px;
    font-family: Raleway;
    font-weight: 700;
    font-size: 24px;
    line-height: 31px;
    color: #093E81;
    text-align: center;
}

/* Outer Container */
.itgi-blogs-container {
    position: relative;
    width: 100%;
}

/* Inner Slider Track - Includes Reserved Buffer Zone For Side Arrows */
.itgi-blogs-slider {
    position: relative;
    padding: 0 35px; /* Keeps cards 35px away from edges so arrows never overlap */
    box-sizing: border-box;
}

.itgi-blogs-slider .slick-list {
    margin: 0 -10px; /* Counteracts card slide horizontal padding */
}

.itgi-blogs-slider .slick-slide,
.itgi-blog-card-slide {
    padding: 0 10px; /* 20px total gap between adjacent cards */
    box-sizing: border-box;
    outline: none;
}

/* ================= FIGMA CARD SPECIFICATIONS (335px x 350px) ================= */
.itgi-blog-card {
    width: 100%;
    max-width: 335px;
    height: 350px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 9px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

/* .itgi-blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
} */

/* Cover Image Box */
.itgi-blog-img-box {
    width: 100%;
    height: 180px;
    display: block;
    overflow: hidden;
    background-color: #f1f5f9;
}

.itgi-blog-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.itgi-blog-card:hover .itgi-blog-img-box img {
    transform: scale(1.03);
}

/* Internal Content Body */
.itgi-blog-body {
    padding: 0 16px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    flex: 1;
}

/* Category Badge Pill */
.itgi-blog-badge {
    align-self: flex-start;
    background: #e0f2fe;
    color: #0284c7;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
}

/* Title Styling */
.itgi-blog-title-link {
    text-decoration: none;
}

.itgi-blog-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.itgi-blog-title-link:hover .itgi-blog-title {
    color: #02a2f8;
}

/* Footer & Meta Info */
.itgi-blog-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #64748b;
}

.itgi-blog-meta {
    font-size: 12px;
    color: #64748b;
}

/* Share Icon Button */
.itgi-blog-share-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.itgi-blog-share-btn:hover {
    color: #0284c7;
}

/* ================= SLICK ARROW BUTTON STYLES ================= */
.itgi-blogs-container .slick-prev,
.itgi-blogs-container .slick-next {
    height: 30px;
    width: 30px;
    border: 1px solid #0A6735;
    border-radius: 50%;
    background-color: #ffffff;
    z-index: 5;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0;
    outline: none;
    font-size: 0;
    color: transparent;
    transition: background-color 0.2s ease;
}

/* Aligned cleanly inside the reserved 35px padding zone */
.itgi-blogs-container .slick-prev {
    left: 2px;
}

.itgi-blogs-container .slick-next {
    right: 2px;
}

.itgi-blogs-container .slick-prev:hover,
.itgi-blogs-container .slick-next:hover {
    background-color: #f0fdf4;
}

/* Arrow SVG Image via :before Pseudo Element */
.itgi-blogs-container .slick-next:before {
    display: inline-block;
    width: 25px;
    height: 25px;
    background-image: url(../../../../../../content/dam/iffcotokio/iffco-images/home-page-rewamp/green-right-arrow.svg);
    background-size: contain;
    background-repeat: no-repeat;
    content: '';
}

.itgi-blogs-container .slick-prev:before {
    display: inline-block;
    width: 25px;
    height: 25px;
    background-image: url(../../../../../../content/dam/iffcotokio/iffco-images/home-page-rewamp/green-right-arrow.svg);
    background-size: contain;
    background-repeat: no-repeat;
    content: '';
    transform: rotate(180deg);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .itgi-blogs-wrapper {
        max-width: 100%;
        padding: 20px 10px;
    }

    .itgi-blogs-slider {
        padding: 0 30px;
    }

    .itgi-blog-card {
        width: 100%;
        max-width: 335px;
    }
}