/* ========================================
   404 PAGE - EXACT REFERENCE DESIGN
   ======================================== */

:root {
  --orange: #ff7a1a;
  --orange-deep: #ff5a00;
  --ink: #222222;
  --navy: #111827;
  --muted: #666666;
  --line: rgba(18, 18, 18, 0.08);
  --soft-orange: rgba(255, 122, 26, 0.13);
}

/* ========================================
   HEADER STYLES - FROM MAIN SITE
   ======================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 74.6px;
  padding: 12px 3vw;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  contain: layout style;
}

.site-header.is-scrolled,
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.logo-container img {
  display: block;
  width: auto;
}

.site-logo {
  display: block;
  height: 40px;
}

.header-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li a {
  position: relative;
  color: #1f2a3b;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav-menu li a:hover {
  color: #ea6d13;
}

.nav-menu li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: #ea6d13;
  transition: width 0.3s ease;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
  width: 100%;
}

.nav-menu li a.active {
  color: #ea6d13;
}

.login-btn,
.btn-primary {
  background: #ea6d13;
  color: #fff;
  border: none;
  padding: 12px 50px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(234, 109, 19, 0.2);
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.login-btn:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(234, 109, 19, 0.35);
  color: #fff;
  filter: brightness(1.05);
}

.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-menu {
  position: fixed;
  top: 74.6px;
  left: 0;
  width: 100%;
  height: calc(100vh - 74.6px);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  padding: 32px 20px;
  transform: translateX(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  overflow-y: auto;
}

.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

/* ========================================
   MAIN PAGE STRUCTURE
   ======================================== */

.error-404-page {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  overflow-x: hidden;
  overflow-y: visible;
  padding-bottom: 80px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 122, 26, 0.15), transparent 28rem),
    radial-gradient(circle at 20% 60%, rgba(255, 122, 26, 0.08), transparent 20rem),
    radial-gradient(circle at 80% 40%, rgba(255, 122, 26, 0.06), transparent 18rem),
    linear-gradient(180deg, rgba(255, 248, 240, 0.95), rgba(245, 245, 245, 0.98));
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 122, 26, 0.035) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(255, 122, 26, 0.035) 0 1px, transparent 1px 32px);
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.4), transparent 74%);
}

.floating-dots span {
  position: fixed;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  z-index: -1;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.28;
  animation: dotFloat 4.5s ease-in-out var(--d) infinite alternate;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero-wrap-404 {
  position: relative;
  min-height: 100vh;
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 46px 24px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 1;
  isolation: isolate;
  overflow: visible;
}

.hero-404-section {
  position: relative;
  width: 100%;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding-bottom: 40px;
  z-index: 3;
  overflow: visible;
}

.halo-404 {
  position: absolute;
  top: 68px;
  left: 50%;
  width: min(590px, 76vw);
  height: min(360px, 45vw);
  z-index: -1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 122, 26, 0.17), rgba(255, 122, 26, 0.04) 57%, transparent 72%);
  filter: blur(2px);
}

/* ========================================
   404 ERROR CODE
   ======================================== */

.error-code-404 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin: 60px 0 24px;
}

.error-code-404 span {
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  font-size: 120px;
  font-weight: 900;
  line-height: 1;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.34) 0 8%, transparent 8% 100%),
    linear-gradient(180deg, #ff982c, var(--orange-deep));
  border: 2px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    0 20px 40px rgba(255, 120, 0, 0.4),
    inset 0 -10px 0 rgba(173, 58, 0, 0.25),
    inset -8px 0 0 rgba(178, 57, 0, 0.18);
  text-shadow: 0 7px 0 rgba(142, 47, 0, 0.34);
  animation: float404 2.6s ease-in-out infinite alternate;
}

.error-code-404 span:nth-child(2) {
  animation-delay: 0.18s;
}

.error-code-404 span:nth-child(3) {
  animation-delay: 0.36s;
}

/* ========================================
   STATUS PILL & HEADING
   ======================================== */

.status-pill-404 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  margin-bottom: 17px;
  padding: 5px 20px;
  border: 1px solid var(--orange);
  border-radius: 20px;
  color: var(--orange-deep);
  background: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}

.error-heading-main {
  margin: 0;
  color: var(--ink);
  font-size: 42px;
  line-height: 1.22;
  font-weight: 900;
  letter-spacing: 0;
}

.error-heading-main span {
  display: block;
  color: transparent;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy-404 {
  max-width: 500px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.65;
}

/* ========================================
   ACTION BUTTONS
   ======================================== */

.hero-buttons-404 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

.hero-buttons-404 a {
  min-width: 178px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid var(--orange);
  cursor: pointer;
  color: var(--orange-deep);
  background: transparent;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.hero-buttons-404 a:hover {
  transform: scale(1.05);
}

.hero-buttons-404 svg,
.help-card-404 svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.primary-btn-404 {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep)) !important;
  box-shadow: 0 13px 24px rgba(255, 90, 0, 0.24);
}

.primary-btn-404 svg {
  fill: currentColor;
  stroke: none;
}

.secondary-btn-404:hover {
  background: rgba(255, 122, 26, 0.06);
  box-shadow: 0 10px 22px rgba(255, 122, 26, 0.12);
}

/* ========================================
   LATEST BLOG POSTS SECTION - EXACT BLOG PAGE DESIGN
   ======================================== */

.blog-preview-404 {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: -20px auto 0;
  padding: 0px 24px 80px;
  z-index: 10;
  background: transparent;
}

.blog-preview-header {
  text-align: center;
  margin-bottom: 48px;
}

.blog-preview-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 32px;
  font-weight: 900;
  color: var(--ink);
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}

.blog-preview-title svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--orange);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.blog-preview-subtitle {
  font-size: 16px;
  color: var(--muted);
  font-weight: 500;
  margin: 0;
}

.blog-cards-404 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 40px;
}

.blog-card-404 {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.blog-card-404:hover {
  transform: translateY(-12px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
  border-color: rgba(234, 109, 19, 0.2);
}

.blog-card-image {
  position: relative;
  width: 100%;
  padding-top: 60%;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.blog-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card-404:hover .blog-card-image img {
  transform: scale(1.1);
}

.blog-card-content {
  padding: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: nowrap;
}

.blog-card-category {
  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.blog-card-meta-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.blog-card-date,
.blog-card-read-time {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.blog-card-date svg,
.blog-card-read-time svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.blog-card-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-excerpt {
  font-size: 16px;
  color: #64748b;
  line-height: 1.7;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  margin-top: auto;
  border-top: 2px solid rgba(0, 0, 0, 0.05);
}

.blog-card-author {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.author-avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(234, 109, 19, 0.1);
  flex-shrink: 0;
}

.author-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--orange-deep);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(234, 109, 19, 0.05);
}

.blog-card-404:hover .blog-card-link {
  gap: 12px;
  background: rgba(234, 109, 19, 0.1);
}

.blog-card-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s ease;
}

.blog-card-404:hover .blog-card-link svg {
  transform: translateX(4px);
}

.blog-preview-footer {
  text-align: center;
  padding-top: 20px;
}

.view-all-blogs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  border-radius: 14px;
  border: none;
  box-shadow: 0 12px 28px rgba(255, 122, 26, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.view-all-blogs-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  #background: linear-gradient(135deg, var(--orange-deep), var(--orange));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.view-all-blogs-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(255, 122, 26, 0.4);
}

.view-all-blogs-btn:hover::before {
  opacity: 1;
}

.view-all-blogs-btn span,
.view-all-blogs-btn svg {
  position: relative;
  z-index: 1;
}

.view-all-blogs-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s ease;
}

.view-all-blogs-btn:hover svg {
  transform: translateX(4px);
}
/* ========================================
   HELP CARD
   ======================================== */

.help-card-404 {
  width: min(760px, 100%);
  margin-top: 70px;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 68px 1fr auto;
  align-items: center;
  gap: 24px;
  text-align: left;
  border: 1.5px solid rgba(255, 122, 26, 0.18);
  border-radius: 24px;
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 252, 250, 0.95)),
    radial-gradient(circle at 20% 50%, rgba(255, 122, 26, 0.03), transparent 60%);
  box-shadow: 
    0 20px 50px rgba(17, 24, 39, 0.08),
    0 8px 16px rgba(255, 122, 26, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.help-card-404::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange-deep), var(--orange));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.help-card-404:hover::before {
  opacity: 1;
}

.help-icon-404 {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--orange);
  background: 
    linear-gradient(135deg, rgba(255, 122, 26, 0.12), rgba(255, 122, 26, 0.08));
  box-shadow: 
    0 8px 20px rgba(255, 122, 26, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  position: relative;
  transition: all 0.4s ease;
}

.help-icon-404::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}

.help-card-404:hover .help-icon-404 {
  transform: scale(1.05) rotate(5deg);
}

.help-card-404:hover .help-icon-404::after {
  opacity: 0.15;
}

.help-icon-404 svg {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 2px 4px rgba(255, 122, 26, 0.2));
}

.help-text-404 {
  flex: 1;
}

.help-text-404 strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.help-text-404 p {
  margin: 0;
  max-width: 440px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
}

.help-links-404 {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 28px;
  border-left: 2px solid rgba(255, 122, 26, 0.15);
}

.help-links-404 a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: max-content;
  padding: 12px 20px;
  border-radius: 12px;
  color: var(--orange-deep);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  background: rgba(255, 122, 26, 0.06);
  border: 1.5px solid rgba(255, 122, 26, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.help-links-404 a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.help-links-404 a:hover {
  transform: translateY(-3px);
  border-color: var(--orange);
  box-shadow: 
    0 12px 24px rgba(255, 122, 26, 0.2),
    0 4px 8px rgba(255, 122, 26, 0.1);
}

.help-links-404 a:hover::before {
  opacity: 1;
}

.help-links-404 a:hover {
  color: #ffffff;
}

.help-links-404 a:active {
  transform: translateY(-1px);
}

.help-links-404 a svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.help-links-404 a:hover svg {
  transform: scale(1.1);
}

/* ========================================
   DECORATIVE ELEMENTS - ORIGINAL REFERENCE DESIGN
   ======================================== */

.decor {
  position: absolute;
  pointer-events: none;
  opacity: 0.34;
}

.decor-page {
  top: 78px;
  left: 22%;
  width: 55px;
  height: 70px;
  border: 3px solid #aaa19a;
  border-radius: 5px;
  color: #aaa19a;
  transform: rotate(-10deg);
}

.paper-corner {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 22px;
  height: 22px;
  border-left: 3px solid #aaa19a;
  border-bottom: 3px solid #aaa19a;
  background: #f7f7f7;
}

.decor-page::before,
.decor-page::after {
  content: "";
  position: absolute;
  left: 14px;
  height: 3px;
  border-radius: 4px;
  background: #aaa19a;
}

.decor-page::before {
  top: 21px;
  width: 21px;
}

.decor-page::after {
  top: 34px;
  width: 29px;
}

.decor-page span {
  position: absolute;
  left: 23px;
  top: 40px;
  font-size: 25px;
  font-weight: 900;
}

.decor-barrier {
  left: 8%;
  bottom: 28%;
  width: 118px;
  height: 90px;
}

.barrier-board {
  position: absolute;
  left: 8px;
  top: 26px;
  width: 102px;
  height: 28px;
  border: 3px solid #8f9498;
  border-radius: 5px;
  background:
    repeating-linear-gradient(120deg, var(--orange) 0 11px, #ffffff 11px 20px);
}

.barrier-light {
  position: absolute;
  top: 9px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--orange);
  border: 2px solid #a54405;
}

.barrier-light.left {
  left: 13px;
}

.barrier-light.right {
  right: 13px;
}

.barrier-leg {
  position: absolute;
  top: 50px;
  width: 8px;
  height: 42px;
  border-radius: 4px;
  background: #8f9498;
}

.barrier-leg.left {
  left: 22px;
  transform: rotate(5deg);
}

.barrier-leg.right {
  right: 22px;
  transform: rotate(-5deg);
}

.decor-sign {
  right: 7%;
  bottom: 30%;
  width: 122px;
  height: 125px;
}

.sign-loop {
  position: absolute;
  top: 0;
  left: 58px;
  width: 11px;
  height: 22px;
  border: 3px solid #757575;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}

.sign-face {
  position: absolute;
  top: 17px;
  left: 0;
  width: 122px;
  height: 60px;
  display: grid;
  place-items: center;
  border: 3px solid #757575;
  border-radius: 8px;
  color: var(--orange-deep);
  background: #ffffff;
  font-size: 15px;
  line-height: 1.1;
  font-weight: 900;
}

.sign-post {
  position: absolute;
  top: 75px;
  left: 58px;
  width: 8px;
  height: 48px;
  border-radius: 3px;
  background: #757575;
}
/* ========================================
   FOOTER STYLES
   ======================================== */

.site-footer {
  padding: 24px 20px;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin-top: 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-copyright {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.footer-link {
  color: #f67214;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #f67214;
  text-decoration: underline;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes float404 {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-10px);
  }
}

@keyframes dotFloat {
  from {
    transform: translateY(0) scale(1);
  }
  to {
    transform: translateY(-14px) scale(1.12);
  }
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */

@media (max-width: 820px) {
  .site-header {
    min-height: 66px;
    padding: 10px 5%;
  }

  .header-nav,
  .nav-menu,
  .site-header .login-btn {
    display: none !important;
  }

  .hamburger {
    display: flex !important;
  }

  .mobile-menu {
    top: 66px;
    height: calc(100vh - 66px);
  }

  .hero-wrap-404 {
    padding-top: 120px;
    padding-bottom: 50px;
  }

  .error-code-404 {
    gap: 10px;
    margin-top: 40px;
  }

  .error-code-404 span {
    width: 86px;
    height: 86px;
    font-size: 70px;
    border-radius: 10px;
  }

  .error-heading-main {
    font-size: 34px;
  }

  .hero-copy-404 {
    font-size: 15px;
  }

  .decor {
    opacity: 0.22;
    transform: scale(0.72);
  }

  .decor-page {
    left: 9%;
    top: 95px;
  }

  .decor-barrier,
  .decor-sign {
    display: none;
  }

  .help-card-404 {
    grid-template-columns: 58px 1fr;
    padding: 24px 20px;
    border-radius: 20px;
    gap: 20px;
  }

  .help-icon-404 {
    width: 58px;
    height: 58px;
    border-radius: 16px;
  }

  .help-icon-404 svg {
    width: 30px;
    height: 30px;
  }

  .help-text-404 strong {
    font-size: 17px;
  }

  .help-links-404 {
    grid-column: 1 / -1;
    justify-content: space-between;
    width: 100%;
    padding: 18px 0 0;
    border-left: 0;
    border-top: 2px solid rgba(255, 122, 26, 0.15);
    gap: 12px;
  }

  .help-links-404 a {
    flex: 1;
    padding: 11px 16px;
    font-size: 13px;
  }

  .help-links-404 a svg {
    width: 16px;
    height: 16px;
  }

  .blog-preview-404 {
    margin-top: 40px;
  }

  .blog-preview-title {
    font-size: 28px;
  }

  .blog-preview-title svg {
    width: 28px;
    height: 28px;
  }

  .blog-preview-subtitle {
    font-size: 15px;
  }

  .blog-cards-404 {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .blog-card-title {
    font-size: 18px;
  }

  .blog-card-content {
    padding: 24px;
  }

  .blog-card-excerpt {
    font-size: 15px;
  }

  .view-all-blogs-btn {
    padding: 14px 28px;
    font-size: 14px;
  }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */

@media (max-width: 560px) {
  body {
    padding-top: 66px !important;
  }

  .site-header {
    min-height: 66px;
    padding: 10px 5%;
  }

  .header-nav,
  .nav-menu,
  .site-header .login-btn {
    display: none !important;
  }

  .hamburger {
    display: flex !important;
  }

  .mobile-menu {
    top: 66px;
    height: calc(100vh - 66px);
  }

  .hero-wrap-404 {
    padding: 20px 18px 40px;
    min-height: auto;
  }

  .hero-404-section {
    min-height: auto;
    padding-top: 0;
    padding-bottom: 20px;
  }

  .error-code-404 {
    margin-top: 20px;
  }

  .error-code-404 span {
    width: 74px;
    height: 74px;
    font-size: 70px;
  }

  .status-pill-404 {
    margin-bottom: 14px;
  }

  .error-heading-main {
    font-size: 30px;
  }

  .hero-copy-404 {
    max-width: 340px;
    line-height: 1.55;
  }

  .hero-buttons-404 {
    width: 100%;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
  }

  .hero-buttons-404 a {
    width: 100%;
    max-width: 340px;
  }

  .help-card-404 {
    margin-top: 32px;
    padding: 22px 18px;
    gap: 16px;
  }

  .help-text-404 strong {
    font-size: 16px;
  }

  .help-text-404 p {
    font-size: 13px;
  }

  .help-links-404 {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-top: 16px;
  }

  .help-links-404 a {
    width: 100%;
    justify-content: center;
    padding: 13px 18px;
  }

  .blog-preview-404 {
    margin-top: 32px;
  }

  .blog-preview-header {
    margin-bottom: 28px;
  }

  .blog-preview-title {
    font-size: 24px;
    flex-direction: column;
    gap: 8px;
  }

  .blog-preview-title svg {
    width: 24px;
    height: 24px;
  }

  .blog-preview-subtitle {
    font-size: 14px;
  }

  .blog-cards-404 {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
  }

  .blog-card-title {
    font-size: 17px;
  }

  .blog-card-excerpt {
    font-size: 15px;
  }

  .blog-card-content {
    padding: 24px;
  }

  .blog-card-author {
    gap: 10px;
  }

  .author-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }

  .author-name {
    font-size: 14px;
  }

  .view-all-blogs-btn {
    width: 100%;
    max-width: 340px;
    padding: 15px 24px;
  }
}

/* ========================================
   RESPONSIVE - VERY SMALL MOBILE
   ======================================== */

@media (max-width: 768px) {
  .header-nav,
  .nav-menu,
  .site-header .login-btn {
    display: none !important;
  }

  .hamburger {
    display: flex !important;
  }

  .mobile-menu {
    display: block;
  }
}

/* ========================================
   WAITLIST MODAL STYLES
   ======================================== */

.modal-content-premium {
  border-radius: 24px;
  border: 1px solid rgba(255, 122, 26, 0.12);
  padding: 40px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.15);
}

.modal-title {
  font-size: 32px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.5px;
}

.text-orange {
  color: var(--orange);
}

.modal-subtitle {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 500;
}

.form-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  display: block;
}

.premium-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid rgba(17, 24, 39, 0.1);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  background: #ffffff;
  transition: all 0.3s ease;
  outline: none;
}

.premium-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.1);
}

.premium-input::placeholder {
  color: #999;
  font-weight: 400;
}

.btn-waitlist {
  min-height: 56px;
  padding: 16px 32px;
  border: none;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 16px 32px rgba(255, 90, 0, 0.3);
  transition: all 0.3s ease;
}

.btn-waitlist:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(255, 90, 0, 0.4);
}

.btn-waitlist:active {
  transform: translateY(0);
}

.btn-waitlist:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.modal-footer-text {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

.waitlist-modal-message {
  font-size: 14px;
  font-weight: 600;
  padding: 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.waitlist-modal-message.success {
  color: #059669;
  background: rgba(5, 150, 105, 0.1);
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.waitlist-modal-message.error {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.btn-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.05);
  opacity: 1;
  transition: all 0.3s ease;
}

.btn-close:hover {
  background: rgba(17, 24, 39, 0.1);
  transform: rotate(90deg);
}

.modal-backdrop.show {
  opacity: 0.6;
}

@media (max-width: 768px) {
  .modal-content-premium {
    padding: 28px 20px;
    border-radius: 20px;
  }

  .modal-title {
    font-size: 26px;
  }

  .modal-subtitle {
    font-size: 14px;
  }

  .premium-input {
    padding: 12px 16px;
    font-size: 14px;
  }

  .btn-waitlist {
    min-height: 50px;
    font-size: 14px;
  }
}
/* ========================================
   MOBILE MENU LINK FIXES
   ======================================== */

.mobile-menu a {
  text-decoration: none !important;
}

.mobile-menu ul li a {
  text-decoration: none !important;
  border-bottom: none !important;
}

/* Remove any underlines from mobile navigation */
@media (max-width: 768px) {
  .mobile-menu a,
  .mobile-menu ul li a,
  .nav-menu a {
    text-decoration: none !important;
    border-bottom: none !important;
  }
  
  /* Match main site mobile menu exactly */
  .mobile-menu {
    padding: 32px 20px !important;
  }
  
  .mobile-menu ul {
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
  }
  
  .mobile-menu li {
    margin: 0 !important;
    border-bottom: none !important;
  }
  
  .mobile-menu ul li a {
    display: block !important;
    padding: 16px 0 !important;
    color: #172033 !important;
    font-weight: 600 !important;
    font-size: 18px !important;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08) !important;
    transition: color 0.3s ease !important;
  }
  
  .mobile-menu ul li a:hover,
  .mobile-menu ul li a.active {
    color: #ea6d13 !important;
  }
  
  .mobile-menu .login-btn {
    width: 100% !important;
    margin-top: 16px !important;
    display: inline-block !important;
    padding: 14px 32px !important;
    background: #ea6d13 !important;
    color: #fff !important;
    border-radius: 100px !important;
    font-weight: 700 !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(227, 111, 29, 0.3) !important;
  }
  
  .mobile-menu .login-btn:hover {
    background: #d65d0f !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(227, 111, 29, 0.4) !important;
  }
}