/* ==========================================
   Template 12: "Dark & White"
   Company: 주식회사 유핀테크허브 (U Fintech Hub)
   Primary: #1B1B3A | Accent: #C0A060 | Dark: #0F0F22
   Font: Jost (100-900)
   ========================================== */

/* --- Font --- */
body {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    color: #e0e0e0;
    background-color: #0F0F22;
}

h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-4, .display-5, .display-7 {
    font-family: 'Jost', sans-serif;
}

/* --- Colors --- */
.text-primary { color: #C0A060 !important; }
.bg-primary { background-color: #C0A060 !important; }
.btn-primary {
    background-color: #C0A060;
    border-color: #C0A060;
    color: #0F0F22;
    font-weight: 500;
}
.btn-primary:hover {
    background-color: #d4b870;
    border-color: #d4b870;
    color: #0F0F22;
}
.btn-black {
    background-color: #1B1B3A;
    border-color: #1B1B3A;
    color: #C0A060;
}
.btn-black:hover {
    background-color: #2a2a5a;
    border-color: #2a2a5a;
    color: #d4b870;
}
.btn-secondary {
    background-color: transparent;
    border: 2px solid #C0A060;
    color: #C0A060;
}
.btn-secondary:hover {
    background-color: #C0A060;
    color: #0F0F22;
}
.btn-info {
    background-color: transparent;
    border: 1px solid #C0A060;
    color: #C0A060;
}
.btn-info:hover {
    background-color: #C0A060;
    color: #0F0F22;
}
.text-black { color: #0F0F22 !important; }
.text-white { color: #ffffff !important; }

a {
    color: #C0A060;
    text-decoration: none;
}
a:hover {
    color: #d4b870;
}

/* --- Navbar --- */
.navbar {
    background-color: #0F0F22 !important;
    border-bottom: 1px solid rgba(192, 160, 96, 0.15);
    padding: 0.5rem 0;
}

.content-wrap {
    max-width: 1400px;
    width: 100%;
    padding: 0 2rem;
    margin: 0 auto;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-caption {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #ffffff !important;
    text-decoration: none;
}

.navbar-caption:hover {
    color: #C0A060 !important;
}

.navbar-brand img {
    height: 3rem;
    border-radius: 6px;
}

/* Template 12: nav-link with card-wrap large-radius text-white */
.nav-link.link {
    color: #ffffff !important;
    padding: 0.4rem 1rem !important;
    border-radius: 30px !important;
    transition: all 0.3s ease;
    font-weight: 400;
    margin: 0 0.15rem;
}

.nav-link.link:hover,
.nav-link.link.active {
    background-color: rgba(192, 160, 96, 0.15);
    color: #C0A060 !important;
}

.navbar-toggler {
    border: 1px solid rgba(192, 160, 96, 0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(192, 160, 96, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-buttons .btn {
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 34, 0.8);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.hero-content .lead {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* --- Sections --- */
.section-dark {
    background-color: #0F0F22;
    padding: 5rem 0;
}

.section-primary {
    background-color: #1B1B3A;
    padding: 5rem 0;
}

.section-light {
    background-color: #F5F3EE;
    padding: 5rem 0;
    color: #1B1B3A;
}

.section-light h2,
.section-light h3,
.section-light p {
    color: #1B1B3A;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #C0A060;
    margin-bottom: 3rem;
    font-weight: 400;
}

.section-light .section-title {
    color: #1B1B3A;
}

/* --- Line divider (Template 12 unique) --- */
.line {
    width: 60px;
    height: 3px;
    background-color: #C0A060;
    margin: 1.5rem auto;
}

.line.left {
    margin: 1.5rem 0;
}

/* --- Feature Cards (solutionm4 style) --- */
.feature-card {
    background-color: #1B1B3A;
    border: 1px solid rgba(192, 160, 96, 0.1);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    border-color: rgba(192, 160, 96, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-card .icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(192, 160, 96, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-card .icon-circle i {
    font-size: 1.8rem;
    color: #C0A060;
}

.feature-card h4 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Service Cards --- */
.service-card {
    background-color: #1B1B3A;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(192, 160, 96, 0.08);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.service-card .card-body {
    padding: 2rem;
}

.service-card h4 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.service-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

/* --- About / Image-Text sections --- */
.img-text-section img {
    border-radius: 12px;
    width: 100%;
}

.img-text-section h2 {
    font-size: 2.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.img-text-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* --- Stats --- */
.stat-box {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #C0A060;
    display: block;
}

.stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* --- Client/Partner slider --- */
.partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    align-items: center;
}

.partner-logos img {
    height: 40px;
    opacity: 0.5;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s ease;
}

.partner-logos img:hover {
    opacity: 0.8;
}

/* --- FAQ Accordion --- */
.accordion-item {
    background-color: transparent;
    border: 1px solid rgba(192, 160, 96, 0.15);
    border-radius: 8px !important;
    margin-bottom: 0.8rem;
}

.accordion-button {
    background-color: #1B1B3A !important;
    color: #ffffff !important;
    font-weight: 500;
    font-size: 1.05rem;
    border-radius: 8px !important;
    padding: 1.2rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background-color: #1B1B3A !important;
    color: #C0A060 !important;
    box-shadow: none;
}

.accordion-button::after {
    filter: brightness(0) invert(1);
}

.accordion-body {
    background-color: #1B1B3A;
    color: rgba(255, 255, 255, 0.7);
    padding: 1.5rem;
    line-height: 1.7;
    border-radius: 0 0 8px 8px;
}

/* --- Contact Form --- */
.contact-form-wrap {
    background-color: #1B1B3A;
    border-radius: 16px;
    padding: 3rem;
    border: 1px solid rgba(192, 160, 96, 0.1);
}

.form-control {
    background-color: #0F0F22;
    border: 1px solid rgba(192, 160, 96, 0.2);
    color: #ffffff;
    padding: 0.8rem 1rem;
    border-radius: 8px;
}

.form-control:focus {
    border-color: #C0A060;
    box-shadow: 0 0 0 0.25rem rgba(192, 160, 96, 0.1);
    background-color: #0F0F22;
    color: #ffffff;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* --- Contact Info Cards --- */
.contact-info-card {
    background-color: #1B1B3A;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    border: 1px solid rgba(192, 160, 96, 0.08);
}

.contact-info-card .icon-wrap {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(192, 160, 96, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.contact-info-card i {
    font-size: 1.4rem;
    color: #C0A060;
}

.contact-info-card h5 {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-info-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

/* --- Google Map --- */
.map-container {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(192, 160, 96, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Footer --- */
.footer {
    background-color: #0F0F22;
    border-top: 1px solid rgba(192, 160, 96, 0.1);
    padding: 3rem 0 1.5rem;
}

.footer h5 {
    color: #C0A060;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.footer p, .footer a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer a:hover {
    color: #C0A060;
}

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

.footer .footer-links li {
    margin-bottom: 0.5rem;
}

.footer .copyright {
    border-top: 1px solid rgba(192, 160, 96, 0.08);
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}

/* --- Cookie Consent --- */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1B1B3A;
    border-top: 2px solid rgba(192, 160, 96, 0.3);
    padding: 1.2rem 2rem;
    z-index: 10000;
    display: none;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.cookie-consent.show {
    display: block;
}

.cookie-consent p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.cookie-consent .btn {
    padding: 0.4rem 1.5rem;
    font-size: 0.85rem;
    border-radius: 30px;
    margin-left: 0.5rem;
}

/* --- Breadcrumb --- */
.page-header {
    background-color: #1B1B3A;
    padding: 8rem 0 3rem;
    text-align: center;
    border-bottom: 1px solid rgba(192, 160, 96, 0.1);
}

.page-header h1 {
    color: #ffffff;
    font-weight: 700;
    font-size: 2.8rem;
}

.page-header .breadcrumb-nav {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.page-header .breadcrumb-nav a {
    color: #C0A060;
}

/* --- Content Sections for sub-pages --- */
.content-section {
    padding: 4rem 0;
}

.content-section h2 {
    color: #ffffff;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.content-section h3 {
    color: #C0A060;
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.content-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.content-section ul, .content-section ol {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    padding-left: 1.5rem;
}

.content-section ul li, .content-section ol li {
    margin-bottom: 0.5rem;
}

/* --- Policy Tables --- */
.policy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.policy-table th {
    background-color: #C0A060;
    color: #0F0F22;
    padding: 0.8rem 1rem;
    font-weight: 600;
    text-align: left;
}

.policy-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(192, 160, 96, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.policy-table tr:nth-child(even) td {
    background-color: rgba(27, 27, 58, 0.3);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .contact-form-wrap {
        padding: 1.5rem;
    }
    .content-wrap {
        padding: 0 1rem;
    }
    .page-header {
        padding: 6rem 0 2rem;
    }
    .page-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .cookie-consent {
        padding: 1rem;
    }
    .cookie-consent .btn {
        margin: 0.3rem;
    }
}
