/*
Theme Name: E2E Consultant
Author: Nitish Kumar
Author URI: https://nitishinfo.com
Description: Custom theme for the E2E Consultant site.
Version: 1.0
*/

:root {
  --color-bg: #000000;
  --color-text: #f5f5f5;
  --color-muted: #FECD04;
  --color-accent: #FECD04;
  --color-card: #141414;
  --container-width: 1200px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}
.section-p{
    padding: 50px 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site-container {
  width: min(100% - 48px, var(--container-width));
  margin: 0 auto;
}


.button {
 display: flex;
    gap: 10px;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: max-content;
    height: 48px;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--color-accent);
  color: #000000;
}

.button-outline {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--color-text);
}

.page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 24px;
}

.page-body {
  max-width: 800px;
  color: var(--color-muted);
}


/* Pagination */
.pagination {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.page-numbers {
  padding: 10px 16px;
  background: var(--color-card);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}


/* Service Archive */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-card);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  border: 1px solid #333;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-color: var(--color-accent);
}

.service-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.service-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #2a2a2a;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card-image img {
  transform: scale(1.05);
}

.service-card-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-card-title {
  font-size: 1.25rem;
  margin: 0 0 12px;
  color: #fff;
}

.service-card-excerpt {
  flex-grow: 1;
  font-size: 0.95rem;
  color: #aaa;
  line-height: 1.5;
  margin-bottom: 20px;
}

.service-card-arrow {
  align-self: flex-start;
  font-size: 1.5rem;
  color: var(--color-accent);
  transition: transform 0.3s ease;
}

.service-card:hover .service-card-arrow {
  transform: translateX(5px);
}

/* Single Service */
.single-service-article {
  max-width: 900px;
  margin: 0 auto;
}

.service-featured-image {
  margin-bottom: 40px;
  border-radius: 20px;
  overflow: hidden;
}

.service-featured-image img {
  width: 100%;
  height: auto;
}

.service-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 30px;
  line-height: normal;
}

.service-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #ddd;
}

.service-content h2, .service-content h3 {
  color: #fff;
  margin-top: 40px;
}

.service-content p {
  margin-bottom: 20px;
}

.service-footer {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #333;
}

.service-navigation {
  display: flex;
  justify-content: space-between;
}

.service-navigation a {
  color: var(--color-accent);
  font-weight: 600;
  transition: color 0.2s;
}

.service-navigation a:hover {
  color: white;
}

/* =========================================
   404 Page (no banner – header only)
   ========================================= */
.page-header-only {
  height: auto;
  min-height: 0;
}

.error-404-content {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.error-404-code {
  font-size: clamp(4rem, 15vw, 8rem);
  font-weight: 800;
  line-height: 1;
  color: var(--color-accent);
  margin: 0 0 16px;
  opacity: 0.9;
}

.error-404-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
}

.error-404-text {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin: 0 0 28px;
}

.error-404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.error-404-actions .button {
  min-height: 48px;
}
