 /* =========================================
   Reset & Base Styles
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Urbanist', sans-serif;
    background-color: #f4f4f4; /* Clean light gray background like the screenshot */
    color: #000;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
}

/* =========================================
   Header & Layout
   ========================================= */
.insights-section {
    max-width: 1300px;
    width: 100%;
    text-align: center;
}

.insights-header {
    margin-bottom: 60px;
}

.insights-label {
    display: inline-block;
    background-color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.insights-title {
    font-size: 64px; /* Large, bold title */
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -1.5px;
}

.serif-italic {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-weight: 400;
}

/* =========================================
   Grid System
   ========================================= */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

/* Responsive: Stack on mobile/tablet */
@media (max-width: 1024px) {
    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .insights-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    .insights-title {
        font-size: 42px;
    }
}

/* =========================================
   Card Base Styles
   ========================================= */
.insight-card {
    border-radius: 15px; /* Large rounded corners */
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 520px; /* Fixed height for consistency */
    display: flex;
    flex-direction: column;
}

.card-light {
    background-color: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.card-dark {
    background-color: #000;
}

.card-title {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

/* =========================================
   Card 1: Collage
   ========================================= */
.card-collage .card-content {
    padding: 30px;
    margin-top: auto; /* Pushes text to bottom */
}

.collage-container {
    position: relative;
    height: 100%;
    background-color: #fff;
}

.collage-img {
    position: absolute;
    border: 5px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 4px;
    object-fit: cover;
}

/* Positioning matching the messy pile look */
.img-1 { top: 60px; left: 40px; width: 140px; height: 160px; transform: rotate(-8deg); z-index: 2; }
.img-2 { top: 40px; right: 70px; width: 130px; height: 120px; transform: rotate(18deg); z-index: 1; }
.img-3 { top: 160px; left: 80px; width: 150px; height: 150px; transform: rotate(-2deg); z-index: 3; }
.img-4 { top: 140px; right: 50px; width: 140px; height: 130px; transform: rotate(5deg); z-index: 0; }


/* =========================================
   Card 2: Middle Card (Exact Match)
   ========================================= */
.card-middle {
    justify-content: flex-start; /* Aligns content to top */
}

.card-middle .card-content-top {
    padding: 40px 32px 0 32px; /* Padding top for title */
    z-index: 2; /* Ensures text is above image layer */
}

.card-image-fade-wrapper {
    margin-top: auto; /* Pushes image to bottom */
    width: 100%;
    height: 65%; /* Image takes up bottom ~65% of card */
    position: relative;
    padding: 5px;
}

.card-image-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

/* THE MAGIC FADE: Gradient overlay */
.card-image-fade-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%; /* Gradient covers top half of the image area */
    /* Linear gradient from White (solid) to White (transparent) */
    background: linear-gradient(to bottom, #ffffff 10%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    
}


/* =========================================
   Card 3: Dark Card
   ========================================= */
.card-dark {
    position: relative;
}

.card-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8; /* Dims image slightly */
    filter: grayscale(100%); /* Black and white photo */
}

.card-overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 32px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
}

.text-white {
    color: #fff;
}