/*
Theme Name: EfektifPro Skills
Theme URI: https://skills.efektifpro.com
Author: EfektifPro Knowledge Source
Description: Clean, soft, AdSense-friendly news theme for EfektifPro Skills. Headline + Latest Update layout optimized for readability and ad revenue.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: efektifpro-skills
Tags: news, blog, two-columns, right-sidebar, custom-menu, featured-images, threaded-comments
*/

:root {
  --ep-bg: #f8fafc;
  --ep-surface: #ffffff;
  --ep-border: #e2e8f0;
  --ep-border-soft: #eef2f6;
  --ep-text: #1e293b;
  --ep-text-soft: #475569;
  --ep-muted: #94a3b8;
  --ep-accent: #3b82f6;
  --ep-accent-dark: #2563eb;
  --ep-radius: 6px;
  --ep-max: 1200px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ep-bg);
  color: var(--ep-text);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.65;
  font-size: 17px;
}

a { color: var(--ep-accent); text-decoration: none; }
a:hover { color: var(--ep-accent-dark); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.ep-container {
  max-width: var(--ep-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Sans-serif helpers (UI chrome) ---------- */
.ep-sans,
.ep-nav, .ep-meta, .ep-kicker, .ep-site-tagline,
.ep-btn, .ep-update-meta, .ep-footer, .ep-searchform {
  font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
}

/* ---------- Masthead ---------- */
.ep-masthead {
  background: var(--ep-surface);
  border-bottom: 1px solid var(--ep-border);
}
.ep-masthead-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  gap: 6px;
}
.ep-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.ep-site-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--ep-text);
  margin: 0;
  line-height: 1.1;
}
.ep-site-title .ep-accent { color: var(--ep-accent); font-weight: 300; }
.ep-logo-link { display: inline-block; line-height: 0; }
.ep-logo-img {
  width: 310px;
  max-width: 100%;
  height: auto;
  display: block;
}
.custom-logo { width: auto; height: 85px; max-width: 100%; display: block; }
@media (max-width: 600px) {
  .ep-logo-img { width: 240px; }
  .custom-logo { height: 64px; }
}
.ep-site-tagline {
  font-size: 13px;
  color: var(--ep-muted);
  margin-top: 4px;
}
/* Sidebar search form */
.ep-searchform { margin-bottom: 28px; }
.ep-searchform input[type="search"] {
  width: 100%;
  border: 1px solid var(--ep-border);
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 14px;
  outline: none;
  font-family: 'Segoe UI', system-ui, Arial, sans-serif;
}
.ep-searchform input[type="search"]:focus { border-color: var(--ep-accent); }

/* ---------- Navigation ---------- */
.ep-nav-wrap {
  background: var(--ep-surface);
  border-bottom: 2px solid var(--ep-border);
}
.ep-nav {
  display: flex;
  gap: 26px;
  padding: 12px 24px;
  max-width: var(--ep-max);
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.ep-nav a {
  color: var(--ep-text-soft);
  font-size: 14px;
  font-weight: 500;
}
.ep-nav .current-menu-item a,
.ep-nav a.ep-nav-active { color: var(--ep-text); font-weight: 600; }

/* ---------- Layout grid ---------- */
.ep-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  padding: 28px 0 48px;
}

/* ---------- Section kicker ---------- */
.ep-kicker {
  color: var(--ep-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
}
.ep-kicker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ep-border);
}

/* ---------- Headline (hero) ---------- */
.ep-hero { margin-bottom: 36px; }
.ep-hero-thumb {
  width: 100%;
  aspect-ratio: 73 / 30;
  object-fit: cover;
  border-radius: var(--ep-radius);
  background: var(--ep-border);
}
.ep-hero-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  margin: 20px 0 10px;
}
.ep-hero-title a { color: var(--ep-text); }
.ep-hero-title a:hover { color: var(--ep-accent-dark); text-decoration: none; }
.ep-meta {
  font-size: 13px;
  color: var(--ep-muted);
  margin-bottom: 10px;
}
.ep-hero-excerpt { color: var(--ep-text-soft); font-size: 16px; margin: 0; }

/* ---------- Secondary cards ---------- */
.ep-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  border-top: 1px solid var(--ep-border);
  padding-top: 28px;
}
.ep-card-thumb {
  width: 100%;
  aspect-ratio: 35 / 13;
  object-fit: cover;
  border-radius: var(--ep-radius);
  background: var(--ep-border);
}
.ep-card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin: 12px 0 8px;
}
.ep-card-title a { color: var(--ep-text); }

/* ---------- Standard post list (archive/index) ---------- */
.ep-postlist { list-style: none; margin: 0; padding: 0; }
.ep-postlist-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--ep-border);
}
.ep-postlist-item .ep-card-thumb { aspect-ratio: 16 / 10; }
.ep-postlist-item:first-child { padding-top: 0; }

/* ---------- Sidebar ---------- */
.ep-sidebar .widget { margin-bottom: 32px; }
.ep-widget-title {
  color: var(--ep-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  font-family: 'Segoe UI', system-ui, Arial, sans-serif;
}
.ep-widget-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ep-border);
}
.ep-update-list { list-style: none; margin: 0; padding: 0; }
.ep-update-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--ep-border-soft);
}
.ep-update-list li:last-child { border-bottom: 0; }
.ep-update-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ep-text);
  font-family: 'Segoe UI', system-ui, Arial, sans-serif;
  line-height: 1.4;
}
.ep-update-title a { color: var(--ep-text); }
.ep-update-meta {
  font-size: 12px;
  color: var(--ep-muted);
  margin-top: 4px;
}

/* ---------- Buttons ---------- */
.ep-btn {
  display: inline-block;
  border: 1px solid var(--ep-accent);
  color: var(--ep-accent);
  border-radius: 20px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
}
.ep-btn:hover { background: var(--ep-accent); color: #fff; text-decoration: none; }

/* ---------- Single post ---------- */
.ep-single { background: var(--ep-surface); border-radius: var(--ep-radius); padding: 36px; border: 1px solid var(--ep-border); }
.ep-single h1 { font-size: 32px; line-height: 1.2; margin: 0 0 12px; }
.ep-single .ep-content { font-size: 18px; color: #0f172a; }
.ep-single .ep-content p { margin: 0 0 1.2em; }
.ep-single .ep-content h2 { font-size: 24px; margin: 1.6em 0 .5em; }
.ep-single .ep-content img { border-radius: var(--ep-radius); margin: 1.2em 0; }

/* ---------- Footer ---------- */
.ep-footer {
  background: #0f172a;
  color: #cbd5e1;
  margin-top: 40px;
  padding: 36px 0;
  font-size: 14px;
}
.ep-footer a { color: #cbd5e1; }
.ep-footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ep-footer-links a { margin-right: 18px; }

/* ---------- Pagination ---------- */
.ep-pagination { display: flex; gap: 8px; padding: 32px 0; flex-wrap: wrap; }
.ep-pagination .page-numbers {
  padding: 8px 14px; border: 1px solid var(--ep-border);
  border-radius: 4px; color: var(--ep-text-soft);
  font-family: 'Segoe UI', system-ui, Arial, sans-serif; font-size: 14px;
}
.ep-pagination .page-numbers.current { background: var(--ep-accent); color: #fff; border-color: var(--ep-accent); }

/* ---------- Responsive ---------- */

/* Tablet / small laptop: collapse sidebar below content */
@media (max-width: 980px) {
  .ep-layout { grid-template-columns: 1fr; gap: 28px; }
  .ep-cards { grid-template-columns: 1fr 1fr; }
  .ep-hero-title { font-size: 26px; }
}

/* Portrait tablet */
@media (max-width: 768px) {
  .ep-masthead-inner { padding: 16px 20px; }
  .ep-nav { gap: 18px; padding: 10px 20px; }
  .ep-cards { grid-template-columns: 1fr; }
  .ep-postlist-item { grid-template-columns: 1fr; gap: 12px; }
  .ep-postlist-item .ep-card-thumb { aspect-ratio: 16 / 9; }
  .ep-hero-title { font-size: 24px; }
  .ep-single { padding: 24px; }
  .ep-single h1 { font-size: 26px; }
  .ep-single .ep-content { font-size: 17px; }
}

/* Phone */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .ep-container { padding: 0 16px; }
  .ep-layout { padding: 20px 0 36px; }
  .ep-masthead-inner { padding: 18px 16px; }
  .ep-nav {
    gap: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    flex-wrap: nowrap;
    padding-bottom: 12px;
  }
  .ep-nav a { flex: 0 0 auto; }
  .ep-hero-title { font-size: 22px; }
  .ep-hero-title, .ep-card-title { line-height: 1.3; }
  .ep-footer-inner { flex-direction: column; gap: 16px; }
}

/* Small phone */
@media (max-width: 380px) {
  .ep-logo-img { width: 180px; }
  .ep-hero-title { font-size: 20px; }
}
