/* server.html page-only styles */
:root {
    --server-primary: #b23a3a;
    --server-primary-dark: #8f2e2e;
    --server-accent: #d08d8d;
    --server-accent-soft: #f7eded;
    --server-text-main: #1b2430;
    --server-text-sub: #5b6574;
    --server-line: #dfe7f3;
    --server-card-bg: #f8fafc;
    --server-radius: 22px;
    --server-radius-pill: 999px;
    --server-shadow-sm: 0 10px 28px rgba(20, 39, 78, 0.06);
    --server-shadow-md: 0 18px 38px rgba(20, 39, 78, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--server-text-main);
    background: #fff;
    word-break: keep-all;
}

/* Banner */
.banner_area {
    position: relative;
}

.banner_area .banner_inner {
    background: linear-gradient(
        135deg,
        rgba(20, 39, 78, 0.88),
        rgba(31, 60, 136, 0.78)
    );
}

.banner_area .banner_inner .banner_content {
    margin-top: 85px;
}

.banner_area .section-head-square {
    width: 200px;
    padding: 3rem 0 3rem 3rem;
}

.banner_area .section-head-square > .head-title,
.banner_area .banner_inner .banner_content h2,
.banner_area .head-title {
    width: 640px;
    margin-bottom: 0;
    color: #fff;
    font-size: 28px !important;
    font-weight: 700;
    line-height: 1.45 !important;
    letter-spacing: -0.2px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

/* Main section */
.server-list-area {
    padding: 108px 0 120px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

.server-list-area .container {
    max-width: 1320px;
}

.server-intro {
    margin: 0 auto 54px;
    text-align: center;
}

.server-intro .section-title {
    margin: 0;
    color: #14274e;
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.6px;
}

.server-intro .section-line {
    width: 56px;
    height: 4px;
    margin: 18px auto 0;
    border-radius: var(--server-radius-pill);
    background: linear-gradient(
        90deg,
        var(--server-primary),
        var(--server-accent)
    );
}

/* Storage-style cards */
.server_category_row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    width: 100%;
}

.server_category_col {
    display: flex;
    width: 100%;
}

.server_category_card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 520px;
    padding: 34px 34px 30px;
    overflow: hidden;
    border: 1px solid #dbe5f1;
    border-radius: var(--server-radius);
    background: var(--server-card-bg);
    box-shadow: var(--server-shadow-sm);
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease;
}

.server_category_card::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #b23a3a, #d08d8d);
    content: "";
}

.server_category_card:hover {
    transform: translateY(-6px);
    border-color: rgba(178, 58, 58, 0.24);
    box-shadow: var(--server-shadow-md);
}

.server_category_title {
    position: relative;
    display: inline-block;
    align-self: flex-start;
    margin: 0 0 18px;
    color: #111;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.8px;
}

.server_category_title::after {
    display: block;
    width: 40px;
    height: 3px;
    margin-top: 10px;
    border-radius: 2px;
    background: linear-gradient(
        90deg,
        var(--server-primary),
        var(--server-accent)
    );
    content: "";
}

.server_category_desc {
    min-height: 76px;
    margin: 0 0 26px;
    color: var(--server-text-sub);
    font-size: 14px;
    line-height: 1.75;
}

.server_product_list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.server_product_list li {
    margin-bottom: 14px;
}

.server_product_list li:last-child {
    margin-bottom: 0;
}

.server_product_link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 16px;
    border: 1px solid #dfe7f3;
    border-radius: 14px;
    background: #fff;
    color: inherit;
    text-decoration: none !important;
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease;
}

.server_product_link:hover,
.server_product_link:focus {
    transform: translateX(4px);
    border-color: rgba(178, 58, 58, 0.28);
    background: var(--server-accent-soft);
    box-shadow: 0 8px 18px rgba(178, 58, 58, 0.08);
}

.server_product_info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.server_product_name {
    color: var(--server-primary-dark);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.2px;
}

.server_product_desc {
    color: #7a7f8c;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.server_product_arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--server-accent);
    font-size: 18px;
    line-height: 1;
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.22s ease;
}

.server_product_link:hover .server_product_name,
.server_product_link:focus .server_product_name,
.server_product_link:hover .server_product_desc,
.server_product_link:focus .server_product_desc {
    color: var(--server-primary);
}

.server_product_link:hover .server_product_arrow,
.server_product_link:focus .server_product_arrow {
    opacity: 1;
    transform: translateX(0);
}

.server_bottom_glow {
    position: absolute;
    bottom: 12px;
    left: 50%;
    width: 120px;
    height: 16px;
    transform: translateX(-50%);
    background: radial-gradient(
        circle,
        rgba(214, 222, 235, 0.9) 0%,
        rgba(214, 222, 235, 0) 72%
    );
    pointer-events: none;
}

/* Modal */
.server_modal .modal-dialog {
    max-width: 920px;
}

.server_modal .modal-content {
    padding: 24px;
    overflow: hidden;
    border: 1px solid var(--server-line);
    border-radius: 24px;
    box-shadow: 0 22px 50px rgba(20, 39, 78, 0.18);
}

.server_modal_close {
    position: absolute;
    top: 14px;
    right: 18px;
    z-index: 10;
    border: 0;
    background: transparent;
    color: #777;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

.server_modal_close:hover {
    color: var(--server-primary);
}

.server_modal_title {
    margin-bottom: 24px;
    color: #14274e;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.35;
}

.server_modal_list {
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
}

.server_modal_list li {
    position: relative;
    margin-bottom: 14px;
    padding-left: 20px;
    color: #555;
    font-size: 16px;
    line-height: 1.9;
}

.server_modal_list li::before {
    position: absolute;
    top: 12px;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--server-accent);
    content: "";
}

.server_modal_btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.server_main_btn,
.server_sub_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    padding: 12px 22px;
    border-radius: var(--server-radius-pill);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: 0.25s;
}

.server_main_btn {
    background: linear-gradient(
        135deg,
        var(--server-primary),
        var(--server-accent)
    );
    box-shadow: 0 8px 18px rgba(178, 58, 58, 0.24);
    color: #fff !important;
}

.server_main_btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(
        135deg,
        var(--server-primary-dark),
        var(--server-primary)
    );
}

.server_sub_btn {
    border: 1px solid var(--server-line);
    background: #fff;
    color: var(--server-primary-dark) !important;
}

.server_sub_btn:hover {
    transform: translateY(-2px);
    background: var(--server-accent-soft);
}

/* Responsive */
@media (max-width: 991px) {
    .banner_area .section-head-square > .head-title,
    .banner_area .banner_inner .banner_content h2,
    .banner_area .head-title {
        width: 100%;
        font-size: 24px !important;
    }

    .server-list-area {
        padding: 82px 0 90px;
    }

    .server_category_row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .server_category_card {
        min-height: 500px;
        padding: 30px 26px;
    }
}

@media (max-width: 767px) {
    .banner_area .section-head-square {
        width: 160px;
        margin: 0 auto;
        padding: 2rem 0 2rem 2rem;
    }

    .banner_area .section-head-square > .head-title,
    .banner_area .banner_inner .banner_content h2,
    .banner_area .head-title {
        width: 100%;
        font-size: 20px !important;
        line-height: 1.5 !important;
    }

    .server-list-area {
        padding: 64px 0 72px;
    }

    .server-intro {
        margin-bottom: 40px;
    }

    .server-intro .section-title {
        font-size: 30px;
    }

    .server_category_row {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .server_category_card {
        min-height: auto;
        padding: 24px 20px 28px;
        border-radius: 18px;
    }

    .server_category_title {
        margin-bottom: 16px;
        font-size: 14px;
    }

    .server_category_desc {
        min-height: auto;
        margin-bottom: 20px;
    }

    .server_product_link {
        padding: 14px;
        border-radius: 12px;
    }

    .server_product_name {
        font-size: 18px;
    }

    .server_product_desc {
        font-size: 13px;
    }

    .server_product_arrow {
        opacity: 1;
        transform: translateX(0);
    }

    .server_bottom_glow {
        display: none;
    }

    .server_modal .modal-content {
        padding: 18px;
    }

    .server_modal_title {
        margin-top: 8px;
        font-size: 23px;
    }

    .server_modal_btns {
        flex-direction: column;
    }

    .server_modal_btns a {
        width: 100%;
    }
}
