/*
  Theme Name: Express Support
  Theme URI: https://www.expresssupport.com/
  Author: Express Support
  Author URI: https://www.expresssupport.com/
  Description: A custom WordPress theme built for Express Support
  Version: 1.0
*/

/* Page Template Styles */
.page-main {
  margin-top: 140px; /* Account for fixed header */
  min-height: calc(100vh - 140px);
  background: #ffffff;
  padding: 40px 0;
}

.page-main .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-article {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.page-header {
  background: linear-gradient(135deg, #1f7a2d 0%, #0c6efd 100%);
  color: #ffffff;
  padding: 40px;
  text-align: center;
}

.page-title {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-thumbnail {
  padding: 0;
  margin: 0;
}

.page-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.page-content {
  padding: 40px;
  color: #333333;
  line-height: 1.8;
  font-size: 1.1rem;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
  color: #1f7a2d;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.page-content h1 { font-size: 2.2rem; }
.page-content h2 { font-size: 1.9rem; }
.page-content h3 { font-size: 1.6rem; }
.page-content h4 { font-size: 1.4rem; }
.page-content h5 { font-size: 1.2rem; }
.page-content h6 { font-size: 1.1rem; }

.page-content p {
  margin-bottom: 1.5rem;
  color: #444444;
}

.page-content a {
  color: #0c6efd;
  text-decoration: none;
  font-weight: 500;
}

.page-content a:hover {
  color: #1f7a2d;
  text-decoration: underline;
}

.page-content ul,
.page-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.page-content li {
  margin-bottom: 0.5rem;
  color: #444444;
}

.page-content blockquote {
  border-left: 4px solid #1f7a2d;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #666666;
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
}

.page-content code {
  background: #f1f3f4;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  color: #d73a49;
}

.page-content pre {
  background: #f6f8fa;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.page-content pre code {
  background: none;
  padding: 0;
  color: #24292e;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-main {
    margin-top: 120px;
    padding: 20px 0;
  }
  
  .page-header {
    padding: 30px 20px;
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .page-content {
    padding: 30px 20px;
    font-size: 1rem;
  }
  
  .page-content h1 { font-size: 1.8rem; }
  .page-content h2 { font-size: 1.6rem; }
  .page-content h3 { font-size: 1.4rem; }
}

/* Single Post Template Styles */
.single-post-main {
  margin-top: 140px; /* Account for fixed header */
  min-height: calc(100vh - 140px);
  background: #ffffff;
  padding: 40px 0;
}

.single-post-main .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.single-post-article {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.entry-header {
  background: linear-gradient(135deg, #1f7a2d 0%, #0c6efd 100%);
  color: #ffffff;
  padding: 40px;
  text-align: center;
}

.entry-title {
  margin: 0 0 20px 0;
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.entry-meta {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
}

.entry-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.entry-meta i {
  font-size: 1.1rem;
  opacity: 0.8;
}

.post-thumbnail {
  padding: 0;
  margin: 0;
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 400px;
  object-fit: cover;
}

.entry-content {
  padding: 40px;
  color: #333333;
  line-height: 1.8;
  font-size: 1.1rem;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  color: #1f7a2d;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.entry-content h1 { font-size: 2.2rem; }
.entry-content h2 { font-size: 1.9rem; }
.entry-content h3 { font-size: 1.6rem; }
.entry-content h4 { font-size: 1.4rem; }
.entry-content h5 { font-size: 1.2rem; }
.entry-content h6 { font-size: 1.1rem; }

.entry-content p {
  margin-bottom: 1.5rem;
  color: #444444;
}

.entry-content a {
  color: #0c6efd;
  text-decoration: none;
  font-weight: 500;
}

.entry-content a:hover {
  color: #1f7a2d;
  text-decoration: underline;
}

.entry-content ul,
.entry-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.entry-content li {
  margin-bottom: 0.5rem;
  color: #444444;
}

.entry-content blockquote {
  border-left: 4px solid #1f7a2d;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #666666;
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
}

.entry-content code {
  background: #f1f3f4;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  color: #d73a49;
}

.entry-content pre {
  background: #f6f8fa;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.entry-content pre code {
  background: none;
  padding: 0;
  color: #24292e;
}

.entry-footer {
  padding: 30px 40px;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
}

.tags-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tags-links i {
  color: #1f7a2d;
  font-size: 1.1rem;
}

.tags-links a {
  background: #e9ecef;
  color: #495057;
  padding: 6px 12px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tags-links a:hover {
  background: #1f7a2d;
  color: #ffffff;
}

/* Categories in meta */
.cat-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
}

.cat-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Blog Main (Index) Styles */
.blog-main {
  margin-top: 140px; /* Account for fixed header */
  min-height: calc(100vh - 140px);
  background: #f8f9fa;
  padding: 40px 0;
}

.blog-main .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.blog-main .page-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 40px;
  background: linear-gradient(135deg, #1f7a2d 0%, #0c6efd 100%);
  color: #ffffff;
  border-radius: 8px;
}

.blog-main .page-title {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.blog-post-item {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog-post-item .post-thumbnail img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.blog-post-item .post-content {
  padding: 30px;
}

.blog-post-item .entry-title {
  margin: 0 0 15px 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.blog-post-item .entry-title a {
  color: #1f7a2d;
  text-decoration: none;
}

.blog-post-item .entry-title a:hover {
  color: #0c6efd;
}

.blog-post-item .entry-meta {
  margin-bottom: 15px;
  color: #666666;
  font-size: 0.9rem;
}

.blog-post-item .entry-meta span {
  margin-right: 20px;
}

.blog-post-item .entry-excerpt {
  color: #444444;
  line-height: 1.6;
  margin-bottom: 20px;
}

.read-more-btn {
  display: inline-block;
  background: #1f7a2d;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
}

.read-more-btn:hover {
  background: #0c6efd;
  color: #ffffff;
}

/* Responsive Design for Single Posts and Blog */
@media (max-width: 768px) {
  .single-post-main,
  .blog-main {
    margin-top: 120px;
    padding: 20px 0;
  }
  
  .entry-header,
  .blog-main .page-header {
    padding: 30px 20px;
  }
  
  .entry-title,
  .blog-main .page-title {
    font-size: 2rem;
  }
  
  .entry-content,
  .blog-post-item .post-content {
    padding: 30px 20px;
    font-size: 1rem;
  }
  
  .entry-meta {
    gap: 15px;
    font-size: 0.9rem;
  }
  
  .entry-footer {
    padding: 20px;
  }
  
  .entry-content h1 { font-size: 1.8rem; }
  .entry-content h2 { font-size: 1.6rem; }
  .entry-content h3 { font-size: 1.4rem; }
}

/* Services Page Template Styles */
.services-main {
  margin-top: 140px; /* Account for fixed header */
  min-height: calc(100vh - 140px);
}

.services-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: white;
  padding: 100px 20px 80px;
  text-align: center;
}

.services-hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.services-hero p {
  font-size: 1.3rem;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.95;
  line-height: 1.6;
}

.services-section,
.technologies-section,
.process-section {
  padding: 80px 20px;
}

.technologies-section {
  background: #f9fafb;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #1e3a8a;
  font-weight: 700;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto 60px;
  line-height: 1.6;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 40px 30px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  border-color: #3b82f6;
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  text-align: center;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #1e3a8a;
  font-weight: 600;
}

.service-card p {
  color: #666;
  margin-bottom: 15px;
  line-height: 1.6;
}

.tech-list {
  list-style: none;
  margin-top: 15px;
  padding: 0;
}

.tech-list li {
  padding: 5px 0;
  color: #3b82f6;
  font-size: 0.95rem;
  position: relative;
  padding-left: 20px;
}

.tech-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  margin-right: 8px;
  font-weight: bold;
  color: #10b981;
}

.tech-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.tech-category {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.tech-category h4 {
  color: #1e3a8a;
  font-size: 1.3rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #3b82f6;
  font-weight: 600;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.tech-tag {
  background: #eff6ff;
  color: #1e40af;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid #bfdbfe;
  font-weight: 500;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.step {
  text-align: center;
  padding: 30px 20px;
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #3b82f6, #1e3a8a);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 20px;
}

.step h4 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #1e3a8a;
  font-weight: 600;
}

.step p {
  color: #666;
  line-height: 1.6;
}

.services-cta {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: white;
  text-align: center;
  padding: 80px 20px;
}

.services-cta h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.services-cta p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.95;
}

.services-btn {
  display: inline-block;
  background: white;
  color: #1e3a8a;
  padding: 15px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.services-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  color: #1e3a8a;
  text-decoration: none;
}

/* Services Page Responsive Design */
@media (max-width: 768px) {
  .services-main {
    margin-top: 120px;
  }
  
  .services-hero {
    padding: 60px 20px 50px;
  }
  
  .services-hero h1 {
    font-size: 2rem;
  }

  .services-hero p {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .services-section,
  .technologies-section,
  .process-section {
    padding: 60px 20px;
  }

  .services-grid,
  .tech-categories,
  .process-steps {
    grid-template-columns: 1fr;
  }
  
  .service-card {
    padding: 30px 20px;
  }
  
  .services-cta {
    padding: 60px 20px;
  }
  
  .services-cta h2 {
    font-size: 2rem;
  }
}

/* Blog Template Styles */
.blog-template-main {
  margin-top: 140px; /* Account for fixed header */
  min-height: calc(100vh - 140px);
}

.blog-hero {
  background: linear-gradient(135deg, #1f7a2d 0%, #0c6efd 100%);
  color: white;
  padding: 80px 20px 60px;
  text-align: center;
}

.blog-hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.blog-hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.95;
  line-height: 1.6;
}

.blog-content-section {
  padding: 60px 20px;
  background: #f8f9fa;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.blog-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-no-image {
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.no-image-placeholder {
  font-size: 3rem;
  color: #9ca3af;
}

.blog-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(31, 122, 45, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-card:hover .blog-card-overlay {
  opacity: 1;
}

.read-article-btn {
  background: #ffffff;
  color: #1f7a2d;
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.read-article-btn:hover {
  background: #0c6efd;
  color: #ffffff;
  transform: translateY(-2px);
}

.blog-card-content {
  padding: 25px;
}

.blog-card-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  font-size: 0.85rem;
  color: #666666;
}

.blog-card-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-card-meta i {
  font-size: 0.9rem;
  opacity: 0.8;
}

.blog-card-title {
  margin: 0 0 15px 0;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.3;
}

.blog-card-title a {
  color: #1f7a2d;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-card-title a:hover {
  color: #0c6efd;
}

.blog-card-excerpt {
  color: #555555;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.blog-card-categories {
  margin-bottom: 20px;
}

.blog-category {
  background: #e8f5e8;
  color: #1f7a2d;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-right: 8px;
  display: inline-block;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #e9ecef;
}

.blog-read-more {
  color: #0c6efd;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.blog-read-more:hover {
  color: #1f7a2d;
}

.blog-read-more i {
  font-size: 0.8rem;
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.blog-read-more:hover i {
  transform: translateX(3px);
}

.blog-reading-time {
  color: #888888;
  font-size: 0.85rem;
  font-weight: 500;
}

.no-posts-found {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.no-posts-icon {
  font-size: 4rem;
  color: #d1d5db;
  margin-bottom: 20px;
}

.no-posts-found h3 {
  color: #1f7a2d;
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.no-posts-found p {
  color: #666666;
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

.blog-pagination {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.blog-pagination ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 10px;
}

.blog-pagination li {
  margin: 0;
}

.blog-pagination a,
.blog-pagination span {
  display: block;
  padding: 12px 18px;
  background: #ffffff;
  color: #1f7a2d;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid #e9ecef;
}

.blog-pagination a:hover,
.blog-pagination .current {
  background: #1f7a2d;
  color: #ffffff;
  border-color: #1f7a2d;
}

.blog-newsletter {
  background: linear-gradient(135deg, #1f7a2d 0%, #0c6efd 100%);
  color: white;
  padding: 60px 20px;
}

.newsletter-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-content h3 {
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.newsletter-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.95;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  gap: 15px;
  max-width: 400px;
  margin: 0 auto 15px;
}

.newsletter-input {
  flex: 1;
  padding: 15px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
}

.newsletter-btn {
  background: #ffffff;
  color: #1f7a2d;
  padding: 15px 25px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-btn:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
}

.newsletter-privacy {
  font-size: 0.9rem;
  opacity: 0.8;
  margin: 0;
}

/* Blog Template Responsive Design */
@media (max-width: 768px) {
  .blog-template-main {
    margin-top: 120px;
  }
  
  .blog-hero {
    padding: 60px 20px 40px;
  }
  
  .blog-hero h1 {
    font-size: 2.2rem;
  }

  .blog-hero p {
    font-size: 1.1rem;
  }

  .blog-content-section {
    padding: 40px 20px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .blog-card-content {
    padding: 20px;
  }
  
  .blog-card-footer {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  
  .newsletter-form {
    flex-direction: column;
    gap: 15px;
  }
  
  .newsletter-content h3 {
    font-size: 1.6rem;
  }
  
  .blog-newsletter {
    padding: 40px 20px;
  }
}