/*
Theme Name: MoneyCatPH
Author: Tieumy Network
Description: Custom theme for moneycat-ph.net – Philippine trusted lending platform
Version: 1.0
*/

* { margin:0; padding:0; box-sizing:border-box; }
:root {
  --primary: #6366F1; --primary-dark: #4F46E5;
  --secondary: #EEF2FF; --accent: #4338CA;
  --bg: #FAFAFF; --text: #1E1B4B;
  --gray: #6B7280; --light: #F3F4FF;
  --white: #FFFFFF; --border: #D1D5FF;
  --shadow: 0 4px 20px rgba(99,102,241,0.12);
  --radius: 14px;
}
body { font-family:'Inter','Segoe UI',system-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(--accent); }
.container { max-width:1160px; margin:0 auto; padding:0 20px; }

/* Header */
.site-header { background:var(--white); position:sticky; top:0; z-index:100; box-shadow:0 1px 8px rgba(99,102,241,.08); }
.header-wrap { display:flex; justify-content:space-between; align-items:center; padding:16px 0; }
.logo { font-size:22px; font-weight:800; color:var(--accent); letter-spacing:-.5px; }
.logo span { color:var(--primary); }
.nav-menu { display:flex; gap:24px; list-style:none; }
.nav-menu a { font-weight:500; color:var(--text); font-size:14px; padding:6px 0; position:relative; }
.nav-menu a::after { content:''; position:absolute; bottom:0; left:0; width:0; height:2px; background:var(--primary); transition:width .3s; }
.nav-menu a:hover::after, .nav-menu .current a::after { width:100%; }

/* Banner */
.banner { background:linear-gradient(145deg,var(--accent),var(--primary)); padding:100px 0; color:var(--white); text-align:center; position:relative; overflow:hidden; }
.banner::after { content:'🐱'; position:absolute; right:5%; bottom:-10%; font-size:200px; opacity:.08; }
.banner h1 { font-size:46px; font-weight:900; margin-bottom:16px; line-height:1.1; letter-spacing:-1px; }
.banner p { font-size:18px; opacity:.92; max-width:650px; margin:0 auto 30px; }
.btn { display:inline-block; padding:16px 40px; border-radius:50px; font-weight:700; font-size:15px; cursor:pointer; transition:all .3s; border:none; letter-spacing:.3px; }
.btn-light { background:var(--white); color:var(--accent); }
.btn-light:hover { transform:translateY(-3px); box-shadow:0 10px 30px rgba(0,0,0,.15); }
.btn-border { background:transparent; border:2px solid var(--white); color:var(--white); margin-left:12px; }
.btn-border:hover { background:var(--white); color:var(--accent); }

/* Sections */
section { padding:80px 0; }
.section-label { display:inline-flex; align-items:center; gap:6px; background:var(--secondary); color:var(--accent); padding:4px 14px; border-radius:20px; font-size:12px; font-weight:600; margin-bottom:14px; text-transform:uppercase; letter-spacing:.8px; }
.section-title { font-size:36px; font-weight:900; margin-bottom:10px; letter-spacing:-.5px; }
.section-desc { font-size:16px; color:var(--gray); margin-bottom:45px; max-width:580px; }

/* Grids */
.grid-3 { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:24px; }
.grid-2 { display:grid; grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); gap:30px; }
.box { background:var(--white); border-radius:var(--radius); padding:30px; transition:all .4s; border:1px solid var(--border); }
.box:hover { transform:translateY(-6px); box-shadow:0 12px 35px rgba(99,102,241,.1); }
.box-icon { width:50px; height:50px; background:var(--secondary); border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:24px; margin-bottom:16px; }
.box h3 { font-size:18px; margin-bottom:10px; font-weight:700; }
.box p { font-size:14px; color:var(--gray); line-height:1.7; }

/* Process */
.process-list { display:flex; flex-direction:column; gap:16px; }
.process-item { display:flex; gap:18px; align-items:flex-start; background:var(--white); border-radius:var(--radius); padding:22px; border:1px solid var(--border); transition:all .3s; }
.process-item:hover { border-color:var(--primary); box-shadow:var(--shadow); }
.process-num { width:38px; height:38px; min-width:38px; background:var(--primary); color:var(--white); border-radius:10px; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:16px; }
.process-desc h4 { font-size:16px; margin-bottom:4px; color:var(--accent); }
.process-desc p { font-size:14px; color:var(--gray); }

/* Blog grid */
.article-card { background:var(--white); border-radius:var(--radius); overflow:hidden; border:1px solid var(--border); transition:all .3s; }
.article-card:hover { border-color:var(--primary); box-shadow:0 8px 30px rgba(99,102,241,.08); transform:translateY(-3px); }
.article-card img { width:100%; height:195px; object-fit:cover; }
.article-body { padding:20px; }
.article-body .cat { font-size:12px; color:var(--primary); font-weight:600; text-transform:uppercase; letter-spacing:.5px; margin-bottom:6px; }
.article-body h3 { font-size:17px; margin-bottom:8px; }
.article-body h3 a { color:var(--text); }
.article-body h3 a:hover { color:var(--primary); }
.article-body p { font-size:14px; color:var(--gray); }

/* Faq */
.faq-grid { display:grid; gap:10px; }
.faq-tile { background:var(--white); border-radius:var(--radius); border:1px solid var(--border); overflow:hidden; }
.faq-q { padding:18px 22px; display:flex; justify-content:space-between; align-items:center; font-weight:600; cursor:pointer; color:var(--text); }
.faq-q:hover { background:var(--secondary); }
.faq-q .toggler { font-size:20px; color:var(--primary); transition:transform .3s; }
.faq-tile.open .faq-q .toggler { transform:rotate(45deg); }
.faq-a { padding:0 22px 18px; font-size:14px; color:var(--gray); display:none; line-height:1.8; }

/* Content page */
.content-page { padding:60px 0; max-width:850px; margin:0 auto; }
.content-page h2 { font-size:28px; font-weight:800; margin:35px 0 15px; color:var(--accent); }
.content-page h3 { font-size:21px; font-weight:700; margin:25px 0 12px; color:var(--primary-dark); }
.content-page p { margin-bottom:16px; line-height:1.8; }
.content-page ul { margin:15px 0 15px 25px; }
.content-page ul li { margin-bottom:8px; }
.content-page blockquote { border-left:4px solid var(--primary); padding:15px 20px; margin:20px 0; background:var(--secondary); border-radius:0 8px 8px 0; }

/* Footer */
.site-footer { background:var(--accent); color:var(--white); padding:55px 0 25px; }
.foot-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:35px; margin-bottom:30px; }
.foot-grid h4 { font-size:16px; font-weight:700; margin-bottom:14px; color:#C7D2FE; }
.foot-grid p, .foot-grid a { font-size:14px; color:rgba(255,255,255,.7); line-height:2.3; }
.foot-grid a:hover { color:var(--white); }
.foot-copy { text-align:center; padding-top:22px; border-top:1px solid rgba(255,255,255,.1); font-size:13px; color:rgba(255,255,255,.5); }

@media(max-width:768px) {
  .banner h1 { font-size:28px; }
  .header-wrap { flex-direction:column; gap:10px; }
  .nav-menu { gap:12px; flex-wrap:wrap; }
  .grid-2 { grid-template-columns:1fr; }
}

/* Page styles */
.pg-title { font-size:34px; font-weight:900; margin-bottom:22px; color:var(--accent); letter-spacing:-.5px; }
.pg-meta { color:var(--gray); font-size:14px; margin-bottom:20px; }
.pg-thumb { margin-bottom:25px; border-radius:var(--radius); overflow:hidden; }
.pg-thumb img { width:100%; height:auto; }
.pg-content { line-height:1.8; font-size:16px; }
.pg-content h2 { color:var(--accent); font-size:26px; margin:30px 0 15px; font-weight:800; }
.pg-content h3 { font-size:20px; margin:25px 0 12px; color:var(--primary-dark); font-weight:700; }
.pg-content p { margin-bottom:15px; }
.pg-content ul { margin:15px 0 15px 25px; }
.pg-content ul li { margin-bottom:8px; }
.pg-content blockquote { border-left:4px solid var(--primary); padding:15px 20px; margin:20px 0; background:var(--secondary); border-radius:0 8px 8px 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;
  }
}
