/* ==========================================================================
   INSURANCE BLOGS / EDUCATION GUIDES
   ========================================================================== */

/* Hero Section */
.ib-hero {
    position: relative;
    padding: 100px 20px 60px;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    text-align: center;
    overflow: hidden;
}

.ib-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(99,102,241,0.05) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(30deg);
}

.ib-hero-tag {
    display: inline-block;
    padding: 6px 14px;
    background: #e0e7ff;
    color: #4338ca;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ib-hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 15px;
    line-height: 1.2;
}

.ib-hero-sub {
    font-size: 1.15rem;
    color: #475569;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Layout */
.ib-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.ib-content {
    background: #ffffff;
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

/* Typography & Content Elements */
.ib-section {
    margin-bottom: 40px;
}

.ib-section:last-child {
    margin-bottom: 0;
}

.ib-section h2 {
    font-size: 1.8rem;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
}

.ib-section h2 .ib-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #e0e7ff;
    color: #4f46e5;
    border-radius: 10px;
}

.ib-section p {
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Grid for Features/Points */
.ib-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 25px;
}

.ib-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.ib-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.04);
    border-color: #cbd5e1;
}

.ib-card h3 {
    font-size: 1.25rem;
    color: #0f172a;
    margin-bottom: 10px;
    font-weight: 600;
}

.ib-card p {
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Custom Lists */
.ib-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.ib-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1.05rem;
    color: #334155;
    line-height: 1.5;
}

.ib-list li svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.ib-list-check li svg {
    color: #10b981;
}

.ib-list-cross li svg {
    color: #ef4444;
}

.ib-list-neutral li svg {
    color: #6366f1;
}

/* Term / Dictionary layout */
.ib-terms {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ib-term-item {
    display: flex;
    flex-direction: column;
    background: #f1f5f9;
    padding: 16px 20px;
    border-radius: 12px;
    border-left: 4px solid #4f46e5;
}

.ib-term-title {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.ib-term-desc {
    color: #475569;
    font-size: 0.95rem;
}

/* Steps / Process */
.ib-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    padding-left: 20px;
}

.ib-steps::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 4px;
    width: 2px;
    background: #e2e8f0;
}

.ib-step {
    position: relative;
    padding-left: 20px;
    font-size: 1.05rem;
    color: #334155;
}

.ib-step::before {
    content: '';
    position: absolute;
    top: 8px;
    left: -20px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4f46e5;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #4f46e5;
}

/* Responsive */
@media (max-width: 768px) {
    .ib-content {
        padding: 30px 20px;
    }
    
    .ib-hero-title {
        font-size: 2.2rem;
    }
    
    .ib-list {
        grid-template-columns: 1fr;
    }
}

/* Fix visibility issue due to global #main opacity: 0 */
#main {
    animation: ibFadeIn 0.8s ease forwards;
}

@keyframes ibFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
