/* ==========================================================================
   iLovePDF-INSPIRED DESIGN SYSTEM — ORANGE THEME
   Handcrafted, clean, modern, human-centric aesthetic
   ========================================================================== */

:root {
  /* iLovePDF Brand Colors */
  --primary: #FF5200;            /* Signature Orange */
  --primary-hover: #E04800;
  --primary-dark: #C73E00;
  --primary-light: rgba(255, 82, 0, 0.08);
  --primary-border: rgba(255, 82, 0, 0.25);
  --secondary: #FF732E;
  --accent: #E04300;

  /* Clean Gradients */
  --gradient: linear-gradient(135deg, #FF5200 0%, #FF732E 100%);
  --gradient-hover: linear-gradient(135deg, #E04800 0%, #E65C17 100%);

  /* Neutrals */
  --bg: #F8F9FA;                 /* Crisp light gray background */
  --card-bg: #FFFFFF;
  --text: #1E293B;               /* Deep slate gray for contrast */
  --subtext: #64748B;
  --border: #E2E8F0;
  --radius: 12px;
  --radius-lg: 16px;

  /* Shadows & Transitions */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(255, 82, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  opacity: 0;
  animation: pageFadeIn 0.5s ease-out forwards;
}

@keyframes pageFadeIn {
  to { opacity: 1; }
}

.noscript-warning {
  background: #FFF3CD;
  border: 1px solid #FFEBAA;
  color: #856404;
  padding: 1rem;
  text-align: center;
  margin: 1rem;
  border-radius: var(--radius);
}

/* ==========================================================================
   STICKY NAVBAR
   ========================================================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.logo {
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--text);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
}

.logo span {
  color: var(--primary);
}

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

.nav-item {
  position: relative;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem 0;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary);
}

/* Navbar Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  width: 240px;
  padding: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-link {
  padding: 0.6rem 1rem;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.dropdown-link:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  font-weight: 700;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(255, 82, 0, 0.35);
}

.btn-primary:hover {
  background: var(--gradient-hover);
  box-shadow: 0 6px 20px rgba(255, 82, 0, 0.45);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background-color: var(--bg);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
}

/* ==========================================================================
   MOBILE HAMBURGER & OVERLAY
   ========================================================================== */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  border: none;
  background: none;
  z-index: 1010;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background-color: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--card-bg);
  z-index: 1005;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.mobile-nav-link {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}

/* ==========================================================================
   VIEW CONTAINER
   ========================================================================== */

.view-container {
  flex: 1;
}

.view-section {
  display: none;
  animation: pageFadeIn 0.4s ease-out forwards;
}

.view-section.active {
  display: block;
}

/* ==========================================================================
   HERO SECTION (iLovePDF Style)
   ========================================================================== */

.hero {
  padding: 5.5rem 2rem 4rem;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  font-size: 1.25rem;
  color: var(--subtext);
  margin-bottom: 2.75rem;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  margin-bottom: 3.5rem;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--subtext);
  background: #FFFFFF;
  padding: 0.4rem 1rem;
  border-radius: 30px;
  border: 1px solid var(--border);
}

.trust-badge svg {
  color: var(--primary);
}

/* ==========================================================================
   SEARCH & FILTER TABS
   ========================================================================== */

.search-filter-section {
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
}

.search-wrapper {
  max-width: 620px;
  margin: 0 auto 1.5rem;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 1.15rem 1.5rem 1.15rem 3.6rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.search-wrapper svg {
  position: absolute;
  left: 1.35rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--subtext);
}

.search-tags {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.search-tag {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  padding: 0.45rem 1.1rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--subtext);
  cursor: pointer;
  transition: var(--transition);
}

.search-tag:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-border);
  color: var(--primary);
}

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 1px;
  margin-bottom: 3rem;
  overflow-x: auto;
}

.filter-tab {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--subtext);
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.filter-tab:hover {
  color: var(--primary);
}

.filter-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ==========================================================================
   TOOLS GRID & CARDS (iLovePDF Style)
   ========================================================================== */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto 5rem;
  padding: 0 2rem;
}

.tool-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  position: relative;
}

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

.tool-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.tool-card:hover .tool-icon-wrapper {
  background-color: var(--primary);
  color: #FFFFFF;
}

.tool-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.tool-card p {
  font-size: 0.925rem;
  color: var(--subtext);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  line-height: 1.55;
}

.tool-card-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition);
}

.tool-card:hover .tool-card-link {
  transform: translateX(4px);
}

/* ==========================================================================
   WHY US / FEATURES SECTION
   ========================================================================== */

.why-us {
  background-color: #FFFFFF;
  padding: 6rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg);
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--primary-border);
  box-shadow: var(--shadow-sm);
  background: #FFFFFF;
  transform: translateY(-3px);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   HOW IT WORKS SECTION
   ========================================================================== */

.how-it-works {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  gap: 2rem;
}

.steps::after {
  content: "";
  position: absolute;
  top: 40px;
  left: 12%;
  right: 12%;
  height: 2px;
  border-top: 2px dashed var(--border);
  z-index: 1;
}

.step-item {
  text-align: center;
  flex: 1;
  position: relative;
  z-index: 2;
}

.step-num {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 15px rgba(255, 82, 0, 0.3);
}

.step-item h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-item p {
  color: var(--subtext);
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */

.testimonials {
  background-color: #FFFFFF;
  padding: 6rem 2rem;
  border-top: 1px solid var(--border);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background-color: var(--bg);
  box-shadow: var(--shadow-sm);
}

.stars {
  color: #FF9800;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.testimonial-quote {
  font-style: italic;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-weight: 700;
  font-size: 0.95rem;
}

/* ==========================================================================
   ACCORDION FAQ
   ========================================================================== */

.faq-section {
  max-width: 840px;
  margin: 6rem auto;
  padding: 0 2rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
  background-color: var(--card-bg);
  box-shadow: var(--shadow-sm);
}

.faq-trigger {
  width: 100%;
  padding: 1.35rem 1.6rem;
  text-align: left;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}

.faq-icon {
  transition: var(--transition);
  color: var(--primary);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 1.6rem;
}

.faq-item.active .faq-content {
  max-height: 1000px;
  padding-bottom: 1.35rem;
}

/* ==========================================================================
   ABOUT US & STATS COUNTER
   ========================================================================== */

.about-section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.about-text {
  max-width: 820px;
  margin: 0 auto 3.5rem;
  font-size: 1.15rem;
  color: var(--subtext);
}

.stats-bar {
  display: flex;
  justify-content: space-around;
  background: var(--gradient);
  color: #fff;
  padding: 4rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 25px rgba(255, 82, 0, 0.25);
  flex-wrap: wrap;
  gap: 2rem;
}

.stat-box h4 {
  font-size: 3.25rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.stat-box p {
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.95;
}

/* ==========================================================================
   TOOL WORKSPACE VIEW
   ========================================================================== */

.workspace-wrapper {
  max-width: 1240px;
  margin: 2.5rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
}

.workspace-main {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  box-shadow: var(--shadow-sm);
}

.workspace-title {
  font-size: 2.35rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--subtext);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.breadcrumb a, .breadcrumb span.link {
  color: var(--primary);
  cursor: pointer;
}

.workspace-main .subtitle {
  color: var(--subtext);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

/* Dropzone (iLovePDF Big Orange Area) */
.dropzone {
  border: 2px dashed var(--primary);
  background-color: var(--primary-light);
  border-radius: var(--radius-lg);
  padding: 5rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 2.5rem;
}

.dropzone:hover, .dropzone.dragover {
  background-color: rgba(255, 82, 0, 0.12);
  border-color: var(--primary-dark);
}

.dropzone-icon {
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.dropzone h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.dropzone p {
  font-size: 0.95rem;
  color: var(--subtext);
}

/* File List Rows */
.file-list {
  margin-bottom: 2rem;
}

.file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.9rem 1.4rem;
  margin-bottom: 0.75rem;
}

.file-row-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.file-row-remove {
  cursor: pointer;
  color: #EF4444;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
}

.file-row-remove:hover {
  opacity: 0.8;
}

/* Options Panel */
.options-panel {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin-bottom: 2.5rem;
}

.options-panel h4 {
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  font-weight: 800;
}

.option-row {
  margin-bottom: 1.25rem;
}

.option-row:last-child {
  margin-bottom: 0;
}

.option-row label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.option-field {
  width: 100%;
  padding: 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
}

.option-field:focus {
  border-color: var(--primary);
}

/* Fabric.js Canvas Container */
.fabric-canvas-container {
  margin-top: 1rem;
  border: 1px solid var(--border);
  background-color: #fff;
  display: flex;
  justify-content: center;
  padding: 1rem;
  border-radius: 8px;
}

.canvas-label {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.canvas-clear-btn {
  margin-top: 0.75rem;
  width: 100%;
}

/* Progress Indicators */
.progress-bar-container {
  display: none;
  margin-bottom: 2.5rem;
}

.progress-bar-outer {
  width: 100%;
  height: 10px;
  background-color: var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.6rem;
}

.progress-bar-inner {
  height: 100%;
  width: 0%;
  background: var(--gradient);
  transition: width 0.25s ease;
}

.progress-status {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--subtext);
  text-align: center;
}

/* Security Note */
.security-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--subtext);
  margin-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.security-note svg {
  color: var(--primary);
}

/* Download Result Box */
.download-box {
  background-color: var(--primary-light);
  border: 1px solid var(--primary);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  text-align: center;
  margin-top: 2rem;
}

.download-box h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-weight: 800;
  font-size: 1.2rem;
}

.download-box p {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  color: var(--text);
}

/* ==========================================================================
   AD SLOTS
   ========================================================================== */

.ad-placeholder {
  background-color: var(--bg);
  border: 1px dashed var(--border);
  color: var(--subtext);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 8px;
}

#banner-728-90 {
  width: 728px;
  height: 90px;
  margin: 2rem auto;
}

#sidebar-200-400 {
  width: 200px;
  height: 400px;
  position: sticky;
  top: 120px;
}

#rect-336-280 {
  width: 336px;
  height: 280px;
  margin: 3rem auto;
}

/* ==========================================================================
   BLOG STYLING
   ========================================================================== */

.blog-hero {
  text-align: center;
  padding: 4.5rem 2rem 2rem;
  max-width: 820px;
  margin: 0 auto;
}

.blog-hero h1, .blog-hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--primary);
}

.blog-hero p {
  font-size: 1.15rem;
  color: var(--subtext);
}

.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 850px;
  margin: 2rem auto 5rem;
  padding: 0 2rem;
}

.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.blog-card-share-icon {
  position: absolute;
  top: 1.75rem;
  right: 1.75rem;
  color: var(--subtext);
  opacity: 0.7;
}

.blog-card-share-icon:hover {
  opacity: 1;
  color: var(--primary);
}

.blog-card-tag {
  align-self: flex-start;
  margin-bottom: 0.25rem;
}

.blog-card h3 {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text);
  padding-right: 2rem;
  margin: 0;
  transition: var(--transition);
}

.blog-card:hover h3 {
  color: var(--primary);
}

.blog-card-date {
  font-size: 0.85rem;
  color: var(--subtext);
  font-weight: 500;
}

.blog-card p, .blog-card-excerpt {
  font-size: 0.95rem;
  color: var(--subtext);
  line-height: 1.6;
  margin: 0.5rem 0 1rem;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.blog-card-comment {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
}

.blog-card-comment svg {
  color: var(--subtext);
}

.blog-card-readmore {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

/* Blog Post Detail View */
.blog-post-wrapper {
  max-width: 820px;
  margin: 3.5rem auto 6rem;
  padding: 0 2rem;
}

.blog-post-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 2rem;
  cursor: pointer;
  transition: var(--transition);
}

.blog-post-back:hover {
  color: var(--primary);
}

.blog-post-header {
  margin-bottom: 2.5rem;
}

.blog-post-category {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--primary-light);
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.blog-post-header h1, .post-detail-title {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.blog-post-author-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--subtext);
}

.blog-post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
}

.blog-post-content p {
  margin-bottom: 1.5rem;
}

.blog-post-content a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
}

.blog-post-content h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 2.5rem 0 1rem;
}

.blog-post-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
}

.blog-post-content ul, .blog-post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.blog-post-content li {
  margin-bottom: 0.5rem;
}

.blog-post-content strong {
  color: #000;
}

.blog-post-content blockquote {
  border-left: 4px solid var(--primary);
  background: var(--primary-light);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background-color: #1E293B;
  color: #94A3B8;
  padding: 5.5rem 2rem 2.5rem;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 4rem;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  font-weight: 800;
}

.footer-col h4 span {
  color: var(--primary);
}

.footer-col h5 {
  color: #FFFFFF;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.footer-col p {
  font-size: 0.925rem;
  line-height: 1.7;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: #94A3B8;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
}

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

.footer-legal-links span {
  transition: var(--transition);
}

.footer-legal-links span:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   MODALS & FLOATING CONTROLS
   ========================================================================== */

.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 82, 0, 0.35);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  max-width: 600px;
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  z-index: 1020;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
    animation: pageFadeIn 0.5s ease-out;
}

.cookie-content {
  font-size: 0.85rem;
  color: var(--text);
}

.cookie-content span {
  color: var(--primary);
  font-weight: 600;
}

.cookie-btns {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Policy Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1030;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-content {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2.75rem;
  position: relative;
}

.close-modal-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  border: none;
  background: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--subtext);
}

.modal-header-title {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.modal-body-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
}

/* Utilities */
.display-none { display: none !important; }
.subtext-muted { color: var(--subtext); }
.border-top-none { border-top: none !important; }
.text-center { text-align: center; }
.margin-top-1 { margin-top: 1rem; }
.margin-top-3-no-pad { margin: 3rem auto 0; padding: 0; }
.margin-bot-3 { margin-bottom: 3rem; }
.margin-bot-2-5 { margin-bottom: 2.5rem; }
.padding-vert-2 { padding: 2rem 0; }
.padding-top-bot { padding: 4rem 0 2rem; }
.padding-top-4 { padding: 4rem 0 0; }
.full-width { width: 100%; }
.cursor-pointer { cursor: pointer; }
.grid-2-cols { grid-template-columns: repeat(2, 1fr); }
.grid-2-cols-no-pad { padding: 0; grid-template-columns: repeat(2, 1fr); }

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1024px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .workspace-wrapper { grid-template-columns: 1fr; }
  #sidebar-200-400 { display: none; }
  #banner-728-90 { width: 100%; height: auto; display: none; }
  .blog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .navbar { padding: 1rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero h1 { font-size: 2.25rem; }
  .hero p { font-size: 1.1rem; }
  .tools-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; }
  .steps::after { display: none; }
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-post-header h1, .post-detail-title { font-size: 2rem; }
  .grid-2-cols, .grid-2-cols-no-pad { grid-template-columns: 1fr; }
}
