/*
Theme Name: CashExpress
Author: Tieumy Network
Description: Custom theme for cash-express.info – Philippine quick loan service
Version: 1.0
*/

* { margin:0; padding:0; box-sizing:border-box; }
:root {
  --primary: #0EA5A0; --primary-dark: #0B8A86;
  --secondary: #E8F8F7; --accent: #065F5C;
  --bg: #F4FCFB; --text: #134E4A;
  --gray: #5B7B79; --light: #F0FBFA;
  --white: #FFFFFF; --border: #C8E6E5;
  --shadow: 0 3px 15px rgba(14,165,160,0.12);
  --radius: 10px;
}
body { font-family:'Inter','Segoe UI',sans-serif; line-height:1.7; color:var(--text); background:var(--bg); }
a { color:var(--primary); text-decoration:none; transition:all .3s; }
a:hover { color:var(--primary-dark); }
.container { max-width:1140px; margin:0 auto; padding:0 20px; }

/* Header */
.site-header { background:var(--white); box-shadow:0 2px 10px rgba(0,0,0,.06); position:sticky; top:0; z-index:100; }
.header-inner { display:flex; justify-content:space-between; align-items:center; padding:18px 20px; }
.logo { font-size:24px; font-weight:900; color:var(--primary-dark); }
.logo span { color:var(--primary); }
.nav-menu { display:flex; gap:28px; list-style:none; }
.nav-menu a { font-weight:500; color:var(--text); font-size:15px; }
.nav-menu a:hover, .nav-menu .current a { color:var(--primary); }

/* Hero */
.hero-block { background:linear-gradient(160deg,var(--primary-dark),var(--primary)); position:relative; overflow:hidden; padding:90px 0; }
.hero-block::before { content:''; position:absolute; top:-50%; right:-20%; width:500px; height:500px; background:rgba(255,255,255,.05); border-radius:50%; }
.hero-content { position:relative; z-index:1; text-align:center; color:var(--white); }
.hero-content h1 { font-size:44px; margin-bottom:18px; font-weight:900; line-height:1.15; }
.hero-content p { font-size:18px; opacity:.9; max-width:680px; margin:0 auto 28px; }
.btn { display:inline-block; padding:15px 38px; border-radius:8px; font-weight:700; font-size:15px; cursor:pointer; transition:all .3s; border:none; text-transform:uppercase; letter-spacing:.5px; }
.hero-buttons { display:flex; gap:16px; justify-content:center; flex-wrap:wrap; margin-top:28px; }
.hero-buttons .btn { min-width:220px; flex:1; text-align:center; }
.btn-cta { background:var(--white); color:var(--primary-dark); box-shadow:0 4px 14px rgba(0,0,0,.1); }
.btn-cta:hover { transform:translateY(-3px); box-shadow:0 8px 25px rgba(0,0,0,.15); }
.btn-outline { background:transparent; border:2px solid var(--white); color:var(--white); }
.btn-outline:hover { background:var(--white); color:var(--primary-dark); }

/* Sections */
section { padding:70px 0; }
.section-tag { display:inline-block; background:var(--secondary); color:var(--primary-dark); padding:5px 16px; border-radius:20px; font-size:13px; font-weight:600; margin-bottom:12px; text-transform:uppercase; letter-spacing:1px; }
.section-title { font-size:34px; font-weight:900; margin-bottom:12px; color:var(--text); }
.section-sub { color:var(--gray); font-size:16px; margin-bottom:40px; max-width:600px; }

/* Cards */
.card-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(270px,1fr)); gap:24px; }
.card { background:var(--white); border-radius:var(--radius); padding:32px 25px; text-align:center; border:1px solid var(--border); transition:all .3s; }
.card:hover { border-color:var(--primary); box-shadow:0 6px 20px rgba(14,165,160,.12); transform:translateY(-4px); }
.card-icon { width:60px; height:60px; background:var(--secondary); border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:26px; margin:0 auto 16px; }
.card h3 { font-size:19px; margin-bottom:10px; color:var(--accent); }
.card p { font-size:14px; color:var(--gray); }

/* Partners section */
.partners-section { background:var(--light); padding:70px 0; }
.partners-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:20px; max-width:860px; margin:0 auto; }

.partner-card { background:var(--white); border-radius:12px; border:1px solid var(--border); overflow:hidden; transition:all .3s; display:flex; flex-direction:column; }
.partner-card:hover { border-color:var(--primary); box-shadow:0 8px 25px rgba(14,165,160,.14); transform:translateY(-4px); }

.partner-top { padding:20px 20px 0; }
.partner-badge { display:inline-block; background:#FFF3CD; color:#856404; font-size:12px; font-weight:700; padding:3px 12px; border-radius:4px; margin-bottom:12px; }
.partner-brand { display:flex; align-items:center; gap:14px; }
.partner-logo { width:56px; height:56px; border-radius:12px; object-fit:cover; flex-shrink:0; }
.partner-brand-text { flex:1; min-width:0; }
.partner-name { font-size:18px; font-weight:800; color:var(--accent); margin:0 0 2px; line-height:1.2; }
.partner-type { font-size:12px; color:var(--gray); text-transform:uppercase; letter-spacing:.5px; font-weight:500; }

.partner-details { padding:16px 20px; display:flex; flex-direction:column; gap:8px; }
.detail-row { display:flex; justify-content:space-between; align-items:center; font-size:14px; padding:4px 0; border-bottom:1px dashed #E8ECEF; }
.detail-row:last-child { border-bottom:none; }
.detail-label { color:var(--gray); font-size:13px; }
.detail-value { color:var(--accent); font-weight:700; font-size:13px; }

.partner-card .partner-cta { display:block; text-align:center; padding:12px 20px; margin:0 20px 16px; background:var(--primary); color:var(--white); border-radius:8px; font-size:14px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; transition:all .3s; text-decoration:none; }
.partner-card:hover .partner-cta { background:var(--primary-dark); }

.partner-footer { text-align:center; font-size:12px; color:var(--gray); padding:0 20px 16px; }

@media(max-width:768px) {
  .partners-grid { grid-template-columns:repeat(2,1fr); gap:15px; }
  .partner-top { padding:16px 16px 0; }
  .partner-details { padding:12px 16px; gap:6px; }
  .partner-card .partner-cta { margin:0 16px 12px; padding:10px 16px; font-size:13px; }
  .partner-footer { padding:0 16px 12px; font-size:11px; }
  .detail-row { font-size:13px; }
}
@media(max-width:480px) {
  .partners-grid { grid-template-columns:1fr; max-width:360px; }
}

/* Steps row */
.steps-row { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.step-block { background:var(--white); border-radius:var(--radius); padding:25px; border-left:4px solid var(--primary); box-shadow:var(--shadow); }
.step-block .num { font-size:32px; font-weight:900; color:var(--primary); opacity:.3; margin-bottom:5px; }
.step-block h4 { font-size:17px; margin-bottom:8px; color:var(--accent); }
.step-block p { font-size:14px; color:var(--gray); }

/* Blog Cards */
.blog-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:24px; }
.post-card { background:var(--white); border-radius:var(--radius); overflow:hidden; border:1px solid var(--border); transition:all .3s; }
.post-card:hover { box-shadow:0 8px 25px rgba(14,165,160,.1); }
.post-card img { width:100%; height:190px; object-fit:cover; }
.post-body { padding:20px; }
.post-body .date { font-size:13px; color:var(--gray); margin-bottom:8px; }
.post-body h3 { font-size:18px; margin-bottom:8px; }
.post-body h3 a { color:var(--text); }
.post-body h3 a:hover { color:var(--primary); }
.post-body p { font-size:14px; color:var(--gray); }

/* FAQ */
.faq-list { max-width:800px; margin:0 auto; }
.faq-entry { background:var(--white); border-radius:var(--radius); margin-bottom:10px; border:1px solid var(--border); overflow:hidden; }
.faq-q { padding:16px 20px; font-weight:600; cursor:pointer; display:flex; justify-content:space-between; align-items:center; color:var(--accent); }
.faq-q:hover { background:var(--secondary); }
.faq-a { padding:0 20px 16px; font-size:14px; color:var(--gray); display:none; line-height:1.7; }
.faq-entry.open .faq-a { display:block; }

/* Content page */
.page-content { padding:50px 0; max-width:800px; margin:0 auto; }
.page-content h2 { color:var(--accent); font-size:28px; margin:35px 0 15px; }
.page-content h3 { font-size:22px; margin:25px 0 12px; color:var(--primary-dark); }
.page-content p { margin-bottom:16px; line-height:1.8; }
.page-content ul { margin:15px 0 15px 25px; }
.page-content ul li { margin-bottom:8px; }

/* Footer */
.site-footer { background:var(--accent); color:var(--white); padding:50px 0 20px; }
.footer-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:30px; margin-bottom:30px; }
.footer-grid h4 { font-size:17px; margin-bottom:14px; color:#A7F3D0; }
.footer-grid p, .footer-grid a { font-size:14px; color:rgba(255,255,255,.75); line-height:2.2; }
.footer-grid a:hover { color:var(--white); }
.footer-copy { text-align:center; padding-top:20px; border-top:1px solid rgba(255,255,255,.1); font-size:13px; color:rgba(255,255,255,.5); }

@media(max-width:768px) {
  .hero-content h1 { font-size:28px; }
  .steps-row { grid-template-columns:1fr; }
  .header-inner { flex-direction:column; gap:12px; }
  .nav-menu { gap:15px; flex-wrap:wrap; justify-content:center; }
}

/* Page styles */
.page-title { font-size:34px; font-weight:900; margin-bottom:24px; color:var(--accent); }
.page-body-content { font-size:16px; line-height:1.8; }
.page-body-content h2 { color:var(--accent); font-size:26px; margin:30px 0 15px; }
.page-body-content h3 { font-size:20px; margin:25px 0 12px; color:var(--primary-dark); }
.page-body-content p { margin-bottom:15px; }
.page-body-content ul { margin:15px 0 15px 25px; }
.page-body-content ul li { margin-bottom:8px; }

/* Single post */
.article-single { max-width:800px; margin:0 auto; }
.article-title { font-size:34px; font-weight:900; margin-bottom:10px; color:var(--accent); }
.article-date { color:var(--gray); font-size:14px; margin-bottom:20px; }
.article-feat-image { margin-bottom:25px; border-radius:var(--radius); overflow:hidden; }
.article-feat-image img { width:100%; height:auto; }
.article-content { line-height:1.8; font-size:16px; }
.article-content h2 { color:var(--accent); font-size:24px; margin:30px 0 15px; }
.article-content h3 { font-size:20px; margin:25px 0 12px; color:var(--primary-dark); }
.article-content p { margin-bottom:15px; }
.article-content ul { margin:15px 0 15px 25px; }
.article-content ul li { margin-bottom:8px; }

/* Full-width homepage sections */
.home-section { padding:70px 0; }
.home-section-alt { background:var(--light); padding:70px 0; }

/* Responsive images fix */
img { max-width:100%; height:auto; }
.post-thumbnail, .article-feat-image, .pg-thumb { overflow:hidden; border-radius:var(--radius); }
.post-thumbnail img, .article-feat-image img, .pg-thumb img { width:100%; height:auto; max-width:100%; }
@media(max-width:768px) {
  .post-thumbnail, .article-feat-image, .pg-thumb { max-height:300px; }
  .post-thumbnail img, .article-feat-image img, .pg-thumb img { width:100%; height:auto; object-fit:cover; }
}

/* Responsive fix - force images to not overflow */
.single-post .post-thumbnail img,
.article-single .article-feat-image img,
.post-single .pg-thumb img {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  display: block;
}
.post-content img,
.article-content img,
.pg-content img {
  max-width: 100% !important;
  height: auto !important;
}
@media(max-width:480px) {
  .single-post, .article-single, .post-single {
    padding: 0;
  }
  .post-thumbnail, .article-feat-image, .pg-thumb {
    margin-left: -20px;
    margin-right: -20px;
    border-radius: 0;
  }
  .post-thumbnail img, .article-feat-image img, .pg-thumb img {
    border-radius: 0;
  }
}
