/*
Theme Name: TLT Ministry
Theme URI: https://thelordthunders.org
Author: The Lord Thunders Ministry
Author URI: https://thelordthunders.org
Description: Custom WordPress theme for The Lord Thunders Ministry blog — matching the ministry website design with gold and dark navy colors.
Version: 1.0
License: GNU General Public License v2
Text Domain: tlt-ministry
*/

/* ── VARIABLES ── */
:root {
  --gold: #D4AF37;
  --gold-light: #F5D76E;
  --gold-dark: #9A7C1A;
  --crimson: #8B0000;
  --dark: #050A0E;
  --dark2: #0A1520;
  --dark3: #0F1E2C;
  --white: #F0EDE6;
  --muted: rgba(240,237,230,0.6);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 18px;
  line-height: 1.7;
  background: var(--dark);
  color: var(--white);
  overflow-x: hidden;
}

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4,h5,h6 {
  font-family: 'Cinzel', Georgia, serif;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 16px;
}
a { color: var(--gold); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .8; }
p { margin-bottom: 16px; color: var(--muted); }
img { max-width: 100%; height: auto; display: block; }


/* ── BACK TO MAIN SITE BANNER ── */
.tlt-back-banner{
  background:linear-gradient(90deg,rgba(139,0,0,.85),rgba(100,0,0,.85));
  border-bottom:1px solid rgba(212,175,55,.2);
  padding:8px 24px;
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:8px;
}
.tlt-back-banner a{
  font-family:'Cinzel',serif; font-size:11px; font-weight:700;
  letter-spacing:.1em; text-transform:uppercase;
  color:rgba(255,255,255,.9); text-decoration:none;
  display:inline-flex; align-items:center; gap:6px;
  transition:color .2s;
}
.tlt-back-banner a:hover{color:#D4AF37}
.tlt-back-banner .banner-right{font-size:11px;color:rgba(255,255,255,.5);font-family:'Cinzel',serif;letter-spacing:.08em}

/* ── NAV ── */
.tlt-nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(5,10,14,.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212,175,55,.2);
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.tlt-nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.tlt-nav-logo img { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(212,175,55,.5); }
.tlt-nav-logo span {
  font-family: 'Cinzel Decorative', serif; font-size: 13px; font-weight: 700;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.tlt-nav-links { display: flex; align-items: center; gap: 24px; list-style: none; flex-wrap: wrap; }
.tlt-nav-links a {
  font-family: 'Cinzel', serif; font-size: 11px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  text-decoration: none; transition: color .25s;
}
.tlt-nav-links a:hover, .tlt-nav-links a.active { color: var(--gold); }
.tlt-nav-links .nav-home {
  background: var(--crimson); color: white !important;
  padding: 7px 16px; border-radius: 4px;
  box-shadow: 0 0 14px rgba(139,0,0,.4);
}

/* ── HERO BANNER ── */
.tlt-blog-hero {
  background: linear-gradient(to bottom, rgba(5,10,14,.6), rgba(5,10,14,.85)),
              url('') center/cover no-repeat;
  background-color: var(--dark2);
  padding: 80px 24px 60px;
  text-align: center;
  border-bottom: 1px solid rgba(212,175,55,.15);
  position: relative; overflow: hidden;
}
.tlt-blog-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 60%, rgba(212,175,55,.07) 0%, transparent 65%);
  pointer-events: none;
}
.tlt-blog-hero h1 {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(22px, 4vw, 42px);
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 10px; position: relative;
}
.tlt-blog-hero p { font-size: 16px; color: var(--muted); position: relative; }

/* ── LAYOUT ── */
.tlt-container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.tlt-blog-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 40px; padding: 48px 0; }
@media(max-width:900px){ .tlt-blog-wrap { grid-template-columns: 1fr; } }

/* ── POST CARDS ── */
.tlt-posts { display: flex; flex-direction: column; gap: 28px; }
.tlt-post-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(212,175,55,.12);
  border-radius: 14px; overflow: hidden;
  transition: all .3s;
}
.tlt-post-card:hover {
  border-color: rgba(212,175,55,.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
}
.tlt-post-thumb img { width: 100%; height: 220px; object-fit: cover; }
.tlt-post-thumb .tlt-no-thumb {
  width: 100%; height: 160px;
  background: linear-gradient(135deg, var(--dark2), var(--dark3));
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
}
.tlt-post-body { padding: 24px; }
.tlt-post-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.tlt-cat-badge {
  font-family: 'Cinzel', serif; font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  background: rgba(212,175,55,.12); color: var(--gold);
  border: 1px solid rgba(212,175,55,.3);
  padding: 3px 10px; border-radius: 10px;
}
.tlt-post-date { font-size: 12px; color: var(--muted); }
.tlt-post-card h2 { font-size: clamp(18px, 2.5vw, 24px); margin-bottom: 10px; color: var(--white); }
.tlt-post-card h2 a { color: var(--white); text-decoration: none; transition: color .2s; }
.tlt-post-card h2 a:hover { color: var(--gold); }
.tlt-excerpt { font-size: 16px; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.tlt-read-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Cinzel', serif; font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(212,175,55,.35);
  padding: 8px 18px; border-radius: 20px; transition: all .25s;
}
.tlt-read-more:hover { background: rgba(212,175,55,.1); border-color: var(--gold); }

/* ── SINGLE POST ── */
.tlt-single-post { padding: 48px 0; }
.tlt-post-header { margin-bottom: 36px; }
.tlt-post-header h1 { font-size: clamp(24px, 4vw, 42px); color: var(--white); margin-bottom: 14px; }
.tlt-post-header .tlt-post-meta { margin-bottom: 0; }
.tlt-post-featured img { width: 100%; max-height: 460px; object-fit: cover; border-radius: 14px; margin-bottom: 36px; border: 1px solid rgba(212,175,55,.15); }
.tlt-post-content { font-size: 18px; line-height: 1.85; color: var(--muted); }
.tlt-post-content h2 { font-size: 26px; color: var(--gold); margin: 32px 0 14px; }
.tlt-post-content h3 { font-size: 22px; color: var(--white); margin: 24px 0 12px; }
.tlt-post-content p { margin-bottom: 20px; }
.tlt-post-content blockquote {
  border-left: 3px solid var(--gold); padding: 14px 24px;
  margin: 24px 0; background: rgba(212,175,55,.05);
  border-radius: 0 8px 8px 0; font-style: italic;
  color: var(--white); font-size: 20px;
}
.tlt-post-content ul, .tlt-post-content ol { padding-left: 24px; margin-bottom: 20px; }
.tlt-post-content li { margin-bottom: 8px; }
.tlt-post-content a { color: var(--gold); border-bottom: 1px solid rgba(212,175,55,.3); }
.tlt-post-content img { border-radius: 10px; margin: 20px auto; border: 1px solid rgba(212,175,55,.15); }

/* ── SIDEBAR ── */
.tlt-sidebar { display: flex; flex-direction: column; gap: 24px; }
.tlt-widget {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(212,175,55,.15);
  border-radius: 12px; padding: 22px;
}
.tlt-widget-title {
  font-family: 'Cinzel', serif; font-size: 12px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(212,175,55,.15);
}
.tlt-recent-post { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.tlt-recent-post img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.tlt-recent-post-info a { font-size: 14px; color: var(--white); display: block; margin-bottom: 4px; line-height: 1.4; }
.tlt-recent-post-info a:hover { color: var(--gold); }
.tlt-recent-post-info span { font-size: 12px; color: var(--muted); }
.tlt-cat-list { list-style: none; }
.tlt-cat-list li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.tlt-cat-list li:last-child { border-bottom: none; }
.tlt-cat-list a { font-size: 14px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.tlt-cat-list a:hover { color: var(--gold); }
.tlt-cat-list span { background: rgba(212,175,55,.12); color: var(--gold); font-size: 11px; padding: 2px 8px; border-radius: 8px; }

/* ── SUBSCRIBE WIDGET ── */
.tlt-subscribe-widget { text-align: center; }
.tlt-subscribe-widget p { font-size: 14px; margin-bottom: 14px; }
.tlt-subscribe-widget a {
  display: block; padding: 12px 20px;
  background: var(--crimson); color: white;
  font-family: 'Cinzel', serif; font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  border-radius: 8px; text-align: center;
  box-shadow: 0 0 20px rgba(139,0,0,.4); transition: all .25s;
}
.tlt-subscribe-widget a:hover { background: #a50000; }

/* ── PAGINATION ── */
.tlt-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.tlt-pagination a, .tlt-pagination span {
  padding: 10px 18px; border-radius: 6px;
  font-family: 'Cinzel', serif; font-size: 13px; font-weight: 600;
  border: 1px solid rgba(212,175,55,.25); color: var(--muted); transition: all .25s;
}
.tlt-pagination a:hover { border-color: var(--gold); color: var(--gold); }
.tlt-pagination .current { background: var(--gold); color: var(--dark); border-color: var(--gold); }

/* ── FOOTER ── */
.tlt-footer {
  background: var(--dark);
  border-top: 1px solid rgba(212,175,55,.15);
  padding: 36px 24px; text-align: center; margin-top: 60px;
}
.tlt-footer .footer-logo {
  font-family: 'Cinzel Decorative', serif; font-size: 16px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.tlt-footer p { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.tlt-footer a { color: var(--gold); }

/* ── SEARCH ── */
.tlt-search { display: flex; gap: 8px; }
.tlt-search input {
  flex: 1; padding: 10px 14px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; color: var(--white); font-size: 14px; outline: none;
}
.tlt-search input:focus { border-color: var(--gold); }
.tlt-search button {
  padding: 10px 16px; background: var(--gold); color: var(--dark);
  border: none; border-radius: 8px; font-weight: 700; cursor: pointer;
}

/* ── PRAYER WIDGET ── */
.tlt-prayer-widget input, .tlt-prayer-widget textarea {
  width: 100%; padding: 10px 12px; margin-bottom: 10px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 7px; color: var(--white); font-size: 14px; outline: none;
  font-family: Georgia, serif;
}
.tlt-prayer-widget textarea { height: 90px; resize: vertical; }
.tlt-prayer-widget input:focus, .tlt-prayer-widget textarea:focus { border-color: var(--gold); }
.tlt-prayer-widget button {
  width: 100%; padding: 12px; background: var(--crimson); color: white;
  border: none; border-radius: 8px; font-family: 'Cinzel', serif;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; cursor: pointer;
  box-shadow: 0 0 16px rgba(139,0,0,.4); transition: all .25s;
}
.tlt-prayer-widget button:hover { background: #a50000; }

/* ── RESPONSIVE ── */
@media(max-width:768px) {
  .tlt-nav-links { display: none; }
  .tlt-blog-hero { padding: 60px 16px 40px; }
}

/* ── BILINGUAL POST ── */
.tlt-lang-toggle{display:flex;justify-content:center;gap:10px;margin:20px 0}
.tlt-lang-toggle button{font-family:'Cinzel',serif;font-size:12px;font-weight:700;letter-spacing:.1em;padding:8px 20px;border-radius:20px;border:1.5px solid rgba(212,175,55,.3);background:transparent;color:var(--muted);cursor:pointer;transition:all .25s}
.tlt-lang-toggle button.active{background:var(--gold);color:var(--dark);border-color:var(--gold)}
.tlt-amharic-content{display:none;font-family:'Noto Sans Ethiopic',sans-serif}
.tlt-amharic-content.visible{display:block}
.tlt-english-content.hidden{display:none}

/* ── CATEGORY ARCHIVE HERO ── */
.tlt-cat-hero{padding:60px 24px 40px;text-align:center;background:linear-gradient(to bottom,rgba(5,10,14,.4),rgba(5,10,14,.9)),var(--dark2);border-bottom:1px solid rgba(212,175,55,.15)}
.tlt-cat-hero .cat-icon{font-size:48px;display:block;margin-bottom:10px}
.tlt-cat-hero h1{font-family:'Cinzel Decorative',serif;font-size:clamp(20px,4vw,36px);background:linear-gradient(90deg,var(--gold),var(--gold-light));-webkit-background-clip:text;-webkit-text-fill-color:transparent;margin-bottom:8px}
.tlt-cat-hero p{color:var(--muted);font-size:16px;max-width:560px;margin:0 auto}

/* ── SEO SCHEMA HIDDEN ── */
.tlt-schema{display:none}

/* ── BREADCRUMB ── */
.tlt-breadcrumb{padding:12px 0;font-size:13px;color:var(--muted);margin-bottom:8px}
.tlt-breadcrumb a{color:var(--gold);text-decoration:none}
.tlt-breadcrumb a:hover{opacity:.8}
.tlt-breadcrumb span{margin:0 6px;opacity:.5}

/* ── Gutenberg block image fixes ─────────────────────────────────── */
.tlt-post-content figure { margin: 24px 0; }
.tlt-post-content figure img { width: 100%; height: auto; display: block; border-radius: 10px; border: 1px solid rgba(212,175,55,.15); }
.tlt-post-content figcaption { text-align: center; font-size: 13px; color: var(--muted); margin-top: 8px; font-style: italic; }

/* wp-block-image — all alignment variants */
.tlt-post-content .wp-block-image { margin: 24px 0; }
.tlt-post-content .wp-block-image img { max-width: 100%; height: auto; display: block; border-radius: 10px; border: 1px solid rgba(212,175,55,.15); }
.tlt-post-content .wp-block-image.aligncenter,
.tlt-post-content .wp-block-image.aligncenter img { margin-left: auto; margin-right: auto; }
.tlt-post-content .wp-block-image.alignleft { float: left; margin: 8px 24px 16px 0; max-width: 50%; }
.tlt-post-content .wp-block-image.alignright { float: right; margin: 8px 0 16px 24px; max-width: 50%; }
.tlt-post-content .wp-block-image.alignfull,
.tlt-post-content .wp-block-image.alignwide { max-width: 100%; }
.tlt-post-content .wp-block-image figcaption { text-align: center; font-size: 13px; color: var(--muted); margin-top: 8px; font-style: italic; }

/* Classic editor img (inserted via Add Media button) */
.tlt-post-content img.aligncenter { display: block; margin: 20px auto; }
.tlt-post-content img.alignleft  { float: left;  margin: 8px 24px 16px 0; }
.tlt-post-content img.alignright { float: right; margin: 8px 0 16px 24px; }
.tlt-post-content img.size-full,
.tlt-post-content img.size-large { max-width: 100%; height: auto; }

/* Clear floats after post content */
.tlt-post-content::after { content: ''; display: table; clear: both; }

/* ── NUCLEAR IMAGE FIX — overrides reset for all post content images ── */
.tlt-post-content figure,
.tlt-post-content .wp-block-image,
.tlt-post-content .wp-block-image figure {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 24px 0 !important;
  padding: 0 !important;
}
.tlt-post-content figure img,
.tlt-post-content .wp-block-image img,
.tlt-post-content .wp-block-image figure img,
.tlt-post-content p img,
.tlt-post-content img {
  display: block !important;
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  margin: 0 auto !important;
  visibility: visible !important;
  opacity: 1 !important;
}
