/**
 * Default Page Template Styles
 * Theme: Salkantay Treks Peru
 * Version: 2.0.0
 */

.stp-default-page {
  background-color: #f8fafc;
  color: #334155;
  min-height: 100vh;
}

.stp-default-content-section {
  padding: 4.5rem 0 6rem;
}

.stp-default-container {
  max-width: 960px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  padding: 3.5rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

/* Typography inside Default Page Content */
.stp-entry-content {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: #334155;
}

.stp-entry-content > *:first-child {
  margin-top: 0;
}

.stp-entry-content > *:last-child {
  margin-bottom: 0;
}

.stp-entry-content h1,
.stp-entry-content h2,
.stp-entry-content h3,
.stp-entry-content h4,
.stp-entry-content h5,
.stp-entry-content h6 {
  color: #0f172a;
  font-weight: 800;
  line-height: 1.3;
  margin-top: 2.25rem;
  margin-bottom: 1rem;
}

.stp-entry-content h1 { font-size: 2.15rem; }
.stp-entry-content h2 { font-size: 1.75rem; border-bottom: 2px solid #f1f5f9; padding-bottom: 0.5rem; }
.stp-entry-content h3 { font-size: 1.4rem; }
.stp-entry-content h4 { font-size: 1.2rem; }
.stp-entry-content h5 { font-size: 1.05rem; }
.stp-entry-content h6 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.5px; }

.stp-entry-content p {
  margin-bottom: 1.5rem;
}

.stp-entry-content a {
  color: #2d6a4f;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.stp-entry-content a:hover,
.stp-entry-content a:focus {
  color: #1b4332;
}

.stp-entry-content ul,
.stp-entry-content ol {
  margin-bottom: 1.75rem;
  padding-left: 1.5rem;
}

.stp-entry-content li {
  margin-bottom: 0.5rem;
  line-height: 1.75;
}

.stp-entry-content blockquote,
.stp-entry-content .wp-block-quote {
  border-left: 4px solid #2d6a4f;
  background: #f0fdf4;
  padding: 1.25rem 1.75rem;
  border-radius: 0 14px 14px 0;
  margin: 2rem 0;
  font-style: italic;
  color: #1e3a2f;
}

.stp-entry-content blockquote p:last-child,
.stp-entry-content .wp-block-quote p:last-child {
  margin-bottom: 0;
}

.stp-entry-content hr,
.stp-entry-content .wp-block-separator {
  border: 0;
  height: 1px;
  background: #e2e8f0;
  margin: 3rem 0;
}

/* Images & Media */
.stp-entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.stp-entry-content figure {
  margin: 2rem 0;
}

.stp-entry-content figcaption {
  font-size: 0.875rem;
  color: #64748b;
  text-align: center;
  margin-top: 0.5rem;
}

/* WordPress Alignments */
.stp-entry-content .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.stp-entry-content .alignleft {
  float: left;
  margin-right: 1.75rem;
  margin-bottom: 1.25rem;
}

.stp-entry-content .alignright {
  float: right;
  margin-left: 1.75rem;
  margin-bottom: 1.25rem;
}

/* Tables */
.stp-entry-content table {
  width: 100%;
  margin-bottom: 2rem;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.stp-entry-content th,
.stp-entry-content td {
  padding: 0.85rem 1.25rem;
  border: 1px solid #e2e8f0;
  text-align: left;
}

.stp-entry-content th {
  background-color: #f8fafc;
  color: #0f172a;
  font-weight: 700;
}

.stp-entry-content tr:nth-child(even) td {
  background-color: #fbfcfe;
}

/* Code & Preformatted */
.stp-entry-content pre {
  background: #1e293b;
  color: #f8fafc;
  padding: 1.25rem;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

.stp-entry-content code {
  background: #f1f5f9;
  color: #0f172a;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}

.stp-entry-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

@media (max-width: 767.98px) {
  .stp-default-content-section {
    padding: 2.5rem 0 4rem;
  }

  .stp-default-container {
    padding: 1.75rem;
    border-radius: 14px;
  }

  .stp-entry-content h1 { font-size: 1.75rem; }
  .stp-entry-content h2 { font-size: 1.45rem; }
  .stp-entry-content h3 { font-size: 1.25rem; }
}
