/* ===== COMPLETE DARK ACADEMIA PHILOSOPHY BLOG CSS ===== */
@import url("https://fonts.googleapis.com/css2?family=Crimson+Pro:wght@400;500;600&family=Inter:wght@400;500;600&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Garamond&family=Georgia&display=swap');

/* =========================================
   ROOT THEME VARIABLES (Default: Dark Mode)
   ========================================= */
   :root {
    --bg-dark: #0b0b0b;
    --bg-light: #1a1a1a;
    --text-color: #e6e6e6;
    --accent-color: #a47cf3;
    --border-color: rgba(255, 255, 255, 0.1);
    --gradient-dark: linear-gradient(145deg, #0b0b0b, #1a1a1a);
    --gradient-accent: linear-gradient(90deg, #8c6ff7, #b49cff);
    --card-bg: #151515;
    --nav-bg: rgba(11, 11, 11, 0.95);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  }
  
  /* =========================================
     GLOBAL RESET & BASE
     ========================================= */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: "Inter", sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-color);
    transition: background 0.5s ease, color 0.5s ease;
    line-height: 1.7;
    overflow-x: hidden;
    padding-top: 80px; /* Space for fixed navbar */
  }
  
  /* =========================================
     LIGHT MODE OVERRIDES
     ========================================= */
     body.light-mode {
      --bg-dark: #f5f3f0;
      --bg-light: #ffffff;
      --text-color: #2c2c2c;
      --accent-color: #8b4513;
      --border-color: #d4c9a8;
      --gradient-dark: linear-gradient(145deg, #ffffff, #f5f3f0);
      --gradient-accent: linear-gradient(90deg, #8b4513, #a0522d);
      --card-bg: #ffffff;
      --nav-bg: rgba(255, 255, 255, 0.95);
      --shadow: 0 8px 24px rgba(139, 69, 19, 0.15);
      
      /* Additional light mode specific colors */
      --text-secondary: #5d5d5d;
      --accent-gold: #8b4513;
      --bg-primary: #f5f3f0;
      --bg-secondary: #ffffff;
    }
    
    /* Enhanced Light Mode Styles for Better Visibility */
    body.light-mode .philosophy-page {
      --bg-primary: #f5f3f0;
      --bg-secondary: #ffffff;
      --accent-gold: #8b4513;
      --text-primary: #2c2c2c;
      --text-secondary: #5d5d5d;
      --border-color: #d4c9a8;
      --shadow: 0 12px 32px rgba(139, 69, 19, 0.1);
      --hero-overlay: linear-gradient(135deg, rgba(245, 243, 240, 0.95) 0%, rgba(255, 255, 255, 0.92) 100%);
    }
    
    body.light-mode .philosophy-container {
      --bg-primary: #f5f3f0;
      --bg-secondary: #ffffff;
      --accent-gold: #8b4513;
      --text-primary: #2c2c2c;
      --text-secondary: #5d5d5d;
      --border-color: #d4c9a8;
      --shadow: 0 8px 24px rgba(139, 69, 19, 0.1);
      --input-bg: #ffffff;
      --input-border: #c4b598;
    }
    
    /* Light Mode Hero Section */
    body.light-mode .philosophy-hero {
      background: var(--hero-overlay),
                  url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23f5f3f0"/><path d="M0,50 Q25,40 50,50 T100,50 L100,100 L0,100 Z" fill="%23ffffff" opacity="0.3"/></svg>') repeat;
    }
    
    body.light-mode .philosophy-hero::before {
      background: 
          radial-gradient(circle at 30% 70%, rgba(139, 69, 19, 0.04) 0%, transparent 50%),
          radial-gradient(circle at 70% 30%, rgba(93, 93, 93, 0.03) 0%, transparent 50%),
          repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(0,0,0,.01) 35px, rgba(0,0,0,.01) 70px);
    }
    
    body.light-mode .primary-heading {
      color: var(--accent-gold);
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    body.light-mode .sub-heading {
      color: var(--text-secondary);
    }
    
    body.light-mode .philosophy-intro {
      background: var(--bg-secondary);
      border: 1px solid var(--border-color);
      box-shadow: 0 4px 20px rgba(139, 69, 19, 0.08);
    }
    
    body.light-mode .philosophy-intro p {
      color: var(--text-primary);
    }
    
    body.light-mode .philosophy-intro strong {
      color: var(--accent-gold);
    }
    
    body.light-mode .topics-breakdown h2 {
      color: var(--accent-gold);
    }
    
    body.light-mode .topics-list li {
      background: rgba(255, 255, 255, 0.9);
      border-left: 4px solid var(--accent-gold);
      box-shadow: 0 4px 12px rgba(139, 69, 19, 0.1);
    }
    
    body.light-mode .topics-list li:hover {
      background: rgba(255, 255, 255, 1);
      box-shadow: 0 6px 16px rgba(139, 69, 19, 0.15);
    }
    
    body.light-mode .topics-list li strong {
      color: var(--accent-gold);
    }
    
    body.light-mode .breadcrumb a {
      color: var(--text-secondary);
    }
    
    body.light-mode .breadcrumb a:hover {
      color: var(--accent-gold);
    }
    
    body.light-mode .breadcrumb [aria-current="page"] {
      color: var(--accent-gold);
    }
    
    /* Light Mode Search & Filters */
    body.light-mode .philosophy-search {
      background: var(--bg-secondary);
      border: 1px solid var(--border-color);
      box-shadow: inset 0 2px 8px rgba(139, 69, 19, 0.05);
    }
    
    body.light-mode #philosophySearch {
      background: var(--input-bg);
      border: 1px solid var(--input-border);
      color: var(--text-primary);
    }
    
    body.light-mode #philosophySearch::placeholder {
      color: var(--text-secondary);
    }
    
    body.light-mode #philosophySearch:focus {
      border-color: var(--accent-gold);
      box-shadow: 0 0 0 2px rgba(139, 69, 19, 0.2);
    }
    
    body.light-mode .search-btn {
      background: var(--accent-gold);
      color: white;
    }
    
    body.light-mode .search-btn:hover {
      background: #a0522d;
      box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
    }
    
    body.light-mode .philosophy-filters {
      background: var(--bg-secondary);
      border: 1px solid var(--border-color);
      box-shadow: inset 0 2px 8px rgba(139, 69, 19, 0.05);
    }
    
    body.light-mode .filter-heading {
      color: var(--accent-gold);
    }
    
    body.light-mode .filter-btn {
      background: transparent;
      color: var(--text-secondary);
      border: 1.5px solid var(--border-color);
    }
    
    body.light-mode .filter-btn:hover {
      color: var(--accent-gold);
      border-color: var(--accent-gold);
      box-shadow: 0 0 12px rgba(139, 69, 19, 0.15);
    }
    
    body.light-mode .filter-btn.active {
      background: var(--accent-gold);
      color: white;
      border-color: var(--accent-gold);
      box-shadow: 0 4px 12px rgba(139, 69, 19, 0.2);
    }
    
    /* Light Mode Cards */
    body.light-mode .philosophy-card {
      background: var(--card-bg);
      border: 1px solid var(--border-color);
      box-shadow: 0 8px 24px rgba(139, 69, 19, 0.1);
    }
    
    body.light-mode .philosophy-card:hover {
      border-color: var(--accent-gold);
      box-shadow: 0 15px 30px rgba(139, 69, 19, 0.15);
    }
    
    body.light-mode .philosophy-category {
      background: var(--card-bg);
      color: var(--text-primary);
      border: 1px solid var(--border-color);
    }
    
    body.light-mode .philosophy-post-title {
      color: var(--text-primary);
    }
    
    body.light-mode .philosophy-excerpt {
      color: var(--text-secondary);
    }
    
    body.light-mode .philosophy-meta {
      color: var(--text-secondary);
      border-top: 1px solid var(--border-color);
    }
    
    body.light-mode .meta-item i {
      color: var(--accent-gold);
    }
    
    body.light-mode .read-more-btn {
      background: transparent;
      color: var(--text-primary);
      border: 1px solid var(--border-color);
    }
    
    body.light-mode .read-more-btn:hover {
      color: white;
      box-shadow: 0 4px 12px rgba(139, 69, 19, 0.2);
    }
    
    /* Light Mode Navbar */
    body.light-mode .navbar {
      background-color: var(--nav-bg);
      border-bottom: 1px solid var(--border-color);
      box-shadow: 0 4px 20px rgba(139, 69, 19, 0.1);
    }
    
    body.light-mode .nav-menu a:hover {
      color: var(--accent-gold);
    }
    
    body.light-mode .nav-btn .cv-button {
      background: transparent;
      color: var(--text-color);
      border: 1px solid var(--border-color);
    }
    
    body.light-mode .nav-btn .cv-button:hover {
      background: rgba(139, 69, 19, 0.05);
    }
    
    body.light-mode .theme-toggle {
      border: 1px solid var(--border-color);
      color: var(--text-color);
    }
    
    body.light-mode .theme-toggle:hover {
      background: rgba(139, 69, 19, 0.05);
    }
    
    /* Enhanced contrast for better readability */
    body.light-mode {
      color: var(--text-primary);
      background-color: var(--bg-dark);
    }
    
    body.light-mode * {
      transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    }
    
    /* Ensure text has sufficient contrast */
    body.light-mode .text-primary {
      color: var(--text-primary) !important;
    }
    
    body.light-mode .text-secondary {
      color: var(--text-secondary) !important;
    }
    
    /* Focus states for accessibility */
    body.light-mode *:focus {
      outline: 2px solid var(--accent-gold);
      outline-offset: 2px;
    }
    
    /* Selection color */
    body.light-mode ::selection {
      background: rgba(139, 69, 19, 0.2);
      color: var(--text-primary);
    }
    
    body.light-mode ::-moz-selection {
      background: rgba(139, 69, 19, 0.2);
      color: var(--text-primary);
    }
  /* =========================================
     THEME TOGGLE BUTTON
     ========================================= */
  .theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-color);
    transition: all 0.3s ease;
  }
  
  .theme-toggle:hover {
    background: var(--card-bg);
    transform: scale(1.05);
  }
  
  .theme-toggle i {
    font-size: 1.2rem;
    transition: transform 0.5s ease;
  }
  
  .theme-toggle:hover i {
    transform: rotate(20deg);
  }
  
a {
  text-decoration: none;
  color: inherit;
}

/* ===== ENHANCED NAVBAR STYLES ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 5%;
  background-color: var(--nav-bg);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.logo {
  height: 50px;
  width: auto;
  transition: transform 0.5s ease-in-out;
  border-radius: 25px;
}

.logo:hover {
  transform: scale(1.1);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-menu a {
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  letter-spacing: 0.5px;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-color);
  transition: width 0.3s ease;
}

.nav-menu a:hover {
  color: var(--accent-color);
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-btn .cv-button {
  background: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  padding: 0.7rem 1.8rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.nav-btn .cv-button:hover {
  background: var(--card-bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.nav-btn .cv-button a {
  color: var(--text-color);
  text-decoration: none;
}


  /* ===== PROFESSIONAL MOBILE MENU STYLES ===== */
.mobile-menu-btn {
  display: none;
  z-index: 1001;
}

.menu-toggle {
  background: transparent;
  border: none;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  color: var(--text-color);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  position: relative;
}

.menu-toggle:hover {
  transform: scale(1.05);
  background: var(--card-bg);
}

.menu-toggle__hamburger {
  width: 22px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: all 0.3s ease;
}

.menu-toggle__hamburger::before,
.menu-toggle__hamburger::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 2px;
  background: currentColor;
  left: 0;
  transition: all 0.3s ease;
}

.menu-toggle__hamburger::before {
  top: -7px;
}

.menu-toggle__hamburger::after {
  top: 7px;
}

.menu-toggle.active .menu-toggle__hamburger {
  background: transparent;
}

.menu-toggle.active .menu-toggle__hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle.active .menu-toggle__hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-nav-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  height: 100vh;
  background: var(--nav-bg);
  backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 100px 2rem 2rem;
  list-style: none;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 999;
  box-shadow: -5px 0 40px rgba(0, 0, 0, 0.4);
  border-left: 1px solid var(--border-color);
}

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

.mobile-nav-menu li {
  width: 100%;
  margin-bottom: 0.8rem;
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.4s ease;
}

.mobile-nav-menu.active li {
  opacity: 1;
  transform: translateX(0);
}

.mobile-nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav-menu.active li:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav-menu.active li:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav-menu.active li:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav-menu.active li:nth-child(5) { transition-delay: 0.3s; }
.mobile-nav-menu.active li:nth-child(6) { transition-delay: 0.35s; }
.mobile-nav-menu.active li:nth-child(7) { transition-delay: 0.4s; }
.mobile-nav-menu.active li:nth-child(8) { transition-delay: 0.45s; }
.mobile-nav-menu.active li:nth-child(9) { transition-delay: 0.5s; }

.mobile-nav-menu a {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1.1rem 1.5rem;
  color: var(--text-color);
  font-weight: 500;
  font-size: 1.05rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.mobile-nav-menu a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: var(--accent-color);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.mobile-nav-menu a:hover::before,
.mobile-nav-menu a:focus::before {
  transform: scaleY(1);
}

.mobile-nav-menu a:hover,
.mobile-nav-menu a:focus {
  background: var(--card-bg);
  transform: translateX(8px);
  padding-left: 1.8rem;
  border-color: var(--border-color);
}

.mobile-nav-menu .cv-button {
  background: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  padding: 1.2rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
  font-size: 1.05rem;
}

.mobile-nav-menu .cv-button:hover {
  transform: translateY(-3px);
  background: var(--card-bg);
}

.mobile-nav-menu .cv-button a {
  color: var(--text-color);
  text-decoration: none;
  padding: 0;
  background: none;
  width: auto;
  border: none;
}

.mobile-nav-menu .cv-button a:hover {
  background: none;
  transform: none;
  padding-left: 0;
}

.mobile-nav-close {
  position: absolute;
  top: 1.8rem;
  right: 1.8rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1002;
  font-size: 1.2rem;
}

.mobile-nav-close:hover {
  background: var(--accent-color);
  transform: rotate(90deg) scale(1.1);
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.mobile-nav-menu a i {
  margin-right: 12px;
  width: 20px;
  text-align: center;
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ===== DARK ACADEMIA PHILOSOPHY HERO SECTION ===== */
.philosophy-page {
  --bg-primary: #0a0a0a;
  --bg-secondary: #121212;
  --accent-gold: #b2975c;
  --text-primary: #e8e1d4;
  --text-secondary: #d4c9a8;
  --border-color: #2b2b2b;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
  --hero-overlay: linear-gradient(135deg, rgba(10, 10, 10, 0.92) 0%, rgba(18, 18, 18, 0.88) 100%);

  font-family: 'Garamond', 'Georgia', serif;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  padding-bottom: 3rem;
  margin-top: 0; /* Remove any extra margin since we have body padding-top */
}

.philosophy-hero {
  position: relative;
  background-size: cover, 80px 80px;
  padding: 4rem 2rem 3rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-top: 0; /* Reset margin since we have body padding-top */
}

.philosophy-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  animation: grain 8s steps(10) infinite;
  opacity: 0.6;
}


.philosophy-hero h1 {
  margin: 0 0 1.2rem;
  font-size: 2.8rem;
  line-height: 1.2;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.primary-heading {
  display: block;
  color: var(--accent-gold);
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
  letter-spacing: 1.2px;
  font-size: 1.15em;
}

.sub-heading {
  display: block;
  font-size: 0.75em;
  color: var(--text-secondary);
  font-weight: 400;
  margin-top: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.9;
}

.philosophy-intro {
  max-width: 800px;
  margin: 2.5rem auto 2rem;
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
}

.philosophy-intro p {
  font-size: 1.15rem;
  line-height: 1.85;
  margin-bottom: 1.8rem;
  text-align: justify;
  color: var(--text-primary);
}

.philosophy-intro strong {
  color: var(--accent-gold);
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.topics-breakdown {
  margin-top: 2rem;
}

.topics-breakdown h2 {
  font-size: 1.6rem;
  color: var(--accent-gold);
  text-align: center;
  margin: 0 0 1.4rem;
  position: relative;
  letter-spacing: 0.8px;
}

.topics-breakdown h2::after {
  content: '';
  display: block;
  width: 70px;
  height: 2px;
  background: var(--accent-gold);
  margin: 0.9rem auto 0;
  opacity: 0.7;
}

.topics-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.topics-list li {
  background: rgba(26, 26, 26, 0.6);
  padding: 1.1rem 1.4rem;
  border-radius: 10px;
  border-left: 4px solid var(--accent-gold);
  font-size: 1.05rem;
  line-height: 1.6;
  transition: all 0.3s ease;
  position: relative;
  backdrop-filter: blur(2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.topics-list li:hover {
  transform: translateX(8px);
  background: rgba(30, 30, 30, 0.8);
  border-left-color: #c9a96e;
  box-shadow: 0 6px 16px rgba(178, 151, 92, 0.15);
}

.topics-list li strong {
  color: var(--accent-gold);
  display: block;
  margin-top: 0.3rem;
  font-size: 1.05em;
}

.breadcrumb {
  max-width: 900px;
  margin: 2rem auto 0;
  padding: 0 2rem;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-secondary);
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li:not(:last-child)::after {
  content: '›';
  margin: 0 0.6rem;
  color: var(--accent-gold);
  font-weight: bold;
  opacity: 0.7;
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.3rem 0;
  transition: color 0.3s ease;
  position: relative;
}

.breadcrumb a:hover {
  color: var(--accent-gold);
}

.breadcrumb a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-gold);
  transition: width 0.3s ease;
}

.breadcrumb a:hover::after {
  width: 100%;
}

.breadcrumb [aria-current="page"] {
  color: var(--accent-gold);
  font-weight: 500;
}

/* ===== PHILOSOPHY SEARCH & FILTERS ===== */
.philosophy-container {
  --bg-primary: #0a0a0a;
  --bg-secondary: #121212;
  --accent-gold: #b2975c;
  --text-primary: #e8e1d4;
  --text-secondary: #d4c9a8;
  --border-color: #2b2b2b;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  --input-bg: #1a1a1a;
  --input-border: #333;

  font-family: 'Garamond', 'Georgia', serif;
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
  color: var(--text-primary);
}

.philosophy-search {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.search-label {
  position: absolute;
  left: -9999px;
}

#philosophySearch {
  flex: 1;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text-primary);
  padding: 0.9rem 1.2rem;
  border-radius: 8px 0 0 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  outline: none;
}

#philosophySearch::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
  font-style: italic;
}

#philosophySearch:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 2px rgba(178, 151, 92, 0.2);
  background: #1e1e1e;
}

.search-btn {
  background: var(--accent-gold);
  color: #0a0a0a;
  border: none;
  padding: 0.9rem 1.2rem;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-btn:hover {
  background: #c9a96e;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(178, 151, 92, 0.3);
}

.search-btn:active {
  transform: translateY(0);
}

.search-btn i {
  font-weight: bold;
}

.philosophy-filters {
  background: var(--bg-secondary);
  padding: 1.8rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

.filter-heading {
  font-size: 1.6rem;
  color: var(--accent-gold);
  margin: 0 0 1.4rem;
  text-align: center;
  letter-spacing: 0.8px;
  position: relative;
}

.filter-heading::after {
  content: '';
  display: block;
  width: 60px;
  height: 1.5px;
  background: var(--accent-gold);
  margin: 0.8rem auto 0;
  opacity: 0.6;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.filter-btn {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border-color);
  padding: 0.75rem 1.3rem;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(178, 151, 92, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
  z-index: 0;
}

.filter-btn:hover::before {
  transform: translateX(100%);
}

.filter-btn span {
  position: relative;
  z-index: 1;
}

.filter-btn:hover {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
  box-shadow: 0 0 12px rgba(178, 151, 92, 0.2);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--accent-gold);
  color: #0a0a0a;
  border-color: var(--accent-gold);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(178, 151, 92, 0.3);
}

.filter-btn.active:hover {
  background: #c9a96e;
  transform: translateY(-1px);
}

/* ===== ENHANCED PHILOSOPHY GRID & CARDS ===== */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 3rem;
  margin: 4rem 0 5rem;
}

.philosophy-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid var(--border-color);
  position: relative;
  height: fit-content;
}

.philosophy-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.philosophy-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  border-color: var(--accent-color);
}

.philosophy-card:hover::before {
  transform: scaleX(1);
}

.philosophy-image-container {
  position: relative;
  overflow: hidden;
  height: 240px;
}

.philosophy-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.6s ease;
  filter: grayscale(30%) contrast(90%);
}

.philosophy-card:hover .philosophy-image {
  transform: scale(1.05);
  filter: grayscale(0%) contrast(100%);
}

.philosophy-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--card-bg);
  color: var(--text-color);
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: var(--shadow);
  z-index: 2;
  border: 1px solid var(--border-color);
}

.philosophy-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.philosophy-post-title {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
  color: var(--text-color);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.5rem;
}

.philosophy-excerpt {
  color: var(--text-color);
  opacity: 0.85;
  line-height: 1.7;
  margin: 0;
  font-size: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 5.25rem;
  font-weight: 300;
}

.philosophy-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-color);
  opacity: 0.7;
  border-top: 1px solid var(--border-color);
  padding-top: 1.2rem;
  margin-top: auto;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.meta-item i {
  color: var(--accent-color);
  font-size: 1rem;
}

.read-more-btn {
  background: transparent;
  color: var(--text-color);
  padding: 1rem 2.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.4s ease;
  border: 1px solid var(--border-color);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1rem;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  width: fit-content;
  margin-top: 0.5rem;
}

.read-more-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-accent);
  transition: left 0.4s ease;
  z-index: -1;
}

.read-more-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: var(--text-color);
}

.read-more-btn:hover::before {
  left: 0;
}

.read-more-btn i {
  transition: transform 0.3s ease;
}

.read-more-btn:hover i {
  transform: translateX(4px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .nav-menu {
    gap: 2rem;
  }
  
  .philosophy-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-menu,
  .nav-btn {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-actions {
    gap: 1rem;
  }

  .navbar {
    padding: 1rem 5%;
  }

  .logo {
    height: 40px;
  }

  body {
    padding-top: 70px;
  }

  .philosophy-hero {
    padding: 3rem 1.5rem 2.5rem;
  }

  .philosophy-hero h1 {
    font-size: 2.3rem;
  }

  .primary-heading {
    font-size: 1.1em;
  }

  .sub-heading {
    font-size: 0.7em;
  }

  .philosophy-intro {
    padding: 1.6rem;
    margin: 2rem 1rem 1.5rem;
  }

  .philosophy-intro p {
    font-size: 1.05rem;
  }

  .topics-list {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .topics-list li {
    padding: 1rem 1.2rem;
  }

  .breadcrumb {
    padding: 0 1.5rem;
    font-size: 0.85rem;
  }

  .philosophy-search {
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.2rem;
  }

  #philosophySearch {
    border-radius: 8px;
    width: 100%;
  }

  .search-btn {
    border-radius: 8px;
    width: 100%;
    padding: 1rem;
  }

  .filter-buttons {
    gap: 0.6rem;
  }

  .filter-btn {
    font-size: 0.9rem;
    padding: 0.65rem 1.1rem;
  }

  .philosophy-filters {
    padding: 1.5rem;
  }

  .filter-heading {
    font-size: 1.4rem;
  }

  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 3rem 0 4rem;
  }

  .philosophy-content {
    padding: 1.5rem;
  }

  .philosophy-post-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .mobile-nav-menu {
    width: 280px;
    padding: 90px 1.5rem 1.5rem;
  }

  .mobile-nav-menu a {
    padding: 1rem 1.2rem;
    font-size: 1rem;
  }

  .mobile-nav-close {
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
  }

  .navbar {
    padding: 1.6rem 5%;
  }

  .philosophy-hero h1 {
    font-size: 2rem;
  }

  .topics-breakdown h2 {
    font-size: 1.4rem;
  }

  .filter-btn {
    width: 100%;
    text-align: center;
  }

  .philosophy-meta {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
}

/* ===== ANIMATIONS ===== */
.philosophy-hero > * {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.philosophy-hero h1 { animation-delay: 0.2s; }
.philosophy-intro { animation-delay: 0.4s; }
.breadcrumb { animation-delay: 0.6s; }

.philosophy-search,
.philosophy-filters {
  animation: fadeInUp 0.7s ease-out forwards;
  opacity: 0;
}

.philosophy-search {
  animation-delay: 0.1s;
}

.philosophy-filters {
  animation-delay: 0.2s;
}

.philosophy-card {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}  
 /* ===== DARK ACADEMIA FOOTER STYLING ===== */
.footer-section {
  color: var(--text-primary);
  font-family: "Crimson Pro", "Garamond", serif;
  padding-top: 4rem;
  position: relative;
  overflow: hidden;
 
  border-top: 1px solid var(--border-color);
  margin-top: 4rem;
}

.footer-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  background-size: cover, cover, 60px 60px;
  z-index: 0;
  opacity: 0.6;
}

.footer-container {
  position: relative;
  z-index: 1;
  max-width: 1250px;
  margin: auto;
  padding: 0 5%;
}

/* === Newsletter Section === */
.newsletter-section {
  text-align: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.newsletter-section::after {
  content: "✒️";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-primary);
  padding: 0 1rem;
  font-size: 1.2rem;
  color: var(--accent-gold);
}

.newsletter-heading {
  font-family: "Crimson Pro", serif;
  font-size: 2.1rem;
  color: var(--accent-gold);
  margin-bottom: 1rem;
  letter-spacing: 1px;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.newsletter-heading::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: var(--accent-gold);
  opacity: 0.7;
}

.newsletter-subtext {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  opacity: 0.85;
  line-height: 1.7;
  font-family: "Crimson Pro", serif;
  font-style: italic;
  color: var(--text-secondary);
}

.input-group {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-input {
  padding: 1.1rem 1.4rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  flex: 1;
  min-width: 300px;
  background: rgba(26, 26, 26, 0.8);
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
  font-family: "Inter", sans-serif;
  backdrop-filter: blur(10px);
}

.newsletter-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
  font-style: italic;
}

.newsletter-input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 2px rgba(178, 151, 92, 0.2);
  background: rgba(30, 30, 30, 0.9);
}

.newsletter-btn {
  padding: 1.1rem 2rem;
  border: 1px solid var(--accent-gold);
  border-radius: 8px;
  background: rgba(178, 151, 92, 0.1);
  color: var(--accent-gold);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  transition: all 0.4s ease;
  font-family: "Crimson Pro", serif;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.newsletter-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(178, 151, 92, 0.2), transparent);
  transition: left 0.6s ease;
}

.newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(178, 151, 92, 0.3);
  background: rgba(178, 151, 92, 0.15);
}

.newsletter-btn:hover::before {
  left: 100%;
}

.newsletter-note {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-top: 1.5rem;
  font-style: italic;
  color: var(--text-secondary);
  font-family: "Crimson Pro", serif;
}

.newsletter-benefits {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.95rem;
  opacity: 0.85;
  color: var(--text-secondary);
  font-family: "Inter", sans-serif;
}

.benefit-item i {
  color: var(--accent-gold);
  font-size: 1.1rem;
  opacity: 0.9;
}

/* === Footer Columns === */
.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding: 4rem 0 3rem;
  position: relative;
}

.footer-main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  opacity: 0.3;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.logo-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
  padding: 2px;
  background: var(--bg-primary);
}

.logo-text {
  font-family: "Crimson Pro", serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--accent-gold);
  letter-spacing: 0.5px;
}

.brand-tagline {
  margin: 1.2rem 0;
  opacity: 0.8;
  font-size: 1.05rem;
  line-height: 1.6;
  font-style: italic;
  color: var(--text-secondary);
  font-family: "Crimson Pro", serif;
  max-width: 400px;
}

.contact-info {
  margin-top: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 0.8rem;
  color: var(--text-secondary);
  font-family: "Inter", sans-serif;
  transition: all 0.3s ease;
}

.contact-item:hover {
  color: var(--accent-gold);
  transform: translateX(5px);
}

.contact-item i {
  color: var(--accent-gold);
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.footer-column h4 {
  font-size: 1.3rem;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
  font-family: "Crimson Pro", serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 0.8rem;
}

.footer-column h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent-gold);
  opacity: 0.7;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 0;
  transition: all 0.3s ease;
}

.footer-links li::before {
  content: "▸";
  position: absolute;
  left: -15px;
  color: var(--accent-gold);
  opacity: 0;
  transition: all 0.3s ease;
}

.footer-links li:hover {
  padding-left: 15px;
}

.footer-links li:hover::before {
  opacity: 1;
  left: 0;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  display: block;
  padding: 0.3rem 0;
}

.footer-links a:hover {
  color: var(--accent-gold);
  transform: translateX(5px);
}

.cta-box {
  margin-top: 1.5rem;
  background: rgba(26, 26, 26, 0.6);
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.cta-box:hover {
  border-color: var(--accent-gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(178, 151, 92, 0.2);
}

.cta-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-style: italic;
  font-family: "Crimson Pro", serif;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(178, 151, 92, 0.1);
  color: var(--accent-gold);
  padding: 0.9rem 1.8rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.4s ease;
  border: 1px solid var(--accent-gold);
  font-family: "Crimson Pro", serif;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.cta-button:hover {
  background: rgba(178, 151, 92, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(178, 151, 92, 0.3);
}

/* === Social & Legal Section === */
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 0;
  text-align: center;
  position: relative;
}

.footer-bottom::before {
  content: "«Philosophy begins in wonder.» — Plato";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-primary);
  padding: 0 1.5rem;
  color: var(--accent-gold);
  font-style: italic;
  font-size: 0.9rem;
  font-family: "Crimson Pro", serif;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.social {
  color: var(--text-secondary);
  font-size: 1.2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid var(--border-color);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.social::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--accent-gold);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.social i {
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.social:hover {
  transform: translateY(-4px) scale(1.05);
  border-color: var(--accent-gold);
  color: var(--bg-primary);
}

.social:hover::before {
  opacity: 1;
}

.social:hover i {
  color: var(--bg-primary);
  transform: scale(1.1);
}

.legal {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 1rem;
  font-family: "Inter", sans-serif;
}

.legal-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.legal-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  position: relative;
  padding: 0.3rem 0;
}

.legal-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-gold);
  transition: width 0.3s ease;
}

.legal-links a:hover {
  color: var(--accent-gold);
}

.legal-links a:hover::after {
  width: 100%;
}

.copyright {
  margin-top: 1rem;
  line-height: 1.6;
  opacity: 0.7;
  font-style: italic;
  color: var(--text-secondary);
  font-family: "Crimson Pro", serif;
  font-size: 0.95rem;
}

/* === Light Mode Support === */
body.light-mode .footer-section {
  background: linear-gradient(180deg, 
    rgba(248, 249, 250, 0.95) 0%, 
    rgba(255, 255, 255, 0.98) 100%);
  border-top: 1px solid var(--border-color);
}

body.light-mode .footer-section::before {
  background: 
    radial-gradient(circle at 20% 80%, rgba(109, 40, 217, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(74, 85, 104, 0.02) 0%, transparent 50%),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23f8f9fa"/><path d="M0,0 Q50,20 100,0 L100,100 L0,100 Z" fill="%23ffffff" opacity="0.1"/></svg>') repeat;
}

body.light-mode .newsletter-input {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

body.light-mode .cta-box {
  background: rgba(255, 255, 255, 0.8);
}

body.light-mode .social {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-color);
}

/* === Responsive Design === */
@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2.5rem;
  }
  
  .footer-main > div:first-child {
    grid-column: 1 / -1;
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .footer-section {
    padding-top: 3rem;
  }
  
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 3rem 0 2rem;
  }
  
  .newsletter-heading {
    font-size: 1.8rem;
  }
  
  .input-group {
    flex-direction: column;
    width: 100%;
  }
  
  .newsletter-input {
    min-width: 100%;
    width: 100%;
  }
  
  .newsletter-btn {
    width: 100%;
    justify-content: center;
  }
  
  .newsletter-benefits {
    gap: 1.5rem;
  }
  
  .benefit-item {
    font-size: 0.9rem;
  }
  
  .social-links {
    gap: 0.8rem;
  }
  
  .social {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
  
  .legal-links {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-container {
    padding: 0 1.5rem;
  }
  
  .newsletter-heading {
    font-size: 1.6rem;
  }
  
  .newsletter-subtext {
    font-size: 1rem;
  }
  
  .logo-text {
    font-size: 1.5rem;
  }
  
  .footer-column h4 {
    font-size: 1.2rem;
  }
  
  .legal-links {
    flex-direction: column;
    gap: 1rem;
  }
  
  .social-links {
    gap: 0.5rem;
  }
  
  .social {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

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

.footer-section > * {
  animation: fadeInUp 0.8s ease-out forwards;
}

.newsletter-section {
  animation-delay: 0.1s;
}

.footer-main {
  animation-delay: 0.2s;
}

.footer-bottom {
  animation-delay: 0.3s;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for accessibility */
.newsletter-input:focus,
.newsletter-btn:focus,
.footer-links a:focus,
.cta-button:focus,
.social:focus {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}
  /* Dark Black Academia Theme for the Philosophy Blog Section */
/* Inspired by classic libraries, deep blacks, aged parchment accents, and scholarly elegance */

.philosophy-about {
  --bg-primary: #0a0a0a;     /* Deep black for main background */
  --bg-secondary: #121212;   /* Slightly lighter black for inner containers */
  --accent-gold: #b2975c;    /* Muted antique gold for highlights */
  --text-primary: #e8e1d4;   /* Warm ivory for main text */
  --text-secondary: #d4c9a8;  /* Softer beige for secondary text */
  --border-color: #2b2b2b;   /* Subtle dark border */
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.6);

  background: linear-gradient(135deg, var(--bg-primary) 0%, #0f0f0f 100%);
  color: var(--text-primary);
  padding: 3rem 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-family: 'Garamond', 'Georgia', serif;
  max-width: 900px;
  margin: 2rem auto;
  position: relative;
  overflow: hidden;
}

/* Subtle parchment texture overlay */
.philosophy-about::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
      radial-gradient(circle at 20% 80%, rgba(178, 151, 92, 0.03) 0%, transparent 50%),
      radial-gradient(circle at 80% 20%, rgba(212, 201, 168, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.philosophy-about > * {
  position: relative;
  z-index: 1;
}

/* Headings */
.philosophy-about h2 {
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--accent-gold);
  text-align: center;
  margin-bottom: 1.8rem;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  position: relative;
}

.philosophy-about h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 2px;
  background: var(--accent-gold);
  margin: 1rem auto 0;
  opacity: 0.7;
}

.philosophy-about h3 {
  font-size: 1.5rem;
  color: var(--accent-gold);
  margin: 1.8rem 0 1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Paragraphs & Strong Tags */
.philosophy-about p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  text-align: justify;
}

.philosophy-about strong {
  color: var(--accent-gold);
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Inner Content Container */
.about-content {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Focus Areas List */
.philosophy-focus ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.philosophy-focus li {
  padding: 0.75rem 0;
  border-bottom: 1px dashed rgba(178, 151, 92, 0.15);
  font-size: 1.05rem;
  line-height: 1.6;
  position: relative;
  padding-left: 1.8rem;
  transition: all 0.3s ease;
}

.philosophy-focus li:hover {
  color: var(--accent-gold);
  padding-left: 2rem;
}

.philosophy-focus li::before {
  content: '✦';
  color: var(--accent-gold);
  position: absolute;
  left: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .philosophy-about {
      padding: 2rem 1.5rem;
      margin: 1rem;
  }
  
  .philosophy-about h2 {
      font-size: 2rem;
  }
  
  .about-content {
      padding: 1.5rem;
  }
  
  .philosophy-focus li {
      font-size: 1rem;
      padding-left: 1.5rem;
  }
}

/* Optional: Add a subtle animation on load */
.philosophy-about {
  animation: fadeInUp 0.8s ease-out;
}

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