/* ============================================
   INSIGHTS PAGE — insights-style.css
   Upload to: wp-content/themes/hello-elementor-child/
   ============================================ */

/* ── Fade-in animation ── */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero background stays instant — no animation */
.ipage-hero {
    animation: none !important;
    opacity: 1 !important;
}

/* Hero text fades in with a stagger */
.ipage-label { animation: fadeIn 0.6s ease-out 0.05s forwards; opacity: 0; }
.ipage-title  { animation: fadeIn 0.6s ease-out 0.15s forwards; opacity: 0; }
.ipage-count  { animation: fadeIn 0.6s ease-out 0.25s forwards; opacity: 0; }

/* Everything below the hero fades in */
.ipage-body {
    animation: fadeIn 0.6s ease-out forwards;
}

/* ── Page wrapper ── */
.ipage-wrap {
    background: #f5f5f5;
    color: #0a1f44;
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    width: 100%;
}

/* ── Hero ── */
.ipage-hero {
    background-image: url(https://perluxi.com/wp-content/uploads/2025/04/herobg.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid #e0e0e0;
    padding: 128px 60px 48px;
    position: relative;
    overflow: hidden;
    text-align: center;
    min-height: 22vh;
}

.ipage-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.0) 100%
    );
    pointer-events: none;
    z-index: 0;
}

.ipage-label {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 12px;
    display: block;
    position: relative;
    z-index: 1;
}

.ipage-title {
    font-family: 'Poppins', sans-serif !important;
    font-size: clamp(48px, 7vw, 88px) !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    letter-spacing: -1px !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    background: none !important;
    text-shadow: none !important;
    position: relative;
    z-index: 1;
}

.ipage-count {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #dddddd;
    letter-spacing: 0.03em;
    position: relative;
    z-index: 1;
}

.ipage-count span {
    color: #ffffff;
    font-weight: 600;
}

/* ── Body ── */
.ipage-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 60px 80px;
}

/* ── Category filter pills ── */
.ipage-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    align-items: center;
}

.ipage-filter-btn {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 7px 16px;
    border-radius: 20px;
    border: 1px solid #d0d0d0;
    color: #777777;
    background: #ffffff;
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
}

.ipage-filter-btn:hover {
    border-color: #0F67CF;
    color: #0F67CF;
    text-decoration: none;
}

.ipage-filter-btn.active {
    background: #0F67CF;
    border-color: #0F67CF;
    color: #ffffff;
}

/* ── Featured post ── */
.ipage-featured {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    margin-bottom: 32px;
    text-decoration: none;
    color: #0a1f44;
    transition: box-shadow 0.2s, transform 0.2s;
}

.ipage-featured:hover {
    box-shadow: 0 8px 32px rgba(15, 103, 207, 0.1);
    transform: translateY(-2px);
    text-decoration: none;
    color: #0a1f44;
}

.ipage-featured-image {
    position: relative;
    overflow: hidden;
    min-height: 360px;
}

.ipage-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.ipage-featured:hover .ipage-featured-image img {
    transform: scale(1.03);
}

.ipage-featured-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8f0fe 0%, #c8d8f8 100%);
    min-height: 360px;
}

.ipage-featured-content {
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ipage-featured-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.ipage-featured-title {
    font-family: 'Poppins', sans-serif !important;
    font-size: clamp(20px, 2.5vw, 28px) !important;
    font-weight: 700 !important;
    color: #0a1f44 !important;
    line-height: 1.3 !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
}

.ipage-featured-excerpt {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #666666;
    margin-bottom: 24px;
}

.ipage-read-more {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #0F67CF;
    letter-spacing: 0.03em;
}

/* ── Category badge ── */
.ipage-cat-badge {
    font-family: 'Poppins', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 2px;
    border-left: 2px solid #0F67CF;
    color: #0F67CF;
    background: rgba(15, 103, 207, 0.08);
}

/* ── Date ── */
.ipage-date {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    color: #999999;
    font-weight: 400;
}

/* ── Grid ── */
.ipage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ── Card ── */
.ipage-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    color: #0a1f44;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}

.ipage-card:hover {
    box-shadow: 0 8px 32px rgba(15, 103, 207, 0.1);
    transform: translateY(-2px);
    text-decoration: none;
    color: #0a1f44;
    border-color: #c8d8f8;
}

.ipage-card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.ipage-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.ipage-card:hover .ipage-card-image img {
    transform: scale(1.05);
}

.ipage-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8f0fe 0%, #c8d8f8 100%);
}

.ipage-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ipage-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ipage-card-title {
    font-family: 'Poppins', sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #0a1f44 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 1;
}

.ipage-card-arrow {
    font-size: 14px;
    color: #0F67CF;
    opacity: 0;
    transition: opacity 0.15s, transform 0.15s;
    margin-top: auto;
    display: block;
}

.ipage-card:hover .ipage-card-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* ── Empty state ── */
.ipage-empty {
    text-align: center;
    padding: 80px 20px;
}

.ipage-empty p {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #666666;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .ipage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ipage-hero {
        padding: 80px 24px 40px;
    }

    .ipage-body {
        padding: 28px 24px 60px;
    }

    .ipage-featured {
        grid-template-columns: 1fr;
    }

    .ipage-featured-image {
        min-height: 240px;
    }

    .ipage-featured-content {
        padding: 28px 24px;
    }

    .ipage-grid {
        grid-template-columns: 1fr;
    }
}