/* =================================================================
   INSIGHT DETAIL PAGE STYLES
   ================================================================= */

/* Hero Section with Title Overlay */
.insight-hero-section {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end; /* Position content at bottom */
}

/* Dark gradient overlay for better text readability */
.insight-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 54, 144, 0.1) 0%,
        rgba(10, 54, 144, 0.4) 50%,
        rgba(10, 54, 144, 0.7) 100%
    );
    z-index: 1;
}

/* Hero Content Container */
.insight-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 0 60px 0; /* Bottom padding for spacing */
}

/* Type Badge in Hero */
.insight-hero-type {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-blue);
    font-family: var(--font-family-secondary);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Title in Hero */
.insight-hero-title {
    font-family: var(--font-family-primary);
    font-size: clamp(1.75rem, 4.5vw, 2.8rem);
    font-weight: 900;
    color: white;
    line-height: 1.2;
    margin: 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
    max-width: 900px;
}

/* Responsive Design for Insight Hero */
@media (max-width: 1024px) {
    .insight-hero-section {
        height: 65vh;
        min-height: 450px;
    }
    
    .insight-hero-title {
        font-size: clamp(1.6rem, 4vw, 2.5rem);
    }
    
    .insight-hero-content {
        padding: 0 0 50px 0;
    }
}

@media (max-width: 768px) {
    .insight-hero-section {
        height: 55vh;
        min-height: 400px;
        align-items: flex-end; /* Keep at bottom on mobile */
    }
    
    .insight-hero-section::before {
        background: linear-gradient(
            to bottom,
            rgba(10, 54, 144, 0.2) 0%,
            rgba(10, 54, 144, 0.5) 60%,
            rgba(10, 54, 144, 0.8) 100%
        );
    }
    
    .insight-hero-content {
        padding: 0 0 30px 0;
    }
    
    .insight-hero-type {
        font-size: 0.75rem;
        padding: 6px 14px;
        margin-bottom: 12px;
    }
    
    .insight-hero-title {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
        text-align: left;
        line-height: 1.25;
    }
}

@media (max-width: 576px) {
    .insight-hero-section {
        height: 50vh;
        min-height: 350px;
    }
    
    .insight-hero-section::before {
        background: linear-gradient(
            to bottom,
            rgba(10, 54, 144, 0.25) 0%,
            rgba(10, 54, 144, 0.55) 60%,
            rgba(10, 54, 144, 0.85) 100%
        );
    }
    
    .insight-hero-content {
        padding: 0 0 25px 0;
    }
    
    .insight-hero-type {
        font-size: 0.7rem;
        padding: 5px 12px;
        margin-bottom: 10px;
        letter-spacing: 0.5px;
    }
    
    .insight-hero-title {
        font-size: clamp(1.15rem, 5vw, 1.5rem);
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    .insight-hero-section {
        height: 45vh;
        min-height: 320px;
    }
    
    .insight-hero-content {
        padding: 0 0 20px 0;
    }
    
    .insight-hero-type {
        font-size: 0.65rem;
        padding: 4px 10px;
        margin-bottom: 8px;
    }
    
    .insight-hero-title {
        font-size: clamp(1.05rem, 5vw, 1.35rem);
        line-height: 1.3;
    }
}

/* Extra optimizations for mobile content section */
@media (max-width: 768px) {
    .insightdetailwrap {
        padding-top: 40px !important;
    }
}

@media (max-width: 576px) {
    .insightdetailwrap {
        padding-top: 30px !important;
    }
}

/* =================================================================
   RELATED INSIGHTS SLIDER STYLES
   ================================================================= */

.related-insights-swiper {
    width: 100%;
    padding-bottom: 20px;
}

.related-insights-swiper .swiper-slide {
    height: auto;
}

.related-insights-swiper .card {
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 0;
    padding: 0;
}

.related-insights-swiper .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(10, 54, 144, 0.15);
}

/* Card Image Thumbnail */
.related-insights-swiper .card-thumb {
    margin-bottom: 20px;
    overflow: hidden;
    height: 280px;
    border-radius: 6px;
}

.related-insights-swiper .card-thumb img {
    border-radius: 6px;
    width: 100%;
    object-fit: cover;
    height: 100%;
    transition: transform 0.3s ease;
}

.related-insights-swiper .card:hover .card-thumb img {
    transform: scale(1.05);
}

/* Type Badge */
.related-insights-swiper .b-title {
    color: #6c86bc;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 1.04px;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

/* Card Title */
.related-insights-swiper h4 {
    color: #0a3690;
    font-family: 'Satoshi-Bold', sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 140%;
    margin-bottom: 12px;
    min-height: 56px;
}

/* Card Description */
.related-insights-swiper .card p {
    color: #464e5f;
    font-size: 15px;
    font-style: normal;
    font-weight: 500;
    line-height: 160%;
    margin-bottom: 15px;
}

/* Read More Link */
.related-insights-swiper .card p span {
    color: #3959ff;
    font-family: 'Satoshi-Bold', sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 100%;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.related-insights-swiper .card:hover p span {
    text-shadow: 0px 2px 2px rgba(60, 185, 255, 0.3);
}

.related-insights-swiper .card p span img {
    margin-left: 8px;
    vertical-align: middle;
}

/* Navigation buttons styling */
.related-insights-pagination button:hover {
    background: rgba(10, 54, 144, 0.2) !important;
}

/* Related Insights Section Title */
.SucessWrap h5 {
    font-family: 'Satoshi-Black', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.2rem);
    font-weight: 900;
    color: #0a3690;
    margin-bottom: 0;
}

/* Mobile optimizations for related insights */
@media (max-width: 768px) {
    /* Show pagination on mobile - aligned to right */
    .related-insights-pagination {
        display: flex !important;
        justify-content: flex-end !important;
        gap: 10px;
    }
    
    .related-insights-swiper {
        padding-bottom: 30px;
    }
    
    .SucessWrap {
        padding: 40px 0 !important;
    }
    
    .SucessWrap h5 {
        font-size: clamp(1.5rem, 4vw, 1.8rem);
        margin-bottom: 0 !important;
        text-align: left !important;
    }
    
    .SucessWrap .row.align-items-center {
        margin-bottom: 25px !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .SucessWrap .col-md-6 {
        text-align: left;
        width: auto;
        flex: 0 0 auto;
    }
    
    .SucessWrap .col-md-6:first-child {
        flex: 1;
    }
    
    /* Mobile navigation buttons - smaller for mobile */
    .related-insights__prev,
    .related-insights__next {
        width: 35px !important;
        height: 35px !important;
    }
    
    .related-insights__prev svg,
    .related-insights__next svg {
        width: 16px;
        height: 18px;
    }
    
    /* Card optimization for mobile */
    .related-insights-swiper .card {
        margin: 0 5px;
    }
    
    .related-insights-swiper .card .row {
        margin: 0;
    }
    
    .related-insights-swiper .card-thumb {
        padding: 0;
        margin-bottom: 15px;
        height: 220px;
    }
    
    .related-insights-swiper .card-thumb img {
        border-radius: 8px;
    }
    
    .related-insights-swiper .b-title {
        font-size: 0.7rem;
        margin-bottom: 8px;
    }
    
    .related-insights-swiper h4 {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: 10px;
        min-height: auto;
    }
    
    .related-insights-swiper .card p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .related-insights-swiper .card p span {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .SucessWrap {
        padding: 30px 0 !important;
    }
    
    .SucessWrap h5 {
        font-size: clamp(1.3rem, 4vw, 1.6rem);
    }
    
    .SucessWrap .row.align-items-center {
        margin-bottom: 20px !important;
    }
    
    .related-insights-swiper {
        padding-bottom: 25px;
    }
    
    .related-insights-swiper .card {
        margin: 0 3px;
    }
    
    .related-insights-swiper .card-thumb {
        margin-bottom: 12px;
        height: 200px;
    }
    
    .related-insights-swiper h4 {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    
    .related-insights-swiper .card p {
        font-size: 0.8rem;
    }
    
    .related-insights-swiper .card p span {
        font-size: 0.9rem;
    }
}
