/* ==========================================================================
   Content & Legal Pages Stylesheet
   (About Us, Blog, Contact, Terms, Privacy, Sitemap)
   ========================================================================== */

/* Page Header & Hero */
.content-page-hero {
  padding: 4rem 0 2.5rem;
  text-align: center;
  position: relative;
}

.content-page-hero .page-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: var(--primary, #f59e0b);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.content-page-hero h1 {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: var(--text-main, #ffffff);
}

.content-page-hero .page-lead {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.12rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.7;
}

/* Main Content Wrapper */
.content-body-wrap {
  max-width: 960px;
  margin: 0 auto 5rem;
}

/* Glass Article Container */
.content-article-card {
  background: var(--card-bg, rgba(15, 23, 42, 0.65));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-lg, 16px);
  padding: 3rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
  .content-article-card {
    padding: 1.75rem;
  }
}

/* Typography Inside Content */
.content-article-card h2 {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-main, #ffffff);
  margin: 2.25rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.content-article-card h2:first-child {
  margin-top: 0;
}

.content-article-card h3 {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-light, #fbbf24);
  margin: 1.75rem 0 0.75rem;
}

.content-article-card p {
  color: var(--text-muted, #94a3b8);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.content-article-card ul, 
.content-article-card ol {
  color: var(--text-muted, #94a3b8);
  font-size: 1.02rem;
  line-height: 1.75;
  margin: 0 0 1.5rem 1.5rem;
}

.content-article-card li {
  margin-bottom: 0.6rem;
}

.content-article-card strong {
  color: var(--text-main, #ffffff);
}

.content-callout {
  background: rgba(245, 158, 11, 0.08);
  border-left: 4px solid var(--primary, #f59e0b);
  border-radius: 0 12px 12px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  color: var(--text-main, #ffffff);
}

.content-callout p:last-child {
  margin-bottom: 0;
}

/* About Page Specifics */
.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.about-stat-box {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.about-stat-box:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.15);
}

.about-stat-num {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.about-stat-label {
  font-size: 0.9rem;
  color: var(--text-dim, #64748b);
  font-weight: 500;
}

/* Blog Specific Styles */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.blog-card {
  background: var(--card-bg, rgba(15, 23, 42, 0.65));
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border, rgba(255, 255, 255, 0.08));
  border-radius: 14px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.blog-tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1rem;
  width: fit-content;
}

.blog-tag-calc {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
}

.blog-tag-eng {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.blog-tag-geom {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.blog-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main, #ffffff);
  line-height: 1.4;
  margin-bottom: 0.85rem;
}

.blog-excerpt {
  color: var(--text-muted, #94a3b8);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-dim, #64748b);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1rem;
}

/* Contact Page Specifics */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  margin-bottom: 4rem;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-form-card {
  background: var(--card-bg, rgba(15, 23, 42, 0.65));
  backdrop-filter: blur(16px);
  border: 1px solid var(--card-border, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-lg, 16px);
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main, #ffffff);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main, #ffffff);
  font-size: 0.98rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary, #f59e0b);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

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

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-card {
  background: var(--card-bg, rgba(15, 23, 42, 0.65));
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary, #f59e0b);
  flex-shrink: 0;
}

.contact-info-text h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main, #ffffff);
  margin-bottom: 0.35rem;
}

.contact-info-text p {
  font-size: 0.92rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.5;
  margin: 0;
}

.contact-toast {
  display: none;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* Sitemap Specific Styles */
.sitemap-section-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main, #ffffff);
  margin: 2.5rem 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sitemap-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.sitemap-card {
  background: var(--card-bg, rgba(15, 23, 42, 0.65));
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.sitemap-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(30, 41, 59, 0.8);
}

.sitemap-card-title {
  font-weight: 600;
  color: var(--text-main, #ffffff);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.sitemap-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.4;
}
