/*
Theme Name: FinPug
Author: FinPug
Description: Custom theme for FinPug - Vay Tiền Online Nhanh
Version: 1.0

Colors: #32CD32 (Lime Green) + #2F4F4F (Dark Slate Gray)
Font: Open Sans
*/

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { font-family: 'Open Sans', sans-serif; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; color: #555; background: #fafafa; overflow-x: hidden; line-height: 1.7; }
a { color: #2F4F4F; text-decoration: none; transition: color .3s, opacity .3s; }
a:hover { color: #32CD32; }
img { max-width: 100%; height: auto; display: inline-block; vertical-align: middle; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { color: #2F4F4F; font-weight: 700; margin: 0 0 .5em; line-height: 1.3; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.25rem; }
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 & Grid ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.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: sticky; top: 0; background: #fff; box-shadow: 0 2px 20px rgba(47,79,79,0.08); }
.header-wrapper { background: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
#logo { flex-shrink: 0; }
#logo a { display: inline-block; }
#logo img { max-height: 40px; width: auto; }
.header-nav { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav-right { justify-content: flex-end; }
.header-nav > li { margin: 0; position: relative; }
.header-nav > li > a { display: block; padding: 8px 16px; font-size: .88rem; font-weight: 600; color: #2F4F4F; transition: color .3s; }
.header-nav > li > a:hover { color: #32CD32; }
.header-nav > li.current-menu-item > a { color: #32CD32; }

/* CTA button in nav */
.cta-menu-item a.btn-cta-nav {
    display: inline-block;
    padding: 9px 24px;
    background: #32CD32;
    color: #fff !important;
    border-radius: 30px;
    font-weight: 700;
    font-size: .85rem;
    box-shadow: 0 4px 15px rgba(50,205,50,0.35);
    transition: all .3s;
    margin-left: 10px;
}
.cta-menu-item a.btn-cta-nav:hover {
    background: #2db82d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(50,205,50,0.45);
}

.mobile-nav { list-style: none; margin: 0; padding: 0; display: flex; }
.show-for-medium { display: none !important; }
.hide-for-medium { display: block !important; }

/* Hamburger menu */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 5px;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: #2F4F4F;
    border-radius: 2px;
    transition: all .3s;
}

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

.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 999;
    padding: 60px 25px 25px;
    transition: right .3s ease;
    overflow-y: auto;
    box-shadow: -2px 0 20px rgba(0,0,0,0.1);
}
.mobile-menu.open { right: 0; }
.mobile-menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #2F4F4F;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background .3s;
}
.mobile-menu-close:hover { background: #f0f0f0; }
.mobile-menu ul { list-style: none; padding: 0; margin: 0; }
.mobile-menu ul li { margin-bottom: 0; border-bottom: 1px solid #f0f0f0; }
.mobile-menu ul li a { display: block; padding: 14px 0; color: #2F4F4F; font-weight: 500; font-size: .95rem; }
.mobile-menu ul li a:hover { color: #32CD32; }
.cta-mobile-item { margin-top: 15px !important; border-bottom: none !important; }
.cta-mobile-item a.btn-cta-nav {
    display: block;
    text-align: center;
    padding: 12px !important;
    background: #32CD32;
    color: #fff !important;
    border-radius: 30px;
    font-weight: 700;
}

@media (max-width: 849px) {
    .show-for-medium { display: block !important; }
    .hide-for-medium { display: none !important; }
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, #f0faf0 0%, #e8f5e8 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(50,205,50,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero-container {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}
.hero-text { flex: 1; }
.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2F4F4F;
    margin-bottom: 20px;
    line-height: 1.2;
}
.hero-text h1 span { color: #32CD32; }
.hero-text p {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 480px;
}
.hero-image { flex: 0 0 380px; }
.hero-image .img-wrapper {
    width: 380px;
    height: 380px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(50,205,50,0.2);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-image .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 14px 36px;
    font-size: .95rem;
    font-weight: 700;
    text-align: center;
    border-radius: 30px;
    transition: all .3s;
    cursor: pointer;
    border: none;
    text-decoration: none;
    line-height: 1.4;
}
.btn-primary {
    background: #32CD32;
    color: #fff;
    box-shadow: 0 6px 20px rgba(50,205,50,0.35);
}
.btn-primary:hover {
    background: #2db82d;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(50,205,50,0.45);
}
.btn-secondary {
    background: transparent;
    color: #2F4F4F;
    border: 2px solid #2F4F4F;
    box-shadow: none;
}
.btn-secondary:hover {
    background: #2F4F4F;
    color: #fff;
    transform: translateY(-3px);
}
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }

/* ===== Section Common ===== */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}
.section-title h2 {
    font-size: 1.6rem;
    color: #2F4F4F;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #32CD32;
    border-radius: 2px;
}
.section-title p {
    color: #888;
    font-size: 1rem;
    margin-top: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.section-padding { padding: 80px 0; }
.section-gray { background: #f5f5f5; }
.section-white { background: #fff; }

/* ===== Features / How It Works ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.feature-card {
    background: #f5f5f5;
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    transition: all .3s;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-icon svg {
    width: 50px;
    height: 50px;
    stroke: #32CD32;
    fill: none;
    stroke-width: 1.8;
}
.feature-card h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: #2F4F4F;
}
.feature-card p {
    font-size: .9rem;
    color: #888;
    line-height: 1.6;
    margin: 0;
}

/* ===== Who Can Borrow ===== */
.who-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.who-card {
    background: #f5f5f5;
    border-radius: 16px;
    padding: 40px 25px;
    text-align: center;
    transition: all .3s;
}
.who-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.who-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.who-icon svg {
    width: 64px;
    height: 64px;
    stroke: #32CD32;
    fill: none;
    stroke-width: 1.5;
}
.who-card h3 {
    font-size: 1.1rem;
    color: #2F4F4F;
    margin-bottom: 10px;
}
.who-card p {
    font-size: .92rem;
    color: #888;
    line-height: 1.6;
    margin: 0;
}

/* ===== Loan Terms ===== */
.terms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.term-card {
    background: #f5f5f5;
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    transition: all .3s;
}
.term-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}
.term-label {
    font-weight: 700;
    color: #32CD32;
    font-size: .88rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 8px;
}
.term-value {
    color: #2F4F4F;
    font-size: 1rem;
    line-height: 1.7;
}

/* ===== Content Area ===== */
#content { padding: 0; }
.page-wrapper { padding: 0; }
.row-main { max-width: 1100px; margin: 0 auto; padding: 40px 20px; }
.row-main h1 { margin-bottom: 25px; }
.col-inner { padding: 15px 0; }
.col-inner .container-inner, .blog-container-inner { max-width: 800px; margin: 0 auto; }
.content-area .col-inner p { line-height: 1.85; color: #555; font-size: .98rem; }
.content-area .col-inner h2 { margin-top: 35px; margin-bottom: 15px; }
.content-area .col-inner h3 { margin-top: 25px; margin-bottom: 12px; }

/* ===== Blog Style ===== */
.blog-card {
    background: #f5f5f5;
    border-radius: 16px;
    padding: 30px;
    height: 100%;
    transition: all .3s;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.blog-card h3 { margin-bottom: 10px; }
.blog-card h3 a { color: #2F4F4F; text-decoration: none; }
.blog-card h3 a:hover { color: #32CD32; }
.blog-date { font-size: .82rem; color: #999; margin-bottom: 10px; }
.blog-excerpt { font-size: .9rem; color: #777; line-height: 1.7; }
.blog-readmore { margin-top: 12px; }
.blog-readmore a { color: #32CD32; font-weight: 600; font-size: .85rem; }

/* Single post */
.single-post-article h1 { margin-bottom: 10px; }
.post-meta { font-size: .85rem; color: #999; margin-bottom: 25px; }
.entry-content { font-size: .95rem; line-height: 1.85; color: #555; }
.entry-content h2 { margin-top: 35px; }
.entry-content h3 { margin-top: 25px; }
.entry-content p { margin-bottom: 1.2em; }

/* ===== Page Content ===== */
.page-content { max-width: 800px; margin: 0 auto; padding: 40px 20px; }
.page-content h1 { margin-bottom: 25px; }
.page-content p { line-height: 1.85; color: #555; font-size: .98rem; }
.page-content h2 { margin-top: 35px; }
.page-content h3 { margin-top: 25px; }

/* ===== Contact Page ===== */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-top: 30px; }
.contact-info-card {
    background: #f5f5f5;
    border-radius: 16px;
    padding: 30px;
}
.contact-info-card h3 { color: #2F4F4F; margin-bottom: 15px; }
.contact-info-card p { color: #555; font-size: .95rem; margin-bottom: 8px; }

/* ===== FAQ Page ===== */
.faq-list { max-width: 800px; margin: 0 auto; padding: 20px 0; }
.faq-item {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 22px 25px;
    margin-bottom: 12px;
    transition: all .3s;
}
.faq-item h3 {
    color: #2F4F4F;
    font-size: 1.05rem;
    margin-bottom: 8px;
}
.faq-item p {
    color: #777;
    font-size: .95rem;
    line-height: 1.6;
    margin: 0;
}

/* ===== Footer ===== */
.footer-wrapper {
    background: #2F4F4F;
    color: #ccc;
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
}
.footer-logo { margin-bottom: 15px; }
.footer-desc { font-size: .9rem; line-height: 1.7; color: #aaa; }
.footer-col h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #32CD32;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #bbb; font-size: .9rem; transition: color .3s; }
.footer-col ul li a:hover { color: #32CD32; }
.footer-col ul.contact-info li { color: #bbb; font-size: .9rem; }

.social-links { display: flex; gap: 10px; }
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #ccc;
    transition: all .3s;
}
.social-icon:hover {
    background: #32CD32;
    color: #fff;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 25px 0;
    margin-top: 50px;
    text-align: center;
}
.footer-bottom p { font-size: .85rem; color: #888; margin: 0; }
.footer-disclaimer { margin-top: 8px !important; font-size: .8rem; color: #666; }

/* ===== Pagination ===== */
.pagination { text-align: center; padding: 30px 0; }
.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 3px;
    border-radius: 8px;
    background: #f5f5f5;
    color: #2F4F4F;
    font-size: .9rem;
    transition: all .3s;
}
.pagination a:hover { background: #32CD32; color: #fff; }
.pagination .current { background: #32CD32; color: #fff; }

/* ===== Responsive ===== */
@media (max-width: 849px) {
    .hero-container { flex-direction: column; gap: 40px; }
    .hero-text h1 { font-size: 1.8rem; }
    .hero-image { flex: 0 0 auto; }
    .hero-image .img-wrapper { width: 280px; height: 280px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .who-grid, .terms-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .section-padding { padding: 50px 0; }
    .hero-section { padding: 50px 0; }
}
@media (max-width: 549px) {
    .features-grid, .who-grid, .terms-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-text h1 { font-size: 1.5rem; }
    .hero-image .img-wrapper { width: 220px; height: 220px; }
    .hero-buttons { flex-direction: column; }
    .btn { width: 100%; text-align: center; }
}

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