.home-main {
    display: flex;
    flex-direction: column;
    align-items: center;
}
h1 {
    margin: 0;
    color: #002f7a !important;
}
.blox-fruits-codes-wrap {
    width: 95%;
    max-width: 1000px;
    font-family: 'Fredoka', Arial, sans-serif;
    color: #1c1c1c;
    line-height: 1.55;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 3.5%;
}

.blox-fruits-codes-wrap h1 {
    font-size: 40px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 25px;
    color: #222;
}

.codes-main-img,
.codes-img {
    width: 100%;
    max-width: 750px;
    border-radius: 14px;
    margin: 25px auto;
    display: block;
}

/* Section Title */
.blox-fruits-codes-wrap h2 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin: 45px 0 25px;
    color: #222;
    border-bottom: 3px solid #8ab6ff;
    display: inline-block;
    padding-bottom: 8px;
    letter-spacing: 0.5px;
    align-self: center;
}

.section-text {
    display: block;
    margin: 20px 0 25px;
    white-space: pre-line;
    font-size: 18px;
    color: #333;
}

/* Code List */
.code-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    width: 70%;
}

/* Each code item */
.code-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    margin-bottom: 10px;
    font-size: 18px;
    background: #f9fbff;
    border-radius: 14px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.5s forwards;
}

/* Hover effect */
.code-list li:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

/* Code name */
.code-name {
    font-weight: 600;
    color: #1a1a1a;
}

/* Code reward */
.code-reward {
    font-weight: 500;
    color: #555;
    margin-left: 15px;
    text-align: right;
}

/* Expired codes */
.code-list.expired li {
    background: #ececec;
    text-decoration: line-through;
    color: #999;
}

/* Animation Stagger */
.code-list li:nth-child(n) {
    animation-delay: calc(0.05s * var(--i));
}

/* Animation keyframes */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 700px) {

    .blox-fruits-codes-wrap h1 {
        font-size: 32px;
    }

    .blox-fruits-codes-wrap h2 {
        font-size: 26px;
    }

    .code-list li {
        flex-direction: column;
        align-items: flex-start;
        font-size: 16px;
    }

    .code-reward {
        margin-left: 0;
        margin-top: 4px;
        text-align: left;
    }

    .section-text {
        font-size: 16px;
    }
}
