/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--color-bg);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-top {
  background: var(--color-bg-light);
  border-bottom: 1px solid var(--color-border);
  padding: 0.5rem 0;
}

.header-top-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.trust-bar {
  display: flex;
  gap: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.trust-item svg {
  color: var(--color-success);
}

.phone-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.2s ease;
}

.phone-link:hover {
  background: #1E3A8A;
  transform: translateY(-1px);
}

.main-navigation {
  background: var(--color-bg);
  padding: 1rem 0;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  display: inline-block;
  text-decoration: none;
}

.logo-text {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-dumpster {
  font-weight: 900;
  color: var(--color-primary);
  margin-right: 0.125rem;
}

.logo-rentals {
  font-weight: 500;
  color: var(--color-primary);
}

.logo-dot {
  font-weight: 500;
  color: var(--color-primary);
  margin: 0 -0.05rem;
}

.logo-co {
  font-weight: 500;
  color: var(--color-cta);
}

/* Add a subtle separator */
.logo-text::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 20px;
  background: var(--color-cta);
  margin-left: 0.75rem;
  opacity: 0.3;
}

@media (max-width: 768px) {
  .logo-text {
    font-size: 1.125rem;
  }

  .logo-text::after {
    display: none;
  }
}

.nav-menu-wrapper {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
}

.nav-menu a {
  color: var(--color-text);
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

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

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all 0.3s ease;
}

.mobile-cta-sticky {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  z-index: 999;
}

/* Hero Section */
.hero-section {
  padding-top: 10rem;
  padding-bottom: 5rem;
  background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg) 100%);
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  right: -20%;
  width: 60%;
  height: 100%;
  background-image: radial-gradient(circle, rgba(30, 64, 175, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  transform: rotate(-15deg);
}

.hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-trust-bar {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.hero-form {
  background: var(--color-bg);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin-bottom: 3rem;
}

.form-urgency {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(234, 88, 12, 0.05);
  border-radius: var(--radius-md);
  border: 1px solid rgba(234, 88, 12, 0.1);
}

.urgency-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-cta);
}

.urgency-item svg {
  flex-shrink: 0;
}

.hero-form-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-form-grid .form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.form-submit-row {
  margin-top: 0.5rem;
}

.form-control-large {
  height: 3.5rem;
  font-size: 1.125rem;
}

.form-label-heading {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1rem;
  text-align: center;
}

.btn-full {
  width: 100%;
}

.form-disclaimer {
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-top: 1rem;
  margin-bottom: 0;
}

.hero-testimonial {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--color-bg);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.hero-testimonial blockquote {
  margin: 0;
}

.hero-testimonial p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 1rem;
  font-style: italic;
}

.hero-testimonial cite {
  display: block;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  font-style: normal;
  font-weight: 600;
}

/* How It Works Section */
.steps-grid {
  margin-top: 3rem;
}

.step-card {
  text-align: center;
  padding: 2rem;
  height: 100%;
}

.step-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--color-bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.step-title {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.step-description {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

ul.step-description {
  list-style: none;
  padding: 0;
  text-align: left;
}

ul.step-description li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
}

ul.step-description li::before {
  content: "•";
  position: absolute;
  left: 0.5rem;
  color: var(--color-primary);
}

/* Dumpster Sizes Section */
.sizes-grid {
  margin-top: 3rem;
}

.size-card {
  text-align: center;
  padding: 1.5rem;
  position: relative;
}

.size-card.featured {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.size-visual {
  height: 60px;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.size-box {
  background: var(--color-primary);
  border-radius: var(--radius-sm);
}

.size-10 {
  width: 40px;
  height: 30px;
}

.size-20 {
  width: 60px;
  height: 40px;
}

.size-30 {
  width: 70px;
  height: 50px;
}

.size-40 {
  width: 80px;
  height: 60px;
}

.size-specs {
  margin: 1rem 0;
}

.size-dimensions {
  font-size: 0.875rem;
  color: var(--color-text);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.size-capacity {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

.size-uses {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.btn-size-quote {
  width: 100%;
  margin-top: 1rem;
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  height: auto;
}

/* City Directory */
.cities-grid {
  margin-top: 3rem;
}

.city-card {
  display: block;
  padding: 1.5rem;
  text-align: center;
  position: relative;
  transition: all 0.2s ease;
}

.city-name {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
  color: var(--color-text);
}

.city-state {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

.city-arrow {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-primary);
  font-size: 1.25rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.city-card:hover .city-arrow {
  opacity: 1;
}

/* CTA Sections */
.cta-section {
  text-align: center;
  margin-top: 3rem;
}

.cta-text {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

.bottom-cta {
  background: var(--color-bg-light);
  padding: 5rem 0;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  margin-bottom: 3rem;
}

.cta-form {
  background: var(--color-bg);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.cta-form-grid {
  max-width: 600px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-submit {
  text-align: center;
  margin-top: 2rem;
}

/* Footer Styles */
.site-footer {
  background: var(--color-text);
  color: white;
  margin-top: 5rem;
}

.footer-main {
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-title {
  color: white;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.footer-trust-badges {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
}

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

.footer-menu li {
  margin-bottom: 0.5rem;
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.footer-menu a:hover {
  color: white;
}

.footer-disclaimer {
  background: rgba(0, 0, 0, 0.2);
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.disclaimer-content {
  max-width: 800px;
  margin: 0 auto;
}

.disclaimer-content p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem 0;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

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

.security-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

/* City Page Styles */
.hero-city {
  padding-top: 8rem;
  padding-bottom: 3rem;
  background: var(--color-bg-light);
}

.breadcrumb {
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.breadcrumb a {
  color: var(--color-primary);
}

.separator {
  margin: 0 0.5rem;
}

.hero-city-content {
  max-width: 800px;
}

.hero-city-title {
  margin-bottom: 1rem;
}

.hero-city-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
}

.quick-answer {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--color-bg);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
}

.quick-answer-icon {
  color: var(--color-primary);
}

.quick-answer-content {
  flex: 1;
  line-height: 1.6;
}

.city-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
}

.city-stats .stat {
  text-align: center;
  flex: 1;
  padding: 1rem;
  background: var(--color-bg);
  border-radius: var(--radius-md);
}

.city-lead-form {
  background: var(--color-bg);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.form-title {
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.form-submit-group {
  grid-column: span 2;
  margin-top: 1rem;
}

/* Pricing Table */
.pricing-section {
  background: var(--color-bg-light);
}

.pricing-table {
  overflow-x: auto;
  margin: 2rem 0;
}

.pricing-table table {
  width: 100%;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.pricing-table th {
  background: var(--color-primary);
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.pricing-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.pricing-table tr.featured {
  background: var(--color-bg-light);
}

.pricing-table .badge {
  margin-left: 0.5rem;
}

.pricing-factors {
  background: var(--color-bg);
  padding: 2rem;
  border-radius: var(--radius-lg);
  margin-top: 2rem;
}

.pricing-factors h3 {
  margin-bottom: 1rem;
}

.pricing-factors ul {
  list-style: none;
  padding: 0;
}

.pricing-factors li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.pricing-factors li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-primary);
}

/* FAQ Section */
.faq-section {
  padding: 5rem 0;
}

.faq-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.faq-item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-question {
  margin-bottom: 1rem;
  font-size: 1.125rem;
  color: var(--color-text);
}

.faq-answer {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Service Areas */
.service-areas {
  background: var(--color-bg-light);
  padding: 3rem 0;
}

.nearby-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.nearby-city {
  padding: 0.5rem 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.nearby-city:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* City Info Section */
.city-info {
  padding: 3rem 0;
}

/* City Page CPT Styles */
.single-city_page .hero-city {
  padding-top: 8rem;
  padding-bottom: 3rem;
  background: var(--color-bg-light);
}

.single-city_page .city-lead-form,
.city-form-wrapper form {
  background: var(--color-bg);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.single-city_page .form-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.single-city_page .form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.single-city_page .form-submit-row {
  margin-top: 1rem;
}

/* Ensure Page Generator Pro content uses our styles */
.city-page-content table {
  width: 100%;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin: 2rem 0;
}

.city-page-content th {
  background: var(--color-primary);
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.city-page-content td {
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
}

/* Override any inline styles */
.single-city_page .section {
  padding: 5rem 0 !important;
}

.single-city_page .container {
  max-width: var(--container-max) !important;
  margin: 0 auto !important;
  padding: 0 var(--container-padding) !important;
}

@media (max-width: 768px) {
  .single-city_page .form-row {
    grid-template-columns: 1fr;
  }

  .single-city_page .section {
    padding: 2.5rem 0 !important;
  }
}

.city-details {
  max-width: 800px;
}

.city-details p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.service-benefits {
  background: var(--color-bg-light);
  padding: 2rem;
  border-radius: var(--radius-lg);
  margin-top: 2rem;
}

.service-benefits h3 {
  margin-bottom: 1rem;
}

.service-benefits ul {
  list-style: none;
  padding: 0;
}

.service-benefits li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.service-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: bold;
}

/* CTA Box */
.cta-box {
  background: var(--color-primary);
  color: white;
  padding: 3rem;
  border-radius: var(--radius-lg);
  text-align: center;
}

.cta-box h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.cta-trust {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Exit Intent Popup */
.exit-intent-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
}

.popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
}

.popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-bg);
  padding: 3rem;
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--color-text-secondary);
  transition: color 0.2s ease;
}

.popup-close:hover {
  color: var(--color-text);
}

.popup-form {
  margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 60px;
  }

  .header-top {
    display: none;
  }

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

  .nav-menu-wrapper {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
  }

  .nav-menu-wrapper.active {
    display: block;
  }

  .nav-menu {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-cta {
    margin-top: 2rem;
  }

  .mobile-cta-sticky {
    display: none !important;
  }

  .hero-section {
    padding-top: 8rem;
  }

  .form-urgency {
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.8125rem;
  }

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

  .hero-testimonial {
    margin-top: 2rem;
  }

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

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

  .form-submit-group {
    grid-column: span 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: 1rem;
  }

  .pricing-table {
    font-size: 0.875rem;
  }

  .pricing-table th,
  .pricing-table td {
    padding: 0.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-trust-bar {
    flex-direction: row;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
  }

  .trust-item {
    font-size: 0.75rem;
  }

  .trust-item svg {
    width: 16px;
    height: 16px;
  }

  .hero-city {
    padding-top: 0.5rem;
    padding-bottom: 1.5rem;
  }

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

  .popup-content {
    padding: 2rem;
  }
}

/* Loading States */
.form-loading {
  opacity: 0.6;
  pointer-events: none;
}

.btn-loading {
  position: relative;
  color: transparent;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid white;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Success Messages */
.form-success {
  background: var(--color-success);
  color: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
}

.form-success h3 {
  color: white;
  margin-bottom: 1rem;
}

.next-steps {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin-top: 1.5rem;
  text-align: left;
}

.next-steps ul {
  list-style: none;
  padding: 0;
}

.next-steps li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.next-steps li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* Print Styles */
@media print {
  .site-header,
  .site-footer,
  .mobile-cta-sticky,
  .exit-intent-popup {
    display: none;
  }

  body {
    padding-top: 0;
  }

  .hero-section {
    padding-top: 2rem;
  }
}

/* ============================================================================
   Guide Template Styles
   ============================================================================ */

/* Guide Layout */
.guide-wrapper {
  background: #f9fafb;
  padding: 2rem 0 4rem;
}

.guide-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 3rem;
  align-items: start;
}

.guide-content {
  background: white;
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 2rem;
}

.breadcrumbs a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--color-primary);
}

.breadcrumbs .separator {
  margin: 0 0.5rem;
  color: #d1d5db;
}

/* Guide Header */
.guide-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #f3f4f6;
}

.guide-header h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  color: #111827;
  margin-bottom: 1rem;
}

.guide-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.guide-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.update-date::before {
  content: "📅";
}

.reading-time::before {
  content: "⏱️";
}

/* Table of Contents */
.toc-container {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}

#toc-dynamic {
  position: relative;
}

#toc-dynamic::before {
  content: "Table of Contents";
  display: block;
  font-weight: 700;
  font-size: 1.125rem;
  color: #111827;
  margin-bottom: 1rem;
}

#toc-dynamic a {
  display: block;
  color: #4b5563;
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color 0.2s;
  line-height: 1.5;
}

#toc-dynamic a:hover {
  color: var(--color-primary);
}

/* Guide Body Content */
.guide-body {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #374151;
}

.guide-body h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e5e7eb;
}

.guide-body h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.guide-body h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.guide-body p {
  margin-bottom: 1.5rem;
}

.guide-body ul,
.guide-body ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.guide-body li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.guide-body ul li {
  list-style-type: disc;
}

.guide-body ol li {
  list-style-type: decimal;
}

.guide-body strong {
  font-weight: 600;
  color: #111827;
}

.guide-body em {
  font-style: italic;
}

.guide-body a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.guide-body a:hover {
  color: var(--color-secondary);
}

.guide-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 1rem;
}

.guide-body table th,
.guide-body table td {
  padding: 0.875rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.guide-body table th {
  background: #f9fafb;
  font-weight: 600;
  color: #111827;
  border-bottom: 2px solid #d1d5db;
}

.guide-body table tr:last-child td {
  border-bottom: none;
}

.guide-body table tr:hover {
  background: #f9fafb;
}

/* Guide CTA Section */
.guide-cta {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 2px solid #e5e7eb;
}

/* Related Guides */
.related-guides {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 2px solid #e5e7eb;
}

.related-guides h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.5rem;
}

.related-guides-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.related-guide-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  text-decoration: none;
  transition: all 0.2s;
}

.related-guide-card:hover {
  background: white;
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.1);
  transform: translateY(-2px);
}

.related-guide-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.related-guide-card .read-more {
  display: inline-block;
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Guide Sidebar */
.guide-sidebar {
  position: relative;
}

.guide-sidebar .sticky {
  position: sticky;
  top: 100px;
}

/* Responsive */
@media (max-width: 1024px) {
  .guide-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .guide-sidebar {
    order: 2;
  }

  .guide-sidebar .sticky {
    position: static;
  }

  .related-guides-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .guide-content {
    padding: 2rem 1.5rem;
  }

  .guide-header h1 {
    font-size: 1.875rem;
  }

  .guide-body {
    font-size: 1rem;
  }

  .guide-body h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
  }

  .guide-body h3 {
    font-size: 1.25rem;
  }

  .guide-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .toc-container {
    padding: 1rem;
  }
}