/* --- Desktop: Section Container --- */
.home-flipbooks {
    background: #fdfdfd;
    padding: 80px 0; /* Keeps desktop spacing perfect */
    overflow: hidden;
}

.home-flipbooks .row {
    display: flex;
    align-items: center;
}

/* --- Title Logic --- */
.sideways-title {
    color: #043c2c;
    font-weight: normal; /* As requested: not bold */
    font-size: 1.8rem;
    margin: 0;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .sideways-title {
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        display: inline-block;
    }
}

/* --- Button & Icon Reset --- */
.edge-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: default;
    flex: 1;
    outline: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flipbook-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.edge-icon {
    width: 45px !important; /* Desktop size */
    height: auto;
    display: block;
    margin-bottom: 10px;
}

.edge-btn span {
    display: block;
    color: #043c2c;
    font-weight: bold;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
}

/* --- Alternating Delays (Wave Effect) --- */
.edge-btn:nth-child(1) { animation-delay: 0s; }
.edge-btn:nth-child(2) { animation-delay: 0.2s; }
.edge-btn:nth-child(3) { animation-delay: 0.4s; }
.edge-btn:nth-child(4) { animation-delay: 0.6s; }

/* --- MOBILE FIX: STACKED & COMPACT --- */
@media (max-width: 767px) {
    .home-flipbooks {
        padding-top: 30px !important;
        padding-bottom: 0px !important; /* Kills the bottom white space */
    }

    .home-flipbooks .container, 
    .home-flipbooks .row {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    .sideways-title {
        display: block;
        margin: 10px 0 30px 0;
        text-align: center;
        font-size: 1.6rem;
    }

    .flipbook-container {
        flex-direction: column !important; /* Stacks icons vertically */
        gap: 40px; /* Space between each icon line */
        margin-bottom: 10px !important;
    }

    .edge-icon {
        width: 75px !important; /* Larger icons like screenshot */
    }

    .edge-btn span {
        font-size: 11px;
        margin-top: 5px;
    }
}

/* --- Animations --- */
.pop-right { animation: popR 3s ease-in-out infinite; }
.pop-left { animation: popL 3s ease-in-out infinite; }

@keyframes popR {
    0%, 100% { opacity: 0; transform: translateX(30px); }
    15%, 85% { opacity: 1; transform: translateX(0); }
}

@keyframes popL {
    0%, 100% { opacity: 0; transform: translateX(-30px); }
    15%, 85% { opacity: 1; transform: translateX(0); }
}