/* Import Fira Code from Google Fonts (Must always be at the top) */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;700&display=swap');

/* --- 1. Base Grid & Card Layout --- */
.angie-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 100%;
    position: relative;
    overflow: hidden; /* Required to keep scanlines inside the grid */
}

.angie-benefit-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
}

/* --- 2. Card Hover Effects --- */
.angie-benefit-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

/* --- 3. Terminal Icons & Safe SVG Overrides --- */
.angie-benefit-icon {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.angie-benefits-grid svg,
.angie-benefits-grid i,
.angie-benefits-grid .fas {
    color: #A0A0A0 !important;
    fill: #A0A0A0 !important;
    /* Force dimensions so flexbox cannot collapse abstract SVGs */
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    display: block !important; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    filter: drop-shadow(0px 0px 2px rgba(160, 160, 160, 0.3));
}

/* Safe SVG Override: Target shapes, but keep background boxes (rect) transparent */
.angie-benefits-grid svg path,
.angie-benefits-grid svg polygon,
.angie-benefits-grid svg line,
.angie-benefits-grid svg polyline,
.angie-benefits-grid svg circle {
    fill: #A0A0A0 !important;
    stroke: #A0A0A0 !important;
}

.angie-benefits-grid svg rect {
    fill: transparent !important;
    stroke: transparent !important;
}

/* Icon Hover State */
.angie-benefit-item:hover .angie-benefit-icon i,
.angie-benefit-item:hover .angie-benefit-icon svg {
    transform: scale(1.05) translateZ(0);
    filter: drop-shadow(0px 0px 5px rgba(160, 160, 160, 0.7)); 
}

/* --- 4. Typography (Fira Code) --- */
.angie-benefit-text {
    color: #F5F5F5;
    font-size: 1.1rem;
    line-height: 1.5;
    font-weight: 500;
}

/* Apply crisp terminal text rendering globally to the widget */
.angie-benefits-grid * {
    font-family: 'Fira Code', monospace !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- 5. Global CRT Scanline Overlay --- */
.angie-benefits-grid::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 3px
    );
    pointer-events: none; /* CRITICAL: Allows clicks to pass through the scanlines */
    z-index: 10;
    opacity: 0.7;
}

/* --- 6. Mobile Responsiveness --- */
@media (max-width: 767px) {
    .angie-benefits-grid {
        grid-template-columns: 1fr !important;
    }
}