﻿/* ================================================
   K-HUMUS Website Styles
   ================================================ */

/* ---- CSS Variables ---- */
:root {
    --primary: #0d2137;
    --primary-dark: #060f1e;
    --primary-light: #1a3a6e;
    --accent: #c9a227;
    --accent-light: #e5c84a;
    --text-dark: #1a1a2e;
    --text-mid: #555566;
    --text-light: #888899;
    --bg-light: #f0f4f8;
    --bg-white: #ffffff;
    --border: #dde3ea;
}

/* ---- Base ---- */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--text-dark);
    background: var(--bg-white);
    margin: 0;
    padding: 0;
}

body.main-page #main {
    padding-top: 0;
}

#main {
    padding-top: var(--header-h);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
}

address {
    font-style: normal;
}

.container-xl {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
}

.hero-slides {
    height: 100%;
}

.hero-slide {
    height: 100vh;
    min-height: 600px;
    position: relative;
    background-size: cover;
    background-position: center;
}

.hero-slide-1 {
    background-image: linear-gradient(135deg, #060f1e 0%, #0d2137 40%, #1a3a6e 100%);
}

.hero-slide-2 {
    background-image: linear-gradient(135deg, #0d2137 0%, #1a3a6e 50%, #0a2040 100%);
}

.hero-slide-3 {
    background-image: linear-gradient(135deg, #0d1a30 0%, #c9a227 50%, #0d2137 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 0 80px;
    max-width: 1400px;
    margin: 0 auto;
    left: 0;
    right: 0;
}

.hero-text {
    color: #fff;
    max-width: 700px;
}

.hero-sub {
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0.85;
}

.hero-title {
    font-size: clamp(38px, 5vw, 62px);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 24px;
}

.hero-desc {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 36px;
    background: var(--accent-light);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    border-radius: 2px;
    transition: background 0.3s, transform 0.2s;
}

.hero-btn:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

/* Hero Swiper Custom */
.hero-pagination {
    bottom: 40px !important;
}

.hero-pagination .swiper-pagination-bullet {
    width: 40px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: background 0.3s;
}

.hero-pagination .swiper-pagination-bullet-active {
    background: #fff;
}

.hero-prev,
.hero-next {
    color: rgba(255, 255, 255, 0.7) !important;
    transition: color 0.2s !important;
}

.hero-prev:hover,
.hero-next:hover {
    color: #fff !important;
}

.hero-scroll-down {
    position: absolute;
    bottom: 40px;
    right: 80px;
    z-index: 10;
}

.scroll-down-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: scrollBounce 2s ease infinite;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

/* ================================================
   NEWS SECTION
   ================================================ */
.news-section {
    padding: 96px 0;
    background: var(--bg-light);
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.section-tag {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 3px;
    text-transform: uppercase;
    border-left: 3px solid var(--primary);
    padding-left: 12px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    color: var(--text-dark);
}

.section-more {
    margin-left: auto;
    font-size: 13px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

.section-more:hover {
    gap: 10px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.news-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card--linked {
    position: relative;
}

.news-card-link {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.news-thumb {
    height: 300px;
    background-size: cover;
    background-position: center;
}

.news-thumb-1 {
    background-image: url('https://cdn.newstopkorea.com/news/photo/202601/42740_43045_1346.png');
}

.news-thumb-2 {
    background-image: url('/images/news/news2.png');
}

.news-thumb-3 {
    background-image: url('/images/news/news3.png');
}

.news-body {
    padding: 24px;
}

.news-category {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid var(--primary);
    padding: 3px 8px;
    border-radius: 2px;
    display: inline-block;
    margin-bottom: 12px;
}

.news-card-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 10px;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-date {
    font-size: 12px;
    color: var(--text-light);
}

/* ================================================
   BUSINESS SECTION
   ================================================ */
.business-section {
    padding: 96px 0 196px;
    background: var(--primary-dark);
}

.section-header-light .section-tag {
    color: rgba(255, 255, 255, 0.7);
    border-left-color: rgba(255, 255, 255, 0.5);
}

.section-header-light .section-title {
    color: #fff;
}

.section-desc {
    width: 100%;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
}

.business-slider {
    margin-top: 50px;
}

.biz-slide {
    display: flex;
    min-height: 500px;
}

.biz-img {
    width: 55%;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.biz-img-1 {
    background-image: url('/images/main/core1.png');
}

.biz-img-2 {
    background-image: url('/images/main/core2.png');
}

.biz-img-3 {
    background-image: url('/images/main/core3.png');
}

.biz-img-4 {
    background-image: url('/images/main/core4.png');
}

.biz-img-5 {
    background-image: url('/images/main/core5.png');
}

.biz-content {
    flex: 1;
    padding: 60px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.biz-number {
    font-size: 64px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
    line-height: 1;
    margin-bottom: 16px;
}

.biz-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #fff;
}

.biz-desc {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 32px;
}

.biz-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-light);
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid var(--accent-light);
    padding-bottom: 4px;
    transition: gap 0.2s;
    width: fit-content;
}

.biz-link:hover {
    gap: 12px;
    color: var(--accent-light);
}

.biz-prev,
.biz-next {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* ================================================
   CTA SECTION
   ================================================ */
.cta-section {}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 280px;
}

.cta-block {
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 50px 60px;
    overflow: hidden;
    transition: all 0.3s;
}

.cta-esg {
    background: linear-gradient(135deg, #0d2137, #1a3a6e);
}

.cta-ir {
    background: linear-gradient(135deg, #1a1a2e, #c9a227);
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    transition: background 0.3s;
}

.cta-block:hover .cta-overlay {
    background: rgba(0, 0, 0, 0.1);
}

.cta-text {
    position: relative;
    z-index: 1;
    color: #fff;
}

.cta-text h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
}

.cta-text p {
    font-size: 15px;
    opacity: 0.85;
    margin: 0 0 16px;
}

.cta-arrow {
    display: inline-flex;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, border-color 0.3s;
}

.cta-block:hover .cta-arrow {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

/* Scroll Top Button */
.btn-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 500;
}

.btn-top.show {
    opacity: 1;
    transform: translateY(0);
}

.btn-top:hover {
    background: var(--primary-dark);
}

/* ================================================
   SUB PAGE HEADER
   ================================================ */
.sub-page-header {
    position: relative;
    height: 280px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.sub-header-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.sub-header-content {
    position: relative;
    z-index: 1;
    padding-top: 20px;
}

.sub-page-title {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
}

.sub-page-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.breadcrumb-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 0;
    z-index: 1;
}

.breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
}

.breadcrumb-list li a {
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.2s;
}

.breadcrumb-list li a:hover {
    color: #fff;
}

.breadcrumb-list li:not(:last-child)::after {
    content: "/";
    margin: 0 10px;
    opacity: 0.4;
}

/* ================================================
   SUB CONTENT
   ================================================ */
.sub-content {
    padding: 80px 0 100px;
}

.content-title {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.content-title strong {
    color: var(--primary);
}

.content-desc {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-mid);
    margin-bottom: 60px;
}

.section-subtitle {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    padding-bottom: 16px;
    border-bottom: 2px solid var(--primary);
    margin-bottom: 36px;
    display: inline-block;
}

/* Shared section tabs (About/Business/ESG/IR/PR) */
.section-tab-wrap {
    margin-top: 16px;
    margin-bottom: 34px;
}

.section-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid var(--border);
}

.section-tabs li {
    list-style: none;
}

.section-tab-link {
    display: block;
    padding: 16px 34px;
    min-width: 140px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.section-tab-link:hover {
    color: var(--primary);
    background: rgba(0, 0, 0, 0.02);
}

.section-tab-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Force shared section tabs visual consistency */
.section-tab-wrap .section-tabs {
    display: inline-flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}

.section-tab-wrap .section-tab-link {
    display: block !important;
    text-decoration: none !important;
    cursor: pointer;
}

/* ================================================
   ANIMATION
   ================================================ */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.swiper-slide-active .animate-fade-up {
    opacity: 1;
    transform: translateY(0);
}

.swiper-slide-active .delay-1 {
    transition-delay: 0.2s;
}

.swiper-slide-active .delay-2 {
    transition-delay: 0.4s;
}

.swiper-slide-active .delay-3 {
    transition-delay: 0.6s;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1200px) {
    .container-xl {
        padding: 0 24px;
    }

    .news-grid {
        grid-template-columns: 1fr 1fr;
    }

    .biz-slide {
        flex-direction: column;
        min-height: auto;
    }

    .biz-img {
        width: 100%;
        height: 300px;
    }

    .biz-content {
        padding: 40px 34px;
        border-left: none;
        border-top: 1px solid #e7eeea;
    }

}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .cta-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 0 24px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-scroll-down {
        right: 24px;
    }

    .sub-page-title {
        font-size: 28px;
    }

    .sub-content {
        padding: 50px 0 70px;
    }

    .business-section {
        padding: 74px 0 130px;
    }

    .biz-img {
        height: 230px;
    }

    .biz-content {
        padding: 30px 22px;
    }

    .biz-title {
        font-size: 22px;
        margin-bottom: 14px;
    }

    .biz-desc {
        font-size: 14px;
        margin-bottom: 22px;
    }

    .biz-prev,
    .biz-next {
        display: flex !important;
        width: 38px !important;
        height: 38px !important;
        margin-top: -19px !important;
    }

    .biz-prev::after,
    .biz-next::after {
        font-size: 14px !important;
        font-weight: 700;
    }

}

/* ===== White Theme Content Tuning ===== */
:root {
    --primary: #003478;
    --primary-dark: #003478;
    --primary-light: #003478;
    --accent: #003478;
    --accent-light: #003478;
    --text-dark: #1f2a26;
    --text-mid: #54615d;
    --text-light: #7d8884;
    --bg-light: #f6f8f9;
    --border: #e3e9e6;
}

.hero-slide-1 {
    background-image: url('/images/hero/hero1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide-2 {
    background-image: url('/images/hero/hero2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide-3 {
    background-image: url('/images/hero/hero3.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    background: linear-gradient(100deg, rgba(0, 14, 24, 0.84) 0%, rgba(0, 14, 24, 0.68) 56%, rgba(0, 14, 24, 0.46) 100%);
}

.hero-text,
.hero-sub,
.hero-title,
.hero-desc {
    color: #ffffff;
}

.hero-sub {
    opacity: 0.88;
}

.hero-desc {
    opacity: 0.9;
}

.hero-btn {
    background: #111111;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.32);
}

.hero-btn:hover {
    background: #2a2a2a;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-pagination {
    bottom: 72px !important;
    z-index: 12;
}

.hero-pagination .swiper-pagination-bullet {
    width: 44px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
}

.hero-pagination .swiper-pagination-bullet-active {
    background: var(--primary);
}

.hero-prev,
.hero-next,
.scroll-down-btn {
    color: #ffffff !important;
}

.hero-scroll-down {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    bottom: 28px;
}

.news-section,
.business-section {
    background: #ffffff;
}

.section-header-light .section-tag {
    color: var(--primary);
    border-left-color: var(--primary);
}

.section-header-light .section-title,
.section-desc {
    color: var(--text-dark);
}

.biz-content {
    background: #ffffff;
    color: var(--text-dark);
    border-left: 1px solid #e7eeea;
}

.biz-title,
.biz-link,
.biz-link:hover {
    color: var(--primary);
}

.biz-number {
    color: rgba(31, 42, 38, 0.12);
}

.biz-desc {
    color: var(--text-mid);
}

.biz-prev,
.biz-next {
    color: var(--primary) !important;
}

.cta-esg {
    background: #ffffff;
    border: 1px solid #e6eaee;
}

.cta-ir {
    background: #ffffff;
    border: 1px solid #e6eaee;
}

.cta-overlay {
    background: transparent;
}

.cta-block:hover .cta-overlay {
    background: transparent;
}

.cta-text {
    color: #0f2749;
}

.cta-arrow {
    border-color: rgba(0, 52, 120, 0.32);
    color: #003478;
    background: rgba(255, 255, 255, 0.32);
    transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.cta-block:hover .cta-arrow {
    background: #003478;
    border-color: #003478;
    color: #ffffff;
}

.sub-page-header {
    height: 230px;
    background: linear-gradient(180deg, #fcfdfd 0%, #f2f6f5 100%);
    border-bottom: 1px solid #e6ede9;
}

.sub-header-overlay {
    background: none;
}

.sub-page-title {
    color: var(--text-dark);
}

.sub-page-desc,
.breadcrumb-list li,
.breadcrumb-list li a {
    color: var(--text-mid);
}

.breadcrumb-wrap {
    border-top: 1px solid #dde7e2;
}

.breadcrumb-list li a:hover {
    color: var(--primary);
}

.affiliate-section {
    padding: 130px 0;
    background: #f8fbfa;
    border-top: 1px solid #e4ece8;
    border-bottom: 1px solid #e4ece8;
}

.affiliate-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.affiliate-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    background: #ffffff;
    border: 1px solid #d5e1db;
    padding: 36px 38px 32px;
    border-radius: 6px;
    min-height: 244px;
    box-shadow: 0 8px 24px rgba(18, 38, 31, 0.06);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out, background 0.2s ease-out;
}

.affiliate-card:hover {
    transform: translateY(-3px);
    border-color: #dfe8e3;
    box-shadow: 0 6px 20px rgba(18, 38, 31, 0.05);
    background: #ffffff;
}

.affiliate-logo-wrap {
    height: 60px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
}

.affiliate-logo {
    max-height: 60px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
}

.affiliate-card h3 {
    margin: 0 0 14px;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.1px;
}

.affiliate-card p {
    margin: 0 0 18px;
    color: var(--text-mid);
    line-height: 1.75;
    font-size: 15px;
}

.affiliate-visit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-top: auto;
    margin-left: auto;
    align-self: flex-end;
    padding: 0 0 8px;
    border-bottom: 1px solid #d2ded8;
    color: var(--primary);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.1px;
    line-height: 1;
    transition: color 0.2s ease, border-color 0.2s ease, gap 0.2s ease;
}

.affiliate-visit i {
    font-size: 13px;
}

.affiliate-card:hover .affiliate-visit {
    border-color: var(--primary);
    color: var(--primary);
    gap: 12px;
}

.affiliate-section-page {
    margin-top: 20px;
    padding: 0;
    background: transparent;
    border: none;
}

@media (max-width: 768px) {
    .hero-scroll-down {
        bottom: 18px;
    }

    .scroll-down-btn {
        font-size: 10px;
        gap: 4px;
    }

    .hero-pagination {
        bottom: 52px !important;
    }

    .hero-pagination .swiper-pagination-bullet {
        width: 28px;
    }

    .affiliate-grid {
        grid-template-columns: 1fr;
    }

    .affiliate-card {
        min-height: auto;
        padding: 28px 22px 24px;
    }
}
