/* Shared modern theme for listing pages (home, projects). Scoped under .hm-page */

.hm-page{
  --hm-blue:#1f7ae0;
  --hm-blue-dark:#1766c2;
  --hm-blue-soft:#eaf3fd;
  --hm-border:#e3e8f0;
  --hm-text:#14213d;
  --hm-muted:#5b6475;
  background:#f4f7fb;
  font-family:'Outfit',Arial,sans-serif;
  color:var(--hm-text);
  padding-bottom:30px;
}
.hm-page *{box-sizing:border-box;}

/* Banner + category slider (include/category.php) */
.hm-page .containerRow > .paddingrow{padding:24px 12px 8px !important;}
.hm-page .carousel{border-radius:16px;overflow:hidden;box-shadow:0 10px 30px rgba(20,33,61,.12);}
.hm-page .carousel img{display:block;}
.hm-page .items-card{
  border:1px solid #edf1f6;border-radius:14px;
  box-shadow:0 4px 16px rgba(20,33,61,.06);
  padding:18px 12px;
  transition:transform .2s, box-shadow .2s, border-color .2s;
}
.hm-page .items-card:hover{
  transform:translateY(-3px);
  border-color:#bcd3ef;
  box-shadow:0 10px 24px rgba(31,122,224,.15);
}
.hm-page .items-card img{height:60px;object-fit:contain;}
.hm-page .category_title{
  font-family:'Outfit',Arial,sans-serif !important;
  font-size:18px !important;font-weight:600;color:var(--hm-text) !important;
  margin:12px 0 0 !important;
}
.hm-page .owl-carousel .owl-stage-outer{padding:6px 2px 12px;}
.hm-page .owl-theme .owl-dots .owl-dot.active span,
.hm-page .owl-theme .owl-dots .owl-dot:hover span{background:var(--hm-blue);}

.hm-container{margin-top:10px;}
/* Wider content on big screens so it lines up with the full-width category slider */
@media (min-width:992px){.hm-container{width:auto;max-width:none;padding-left:27px;padding-right:27px;}}
.hm-section-head{margin:0 0 18px;}
.hm-section-title{
  font-family:'Outfit',Arial,sans-serif;
  font-size:28px;font-weight:700;color:var(--hm-text);margin:0;
  display:flex;align-items:center;gap:12px;
}
.hm-section-title:before{
  content:"";width:6px;height:28px;border-radius:4px;background:var(--hm-blue);
}
.hm-section-sub{color:var(--hm-muted);font-size:16px;margin:6px 0 0 18px;}

/* Post cards */
.hm-card{
  display:flex;gap:24px;
  background:#fff;border:1px solid #edf1f6;border-radius:16px;
  box-shadow:0 6px 24px rgba(20,33,61,.06);
  padding:18px;margin-bottom:22px;
  transition:box-shadow .2s, border-color .2s;
}
.hm-card:hover{border-color:#cfe0f5;box-shadow:0 12px 30px rgba(20,33,61,.1);}
.hm-thumb{
  flex:0 0 40%;max-width:40%;
  border-radius:12px;overflow:hidden;
  border:1px solid var(--hm-border);background:#f8fafc;
  align-self:flex-start;
}
.hm-thumb img{width:100%;display:block;transition:transform .3s;}
.hm-card:hover .hm-thumb img{transform:scale(1.03);}
.hm-body{flex:1;min-width:0;display:flex;flex-direction:column;}
.hm-title{
  font-family:'Outfit',Arial,sans-serif;
  font-size:22px;font-weight:700;line-height:1.3;margin:2px 0 12px;
}
.hm-title a{color:var(--hm-text) !important;text-decoration:none !important;}
.hm-title a:hover{color:var(--hm-blue) !important;}
.hm-meta{display:flex;flex-wrap:wrap;gap:8px 16px;margin-bottom:12px;font-size:14px;color:var(--hm-muted);}
.hm-meta > *{display:inline-flex;align-items:center;gap:6px;color:var(--hm-muted) !important;text-decoration:none !important;}
.hm-meta i{color:var(--hm-blue);}
.hm-meta span a{color:var(--hm-blue) !important;font-weight:500;}
.hm-excerpt{color:#4a5363;font-size:15px;line-height:1.6;margin:0 0 16px;}
.hm-footer{display:flex;align-items:center;gap:10px;margin-top:auto;flex-wrap:wrap;}
.hm-badge{
  display:inline-flex;align-items:center;
  border-radius:999px;padding:6px 14px;font-size:14px;font-weight:600;
}
.hm-badge-free{background:#e8f8ee;color:#1a8f4b;}
.hm-badge-paid{background:#fff3e0;color:#d35400;}
.hm-read{
  display:inline-flex;align-items:center;gap:8px;
  background:var(--hm-blue);color:#fff !important;text-decoration:none !important;
  border-radius:10px;padding:8px 18px;font-size:15px;font-weight:600;
  transition:background-color .15s;
}
.hm-read:hover{background:var(--hm-blue-dark);}
.hm-wa{
  margin-left:auto;
  width:40px;height:40px;border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;
  background:#e8f8ee;color:#1faa59 !important;font-size:20px;text-decoration:none !important;
}
.hm-wa:hover{background:#d3f2df;}

/* Pagination */
.hm-pagination .pagination{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 20px;}
.hm-pagination .pagination > li > a,
.hm-pagination .pagination > li > span{
  border-radius:10px !important;border:1px solid var(--hm-border);
  min-width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;
  padding:0 14px;margin:0;color:var(--hm-text);font-weight:600;background:#fff;
}
.hm-pagination .pagination > li > a:hover{border-color:var(--hm-blue);color:var(--hm-blue);}
.hm-pagination .pagination > .active > a{background:var(--hm-blue);border-color:var(--hm-blue);color:#fff;}

/* Sidebar */
.hm-page .rightBar{padding:0;}
.hm-sidebar{
  background:#fff;border:1px solid #edf1f6;border-radius:16px;
  box-shadow:0 6px 24px rgba(20,33,61,.06);
  padding:22px 20px !important;margin-top:0;margin-bottom:24px;
}
.hm-sidebar h5{font-family:'Outfit',Arial,sans-serif;font-weight:600;}
.hm-sidebar input[type="text"]{border-radius:8px;border:1px solid var(--hm-border);padding:8px 10px;}
.hm-sidebar button[type="submit"]{border-radius:8px;padding:6px 14px !important;}
.hm-sidebar img{border-radius:6px;}

@media (max-width:767px){
  .hm-card{flex-direction:column;gap:16px;padding:14px;}
  .hm-thumb{flex:none;max-width:100%;width:100%;}
  .hm-title{font-size:20px;}
  .hm-section-title{font-size:23px;}
}

/* Page banner */
.hm-hero{
  position:relative;overflow:hidden;
  background:linear-gradient(120deg,#1f7ae0 0%,#2196f3 60%,#42a8f5 100%);
  padding:44px 20px 50px;
  text-align:center;
}
.hm-hero:before,.hm-hero:after{
  content:"";position:absolute;border-radius:50%;background:rgba(255,255,255,.08);
}
.hm-hero:before{width:260px;height:260px;right:-60px;top:-110px;}
.hm-hero:after{width:180px;height:180px;left:-50px;bottom:-90px;}
.hm-hero-inner{position:relative;max-width:900px;margin:0 auto;}
.hm-hero-chip{
  display:inline-flex;align-items:center;gap:8px;
  background:rgba(255,255,255,.18);color:#fff;
  border-radius:999px;padding:6px 16px;font-size:14px;font-weight:500;
}
.hm-hero h1{
  font-family:'Outfit',Arial,sans-serif;
  color:#fff;font-size:40px;font-weight:700;line-height:1.25;margin:14px 0 10px;
}
.hm-hero p{color:rgba(255,255,255,.9);font-size:17px;margin:0;}

@media (max-width:600px){
  .hm-hero{padding:32px 16px 38px;}
  .hm-hero h1{font-size:28px;}
  .hm-hero p{font-size:15px;}
}

.hm-badge-project{background:var(--hm-blue-soft,#eaf3fd);color:var(--hm-blue,#1f7ae0);}

/* Quiz list */
.hm-quiz-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:24px;
  padding:28px 0 20px;
}
.hm-quiz-card{
  display:flex;flex-direction:column;
  background:#fff;border:1px solid #edf1f6;border-radius:16px;overflow:hidden;
  box-shadow:0 6px 24px rgba(20,33,61,.06);
  transition:transform .2s, box-shadow .2s, border-color .2s;
}
.hm-quiz-card:hover{transform:translateY(-3px);border-color:#cfe0f5;box-shadow:0 12px 30px rgba(20,33,61,.12);}
.hm-quiz-thumb{position:relative;display:block;aspect-ratio:16/9;background:#eef3f9;overflow:hidden;}
.hm-quiz-thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.hm-quiz-cat{
  position:absolute;left:12px;top:12px;
  background:rgba(255,255,255,.92);color:var(--hm-blue,#1f7ae0);
  border-radius:999px;padding:4px 12px;font-size:13px;font-weight:600;
}
.hm-quiz-body{padding:18px 18px 6px;flex:1;}
.hm-quiz-body .hm-title{font-size:20px;margin:0 0 14px;}
.hm-quiz-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;}
.hm-quiz-stats > div{
  background:#f4f7fb;border:1px solid var(--hm-border,#e3e8f0);border-radius:10px;
  padding:8px 4px;text-align:center;
}
.hm-quiz-stats b{display:block;font-size:18px;font-weight:700;color:var(--hm-text,#14213d);}
.hm-quiz-stats span{font-size:12px;color:var(--hm-muted,#5b6475);}
.hm-quiz-footer{display:flex;gap:10px;padding:16px 18px 18px;}
.hm-quiz-footer .hm-read{flex:1;justify-content:center;border:0;cursor:pointer;font-family:inherit;}
.hm-btn-orange{background:#fa4b2a !important;}
.hm-btn-orange:hover{background:#e03d1e !important;}
.hm-btn-light{background:var(--hm-blue-soft,#eaf3fd) !important;color:var(--hm-blue,#1f7ae0) !important;}
.hm-btn-light:hover{background:#d8e9fb !important;}

/* Post query */
.hm-form-card{
  background:#fff;border:1px solid #edf1f6;border-radius:16px;
  box-shadow:0 6px 24px rgba(20,33,61,.06);
  padding:26px;margin-bottom:28px;
}
.hm-form-title{
  display:flex;align-items:center;gap:12px;
  font-family:'Outfit',Arial,sans-serif;font-size:24px;font-weight:700;color:var(--hm-text,#14213d);
  margin:0 0 20px;
}
.hm-form-title i{color:var(--hm-blue,#1f7ae0);}
.hm-field{margin-bottom:18px;}
.hm-field label{display:block;font-weight:600;font-size:15px;margin-bottom:8px;color:var(--hm-text,#14213d);}
.hm-field .form-control{
  height:auto;border-radius:10px;border:1px solid var(--hm-border,#e3e8f0);
  padding:11px 14px;font-size:15px;box-shadow:none;
}
.hm-field .form-control:focus{border-color:var(--hm-blue,#1f7ae0);box-shadow:0 0 0 3px rgba(31,122,224,.12);}
.hm-field .cke{border-radius:10px;overflow:hidden;border-color:var(--hm-border,#e3e8f0);}
.hm-submit{
  display:block;width:100%;
  background:var(--hm-blue,#1f7ae0);color:#fff;border:0;border-radius:10px;
  padding:13px 16px;font-family:'Outfit',Arial,sans-serif;font-size:17px;font-weight:600;cursor:pointer;
  transition:background-color .15s;
}
.hm-submit:hover{background:var(--hm-blue-dark,#1766c2);}
.hm-alert{background:#fdecec;color:#c62828;border-radius:10px;padding:10px 14px;font-size:15px;}
.hm-query-card{align-items:flex-start;}
.hm-avatar{flex:0 0 72px;}
.hm-avatar img{width:72px;height:72px;border-radius:50%;object-fit:cover;border:3px solid var(--hm-blue-soft,#eaf3fd);display:block;}
.hm-more{text-align:center;margin:6px 0 24px;}
@media (max-width:767px){
  .hm-form-card{padding:18px;}
  .hm-query-card{flex-direction:row;}
  .hm-avatar{flex:0 0 52px;}
  .hm-avatar img{width:52px;height:52px;}
}

/* Search results */
.hm-hero-search{
  position:relative;display:flex;align-items:center;
  max-width:620px;margin:22px auto 0;
  background:#fff;border-radius:12px;padding:6px;
  box-shadow:0 10px 30px rgba(10,40,90,.2);
  text-align:left;
}
.hm-hero-search > i{position:absolute;left:20px;color:#8a93a4;font-size:16px;}
.hm-hero-search input{
  flex:1;min-width:0;border:0;outline:0;background:transparent;
  padding:10px 12px 10px 42px;font-family:'Outfit',Arial,sans-serif;font-size:16px;color:#14213d;
}
.hm-hero-search button{
  border:0;border-radius:9px;background:var(--hm-blue,#1f7ae0);color:#fff;
  padding:10px 22px;font-family:'Outfit',Arial,sans-serif;font-size:15px;font-weight:600;cursor:pointer;
}
.hm-hero-search button:hover{background:var(--hm-blue-dark,#1766c2);}
.hm-hero-search .ls-panel{top:calc(100% + 10px);}

.hm-empty{
  background:#fff;border:1px solid #edf1f6;border-radius:16px;
  box-shadow:0 6px 24px rgba(20,33,61,.06);
  padding:40px 24px;text-align:center;margin-bottom:24px;
}
.hm-empty-icon{
  width:64px;height:64px;border-radius:50%;margin:0 auto 14px;
  background:var(--hm-blue-soft,#eaf3fd);color:var(--hm-blue,#1f7ae0);
  display:flex;align-items:center;justify-content:center;font-size:26px;
}
.hm-empty h3{font-family:'Outfit',Arial,sans-serif;font-size:22px;font-weight:700;margin:0 0 6px;color:var(--hm-text,#14213d);}
.hm-empty p{color:var(--hm-muted,#5b6475);margin:0 0 18px;}
.hm-empty-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;}
.hm-empty-chips a{
  background:#f4f7fb;border:1px solid var(--hm-border,#e3e8f0);border-radius:999px;
  padding:6px 14px;color:var(--hm-text,#14213d) !important;text-decoration:none !important;font-size:14px;
}
.hm-empty-chips a:hover{border-color:var(--hm-blue,#1f7ae0);background:var(--hm-blue-soft,#eaf3fd);}
@media (max-width:600px){
  .hm-hero-search input{font-size:15px;}
  .hm-hero-search button{padding:10px 14px;}
}
.hm-hero--search{overflow:visible;z-index:5;}
.hm-hero--search:before{right:0;top:0;width:220px;height:150px;border-radius:0 0 0 160px;}
.hm-hero--search:after{left:0;bottom:0;width:140px;height:100px;border-radius:0 140px 0 0;}

/* Contact */
.hm-contact-info{
  background:#fff;border:1px solid #edf1f6;border-radius:16px;
  box-shadow:0 6px 24px rgba(20,33,61,.06);
  padding:10px 22px;margin-bottom:24px;
}
.hm-info-item{display:flex;gap:16px;padding:18px 0;border-bottom:1px solid var(--hm-border,#e3e8f0);}
.hm-info-item:last-child{border-bottom:0;}
.hm-info-icon{
  flex:0 0 46px;height:46px;border-radius:12px;
  background:var(--hm-blue-soft,#eaf3fd);color:var(--hm-blue,#1f7ae0);
  display:flex;align-items:center;justify-content:center;font-size:20px;
}
.hm-info-item h4{font-family:'Outfit',Arial,sans-serif;font-size:16px;font-weight:700;margin:2px 0 4px;color:var(--hm-text,#14213d);}
.hm-info-item p{margin:0;color:var(--hm-muted,#5b6475);font-size:15px;line-height:1.55;word-break:break-word;}
.hm-info-item a{color:var(--hm-blue,#1f7ae0);}
.hm-form-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:0 16px;}
.hm-field label.error{display:block;margin:6px 0 0;font-size:13px;color:#c62828;font-weight:500;}
.hm-field .form-control.error{border-color:#e57373;}
.hm-field textarea.form-control{resize:vertical;min-height:140px;}
@media (max-width:767px){
  .hm-form-grid{grid-template-columns:1fr;}
}

/* ---------- Detail pages (post / source code) ---------- */
.pd-page{
  --pd-blue:#1f7ae0;
  --pd-blue-dark:#1766c2;
  --pd-blue-soft:#eaf3fd;
  --pd-border:#e3e8f0;
  --pd-text:#14213d;
  --pd-muted:#5b6475;
  background:#f4f7fb;
  font-family:'Outfit',Arial,sans-serif;
  color:var(--pd-text);
  padding-bottom:30px;
}
.pd-page *{box-sizing:border-box;}

.pd-hero{
  position:relative;overflow:hidden;
  background:linear-gradient(120deg,#1f7ae0 0%,#2196f3 60%,#42a8f5 100%);
  padding:44px 20px 52px;
  text-align:center;
}
.pd-hero:before,.pd-hero:after{
  content:"";position:absolute;border-radius:50%;background:rgba(255,255,255,.08);
}
.pd-hero:before{width:260px;height:260px;right:-60px;top:-110px;}
.pd-hero:after{width:180px;height:180px;left:-50px;bottom:-90px;}
.pd-hero-inner{position:relative;max-width:980px;margin:0 auto;}
.pd-chip{
  display:inline-flex;align-items:center;gap:8px;
  background:rgba(255,255,255,.18);color:#fff;
  border-radius:999px;padding:6px 16px;font-size:14px;font-weight:500;letter-spacing:.3px;
}
.pd-hero .mainTitle{
  font-family:'Outfit',Arial,sans-serif;
  color:#fff;font-size:40px;font-weight:700;line-height:1.25;
  margin:16px 0 18px;
}
.pd-hero-meta{
  display:flex;flex-wrap:wrap;justify-content:center;gap:10px 26px;
  color:rgba(255,255,255,.92);font-size:16px;
}
.pd-hero-meta i{margin-right:6px;}

.pd-container{margin-top:-26px;position:relative;}
.pd-col-main,.pd-col-side{padding-top:0;}

.pd-card{
  background:#fff;
  border-radius:14px;
  box-shadow:0 6px 24px rgba(20,33,61,.07);
  border:1px solid #edf1f6;
}

.pd-article{padding:22px;margin-bottom:24px;}
.pd-cover{
  border-radius:12px;overflow:hidden;
  border:1px solid var(--pd-border);
  background:#f8fafc;
}
.pd-cover img{width:100%;display:block;}

.pd-article .b-bottom{padding:24px 6px 4px;word-break:break-word;}
.pd-article .headerTitle{
  display:flex;align-items:flex-start;justify-content:space-between;gap:16px;
  font-family:'Outfit',Arial,sans-serif;
  color:var(--pd-text);font-size:30px;font-weight:700;line-height:1.3;
  margin:0 0 16px;
}
.pd-share{
  flex-shrink:0;
  display:inline-flex;align-items:center;gap:8px;
  background:#e8f8ee;color:#1faa59 !important;
  border-radius:999px;padding:8px 16px;margin-top:4px;
  font-size:15px;font-weight:600;text-decoration:none !important;
}
.pd-share i{font-size:20px;}
.pd-share:hover{background:#d3f2df;}

.pd-meta{
  display:flex;flex-wrap:wrap;gap:10px;
  padding-bottom:20px;margin-bottom:20px;
  border-bottom:1px solid var(--pd-border);
}
.pd-meta-item{
  display:inline-flex;align-items:center;gap:8px;
  background:#f4f7fb;border:1px solid var(--pd-border);
  border-radius:999px;padding:7px 14px;
  color:var(--pd-muted) !important;font-size:14px;font-weight:500;
  text-decoration:none !important;
}
.pd-meta-item i{color:var(--pd-blue);}
.pd-meta-item a{color:var(--pd-blue);font-weight:600;}
a.pd-meta-item:hover{border-color:#bcd3ef;}

.pd-actions{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:6px;}
.pd-actions:empty{display:none;}
.pd-action{flex:1 1 180px;}
.pd-action a,.pd-action form{display:block;margin:0;}
.pd-action .watch_video,
.pd-action .view_demo,
.pd-action .download_source_code{
  width:100%;margin:0;
  font-family:'Outfit',Arial,sans-serif;
  font-size:16px;font-weight:600;
  border-radius:10px;padding:12px 16px;
  transition:background-color .15s,color .15s;
}

.pd-content{
  margin-top:22px;
  font-size:17px;line-height:1.75;color:#2b3445;
}
.pd-content img{max-width:100%;height:auto;border-radius:8px;}
.pd-content h1,.pd-content h2,.pd-content h3,.pd-content h4{
  font-family:'Outfit',Arial,sans-serif;color:var(--pd-text);font-weight:700;margin-top:28px;
}
.pd-content pre{border-radius:10px;overflow-x:auto;max-width:100%;}
.pd-content pre,.pd-content code{font-family:Consolas,Monaco,'Courier New',monospace;}
.pd-content table{max-width:100%;}

.pd-comments{padding:26px;margin-bottom:24px;}
.pd-section-title{
  display:flex;align-items:center;gap:12px;
  font-family:'Outfit',Arial,sans-serif;
  font-size:24px;font-weight:700;color:var(--pd-text);margin:0 0 18px;
}
.pd-section-title i{color:var(--pd-blue);}
.pd-count{
  background:var(--pd-blue-soft);color:var(--pd-blue);
  border-radius:999px;padding:2px 12px;font-size:15px;font-weight:600;
}
.pd-alert{
  background:#fdecec;color:#c62828;border-radius:10px;padding:10px 14px;font-size:15px;
}
.pd-comments .coment-form textarea{border-radius:10px;border-color:var(--pd-border);}
.pd-btn-comment{
  display:block;width:100%;margin-top:12px;
  background:var(--pd-blue);color:#fff;border:0;border-radius:10px;
  padding:12px 16px;font-family:'Outfit',Arial,sans-serif;font-size:16px;font-weight:600;
  cursor:pointer;transition:background-color .15s;
}
.pd-btn-comment:hover{background:var(--pd-blue-dark);}
.pd-comments hr{border-top:1px solid var(--pd-border);margin:22px 0;}
.pd-comments .response-info{
  background:#f8fafc;border:1px solid var(--pd-border);border-radius:12px;padding:14px;
}
.pd-comments .response-info .response-info{background:#fff;}
.pd-comments .media-body h4{font-family:'Outfit',Arial,sans-serif;font-size:17px;font-weight:600;}
.pd-comments .replyButton{border-radius:999px;padding:5px 14px;}
.profileImage{object-fit:cover;}

.pd-sidebar{padding:22px 20px !important;margin-bottom:24px;}
.pd-page .rightBar{padding:0;}
.pd-sidebar h5{font-family:'Outfit',Arial,sans-serif;font-weight:600;}
.pd-sidebar input[type="text"]{border-radius:8px;border:1px solid var(--pd-border);padding:8px 10px;}
.pd-sidebar button[type="submit"]{border-radius:8px;padding:6px 14px !important;}
.pd-sidebar img{border-radius:6px;}

@media (max-width:991px){
  .pd-col-side{margin-top:0;}
}
@media (max-width:600px){
  .pd-hero{padding:32px 16px 44px;}
  .pd-hero .mainTitle{font-size:26px !important;}
  .pd-hero-meta{font-size:14px;gap:8px 16px;}
  .pd-article{padding:14px;}
  .pd-article .b-bottom{padding:18px 2px 2px;}
  .pd-article .headerTitle{font-size:22px;flex-direction:column;gap:10px;}
  .pd-content{font-size:16px;}
  .pd-comments{padding:18px;}
}

/* Source code detail extras */
.pd-price-free{background:#e8f8ee !important;border-color:#c9eed8 !important;color:#1a8f4b !important;}
.pd-price-free i{color:#1a8f4b !important;}
.pd-price-paid{background:#fff3e0 !important;border-color:#ffe0b2 !important;color:#d35400 !important;}
.pd-price-paid i{color:#d35400 !important;}
.pd-action .pd-btn-cart{background:#fff;color:#03a84e;}
.pd-action .pd-btn-cart:hover{background:#03a84e;color:#fff;}
