@import url("https://fonts.googleapis.com/css?family=Nanum+Square:300,400,500,700,800|Roboto:300,400,500,700");
@import url("https://cdn.jsdelivr.net/gh/moonspam/NanumSquare@1.0/nanumsquare.css");

/* =========================================================
   BAOBAB RENEWAL - COMMON STYLE
   - Header rules are intentionally excluded (use header-common.css)
   - Footer rules are intentionally excluded (use footer-common.css)
   - Common banner / title / card / button / section layout only
   ========================================================= */

:root {
    --primary: #1f3c88;
    --primary-dark: #14274e;
    --accent: #4a90e2;
    --accent-soft: #eaf2ff;
    --text-main: #1b2430;
    --text-sub: #5b6574;
    --white: #ffffff;
    --line: #dfe7f3;
    --bg-soft: #f6f8fc;
    --bg-card: rgba(255, 255, 255, 0.96);
    --shadow-sm: 0 10px 25px rgba(20, 39, 78, 0.08);
    --shadow-md: 0 18px 40px rgba(20, 39, 78, 0.12);
    --shadow-lg: 0 22px 48px rgba(20, 39, 78, 0.14);
    --radius-sm: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-pill: 999px;
    --banner-overlay-start: rgba(20, 39, 78, 0.88);
    --banner-overlay-end: rgba(31, 60, 136, 0.78);
}

/* Optional theme helpers for pages with different accent colors */
body.theme-business {
    --primary: #355c7d;
    --primary-dark: #24384d;
    --accent: #5f88ad;
    --accent-soft: #edf4fa;
    --text-main: #1b2430;
    --text-sub: #5f6b7a;
    --line: #d9e2ec;
    --bg-soft: #f7f9fc;
    --bg-card: rgba(255, 255, 255, 0.96);
    --shadow-sm: 0 10px 25px rgba(36, 56, 77, 0.08);
    --shadow-md: 0 18px 40px rgba(36, 56, 77, 0.12);
}

body.theme-server {
    --primary: #b23a3a;
    --primary-dark: #8f2e2e;
    --accent: #d08d8d;
    --accent-soft: #f7eded;
    --text-main: #1f2937;
    --text-sub: #667085;
    --line: #eadede;
    --bg-soft: #fbf8f8;
    --bg-card: rgba(255, 255, 255, 0.98);
    --shadow-sm: 0 16px 36px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 20px 42px rgba(178, 58, 58, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.7;
    font-size: 16px;
    font-family: "NanumSquare", sans-serif;
    font-weight: 400;
    color: var(--text-sub);
    background: #fff;
    word-break: keep-all;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "NanumSquare", sans-serif;
    font-weight: 700;
    color: var(--text-main);
}

p {
    margin-bottom: 0;
}

a {
    text-decoration: none;
    transition: all 0.28s ease;
}

a:hover,
a:focus {
    text-decoration: none;
    outline: none;
}

button:focus {
    outline: none;
    box-shadow: none;
}

.list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.row.m0 {
    margin: 0;
}

.p_120 {
    padding-top: 70px;
    padding-bottom: 80px;
}

.pad_top {
    padding-top: 120px;
}

.mt-25 {
    margin-top: 25px;
}

.p0 {
    padding-left: 0;
    padding-right: 0;
}

@media (min-width: 1200px) {
    .container {
        max-width: 1170px;
    }
}

@media (min-width: 1620px) {
    .box_1620 {
        max-width: 1650px;
        margin: auto;
    }
}

/* =========================================================
   Banner
   ========================================================= */
.banner_area {
    position: relative;
    z-index: 1;
    min-height: 400px;
    background: #000;
}

.banner_area .banner_inner {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 400px;
    z-index: 1;
    background: linear-gradient(135deg, var(--banner-overlay-start), var(--banner-overlay-end));
}

.banner_area .banner_inner .overlay,
.banner_area .banner_inner .overlayB,
.banner_area .banner_inner .overlayC,
.banner_area .banner_inner .overlayD {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    height: 125%;
    z-index: -1;
    opacity: 0.5;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.banner_area .banner_inner .overlay {
    background-image: url(../img/banner/banner.jpg);
}

.banner_area .banner_inner .overlayB {
    background-image: url(../img/banner/banner2.jpg);
}

.banner_area .banner_inner .overlayC {
    background-image: url(../img/banner/banner3.jpg);
}

.banner_area .banner_inner .overlayD {
    background-image: url(../img/banner/banner4.jpg);
}

.banner_area .banner_inner .banner_content {
    margin-top: 85px;
}

.banner_area .head-title,
.banner_area .banner_inner .banner_content h2 {
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.3px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
    margin-bottom: 0;
}

.section-head-square {
    position: relative;
    padding: 3rem 0 3rem 3rem;
    border: 10px solid #fff;
    border-right: 0;
    width: 200px;
}

.section-head-square::before,
.section-head-square::after {
    content: "";
    position: absolute;
    right: 0;
    width: 10px;
    height: 2rem;
    background-color: #fff;
}

.section-head-square::before {
    top: 0;
}

.section-head-square::after {
    bottom: 0;
}

.section-head-square > .head-title {
    margin-bottom: 0;
    width: 640px;
}

.section-head-square > .head-title.text-center {
    text-align: left !important;
}

/* =========================================================
   Section / Content common blocks
   ========================================================= */
.portfolio_details_area,
.section-surface,
.server_intro_area,
.server_list_area {
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
}

.section-title,
h1.section-title {
    text-align: center;
    font-size: 38px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 12px;
    letter-spacing: -0.6px;
}

.section-line,
.title-line,
hr.title-line {
    border: none;
    height: 4px;
    width: 56px;
    margin: 18px auto 28px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: var(--radius-pill);
    opacity: 1;
}

.section-intro,
.section-desc,
.subheadline,
.aff-subtext {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 42px;
    color: var(--text-sub);
    line-height: 1.85;
    word-break: keep-all;
}

.content-card,
.aff-spec-card,
.storage_category_card,
.server_category_card {
    background: var(--bg-card);
    border: 1px solid color-mix(in srgb, var(--line) 85%, white 15%);
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.content-card::before,
.storage_category_card::before,
.server_category_card::before,
.aff-spec-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.content-card {
    padding: 44px 38px;
    margin-bottom: 28px;
}

.content-card h2 {
    font-size: 30px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 14px;
    text-align: center;
}

.business-summary {
    max-width: 920px;
    margin: 0 auto 36px;
    padding: 22px 24px;
    border-left: 6px solid var(--accent);
    border-radius: 0 16px 16px 0;
    background: color-mix(in srgb, var(--accent-soft) 65%, white 35%);
    color: var(--text-sub);
    line-height: 1.9;
}

/* =========================================================
   Generic feature / card layouts
   ========================================================= */
.feature_inner.row {
    display: flex;
    flex-wrap: wrap;
}

.feature_inner .col-lg-3,
.feature_inner .col-lg-4,
.feature_inner .col-lg-6 {
    display: flex;
    margin-bottom: 8px;
}

.feature_item,
.aff-card.card-modern,
.service-card,
.strength-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    padding: 34px 28px;
    background: var(--bg-card);
    border: 1px solid color-mix(in srgb, var(--line) 88%, white 12%);
    border-radius: var(--radius-lg);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    min-height: 300px;
    position: relative;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.feature_item::before,
.aff-card.card-modern::before,
.service-card::before,
.strength-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0.96;
}

.feature_item:hover,
.aff-card.card-modern:hover,
.service-card:hover,
.strength-card:hover,
.storage_category_card:hover,
.server_category_card:hover,
.content-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: color-mix(in srgb, var(--accent) 30%, white 70%);
}

.feature_item h4,
.aff-card h4,
.service-card h3,
.strength-card h4 {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 16px;
    padding-top: 4px;
    letter-spacing: -0.3px;
    line-height: 1.35;
}

.feature_item p,
.aff-card p,
.service-card p,
.strength-card p {
    font-size: 15px;
    color: var(--text-sub);
    line-height: 1.8;
    flex-grow: 1;
    margin-bottom: 0;
}

.service-grid,
.strength-cards,
.aff-cards,
.server_category_row,
.storage_category_row {
    display: grid;
    gap: 24px;
}

.aff-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 50px;
}

.service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 10px;
}

.strength-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.server_category_row,
.storage_category_row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-icon,
.service-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 10px 22px color-mix(in srgb, var(--primary) 20%, transparent 80%);
    overflow: hidden;
}

.service-icon img,
.service-icon-wrap img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

.service-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.service-list li,
.server_modal_list li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 8px;
    color: var(--text-sub);
    font-size: 14px;
    line-height: 1.75;
}

.service-list li::before,
.server_modal_list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* =========================================================
   Storage / server list helpers
   ========================================================= */
.storage_category_title,
.server_category_title,
.aff-spec-head h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}

.storage_category_title::after,
.server_category_title::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin-top: 9px;
    border-radius: 2px;
}

.storage_product_list,
.server_product_list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.storage_product_list li,
.server_product_list li {
    margin-bottom: 16px;
}

.storage_product_link,
.server_product_link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 18px;
    background: color-mix(in srgb, var(--bg-soft) 55%, white 45%);
    border: 1px solid color-mix(in srgb, var(--line) 70%, white 30%);
    text-decoration: none !important;
    transition: all 0.22s ease;
}

.storage_product_link:hover,
.server_product_link:hover,
.storage_product_link:focus,
.server_product_link:focus {
    background: var(--accent-soft);
    border-color: color-mix(in srgb, var(--accent) 25%, white 75%);
}

.storage_product_link .product_name,
.server_product_name {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
}

.storage_product_link .product_desc,
.server_product_desc {
    font-size: 14px;
    color: var(--primary-dark);
    font-weight: 600;
    line-height: 1.5;
}

.storage_product_link .product_arrow,
.server_product_arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 20px;
    line-height: 1;
    color: var(--primary);
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.22s ease;
    flex-shrink: 0;
}

.storage_product_link:hover .product_arrow,
.server_product_link:hover .server_product_arrow,
.storage_product_link:focus .product_arrow,
.server_product_link:focus .server_product_arrow {
    opacity: 1;
    transform: translateX(0);
}

.storage_bottom_glow,
.server_bottom_glow {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 18px;
    background: radial-gradient(circle, rgba(214, 222, 235, 0.72) 0%, rgba(214, 222, 235, 0) 72%);
    pointer-events: none;
}

/* =========================================================
   Buttons
   ========================================================= */
.main_btn,
.hero-btn,
.server_main_btn,
.server_sub_btn,
.card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 128px;
    padding: 12px 26px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
    line-height: normal;
    transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease, background 0.22s ease;
}

.main_btn,
.hero-btn.primary,
.server_main_btn {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff !important;
    border: none;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 24%, transparent 76%);
}

.main_btn:hover,
.hero-btn.primary:hover,
.server_main_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px color-mix(in srgb, var(--primary) 28%, transparent 72%);
    color: #fff !important;
    opacity: 0.98;
}

.hero-btn.secondary,
.server_sub_btn,
.back_btn {
    background: #fff;
    color: var(--primary-dark) !important;
    border: 1px solid color-mix(in srgb, var(--line) 85%, white 15%);
    box-shadow: 0 8px 18px rgba(20, 39, 78, 0.08);
}

.hero-btn.secondary:hover,
.server_sub_btn:hover,
.back_btn:hover {
    background: var(--accent-soft);
    transform: translateY(-2px);
}

.center-btn {
    display: inline-flex !important;
    margin: 24px auto 0 !important;
    text-align: center !important;
    float: none !important;
    align-self: center !important;
}

/* =========================================================
   Modern index helpers
   ========================================================= */
.hero-modern {
    position: relative;
    padding: 180px 0 110px;
    background: linear-gradient(135deg, #132544, #244a88);
    color: #fff;
}

.hero-title {
    font-size: 50px;
    line-height: 1.25;
    color: #fff;
    margin-bottom: 18px;
}

.hero-desc {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 34px;
}

.hero-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.hero-point {
    padding: 18px 20px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.08);
    border-radius: 18px;
    backdrop-filter: blur(8px);
}

.hero-point strong {
    display: block;
    color: #fff;
    margin-bottom: 6px;
}

.hero-point span {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

.section-block {
    padding: 90px 0;
}

.section-head-wrap {
    margin-bottom: 42px;
}

.section-label {
    display: inline-block;
    margin-bottom: 12px;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    background: var(--accent-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.info-panel,
.image-panel,
.highlight-panel,
.cta-box,
.footer-info-card,
.image-stack-card {
    border-radius: 24px;
    overflow: hidden;
}

.info-panel,
.highlight-panel,
.footer-info-card,
.cta-box {
    background: var(--bg-card);
    border: 1px solid color-mix(in srgb, var(--line) 85%, white 15%);
    box-shadow: var(--shadow-sm);
}

.info-panel,
.highlight-panel {
    padding: 34px 30px;
}

.image-panel img,
.image-stack-card img,
.business-visual img {
    width: 100%;
    display: block;
    border-radius: 20px;
    object-fit: cover;
}

.modern-list {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
}

.modern-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 10px;
    color: var(--text-sub);
}

.modern-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

/* =========================================================
   Responsive common rules
   ========================================================= */
@media (max-width: 1199px) {
    .aff-cards,
    .server_category_row,
    .storage_category_row,
    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .p_120 {
        padding-top: 60px;
        padding-bottom: 70px;
    }

    .banner_area .head-title,
    .banner_area .banner_inner .banner_content h2 {
        font-size: 26px;
        line-height: 1.5;
    }

    .section-title,
    h1.section-title {
        font-size: 28px;
    }

    .content-card {
        padding: 32px 20px;
    }

    .content-card h2 {
        font-size: 26px;
    }

    .feature_item,
    .aff-card.card-modern,
    .service-card,
    .strength-card {
        min-height: auto;
        padding: 28px 22px;
    }

    .feature_item h4,
    .aff-card h4,
    .service-card h3,
    .strength-card h4 {
        font-size: 22px;
    }

    .feature_item p,
    .aff-card p,
    .service-card p,
    .strength-card p {
        font-size: 14px;
        line-height: 1.75;
    }

    .hero-title {
        font-size: 38px;
    }

    .hero-points,
    .strength-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .section-head-square {
        margin: 0 auto;
        width: 160px;
        padding: 2rem 0 2rem 2rem;
    }

    .section-head-square > .head-title {
        width: auto;
        font-size: 20px;
    }

    .aff-cards,
    .service-grid,
    .server_category_row,
    .storage_category_row {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .hero-modern {
        padding: 150px 0 80px;
    }

    .hero-title {
        font-size: 30px;
    }

    .hero-desc {
        font-size: 15px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .hero-btn {
        width: 100%;
    }

    .section-block {
        padding: 70px 0;
    }

    .storage_product_link .product_name,
    .server_product_name {
        font-size: 18px;
    }

    .storage_product_link .product_desc,
    .server_product_desc {
        font-size: 13px;
    }

    .storage_product_link .product_arrow,
    .server_product_arrow,
    .storage_bottom_glow,
    .server_bottom_glow {
        opacity: 1;
        transform: translateX(0);
    }

    .storage_bottom_glow,
    .server_bottom_glow {
        display: none;
    }
}
