/*
Theme Name: Honeyloan
Author: Tieumy Network
Description: Custom theme for honeyloan.org – Philippine loan comparison platform
Version: 1.0
*/

* { margin:0; padding:0; box-sizing:border-box; }
html { overflow-x: hidden; }
body { overflow-x: hidden; }
img { max-width:100%; height:auto; vertical-align:middle; }
:root {
  --primary: #D4A017; --primary-dark: #B8860B;
  --secondary: #FFF8E7; --accent: #8B4513;
  --bg: #FFFDF5; --text: #2C1810;
  --gray: #6B5B4E; --light: #F5F0E8;
  --white: #FFFFFF; --border: #E8DDD0;
  --shadow: 0 2px 12px rgba(212,160,23,0.15);
  --radius: 12px;
}
body { font-family:'Segoe UI',Roboto,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); border-bottom:3px solid var(--primary); padding:15px 0; position:sticky; top:0; z-index:100; box-shadow:var(--shadow); }
.site-header .container { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; }
.logo { font-size:26px; font-weight:800; color:var(--primary-dark); text-transform:uppercase; letter-spacing:1px; }
.logo span { color:var(--primary); }
.nav-menu { display:flex; gap:25px; list-style:none; }
.nav-menu a { font-weight:600; color:var(--text); padding:5px 0; border-bottom:2px solid transparent; }
.nav-menu a:hover { color:var(--primary); border-bottom-color:var(--primary); }

/* Hero */
.hero { background:linear-gradient(135deg,var(--primary),var(--primary-dark)); color:var(--white); padding:80px 0; text-align:center; }
.hero h1 { font-size:42px; margin-bottom:20px; line-height:1.2; }
.hero p { font-size:18px; opacity:.9; max-width:700px; margin:0 auto 30px; }
.btn { display:inline-block; padding:14px 36px; border-radius:50px; font-weight:700; font-size:16px; cursor:pointer; transition:all .3s; border:none; text-transform:uppercase; letter-spacing:1px; }
.btn-primary { background:var(--white); color:var(--primary-dark); }
.btn-primary:hover { background:var(--secondary); transform:translateY(-2px); box-shadow:0 6px 20px rgba(0,0,0,.2); }
.btn-gold { background:var(--primary); color:var(--white); }
.btn-gold:hover { background:var(--primary-dark); transform:translateY(-2px); }

/* Sections */
section { padding:60px 0; }
.section-title { font-size:32px; color:var(--primary-dark); margin-bottom:10px; text-align:center; font-weight:800; }
.section-sub { text-align:center; color:var(--gray); margin-bottom:40px; font-size:16px; }

/* Features grid */
.features-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:25px; }
.feature-card { background:var(--white); border-radius:var(--radius); padding:30px 25px; box-shadow:var(--shadow); border:1px solid var(--border); transition:all .3s; text-align:center; }
.feature-card:hover { transform:translateY(-5px); box-shadow:0 8px 30px rgba(212,160,23,.2); }
.feature-card .icon { font-size:40px; margin-bottom:15px; }
.feature-card h3 { font-size:20px; color:var(--primary-dark); margin-bottom:12px; }
.feature-card p { color:var(--gray); font-size:14px; }

/* Content */
.content-area { padding:40px 0; }
.content-area h2 { color:var(--primary-dark); margin:30px 0 15px; font-size:26px; }
.content-area h3 { font-size:20px; margin:25px 0 12px; color:var(--accent); }
.content-area p { margin-bottom:15px; color:var(--text); }
.content-area ul { margin:15px 0 15px 25px; }
.content-area ul li { margin-bottom:8px; }

/* Blog */
.blog-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); gap:25px; }
.blog-card { background:var(--white); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); border:1px solid var(--border); transition:all .3s; }
.blog-card:hover { transform:translateY(-3px); box-shadow:0 8px 25px rgba(212,160,23,.15); }
.blog-card img { width:100%; height:200px; object-fit:cover; }
.blog-card-content { padding:20px; }
.blog-card h3 { font-size:18px; margin-bottom:10px; }
.blog-card h3 a { color:var(--text); }
.blog-card h3 a:hover { color:var(--primary); }
.blog-card .meta { font-size:13px; color:var(--gray); margin-bottom:10px; }
.blog-card p { font-size:14px; color:var(--gray); }

/* Steps */
.steps { counter-reset:step; }
.step-item { display:flex; gap:20px; align-items:flex-start; margin-bottom:25px; background:var(--white); padding:20px; border-radius:var(--radius); box-shadow:var(--shadow); border:1px solid var(--border); }
.step-num { counter-increment:step; width:45px; height:45px; min-width:45px; background:var(--primary); color:var(--white); border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:20px; }
.step-content h4 { font-size:17px; color:var(--primary-dark); margin-bottom:5px; }
.step-content p { font-size:14px; color:var(--gray); }

/* FAQ */
.faq-item { background:var(--white); border-radius:var(--radius); padding:20px; margin-bottom:12px; box-shadow:var(--shadow); border:1px solid var(--border); cursor:pointer; }
.faq-question { font-weight:700; font-size:16px; color:var(--text); display:flex; justify-content:space-between; align-items:center; }
.faq-answer { margin-top:12px; font-size:14px; color:var(--gray); display:none; line-height:1.6; }
.faq-item.active .faq-answer { display:block; }

/* Footer */
.site-footer { background:var(--primary-dark); color:var(--white); padding:40px 0 20px; }
.site-footer .container { display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:30px; }
.site-footer h4 { font-size:18px; margin-bottom:15px; color:var(--secondary); }
.site-footer p, .site-footer a { font-size:14px; color:rgba(255,255,255,.8); line-height:2; }
.site-footer a:hover { color:var(--white); }
.footer-bottom { text-align:center; padding-top:20px; margin-top:20px; border-top:1px solid rgba(255,255,255,.1); font-size:13px; color:rgba(255,255,255,.6); }

/* Responsive */
@media(max-width:768px) {
  .hero h1 { font-size:28px; }
  .nav-menu { flex-direction:column; gap:10px; width:100%; margin-top:10px; }
  .features-grid { grid-template-columns:1fr; }
}

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

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

/* Responsive images fix (also covered by global img rule) */
.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;
  }
}
