:root {
  --deep-blue: #212c35;
  --lighter-blue: #273945;
  --gold: #ffd458;
  --accent: #ff8456;
  --pure-white: #f9f9f8;
  --fade: #38424b;
  --text-main: #f9f9f8;
  --text-heading: var(--gold);
  --blog-bg: var(--fade);
  --text-subtle: #bababa;

  /* Fluid type + spacing */
  --fs-base: clamp(15px, 1.6vw, 18px);
  --fs-h1: clamp(26px, 4.2vw, 38px);
  --fs-h2: clamp(16px, 2.1vw, 20px);
  --radius-lg: 1.4rem;
  --radius-md: 1rem;
  --shadow-soft: 0 2px 12px rgba(18,20,24,0.12);
  --shadow-deep: 0 4px 18px rgba(18,20,24,0.18);
  --container-w: 920px;
  --pad-page: clamp(14px, 3.3vw, 28px);
  --gap: clamp(14px, 3vw, 24px);
}

/* Light mode overrides */
body[data-theme="light"] {
  --deep-blue: #ffffff;
  --lighter-blue: #f5f6fa;
  --fade: #eef0f4;
  --gold: #b48a17;
  --accent: #8b5a2d;
  --pure-white: #282828;
  --text-main: #222;
  --text-heading: #3d2f0f;
  --blog-bg: #f8f8ef;
  --text-subtle: #4b5563;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--deep-blue);
  color: var(--text-main);
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.65;
  min-height: 100vh;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s ease, color 0.3s ease;
}

.container {
  width: min(100%, var(--container-w));
  margin-inline: auto;
  padding-inline: var(--pad-page);
}

/* Header */
header {
  background: var(--lighter-blue);
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  transition: background 0.3s ease, color 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-block: 0.7rem;
  width: min(100%, var(--container-w));
  margin: 0 auto;
  padding-inline: var(--pad-page);
}

.logo {
  font-weight: 900;
  font-size: clamp(20px, 2.6vw, 24px);
  letter-spacing: 2px;
  color: var(--gold);
  white-space: nowrap;
  transition: color 0.3s ease;
  text-decoration: none;
  cursor: pointer;
}

.logo:hover {
  opacity: 0.85;
}

nav {
  display: flex;
  gap: clamp(12px, 2.2vw, 18px);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  text-decoration: none;
  color: var(--text-main);
  opacity: 0.9;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
  transition: opacity 0.15s, color 0.3s, background 0.2s;
  cursor: pointer;
}
.nav-link:hover,
.nav-link.active {
  opacity: 1;
  color: var(--deep-blue);
  background: var(--gold);
}

/* Main */
main { min-height: 68vh; }

/* Hero */
.hero {
  width: min(100%, var(--container-w));
  margin: 2rem auto 1.6rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  align-items: center;
  background: var(--blog-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-deep);
  padding: clamp(18px, 3.5vw, 34px);
  transition: background 0.3s ease;
}

.profile-img {
  width: clamp(110px, 28vw, 170px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--gold);
  background: var(--blog-bg);
  box-shadow: 0 3px 18px rgba(30,24,16,0.08);
  position: relative;
  margin-inline: auto;
}

.profile-img img {
  position: absolute;
  inset: 0;
  width: 120%;
  height: 120%;
  object-fit: cover;
  transform: translate(-10%, 0%);
  border-radius: 50%;
}

.intro-text { text-align: center; }
@media (min-width: 700px) {
  .hero {
    grid-template-columns: auto 1fr;
    text-align: left;
  }
  .intro-text { text-align: left; }
}

h1 {
  font-size: var(--fs-h1);
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 0 0 0.25em 0;
  color: var(--text-heading);
  transition: color 0.3s ease;
}

h2 {
  font-size: var(--fs-h2);
  color: var(--gold);
  font-weight: 600;
  margin: 0.1em 0 1.1em 0;
  opacity: 0.96;
  transition: color 0.3s ease;
}

.highlight {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: color 0.3s ease;
}

blockquote {
  border-left: 4px solid var(--gold);
  background: rgba(255, 212, 88, 0.15);
  color: var(--gold);
  font-style: italic;
  margin: 2.5rem 0;
  padding-left: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.divider { color: #bfc6cc; margin: 0 0.6em; }

/* About Section on Home Page */
.about-section {
  width: min(100%, var(--container-w));
  margin: 2rem auto 1.6rem;
  padding: clamp(18px, 3.5vw, 34px);
  background: var(--blog-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-deep);
  transition: background 0.3s ease;
}

.about-section h2 {
  text-align: center;
  margin-bottom: 1.2rem;
}

.about-section p {
  margin-bottom: 1rem;
}

.cta-links {
  margin-top: 1.5rem;
}

/* Buttons */
.hero-links { 
  margin-top: 1.2rem; 
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (min-width: 700px) {
  .hero .hero-links {
    justify-content: flex-start;
  }
}

.button {
  background: var(--gold);
  color: var(--deep-blue);
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1.3rem;
  font-weight: 800;
  font-size: clamp(15px, 1.8vw, 16px);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(30,30,12,0.12);
  transition: transform 0.06s ease, background 0.17s, color 0.13s;
  text-align: center;
  display: inline-block;
}
.button:active { transform: translateY(1px); }
.button:hover { background: var(--accent); color: var(--pure-white); }

/* Sections */
.about-main, .blog-main, .contact-main {
  width: min(100%, var(--container-w));
  margin: 2.2rem auto 1.2rem;
  padding: clamp(16px, 3vw, 28px);
  background: var(--blog-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: background 0.3s ease;
}

.about-container {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 820px) {
  .about-container { grid-template-columns: auto 1fr; }
}

.about-pic {
  width: clamp(140px, 34vw, 280px);
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  border: 4px solid var(--gold);
  background: var(--blog-bg);
  position: relative;
  margin-inline: auto;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.about-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Blog list */
.blog-list {
  margin-top: 1.6rem;
  margin-bottom: 1.6rem;
  display: grid;
  gap: 1rem;
}
.blog-item {
  background: color-mix(in oklab, var(--lighter-blue), black 6%);
  padding: clamp(14px, 2.5vw, 18px);
  border-radius: var(--radius-md);
  transition: background 0.18s, transform 0.06s ease;
}
.blog-item:active { transform: translateY(1px); }
.blog-item:hover { background: color-mix(in oklab, var(--lighter-blue), black 2%); }

.blog-item a {
  color: var(--gold);
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 800;
  text-decoration: none;
}
.blog-desc {
  display: block;
  color: color-mix(in oklab, var(--text-main), #888 45%);
  font-size: clamp(14px, 1.7vw, 16px);
  margin-top: 0.35em;
}

.blog-note {
  margin-top: 1.6rem;
  font-size: clamp(14px, 1.7vw, 16px);
  color: color-mix(in oklab, var(--text-main), #ccc 35%);
}

/* Blog note links (for emails and other links) */
.blog-note a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  transition: color 0.2s ease, border-bottom-color 0.2s ease;
}

.blog-note a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}


/* Blog detail header/footer */
.blog-header {
  background: color-mix(in oklab, var(--lighter-blue), black 6%);
  border-radius: var(--radius-lg);
  padding: 1rem 1.2rem;
  margin: 0 0 1.8rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
  text-align: left;
  color: var(--gold);
}

.blog-meta {
  font-size: 0.9rem;
  color: var(--text-subtle) !important;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.blog-title {
  margin: 0;
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--text-heading);
  line-height: 1.15;
}

.blog-footer {
  margin-top: 2rem;
  background: color-mix(in oklab, var(--lighter-blue), black 6%);
  border-radius: var(--radius-lg);
  padding: 1rem 1.2rem;
  text-align: center;
}

/* Inline Subscribe Box (on blog pages) */
.inline-subscribe-box {
  margin-top: 2rem;
  margin-bottom: 2rem; /* Add this line */
  padding: 1.5rem;
  background: color-mix(in oklab, var(--blog-bg), var(--gold) 5%);
  border-radius: var(--radius-md);
  border: 2px solid color-mix(in oklab, var(--gold), transparent 70%);
}


.inline-subscribe-box h3 {
  color: var(--gold);
  font-size: 1.3rem;
  margin: 0 0 1rem 0;
  text-align: center;
}

.inline-subscribe-form {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.inline-subscribe-form input {
  flex: 1;
  min-width: 200px;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  border: 1px solid color-mix(in oklab, var(--text-main), #000 80%);
  background: color-mix(in oklab, var(--lighter-blue), #000 10%);
  color: var(--text-main);
  font-size: 1rem;
}

.inline-subscribe-form input:focus {
  outline: 2px solid var(--gold);
}

.inline-subscribe-tagline {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-subtle);
  font-style: italic;
  margin: 0.5rem 0;
}

/* Responsive images */
.blog-main article img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.25rem auto;
  border-radius: 12px;
  box-shadow: 0 6px 22px rgba(0,0,0,0.08);
  object-fit: contain;
}

.blog-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.25rem auto;
}

.blog-img--wide {
  width: 100%;
}

.blog-img--narrow {
  max-width: 680px;
}

.blog-figure {
  margin: 1.5rem auto;
  text-align: center;
}
.blog-figure img {
  margin: 0.5rem auto;
}
.blog-figure figcaption {
  font-size: 0.95rem;
  color: var(--muted, #7a7a7a);
  margin-top: 0.5rem;
}

@media (max-width: 700px) {
  .blog-main article img,
  .blog-img {
    max-width: 100%;
    width: 100%;
  }
}

/* QUOTES PAGE */
.quote-item {
  scroll-margin-top: 120px;
  transition: background 0.3s ease;
}

.quote-heading {
  color: var(--gold);
  font-size: clamp(15px, 1.9vw, 17px);
  font-weight: 700;
  margin-bottom: 0.6em;
  display: block;
}

.quote-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.quote-share-btn {
  background: var(--gold);
  color: var(--deep-blue);
  border: none;
  padding: 7px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.quote-share-btn:hover {
  background: var(--accent);
  color: var(--pure-white);
}

.quote-share-btn:active {
  transform: scale(0.97);
}

.quote-share-btn.copied {
  background: #4caf50;
  color: white;
}

.quote-share-btn svg {
  flex-shrink: 0;
}

.quote-subscribe-btn {
  background: var(--gold);
  color: var(--deep-blue);
  border: none;
  padding: 7px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.quote-subscribe-btn:hover {
  background: var(--accent);
  color: var(--pure-white);
}

.quote-subscribe-btn:active {
  transform: scale(0.97);
}

/* Contact form */
.contact-form {
  display: grid;
  gap: 0.9rem;
  max-width: 520px;
  margin: 1.6rem auto 0;
}
.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid color-mix(in oklab, var(--text-main), #000 80%);
  background: color-mix(in oklab, var(--lighter-blue), #000 10%);
  color: var(--text-main);
  font-size: clamp(15px, 1.8vw, 16px);
}
.contact-form textarea {
  min-height: 120px;
  font-family: inherit;
}

/* Footer */
footer {
  background: var(--lighter-blue);
  color: var(--text-main);
  padding: 2.5rem 0 1.5rem;
  margin-top: 3rem;
  transition: background 0.3s ease, color 0.3s ease;
}

.footer-container {
  width: min(100%, var(--container-w));
  margin: 0 auto;
  padding-inline: var(--pad-page);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

/* Simplified footer (2 columns only) */
.footer-simple {
  grid-template-columns: 1fr auto;
  gap: 3rem;
}

.footer-col h3 {
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
}

.footer-col p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-col a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-logo {
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 2px;
  color: var(--gold);
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-subtle);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-subtle);
  margin-top: 0.5rem;
}

.footer-made-in {
  font-size: 0.85rem;
  color: var(--text-subtle);
  margin-top: 0.3rem;
  font-weight: 500;
}

.footer-social .social-icons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-social .social-icons a {
  color: var(--text-main);
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
}

.footer-social .social-icons a:hover {
  color: var(--gold);
  transform: translateY(-3px);
}

.footer-social .social-icons svg {
  width: 24px;
  height: 24px;
}

/* Mobile footer optimization */
@media (max-width: 700px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  
  .footer-simple {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
  }
  
  .footer-col h3 {
    font-size: 0.95rem;
  }
  
  .footer-col p {
    font-size: 0.85rem;
  }
  
  .footer-logo {
    font-size: 1.3rem;
  }
  
  .footer-tagline {
    font-size: 0.8rem;
  }
  
  .footer-copyright {
    font-size: 0.75rem;
    margin-top: 0.5rem;
  }
  
  .footer-made-in {
    font-size: 0.75rem;
  }
  
  .footer-social {
    grid-column: 1 / -1;
    text-align: center;
  }
  
  .footer-social .social-icons {
    justify-content: center;
  }
}

/* Subscribe Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.modal-content {
  background: var(--blog-bg);
  padding: 2rem;
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  font-weight: bold;
  color: var(--text-subtle);
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--gold);
}

.modal-content h2 {
  color: var(--gold);
  margin-top: 0;
  margin-bottom: 1.5rem;
  text-align: center;
}

.subscribe-form {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.subscribe-form input {
  flex: 1;
  min-width: 150px;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  border: 1px solid color-mix(in oklab, var(--text-main), #000 80%);
  background: color-mix(in oklab, var(--lighter-blue), #000 10%);
  color: var(--text-main);
  font-size: 1rem;
}

.subscribe-form input:focus {
  outline: 2px solid var(--gold);
}

.subscribe-form .button {
  flex-shrink: 0;
  white-space: nowrap;
}

.subscribe-tagline {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-subtle);
  font-style: italic;
  margin: 0.5rem 0 1rem 0;
}

.subscribe-message {
  text-align: center;
  margin-top: 1rem;
  font-weight: 600;
  min-height: 1.5rem;
}

/* Mobile modal optimization */
@media (max-width: 700px) {
  .modal {
    padding: 0.5rem;
  }
  
  .modal-content {
    padding: 1.5rem 1rem;
    width: 95%;
    max-width: 100%;
  }
  
  .subscribe-form {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .subscribe-form input {
    width: 100%;
    min-width: 100%;
  }
  
  .subscribe-form .button {
    width: 100%;
    padding: 0.9rem 1rem;
  }
  
  .modal-close {
    top: 0.75rem;
    right: 1rem;
    font-size: 1.75rem;
  }
  
  .modal-content h2 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    padding-right: 2rem;
  }
  
  .subscribe-tagline {
    font-size: 0.85rem;
  }
}

/* Mode toggle */
.mode-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  display: inline-flex;
  align-items: center;
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--gold);
  border-radius: 8px;
  transition: filter 0.2s, opacity 0.2s, background 0.2s;
}
.mode-toggle:hover { background: rgba(255,212,88,0.1); }
.mode-toggle:focus { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Pagination */
.pagination {
  margin: 2rem 0;
  text-align: center;
  user-select: none;
}
.page-link {
  display: inline-block;
  min-width: 36px;
  padding: 0.45rem 0.8rem;
  margin: 0 0.25rem;
  border-radius: 10px;
  background: color-mix(in oklab, var(--lighter-blue), black 8%);
  color: var(--text-main);
  border: 1px solid color-mix(in oklab, var(--text-main), #000 80%);
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}
.page-link:hover {
  background: color-mix(in oklab, var(--lighter-blue), black 3%);
}
.page-link.active {
  background: var(--gold);
  color: var(--deep-blue);
  border-color: transparent;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Tablet+ refinements */
@media (min-width: 700px) {
  .nav-link { font-size: 0.98rem; }
  .button { width: auto; }
}

/* Desktop refinements */
@media (min-width: 1024px) {
  .hero { padding: 2.2rem 2.6rem; }
}

/* MOBILE FIXES */
@media (max-width: 700px) {
  .nav-container {
    flex-direction: column;
    position: relative;
    padding-block: 1rem 0.6rem;
  }
  .logo {
    width: 100%;
    text-align: center;
    font-size: clamp(20px, 6vw, 24px);
  }
  nav {
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    margin-top: 0.4rem;
  }
  .nav-link {
    padding: 7px 10px;
    font-size: 0.9rem;
    white-space: nowrap;
  }
  .mode-toggle {
    position: absolute;
    right: 1rem;
    top: 0.6rem;
    margin: 0;
  }
}

@media (max-width: 700px) {
  .hero { text-align: center; }
  .hero .intro-text { text-align: center; }
  .hero h1, .hero h2 { margin-inline: auto; }
  .hero .hero-links { 
    display: flex;
    justify-content: center; 
    gap: 0.75rem;
    flex-wrap: wrap;
  }
  .hero .button { width: auto; margin-inline: auto; }
  .profile-img { margin-inline: auto; }
  .hero .intro-text p { text-align: left; }
  
  /* Ensure CTAs stay in one line */
  .cta-links {
    display: flex !important;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
  }
  
  .cta-links .button {
    padding: 0.8rem 1.1rem;
    font-size: 0.9rem;
  }
  
  /* Inline subscribe form mobile optimization */
  .inline-subscribe-form {
    flex-direction: column;
  }
  
  .inline-subscribe-form input {
    min-width: 100%;
  }
}

@media (max-width: 700px) {
  .about-main h2 { text-align: center; }
}

.share-btn {
  background: var(--gold);
  color: var(--deep-blue);
  border: none;
  border-radius: 30px;
  padding: 0.7rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(30,30,12,0.11);
  transition: background 0.17s, color 0.13s;
}

.share-btn:hover {
  background: var(--accent);
  color: var(--pure-white);
}

@media (max-width: 700px) {
  .blog-header {
    padding: 0.85rem 1rem;
    overflow: hidden;
  }

  .blog-title {
    white-space: nowrap;
    max-width: 100%;
    line-height: 1.15;
    font-size: clamp(16px, 4.4vw, 2.4rem);
    text-overflow: clip;
    overflow: visible;
  }

  .blog-meta {
    font-size: 0.60rem;
  }
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--deep-blue);
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-6px);
}

/* ===== LEGAL & INFO PAGES STYLES ===== */

.legal-main {
  width: min(100%, var(--container-w));
  margin: 2.2rem auto 1.2rem;
  padding: clamp(16px, 3vw, 28px);
  background: var(--blog-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: background 0.3s ease;
}

.legal-main h1 {
  color: var(--gold);
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 800;
  margin-bottom: 1rem;
  border-bottom: 3px solid var(--gold);
  padding-bottom: 0.75rem;
}

.legal-intro {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.legal-section {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

.legal-section h2 {
  color: var(--gold);
  font-size: clamp(20px, 2.8vw, 26px);
  font-weight: 700;
  margin-bottom: 1rem;
  margin-top: 0;
}

.legal-section h3 {
  color: var(--accent);
  font-size: clamp(17px, 2.2vw, 20px);
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-section p {
  margin-bottom: 1rem;
  line-height: 1.75;
}

.legal-section ul {
  margin: 1rem 0 1.5rem 1.5rem;
  line-height: 1.8;
}

.legal-section ul li {
  margin-bottom: 0.75rem;
}

.legal-section a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.legal-section a:hover {
  border-bottom-color: var(--gold);
}

.contact-info {
  background: color-mix(in oklab, var(--lighter-blue), black 6%);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin-top: 1rem;
  border-left: 4px solid var(--gold);
}

.contact-info p {
  margin-bottom: 0.75rem;
}

/* Info Grid (for About Us and Careers pages) */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.info-card {
  background: color-mix(in oklab, var(--lighter-blue), black 6%);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-top: 3px solid var(--gold);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.info-card h3 {
  color: var(--gold);
  font-size: 1.2rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.info-card p {
  margin-bottom: 0;
  line-height: 1.6;
}

/* Job Posting Specific Styles */
.job-posting {
  background: color-mix(in oklab, var(--lighter-blue), black 3%);
  padding: 2rem;
  border-radius: var(--radius-lg);
  margin-top: 1.5rem;
  border: 2px solid color-mix(in oklab, var(--gold), transparent 80%);
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--gold);
}

.job-header h2 {
  margin: 0;
  color: var(--gold);
}

.job-type {
  background: var(--gold);
  color: var(--deep-blue);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
}

.job-details {
  background: color-mix(in oklab, var(--blog-bg), var(--gold) 5%);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--accent);
}

.job-details p {
  margin: 0.5rem 0;
  font-weight: 600;
}

.job-apply {
  background: color-mix(in oklab, var(--gold), transparent 90%);
  padding: 2rem;
  border-radius: var(--radius-md);
  margin-top: 2rem;
  border: 2px solid var(--gold);
  text-align: center;
}

.job-apply h3 {
  color: var(--gold);
  margin-top: 0;
}

.apply-email {
  font-size: 1.3rem;
  margin: 1.5rem 0;
}

.apply-email a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  transition: color 0.2s ease;
}

.apply-email a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.apply-note {
  font-size: 0.95rem;
  color: var(--text-subtle);
  line-height: 1.6;
  margin-top: 1rem;
}

/* Mobile Optimization for Legal Pages */
@media (max-width: 700px) {
  .legal-main {
    padding: clamp(14px, 4vw, 20px);
  }

  .legal-main h1 {
    font-size: clamp(24px, 7vw, 32px);
  }

  .legal-section {
    margin-top: 2rem;
    margin-bottom: 2rem;
  }

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

  .job-posting {
    padding: 1.5rem 1rem;
  }

  .job-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .job-apply {
    padding: 1.5rem 1rem;
  }

  .apply-email {
    font-size: 1.1rem;
  }
}

/* ===== JOBS PAGE SPECIFIC STYLES ===== */

.jobs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.jobs-header h2 {
  margin: 0;
}

.filter-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.toggle-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: color-mix(in oklab, var(--text-main), transparent 70%);
  transition: 0.4s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--gold);
}

input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

/* Active jobs heading */
.active-jobs-heading {
  background: color-mix(in oklab, var(--gold), transparent 85%);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--gold);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.no-active-jobs {
  background: color-mix(in oklab, var(--accent), transparent 90%);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent);
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.no-active-jobs strong {
  color: var(--accent);
  font-size: 1.1rem;
}

/* Job item specific */
.job-item {
  border-left: 4px solid transparent;
  transition: border-left-color 0.2s ease;
}

.job-item:hover {
  border-left-color: var(--gold);
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.job-status {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.job-status.active {
  background: color-mix(in oklab, #4caf50, transparent 80%);
  color: #4caf50;
}

.job-status.inactive {
  background: color-mix(in oklab, var(--accent), transparent 80%);
  color: var(--accent);
}

/* Mobile adjustments for jobs page */
@media (max-width: 700px) {
  .jobs-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .filter-toggle {
    width: 100%;
    justify-content: space-between;
  }
  
  .job-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}
