/* =========================
   TOPBAR
========================= */
.topbar {
    background: #fff;
    border-bottom: 1px solid #ddd;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    font-size: 30px;
    font-weight: bold;
    color: #0d6efd;
}

.top-links {
    display: flex;
    gap: 14px;
    align-items: center;
    font-size: 14px;
    color: #555;
}


/* =========================
   HERO (핵심)
========================= */
.hero {
    position: relative;
    height: 78vh;
    min-height: 620px;
    background: url('https://img.kualatalk.co.kr/images/hero.jpg') center center / cover no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.42);
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: center;
    height: 100%;
    color: #fff;
}

.hero-left h1 {
    font-size: 54px;
    margin: 0 0 16px 0;
    line-height: 1.2;
    font-weight: 800;
}

.hero-left p {
    font-size: 18px;
    margin: 0 0 28px 0;
    color: rgba(255,255,255,0.92);
}


/* =========================
   SEARCH
========================= */
.search-box {
    display: flex;
    gap: 10px;
    max-width: 650px;
}

.search-box input {
    flex: 1;
    height: 52px;
    border: none;
    border-radius: 8px;
    padding: 0 16px;
    font-size: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.search-box button {
    width: 120px;
    border: none;
    border-radius: 8px;
    background: #0d6efd;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
}


/* =========================
   HERO BUTTONS
========================= */
.hero-btns {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}


/* =========================
   HERO CARD
========================= */
.hero-card {
    background: rgba(255,255,255,0.92);
    color: #333;
    border-radius: 14px;
    padding: 24px;
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.hero-card h3 {
    margin: 0 0 12px 0;
    font-size: 22px;
}

.hero-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 18px;
}


/* =========================
   MAIN GRID
========================= */
.main-grid {
    display: grid;
    grid-template-columns: 1.4fr 1.4fr 1fr;
    gap: 20px;
    margin: 24px 0;
}


/* =========================
   SECTION
========================= */
.section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.section-title-row h3 {
    margin: 0;
    font-size: 20px;
}

.section-title-row a {
    font-size: 13px;
    color: #0d6efd;
}


/* =========================
   LIST
========================= */
.list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.list li:last-child {
    border-bottom: none;
}


/* =========================
   INFO BOX
========================= */
.info-box {
    display: grid;
    gap: 12px;
}

.mini-card {
    padding: 14px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fafafa;
}

.mini-card strong {
    display: block;
    margin-bottom: 6px;
}


/* =========================
   AD ROW
========================= */
.ad-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin: 24px 0;
}

.ad-box {
    background: #fff;
    border: 1px dashed #bbb;
    border-radius: 10px;
    min-height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #888;
    font-size: 14px;
}


/* =========================
   FOOTER
========================= */
.footer {
    background: #fff;
    border-top: 1px solid #ddd;
    padding: 24px 0;
    color: #666;
    font-size: 14px;
    margin-top: 30px;
}


/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
    .hero-inner,
    .main-grid,
    .ad-row,
    .mega-grid {
        grid-template-columns: 1fr;
    }

    .main-menu {
        flex-direction: column;
    }

    .main-menu > li > a {
        text-align: left;
    }

    .hero {
        height: auto;
        min-height: 0;
        padding: 80px 0;
    }

    .hero-left h1 {
        font-size: 38px;
    }

    .search-box {
        flex-direction: column;
    }

    .search-box button {
        width: 100%;
        height: 48px;
    }

    .mega-menu {
        position: static;
    }
}