/* e-podi.gr – static theme (recreates the "YourMag" WordPress look without WordPress) */
:root {
  --teal: #63acb6;
  --teal-dark: #4f96a0;
  --red: #f14d4d;
  --dark: #222;
  --dark-2: #2c2c2c;
  --topbar: #3a3a3a;
  --text: #444;
  --muted: #888;
  --line: #e5e5e5;
  --side-bg: #f7f7f7;
  --head-font: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  --body-font: "Ubuntu", "Segoe UI", Arial, sans-serif;
  --wrap: 1140px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font: 14px/1.6 var(--body-font); }
img { max-width: 100%; height: auto; border: 0; }
a { color: #333; text-decoration: none; }
a:hover { color: var(--teal); }
h1, h2, h3, h4, h5, h6 { font-family: var(--head-font); font-weight: 400; color: #333; line-height: 1.25; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 99; background: #fff; padding: 8px; }
button { font: inherit; cursor: pointer; }

/* top bar */
#topbar { background: var(--topbar); border-bottom: 2px solid var(--teal); }
#topbar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
#topbar a { display: block; color: #fff; font: 12px/34px var(--head-font); }

/* header */
#header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 30px; padding-bottom: 30px; }
#logo img { display: block; width: 240px; }
#banner728 img { display: block; max-width: 728px; width: 100%; }

/* main menu */
#menu { border-top: 1px solid var(--line); border-bottom: 3px solid #e9e9e9; background: #fff; position: relative; z-index: 20; }
#menu .wrap { display: flex; align-items: stretch; }
#menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; flex: 1; }
#menu li a { display: flex; align-items: center; height: 50px; padding: 0 19px; border-right: 1px solid var(--line); font: 14px var(--head-font); color: #444; text-transform: uppercase; }
#menu li a:hover, #menu li a[aria-current] { background: var(--teal); color: #fff; }
#menu li.lang a { border-right: 0; }
.menu-toggle { display: none; background: none; border: 0; font: 15px var(--head-font); padding: 0 8px; height: 50px; color: #444; }
.menu-search { display: flex; align-items: center; position: relative; padding-left: 12px; border-left: 1px solid var(--line); }
.menu-search input { width: 0; opacity: 0; border: 1px solid #ddd; height: 32px; padding: 0 8px; transition: width .25s, opacity .25s; font: 13px var(--body-font); }
.menu-search:focus-within input, .menu-search.open input { width: 180px; opacity: 1; margin-right: 4px; }
.menu-search button { width: 32px; height: 32px; border: 1px solid #ddd; background: #fff; color: #333; display: grid; place-items: center; }

/* ticker */
#ticker { background: var(--teal); }
#ticker .wrap { display: flex; align-items: center; height: 50px; gap: 0; }
.tk-label { flex: none; background: #333; color: #fff; font: 13px/34px var(--head-font); padding: 0 12px; display: flex; align-items: center; gap: 6px; }
.tk-news { flex: 1; overflow: hidden; height: 34px; position: relative; }
.tk-news ul { list-style: none; margin: 0; padding: 0; display: flex; white-space: nowrap; transition: transform .5s ease; }
.tk-news li { display: flex; align-items: center; gap: 8px; padding: 2px 16px 2px 4px; flex: none; }
.tk-news img { display: block; width: 45px; height: 30px; object-fit: cover; }
.tk-title { color: #fff; font: 13px var(--head-font); }
.tk-title:hover { color: #222; }
.tk-ctrl { flex: none; display: flex; }
.tk-ctrl button { background: none; border: 0; color: #fff; font-size: 28px; line-height: 1; width: 30px; }

/* featured slider */
#featured { background: url(/wp-content/uploads/2015/05/bg-epodigr_new.jpg) repeat center top; padding-top: 30px; }
#featured .wrap { padding: 0 16px; }
.slider { position: relative; aspect-ratio: 1140/515; overflow: hidden; background: #111; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.slide.active { opacity: 1; z-index: 1; }
.slide > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.s-cap { position: absolute; left: 30px; bottom: 115px; right: 30px; }
.s-date { display: table; background: rgba(90,90,90,.85); color: #fff; font: 16px var(--head-font); padding: 8px 13px; margin-bottom: 10px; }
.s-cap h2 { margin: 0; display: inline-block; max-width: 100%; background: rgba(99,172,182,.95); border-bottom: 3px solid var(--teal-dark); padding: 12px 18px; font-size: 32px; }
.s-cap h2 a { color: #fff; }
.s-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); background: #222; border-top: 4px solid #222; border-bottom: 3px solid #111; overflow-x: auto; }
.s-thumbs .s-thumb:nth-child(n+7) { display: none; }
.s-thumb { background: #222; border: 0; border-right: 1px solid #333; padding: 10px 10px 12px; color: #fff; text-align: center; font: 13px/1.3 var(--head-font); }
.s-thumb img { display: block; width: 100%; aspect-ratio: 172/100; object-fit: cover; margin-bottom: 8px; }
.s-thumb.active, .s-thumb:hover { background: var(--teal); }

/* layout */
#content { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 0; margin-top: 30px; align-items: start; }
#content.wide { grid-template-columns: 1fr; }
#main { padding: 0 20px 40px 0; min-width: 0; }
#sidebar { background: var(--side-bg); padding: 30px 0 30px; align-self: stretch; }

/* home sections and cards */
.home-sec { margin-bottom: 20px; }
.sec-title { font-size: 22px; margin: 10px 0 20px; padding-bottom: 8px; border-bottom: 3px solid var(--teal); display: inline-block; }
.sec-title a { color: #333; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 32px; }
.card { min-width: 0; }
.c-img { display: block; overflow: hidden; background: #eee; }
.c-img img { display: block; width: 100%; aspect-ratio: 216/154; object-fit: cover; transition: transform .4s; }
.card:hover .c-img img { transform: scale(1.05); }
.card h3 { font: 14px/1.2 var(--body-font); margin: 10px 0 0; color: #333; }
.card h3 a { color: #333; }
.card h3 a:hover { color: var(--teal); }
.grid.list .card h3 { font: 17px/1.25 var(--head-font); }
.c-cat { display: inline-block; background: var(--teal); color: #fff; font: 11px/1 var(--head-font); padding: 4px 6px; margin: 10px 8px 0 0; text-transform: uppercase; }
.c-cat:hover { background: #333; color: #fff; }
.c-date { font: 12px var(--head-font); color: var(--muted); }
.c-ex { font-size: 13px; color: #666; margin: 8px 0 0; }

/* sidebar widgets */
.widget { margin: 0 0 30px; }
.w-head { position: relative; background: var(--red); color: #fff; font: 16px/50px var(--head-font); margin: 0 0 20px; padding: 0 50px 0 20px; text-transform: none; }
.w-head .arrow { position: absolute; right: 18px; top: 21px; width: 24px; height: 8px; background: linear-gradient(90deg, #fff 0 3px, transparent 3px 5px, #fff 5px 8px, transparent 8px 10px, #fff 10px 13px, transparent 13px 15px, #fff 15px 18px); clip-path: polygon(0 30%, 75% 30%, 75% 0, 100% 50%, 75% 100%, 75% 70%, 0 70%); }
.video { padding: 0 20px; }
.yt-lite { position: relative; display: block; width: 100%; aspect-ratio: 16/9; border: 0; background: #000 center/cover no-repeat; }
.yt-lite span { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; background: #f00; border-radius: 12px; opacity: .9; }
.yt-lite span::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.yt-lite iframe, .video iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; display: block; }
.video-desc { padding: 10px 30px 0; font-size: 13px; margin: 0; }
.banners { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 20px; }
.banners img { display: block; width: 300px; max-width: 100%; height: auto; }
.w-posts { list-style: none; margin: 0; padding: 0 20px; }
.w-posts li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid #e6e6e6; }
.w-posts li:last-child { border-bottom: 0; }
.w-img { flex: none; }
.w-img img { display: block; width: 90px; height: 64px; object-fit: cover; }
.w-title { display: block; font: 13px/1.45 var(--body-font); color: #333; }
.w-date { display: inline-block; background: var(--teal); color: #fff; font: 11px var(--head-font); padding: 1px 5px; margin-top: 4px; }
.w-recent { list-style: none; margin: 0; padding: 0 20px; }
.w-recent li { padding: 3px 0 3px 12px; position: relative; font-size: 13px; line-height: 2.2; }
.w-recent li::before { content: ""; position: absolute; left: 2px; top: 13px; border: 3px solid transparent; border-left-color: #999; }
.tagcloud { padding: 0 20px; display: flex; flex-wrap: wrap; gap: 4px; }
.tagcloud a, .post-tags a { display: inline-flex; align-items: center; gap: 7px; background: #222; color: #fff; font: 11px/1 var(--head-font); padding: 6px 9px; text-transform: uppercase; }
.tagcloud a:hover, .post-tags a:hover { background: var(--teal); color: #fff; }

/* single post */
.crumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; font: 12px var(--head-font); color: var(--muted); }
.crumbs li + li::before { content: "›"; margin: 0 7px; }
.crumbs a { color: var(--muted); }
.post-title { font-size: 34px; margin: 0 0 12px; color: #222; }
.post-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font: 13px var(--head-font); color: var(--muted); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.post-meta time { background: var(--teal); color: #fff; padding: 3px 8px; }
.post-meta .cats a { color: var(--teal); margin-right: 8px; text-transform: uppercase; }
.post-img { margin: 0 0 22px; }
.post-img img { display: block; width: 100%; }
.entry { font-size: 15px; line-height: 1.75; color: #444; overflow-wrap: break-word; }
.entry a { color: var(--teal-dark); text-decoration: underline; }
.entry img { height: auto; }
.entry iframe, .entry video { max-width: 100%; }
.entry iframe[src*="youtube"] { width: 100%; height: auto; aspect-ratio: 16/9; }
.entry .alignleft { float: left; margin: 4px 20px 10px 0; }
.entry .alignright { float: right; margin: 4px 0 10px 20px; }
.entry .aligncenter { display: block; margin: 10px auto; }
.entry .wp-caption { max-width: 100%; }
.entry .wp-caption-text { font-size: 12px; color: var(--muted); text-align: center; margin: 4px 0 0; }
.entry table { border-collapse: collapse; max-width: 100%; }
.entry td, .entry th { border: 1px solid var(--line); padding: 6px; }
.entry::after { content: ""; display: table; clear: both; }
.entry .vc_images_carousel { width: 100% !important; }
.entry .vc_carousel-slideline-inner { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; width: auto !important; }
.entry .vc_carousel-slideline { width: auto !important; }
.entry .vc_item { flex: 0 0 auto; scroll-snap-align: start; width: auto !important; }
.entry .vc_item img { max-height: 480px; width: auto; }
.entry .vc_separator { border-top: 1px solid var(--line); margin: 20px 0; }
.post-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 24px 0 0; }
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 22px 0; font: 14px var(--head-font); }
.share a { color: #fff; padding: 6px 14px; font-size: 13px; }
.share .fb { background: #3b5998; } .share .tw { background: #1da1f2; } .share .em { background: #777; }
.share a:hover { opacity: .85; color: #fff; }
.postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; margin: 10px 0 30px; }
.postnav a { font: 15px/1.3 var(--head-font); color: #333; }
.postnav small { display: block; color: var(--teal); font-size: 12px; text-transform: uppercase; margin-bottom: 4px; }
.postnav .next { text-align: right; }

/* archives */
.arch-title { font-size: 30px; margin: 0 0 24px; padding-bottom: 8px; border-bottom: 3px solid var(--teal); display: inline-block; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin: 36px 0 0; }
.pager a, .pager span { min-width: 36px; height: 36px; display: grid; place-items: center; padding: 0 8px; background: #eee; color: #333; font: 14px var(--head-font); }
.pager .cur, .pager a:hover { background: var(--teal); color: #fff; }
.pager .dots { background: none; }

/* forms */
.contact input, .contact select, .contact textarea, .search-page input {
  width: 100%; background: #eee; border: 0; border-radius: 0; font: 14px var(--body-font); color: #555; padding: 16px;
}
.contact textarea { resize: vertical; }
.btn-submit, .search-page button { color: var(--teal); background: transparent; border: 2px solid; border-radius: 3px; padding: 6px 20px; font: 500 20px/1.7 var(--body-font); transition: all .2s; }
.btn-submit:hover, .search-page button:hover { background: #eee; border-color: #eee; }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 10px; font-weight: 500; }
.form-status.ok { color: #2e7d32; } .form-status.err { color: #c62828; }
.search-page { display: flex; gap: 10px; margin-bottom: 20px; }
.search-page input { flex: 1; }
.search-page button { flex: none; font-size: 16px; }

/* footer */
#footer { background: var(--dark-2); color: #aaa; margin-top: 0; border-top: 6px solid #111; }
.social { display: flex; justify-content: center; gap: 6px; padding: 30px 0; }
.social img { display: block; width: 32px; height: 32px; }
.banner-footer { max-width: 760px; margin: 10px auto 40px; border: 1px solid #3a3a3a; padding: 15px; }
.banner-footer img { display: block; margin: 0 auto; }
.f-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding-bottom: 40px; }
.f-cols h3 { color: #fff; font-size: 19px; margin: 0 0 20px; padding: 0 0 8px 24px; position: relative; display: inline-block; min-width: 160px; border-bottom: 2px solid var(--teal); }
.f-cols h3::before { content: ""; position: absolute; left: 0; top: 5px; width: 14px; height: 12px; background: linear-gradient(#fff 0 2px, transparent 2px 5px, #fff 5px 7px, transparent 7px 10px, #fff 10px 12px); }
.f-cols p { margin: 0; line-height: 1.85; }
.f-cats { list-style: none; margin: 0; padding: 0; font: 13px/2.3 Arial, sans-serif; }
.f-cats a { color: #ccc; }
.f-cats a:hover { color: var(--teal); }
.cal { width: 100%; border-collapse: collapse; text-align: center; font: 12px Arial, sans-serif; }
.cal caption { background: #333; color: #fff; padding: 10px; font-size: 14px; }
.cal th { background: #eee; color: #555; padding: 10px 0; font-weight: 400; }
.cal td { padding: 8px 0; color: #555; }
.cal td.has a { color: #fff; background: var(--teal); padding: 2px 6px; }
.cal-nav { margin-top: 10px; font-size: 13px; }
.cal-nav a { color: #ccc; }
#credit { background: #222; text-align: center; padding: 18px 16px; font: 12px Arial, sans-serif; }
#credit a { color: #fff; }
#totop { position: fixed; right: 16px; bottom: 16px; width: 40px; height: 40px; background: var(--teal); color: #fff; display: grid; place-items: center; font-size: 20px; opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 30; }
#totop.show { opacity: .9; pointer-events: auto; }

/* responsive */
@media (max-width: 1100px) {
  #menu li a { padding: 0 11px; font-size: 13px; }
  #content { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 900px) {
  #header .wrap { flex-direction: column; padding-top: 20px; padding-bottom: 20px; }
  #content { grid-template-columns: 1fr; }
  #main { padding-right: 0; }
  #sidebar { margin: 0 -16px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .s-thumbs { grid-template-columns: repeat(3, 1fr); }
  .s-thumbs .s-thumb:nth-child(n+4) { display: none; }
  .s-cap { bottom: 20px; left: 16px; right: 16px; }
  .s-cap h2 { font-size: 22px; }
  .f-cols { grid-template-columns: 1fr; gap: 30px; }
  .menu-toggle { display: block; }
  #menu .wrap { flex-wrap: wrap; justify-content: space-between; }
  #menu ul { display: none; order: 3; flex-basis: 100%; flex-direction: column; border-top: 1px solid var(--line); }
  #menu ul.open { display: flex; }
  #menu li a { height: 44px; border-right: 0; border-bottom: 1px solid var(--line); }
  .menu-search { border-left: 0; }
  .menu-search input { width: 150px; opacity: 1; margin-right: 4px; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .grid.list { grid-template-columns: 1fr; }
  .card h3 { font-size: 13px; }
  .tk-label { font-size: 0; padding: 0 8px; }
  .slider { aspect-ratio: 4/3; }
  .s-date { font-size: 13px; padding: 5px 9px; }
  .s-cap h2 { font-size: 18px; padding: 8px 12px; }
  .s-thumbs { display: none; }
  .post-title { font-size: 26px; }
  .entry .alignleft, .entry .alignright { float: none; margin: 10px auto; display: block; }
  .postnav { grid-template-columns: 1fr; }
  .postnav .next { text-align: left; }
  #banner728 { display: block; }
}
