/* RECEIPTS REBUILD - FRESH STYLES */

.receipts-rebuild-section {
    background-color: #000000;
    padding: 120px 0;
    /* border-top removed for seamless flow */
    position: relative;
    z-index: 5;
}

.rebuild-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* SECTION 1: INDUSTRY GRID HEADER */
.rebuild-grid-header {
    margin-bottom: 60px;
}

.rebuild-eyebrow {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    color: #888;
    margin-bottom: 16px;
    display: block;
}

.rebuild-h2 {
    font-family: 'Inter', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #FFF;
    max-width: 800px;
    line-height: 1.1;
}

/* --- NEW MOSAIC LAYOUT (2-3-2) --- */
.rebuild-industry-wrapper {
    margin-bottom: 120px;
}

.industry-cards-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 Column Grid for flexibility */
    gap: 24px;
    grid-auto-rows: 280px; /* Fixed row height */
}

/* Row 1: 2 Items (Each spans 3 cols) */
.industry-card:nth-child(1),
.industry-card:nth-child(2) {
    grid-column: span 3;
}

/* Row 2: 3 Items (Each spans 2 cols) */
.industry-card:nth-child(3),
.industry-card:nth-child(4),
.industry-card:nth-child(5) {
    grid-column: span 2;
}

/* Row 3: 2 Items (Each spans 3 cols) */
.industry-card:nth-child(6),
.industry-card:nth-child(7) {
    grid-column: span 3;
}

.industry-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.industry-card:hover {
    transform: translateY(-5px);
    border-color: #00FFCC;
}

.ind-card-image {
    width: 100%;
    height: 240px; /* Fixed height for consistency */
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ind-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fill the area, cropping if needed but no bars */
    transition: transform 0.5s ease;
}

.industry-card:hover .ind-card-image img {
    transform: scale(1.05);
}

/* Overlay and Tag */
.ind-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
    opacity: 0.6;
}

.ind-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: #00FFCC;
    background: rgba(0,0,0,0.6);
    padding: 4px 8px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 255, 204, 0.2);
}

.ind-card-content {
    padding: 24px;
    flex-grow: 1;
}

.ind-card-content h3 {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #FFF;
    margin-bottom: 8px;
}

.ind-card-content p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #AAA;
    line-height: 1.5;
}

/* SECTION 2: THE CARDS (REBUILT) */
.rebuild-proof-header {
    margin-bottom: 60px;
    padding-top: 60px;
    border-top: 1px solid #222;
}

.rebuild-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Base Card Style */
.re-card {
    background: radial-gradient(circle at top left, #1A1A1A, #0A0A0A);
    padding: 40px;
    display: flex;
    flex-direction: column;
    min-height: 320px;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
    border-radius: 0; /* Sharp corners */
}

/* Specific Border Colors (20% Opacity Default) */
.card-teal { border: 1px solid rgba(0, 255, 204, 0.2); }
.card-purple { border: 1px solid rgba(138, 43, 226, 0.2); }
.card-orange { border: 1px solid rgba(255, 69, 0, 0.2); }

/* Hover States (100% Opacity Border + Lift) */
.card-teal:hover { border-color: #00FFCC; transform: translateY(-4px); }
.card-purple:hover { border-color: #8A2BE2; transform: translateY(-4px); }
.card-orange:hover { border-color: #FF4500; transform: translateY(-4px); }

/* Tags (Ghost Pills) */
.re-card-tag {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 4px;
    margin-bottom: 24px;
    display: inline-block;
    width: fit-content;
    border: none;
}
.tag-teal { background-color: rgba(0, 255, 204, 0.1); color: #00FFCC; }
.tag-purple { background-color: rgba(138, 43, 226, 0.1); color: #8A2BE2; }
.tag-orange { background-color: rgba(255, 69, 0, 0.1); color: #FF4500; }

.re-card-text {
    color: #FFF;
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 40px;
    flex-grow: 1;
    font-family: 'Inter', sans-serif;
}

/* Stat Typography (Clean, Solid) */
.re-card-stat {
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
    letter-spacing: -1px;
    color: #FFF;
    text-shadow: 0 0 20px rgba(255,255,255,0.1);
    display: inline-block;
}

.card-teal .re-card-stat { color: #FFF; text-shadow: 0 0 15px rgba(0, 255, 204, 0.4); }
.card-purple .re-card-stat { color: #FFF; text-shadow: 0 0 15px rgba(138, 43, 226, 0.4); }
.card-orange .re-card-stat { color: #FFF; text-shadow: 0 0 15px rgba(255, 69, 0, 0.4); }

.re-card-sub {
    color: #888888; /* Muted Silver */
    font-size: 13px;
    margin-bottom: 24px;
    font-family: 'Inter', sans-serif;
}

.re-card-link {
    color: #FFF;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 4px;
    align-self: flex-start;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.re-card-link:hover {
    border-color: #FFF;
}

.rebuild-footer-link {
    grid-column: 1 / -1; /* Span full width of grid */
    display: block;
    text-align: right;
    margin-top: 40px;
    color: #FFF;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
}

@media (max-width: 1024px) {
    .industry-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
    }
    
    /* Reset spans for tablet (2 col grid) */
    .industry-card:nth-child(n) {
        grid-column: span 1; /* Default to 1 col */
    }
    
    /* Make the last odd item span full width */
    .industry-card:nth-child(7) {
        grid-column: span 2;
    }
    
    .rebuild-cards-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .industry-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .industry-card:nth-child(n) {
        grid-column: span 1;
    }
}