/*
Theme Name: EfektifPro Technology
Theme URI: https://technology.efektifpro.com
Author: EfektifPro Technology Team
Description: Modern, lightning-fast, high-CPC tech news and engineering architecture theme for EfektifPro Technology.
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-technology
Tags: technology, cloud, cybersecurity, devops, ai, architecture, news, clean
*/

:root {
  --ep-bg: #f8fafc;
  --ep-surface: #ffffff;
  --ep-border: #e2e8f0;
  --ep-border-soft: #eef2f6;
  --ep-text: #0f172a;
  --ep-text-soft: #334155;
  --ep-muted: #64748b;
  --ep-accent: #0284c7;
  --ep-accent-dark: #0369a1;
  --ep-tech-cyan: #06b6d4;
  --ep-tech-blue: #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;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s ease;
}
.ep-nav a:hover {
  color: var(--ep-accent);
  text-decoration: none;
}
.ep-nav .current-menu-item a,
.ep-nav a.ep-nav-active { color: var(--ep-text); font-weight: 600; }
.ep-nav .ep-nav-tool-link {
  color: #0284c7 !important;
  font-weight: 700 !important;
  background: rgba(2, 132, 199, 0.08);
  padding: 4px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(2, 132, 199, 0.25);
  transition: all 0.15s ease;
}
.ep-nav .ep-nav-tool-link:hover {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
}

/* ---------- 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: 28px; }
.ep-widget-title,
.ep-sidebar .wp-block-heading {
  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,
.ep-sidebar .wp-block-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ep-border);
}

/* ---------- Sidebar Search: Label Hidden, Generous Spacing & Field Styling ---------- */
.ep-sidebar .wp-block-search__label,
.ep-sidebar .widget_search .wp-block-search__label,
.ep-sidebar label.screen-reader-text {
  display: none !important;
}

.ep-sidebar .widget_search,
.ep-sidebar .widget.widget_block.widget_search {
  margin-bottom: 0 !important;
}

.ep-sidebar .wp-block-search__inside-wrapper,
.ep-searchform-inner {
  display: flex !important;
  align-items: stretch !important;
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  transition: all 0.2s ease !important;
}

.ep-sidebar .wp-block-search__inside-wrapper:focus-within,
.ep-searchform-inner:focus-within {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}

.ep-sidebar .wp-block-search__input,
.ep-searchform-inner input[type="search"] {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 11px 16px !important;
  font-size: 14px !important;
  font-family: inherit !important;
  color: #0f172a !important;
  background: transparent !important;
  flex: 1 !important;
  min-width: 0 !important;
}

.ep-sidebar .wp-block-search__input::placeholder,
.ep-searchform-inner input[type="search"]::placeholder {
  color: #94a3b8 !important;
}

.ep-sidebar .wp-block-search__button,
.ep-searchform-btn {
  background: #0284c7 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 20px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  cursor: pointer !important;
  transition: background 0.15s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
}

.ep-sidebar .wp-block-search__button:hover,
.ep-searchform-btn:hover {
  background: #0369a1 !important;
}

/* ---------- Sidebar Formula Generator Display Ad Banner ---------- */
.ep-sidebar-banner-widget {
  margin-top: 36px !important;
  margin-bottom: 36px !important; /* Jarak simetris 36px atas & bawah */
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 25px -4px rgba(2, 132, 199, 0.28), 0 4px 10px rgba(0, 0, 0, 0.08) !important;
  border: 1.5px solid #38bdf8 !important;
  background: #0284c7 !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease !important;
  display: block !important;
}

.ep-sidebar-banner-widget:hover {
  transform: translateY(-4px) !important;
  border-color: #60a5fa !important;
  box-shadow: 0 18px 36px -4px rgba(2, 132, 199, 0.45), 0 6px 16px rgba(0, 0, 0, 0.12) !important;
}

.ep-sidebar-banner-link {
  display: block !important;
  text-decoration: none !important;
  line-height: 0 !important;
  cursor: pointer !important;
}

.ep-sidebar-banner-widget .ep-banner-img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  transition: transform 0.3s ease !important;
}

.ep-sidebar-banner-widget:hover .ep-banner-img {
  transform: scale(1.02) !important;
}

/* ---------- Sidebar Latest News: Pointers & Clear Card Separators ---------- */
.ep-sidebar .wp-block-group h2,
.ep-sidebar .wp-block-heading,
.ep-sidebar .ep-widget-title {
  color: #0284c7 !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 0 18px !important;
  font-family: 'Segoe UI', system-ui, Arial, sans-serif !important;
}
.ep-sidebar .wp-block-heading::after,
.ep-sidebar .ep-widget-title::after {
  content: "" !important;
  flex: 1 !important;
  height: 2px !important;
  background: #e2e8f0 !important;
}

.ep-sidebar ul.wp-block-latest-posts,
.ep-sidebar ul.wp-block-latest-posts__list,
.ep-sidebar ul.ep-update-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important; /* Jarak tegas antar list 1 dan list 2 */
}

.ep-sidebar ul.wp-block-latest-posts li,
.ep-sidebar ul.wp-block-latest-posts__list li,
.ep-sidebar ul.ep-update-list li {
  position: relative !important;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important; /* Pemisah tegas kotak antar list */
  border-left: 4.5px solid #0284c7 !important; /* Indikator pointer warna vertikal */
  border-radius: 10px !important;
  padding: 14px 16px !important;
  margin: 0 !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: block !important;
  cursor: pointer !important;
}

.ep-sidebar ul.wp-block-latest-posts li:hover,
.ep-sidebar ul.wp-block-latest-posts__list li:hover,
.ep-sidebar ul.ep-update-list li:hover {
  transform: translateX(5px) !important;
  border-color: #93c5fd !important;
  border-left-color: #0369a1 !important;
  box-shadow: 0 8px 18px rgba(2, 132, 199, 0.12) !important;
  background: #f8fafc !important;
}

/* Pointer Icon & Title */
.ep-sidebar .wp-block-latest-posts__post-title,
.ep-sidebar .ep-update-title a {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  margin: 0 0 8px 0 !important;
}

.ep-sidebar .wp-block-latest-posts__post-title::before,
.ep-sidebar .ep-update-title a::before {
  content: "👉" !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  flex-shrink: 0 !important;
}

.ep-sidebar ul.wp-block-latest-posts li:hover .wp-block-latest-posts__post-title,
.ep-sidebar ul.ep-update-list li:hover .ep-update-title a {
  color: #0284c7 !important;
}

/* Date Chip */
.ep-sidebar .wp-block-latest-posts__post-date,
.ep-sidebar .ep-update-meta {
  font-size: 11.5px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  padding: 3px 10px !important;
  border-radius: 6px !important;
  margin-left: 23px !important; /* Sejajar dengan teks setelah pointer */
  margin-top: 0 !important;
}

.ep-sidebar .wp-block-latest-posts__post-date::before,
.ep-sidebar .ep-update-meta::before {
  content: "📅" !important;
  font-size: 11px !important;
}

/* ---------- 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; }

/* ---------- Full Width Layouts (No Sidebar) ---------- */
.ep-fullwidth-layout {
  max-width: var(--ep-max);
  margin: 0 auto;
  padding: 28px 0 48px;
  width: 100%;
}
.ep-fullwidth-article,
.ep-generator-fullwidth {
  width: 100%;
  padding: 40px;
}
.ep-generator-fullwidth .ep-generator-container {
  max-width: 980px;
  margin: 24px auto 40px;
}

/* ---------- 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); }

/* ---------- Breadcrumbs Navigation ---------- */
.ep-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--ep-text-soft);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ep-border);
}
.ep-breadcrumbs a {
  color: var(--ep-text-soft);
  text-decoration: none;
  transition: color 0.15s ease;
}
.ep-breadcrumbs a:hover {
  color: var(--ep-accent);
  text-decoration: underline;
}
.ep-breadcrumbs .ep-bc-sep {
  color: #94a3b8;
  font-size: 12px;
}
.ep-breadcrumbs .ep-bc-current {
  color: #0f172a;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 420px;
}

/* ---------- Related Formula Guides Section ---------- */
.ep-related-section {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 2px solid var(--ep-border);
}
.ep-related-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ep-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ep-related-card {
  background: #f8fafc;
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.ep-related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}
.ep-related-thumb-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0f172a;
}
.ep-related-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}
.ep-related-card:hover .ep-related-thumb {
  transform: scale(1.04);
}
.ep-related-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ep-related-meta {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  margin: 0 0 6px;
}
.ep-related-card-title {
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
  font-weight: 600;
}
.ep-related-card-title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.15s ease;
}
.ep-related-card-title a:hover {
  color: var(--ep-accent);
}

/* ---------- Article Tags & Topic Pills ---------- */
.ep-tags-wrap {
  margin: 28px 0 16px;
  padding: 14px 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ep-tags-label {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.5px;
}
.ep-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ep-tag-pill {
  font-size: 12px;
  font-weight: 600;
  color: #0369a1;
  background: #f0f9ff;
  padding: 4px 12px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.15s ease;
  border: 1px solid #bae6fd;
}
.ep-tag-pill:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  transform: translateY(-1px);
}

/* ---------- 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; }
}
