/* NovelUpdates-inspired theme for Alaeh.PH */

:root {
  --bg-primary: #f4f5f7;
  --bg-surface: #ffffff;
  --bg-surface-alt: #fbfbfd;
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --border-primary: #d1d5db;
  --border-secondary: #e5e7eb;
  --accent: #ff7a18;
  --accent-dark: #e66a10;
  --accent-soft: #fff3e8;
  --shadow-sm: 0 10px 20px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 14px 34px rgba(15, 23, 42, 0.08);
  --accent-blue: #1d4ed8;
  --accent-blue-hover: #2563eb;
  --accent-green: #0f766e;
  --accent-orange: #f97316;
  --bg-tertiary: #f8fafc;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

body {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

img,
video,
iframe,
picture {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(100%, 1200px);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.35rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: var(--text-primary);
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border-secondary);
  background: var(--bg-surface);
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(255, 122, 24, 0.35);
  box-shadow: 0 0 0 4px rgba(255, 122, 24, 0.12);
}

button,
.btn {
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

button:hover,
.btn:hover {
  transform: translateY(-1px);
}

.btn-primary,
button.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover,
button.btn-primary:hover {
  background-color: var(--accent-dark);
}

.btn-secondary,
button.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-secondary);
}

.btn-secondary:hover,
button.btn-secondary:hover {
  background-color: var(--bg-surface-alt);
}

.header {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-secondary);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.logo {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  background-color: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-secondary);
}

.logo img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.brand-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-info h1 {
  margin: 0;
  font-size: 1.05rem;
}

.brand-info p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.navigation {
  width: auto;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-secondary);
  background: var(--bg-surface);
  border-radius: 999px;
  padding: 10px 12px;
  color: var(--text-primary);
  cursor: pointer;
}

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

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

.nav-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0;
  border-radius: 0;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.nav-link.active {
  color: var(--accent);
}

.nav-link.active:hover {
  color: var(--accent-dark);
}

.main-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  min-width: 0;
  gap: 28px;
  padding: 28px 0 60px;
}

.main-content {
  min-width: 0;
}

.sidebar-right {
  position: sticky;
  top: 26px;
  min-width: 0;
  background-color: var(--bg-surface);
  border-radius: 24px;
  border: 1px solid var(--border-secondary);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  margin-bottom: 20px;
}

.dynamic-banner {
  background-color: var(--accent-soft);
  border-bottom: 1px solid rgba(255, 122, 24, 0.15);
  padding: 18px;
  margin-bottom: 20px;
}

.page-heading {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  align-items: baseline;
}

.page-heading h2 {
  margin: 0;
}

.section-intro {
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.sidebar-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-secondary);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.sidebar-box a {
  display: block;
  color: var(--accent);
  margin-top: 12px;
}

.sidebar-box--compact {
  padding: 12px;
}

.sidebar-box--compact h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.sidebar-box--compact .stat-row {
  padding: 6px 0;
}

.sidebar-box--compact .stat-label {
  font-size: 0.95rem;
}

.sidebar-box--compact .stat-value {
  font-size: 1rem;
}

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

.sidebar-links li+li {
  margin-top: 6px;
}

.sidebar-box--compact .sidebar-links a {
  margin-top: 0;
  padding: 6px 0;
}

.site-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-secondary);
  padding: 24px 0;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  color: var(--text-secondary);
}

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

.footer-copy {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

@media (max-width: 1024px) {
  .main-wrapper {
    grid-template-columns: 1fr;
  }

  .sidebar-right {
    position: static;
  }

  .header-container,
  .navigation {
    width: 100%;
  }

  .header-container {
    align-items: stretch;
  }
}

@media (max-width: 980px) {
  .pricing-hero {
    grid-template-columns: 1fr;
    padding: 30px;
  }

  .pricing-plans-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {

  .header-container,
  .nav-container {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-link {
    justify-content: center;
  }

  .page-section {
    padding: 20px;
  }
}

.content-section {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: 6px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.pricing-hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  align-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.82));
  border-radius: 24px;
  padding: 40px;
}

.pricing-hero-copy {
  max-width: 560px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent-blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.pricing-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.hero-text {
  margin-bottom: 28px;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pricing-hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.pricing-hero-image img {
  width: 100%;
  max-width: 320px;
  border-radius: 22px;
  box-shadow: var(--shadow-md);
}

.pricing-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.pricing-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-secondary);
  border-radius: 22px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-sm);
}

.pricing-card-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-label,
.pricing-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  background-color: var(--accent-soft);
  color: var(--accent);
}

.pricing-badge.premium {
  background-color: rgba(29, 78, 216, 0.1);
  color: var(--accent-blue);
}

.pricing-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pricing-subtitle {
  margin-top: -10px;
  color: var(--text-secondary);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.pricing-features li::before {
  content: "✔";
  color: var(--accent-green);
  margin-right: 8px;
}

.pricing-benefits {
  margin-top: 42px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.feature-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-secondary);
  border-radius: 18px;
  padding: 22px;
  min-height: 170px;
}

.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.feature-item h3 {
  margin-bottom: 10px;
}

.pricing-note-box {
  margin-top: 30px;
  padding: 24px;
  border-radius: 18px;
  background-color: var(--accent-soft);
  border: 1px solid rgba(249, 115, 22, 0.15);
}

.pricing-note-box p {
  margin: 0;
  color: var(--text-primary);
  font-weight: 600;
}

.content-section h2 {
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pagination {
  text-align: right;
  font-size: 0.9rem;
  margin-top: 10px;
  color: var(--text-secondary);
}

.pagination a {
  color: var(--accent-blue);
  margin-left: 8px;
}

/* Property Widget Grid */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.listings-page .property-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.property-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 6px;
  padding: 15px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.property-card:hover {
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-md);
}

.property-card h4 {
  margin: 0 0 8px 0;
  color: var(--accent-blue);
}

.property-card p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.property-price {
  font-weight: 600;
  color: var(--accent-green);
  font-size: 1.1rem;
  margin-top: 10px;
}

/* Stats/Trending Section */
.stats-container {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 6px;
  padding: 15px;
  margin-top: 15px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-primary);
}

.stat-row:last-child {
  border-bottom: none;
}

.stat-label {
  color: var(--text-secondary);
}

.stat-value {
  font-weight: 600;
  color: var(--text-primary);
}

/* Sidebar - Right */
.sidebar-right {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* User Profile Section */
.user-profile {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: 6px;
  padding: 15px;
  box-shadow: var(--shadow-sm);
}

/* Highlighted Section */
.highlighted-section {
  background-color: #fff8f0;
  border-left: 4px solid var(--accent-orange);
  padding: 20px;
  margin-top: 15px;
  border-radius: 4px;
}

.highlighted-section h3 {
  color: var(--accent-orange);
  margin-top: 0;
}

.highlight-image {
  text-align: center;
  margin-top: 15px;
}

.highlight-image img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Footer */
footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-primary);
  padding: 30px;
  text-align: center;
  color: var(--text-secondary);
  margin-top: auto;
}

footer p {
  margin: 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-size: 0.9rem;
}

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

.btn-primary:hover {
  background-color: var(--accent-blue-hover);
}

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

.btn-secondary:hover {
  background-color: var(--bg-tertiary);
}

.btn-success {
  background-color: var(--accent-green);
  color: white;
}

.btn-success:hover {
  background-color: #28a745;
  opacity: 0.9;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.private-only {
  display: none;
}

.private-only.authenticated {
  display: block;
}

.public-only {
  display: block;
}

.public-only.authenticated {
  display: block;
}

.flash-messages {
  margin: 0 auto 24px;
  max-width: 900px;
  padding: 0 16px;
}

.flash-message {
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.flash-message-success {
  background-color: #e6f4ea;
  border: 1px solid #2f855a;
  color: #1e4620;
}

.flash-message-error {
  background-color: #fff1f0;
  border: 1px solid #d1240e;
  color: #7f1d1d;
}

.flash-message-info {
  background-color: #ebf8ff;
  border: 1px solid #2b6cb0;
  color: #1e3a8a;
}

/* Forms */
.form-container {
  max-width: 500px;
  margin: 0 auto;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: 6px;
  padding: 30px;
  box-shadow: var(--shadow-md);
}

.form-container h2 {
  margin-bottom: 20px;
  text-align: center;
}

.form-container .form-group {
  margin-bottom: 16px;
}

.form-container input,
.form-container textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-primary);
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: inherit;
}

.form-container textarea {
  resize: vertical;
  min-height: 100px;
}

.form-container input:focus,
.form-container textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(3, 102, 214, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row .form-group {
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-wrapper {
    grid-template-columns: 1fr;
  }

  .sidebar-right {
    order: 2;
    position: static;
  }

  .main-content {
    order: 1;
  }

  .brand-info {
    display: none;
  }

  .header-container {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    position: relative;
  }

  .logo-section {
    flex: 0 0 auto;
  }

  .navigation {
    width: auto;
    position: absolute;
    top: calc(100% + 8px);
    right: 18px;
    left: auto;
    min-width: 220px;
    max-width: min(260px, calc(100% - 36px));
    background: var(--bg-surface);
    border: 1px solid var(--border-secondary);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: max-height 0.28s ease, opacity 0.18s ease, transform 0.18s ease;
    z-index: 30;
  }

  .navigation.navigation-open {
    max-height: 320px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-toggle {
    display: inline-flex;
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    margin-left: 0;
  }

  .navigation {
    order: 3;
  }

  .nav-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-item {
    margin: 0;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 8px 12px;
    line-height: 1.3;
    font-size: 0.95rem;
    border-radius: 0;
    border-bottom: 1px solid var(--border-secondary);
    text-align: right;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .property-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .header-container {
    gap: 10px;
    justify-content: space-between;
  }

  .logo {
    width: 60px;
    height: 60px;
  }

  .nav-toggle {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    margin-left: 0;
  }

  .navigation {
    right: 14px;
    left: auto;
    min-width: 200px;
    max-width: calc(100% - 28px);
  }

  .nav-container {
    gap: 0;
  }

  .sidebar-box,
  .content-section,
  .form-container {
    padding: 12px;
  }

  .main-wrapper {
    padding: 8px;
    gap: 8px;
  }

  .nav-link {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
}

/* Wikipedia-inspired site overrides */
:root {
  --bg: #f7f7f7;
  --surface: #ffffff;
  --border: #d9d9d9;
  --text: #111111;
  --muted: #4f4f4f;
  --link-color: #0645ad;
  --link-hover: #0b0080;
  --radius: 4px;
  --max-width: 840px;
}

html,
body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--bg);
}

body {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

a,
a.btn {
  color: var(--link-color);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  font-weight: 600;
}

a:hover,
a:focus,
a.btn:hover,
a.btn:focus {
  color: var(--link-hover);
  text-decoration: underline;
}

h1 {
  font-size: 1.9rem;
}

h2 {
  font-size: 1.35rem;
}

h3 {
  font-size: 1.05rem;
}

p,
ul,
ol,
dl,
blockquote {
  color: var(--muted);
  margin-bottom: 1rem;
}

ul,
ol {
  padding-left: 1.4rem;
}

li {
  margin-bottom: 0.45rem;
}

.container {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 0 18px;
}

.header {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.header-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.logo {
  width: 52px;
  height: 52px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.logo img {
  width: 84%;
}

.brand-info {
  display: none;
}

.nav-container {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.nav-link {
  color: var(--link-color);
  text-decoration: none;
  font-weight: 500;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--link-hover);
  text-decoration: underline;
}

.nav-link.active {
  color: var(--text);
}

.main-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 18px 0 40px;
  max-width: 780px;
  margin: 0 auto;
}

.sidebar-right,
.content-section,
.sidebar-box,
.pricing-card,
.feature-item,
.stats-container,
.form-container,
.highlighted-section,
.pricing-hero {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
}

.content-section {
  padding: 18px;
  margin: 0 auto 24px;
  max-width: 760px;
}

.page-section {
  padding: 0;
}

.sidebar-right {
  position: static;
  padding: 16px;
  margin-top: 24px;
}

.sidebar-box,
.stats-container {
  padding: 16px;
}

.form-container {
  padding: 20px;
  max-width: 520px;
}

.form-container input,
.form-container textarea,
.form-container select {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
}

.form-container input:focus,
.form-container textarea:focus,
.form-container select:focus {
  outline: none;
  border-color: var(--link-color);
}

.property-card {
  padding: 16px;
  border: 1px solid var(--border);
}

.property-card:hover {
  background: #fafafa;
}

.property-card h4,
.property-price,
.feature-item h3,
.sidebar-box h3,
.content-section h2 {
  color: var(--text);
}

.property-price {
  color: var(--text);
}

.highlighted-section {
  padding: 16px;
  margin-top: 16px;
  border-left: 4px solid #f97316;
  background: #fff7ed;
}

footer {
  padding: 22px 0;
  text-align: center;
}

.footer-nav,
.footer-container {
  justify-content: center;
}

.footer-nav a {
  color: var(--link-color);
}

.btn-primary,
.btn-secondary,
.btn-success,
button,
.btn {
  color: var(--link-color);
  background: none;
  border: none;
  text-decoration: none;
  padding: 0;
}

@media (max-width: 1024px) {
  .main-wrapper {
    grid-template-columns: 1fr;
  }

  .sidebar-right {
    position: static;
  }
}

@media (max-width: 980px) {

  .pricing-hero,
  .pricing-plans-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 760px) {

  .header-container,
  .nav-container {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-link {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 14px;
  }

  .content-section,
  .sidebar-right,
  .form-container,
  .pricing-card,
  .feature-item {
    padding: 16px;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-container {
    flex-direction: column;
    gap: 0;
  }

  .nav-link {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    display: block;
  }

  .nav-link:last-child {
    border-bottom: none;
  }
}