/*
 Theme Name:   DataForEverybody Child Theme
 Theme URI:    https://www.dataforeverybody.com
 Description:  Custom child theme for DataForEverybody.com — clean, professional redesign with category-focused homepage and teal accent.
 Author:       DataForEverybody
 Author URI:   https://www.dataforeverybody.com
 Template:     generatepress
 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:  dfe-child
*/

/* ═══════════════════════════════════════════════
   DATAFOREVERYBODY CUSTOM STYLES
═══════════════════════════════════════════════ */

:root {
  /* ─── PALETTE ─── */
  --dfe-white: #FFFFFF;
  --dfe-snow: #F7F9FA;
  --dfe-fog: #EBF0F2;
  --dfe-silver: #CBD5DC;
  --dfe-slate: #5E7382;
  --dfe-ink: #131F29;

  /* Teal primary */
  --dfe-teal-50: #EDFAF8;
  --dfe-teal-100: #D1F4EE;
  --dfe-teal-200: #A3E8DD;
  --dfe-teal-400: #2EC4B6;
  --dfe-teal-500: #1AAE9F;
  --dfe-teal-600: #0E9384;
  --dfe-teal-700: #0A7A6E;
  --dfe-teal-900: #0A2E2A;

  /* Category palette */
  --dfe-cat-acquisition: #8B5CF6;
  --dfe-cat-acquisition-bg: #F3EFFE;
  --dfe-cat-wrangling: #E97319;
  --dfe-cat-wrangling-bg: #FFF4EB;
  --dfe-cat-visualization: #2563EB;
  --dfe-cat-visualization-bg: #EFF5FF;
  --dfe-cat-python: #16A34A;
  --dfe-cat-python-bg: #ECFDF5;

  /* ─── TYPOGRAPHY ─── */
  --dfe-font-display: 'DM Serif Display', Georgia, serif;
  --dfe-font-body: 'Outfit', system-ui, sans-serif;
  --dfe-font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* ─── SPACING ─── */
  --dfe-page-max: 1140px;
  --dfe-page-pad: 2rem;

  /* ─── EFFECTS ─── */
  --dfe-shadow-sm: 0 1px 2px rgba(19,31,41,0.04), 0 1px 4px rgba(19,31,41,0.03);
  --dfe-shadow-md: 0 2px 4px rgba(19,31,41,0.04), 0 8px 20px rgba(19,31,41,0.06);
  --dfe-shadow-lg: 0 4px 8px rgba(19,31,41,0.04), 0 16px 40px rgba(19,31,41,0.08);
  --dfe-radius: 12px;
  --dfe-radius-lg: 16px;
}

/* ─── GLOBAL OVERRIDES ─── */
body {
  font-family: var(--dfe-font-body);
  background: var(--dfe-white);
  color: var(--dfe-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Smaller body text on posts and pages */
.single .entry-content,
.page .entry-content,
.single .entry-content p,
.page .entry-content p,
.single .entry-content li,
.page .entry-content li,
.single .entry-content td,
.page .entry-content td,
.single .entry-content blockquote,
.page .entry-content blockquote {
  font-size: 1rem !important;
  line-height: 1.75 !important;
}

/* Code blocks on posts */
.single .entry-content code,
.page .entry-content code {
  font-family: var(--dfe-font-mono);
  font-size: 0.88rem;
  background: var(--dfe-snow);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--dfe-fog);
}

.single .entry-content pre code,
.page .entry-content pre code {
  display: block;
  padding: 1.25rem;
  border-radius: var(--dfe-radius);
  overflow-x: auto;
}

/* ─── HIDE DEFAULT GP HEADER/NAV SITE-WIDE ─── */
.site-header,
#site-navigation,
.main-navigation,
.navigation-branding,
.gen-sidebar-nav,
.site-branding-container,
header#masthead,
.top-bar,
.inside-header,
.menu-toggle,
#mobile-header,
.mobile-header-navigation,
#menu-topnav,
.sf-menu,
.search-item,
.site-branding,
.inside-navigation {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Hide GP footer & sidebar on homepage only */
.site-footer {
  display: none !important;
}

.home .entry-title,
.home .entry-meta,
.home #primary-sidebar {
  display: none !important;
}

.home .site-content {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}

.home .inside-article {
  padding: 0 !important;
  margin: 0 !important;
}

/* ─── GRID BACKGROUND ─── */
.dfe-grid-bg {
  background-image:
    linear-gradient(var(--dfe-fog) 1px, transparent 1px),
    linear-gradient(90deg, var(--dfe-fog) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
}

/* ═══════════════════════════════════
   CUSTOM NAV
═══════════════════════════════════ */
.dfe-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--dfe-fog);
  animation: dfe-fadeDown 0.5s ease-out;
}

.dfe-nav-inner {
  max-width: var(--dfe-page-max);
  margin: 0 auto;
  padding: 0 var(--dfe-page-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.dfe-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--dfe-ink);
}

.dfe-logo-mark-img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: block;
  object-fit: contain;
}

.dfe-logo-name {
  font-family: var(--dfe-font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.dfe-logo-name span { color: var(--dfe-teal-500); }

.dfe-nav-links {
  display: flex;
  align-items: center;
  gap: 1px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dfe-nav-links a {
  text-decoration: none;
  color: var(--dfe-slate);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 8px;
  transition: all 0.2s;
}

.dfe-nav-links a:hover {
  color: var(--dfe-ink);
  background: var(--dfe-teal-50);
}

.dfe-nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.dfe-nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--dfe-ink);
  margin: 4px 0;
  border-radius: 2px;
}

/* ═══════════════════════════════════
   SEARCH TOGGLE & OVERLAY
═══════════════════════════════════ */
.dfe-search-toggle {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  border: none !important;
  background: transparent !important;
  color: var(--dfe-slate) !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  margin-left: 4px !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
}

.dfe-search-toggle:hover {
  color: var(--dfe-ink) !important;
  background: var(--dfe-teal-50) !important;
}

.dfe-search-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 999999 !important;
  background: rgba(19, 31, 41, 0.55) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  padding-top: 18vh !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0.25s ease, visibility 0.25s ease !important;
  margin: 0 !important;
  border: none !important;
  box-sizing: border-box !important;
}

.dfe-search-overlay.dfe-search-open {
  opacity: 1 !important;
  visibility: visible !important;
}

.dfe-search-overlay-inner {
  width: 100% !important;
  max-width: 560px !important;
  transform: translateY(-14px) !important;
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1) !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.dfe-search-open .dfe-search-overlay-inner {
  transform: translateY(0) !important;
}

.dfe-search-form {
  display: flex !important;
  align-items: center !important;
  background: var(--dfe-white) !important;
  border-radius: 16px !important;
  padding: 6px 8px 6px 20px !important;
  box-shadow: 0 20px 60px rgba(19, 31, 41, 0.22), 0 4px 12px rgba(19, 31, 41, 0.1) !important;
  gap: 4px !important;
  border: none !important;
  margin: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.dfe-search-form-icon {
  color: var(--dfe-silver) !important;
  flex-shrink: 0 !important;
  width: 22px !important;
  height: 22px !important;
}

.dfe-search-form-input {
  flex: 1 !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  font-family: var(--dfe-font-body) !important;
  font-size: 1.1rem !important;
  color: var(--dfe-ink) !important;
  padding: 14px 12px !important;
  margin: 0 !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  width: auto !important;
  min-width: 0 !important;
}

.dfe-search-form-input::placeholder {
  color: var(--dfe-silver) !important;
}

.dfe-search-form-input:focus {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

.dfe-search-close {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  border: none !important;
  background: var(--dfe-snow) !important;
  color: var(--dfe-slate) !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  transition: all 0.2s !important;
  padding: 0 !important;
  margin: 0 !important;
}

.dfe-search-close:hover {
  background: var(--dfe-fog) !important;
  color: var(--dfe-ink) !important;
}

.dfe-search-submit {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  border: none !important;
  background: var(--dfe-teal-500) !important;
  color: white !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  transition: all 0.2s !important;
  padding: 0 !important;
  margin: 0 !important;
}

.dfe-search-submit:hover {
  background: var(--dfe-teal-600) !important;
}

/* ═══════════════════════════════════
   HERO
═══════════════════════════════════ */
.dfe-hero {
  position: relative;
  padding: 5rem var(--dfe-page-pad) 3.5rem;
  text-align: center;
  overflow: hidden;
  animation: dfe-fadeUp 0.7s ease-out;
}

.dfe-hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--dfe-page-max);
  margin: 0 auto;
}

.dfe-hero h1 {
  font-family: var(--dfe-font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.35rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.01em;
  max-width: 700px;
  margin: 0 auto 1rem;
}

.dfe-hero h1 em {
  font-style: italic;
  color: var(--dfe-teal-500);
}

.dfe-hero-sub {
  font-size: 1.08rem;
  color: var(--dfe-slate);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Floating code snippets ── */
.dfe-hero-floats {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.dfe-float-badge {
  position: absolute;
  padding: 8px 14px;
  border-radius: 10px;
  font-family: var(--dfe-font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0;
  animation: dfe-floatIn 0.6s ease-out forwards, dfe-floatBob 5s ease-in-out infinite;
  white-space: nowrap;
  box-shadow: var(--dfe-shadow-sm);
}

.dfe-float-1 {
  top: 20%; left: 6%;
  background: var(--dfe-cat-python-bg); color: var(--dfe-cat-python);
  animation-delay: 0.3s, 0.9s;
  --dfe-float-y: -8px;
}
.dfe-float-2 {
  top: 62%; left: 4%;
  background: var(--dfe-cat-visualization-bg); color: var(--dfe-cat-visualization);
  animation-delay: 0.45s, 1.2s;
  --dfe-float-y: 10px;
}
.dfe-float-3 {
  top: 32%; left: 16%;
  background: var(--dfe-cat-wrangling-bg); color: var(--dfe-cat-wrangling);
  animation-delay: 0.55s, 0.6s;
  --dfe-float-y: -12px;
}
.dfe-float-4 {
  top: 18%; right: 8%;
  background: var(--dfe-cat-acquisition-bg); color: var(--dfe-cat-acquisition);
  animation-delay: 0.35s, 1.5s;
  --dfe-float-y: 9px;
}
.dfe-float-5 {
  top: 60%; right: 5%;
  background: var(--dfe-teal-50); color: var(--dfe-teal-600);
  animation-delay: 0.5s, 0.3s;
  --dfe-float-y: -10px;
}
.dfe-float-6 {
  top: 38%; right: 18%;
  background: var(--dfe-cat-python-bg); color: var(--dfe-cat-python);
  animation-delay: 0.6s, 1.8s;
  --dfe-float-y: 7px;
}

/* ═══════════════════════════════════
   CATEGORIES
═══════════════════════════════════ */
.dfe-categories {
  max-width: var(--dfe-page-max);
  margin: 0 auto;
  padding: 0 var(--dfe-page-pad) 4rem;
}

.dfe-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.dfe-cat-card {
  background: var(--dfe-white);
  border: 1.5px solid var(--dfe-fog);
  border-radius: var(--dfe-radius-lg);
  padding: 1.75rem 1.5rem;
  text-decoration: none;
  color: var(--dfe-ink);
  transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  animation: dfe-fadeUp 0.5s ease-out forwards;
}

.dfe-cat-card:nth-child(1) { animation-delay: 0.1s; }
.dfe-cat-card:nth-child(2) { animation-delay: 0.15s; }
.dfe-cat-card:nth-child(3) { animation-delay: 0.2s; }
.dfe-cat-card:nth-child(4) { animation-delay: 0.25s; }

.dfe-cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: inherit;
}

.dfe-cat-card:hover {
  border-color: transparent;
  box-shadow: var(--dfe-shadow-lg);
  transform: translateY(-4px);
}

.dfe-cat-card:hover::before { opacity: 1; }

.dfe-cat-card .dfe-cat-icon {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  transition: transform 0.3s;
  position: relative;
  z-index: 1;
}

.dfe-cat-card:hover .dfe-cat-icon { transform: scale(1.08); }

.dfe-cat-card h3 {
  font-family: var(--dfe-font-display);
  font-size: 1.18rem;
  font-weight: 400;
  position: relative;
  z-index: 1;
}

.dfe-cat-card .dfe-cat-desc {
  font-size: 0.84rem;
  color: var(--dfe-slate);
  line-height: 1.55;
  position: relative;
  z-index: 1;
}

.dfe-cat-card .dfe-cat-count {
  margin-top: auto;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dfe-slate);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
  padding-top: 0.85rem;
  border-top: 1px solid var(--dfe-fog);
  transition: border-color 0.3s;
}

.dfe-cat-card:hover .dfe-cat-count { border-color: transparent; }

.dfe-cat-card .dfe-cat-arrow {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: all 0.3s;
}

.dfe-cat-card:hover .dfe-cat-arrow { transform: translateX(2px); }

/* Category theming */
.dfe-cat-acquisition .dfe-cat-icon { background: var(--dfe-cat-acquisition-bg); color: var(--dfe-cat-acquisition); }
.dfe-cat-acquisition::before { background: linear-gradient(135deg, var(--dfe-cat-acquisition-bg), transparent 60%); }
.dfe-cat-acquisition:hover { border-color: rgba(139,92,246,0.15); }
.dfe-cat-acquisition .dfe-cat-arrow { background: var(--dfe-cat-acquisition-bg); color: var(--dfe-cat-acquisition); }

.dfe-cat-wrangling .dfe-cat-icon { background: var(--dfe-cat-wrangling-bg); color: var(--dfe-cat-wrangling); }
.dfe-cat-wrangling::before { background: linear-gradient(135deg, var(--dfe-cat-wrangling-bg), transparent 60%); }
.dfe-cat-wrangling:hover { border-color: rgba(233,115,25,0.15); }
.dfe-cat-wrangling .dfe-cat-arrow { background: var(--dfe-cat-wrangling-bg); color: var(--dfe-cat-wrangling); }

.dfe-cat-visualization .dfe-cat-icon { background: var(--dfe-cat-visualization-bg); color: var(--dfe-cat-visualization); }
.dfe-cat-visualization::before { background: linear-gradient(135deg, var(--dfe-cat-visualization-bg), transparent 60%); }
.dfe-cat-visualization:hover { border-color: rgba(37,99,235,0.15); }
.dfe-cat-visualization .dfe-cat-arrow { background: var(--dfe-cat-visualization-bg); color: var(--dfe-cat-visualization); }

.dfe-cat-python .dfe-cat-icon { background: var(--dfe-cat-python-bg); color: var(--dfe-cat-python); }
.dfe-cat-python::before { background: linear-gradient(135deg, var(--dfe-cat-python-bg), transparent 60%); }
.dfe-cat-python:hover { border-color: rgba(22,163,74,0.15); }
.dfe-cat-python .dfe-cat-arrow { background: var(--dfe-cat-python-bg); color: var(--dfe-cat-python); }

/* ═══════════════════════════════════
   LATEST POSTS
═══════════════════════════════════ */
.dfe-latest {
  background: var(--dfe-snow);
  border-top: 1px solid var(--dfe-fog);
  border-bottom: 1px solid var(--dfe-fog);
}

.dfe-latest-inner {
  max-width: var(--dfe-page-max);
  margin: 0 auto;
  padding: 3.5rem var(--dfe-page-pad) 4rem;
}

.dfe-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.dfe-section-header h2 {
  font-family: var(--dfe-font-display);
  font-size: 1.65rem;
  font-weight: 400;
}

.dfe-section-header a {
  color: var(--dfe-teal-500);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.dfe-section-header a:hover { gap: 8px; }

.dfe-posts-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Left column: 2 stacked featured cards */
.dfe-featured-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dfe-featured-post {
  background: var(--dfe-white);
  border-radius: var(--dfe-radius-lg);
  border: 1.5px solid var(--dfe-fog);
  padding: 1.75rem;
  text-decoration: none;
  color: var(--dfe-ink);
  display: flex;
  flex-direction: column;
  flex: 1;
  transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.dfe-featured-post:hover {
  border-color: var(--dfe-teal-200);
  box-shadow: var(--dfe-shadow-md);
  transform: translateY(-2px);
}

.dfe-featured-post .dfe-post-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 6px;
  width: fit-content;
  margin-bottom: 0.75rem;
}

.dfe-featured-post h3 {
  font-family: var(--dfe-font-display);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.dfe-featured-post .dfe-post-excerpt {
  font-size: 0.88rem;
  color: var(--dfe-slate);
  line-height: 1.6;
  flex: 1;
}

.dfe-featured-post .dfe-post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--dfe-fog);
  font-size: 0.78rem;
  color: var(--dfe-slate);
}

.dfe-featured-post .dfe-read-more {
  color: var(--dfe-teal-500);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.dfe-featured-post:hover .dfe-read-more { gap: 8px; }

/* Right column: compact items */
.dfe-posts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dfe-post-item {
  background: var(--dfe-white);
  border-radius: var(--dfe-radius);
  border: 1.5px solid var(--dfe-fog);
  padding: 0.95rem 1.2rem;
  text-decoration: none;
  color: var(--dfe-ink);
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  flex: 1;
  transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.dfe-post-item:hover {
  border-color: var(--dfe-teal-200);
  box-shadow: var(--dfe-shadow-sm);
  transform: translateX(3px);
}

.dfe-post-item .dfe-post-num {
  font-family: var(--dfe-font-mono);
  font-size: 0.85rem;
  color: var(--dfe-silver);
  font-weight: 400;
  line-height: 1;
  min-width: 22px;
  padding-top: 3px;
}

.dfe-post-item:hover .dfe-post-num { color: var(--dfe-teal-500); }

.dfe-post-item-body h4 {
  font-family: var(--dfe-font-display);
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 0.25rem;
}

.dfe-post-item-body .dfe-post-tag-sm {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-block;
}

/* Tag colors */
.dfe-tag-acquisition { background: var(--dfe-cat-acquisition-bg); color: var(--dfe-cat-acquisition); }
.dfe-tag-wrangling  { background: var(--dfe-cat-wrangling-bg);  color: var(--dfe-cat-wrangling); }
.dfe-tag-visualization { background: var(--dfe-cat-visualization-bg); color: var(--dfe-cat-visualization); }
.dfe-tag-python     { background: var(--dfe-cat-python-bg);     color: var(--dfe-cat-python); }

/* ═══════════════════════════════════
   NEWSLETTER
═══════════════════════════════════ */
.dfe-newsletter {
  max-width: var(--dfe-page-max);
  margin: 0 auto;
  padding: 4rem var(--dfe-page-pad);
}

.dfe-newsletter-box {
  background: var(--dfe-teal-900);
  border-radius: 20px;
  padding: 3.5rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  position: relative;
  overflow: hidden;
}

.dfe-newsletter-box::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -10%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(26,174,159,0.25), transparent 65%);
  pointer-events: none;
}

.dfe-newsletter-box::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(46,196,182,0.12), transparent 65%);
  pointer-events: none;
}

.dfe-newsletter-text { position: relative; z-index: 1; flex: 1; }

.dfe-newsletter-text h2 {
  font-family: var(--dfe-font-display);
  font-size: 1.65rem;
  font-weight: 400;
  color: var(--dfe-white);
  margin-bottom: 0.5rem;
}

.dfe-newsletter-text p {
  color: rgba(255,255,255,0.55);
  font-size: 0.92rem;
  line-height: 1.6;
}

.dfe-newsletter-action {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.dfe-newsletter-action input {
  width: 260px;
  padding: 13px 18px;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
  color: white;
  font-family: var(--dfe-font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.dfe-newsletter-action input::placeholder { color: rgba(255,255,255,0.3); }
.dfe-newsletter-action input:focus { border-color: var(--dfe-teal-400); }

.dfe-newsletter-action button {
  padding: 13px 24px;
  background: var(--dfe-teal-500);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: var(--dfe-font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.dfe-newsletter-action button:hover {
  background: var(--dfe-teal-400);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════
   CUSTOM FOOTER
═══════════════════════════════════ */
.dfe-footer {
  border-top: 1px solid var(--dfe-fog);
}

.dfe-footer-inner {
  max-width: var(--dfe-page-max);
  margin: 0 auto;
  padding: 2rem var(--dfe-page-pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--dfe-slate);
}

.dfe-footer a {
  color: var(--dfe-slate);
  text-decoration: none;
  transition: color 0.2s;
}

.dfe-footer a:hover { color: var(--dfe-teal-500); }

.dfe-footer-links { display: flex; gap: 1.5rem; }

/* ═══════════════════════════════════
   ANIMATIONS
═══════════════════════════════════ */
@keyframes dfe-fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes dfe-fadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes dfe-floatIn {
  from { opacity: 0; transform: translateY(12px) scale(0.85); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes dfe-floatBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(var(--dfe-float-y, -8px)); }
}

/* ═══════════════════════════════════
   RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 1024px) {
  .dfe-cat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .dfe-nav-inner {
    flex-wrap: wrap;
  }

  .dfe-nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem var(--dfe-page-pad) 1rem;
    order: 10;
    background: var(--dfe-white);
  }

  .dfe-nav-open {
    background: var(--dfe-white) !important;
    box-shadow: 0 8px 24px rgba(19,31,41,0.1) !important;
  }

  .dfe-nav-links li {
    list-style: none;
  }

  .dfe-nav-links a {
    display: block !important;
    padding: 10px 0 !important;
    font-size: 1.05rem !important;
    border-bottom: 1px solid var(--dfe-fog);
  }

  .dfe-nav-links li:last-child a {
    border-bottom: none;
  }

  .dfe-nav-open .dfe-nav-links {
    display: flex !important;
  }

  .dfe-nav-hamburger { display: block; }

  .dfe-nav-open .dfe-nav-hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }
  .dfe-nav-open .dfe-nav-hamburger span:nth-child(2) {
    opacity: 0;
  }
  .dfe-nav-open .dfe-nav-hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
  }

  .dfe-nav-hamburger span {
    transition: all 0.25s ease;
  }

  .dfe-search-toggle { margin-left: auto; }
  .dfe-hero { padding: 3rem var(--dfe-page-pad) 2rem; }
  .dfe-hero-floats { display: none; }
  .dfe-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .dfe-cat-card { padding: 1.25rem; }
  .dfe-posts-layout { grid-template-columns: 1fr; }
  .dfe-newsletter-box { flex-direction: column; padding: 2.5rem 2rem; text-align: center; gap: 1.5rem; }
  .dfe-newsletter-action { flex-direction: column; width: 100%; }
  .dfe-newsletter-action input { width: 100%; }
  .dfe-section-header { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
  .dfe-footer-inner { flex-direction: column; gap: 0.75rem; text-align: center; }
}

@media (max-width: 480px) {
  .dfe-cat-grid { grid-template-columns: 1fr; }
}
