/* Post-it Section */
.post-it-section {
    padding: 80px 0;
    background-color: #f8fafc;
    overflow: hidden;
}

.post-it-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.post-it-card {
    width: 250px;
    height: 250px;
    background-color: var(--primary);
    /* Primary Burgundy */
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.post-it-card h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    line-height: 1.3;
}

.post-it-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Overlap & Rotation Effects & Color Variations */
.post-it-card:nth-child(odd) {
    transform: rotate(-3deg);
    margin-top: 10px;
    background-color: var(--primary);
    /* Burgundy */
}

.post-it-card:nth-child(even) {
    transform: rotate(2deg);
    margin-top: -10px;
    background-color: #5c0017;
    /* Dark Burgundy */
}

.post-it-card:nth-child(3n) {
    transform: rotate(4deg);
    margin-left: -15px;
    background-color: #1f2937;
    /* Dark Gray (Contrast) */
}

.post-it-card:nth-child(3n+1) {
    transform: rotate(-2deg);
    margin-right: -15px;
}

/* Hover Effects */
.post-it-card:hover {
    z-index: 999;
    transform: scale(1.1) rotate(0deg);
    box-shadow: 0 0 20px rgba(128, 0, 32, 0.6), 0 10px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    background-color: #000000 !important;
    /* Pure Black on hover for impact */
    /* Darker Burgundy on Hover */
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0% {
        transform: scale(1.1) rotate(0deg) translate(1px, 1px);
    }

    10% {
        transform: scale(1.1) rotate(0deg) translate(-1px, -2px);
    }

    20% {
        transform: scale(1.1) rotate(0deg) translate(-3px, 0px);
    }

    30% {
        transform: scale(1.1) rotate(0deg) translate(3px, 2px);
    }

    40% {
        transform: scale(1.1) rotate(0deg) translate(1px, -1px);
    }

    50% {
        transform: scale(1.1) rotate(0deg) translate(-1px, 2px);
    }

    60% {
        transform: scale(1.1) rotate(0deg) translate(-3px, 1px);
    }

    70% {
        transform: scale(1.1) rotate(0deg) translate(3px, 1px);
    }

    80% {
        transform: scale(1.1) rotate(0deg) translate(-1px, -1px);
    }

    90% {
        transform: scale(1.1) rotate(0deg) translate(1px, 2px);
    }

    100% {
        transform: scale(1.1) rotate(0deg) translate(1px, -2px);
    }
}

/* User Override: Make Cards 01 (Child 2), 03 (Child 4), 05 (Child 6) Dark Gray */
.post-it-card:nth-child(2),
.post-it-card:nth-child(4),
.post-it-card:nth-child(6) {
    background-color: #1f2937 !important;
}

/* User Override: Make Cards 02 (Child 3), 04 (Child 5), 06 (Child 7) Burgundy */
.post-it-card:nth-child(3),
.post-it-card:nth-child(5),
.post-it-card:nth-child(7) {
    background-color: var(--primary) !important;
}

/* Intro Card Specifics */
.post-it-card.intro-card {
    background-color: #0a0a0a !important;
    /* Deepest Black for Intro */
    /* Deep Burgundy for Intro */
    width: 280px;
    height: 280px;
    z-index: 2;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.post-it-card.intro-card:hover {
    z-index: 1000;
    background-color: #000000;
}

/* Responsive */
@media (max-width: 768px) {
    .post-it-container {
        gap: 30px;
    }

    .post-it-card {
        margin: 0 !important;
        transform: rotate(0deg) !important;
        width: 100%;
        max-width: 300px;
        height: auto;
        min-height: 200px;
    }

    .post-it-card:hover {
        transform: scale(1.05) !important;
    }
}