/*
Theme Name: Cozmo
Author: Cozmo
Description: Custom theme for Cozmo - Giải Pháp Tài Chính Thông Minh
Colors: #008080 (Teal) + #FF7F50 (Coral)
Font: Ubuntu
Version: 1.0
*/

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { font-family: 'Ubuntu', sans-serif; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: #555; background: #f0f7f7; overflow-x: hidden; font-weight: 400; line-height: 1.6; }
a { color: #008080; text-decoration: none; transition: color .3s; }
a:hover { color: #006666; }
img { max-width: 100%; height: auto; display: inline-block; vertical-align: middle; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { color: #2d4059; font-weight: 700; margin: 0 0 .5em; }
h1 { font-size: 2rem; line-height: 1.25; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
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 15px rgba(0,128,128,.08); }
.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: 500; color: #2d4059; letter-spacing: .02em; transition: color .3s; text-transform: uppercase; }
.header-nav > li > a:hover { color: #008080; }
.header-nav > li.current-menu-item > a { color: #008080; }
.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 ===== */
.hero-section {
    background: linear-gradient(135deg, #e8f5f5 0%, #fef0eb 100%);
    padding: 50px 0;
    margin: 0;
    width: 100%;
}
.hero-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 50px;
}
.hero-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 -15px;
}
.hero-col {
    flex: 1;
    padding: 0 15px;
    width: 100%;
}
.hero-image-col {
    flex: 0 0 45%;
    max-width: 45%;
}
.hero-text-col {
    flex: 0 0 55%;
    max-width: 55%;
}
.hero-image-wrapper {
    text-align: center;
    padding: 15px;
}
.hero-main-image {
    width: 100%;
    max-width: 490px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,128,128,.15);
}
.hero-title {
    color: #2d4059;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 18px;
}
.hero-desc {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #666;
    margin-bottom: 30px;
}

/* ===== Buttons ===== */
.button { display: inline-block; padding: 14px 32px; font-size: .95rem; font-weight: 600; text-align: center; border-radius: 8px; transition: all .3s; cursor: pointer; border: none; text-decoration: none; letter-spacing: .02em; }
.btn-primary { background: #FF7F50; color: #fff; box-shadow: 0 4px 15px rgba(255,127,80,.35); }
.btn-primary:hover { background: #e86a3e; color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,127,80,.45); }
.btn-secondary { background: transparent; color: #008080; border: 2px solid #008080; box-shadow: none; }
.btn-secondary:hover { background: #008080; color: #fff; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,128,128,.25); }
.btn-large { padding: 16px 40px; font-size: 1.05rem; }
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }
.hero-buttons .button { min-width: 180px; }

/* ===== Section Heading ===== */
.section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 50px 0 25px;
}
.section-heading h2 {
    color: #2d4059;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}
.heading-icon {
    flex-shrink: 0;
}
.circle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #008080, #00a3a3);
    box-shadow: 0 3px 10px rgba(0,128,128,.25);
}

/* ===== Steps / How it Works ===== */
.steps-row { margin-top: 10px; }
.steps-row .col { margin-bottom: 20px; }
.step-card {
    background: linear-gradient(135deg, #ffffff, #f5fafa);
    border-radius: 14px;
    padding: 30px 22px;
    height: 100%;
    box-shadow: 0 4px 16px rgba(0,128,128,.08);
    transition: all .3s;
    text-align: center;
}
.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,128,128,.15);
}
.step-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}
.gradient-circle {
    background: linear-gradient(135deg, #008080, #00a3a3);
    box-shadow: 0 4px 12px rgba(0,128,128,.25);
}
.gradient-circle-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #008080, #00a3a3);
    box-shadow: 0 6px 18px rgba(0,128,128,.25);
    margin: 0 auto 18px;
}
.step-card h3 {
    color: #2d4059;
    font-size: 1.05rem;
    margin-bottom: 8px;
}
.step-card p {
    font-size: .88rem;
    color: #777;
    line-height: 1.6;
    margin: 0;
}

/* ===== Eligibility ===== */
.eligibility-row { margin-top: 10px; }
.eligibility-row .col { margin-bottom: 20px; }
.eligibility-card {
    background: linear-gradient(135deg, #ffffff, #f5fafa);
    border-radius: 16px;
    padding: 35px 20px;
    text-align: center;
    height: 100%;
    box-shadow: 0 4px 16px rgba(0,128,128,.08);
    transition: all .3s;
}
.eligibility-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,128,128,.15);
}
.eligibility-card p {
    font-size: .95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}
.eligibility-card strong {
    color: #2d4059;
    font-size: 1.02rem;
}

/* ===== Loan Terms ===== */
.loan-terms-row { margin-top: 10px; }
.loan-terms-row .col { margin-bottom: 20px; }
.term-card {
    background: linear-gradient(135deg, #008080, #00a3a3);
    border-radius: 14px;
    padding: 30px 20px;
    text-align: center;
    height: 100%;
    box-shadow: 0 6px 20px rgba(0,128,128,.2);
    transition: all .3s;
}
.term-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,128,128,.3);
}
.term-label {
    color: rgba(255,255,255,.8);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 8px;
    font-weight: 500;
}
.term-value {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
}

/* ===== Loan Example ===== */
.loan-example {
    background: #fff;
    border-radius: 14px;
    padding: 25px 30px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
    border-left: 4px solid #FF7F50;
}
.loan-example p {
    font-size: .92rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: .5em;
}

/* ===== Why Cozmo Section ===== */
.why-row { margin-top: 10px; }
.why-row .col { margin-bottom: 22px; }
.why-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: #fff;
    border-radius: 14px;
    padding: 25px;
    height: 100%;
    box-shadow: 0 4px 16px rgba(0,128,128,.06);
    transition: all .3s;
}
.why-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,128,128,.12);
}
.why-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.why-card-text h3 {
    color: #2d4059;
    font-size: 1rem;
    margin-bottom: 6px;
}
.why-card-text p {
    font-size: .88rem;
    color: #777;
    line-height: 1.6;
    margin: 0;
}

/* ===== CTA Section ===== */
.cta-section {
    text-align: center;
    background: linear-gradient(135deg, #008080, #006666);
    border-radius: 20px;
    padding: 50px 30px;
    margin: 50px 0 30px;
    box-shadow: 0 10px 35px rgba(0,128,128,.2);
}
.cta-section h2 {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 12px;
}
.cta-section p {
    color: rgba(255,255,255,.85);
    font-size: 1.05rem;
    margin-bottom: 25px;
}
.cta-section .btn-primary {
    background: #FF7F50;
    color: #fff;
    box-shadow: 0 4px 15px rgba(255,127,80,.4);
}
.cta-section .btn-primary:hover {
    background: #e86a3e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,127,80,.5);
}

/* ===== Footer ===== */
.footer-wrapper { background: #fff; border-top: 3px solid #008080; }
.break-top { padding-top: 30px; }
.fw500 p { font-weight: 700; color: #008080; }
.footer-wrapper .text p { font-size: .9rem; color: #666; line-height: 1.8; }
.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: 50%; background: linear-gradient(135deg, #008080, #00a3a3); color: #fff !important; font-size: .9rem; transition: all .3s; }
.social-icons a:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,128,128,.3); }

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

/* ===== Page Content ===== */
.content-area .col-inner { padding: 15px 0; }
.page-title { font-size: 1.8rem; color: #2d4059; margin-bottom: 25px; padding-bottom: 12px; border-bottom: 3px solid #FF7F50; display: inline-block; }
.page-content { font-size: .95rem; line-height: 1.85; color: #555; }
.page-content h2 { color: #008080; margin: 30px 0 15px; }
.page-content h3 { color: #2d4059; margin: 25px 0 10px; }
.page-content p { margin-bottom: 1em; line-height: 1.85; }

/* ===== Blog ===== */
.archive-title { font-size: 1.6rem; color: #2d4059; margin-bottom: 30px; padding-bottom: 12px; border-bottom: 3px solid #008080; }
.blog-grid { margin: 0 -10px; }
.blog-card {
    background: #fff;
    border-radius: 14px;
    padding: 25px;
    margin-bottom: 20px;
    height: 100%;
    box-shadow: 0 4px 16px rgba(0,128,128,.06);
    transition: all .3s;
    border-left: 3px solid #008080;
}
.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,128,128,.12);
}
.blog-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.blog-card h3 a { color: #2d4059; text-decoration: none; }
.blog-card h3 a:hover { color: #008080; }
.blog-card-date { font-size: .82rem; color: #aaa; margin-bottom: 10px; }
.blog-card-excerpt { font-size: .9rem; color: #777; line-height: 1.7; margin-bottom: 12px; }
.blog-read-more { color: #FF7F50; font-weight: 600; font-size: .85rem; text-decoration: none; }
.blog-read-more:hover { color: #e86a3e; }

/* ===== Post ===== */
.post-title { font-size: 1.7rem; color: #2d4059; margin-bottom: 10px; }
.post-meta { font-size: .85rem; color: #999; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid #eee; }
.entry-content { font-size: .95rem; line-height: 1.85; color: #555; }
.entry-content h2, .entry-content h3 { margin-top: 30px; }
.entry-content p { margin-bottom: 1em; }

/* ===== FAQ ===== */
.rank-math-block { padding: 20px 0; }
.rank-math-block h2 { color: #2d4059; margin-bottom: 25px; }
.rank-math-list-item { background: #fff; border-radius: 14px; padding: 22px; margin-bottom: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.04); border-left: 3px solid #008080; transition: all .3s; }
.rank-math-list-item:hover { box-shadow: 0 4px 16px rgba(0,128,128,.1); }
.rank-math-question { color: #2d4059; font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.rank-math-answer p { color: #666; font-size: .92rem; line-height: 1.7; }

/* ===== Pagination ===== */
.pagination { text-align: center; padding: 20px 0; }
.pagination a, .pagination span { display: inline-block; padding: 8px 14px; margin: 0 3px; border-radius: 8px; font-size: .9rem; background: #fff; color: #008080; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.pagination .current { background: #008080; color: #fff; }
.pagination a:hover { background: #e8f5f5; }

/* ===== 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%; }
    .mobile-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,.5);
        z-index: -1;
    }
}

/* ===== Responsive ===== */
@media (max-width: 849px) {
    .hero-row { flex-direction: column-reverse; }
    .hero-image-col { flex: 0 0 100%; max-width: 100%; }
    .hero-text-col { flex: 0 0 100%; max-width: 100%; }
    .hero-title { font-size: 1.6rem; }
    .hero-desc { font-size: .95rem; }
    .hero-container { padding: 0 15px; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .button { width: 100%; text-align: center; }
    .col-inner .container-inner, .blog-container-inner { padding: 0 15px; }
    .section-content { padding: 0 15px; }
    .why-card { flex-direction: column; text-align: center; align-items: center; }
    .why-card-icon { margin-bottom: 10px; }
    .section-heading { flex-direction: column; text-align: center; gap: 8px; }
    .cta-section { padding: 30px 20px; }
}

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