/*
Theme Name: Travel From Europe v2
Theme URI: https://travelfromeurope.com
Author: Iggy & AI Assistant
Author URI: https://travelfromeurope.com
Description: Clean, trust-focused travel magazine theme. Simple homepage with latest posts.
Version: 2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: travelfromeurope
*/

:root{
  --tfe-primary:#0b63b6;
  --tfe-secondary:#ffcc33;
  --tfe-bg:#f5f7fb;
  --tfe-surface:#ffffff;
  --tfe-text:#0f172a;
  --tfe-muted:#64748b;
  --tfe-border:rgba(226,232,240,.95);
  --tfe-shadow:0 18px 45px rgba(15,23,42,.10);
  --tfe-radius:20px;
  --tfe-max:1120px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:var(--tfe-bg);
  color:var(--tfe-text);
  line-height:1.7;
}
img{max-width:100%;height:auto;display:block}

/* ===== Links (premium: visible without hover) ===== */
a{
  color: color-mix(in srgb, var(--tfe-primary) 85%, #000 15%);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(11, 99, 182, 0.45);
  transition: color .18s ease, text-decoration-color .18s ease, opacity .18s ease;
}
a:hover{
  color: var(--tfe-primary);
  text-decoration-color: rgba(11, 99, 182, 0.95);
}

/* Header/nav/brand: keep clean (no underline) */
.tfe-header a,
.tfe-nav a,
.tfe-brand a{
  color:#fff;
  text-decoration:none;
}
.tfe-header a:hover,
.tfe-nav a:hover,
.tfe-brand a:hover{
  text-decoration:none;
}

/* Cards/media: no underline, keep magazine look */
.tfe-card a,
.tfe-card a:hover,
.tfe-card-media a,
.tfe-card-media a:hover,
.tfe-card-title a,
.tfe-card-title a:hover{
  color: inherit;
  text-decoration: none;
}

/* Footer */
.tfe-footer a{
  color:#fff;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.35);
  text-underline-offset: 3px;
}
.tfe-footer a:hover{
  text-decoration-color: rgba(255,255,255,.75);
}

/* Single article content: editorial (text stays inherit, underline indicates link) */
.single .tfe-article a{
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(11, 99, 182, 0.50);
  text-underline-offset: 3px;
}
.single .tfe-article a:hover{
  color: var(--tfe-primary);
  text-decoration-color: rgba(11, 99, 182, 0.95);
}

.tfe-site{min-height:100vh;display:flex;flex-direction:column}
.tfe-main{flex:1}

/* ===== Header (clean + trust) ===== */
.tfe-header{
  position:sticky; top:0; z-index:50;
  background:linear-gradient(135deg,#0b63b6,#1c88ff);
  color:#fff;
  box-shadow:0 10px 25px rgba(5,43,94,.35);
}
.tfe-header-inner{
  max-width:var(--tfe-max);
  margin:0 auto;
  padding:14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.tfe-brand{
  display:flex;align-items:center;gap:10px;
}
.tfe-brand a{
  font-weight:800;
  letter-spacing:.02em;
  color:#fff;
  font-size:1.05rem;
  line-height:1.1;
}
.tfe-badge{
  display:inline-flex;
  padding:2px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.18);
  font-size:.72rem;
  text-transform:uppercase;
  letter-spacing:.08em;
}

/* ===== Header Menu v2 (only) ===== */
.tfe-logo{
  font-weight:850;
  letter-spacing:.01em;
  color:#fff;
  font-size:1.05rem;
  text-decoration:none;
}

.tfe-header-actions{
  display:flex;
  align-items:center;
  gap:12px;
}

.tfe-header-link{
  color:rgba(255,255,255,.92);
  font-weight:650;
  font-size:.92rem;
  text-decoration:none;
  opacity:.95;
}
.tfe-header-link:hover{opacity:1}

.tfe-header-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.22);
  color:#fff;
  font-weight:750;
  font-size:.9rem;
  text-decoration:none;
}
.tfe-header-cta:hover{
  background:rgba(255,255,255,.18);
}

.tfe-nav{display:block}
.tfe-menu{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap:18px;
  align-items:center;
}

.tfe-menu > li{position:relative}
.tfe-menu > li > a{
  color:rgba(255,255,255,.92);
  font-size:.92rem;
  font-weight:700;
  text-decoration:none;
  padding:10px 6px;
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.tfe-menu > li > a:hover{color:#fff}

/* Dropdown */
.tfe-menu li ul{
  position:absolute;
  top: calc(100% - 2px);
  left:0;
  min-width:220px;
  background:#fff;
  border:1px solid var(--tfe-border);
  border-radius:14px;
  box-shadow:0 18px 45px rgba(15,23,42,.12);
  padding:8px;
  margin:0;
  display:none;
  z-index:80;
}

/* Hover bridge so dropdown doesn't "disappear" */
.tfe-menu > li{
  padding-bottom: 10px;
  margin-bottom: -10px;
}

.tfe-menu li:hover > ul,
.tfe-menu li:focus-within > ul{
  display:block;
}

.tfe-menu li ul li a{
  display:block;
  padding:10px 10px;
  border-radius:10px;
  color:var(--tfe-text);
  font-weight:650;
  font-size:.92rem;
  text-decoration:none;
}
.tfe-menu li ul li a:hover{
  background:rgba(11,99,182,.08);
  color:var(--tfe-primary);
}

/* Mobile toggle */
.tfe-nav-toggle{
  display:none;
  border:1px solid rgba(255,255,255,.25);
  background:rgba(255,255,255,.12);
  color:#fff;
  border-radius:12px;
  padding:10px 10px;
  cursor:pointer;
}
.tfe-nav-toggle-lines{
  display:block;
  width:18px;
  height:2px;
  background:#fff;
  position:relative;
}
.tfe-nav-toggle-lines::before,
.tfe-nav-toggle-lines::after{
  content:"";
  position:absolute;
  left:0;
  width:18px;
  height:2px;
  background:#fff;
}
.tfe-nav-toggle-lines::before{top:-6px}
.tfe-nav-toggle-lines::after{top:6px}

/* ===== Hero (premium navy gradient) ===== */
.tfe-hero{
  padding:18px 16px 0;
}
.tfe-hero-inner{
  max-width:var(--tfe-max);
  margin:0 auto;
}

.tfe-hero-cover{
  border-radius:28px;
  overflow:hidden;
  box-shadow:var(--tfe-shadow);
  border:1px solid rgba(255,255,255,.35);

  background:
    radial-gradient(circle at 12% 18%, rgba(255,204,51,.18) 0%, rgba(255,204,51,0) 38%),
    radial-gradient(circle at 70% 35%, rgba(11,99,182,.35) 0%, rgba(11,99,182,0) 55%),
    linear-gradient(135deg, #0b1224 0%, #081a33 45%, #020617 100%),
    url('https://travelfromeurope.com/wp-content/uploads/2025/11/Hero_Image.webp');
  background-size:cover;
  background-position:center;

  min-height:320px;
  position:relative;
}
.tfe-hero-cover::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(2,6,23,.58), rgba(2,6,23,.18));
}

.tfe-hero-content{
  position:relative; z-index:2;
  padding:34px 24px;
  max-width:720px;
  color:#fff;
}
.tfe-hero-title{
  margin:0 0 8px;
  font-size:clamp(2rem,3.2vw,2.8rem);
  line-height:1.1;
  letter-spacing:-.02em;
}
.tfe-hero-subtitle{
  margin:0 0 14px;
  color:rgba(226,232,240,.95);
  font-size:1rem;
  max-width:42rem;
}
.tfe-hero-tags{display:flex;flex-wrap:wrap;gap:8px;margin:0}
.tfe-pill{
  border-radius:999px;
  border:1px solid rgba(255,255,255,.38);
  padding:4px 10px;
  font-size:.74rem;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:rgba(255,255,255,.94);
}

/* ===== Sections ===== */
.tfe-section{padding:26px 16px 34px}
.tfe-section-inner{max-width:var(--tfe-max);margin:0 auto}
.tfe-section-header{
  display:flex;align-items:baseline;justify-content:space-between;gap:14px;
  margin-bottom:10px;
}
.tfe-section-title{margin:0;font-size:1.2rem;font-weight:800}
.tfe-section-subtitle{margin:0;color:var(--tfe-muted);font-size:.92rem}

/* ===== Post grid (TravelOffPath-ish) ===== */
.tfe-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  margin-top:14px;
}

.tfe-card{
  background:var(--tfe-surface);
  border-radius:var(--tfe-radius);
  overflow:hidden;
  border:1px solid var(--tfe-border);
  box-shadow:0 16px 36px rgba(15,23,42,.10);
  transition:transform .16s ease, box-shadow .16s ease;
}
.tfe-card:hover{
  transform:translateY(-2px);
  box-shadow:0 22px 55px rgba(15,23,42,.14);
}

.tfe-card-media{
  display:block;
  position:relative;
  overflow:hidden;
}
.tfe-card-media img{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  transform:scale(1);
  transition:transform .25s ease;
  background:linear-gradient(135deg,#0b63b6,#ffcc33);
}
.tfe-card:hover .tfe-card-media img{transform:scale(1.04)}

.tfe-card-body{padding:12px 14px 14px;display:flex;flex-direction:column;gap:6px}
.tfe-card-kicker{
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--tfe-primary);
}
.tfe-card-title{
  margin:0;
  font-size:1.02rem;
  line-height:1.25;
  font-weight:800;
}
.tfe-card-title a{color:inherit}
.tfe-card-excerpt{margin:0;color:var(--tfe-muted);font-size:.9rem}
.tfe-card-meta{
  margin-top:6px;
  display:flex;justify-content:space-between;gap:10px;
  color:var(--tfe-muted);
  font-size:.78rem;
}

/* Simple pager */
.tfe-pager{display:flex;justify-content:center;gap:10px;margin-top:18px}
.tfe-pager a{
  display:inline-flex;align-items:center;justify-content:center;
  padding:8px 12px;border-radius:999px;
  border:1px solid var(--tfe-border);
  background:#fff;
  font-weight:700;
}
.tfe-pager a:hover{text-decoration:none;transform:translateY(-1px)}

/* ===== Footer ===== */
.tfe-footer{
  background:#020617;
  color:rgba(226,232,240,.85);
  padding:18px 16px 22px;
  margin-top:14px;
}
.tfe-footer-inner{
  max-width:var(--tfe-max);
  margin:0 auto;
  display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;
  font-size:.82rem;
}

/* ===== Responsive ===== */
@media (max-width: 1024px){
  .tfe-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width: 860px){
  .tfe-nav-toggle{display:inline-flex}
  .tfe-nav{
    display:none;
    position:absolute;
    left:12px;
    right:12px;
    top:64px;
    background:rgba(2,6,23,.96);
    border:1px solid rgba(255,255,255,.12);
    border-radius:18px;
    padding:10px;
    box-shadow:0 18px 45px rgba(15,23,42,.30);
  }
  .tfe-nav.is-open{display:block}

  .tfe-menu{
    flex-direction:column;
    align-items:stretch;
    gap:2px;
  }
  .tfe-menu > li > a{
    padding:12px 12px;
    border-radius:14px;
  }
  .tfe-menu li ul{
    position:static;
    display:block;
    background:transparent;
    border:none;
    box-shadow:none;
    padding:0 0 8px 8px;
    margin:0;
  }
  .tfe-menu li ul li a{
    color:rgba(226,232,240,.92);
  }
  .tfe-menu li ul li a:hover{
    background:rgba(255,255,255,.08);
    color:#fff;
  }

  .tfe-header-actions{display:none}
}
@media (max-width: 520px){
  .tfe-grid{grid-template-columns:1fr}
  .tfe-hero-cover{min-height:280px}
  .tfe-hero-content{padding:26px 18px}
}

/* === SINGLE POST: hero featured image + readable typography === */
.single .tfe-layout{
  max-width: 920px;
  margin: 0 auto;
  padding: 22px 16px 56px;
}

.single .tfe-article-title{
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.single .tfe-article-meta{
  font-size: 0.9rem;
}

/* Hero featured image */
.single .tfe-featured{
  margin: 14px 0 18px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.single .tfe-featured-img{
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  max-height: 520px;
}

/* Article card */
.single .tfe-article{
  background: #fff;
  border-radius: 18px;
  padding: 26px 22px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.10);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

/* Typography */
.single .tfe-article p,
.single .tfe-article li{
  font-size: 1.03rem;
  line-height: 1.85;
}

.single .tfe-article h2{
  font-size: 1.45rem;
  line-height: 1.25;
  margin: 26px 0 10px;
  scroll-margin-top: 90px;
}

.single .tfe-article h3{
  font-size: 1.2rem;
  margin: 20px 0 8px;
  scroll-margin-top: 90px;
}

.single .tfe-article img{
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

@media (max-width: 768px){
  .single .tfe-article{
    padding: 18px 16px;
    border-radius: 16px;
  }
  .single .tfe-featured-img{
    max-height: 360px;
  }
}

/* === Single: Next / Previous navigation === */
.single .tfe-post-nav{
  margin-top: 18px;
}

.single .tfe-post-nav-inner{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.single .tfe-post-nav-link{
  display: block;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  padding: 14px 14px 12px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.10);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  text-decoration: none;
  color: inherit;
  min-height: 74px;
}

.single .tfe-post-nav-link:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.14);
  text-decoration: none;
}

.single .tfe-post-nav-kicker{
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tfe-muted);
  margin-bottom: 6px;
}

.single .tfe-post-nav-title{
  display: block;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.25;
}

.single .tfe-post-nav-prev .tfe-post-nav-title{
  text-align: left;
}

.single .tfe-post-nav-next .tfe-post-nav-title,
.single .tfe-post-nav-next .tfe-post-nav-kicker{
  text-align: right;
}

.single .tfe-post-nav-link--disabled{
  opacity: 0.55;
  background: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px){
  .single .tfe-post-nav-inner{
    grid-template-columns: 1fr;
  }
  .single .tfe-post-nav-next .tfe-post-nav-title,
  .single .tfe-post-nav-next .tfe-post-nav-kicker{
    text-align: left;
  }
}

/* === Author box (trust / E-E-A-T) === */
.tfe-author-box{
  margin-top: 20px;
}

.tfe-author-box__inner{
  display:flex;
  gap:14px;
  align-items:flex-start;
  background: linear-gradient(135deg, rgba(11,99,182,.10), rgba(255,255,255,1));
  border: 1px solid rgba(11,99,182,.16);
  border-radius: 16px;
  padding: 14px 14px;
  box-shadow: 0 14px 30px rgba(15,23,42,.08);
}

.tfe-author-box__avatar{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  letter-spacing: .06em;
  font-size: .85rem;
  color: #fff;
  background: linear-gradient(135deg, var(--tfe-primary), #1c88ff);
  flex: 0 0 auto;
}

.tfe-author-box__content{min-width:0}

.tfe-author-box__label{
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tfe-muted);
  margin-bottom: 4px;
}

.tfe-author-box__title{
  margin: 0 0 6px;
  font-size: 1.05rem;
  line-height: 1.2;
}

.tfe-author-box__text{
  margin: 0 0 8px;
  color: var(--tfe-text);
  font-size: .98rem;
  line-height: 1.75;
}

.tfe-author-box__note{
  margin: 0;
  color: var(--tfe-muted);
  font-size: .86rem;
  line-height: 1.6;
}

.tfe-author-box__links{
  margin-top: 10px;
  display:flex;
  gap:10px;
  flex-wrap: wrap;
}

.tfe-author-box__link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(11,99,182,.18);
  background: rgba(255,255,255,.85);
  color: var(--tfe-primary);
  font-weight: 800;
  font-size: .86rem;
  text-decoration: none;
  transition: transform .16s ease;
}
.tfe-author-box__link:hover{
  text-decoration: none;
  transform: translateY(-1px);
}

@media (max-width: 520px){
  .tfe-author-box__inner{padding:12px}
  .tfe-author-box__avatar{
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }
}

/* ================================
   CONTENT WIDTH & PADDING – CLEAN FIX (Pages + About)
   ================================ */

/* Reset side padding on wrappers so we control layout in one place */
.site-content,
.content-area,
.site-main,
.entry-content{
  padding-left: 0;
  padding-right: 0;
}

/* Pages: readable centered content */
body.page .entry-content{
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

/* About: same as pages (explicit for safety) */
body.page-about-travel-from-europe .entry-content{
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

/* About typography */
body.page-about-travel-from-europe .entry-content p,
body.page-about-travel-from-europe .entry-content li{
  line-height: 1.75;
}

/* Mobile fine-tuning */
@media (max-width: 768px){
  body.page .entry-content{
    padding-left: 18px;
    padding-right: 18px;
  }
}
/* =========================================
   PAGES (About, Contact, etc.) – SAME LAYOUT AS SINGLE
   Paste this at the VERY END of style.css
   ========================================= */

/* Page container */
body.page .tfe-layout{
  max-width: 920px;
  margin: 0 auto;
  padding: 22px 16px 56px;
}

/* Page title */
body.page .tfe-article-title{
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

/* Page content card (same as article card) */
body.page .tfe-article{
  background: #fff;
  border-radius: 18px;
  padding: 26px 22px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.10);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

/* Typography inside page */
body.page .tfe-article p,
body.page .tfe-article li{
  font-size: 1.03rem;
  line-height: 1.85;
}

/* Headings inside page */
body.page .tfe-article h2{
  font-size: 1.45rem;
  line-height: 1.25;
  margin: 26px 0 10px;
}
body.page .tfe-article h3{
  font-size: 1.2rem;
  margin: 20px 0 8px;
}

/* Make separators not run edge-to-edge inside the card */
body.page .tfe-article hr{
  margin: 22px 0;
}

/* Mobile */
@media (max-width: 768px){
  body.page .tfe-article{
    padding: 18px 16px;
    border-radius: 16px;
  }
}
