/*
Theme Name:   CEP v2 - Flatsome Child
Description:  cep.org.tr için modern haber teması
Template:     flatsome
Version:      2.0
Text Domain:  cep-v2
*/

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Barlow:wght@400;500;600;700&display=swap');

/* ============================
   VARIABLES
   ============================ */
:root {
  --navy:    #0B1422;
  --dark:    #111827;
  --blue:    #2563EB;
  --blue2:   #60A5FA;
  --bluebg:  #EFF6FF;
  --white:   #FFFFFF;
  --off:     #F8FAFC;
  --gray:    #64748B;
  --border:  #E2E8F0;
  --text:    #1E293B;
  --radius:  6px;
}

/* ============================
   RESET / BASE
   ============================ */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  background: var(--off);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

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

a { text-decoration: none; }

/* ============================
   FLATSOME OVERRIDES
   ============================ */
#wrapper { background: var(--off); }
.page-title-inner { display: none !important; }
.breadcrumbs { display: none !important; }

/* ============================
   TOP BAR
   ============================ */
#top-bar {
  background: #060E1C !important;
  border-bottom: none !important;
  font-family: 'Barlow', sans-serif !important;
  font-size: 11px !important;
}

#top-bar .top-bar-left a,
#top-bar .top-bar-right,
#top-bar .top-bar-right a {
  color: rgba(255,255,255,.45) !important;
}

#top-bar .top-bar-left a:hover,
#top-bar .top-bar-right a:hover {
  color: var(--blue2) !important;
}

/* ============================
   HEADER
   ============================ */
#header {
  background: var(--navy) !important;
  border-bottom: 3px solid var(--blue) !important;
  box-shadow: none !important;
}

.header-wrapper,
.header-inner { background: var(--navy) !important; }

/* Logo */
.header-logo img { filter: brightness(0) invert(1); }
.header-logo .logo { color: #fff !important; font-family: 'Barlow Condensed', sans-serif !important; font-size: 24px !important; font-weight: 700 !important; }

/* Nav links */
#header .nav > li > a,
.nav-main > ul > li > a {
  font-family: 'Barlow', sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .05em !important;
  color: rgba(255,255,255,.65) !important;
  padding: 10px 14px !important;
}

#header .nav > li > a:hover,
#header .nav > li.current-menu-item > a,
#header .nav > li.current-menu-ancestor > a,
.nav-main > ul > li > a:hover {
  color: var(--blue2) !important;
  background: transparent !important;
}

/* Dropdown */
.nav-main .sub-menu,
#header .nav > li > ul {
  background: var(--dark) !important;
  border-top: 2px solid var(--blue) !important;
  border-radius: 0 0 var(--radius) var(--radius) !important;
}

.nav-main .sub-menu a,
#header .nav > li > ul li a {
  color: rgba(255,255,255,.75) !important;
  font-size: 13px !important;
}

.nav-main .sub-menu a:hover { color: var(--blue2) !important; }

/* Search */
.header-search-form input,
#header .search-field {
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 20px !important;
  color: rgba(255,255,255,.8) !important;
  font-size: 12px !important;
  padding: 6px 16px !important;
}

.header-search-form input::placeholder { color: rgba(255,255,255,.35) !important; }

/* ============================
   CATEGORY STRIP
   ============================ */
.cep-cat-strip {
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,.07);
  position: sticky;
  top: 0;
  z-index: 500;
}

.cep-cat-strip .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}

.cep-cat-strip .inner::-webkit-scrollbar { display: none; }

.cep-cat-strip a {
  padding: 9px 16px;
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: rgba(255,255,255,.5);
  white-space: nowrap;
  display: block;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}

.cep-cat-strip a:hover { color: #fff; }

.cep-cat-strip a.active,
.cep-cat-strip .current-cat a {
  color: #fff;
  border-bottom-color: var(--blue);
}

/* ============================
   BREADCRUMB
   ============================ */
.cep-breadcrumb {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 9px 0;
  font-size: 12px;
  color: var(--gray);
}

.cep-breadcrumb .inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.cep-breadcrumb a { color: var(--blue); }
.cep-breadcrumb a:hover { text-decoration: underline; }

/* ============================
   LAYOUT WRAPPERS
   ============================ */
.cep-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  align-items: start;
}

.cep-main { min-width: 0; }

/* ============================
   AD BOXES
   ============================ */
.cep-ad {
  width: 100%;
  text-align: center;
  position: relative;
}

.cep-ad::before {
  content: 'Reklam';
  display: block;
  font-size: 9px;
  color: #CBD5E1;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.cep-ad-top { margin: 0 0 20px; }
.cep-ad-mid { margin: 24px 0; }
.cep-ad-bot { margin: 24px 0 0; }

/* ============================
   SECTION TITLE
   ============================ */
.cep-sec {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--blue);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cep-sec::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--blue);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ============================
   HERO GRID
   ============================ */
.cep-hero {
  display: grid;
  grid-template-columns: 3fr 2fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
  height: 300px;
}

.cep-hero-main {
  grid-row: 1 / 3;
  position: relative;
  overflow: hidden;
}

.cep-hero-main img,
.cep-hero-sub img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.cep-hero-main:hover img,
.cep-hero-sub:hover img { transform: scale(1.04); }

.cep-hero-cap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.88));
  padding: 48px 18px 18px;
}

.cep-hero-sub {
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

.cep-hero-sub .cep-hero-cap { padding: 32px 14px 14px; }

.cep-badge {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-family: 'Barlow', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 8px;
}

.cep-hero-main .cep-hero-cap h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.cep-hero-sub .cep-hero-cap h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.25;
}

/* ============================
   TABS
   ============================ */
.cep-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 16px;
  gap: 0;
}

.cep-tab {
  padding: 8px 16px;
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gray);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .2s, border-color .2s;
}

.cep-tab.active { color: var(--blue); border-bottom-color: var(--blue); }

/* ============================
   CARD GRID
   ============================ */
.cep-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.cep-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}

.cep-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,.09);
}

.cep-card-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--navy);
}

.cep-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.cep-card:hover .cep-card-img img { transform: scale(1.05); }

.cep-card-img .cep-badge {
  position: absolute;
  top: 8px; left: 8px;
  margin: 0;
}

.cep-card-body { padding: 12px 14px; }

.cep-card-meta {
  font-size: 10px;
  color: var(--gray);
  display: flex;
  gap: 10px;
  margin-bottom: 6px;
}

.cep-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin: 0;
}

.cep-card h3 a { color: inherit; }
.cep-card h3 a:hover { color: var(--blue); }

.cep-card-exc {
  font-size: 12px;
  color: var(--gray);
  margin-top: 5px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================
   LIST CARD (archive)
   ============================ */
.cep-card-list {
  display: flex;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}

.cep-card-list:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

.cep-card-list .cep-card-img {
  width: 180px;
  min-width: 180px;
  aspect-ratio: auto;
  flex-shrink: 0;
}

.cep-card-list .cep-card-body { flex: 1; }

.cep-card-list h3 { font-size: 18px; }

/* ============================
   SINGLE ARTICLE
   ============================ */
.cep-article-header { margin-bottom: 20px; }

.cep-article-header h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin: 10px 0 14px;
}

.cep-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--gray);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.cep-read-time {
  background: var(--bluebg);
  color: var(--blue);
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 700;
}

.cep-feat-img {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}

.cep-feat-img img { width: 100%; height: 100%; object-fit: cover; }

/* Article content typography */
.cep-content {
  font-size: 16px;
  line-height: 1.8;
  color: #2D3748;
}

.cep-content h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 12px;
  padding-left: 14px;
  border-left: 4px solid var(--blue);
}

.cep-content h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 10px;
}

.cep-content p { margin: 0 0 18px; }

.cep-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

.cep-content ul, .cep-content ol { padding-left: 22px; margin: 0 0 18px; }

.cep-content li { margin-bottom: 7px; }

.cep-content blockquote {
  border-left: 4px solid var(--blue);
  background: var(--bluebg);
  margin: 24px 0;
  padding: 18px 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}

.cep-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 20px 0;
}

.cep-content th {
  background: var(--navy);
  color: #fff;
  padding: 9px 13px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.cep-content td { padding: 9px 13px; border-bottom: 1px solid var(--border); }
.cep-content tr:nth-child(even) td { background: #F8FAFC; }

/* ============================
   SHARE
   ============================ */
.cep-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 24px 0;
}

.cep-share-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-right: 4px;
}

.cep-share a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  transition: opacity .2s;
}

.cep-share a:hover { opacity: .85; }
.cep-share .tw { background: #1DA1F2; }
.cep-share .wa { background: #25D366; }
.cep-share .fb { background: #1877F2; }

/* ============================
   TAGS
   ============================ */
.cep-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 24px;
}

.cep-tags a {
  background: var(--bluebg);
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 20px;
  border: 1px solid #BFDBFE;
  transition: background .2s, color .2s;
}

.cep-tags a:hover { background: var(--blue); color: #fff; }

/* ============================
   PREV / NEXT
   ============================ */
.cep-postnav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 28px 0;
}

.cep-postnav a {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: block;
  transition: border-color .2s, box-shadow .2s;
}

.cep-postnav a:hover {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.cep-postnav .nav-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray);
  margin-bottom: 4px;
}

.cep-postnav .nav-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.cep-postnav .next { text-align: right; }

/* ============================
   RELATED POSTS
   ============================ */
.cep-related {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin: 28px 0;
}

.cep-related-hd {
  background: var(--navy);
  padding: 12px 18px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #fff;
}

.cep-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.cep-related-item {
  background: #fff;
  transition: background .2s;
}

.cep-related-item:hover { background: var(--bluebg); }

.cep-related-item a { display: block; }

.cep-related-item img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.cep-related-body { padding: 10px 12px; }

.cep-related-cat {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--blue);
  margin-bottom: 4px;
}

.cep-related-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================
   SIDEBAR
   ============================ */
.cep-sidebar { display: flex; flex-direction: column; gap: 18px; }

.cep-sidebar-sticky { position: sticky; top: 50px; }

.cep-widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.cep-widget-title {
  background: var(--navy);
  color: #fff;
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 9px 14px;
  margin: 0;
}

.cep-widget-body { padding: 14px; }

/* Popular */
.cep-popular { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }

.cep-popular li { display: flex; gap: 10px; align-items: flex-start; }

.cep-popular-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #BFDBFE;
  line-height: 1;
  min-width: 24px;
}

.cep-popular a {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.cep-popular a:hover { color: var(--blue); }

/* Category list */
.cep-catlist { list-style: none; margin: 0; padding: 0; }

.cep-catlist li { border-bottom: 1px solid #F1F5F9; }
.cep-catlist li:last-child { border: none; }

.cep-catlist a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  transition: background .2s, color .2s;
}

.cep-catlist a:hover { background: var(--bluebg); color: var(--blue); }

.cep-catlist .cnt {
  background: var(--bluebg);
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}

/* Sidebar ad */
.cep-sidebar-ad {
  width: 100%;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

/* ============================
   ARCHIVE HEADER
   ============================ */
.cep-archive-hd {
  background: var(--navy);
  border-radius: 8px;
  padding: 24px 28px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.cep-archive-hd::after {
  content: '';
  position: absolute;
  right: -30px; top: -30px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.35) 0%, transparent 70%);
}

.cep-archive-hd h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  margin: 0 0 6px;
  position: relative;
  z-index: 1;
}

.cep-archive-hd p {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  margin: 0;
  position: relative;
  z-index: 1;
}

/* ============================
   PAGINATION
   ============================ */
.cep-pagination {
  text-align: center;
  margin: 28px 0 0;
}

.cep-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.cep-pagination .page-numbers a,
.cep-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  transition: background .2s, color .2s, border-color .2s;
}

.cep-pagination .page-numbers a:hover,
.cep-pagination .page-numbers .current {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* ============================
   FOOTER
   ============================ */
#footer { background: var(--navy) !important; margin-top: 48px; }

.cep-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 20px 28px;
}

.cep-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 28px;
}

.cep-footer-brand .brand-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: .02em;
  margin-bottom: 8px;
}

.cep-footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,.45);
  line-height: 1.7;
}

.cep-footer-col h4 {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--blue2);
  margin: 0 0 14px;
}

.cep-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }

.cep-footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  transition: color .2s;
}

.cep-footer-col ul li a:hover { color: #fff; }

.cep-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,.3);
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
  .cep-wrap { grid-template-columns: 1fr; }
  .cep-sidebar-sticky { position: static; }
  .cep-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 768px) {
  .cep-hero { grid-template-columns: 1fr; height: auto; }
  .cep-hero-main { min-height: 220px; }
  .cep-hero .cep-hero-sub { display: none; }
  .cep-grid { grid-template-columns: 1fr; }
  .cep-related-grid { grid-template-columns: 1fr 1fr; }
  .cep-postnav { grid-template-columns: 1fr; }
  .cep-article-header h1 { font-size: 26px; }
  .cep-footer-grid { grid-template-columns: 1fr; }
  .cep-card-list .cep-card-img { width: 120px; min-width: 120px; }
}

@media (max-width: 480px) {
  .cep-related-grid { grid-template-columns: 1fr; }
  .cep-hero-main { min-height: 180px; }
}
