/* Global Styles */
:root {
    --primary-color: #0f172a;
    /* Slate 900 for modern corporate feel */
    --secondary-color: #334155;
    /* Slate 700 */
    --accent-color: #3b82f6;
    /* Blue 500 for a crisp highlight */
    --text-color: #1e293b;
    --light-gray: rgba(255, 255, 255, 0.6);
    --border-color: #e2e8f0;
    --white: #ffffff;
    --font-main: 'Pretendard', sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    font-weight: 300;
    letter-spacing: -0.01em;
    background-color: transparent;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

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

.section {
    padding: 80px 0;
}

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

.section-title h3 {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.section-title p {
    color: #666;
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #00382e;
}

.btn-outline {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Top Bar */
.top-bar {
    background-color: #f8f9fa;
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    font-size: 0.85rem;
}

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

.top-links a {
    margin-left: 20px;
    color: #666;
}

/* Header */
.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 9999;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 2001;
}

.logo-icon {
    height: 50px;
    width: auto;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    font-weight: 900;
    line-height: 1;
}

.logo-sub {
    display: block;
    font-size: 0.75rem;
    color: #888;
    letter-spacing: 1px;
}

.main-nav ul {
    display: flex;
    gap: 40px;
    /* Increased gap */
}

.main-nav a {
    font-size: 1.15rem;
    /* Increased font size */
    font-weight: 400;
    /* Thinner for premium feel */
    color: var(--text-color);
    padding: 10px 5px;
    /* Added vertical padding and slight horizontal */
    display: inline-block;
    position: relative;
    /* Needed for absolute underline */
}

/* Hover Effect: Accent Underline */
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    /* Thinner line */
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.main-nav a:hover {
    color: var(--accent-color);
}

.main-nav a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: block;
    /* Visible on all screens now */
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2001;
    /* Above the overlay */
    position: relative;
    color: var(--text-color);
    transition: color 0.3s;
}

.mobile-menu-toggle.active {
    color: var(--primary-color);
    /* Dark/Primary when overlay is open (since bg is light) */
}

/* Full Screen / Mega Menu Styles */
.fullscreen-menu {
    position: absolute;
    /* Changed from fixed for desktop behavior */
    top: 100%;
    left: 0;
    width: 100%;
    height: 0;
    /* Hidden by default */
    background-color: rgba(248, 249, 250, 0.98);
    /* Light Gray / Off-white */
    z-index: 999;
    overflow: hidden;
    transition: height 0.4s ease, opacity 0.3s;
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Hover Interaction for Desktop */
@media (min-width: 769px) {

    /* When active class is added via JS */
    .fullscreen-menu.active {
        height: 400px;
        opacity: 1;
        visibility: visible;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .fullscreen-menu .menu-container {
        padding-top: 40px;
        /* Spacing inside drawer */
        transform: translateY(20px);
        opacity: 0;
        transition: transform 0.4s ease 0.1s, opacity 0.4s ease 0.1s;
    }

    .main-header:hover .fullscreen-menu .menu-container {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile Interaction (Hamburger Click) */
@media (max-width: 768px) {
    .fullscreen-menu {
        position: fixed;
        /* Fixed on mobile to cover screen */
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 2000;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding-top: 100px;
        /* Start below the header */
    }

    .fullscreen-menu.active {
        opacity: 1;
        visibility: visible;
        height: 100vh;
        /* Ensure full height */
    }
}

.menu-container {
    max-width: 1200px;
    width: 100%;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    color: #333;
    /* Dark text for light background */
    margin: 0 auto;
}

/* Active state for main nav links via JS */
.main-nav a.hover-active-link {
    color: var(--accent-color);
}

.main-nav a.hover-active-link::after {
    width: 100%;
}

.menu-column {
    padding: 20px 20px 30px 20px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.menu-column.hover-active {
    background-color: #cbd5e1;
    /* Even darker slate-300 for clearer visibility */
}

.menu-column h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--primary-color);
    /* Use primary color instead of accent for better contrast on light */
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 10px;
    font-weight: 700;
}

.menu-column ul li {
    margin-bottom: 15px;
}

.menu-column ul li a {
    font-size: 0.95rem;
    color: #555;
    /* Dark gray text */
    font-weight: 400;
    transition: 0.3s;
    display: inline-block;
    word-break: keep-all;
    /* Prevent Korean words from breaking abruptly */
    white-space: nowrap;
    /* Keep the text on a single line */
}

.menu-column ul li a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
    font-weight: 600;
}

/* Hide standard nav on all screens since we have the mega menu? 
   Or keep it for quick access. Let's keep it on desktop but hide on mobile. */

@media (max-width: 768px) {
    .menu-container {
        grid-template-columns: 1fr;
        overflow-y: auto;
        max-height: 80vh;
        display: block;
        /* Stack vertically on mobile */
        transform: translateY(30px);
        padding-bottom: 50px;
        /* Space for scrolling */
    }

    .fullscreen-menu.active .menu-container {
        transform: translateY(0);
    }

    .menu-column {
        margin-bottom: 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        padding-bottom: 10px;
    }

    /* Mobile Accordion Styles */
    .menu-column h4 {
        margin-bottom: 10px;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: none;
        padding: 12px 10px;
        border-radius: 4px;
        transition: background-color 0.3s ease;
    }

    .menu-column h4:hover,
    .menu-column h4:active {
        background-color: #cbd5e1;
    }

    .menu-column h4::after {
        content: '\f078';
        /* FontAwesome Chevron Down */
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        font-size: 1rem;
        transition: transform 0.3s;
    }

    .menu-column.active h4::after {
        transform: rotate(180deg);
    }

    .menu-column ul {
        display: none;
        /* Hide by default on mobile */
        padding-left: 10px;
        animation: slideDown 0.3s ease;
    }

    .menu-column.active ul {
        display: block;
        /* Show when active */
    }

    .menu-column ul li {
        margin-bottom: 0px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        /* Optional subtle border */
    }

    .menu-column ul li:last-child {
        border-bottom: none;
    }

    .menu-column ul li a {
        display: block;
        padding: 12px 10px;
        width: 100%;
        border-radius: 4px;
        transition: background-color 0.3s ease;
    }

    .menu-column ul li a:hover,
    .menu-column ul li a:active {
        background-color: #cbd5e1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero-section {
    height: 500px;
    position: relative;
    background-color: #333;
    /* Fallback */
    overflow: hidden;
}

.hero-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    text-align: center;
    width: 100%;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Business Section */
.business-section {
    background-color: var(--white);
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.business-card {
    background: var(--white);
    padding: 30px 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.icon-box {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.business-card h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.business-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}



/* 5x5 Product Grid Styles */
.product-grid-5x5 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-top: 30px;
}

/* 4x4 Product Grid Styles (Larger Items) */
.product-grid-4x4 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.product-item {
    text-align: center;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    background: #fff;
    display: flex;
    flex-direction: column;
}

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

.product-img-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #f5f5f5;
    border-radius: 4px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-img-placeholder i {
    opacity: 0.5;
}

.product-name {
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 5px;
    height: 2.6em;
    /* 1.3 line-height * 2 lines = 2.6em height strictly enforced */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* 2줄까지만 표시 */
    line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-all;
}

/* Product Color Modifiers */
.prod-red {
    background-color: #ffebee;
    color: #d32f2f;
}

.prod-red i {
    opacity: 0.8;
}

.prod-brown {
    background-color: #efebe9;
    color: #5d4037;
}

.prod-brown i {
    opacity: 0.8;
}

.prod-yellow {
    background-color: #fffde7;
    color: #fbc02d;
}

.prod-yellow i {
    opacity: 0.9;
}

.prod-white {
    background-color: #f5f5f5;
    color: #9e9e9e;
}

.prod-white i {
    opacity: 0.6;
}

.prod-silver {
    background-color: #eceff1;
    color: #78909c;
}

.prod-silver i {
    opacity: 0.8;
}

/* Detail value single line clamp */
.product-details .detail-value {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prod-silver i {
    opacity: 0.8;
}

/* Responsive Grid */
@media (max-width: 1024px) {
    .product-grid-5x5 {
        grid-template-columns: repeat(5, 1fr);
    }

    .product-grid-4x4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {

    .product-grid-5x5,
    .product-grid-4x4 {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
}

@media (max-width: 576px) {

    .product-grid-5x5,
    .product-grid-4x4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* Product Section */
.product-section {
    background-color: #f9f9f9;
}

.product-category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.category-item {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    transition: 0.3s;
}

.category-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.cat-img {
    width: 40%;
    background-size: cover;
    background-position: center;
}

.cat-info {
    width: 60%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cat-info h4 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.cat-info p {
    color: #666;
}

/* Logistics Section */
.logistics-section {
    background-color: var(--white);
}

.logistics-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.logistics-text h3 {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.logistics-text h4 {
    font-size: 2rem;
    margin-bottom: 30px;
    line-height: 1.3;
}

.delivery-info li {
    margin-bottom: 20px;
    border-left: 3px solid var(--secondary-color);
    padding-left: 20px;
}

.delivery-info .region {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

/* Footer */
.main-footer {
    background-color: #ffffff;
    color: #333;
    padding: 60px 0;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-icon {
    height: 40px;
    width: auto;
}

.footer-logo h2 {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.footer-links a {
    margin-left: 25px;
    color: #555;
}

.footer-links a:hover {
    color: var(--primary-color);
}

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

.copyright {
    margin-top: 20px;
    color: #777;
}

.mobile-break {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .main-nav {
        display: none;
        /* Todo: JS toggle */
    }

    .mobile-menu-toggle {
        display: block;
    }

    .business-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-category-grid {
        grid-template-columns: 1fr;
    }

    .logistics-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .footer-links a {
        margin-left: 0;
        margin-right: 20px;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-break {
        display: block !important;
        content: "";
        margin-top: 5px;
    }

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

@media (max-width: 480px) {
    .business-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Sub-page Styles --- */

.sub-hero {
    height: 120px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-bottom: 60px;
}

.sub-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.sub-hero .container {
    position: relative;
    z-index: 1;
}

.sub-hero h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.sub-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.section-container {
    display: flex;
    gap: 50px;
    margin-bottom: 100px;
    align-items: flex-start;
}

/* Sidebar */
.sidebar {
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    border-right: 1px solid var(--border-color);
    padding-right: 20px;
}

.sidebar h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--secondary-color);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--secondary-color);
}

.sidebar ul li {
    margin-bottom: 0;
}

.sidebar ul li a {
    display: block;
    padding: 15px 10px;
    border-bottom: 1px solid #eee;
    color: #555;
    font-weight: 500;
    transition: 0.3s;
}

.sidebar ul li a:hover,
.sidebar ul li a.active-tab {
    color: var(--primary-color);
    background-color: #f9f9f9;
    padding-left: 20px;
    border-left: 3px solid var(--primary-color);
}

/* Content Area */
.content-area {
    flex-grow: 1;
    min-height: 500px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-title {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.content-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* CEO Message Styles */
.ceo-message-box {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    background-color: #fcfcfc;
    padding: 40px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.ceo-img-placeholder {
    width: 250px;
    height: 300px;
    background-color: #e0e0e0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #999;
    border-radius: 4px;
    flex-shrink: 0;
}

.ceo-img-placeholder i {
    font-size: 4rem;
    margin-bottom: 10px;
}

.message-text h4 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 700;
}

.message-text p {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.8;
}

.message-text .sign {
    margin-top: 40px;
    text-align: right;
    font-size: 1.1rem;
}

/* Vision Styles */
.vision-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.vision-item {
    text-align: center;
    padding: 40px 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: 0.3s;
}

.vision-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.vision-item i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.vision-item h5 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* History Styles */
.history-timeline {
    border-left: 2px solid #eee;
    padding-left: 40px;
    margin-left: 20px;
}

.history-timeline h4 {
    margin-left: -60px;
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.history-timeline li {
    margin-bottom: 40px;
    position: relative;
}

.history-timeline li::before {
    content: '';
    position: absolute;
    left: -46px;
    top: 5px;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 0 0 1px #ddd;
}

.history-timeline .year {
    display: block;
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 5px;
}

/* CI Styles */
.ci-wrapper {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.ci-logo-display {
    padding: 60px;
    background-color: #fff;
    border: 1px solid #ddd;
    margin-bottom: 50px;
    border-radius: 8px;
}

.ci-logo-display h2 {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 900;
}

.ci-logo-display .ci-desc {
    font-size: 1.2rem;
    color: #666;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.ci-meaning {
    text-align: left;
}

.ci-meaning h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-color);
    border-left: 4px solid var(--accent-color);
    padding-left: 15px;
}

.ci-meaning p {
    margin-bottom: 40px;
    color: #666;
}

.color-palette {
    display: flex;
    gap: 30px;
}

.color-box {
    width: 150px;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    border-radius: 8px;
    text-align: center;
}

.color-box small {
    margin-top: 10px;
    opacity: 0.8;
}

/* Directions Styles */
.map-container {
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.location-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
}

.info-item i {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 77, 64, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-item h5 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.info-item p {
    font-size: 0.9rem;
    color: #666;
}

/* Responsive Sub */
@media (max-width: 992px) {

    .section-container {
        flex-direction: column;
    }

    .ingredients-layout {
        flex-direction: column;
        display: flex;
    }

    .content-title {
        margin-bottom: 20px;
        /* Reduce from 40px */
    }

    .ingredients-layout {
        margin-top: 10px !important;
        /* Reduce huge gap below title */
        gap: 20px !important;
    }

    .sidebar.category-menu {
        width: 100% !important;
        /* Override inline 200px width */
        margin-bottom: 20px !important;
        padding-bottom: 0px;
        border-bottom: none;
        order: -1;
        /* Ensure it appears at the top */
        position: static !important;
        display: block !important;
        min-height: 48px;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 20px;
    }

    .sidebar:not(.category-menu) ul {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        gap: 10px;
    }

    #mobileCategoryToggle {
        display: none !important;
    }

    /* category-menu horizontal swipe styles */
    .category-menu ul {
        position: relative;
        display: flex !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
        width: 100%;
        padding: 5px 0 10px 0 !important;
        margin-bottom: 10px !important;
        border: none;
        box-shadow: none;
        background: transparent;
        border-radius: 0;
    }

    .category-menu ul::-webkit-scrollbar {
        height: 4px;
    }

    .category-menu ul::-webkit-scrollbar-thumb {
        background-color: #e0e0e0;
        border-radius: 4px;
    }

    .category-menu ul li {
        flex: 0 0 auto;
    }

    .category-menu ul li a {
        display: block;
        padding: 8px 18px;
        border: 1px solid #ddd;
        border-radius: 20px;
        background-color: #fff;
        color: #555;
        white-space: nowrap;
        font-size: 0.95rem;
        font-weight: 500;
        transition: all 0.2s;
    }

    .category-menu ul li a.active-tab {
        background-color: var(--primary-color);
        color: #fff;
        border: 1px solid var(--primary-color) !important;
    }

    .mobile-only-icon {
        display: none !important;
    }

    .sidebar:not(.category-menu) ul li a {
        border: 1px solid #eee;
        border-radius: 20px;
        padding: 8px 15px;
    }

    .sidebar:not(.category-menu) ul li a.active-tab {
        border-left: 1px solid var(--primary-color);
        /* Reset special border */
        background-color: var(--primary-color);
        color: #fff;
    }

    .ceo-message-box {
        flex-direction: column;
    }

    .ceo-img-placeholder {
        width: 100%;
        height: 200px;
    }

    .vision-grid,
    .location-info {
        grid-template-columns: 1fr;
    }
}

/* Main Slider Styles (Full Screen) */
.main-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

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

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

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* Overlay for text readability */
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-content h2 {
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content h2 strong {
    font-weight: 900;
    color: var(--accent-color);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 300;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Product Filters */
.product-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid var(--border-color);
    background-color: #fff;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #666;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #f5f5f5;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Slider Caption for Branches */
.branch-slide-caption {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 1rem;
    z-index: 5;
}

/* Ensure slide fits the branch slider container */
.branch-slider .slide {
    background-size: cover;
    background-position: center;
}

/* Slider Controls */
.prev-slide,
.next-slide {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s, transform 0.2s;
}

.prev-slide:hover,
.next-slide:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.prev-slide {
    left: 40px;
}

.next-slide {
    right: 40px;
}

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

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

.dot.active {
    background: var(--accent-color);
    transform: scale(1.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .main-slider {
        height: 100vh;
    }

    /* Fixed height on mobile */
    .hero-content h2 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .prev-slide,
    .next-slide {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Product Detail Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    background-color: #fefefe;
    margin: 10vh auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
    transition: color 0.2s;
}

.close-modal:hover,
.close-modal:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

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

.modal-img-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    font-size: 3rem;
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.modal-category {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    background-color: #eee;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

/* TOP Button */
#topBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    font-size: 16px;
    border: none;
    outline: none;
    background-color: var(--secondary-color);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s, transform 0.3s;
    font-weight: bold;
    display: flex;
    /* Initially hidden by JS, but flex for center */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

#topBtn:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

#topBtn i {
    font-size: 1.2rem;
}

.modal-description {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    text-align: left;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

/* Top Tab Navigation */
.tab-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-nav a {
    padding: 15px 30px;
    background-color: #f5f5f5;
    color: #555;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid #ddd;
}

.tab-nav a:hover,
.tab-nav a.active-tab {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.tab-nav a.active-tab {
    font-weight: 700;
}

/* Overseas Network specific styles */
.overseas-content {
    text-align: center;
    padding: 40px 0;
}

.overseas-header {
    margin-bottom: 50px;
}

.overseas-header h3 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
}

.overseas-header .slogan {
    font-size: 1.5rem;
    color: var(--primary-color, #0056b3);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.service-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 40px 30px;
    width: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-card i {
    font-size: 3rem;
    color: var(--primary-color, #0056b3);
    margin-bottom: 20px;
}

.service-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #222;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

.delivery-countries {
    background: #f9f9f9;
    padding: 50px;
    border-radius: 10px;
}

.delivery-countries h4 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.delivery-countries p {
    color: #666;
    margin-bottom: 30px;
}

/* Reusing map-placeholder styles if consistent, or defining specific overrides if needed */
.map-placeholder {
    background: #e9ecef;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #adb5bd;
}

.map-placeholder i {
    font-size: 4rem;
    margin-bottom: 15px;
}

.map-placeholder span {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Responsive for Overseas Network */
@media (max-width: 768px) {
    .service-info {
        flex-direction: column;
        align-items: center;
    }

    .service-card {
        width: 100%;
        max-width: 350px;
    }
}

/* Notice Popup Styles */
.notice-popup {
    display: none;
    /* Hidden by default, toggled by JS */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    overflow: hidden;
    width: 400px;
    max-width: 90vw;
}

.notice-popup .popup-body {
    position: relative;
    width: 100%;
    min-height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notice-popup .popup-img {
    width: 100%;
    height: auto;
    display: block;
}

.notice-popup .popup-footer {
    padding: 10px 15px;
    background: #333;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.notice-popup .do-not-show {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.notice-popup .close-popup {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
}


.notice-popup .close-popup:hover {
    text-decoration: underline;
}

/* Contact Info Section */
.contact-info-section {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.contact-grid {
    display: flex;
    gap: 30px;
}

.hq-card {
    flex: 0 0 35%;
    background: var(--primary-color);
    color: #fff;
    padding: 40px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 77, 64, 0.2);
}

.hq-card .card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.hq-card h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 700;
}

.hq-card .phone {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.hq-card .address {
    font-size: 1.1rem;
    opacity: 0.9;
}

.branches-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.branch-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.branch-card h4 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.branch-card h4 i {
    color: var(--primary-color);
}

.branch-phone {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
}

.branch-address {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

@media (max-width: 992px) {
    .contact-grid {
        flex-direction: column;
    }

    .hq-card {
        text-align: center;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .branches-grid {
        grid-template-columns: 1fr;
    }

    .hq-card .phone {
        font-size: 1.6rem;
    }
}

/* Product Card Details */
.product-info-box {
    margin-top: 10px;
    text-align: left;
    border-top: 1px dashed #eee;
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-details {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 10px;
    margin-top: auto;
    font-size: 0.85rem;
    align-items: center;
}

.detail-label {
    color: #888;
    font-weight: 500;
}

.detail-value {
    color: #333;
    text-align: right;
    font-weight: 600;
}

.detail-value.price {
    color: var(--primary-color, #c62828);
    font-size: 1rem;
    font-weight: 700;
}

/* --- Shopping Mall Style Product Modal --- */
.mall-style-modal {
    max-width: 900px !important;
    width: 90% !important;
    padding: 0 !important;
    border-radius: 12px;
    overflow: hidden;
}

.mall-style-modal .close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    color: #333;
    z-index: 10;
}

.mall-style-modal .modal-body {
    display: flex;
    flex-direction: column;
    padding: 40px;
    background-color: #fff;
}

@media (min-width: 768px) {
    .mall-style-modal .modal-body {
        flex-direction: row;
        gap: 40px;
    }
}

.product-image-section {
    flex: 1.2;
    min-width: 400px;
    display: flex;
    flex-direction: column;
}

.product-image-section .modal-img-container {
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    position: relative;
    overflow: hidden;
}

.modal-event-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #e53935;
    color: #fff;
    padding: 6px 14px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 4px;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(229, 57, 53, 0.4);
}

.product-info-section {
    flex: 1.2;
    display: flex;
    flex-direction: column;
}

.product-main-title {
    font-size: 1.8rem;
    color: #222;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.product-price-box {
    display: flex;
    align-items: baseline;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.price-label {
    font-size: 1rem;
    color: #666;
    margin-right: 15px;
}

.price-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color, #c62828);
}

.product-summary-info {
    flex-grow: 1;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table th {
    width: 30%;
    text-align: left;
    padding: 12px 0;
    color: #666;
    font-weight: 500;
    border-bottom: 1px solid #f5f5f5;
}

.info-table td {
    width: 70%;
    padding: 12px 0;
    color: #222;
    font-weight: 500;
    border-bottom: 1px solid #f5f5f5;
}

/* Detail Section */
.product-detail-section {
    background-color: #fcfcfc;
    border-top: 1px solid #eee;
    padding: 0 30px 20px;
}

.detail-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.detail-tab {
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
}

.detail-tab.active {
    color: #222;
    border-bottom-color: var(--secondary-color, #1a237e);
    background-color: #fff;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-top: 1px solid #ddd;
    border-radius: 8px 8px 0 0;
}

.detail-content {
    min-height: 100px;
    background-color: #fff;
    padding: 10px 15px;
    /* Reduced vertical and horizontal padding */
    border: 1px solid #eee;
    border-radius: 0 8px 8px 8px;
}

.detail-content .modal-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

/* Mobile Modal Overrides */
@media (max-width: 768px) {
    .modal {
        top: 80px;
        height: calc(100% - 80px);
    }

    .mall-style-modal {
        margin: 20px auto 5vh auto;
        width: 95% !important;
    }

    .mall-style-modal .modal-body {
        padding: 25px 20px;
    }

    .product-image-section {
        min-width: 0;
        width: 100%;
        margin-bottom: 25px;
    }

    .product-image-section .modal-img-container {
        aspect-ratio: 1 / 1;
        height: auto;
        border-radius: 8px;
    }

    .product-main-title {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .product-price-box {
        padding-bottom: 15px;
        margin-bottom: 15px;
    }

    .price-value {
        font-size: 1.8rem;
    }

    .mall-style-modal .close-modal {
        position: fixed;
        top: 15px;
        right: 15px;
        bottom: auto;
        left: auto;
        transform: none;
        width: 45px;
        height: 45px;
        background-color: rgba(255, 255, 255, 0.95);
        color: #333;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        z-index: 9999;
        font-size: 2rem;
        font-weight: normal;
        text-transform: none;
        letter-spacing: normal;
    }

    .mall-style-modal .close-modal::after {
        content: none;
    }
}



/* -------------------------------------------------------------
 * Unified Mobile Index Layout 
 * ------------------------------------------------------------- */
.mobile-index-container {
    padding: 20px;
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #fff;
}

/* Hero Text Area */
.mobile-hero-msg {
    margin-top: 40px;
    margin-bottom: 20px;
}

.mobile-hero-msg h2 {
    font-size: 1.6rem;
    line-height: 1.5;
    color: #333;
    text-align: right;
    font-weight: 500;
    letter-spacing: -0.5px;
}

@media (min-width: 992px) {

    .mobile-hero-msg h2,
    .customer-center,
    .history-intro-box h4,
    .history-intro-box p,
    .info-box h4,
    .info-box p {
        text-align: center !important;
    }

    /* Enlarge fonts for PC view */
    .mobile-hero-msg h2 {
        font-size: 2.5rem !important;
        margin-bottom: 30px;
    }

    .customer-center {
        font-size: 1.25rem !important;
        margin-bottom: 40px;
    }

    .history-intro-box h4,
    .info-box h4 {
        font-size: 2rem !important;
        margin-bottom: 20px !important;
    }

    .history-intro-box p,
    .info-box p {
        font-size: 1.25rem !important;
        line-height: 1.8 !important;
    }
}

.mobile-hero-msg h2 strong {
    font-weight: 700;
}

.customer-center {
    text-align: right;
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
}

.hero-img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 40px;
}

/* Common Banner */
.history-banner {
    position: relative;
    color: white;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    margin-bottom: 0;
}

.history-banner img {
    width: 100%;
    display: block;
}

.history-banner .overlay-text {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    text-align: center;
}

.history-banner .overlay-text p {
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.history-banner .overlay-text h3 {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.85);
    /* White highlight backing */
    color: #333;
    padding: 3px 10px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.history-banner.blue-theme .overlay-text {
    top: 30px;
    left: 20px;
    text-align: left;
}

.history-banner.blue-theme .overlay-text h3 {
    background-color: transparent;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0;
    line-height: 1.3;
}

/* Text Boxes below banners */
.history-intro-box {
    padding: 25px 20px;
    border: 1px solid #000;
    border-top: none;
    margin-bottom: 20px;
}

.history-intro-box.bordered {
    border: 1px solid #ddd;
    border-radius: 8px;
}

.history-intro-box h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #000;
    line-height: 1.4;
}

.history-intro-box p {
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
    font-weight: 500;
    word-break: keep-all;
}

.history-intro-box.center-text {
    text-align: center;
    border: 1px solid #000;
}

.history-intro-box.center-text h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.history-intro-box.no-top-border {
    border-top: none;
}

/* Timeline Layout Specifics */
.mobile-timeline {
    position: relative;
    padding: 20px 0 30px 0;
    /* Added bottom padding to space out from the card edge */
}

.timeline-wrapper {
    margin-bottom: 40px;
    position: relative;
    background-color: #ffffff;
    /* Card Background */
    border-radius: 20px;
    /* Consistent rounded corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Soft drop shadow for card effect */
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Very subtle border */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* A thin blue line in the middle */
.mobile-timeline::before {
    content: '';
    position: absolute;
    left: 35%;
    /* Fixed ratio for year vs desc */
    top: 10px;
    bottom: 10px;
    width: 1px;
    background-color: #4a90e2;
    /* light blue */
    z-index: 1;
}

.timeline-row {
    display: flex;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.timeline-row:last-child {
    margin-bottom: 0;
}

.timeline-year {
    width: 35%;
    padding-right: 20px;
    text-align: right;
    font-size: 1rem;
    font-weight: 500;
    color: #000;
    padding-top: 2px;
}

.timeline-desc {
    width: 65%;
    padding-left: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
    font-weight: 400;
    word-break: keep-all;
}

.timeline-desc strong {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

/* Remove timeline border if wrapping inside a generic padded box */
.padded-container {
    padding: 0 15px;
}

/* Scroll Animation Classes */
.slide-up-element {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-up-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Index Page Hero Message Alignment */
.mobile-hero-msg {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 10px;
}

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

.mobile-hero-msg h2 {
    text-align: center;
}

@media (max-width: 768px) {
    .mobile-hero-msg {
        text-align: left;
        padding-left: 20px;
        padding-right: 20px;
        margin-top: 15px;
    }

    .mobile-hero-msg h2 {
        text-align: left;
    }

    .customer-center {
        text-align: right;
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-img,
    .timeline-wrapper {
        width: calc(100% - 40px);
        margin-left: auto;
        margin-right: auto;
    }

    .hero-img {
        margin-bottom: 30px;
        display: block;
        border-radius: 15px;
    }
}

/* CI Custom Styles */
.ci-hero {
    background: linear-gradient(135deg, #005a96, #009ce0);
    color: white;
    padding: 100px 20px;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 20px;
}

.ci-hero h1 {
    font-size: 3rem;
    font-weight: 900;
    margin: 0 0 10px 0;
    letter-spacing: -1px;
}

.ci-hero p {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
    margin: 0;
}

.ci-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.ci-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.ci-card:hover {
    transform: translateY(-10px);
}

.ci-image-placeholder {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: 500;
    border-bottom: 1px solid #eee;
}

.ci-content {
    padding: 30px;
}

.ci-content h3 {
    margin: 0 0 15px 0;
    font-size: 1.4rem;
    color: #007bc3;
}

.keyword-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.keyword-tags span {
    background: #f1f3f5;
    color: #666666;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
}

.naming-section {
    background-color: white;
    padding: 80px 20px;
}

.naming-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.naming-card {
    padding: 30px;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    background: #f8f9fa;
}

.naming-card h3 {
    font-size: 1.8rem;
    color: #007bc3;
    margin: 0 0 5px 0;
}

.naming-card .sub-name {
    font-size: 1rem;
    color: #888;
    font-weight: 500;
    margin-bottom: 20px;
    display: block;
}

.naming-card p {
    font-size: 1rem;
    color: #666666;
    margin: 0;
    word-break: keep-all;
}

@media (max-width: 768px) {
    .ci-hero {
        padding: 60px 20px;
    }

    .ci-hero h1 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}