.howtobuy-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 32px 0 48px;
    background: linear-gradient(135deg, #faf8f8 0%, #efeded 100%);
}

.howtobuy-section * {
    box-sizing: border-box;
}

.howtobuy-card {
    width: 980px;
    height: 620px;
    display: flex;
    gap: 32px;
    align-items: center;
    padding: 24px;
    background: #fdfdfd;
    border: 1px solid #d9d5d5;
    border-radius: 18px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
}

.howtobuy-nav {
    width: 200px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.howtobuy-nav-item {
    height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #a8a8a8;
    border-radius: 12px;
    background: #ffffff;
    text-decoration: none;
    color: #707070;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, color 0.2s ease;
}

.howtobuy-nav-item:hover {
    transform: translateY(-2px);
    color: #591919;
}

.howtobuy-nav-icon i {
    font-size: 30px;
}

.howtobuy-nav-label {
    margin-top: 6px;
    font-size: 14px;
    color: #594545;
}

.howtobuy-content {
    width: 700px;
}

.howtobuy-panel {
    height: 520px;
    background: #dadada;
    border: 1px solid #a8a8a8;
    border-radius: 14px;
    box-shadow: 5px 5px 15px rgba(88, 88, 88, 0.25);
    overflow: hidden;
}

.howtobuy-scroll {
    height: 100%;
    padding: 18px 20px;
    color: #6d6d6d;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 22px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.howtobuy-title {
    margin: 0 0 8px;
    font-size: 18px;
    color: #591919;
    scroll-margin-top: 12px;
}

.howtobuy-scroll p {
    margin: 0 0 12px;
}

.howtobuy-scroll p:last-child {
    margin-bottom: 0;
}

.howtobuy-scroll a {
    color: #6d6d6d;
    text-decoration: none !important;
    border-bottom: none !important;
}

.howtobuy-scroll a:hover {
    color: #591919;
    text-decoration: none !important;
    border-bottom: none !important;
}

.howtobuy-scroll a:visited,
.howtobuy-scroll a:active,
.howtobuy-scroll a:focus {
    text-decoration: none !important;
    border-bottom: none !important;
}

.howtobuy-paypal-link {
    color: #591919;
    font-weight: 700;
    text-decoration: none !important;
    border-bottom: none !important;
}

.howtobuy-paypal-link:hover {
    color: #591919;
    text-decoration: none !important;
    border-bottom: none !important;
}

@media (min-width: 1200px) and (max-height: 768px) {

    .howtobuy-card {
        margin-top: 175px;
    }
}

@media (min-width: 1200px)and (max-height: 668px) {

    .howtobuy-card {
        margin-top: 0px;
    }
}


@media (min-width: 1024px) and (max-width: 1199px) {
    .howtobuy-card {
        width: 900px;
        height: 600px;
        gap: 36px;
        padding: 22px;
    }

    .howtobuy-nav {
        width: 180px;
    }

    .howtobuy-nav-item {
        height: 86px;
    }

    .howtobuy-nav-icon i {
        font-size: 28px;
    }

    .howtobuy-nav-label {
        font-size: 13px;
    }

    .howtobuy-content {
        width: 640px;
    }

    .howtobuy-panel {
        height: 500px;
    }

    .howtobuy-scroll {
        font-size: 14px;
        line-height: 22px;
    }
}

@media (min-width: 1024px) and (max-width: 1199px) and (max-height: 768px) {

    .howtobuy-card {
        margin-top: 175px;
    }
}

@media (min-width: 1024px) and (max-width: 1199px) and (max-height: 668px) {

    .howtobuy-card {
        margin-top: 0px;
    }
}



@media (min-width: 800px) and (max-width: 1023px) {
    .howtobuy-card {
        width: 720px;
        height: 620px;
        gap: 40px;
        padding: 20px;
    }

    .howtobuy-nav {
        width: 160px;
    }

    .howtobuy-nav-item {
        height: 84px;
    }

    .howtobuy-nav-icon i {
        font-size: 26px;
    }

    .howtobuy-nav-label {
        font-size: 12px;
    }

    .howtobuy-content {
        width: 480px;
    }

    .howtobuy-panel {
        height: 520px;
    }

    .howtobuy-scroll {
        font-size: 13px;
        line-height: 20px;
    }
}

@media (min-width: 800px) and (max-width: 1023px) and (max-height: 779px) {
    .howtobuy-card {
        margin-top: 175px;
    }
}

@media (min-width: 800px) and (max-width: 1023px) and (max-height: 668px) {
    .howtobuy-card {
        margin-top: 0px;
    }
}



@media (min-width: 600px) and (max-width: 799px) {
    .howtobuy-card {
        width: 560px;
        height: 720px;
        gap: 18px;
        padding: 18px;
        flex-direction: column;
        align-items: center;
    }

    .howtobuy-nav {
        width: 524px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .howtobuy-nav-item {
        width: 120px;
        height: 84px;
    }

    .howtobuy-nav-icon i {
        font-size: 26px;
    }

    .howtobuy-content {
        width: 524px;
    }

    .howtobuy-panel {
        height: 500px;
    }

    .howtobuy-scroll {
        font-size: 13px;
        line-height: 20px;
    }
}

@media (min-width: 600px) and (max-width: 799px) and (max-height: 768px) {
    .howtobuy-card {
        margin-top: 175px;
    }
}

@media (min-width: 390px) and (max-width: 599px) {
    .howtobuy-card {
        width: 360px;
        height: 900px;
        gap: 14px;
        padding: 14px;
        padding-bottom: 40px;
        flex-direction: column;
        align-items: center;
        margin-top: -15px;
    }

    .howtobuy-nav {
        width: 324px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .howtobuy-nav-item {
        width: 130px;
        height: 72px;
    }

    .howtobuy-nav-icon i {
        font-size: 22px;
    }

    .howtobuy-nav-label {
        font-size: 11px;
    }

    .howtobuy-content {
        width: 324px;
    }

    .howtobuy-panel {
        height: 600px;
    }

    .howtobuy-scroll {
        font-size: 12px;
        line-height: 18px;
    }

    .howtobuy-title {
        font-size: 16px;
    }
}

@media (max-width: 389px) {
    .about-page main {
        padding-top: 200px;
    }

    .howtobuy-section {
        padding-top: 0;
    }

    .howtobuy-card {
        width: 320px;
        height: 880px;
        gap: 12px;
        padding: 12px;
        padding-bottom: 36px;
        flex-direction: column;
        align-items: center;
        margin-top: 0;
    }

    .howtobuy-nav {
        width: 292px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .howtobuy-nav-item {
        width: 120px;
        height: 68px;
    }

    .howtobuy-nav-icon i {
        font-size: 20px;
    }

    .howtobuy-nav-label {
        font-size: 11px;
    }

    .howtobuy-content {
        width: 292px;
    }

    .howtobuy-panel {
        height: 600px;
    }

    .howtobuy-scroll {
        font-size: 12px;
        line-height: 18px;
    }

    .howtobuy-title {
        font-size: 15px;
    }

    .header-text {
        max-width: 60%;
    }

    .header-text h1 {
        font-size: 1rem;
    }

    .header-text .subtitle {
        font-size: 0.48rem;
    }

    .social-icons {
        gap: 8px;
        right: 12px;
        bottom: 12px;
    }

    .social-icons a {
        font-size: 18px;
    }
}
