/*
Theme Name: EducationDunia
Theme URI: https://educationdunia.com
Author: EducationDunia
Author URI: https://educationdunia.com
Description: A modern, animated education blog and admission portal theme inspired by EducationDunia. Features card-based blog layouts, smooth scroll animations, and a clean orange-accent design system.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: educationdunia
Tags: blog, education, two-columns, right-sidebar, custom-menu, featured-images, translation-ready
*/

/* ============================================
   CSS CUSTOM PROPERTIES / DESIGN TOKENS
   ============================================ */
:root {
  /* Primary Palette */
  --ed-primary: #F97316;
  --ed-primary-hover: #EA580C;
  --ed-primary-light: #FFF7ED;
  --ed-primary-glow: rgba(249, 115, 22, 0.15);

  /* Neutrals */
  --ed-white: #FFFFFF;
  --ed-off-white: #F8F9FA;
  --ed-gray-100: #F1F3F5;
  --ed-gray-200: #E9ECEF;
  --ed-gray-300: #DEE2E6;
  --ed-gray-400: #ADB5BD;
  --ed-gray-500: #6C757D;
  --ed-gray-600: #495057;
  --ed-gray-700: #343A40;
  --ed-gray-800: #212529;
  --ed-dark: #1A1A2E;
  --ed-dark-lighter: #232340;

  /* Typography */
  --ed-font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ed-font-heading: 'Poppins', sans-serif;

  /* Font Sizes */
  --ed-text-xs: 0.75rem;
  --ed-text-sm: 0.875rem;
  --ed-text-base: 1rem;
  --ed-text-lg: 1.125rem;
  --ed-text-xl: 1.25rem;
  --ed-text-2xl: 1.5rem;
  --ed-text-3xl: 1.875rem;
  --ed-text-4xl: 2.25rem;

  /* Spacing */
  --ed-space-xs: 0.25rem;
  --ed-space-sm: 0.5rem;
  --ed-space-md: 1rem;
  --ed-space-lg: 1.5rem;
  --ed-space-xl: 2rem;
  --ed-space-2xl: 3rem;
  --ed-space-3xl: 4rem;

  /* Shadows */
  --ed-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --ed-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --ed-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --ed-shadow-hover: 0 12px 40px rgba(249, 115, 22, 0.15);

  /* Border Radius */
  --ed-radius-sm: 4px;
  --ed-radius-md: 8px;
  --ed-radius-lg: 12px;
  --ed-radius-xl: 16px;
  --ed-radius-full: 9999px;

  /* Transitions */
  --ed-transition-fast: 0.2s ease;
  --ed-transition-base: 0.3s ease;
  --ed-transition-slow: 0.5s ease;
  --ed-transition-spring: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* Layout */
  --ed-container-max: 1200px;
  --ed-sidebar-width: 320px;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--ed-font-primary);
  font-size: var(--ed-text-base);
  line-height: 1.7;
  color: var(--ed-gray-700);
  background-color: var(--ed-white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--ed-transition-fast);
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ed-font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ed-gray-800);
}

/* ============================================
   ANIMATION KEYFRAMES
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

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

@keyframes borderGlow {
  0%, 100% {
    box-shadow: 0 0 5px var(--ed-primary-glow);
  }
  50% {
    box-shadow: 0 0 20px var(--ed-primary-glow);
  }
}

/* Scroll-triggered animation classes */
.ed-animate {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* FALLBACK: Show everything if JS fails or hasn't loaded */
.no-js .ed-animate {
  opacity: 1;
  transform: none;
}

.ed-animate.ed-visible {
  opacity: 1;
}

.ed-animate-up {
  transform: translateY(40px);
}
.ed-animate-up.ed-visible {
  transform: translateY(0);
}

.ed-animate-left {
  transform: translateX(-40px);
}
.ed-animate-left.ed-visible {
  transform: translateX(0);
}

.ed-animate-right {
  transform: translateX(40px);
}
.ed-animate-right.ed-visible {
  transform: translateX(0);
}

.ed-animate-scale {
  transform: scale(0.9);
}
.ed-animate-scale.ed-visible {
  transform: scale(1);
}

/* Stagger delay utility classes */
.ed-delay-1 { transition-delay: 0.1s; }
.ed-delay-2 { transition-delay: 0.2s; }
.ed-delay-3 { transition-delay: 0.3s; }
.ed-delay-4 { transition-delay: 0.4s; }
.ed-delay-5 { transition-delay: 0.5s; }

/* ============================================
   UTILITY CLASSES
   ============================================ */
.ed-container {
  max-width: var(--ed-container-max);
  margin: 0 auto;
  padding: 0 var(--ed-space-lg);
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* ============================================
   TOP BAR
   ============================================ */
.ed-topbar {
  background-color: var(--ed-primary);
  color: var(--ed-white);
  padding: 8px 0;
  font-size: var(--ed-text-sm);
  animation: slideDown 0.5s ease forwards;
}

.ed-topbar .ed-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ed-topbar-left,
.ed-topbar-right {
  display: flex;
  align-items: center;
  gap: var(--ed-space-lg);
}

.ed-topbar a {
  color: var(--ed-white);
  transition: opacity var(--ed-transition-fast);
}

.ed-topbar a:hover {
  opacity: 0.85;
}

.ed-topbar-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ed-topbar-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ============================================
   MAIN HEADER / NAVIGATION
   ============================================ */
.ed-header {
  background-color: var(--ed-white);
  box-shadow: var(--ed-shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--ed-transition-base);
}

.ed-header.ed-header-scrolled {
  box-shadow: var(--ed-shadow-lg);
}

.ed-header .ed-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
}

/* Logo */
.ed-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform var(--ed-transition-base);
}

.ed-logo:hover {
  transform: scale(1.02);
}

.ed-logo img {
  height: 50px;
  width: auto;
}

.ed-logo-text {
  font-family: var(--ed-font-heading);
  font-size: var(--ed-text-xl);
  font-weight: 700;
  color: var(--ed-primary);
}

.ed-logo-text span {
  color: var(--ed-gray-800);
}

/* Navigation */
.ed-nav {
  display: flex;
  align-items: center;
  gap: var(--ed-space-sm);
}

.ed-nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
}

.ed-nav-menu li {
  position: relative;
}

.ed-nav-menu li a {
  display: block;
  padding: 10px 18px;
  font-size: var(--ed-text-base);
  font-weight: 500;
  color: var(--ed-gray-700);
  position: relative;
  transition: color var(--ed-transition-fast);
}

.ed-nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background-color: var(--ed-primary);
  transition: transform var(--ed-transition-base);
  transform-origin: center;
}

.ed-nav-menu li a:hover,
.ed-nav-menu li.current-menu-item a,
.ed-nav-menu li.current_page_item a {
  color: var(--ed-primary);
}

.ed-nav-menu li a:hover::after,
.ed-nav-menu li.current-menu-item a::after,
.ed-nav-menu li.current_page_item a::after {
  transform: translateX(-50%) scaleX(1);
}

/* Dropdown menu */
.ed-nav-menu li ul.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--ed-white);
  box-shadow: var(--ed-shadow-lg);
  border-radius: var(--ed-radius-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--ed-transition-base);
  z-index: 100;
  padding: 8px 0;
}

.ed-nav-menu li:hover > ul.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ed-nav-menu li ul.sub-menu li a {
  padding: 8px 20px;
  font-size: var(--ed-text-sm);
  white-space: nowrap;
}

.ed-nav-menu li ul.sub-menu li a::after {
  display: none;
}

.ed-nav-menu li ul.sub-menu li a:hover {
  background-color: var(--ed-primary-light);
  color: var(--ed-primary);
}

/* Search toggle */
.ed-search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ed-gray-600);
  transition: color var(--ed-transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ed-search-toggle:hover {
  color: var(--ed-primary);
}

.ed-search-toggle svg {
  width: 20px;
  height: 20px;
}

/* CTA Button */
.ed-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  font-family: var(--ed-font-primary);
  font-size: var(--ed-text-sm);
  font-weight: 600;
  border: none;
  border-radius: var(--ed-radius-md);
  cursor: pointer;
  transition: all var(--ed-transition-base);
  text-decoration: none;
  line-height: 1.4;
}

.ed-btn-primary {
  background-color: var(--ed-primary);
  color: var(--ed-white);
}

.ed-btn-primary:hover {
  background-color: var(--ed-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.35);
}

.ed-btn-outline {
  background-color: transparent;
  color: var(--ed-primary);
  border: 2px solid var(--ed-primary);
}

.ed-btn-outline:hover {
  background-color: var(--ed-primary);
  color: var(--ed-white);
  transform: translateY(-2px);
}

.ed-btn-sm {
  padding: 6px 16px;
  font-size: var(--ed-text-xs);
}

/* Mobile menu toggle */
.ed-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.ed-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--ed-gray-700);
  transition: all var(--ed-transition-base);
  border-radius: 2px;
}

.ed-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.ed-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.ed-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Search overlay */
.ed-search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--ed-transition-base);
  backdrop-filter: blur(4px);
}

.ed-search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.ed-search-overlay-inner {
  width: 90%;
  max-width: 600px;
  transform: translateY(20px);
  transition: transform var(--ed-transition-base);
}

.ed-search-overlay.active .ed-search-overlay-inner {
  transform: translateY(0);
}

.ed-search-overlay form {
  display: flex;
  background: var(--ed-white);
  border-radius: var(--ed-radius-lg);
  overflow: hidden;
  box-shadow: var(--ed-shadow-lg);
}

.ed-search-overlay input[type="search"] {
  flex: 1;
  padding: 16px 24px;
  border: none;
  font-size: var(--ed-text-lg);
  font-family: var(--ed-font-primary);
  outline: none;
}

.ed-search-overlay button[type="submit"] {
  padding: 16px 24px;
  background: var(--ed-primary);
  border: none;
  color: var(--ed-white);
  cursor: pointer;
  transition: background var(--ed-transition-fast);
}

.ed-search-overlay button[type="submit"]:hover {
  background: var(--ed-primary-hover);
}

.ed-search-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--ed-white);
  font-size: 2rem;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
}

/* ============================================
   PAGE HERO / BANNER
   ============================================ */
.ed-page-hero {
  background: linear-gradient(135deg, var(--ed-gray-100) 0%, var(--ed-off-white) 100%);
  padding: var(--ed-space-3xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ed-page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--ed-primary-glow);
  animation: float 6s ease-in-out infinite;
}

.ed-page-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--ed-primary-glow);
  animation: float 8s ease-in-out infinite reverse;
}

.ed-page-hero h1 {
  font-size: var(--ed-text-4xl);
  font-weight: 700;
  color: var(--ed-gray-800);
  margin-bottom: var(--ed-space-md);
  animation: fadeInUp 0.6s ease forwards;
  position: relative;
  z-index: 1;
}

/* Breadcrumb */
.ed-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0;
  animation: fadeInUp 0.6s ease 0.2s forwards;
  opacity: 0;
  position: relative;
  z-index: 1;
}

.ed-breadcrumb a,
.ed-breadcrumb span {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  font-size: var(--ed-text-sm);
  font-weight: 500;
  transition: all var(--ed-transition-fast);
}

.ed-breadcrumb a {
  background-color: var(--ed-primary);
  color: var(--ed-white);
  border-radius: var(--ed-radius-full);
}

.ed-breadcrumb a:hover {
  background-color: var(--ed-primary-hover);
}

.ed-breadcrumb .ed-breadcrumb-sep {
  color: var(--ed-gray-400);
  padding: 0 4px;
  background: none;
}

.ed-breadcrumb .ed-breadcrumb-current {
  background-color: var(--ed-primary);
  color: var(--ed-white);
  border-radius: var(--ed-radius-full);
}

/* ============================================
   CONTENT LAYOUT
   ============================================ */
.ed-content-area {
  padding: var(--ed-space-3xl) 0;
}

.ed-content-wrapper {
  display: grid;
  grid-template-columns: 1fr var(--ed-sidebar-width);
  gap: var(--ed-space-2xl);
  align-items: start;
}

/* ============================================
   BLOG POST CARDS
   ============================================ */
.ed-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--ed-space-xl);
}

.ed-post-card {
  background: var(--ed-white);
  border-radius: var(--ed-radius-lg);
  overflow: hidden;
  box-shadow: var(--ed-shadow-sm);
  border: 1px solid var(--ed-gray-200);
  transition: all var(--ed-transition-base);
  position: relative;
}

.ed-post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ed-shadow-hover);
  border-color: var(--ed-primary-glow);
}

.ed-post-card-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.ed-post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ed-transition-slow);
}

.ed-post-card:hover .ed-post-card-thumb img {
  transform: scale(1.08);
}

.ed-post-card-thumb .ed-post-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--ed-primary);
  color: var(--ed-white);
  padding: 4px 12px;
  border-radius: var(--ed-radius-full);
  font-size: var(--ed-text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.ed-post-card-body {
  padding: var(--ed-space-lg);
}

.ed-post-meta {
  display: flex;
  align-items: center;
  gap: var(--ed-space-md);
  margin-bottom: var(--ed-space-sm);
  font-size: var(--ed-text-sm);
  color: var(--ed-gray-500);
  flex-wrap: wrap;
}

.ed-post-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ed-post-meta-item svg {
  width: 14px;
  height: 14px;
  color: var(--ed-primary);
}

.ed-post-meta-separator {
  color: var(--ed-gray-300);
}

.ed-post-card-title {
  font-size: var(--ed-text-lg);
  font-weight: 600;
  margin-bottom: var(--ed-space-sm);
  line-height: 1.4;
}

.ed-post-card-title a {
  color: var(--ed-gray-800);
  transition: color var(--ed-transition-fast);
}

.ed-post-card-title a:hover {
  color: var(--ed-primary);
}

.ed-post-card-excerpt {
  font-size: var(--ed-text-sm);
  color: var(--ed-gray-500);
  margin-bottom: var(--ed-space-md);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ed-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: var(--ed-primary);
  color: var(--ed-white);
  border-radius: var(--ed-radius-md);
  font-size: var(--ed-text-sm);
  font-weight: 600;
  transition: all var(--ed-transition-base);
}

.ed-read-more:hover {
  background: var(--ed-primary-hover);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
  color: var(--ed-white);
}

.ed-read-more svg {
  width: 14px;
  height: 14px;
  transition: transform var(--ed-transition-fast);
}

.ed-read-more:hover svg {
  transform: translateX(3px);
}

/* ============================================
   PAGINATION
   ============================================ */
.ed-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: var(--ed-space-3xl);
  flex-wrap: wrap;
}

.ed-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--ed-radius-md);
  font-size: var(--ed-text-sm);
  font-weight: 500;
  color: var(--ed-gray-600);
  background: var(--ed-white);
  border: 1px solid var(--ed-gray-200);
  transition: all var(--ed-transition-fast);
}

.ed-pagination .page-numbers:hover {
  background: var(--ed-primary-light);
  border-color: var(--ed-primary);
  color: var(--ed-primary);
}

.ed-pagination .page-numbers.current {
  background: var(--ed-primary);
  color: var(--ed-white);
  border-color: var(--ed-primary);
}

.ed-pagination .page-numbers.dots {
  border: none;
  background: none;
  cursor: default;
}

.ed-pagination .prev.page-numbers,
.ed-pagination .next.page-numbers {
  font-weight: 600;
}

/* ============================================
   SIDEBAR
   ============================================ */
.ed-sidebar {
  position: sticky;
  top: 100px;
}

.ed-widget {
  background: var(--ed-white);
  border-radius: var(--ed-radius-lg);
  padding: var(--ed-space-xl);
  margin-bottom: var(--ed-space-xl);
  box-shadow: var(--ed-shadow-sm);
  border: 1px solid var(--ed-gray-200);
  transition: box-shadow var(--ed-transition-base);
}

.ed-widget:hover {
  box-shadow: var(--ed-shadow-md);
}

.ed-widget-title {
  font-size: var(--ed-text-xl);
  font-weight: 700;
  color: var(--ed-gray-800);
  margin-bottom: var(--ed-space-lg);
  padding-bottom: var(--ed-space-sm);
  border-bottom: 3px solid var(--ed-primary);
  display: inline-block;
}

/* Search widget */
.ed-search-widget form {
  display: flex;
  border-radius: var(--ed-radius-md);
  overflow: hidden;
  border: 2px solid var(--ed-gray-200);
  transition: border-color var(--ed-transition-fast);
}

.ed-search-widget form:focus-within {
  border-color: var(--ed-primary);
}

.ed-search-widget input[type="search"] {
  flex: 1;
  padding: 10px 16px;
  border: none;
  font-family: var(--ed-font-primary);
  font-size: var(--ed-text-sm);
  outline: none;
  background: transparent;
  color: var(--ed-gray-700);
}

.ed-search-widget input[type="search"]::placeholder {
  color: var(--ed-gray-400);
}

.ed-search-widget button {
  padding: 10px 16px;
  background: var(--ed-primary);
  border: none;
  color: var(--ed-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ed-transition-fast);
}

.ed-search-widget button:hover {
  background: var(--ed-primary-hover);
}

.ed-search-widget button svg {
  width: 18px;
  height: 18px;
}

/* Recent posts widget */
.ed-recent-posts-list {
  display: flex;
  flex-direction: column;
  gap: var(--ed-space-md);
}

.ed-recent-post-item {
  display: flex;
  gap: var(--ed-space-md);
  align-items: flex-start;
  padding-bottom: var(--ed-space-md);
  border-bottom: 1px solid var(--ed-gray-100);
  transition: transform var(--ed-transition-fast);
}

.ed-recent-post-item:hover {
  transform: translateX(4px);
}

.ed-recent-post-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ed-recent-post-thumb {
  width: 70px;
  height: 55px;
  border-radius: var(--ed-radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.ed-recent-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ed-recent-post-info {
  flex: 1;
  min-width: 0;
}

.ed-recent-post-info h4 {
  font-size: var(--ed-text-sm);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
}

.ed-recent-post-info h4 a {
  color: var(--ed-gray-700);
  transition: color var(--ed-transition-fast);
}

.ed-recent-post-info h4 a:hover {
  color: var(--ed-primary);
}

.ed-recent-post-date {
  font-size: var(--ed-text-xs);
  color: var(--ed-primary);
  font-weight: 500;
}

/* Categories widget */
.ed-categories-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--ed-gray-100);
  transition: all var(--ed-transition-fast);
}

.ed-categories-list li:hover {
  padding-left: 8px;
}

.ed-categories-list li:last-child {
  border-bottom: none;
}

.ed-categories-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ed-gray-600);
  font-size: var(--ed-text-sm);
  transition: color var(--ed-transition-fast);
}

.ed-categories-list li a::before {
  content: '›';
  color: var(--ed-primary);
  font-weight: 700;
  font-size: 1.1em;
}

.ed-categories-list li a:hover {
  color: var(--ed-primary);
}

.ed-cat-count {
  background: var(--ed-gray-100);
  color: var(--ed-gray-600);
  font-size: var(--ed-text-xs);
  padding: 2px 10px;
  border-radius: var(--ed-radius-full);
  font-weight: 600;
  min-width: 32px;
  text-align: center;
}

/* Tags widget */
.ed-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ed-tags-list a {
  display: inline-block;
  padding: 6px 14px;
  background: var(--ed-gray-100);
  color: var(--ed-gray-600);
  border-radius: var(--ed-radius-full);
  font-size: var(--ed-text-xs);
  font-weight: 500;
  transition: all var(--ed-transition-fast);
  border: 1px solid transparent;
}

.ed-tags-list a:hover {
  background: var(--ed-primary-light);
  color: var(--ed-primary);
  border-color: var(--ed-primary);
}

/* Popular Tags - "No record found" */
.ed-no-tags {
  font-size: var(--ed-text-sm);
  color: var(--ed-gray-400);
  font-style: italic;
}

/* ============================================
   SINGLE POST
   ============================================ */
.ed-single-post {
  background: var(--ed-white);
  border-radius: var(--ed-radius-lg);
  overflow: hidden;
  box-shadow: var(--ed-shadow-sm);
  border: 1px solid var(--ed-gray-200);
}

.ed-single-thumb {
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
}

.ed-single-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ed-single-content {
  padding: var(--ed-space-2xl);
}

.ed-single-content h1 {
  font-size: var(--ed-text-3xl);
  margin-bottom: var(--ed-space-md);
}

.ed-single-content .ed-post-meta {
  margin-bottom: var(--ed-space-xl);
  padding-bottom: var(--ed-space-lg);
  border-bottom: 1px solid var(--ed-gray-200);
}

.ed-single-content .entry-content {
  font-size: var(--ed-text-base);
  line-height: 1.8;
  color: var(--ed-gray-600);
}

.ed-single-content .entry-content h2,
.ed-single-content .entry-content h3,
.ed-single-content .entry-content h4 {
  margin-top: var(--ed-space-xl);
  margin-bottom: var(--ed-space-md);
}

.ed-single-content .entry-content p {
  margin-bottom: var(--ed-space-lg);
}

.ed-single-content .entry-content a {
  color: var(--ed-primary);
  text-decoration: underline;
}

.ed-single-content .entry-content img {
  border-radius: var(--ed-radius-md);
  margin: var(--ed-space-xl) 0;
}

.ed-single-content .entry-content ul,
.ed-single-content .entry-content ol {
  margin-bottom: var(--ed-space-lg);
  padding-left: var(--ed-space-xl);
}

.ed-single-content .entry-content ul {
  list-style: disc;
}

.ed-single-content .entry-content ol {
  list-style: decimal;
}

.ed-single-content .entry-content li {
  margin-bottom: var(--ed-space-sm);
}

.ed-single-content .entry-content blockquote {
  border-left: 4px solid var(--ed-primary);
  padding: var(--ed-space-lg);
  margin: var(--ed-space-xl) 0;
  background: var(--ed-primary-light);
  border-radius: 0 var(--ed-radius-md) var(--ed-radius-md) 0;
  font-style: italic;
  color: var(--ed-gray-600);
}

/* Post tags */
.ed-post-tags {
  margin-top: var(--ed-space-xl);
  padding-top: var(--ed-space-lg);
  border-top: 1px solid var(--ed-gray-200);
  display: flex;
  align-items: center;
  gap: var(--ed-space-sm);
  flex-wrap: wrap;
}

.ed-post-tags-label {
  font-weight: 600;
  color: var(--ed-gray-700);
  font-size: var(--ed-text-sm);
}

/* Post navigation */
.ed-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ed-space-lg);
  margin-top: var(--ed-space-2xl);
}

.ed-post-nav a {
  display: block;
  padding: var(--ed-space-lg);
  background: var(--ed-gray-100);
  border-radius: var(--ed-radius-md);
  transition: all var(--ed-transition-base);
}

.ed-post-nav a:hover {
  background: var(--ed-primary-light);
  transform: translateY(-3px);
}

.ed-post-nav-label {
  font-size: var(--ed-text-xs);
  color: var(--ed-gray-400);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.ed-post-nav-title {
  font-size: var(--ed-text-sm);
  font-weight: 600;
  color: var(--ed-gray-700);
}

/* ============================================
   COMMENTS
   ============================================ */
.ed-comments-area {
  margin-top: var(--ed-space-2xl);
  background: var(--ed-white);
  border-radius: var(--ed-radius-lg);
  padding: var(--ed-space-2xl);
  box-shadow: var(--ed-shadow-sm);
  border: 1px solid var(--ed-gray-200);
}

.ed-comments-area h3 {
  font-size: var(--ed-text-2xl);
  margin-bottom: var(--ed-space-xl);
}

.comment-list {
  list-style: none;
}

.comment {
  padding: var(--ed-space-lg);
  margin-bottom: var(--ed-space-md);
  background: var(--ed-gray-100);
  border-radius: var(--ed-radius-md);
}

.comment-author {
  display: flex;
  align-items: center;
  gap: var(--ed-space-sm);
  margin-bottom: var(--ed-space-sm);
}

.comment-author img {
  border-radius: 50%;
}

.comment-respond {
  margin-top: var(--ed-space-xl);
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--ed-gray-200);
  border-radius: var(--ed-radius-md);
  font-family: var(--ed-font-primary);
  font-size: var(--ed-text-sm);
  transition: border-color var(--ed-transition-fast);
  margin-bottom: var(--ed-space-md);
  outline: none;
}

.comment-respond input:focus,
.comment-respond textarea:focus {
  border-color: var(--ed-primary);
}

.comment-respond .submit {
  background: var(--ed-primary);
  color: var(--ed-white);
  border: none;
  padding: 12px 28px;
  border-radius: var(--ed-radius-md);
  font-family: var(--ed-font-primary);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--ed-transition-base);
}

.comment-respond .submit:hover {
  background: var(--ed-primary-hover);
}

/* ============================================
   FOOTER
   ============================================ */
.ed-footer {
  background-color: var(--ed-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--ed-space-3xl) 0 0;
}

.ed-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--ed-space-2xl);
  padding-bottom: var(--ed-space-2xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ed-footer-widget-title {
  font-size: var(--ed-text-xl);
  font-weight: 700;
  color: var(--ed-white);
  margin-bottom: var(--ed-space-lg);
}

/* Footer - About / Logo section */
.ed-footer-about .ed-footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--ed-space-md);
}

.ed-footer-about .ed-footer-logo img {
  height: 45px;
}

.ed-footer-about .ed-footer-logo-text {
  font-size: var(--ed-text-lg);
  font-weight: 700;
  color: var(--ed-primary);
}

.ed-footer-about p {
  font-size: var(--ed-text-sm);
  line-height: 1.7;
  margin-bottom: var(--ed-space-lg);
}

.ed-footer-socials {
  display: flex;
  gap: var(--ed-space-sm);
}

.ed-footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ed-primary);
  color: var(--ed-white);
  transition: all var(--ed-transition-base);
}

.ed-footer-socials a:hover {
  background: var(--ed-primary-hover);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

.ed-footer-socials a svg {
  width: 16px;
  height: 16px;
}

/* Footer - Recent posts */
.ed-footer .ed-recent-post-item {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.ed-footer .ed-recent-post-info h4 a {
  color: rgba(255, 255, 255, 0.85);
}

.ed-footer .ed-recent-post-info h4 a:hover {
  color: var(--ed-primary);
}

.ed-footer .ed-recent-post-date {
  color: var(--ed-primary);
}

/* Footer - Contact */
.ed-footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--ed-space-md);
}

.ed-footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--ed-space-sm);
  font-size: var(--ed-text-sm);
}

.ed-footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--ed-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.ed-footer-contact-item a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--ed-transition-fast);
}

.ed-footer-contact-item a:hover {
  color: var(--ed-primary);
}

/* Footer bottom */
.ed-footer-bottom {
  padding: var(--ed-space-lg) 0;
  text-align: center;
  font-size: var(--ed-text-sm);
  color: rgba(255, 255, 255, 0.5);
}

.ed-footer-bottom a {
  color: var(--ed-primary);
  font-weight: 600;
  transition: color var(--ed-transition-fast);
}

.ed-footer-bottom a:hover {
  color: var(--ed-white);
}

/* ============================================
   404 PAGE
   ============================================ */
.ed-404 {
  text-align: center;
  padding: var(--ed-space-3xl) 0;
}

.ed-404 h2 {
  font-size: 6rem;
  color: var(--ed-primary);
  margin-bottom: var(--ed-space-md);
  animation: pulse 2s ease infinite;
}

.ed-404 p {
  font-size: var(--ed-text-lg);
  color: var(--ed-gray-500);
  margin-bottom: var(--ed-space-xl);
}

/* ============================================
   LOADING SKELETON
   ============================================ */
.ed-skeleton {
  background: linear-gradient(90deg, var(--ed-gray-100) 25%, var(--ed-gray-200) 50%, var(--ed-gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--ed-radius-md);
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.ed-back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--ed-primary);
  color: var(--ed-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--ed-transition-base);
  z-index: 999;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.ed-back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ed-back-to-top:hover {
  background: var(--ed-primary-hover);
  transform: translateY(-3px);
}

.ed-back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --ed-sidebar-width: 280px;
  }

  .ed-posts-grid {
    gap: var(--ed-space-lg);
  }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
  .ed-topbar .ed-container {
    justify-content: center;
    text-align: center;
  }

  .ed-topbar-right {
    display: none;
  }

  /* Mobile menu */
  .ed-menu-toggle {
    display: flex;
  }

  .ed-nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--ed-white);
    flex-direction: column;
    align-items: stretch;
    padding: 80px 24px 24px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transition: right var(--ed-transition-base);
    z-index: 1001;
    overflow-y: auto;
  }

  .ed-nav-menu.active {
    right: 0;
  }

  .ed-nav-menu li a {
    padding: 14px 0;
    border-bottom: 1px solid var(--ed-gray-100);
    font-size: var(--ed-text-lg);
  }

  .ed-nav-menu li a::after {
    display: none;
  }

  .ed-nav-menu li ul.sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: 16px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .ed-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--ed-transition-base);
  }

  .ed-mobile-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Content layout */
  .ed-content-wrapper {
    grid-template-columns: 1fr;
  }

  .ed-posts-grid {
    grid-template-columns: 1fr;
  }

  .ed-page-hero h1 {
    font-size: var(--ed-text-3xl);
  }

  .ed-footer-grid {
    grid-template-columns: 1fr;
    gap: var(--ed-space-xl);
  }

  .ed-post-nav {
    grid-template-columns: 1fr;
  }

  .ed-single-content {
    padding: var(--ed-space-lg);
  }

  .ed-single-content h1 {
    font-size: var(--ed-text-2xl);
  }

  .ed-sidebar {
    position: static;
  }

  .ed-back-to-top {
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .ed-container {
    padding: 0 var(--ed-space-md);
  }

  .ed-page-hero {
    padding: var(--ed-space-2xl) 0;
  }

  .ed-page-hero h1 {
    font-size: var(--ed-text-2xl);
  }

  .ed-post-card-body {
    padding: var(--ed-space-md);
  }

  .ed-widget {
    padding: var(--ed-space-lg);
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .ed-topbar,
  .ed-header,
  .ed-sidebar,
  .ed-footer,
  .ed-back-to-top,
  .ed-pagination,
  .ed-search-overlay {
    display: none !important;
  }

  .ed-content-wrapper {
    grid-template-columns: 1fr !important;
  }

  body {
    color: #000;
    background: #fff;
  }
}
