/*
Theme Name: TienO
Author: TienO
Description: Custom theme for TienO - Vay Online Nhanh
Version: 1.0
*/

/* ===== Flatsome-like CSS for TienO ===== */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { font-family: 'Raleway', sans-serif; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: #6d7783; background: #f9f5f1; overflow-x: hidden; }
a { color: #fbaf18; text-decoration: none; transition: color .3s; }
a:hover { color: #f59e00; }
img { max-width: 100%; height: auto; display: inline-block; vertical-align: middle; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { color: #36597d; font-weight: 700; margin: 0 0 .5em; }
h1 { font-size: 2rem; line-height: 1.2; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
ul, ol { padding: 0 0 0 1.5em; margin: 0 0 1em; }
ul li, ol li { margin-bottom: .3em; }
.uppercase { letter-spacing: .05em; text-transform: uppercase; }
.text-center { text-align: center; }

/* ---- Container & Row ---- */
.container { max-width: 1080px; margin: 0 auto; padding: 0 15px; }
.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.col { flex: 1; padding: 0 15px; width: 100%; }
.large-12 { max-width: 100%; flex: 0 0 100%; }
.large-6 { max-width: 50%; flex: 0 0 50%; }
.large-4 { max-width: 33.333%; flex: 0 0 33.333%; }
.large-3 { max-width: 25%; flex: 0 0 25%; }
@media (max-width: 549px) {
    .small-12 { max-width: 100%; flex: 0 0 100%; }
    .small-6 { max-width: 50%; flex: 0 0 50%; }
}
@media (min-width: 550px) and (max-width: 849px) {
    .medium-6 { max-width: 50%; flex: 0 0 50%; }
    .medium-4 { max-width: 50%; flex: 0 0 50%; }
    .medium-3 { max-width: 50%; flex: 0 0 50%; }
}
.align-middle { align-items: center; }
.align-equal { align-items: stretch; }

/* ---- Header ---- */
.header { width: 100%; z-index: 100; position: relative; }
.has-sticky { position: sticky; top: 0; }
.sticky-jump { transition: transform .3s; }
.header-wrapper { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 15px; }
#logo { flex-shrink: 0; }
#logo a { display: inline-block; }
#logo img { max-height: 43px; width: auto; }
.header-nav { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0; }
.nav-right { justify-content: flex-end; }
.nav-left { justify-content: flex-start; }
.header-nav > li { margin: 0; position: relative; }
.header-nav > li > a { display: block; padding: 10px 14px; font-size: .9rem; font-weight: 600; color: #36597d; letter-spacing: .02em; transition: color .3s; text-transform: uppercase; }
.header-nav > li > a:hover { color: #fbaf18; }
.header-nav > li.current-menu-item > a { color: #fbaf18; }
.nav-uppercase > li > a { text-transform: uppercase; letter-spacing: .05em; }
.mobile-nav { list-style: none; margin: 0; padding: 0; display: flex; }
.nav-icon .icon-menu { font-size: 1.3em; }
.show-for-medium { display: none !important; }
.hide-for-medium { display: block !important; }
@media (max-width: 849px) {
    .show-for-medium { display: block !important; }
    .hide-for-medium { display: none !important; }
}
.header-button .button { padding: 5px 12px; font-size: .9rem; }
.button.circle { border-radius: 99px; }
.button.is-small { font-size: .75rem; padding: 4px 10px; }
.header-bg-container { position: absolute; top: 0; left: 0; right: 0; bottom: 0; overflow: hidden; pointer-events: none; }
.fill { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---- Content Area ---- */
#content { padding: 0; }
.page-wrapper { padding: 0; }
.row-main > .col { padding-top: 0; }
.col-inner { padding: 15px 0; }
.col-inner .container-inner, .blog-container-inner { max-width: 1080px; margin: 0 auto; padding: 0 50px; }

/* ---- Hero Section ---- */
.bg_info { 
  background: #f9f5f1; 
  width: 100%;
  padding: 60px 0;
  margin: 0;
}
.bg_info > .row { max-width: 1080px; margin: 0 auto; padding: 0 50px; }
.bg_info .col-inner { padding: 0; }
#text-605782202 h1 { color: #36597d; font-size: 1.9rem; font-weight: 800; line-height: 1.15; margin-bottom: 15px; }
#text-2023355941 p { font-size: 1rem; line-height: 1.85; color: #6d7783; margin-bottom: 25px; }

/* ---- Buttons ---- */
.button { display: inline-block; padding: 12px 30px; font-size: .95rem; font-weight: 700; text-align: center; border-radius: 8px; transition: all .3s; cursor: pointer; border: none; text-decoration: none; }
.button.primary { background: #fbaf18; color: #fff; box-shadow: 0 4px 15px rgba(251,175,24,.4); }
.button.primary:hover { background: #f59e00; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(251,175,24,.5); }
.btn1 { margin-right: 10px; }
.btn2 { background: transparent !important; color: #fbaf18 !important; border: 2px solid #fbaf18; box-shadow: none !important; }
.btn2:hover { background: #fbaf18 !important; color: #fff !important; }

/* ---- How it works ---- */
#gap-1706653255 { padding-top: 30px; }
.icon-box.featured-box { margin-bottom: 20px; }
.icon-box-left { display: flex; align-items: center; gap: 10px; }
.icon-box-img { flex-shrink: 0; }
.icon-box-text.last-reset p:last-child { margin-bottom: 0; }
.icon-box-text h2 { font-size: .87rem; font-weight: 700; color: #36597d; margin: 0; }
.row-how { margin-top: 20px; }
.row-how .col { margin-bottom: 20px; }
.row-how h3 { font-size: 1.1rem; font-weight: 700; color: #36597d; margin-bottom: 5px; }
.row-how p { font-size: .9rem; color: #6d7783; line-height: 1.5; }
.row-how .col-inner { background: #fff; border-radius: 12px; padding: 25px 20px; height: 100%; box-shadow: 0 2px 8px rgba(0,0,0,.06); transition: all .3s; }
.row-how .col-inner:hover { box-shadow: 0 8px 25px rgba(0,0,0,.1); transform: translateY(-3px); }

/* ---- Who can borrow ---- */
.section-who { margin: 20px -15px 0; }
.section-who .col-inner { background: #fff; border-radius: 16px; padding: 30px 20px; margin: 15px; height: calc(100% - 30px); box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.section-who .icon-box { margin-top: 10px; }
.icon-box-center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.icon-box-center .icon-box-img { margin-bottom: 15px; }
.section-who p { font-size: .95rem; color: #6d7783; line-height: 1.6; }

/* ---- Loan terms ---- */
.section-who.kv .col-inner { background: #fff; border-radius: 12px; text-align: center; }
.section-who.kv p:first-child { font-weight: 700; color: #fbaf18; font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.section-who.kv p:last-child { color: #36597d; font-size: .95rem; }

/* ---- Loan example text ---- */
#text-1173006069 { padding: 20px 0; }
#text-1173006069 p { font-size: .95rem; color: #1d2440; line-height: 1.6; text-align: center; }

/* ---- Main content ---- */
.hero-col.content { padding: 20px 0; }
.hero-col.content h2 { color: #36597d; font-size: 1.5rem; margin: 30px 0 15px; }
.hero-col.content h3 { color: #36597d; font-size: 1.2rem; margin: 25px 0 10px; }
.hero-col.content p { color: #6d7783; font-size: .98rem; line-height: 1.85; margin-bottom: 1em; }
.hero-col.content ul li { color: #6d7783; font-size: .95rem; line-height: 1.7; }
.hero-col.content ol li { color: #6d7783; font-size: .95rem; line-height: 1.7; }

/* ---- FAQ ---- */
.rank-math-block { padding: 20px 0; }
.rank-math-block h2 { color: #36597d; margin-bottom: 25px; }
.rank-math-list-item { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.rank-math-question { color: #36597d; font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; cursor: pointer; }
.rank-math-answer p { color: #6d7783; font-size: .95rem; line-height: 1.6; }

/* ---- Footer ---- */
.footer-wrapper { background: #fff; }
.break-top { border-top: 1px solid #eee; padding-top: 30px; }
.fw500 p { font-weight: 700; }
#text-1262078298 p, #text-554729018 p, #text-3632486586 p { font-size: .95rem; color: #042343; font-weight: 700; }
#text-2069680303 p, #text-2107000064 p { font-size: .9rem; color: #3e3e3e; line-height: 1.8; }
#text-2069680303 a { color: #36597d; }
.social-icons { margin-top: 10px; }
.social-icons a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin: 0 3px; border-radius: 99px; background: #fbaf18; color: #fff !important; font-size: 1rem; transition: all .3s; }
.social-icons a:hover { background: #f59e00; transform: translateY(-2px); }

/* ---- Section ---- */
.section { padding: 30px 15px; }
.section-content { position: relative; max-width: 1080px; margin: 0 auto; padding: 0 50px; }

/* ---- Page Content ---- */
.content-area .col-inner h1 { margin-bottom: 20px; }
.content-area .col-inner p { line-height: 1.85; color: #6d7783; font-size: .98rem; }

/* ---- Responsive ---- */
@media (max-width: 849px) {
    .bg_info { padding: 30px 0; }
    #text-605782202 h1 { font-size: 1.5rem; }
    .row-how .col { margin-bottom: 15px; }
    .section-who .col { margin-bottom: 15px; }
    .section-who .col-inner { margin: 0 0 15px; }
    .social-icons { text-align: center; }
    .col-inner .container-inner, .blog-container-inner { padding: 0 15px; }
    .bg_info > .row { padding: 0 15px; }
    .section-content { padding: 0 15px; }
}

/* ---- Mobile Menu ---- */
@media (max-width: 849px) {
    .header-nav-main.nav-right {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 60px 20px 20px;
        box-shadow: 2px 0 15px rgba(0,0,0,.1);
        transition: left .3s ease;
        z-index: 999;
        display: flex !important;
        overflow-y: auto;
    }
    .header-nav-main.nav-right.mobile-open {
        left: 0;
    }
    .header-nav-main.nav-right > li {
        width: 100%;
    }
    .header-nav-main.nav-right > li > a {
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
    }
    /* Overlay */
    .mobile-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,.5);
        z-index: -1;
    }
}

/* ---- Utility ---- */
.col-inner { position: relative; }
.gap-element { display: block; }
