﻿@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

/* Reset & Variables */
:root {
    --primary-color: #0056b3;
    /* Adjust based on actual site blue */
    --secondary-color: #333;
    --text-color: #444;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --font-main: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    --transition: all 0.3s ease;
}

/* Enhanced Typography & Cleaning */
body,
h1,
h2,
h3,
h4,
h5,
h6,
input,
button,
textarea,
select,
a,
p,
span,
div,
li {
    font-family: var(--font-main);
    letter-spacing: -0.02em;
    /* Modern tight spacing */
}

p,
li,
.accordion-header,
h1,
h2,
h3,
h4 {
    word-break: keep-all;
    /* Prevent awkward word breaks for Korean */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.header_wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header_wrap.on,
.header_wrap.active {
    background: var(--white);
    border-bottom: 1px solid #ddd;
}

#header {
    position: relative;
    height: 80px;
    /* Base height */
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    position: relative;
    z-index: 1002;
    /* Above bg */
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.header_wrap.on .logo a,
.header_wrap.active .logo a {
    color: var(--secondary-color);
}

.gnb>ul {
    display: flex;
    height: 80px;
}

.gnb>ul>li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.gnb>ul>li>a {
    display: block;
    padding: 0 50px;
    font-size: 18px;
    font-weight: 500;
    color: var(--white);
    line-height: 80px;
    transition: color 0.3s;
}

.header_wrap.on .gnb>ul>li>a,
.header_wrap.active .gnb>ul>li>a {
    color: var(--secondary-color);
}

.gnb>ul>li:hover>a {
    color: var(--primary-color);
}

/* Submenu (gnb_sub) */
.gnb_sub {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    min-width: unset;
    /* Allow it to shrink to content width if needed, or keep 100% of parent LI? Let's use max-content centered */
    padding-top: 20px;
    display: none;
    /* Hidden by default */
    flex-direction: row;
    /* Horizontal */
    gap: 30px;
    /* Spacing between items */
    text-align: center;
    white-space: nowrap;
}

/* Show submenu only on hover of the specific LI item */
.gnb>ul>li:hover .gnb_sub,
.gnb>ul>li.active .gnb_sub {
    display: flex;
}

.gnb_sub li a {
    font-size: 14px;
    color: #666;
    display: block;
    padding: 5px 20px;
    white-space: nowrap;
}

.gnb_sub li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Full Width Background (gnb_bg) */
.gnb_bg {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--white);
    overflow: hidden;
    transition: height 0.3s ease;
    z-index: 1001;
    border-top: 1px solid #eee;
}

.header_wrap.on .gnb_bg {
    height: 70px;
    /* Reduced height for horizontal menu */
    border-bottom: 1px solid #ddd;
}

/* Hero Section (Slider) */
#hero {
    position: relative;
    height: 400px;
    margin-top: 0;
    /* Fixed: Removed margin so header sits on top */
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.slide.active {
    opacity: 1;
}

.slide .content {
    color: var(--white);
    z-index: 2;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.slide p {
    font-size: 20px;
    font-weight: 300;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.slider-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    font-size: 24px;
    padding: 15px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.slider-nav button:hover {
    background: rgba(255, 255, 255, 0.4);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--white);
    transform: scale(1.2);
}

/* Sections General */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    margin: 10px auto 0;
}

.section-header p {
    color: #666;
}

/* Solutions Grid */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.card-content p {
    font-size: 15px;
    color: #666;
    /* margin-bottom: 20px; */
    /* height: 48px; */
    /* Fixed height for alignment */
    overflow: hidden;
}

.btn-link {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-link:hover {
    text-decoration: underline;
}

/* About Section */
.bg-light {
    background-color: var(--light-bg);
}

.flex-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.text-block {
    flex: 1;
}

.image-block {
    flex: 1;
}

.image-block img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 5px 10px 30px rgba(0, 0, 0, 0.15);
}

.text-block h2 {
    font-size: 2px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.subtitle {
    font-size: 22px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.text-block .subtitle {
    font-size: 22px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.text-block p {
    margin-bottom: 30px;
    color: #555;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary:hover {
    background: #004494;
}

/* Footer */
#footer {
    background: #222;
    color: #aaa;
    padding: 50px 0 20px;
    font-size: 14px;
}

#footer .container {
    position: relative;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    font-size: 2px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.footer-info p {
    margin-bottom: 8px;
}

.copyright {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 13px;
}

#scrollToTop {
    position: absolute;
    bottom: 20px;
    right: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.privacy-content h2:first-child {
    margin-top: 0;
}

.privacy-content h3 {
    font-size: 18px;
    color: #444;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
}

.privacy-content p {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.8;
}

.privacy-content ul,
.privacy-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
    color: #666;
}

.privacy-content li {
    margin-bottom: 8px;
    list-style-type: disc;
}

.privacy-content blockquote {
    background: #f9f9f9;
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    margin: 20px 0;
}

/* Utility Classes for Layout */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.row.align-center {
    align-items: center;
}

.col {
    flex: 1;
    padding: 0 15px;
}

.col-30 {
    flex: 0 0 30%;
    max-width: 30%;
    padding: 0 15px;
}

.col-70 {
    flex: 0 0 70%;
    max-width: 70%;
    padding: 0 15px;
}

.col-20 {
    flex: 0 0 20%;
    max-width: 20%;
    padding: 0 15px;
}

.col-80 {
    flex: 0 0 80%;
    max-width: 80%;
    padding: 0 15px;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

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

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

.align-items-center {
    align-items: center;
}

/* Table Styles */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: #fff;
}

.table th,
.table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 700;
    color: var(--secondary-color);
}

.table-bordered {
    border: 1px solid #ddd;
}

.bg-info {
    background-color: #e9f7fe;
}

/* Feature Lists */
.feature-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.feature-list li i {
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--primary-color);
}


/* Logo Swap for Active Header */
.header_wrap.on .logo img,
.header_wrap.active .logo img {
    content: url('assets/images/logo.png');
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .gnb>ul>li>a {
        padding: 0 20px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {

    /* Header */
    #header {
        height: auto;
        padding: 10px 0;
    }

    #header .container {
        flex-direction: column;
        height: auto;
        gap: 15px;
    }

    .gnb>ul {
        height: auto;
        flex-wrap: wrap;
        justify-content: center;
    }

    .gnb>ul>li>a {
        padding: 10px 15px;
        line-height: normal;
        font-size: 15px;
    }

    .gnb_sub {
        display: none !important;
        /* Hide submenu on mobile for now to prevent clutter */
    }

    .header_wrap.on .gnb_bg,
    .gnb_bg {
        display: none;
    }

    /* Hero */
    #hero {
        height: 300px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
        padding: 0 20px;
    }

    /* Layout */
    .section {
        padding: 50px 0;
    }

    .section-header h2 {
        font-size: 22px;
    }

    .flex-container {
        flex-direction: column;
        gap: 30px;
    }

    .row {
        margin: 0;
    }

    .col,
    .col-20,
    .col-30,
    .col-70,
    .col-80 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
        padding: 0;
    }

    /* Grid */
    .grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Cards */
    .card-image {
        height: 180px;
    }

    /* Assessment Section (Modern) */
    .assessment-intro {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .migration-content {
        grid-template-columns: 1fr;
    }

    .migration-text {
        padding-right: 0;
    }

    /* Footer */
    .footer-content {
        text-align: center;
    }
}

/* ---------------------------------------------------------
   Mobile Hamburger Menu Styles (Moved from script.js)
   --------------------------------------------------------- */
/* Hamburger Button */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1003;
    padding: 10px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    /* Default white for transparent header */
    margin: 5px 0;
    transition: all 0.3s;
}

/* Change color when header is active (scrolled) or hovered */
.header_wrap.active .hamburger-btn span,
.header_wrap.on .hamburger-btn span {
    background-color: #333;
}

/* Show Hamburger on Mobile */
@media (max-width: 768px) {
    .hamburger-btn {
        display: block;
    }

    /* Adjust GNB for Mobile */
    .gnb {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden by default */
        width: 80%;
        /* Drawer width */
        height: 100vh;
        background: #fff;
        z-index: 1002;
        transition: right 0.3s ease-in-out;
        padding-top: 80px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .gnb.mobile-active {
        right: 0;
        /* Slide in */
    }

    .gnb>ul {
        flex-direction: column;
        height: auto;
        align-items: flex-start;
        /* Align left */
        width: 100%;
    }

    .gnb>ul>li {
        width: 100%;
        height: auto;
        display: block;
        border-bottom: 1px solid #f0f0f0;
    }

    .gnb>ul>li>a {
        padding: 15px 20px;
        color: #333 !important;
        /* Force dark text on mobile menu */
        font-size: 16px;
        width: 100%;
    }

    /* Submenu handling on mobile */
    .gnb_sub {
        display: none;
        position: static;
        width: 100%;
        transform: none;
        padding-top: 0;
        background: #f9f9f9;
        box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
        flex-direction: column;
        gap: 0;
        text-align: left;
        /* Always hide submenus on mobile */
    }

    /* Removed .active display rule to keep submenus hidden */
    /* .gnb > ul > li.active .gnb_sub {
        display: block !important;
    } */

    .gnb>ul>li.active .gnb_sub {
        display: flex;
    }

    .gnb_sub li a {
        font-size: 14px;
        padding: 10px 30px;
        /* Indent sub items */
    }

    /* Logo adjustment */
    .logo {
        z-index: 1003;
        /* Keep logo above menu if desired, or let menu cover it */
    }

    /* Overlay */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1001;
    }

    /* .menu-overlay.active {
        display: block;
    } */

    /* Hamburger Animation */
    .hamburger-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* =========================================
   Modern Footer Design
   ========================================= */
.footer-modern {
    background-color: #1a1a1a;
    color: #b0b0b0;
    font-size: 14px;
    padding-top: 60px;
    margin-top: 60px;
    line-height: 1.6;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

/* Footer Sections */
.footer-section h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: #337ab7;
}

.footer-brand p {
    margin-bottom: 15px;
}

/* Contact Info */
.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

.contact-item i {
    color: #337ab7;
    margin-right: 12px;
    margin-top: 5px;
}

/* Links */
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-links a::before {
    content: '\f054';
    /* fa-chevron-right */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    margin-right: 8px;
    opacity: 0.6;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

/* Bottom Bar */
.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 50px;
    padding: 20px 0;
    background-color: #111;
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-info {
    font-size: 13px;
}

.footer-legal a {
    color: #b0b0b0;
    text-decoration: none;
    margin-left: 20px;
    font-size: 13px;
}

.footer-legal a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Top Button */
.scroll-top-btn {
    width: 40px;
    height: 40px;
    background: #333;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.scroll-top-btn:hover {
    background: #337ab7;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-item {
        justify-content: center;
    }

    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal a {
        margin: 0 10px;
    }
}

/* History Timeline Styles */
.history-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('assets/images/����1.png');
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    margin-bottom: 60px;
}

.history-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* Timeline Container */
.timeline-section {
    padding: 20px 0 100px;
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    overflow: hidden;
}

/* Vertical Line */
.timeline-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    width: 2px;
    height: 100%;
    background: #ddd;
}

.timeline-item {
    display: flex;
    justify-content: flex-start;
    padding-bottom: 60px;
    position: relative;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.8s ease-out;
    width: 100%;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-content {
    width: auto;
    flex: 1;
    margin-left: 80px;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 5px 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    text-align: left;
    border-left: 5px solid #337ab7;
}

/* Nodes on Line */
.timeline-marker {
    width: 20px;
    height: 20px;
    background: #337ab7;
    border: 4px solid #fff;
    border-radius: 50%;
    position: absolute;
    top: 30px;
    left: 30px;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 0 3px rgba(51, 122, 183, 0.2);
}

/* Arrows - Always pointing left */
.timeline-content::after {
    content: '';
    position: absolute;
    top: 30px;
    left: -10px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid #fff;
}

.year {
    font-size: 2.5rem;
    font-weight: 700;
    color: #337ab7;
    margin-bottom: 20px;
    display: block;
    line-height: 1;
}

.title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

/* New List Styling */
.history-row {
    display: flex;
    margin-bottom: 10px;
    line-height: 1.6;
}

.history-month {
    min-width: 60px;
    font-weight: 700;
    color: #333;
    flex-shrink: 0;
}

.history-text {
    color: #666;
    word-break: keep-all;
}

/* Responsive */
@media (max-width: 768px) {
    .timeline-section::before {
        left: 30px;
    }

    .timeline-marker {
        left: 30px;
    }

    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px;
        padding: 20px;
    }
}

.body-gray {
    background-color: #f9f9f9;
}

.img-container {
    text-align: center;
    margin: 30px auto;
}

.img-limit {
    max-width: 70%;
    /* Reduce massive images */
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Add soft shadow */
    transition: transform 0.3s ease;
}

.img-limit:hover {
    transform: scale(1.02);
}

.feature-box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* New Card Style for Features */
.feature-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #eaeaea;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.feature-card i {
    font-size: 22px;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 3px;
}

.feature-card p {
    margin: 0;
    font-size: 15px;
    color: #555;
    font-weight: 500;
}

/* Section Header Icon Styling */
.header-icon-img {
    width: 60px;
    display: inline-block;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* Refined Table */
.custom-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.custom-table th,
.custom-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.custom-table th {
    background-color: #f0f7ff;
    color: #0056b3;
    font-weight: 700;
    text-align: center;
    border-right: 1px solid #e0e0e0;
    width: 18%;
}

.custom-table td {
    background: #fff;
    color: #555;
    vertical-align: middle;
}

.custom-table tr:last-child td,
.custom-table tr:last-child th {
    border-bottom: none;
}

.custom-table ul.feature-list li {
    margin-bottom: 8px;
    font-size: 14px;
}

/* Text tweaks */
.text-i {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
    word-break: keep-all;
}

.diagram-caption {
    font-size: 13px;
    color: #888;
    margin-top: 10px;
}

/* Section background tweaks */
.section.bg-light {
    background-color: #f9fbfe;
    /* Slightly blue-tinted gray for premium feel */
}

/* Accordion Styles */
.accordion {
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
    background: #fff;
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid #eee;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    background: #f8f9fa;
    border: none;
    padding: 15px 20px;
    text-align: left;
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.accordion-header:hover {
    background: #e9ecef;
}

.accordion-header i {
    transition: transform 0.3s;
}

.accordion-header.active i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #fff;
}

.accordion-content p {
    padding: 20px;
    margin: 0;
    color: #555;
    line-height: 1.6;
}

/* Custom layout for index.html: 4 cards in a row on desktop */
@media (min-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* Hero text optimization for mobile */
.hero-title {
    word-break: keep-all;
    margin: 0;
    padding: 0 10px;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.5rem !important;
        line-height: 1.4 !important;
    }

    .hero-title br {
        display: none;
        /* Hide force break on mobile to let it wrap naturally */
    }
}

/* Mobile Menu Fixes */
@media (max-width: 768px) {
    .gnb {
        overflow-y: auto !important;
    }

    .gnb>ul>li.active .gnb_sub {
        display: block !important;
    }
}

/* Hero Title Vertical Centering Fix */
.slide .content {
    margin-bottom: 0 !important;
}