/* RESET */
body {
    margin: 0;
    font-family: Arial, sans-serif;
}

/* -------------------------------------------------------
   PAGE WRAPPER
------------------------------------------------------- */
.bee-page-container {
    background-image: url("../img/bg.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;          /* thay height 400vh → linh hoạt */
    max-width: 1360px;
    margin: 0 auto;
}

/* -------------------------------------------------------
   SECTION FULLSCREEN
------------------------------------------------------- */
.section {
    min-height: 100vh;         /* tránh bị thiếu chiều cao */
    position: relative;
    padding: 10px 0;
}

/* -------------------------------------------------------
   SOCIAL ICONS (SECTION 1)
------------------------------------------------------- */
#section1 .social-icon {
    position: absolute;
    bottom: 15%;
    left: 20px;
    display: flex;
    gap: 35px;
    flex-wrap: wrap;
}

.social-icon img {
    height: 70px;
    width: auto;
    object-fit: cover;
    margin-left: 15px;
}

.social-icon a img {
    transition: transform 0.3s ease;
}

.social-icon a:hover img {
    transform: scale(1.1);
}

/* -------------------------------------------------------
   SHARED LAYOUT FOR SECTIONS 2–4
------------------------------------------------------- */
.section2, .section3, .section4 {
    display: flex;
    align-items: center;
    justify-content: center;
}

.section2-container,
.section3-container,
.section4-container {
    max-width: 1200px;
    width: 100%;
    padding: 0 40px;

    display: grid;
    grid-template-columns: repeat(2, 1fr);   /* LUÔN chia 2 card */
    gap: 40px;
}

/* -------------------------------------------------------
   APP CARD
------------------------------------------------------- */
/* Card */
.app-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 32px 40px;           /* ⭐ Giảm padding để card không cách top */
    text-align: center;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
    position: relative;

    min-height: 620px;
    display: flex;
    flex-direction: column;
    align-items: center;          /* ⭐ Căn giữa icon */
    justify-content: flex-start;
    padding-bottom: 120px;        /* ⭐ Khoảng trống cho nút tải */
}

/* Icon */
.app-icon {
    width: 320px;
    height: 320px;
    border-radius: 28px;
    object-fit: cover;
    margin-bottom: 24px;
    display: block;
    margin-left: auto;            /* ⭐ Căn giữa icon */
    margin-right: auto;           /* ⭐ Căn giữa icon */
}

/* Title */
.app-card h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 14px;
    color: #111;
}

/* Tags */
.app-tags {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.app-tags span {
    font-size: 24px;
    font-weight: 700;
    color: #1a73e8;
}

/* Description */
.app-card p {
    font-size: 24px;
    color: #555;
}

/* Button */
.store-btn {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
}

.store-btn img {
    height: 80px;
    transition: transform 0.25s ease;
}

.store-btn:hover img {
    transform: scale(1.1);
}

/* Disabled */
.store-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* -------------------------------------------------------
   RESPONSIVE 900px
------------------------------------------------------- */
@media (max-width: 900px) {

    .bee-page-container {
        background-image: url("../img/bg_rps.png");
        background-size: cover;
        background-position: top center;
    }

    .section2-container,
    .section3-container,
    .section4-container {
        grid-template-columns: 1fr;
        gap: 40px;                    /* ⭐ Giảm gap từ 80px → 40px */
        padding-top: 20px;
    }

    .app-card {
        min-height: 480px;            /* ⭐ Card thấp hơn */
        padding: 24px 24px 80px;      /* ⭐ Giảm padding bottom */
    }

    .app-icon {
        width: 220px;                 /* ⭐ Thu nhỏ icon */
        height: 220px;
        margin-bottom: 16px;
    }

    .store-btn img {
        height: 60px;                 /* ⭐ Nút nhỏ lại */
    }
}

/* -------------------------------------------------------
   RESPONSIVE 768px
------------------------------------------------------- */
@media (max-width: 768px) {

    /* Icon chuyển sang xếp dọc bên phải */
    #section1 .social-icon {
        top: 45%;
        right: 20px;
        left: auto;
        flex-direction: column;
        gap: 20px;
        height: auto;
    }

    .social-icon img {
        max-height: 35px;
        margin-left: 0;
    }

    .app-card {
        min-height: 420px;            /* ⭐ Tablet thấp hơn */
        padding: 20px 20px 70px;
    }

    .app-icon {
        width: 200px;
        height: 200px;
        margin-bottom: 14px;
    }

    .app-card h3 {
        font-size: 22px;
    }

    .app-tags span {
        font-size: 16px;
    }

    .app-card p {
        font-size: 16px;
    }

    .store-btn img {
        height: 50px;
    }
}

/* -------------------------------------------------------
   RESPONSIVE 480px
------------------------------------------------------- */
@media (max-width: 480px) {

    .app-card {
        min-height: 380px;            /* ⭐ Vừa đẹp */
        padding: 16px 16px 65px;
    }

    .app-icon {
        width: 160px;
        height: 160px;
    }

    .store-btn img {
        height: 46px;
    }
}
