/*
Theme Name: Deliver-Ability Child
Template: twentytwentyfive 
Description: Child theme for Deliver-Ability
Author: Your Name
Version: 1.0
*/

/* Import parent theme styles */
@import url("../twentytwentyfive/style.css");

/* Blog Specific Styles */
.blog-hero {
  padding: 80px 0;
  background: linear-gradient(135deg, #6772e5 0%, #9b82f3 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 0;
}

.blog-hero .container {
  position: relative;
  z-index: 1;
}

.blog-hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.blog-hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.9;
}

.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 40px;
}

.blog-main {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  padding: 40px;
}

.blog-sidebar {
  align-self: start;
}

.sidebar-widget {
  background: white;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.sidebar-widget h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #32325d;
  position: relative;
  padding-bottom: 10px;
}

.sidebar-widget h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #6772e5 0%, #9b82f3 100%);
  border-radius: 3px;
}

.category-list, .recent-posts {
  list-style: none;
}

.category-list li, .recent-posts li {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.category-list li:last-child, .recent-posts li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.category-list a, .recent-posts a {
  color: #8898aa;
  text-decoration: none;
  transition: color 0.3s;
  display: flex;
  justify-content: space-between;
}

.category-list a:hover, .recent-posts a:hover {
  color: #6772e5;
}

.category-list .count {
  background: rgba(103, 114, 229, 0.1);
  color: #6772e5;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.8rem;
}

.search-form {
  display: flex;
  overflow: hidden;
  border-radius: 30px;
  background: #f6f9fc;
}

.search-form input {
  flex: 1;
  padding: 15px 20px;
  border: none;
  background: transparent;
  outline: none;
  font-size: 1rem;
}

.search-form button {
  padding: 0 20px;
  background: #6772e5;
  color: white;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.search-form button:hover {
  background: #5469d4;
}

.post-header {
  margin-bottom: 30px;
}

.post-title {
  font-size: 2.5rem;
  color: #32325d;
  margin-bottom: 15px;
  line-height: 1.2;
}

.post-meta {
  display: flex;
  gap: 20px;
  color: #8898aa;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.post-featured-image {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 30px;
  overflow: hidden;
}

.post-featured-image img {
  width: 100%;
  height: auto;
  transition: transform 0.5s;
}

.post-featured-image:hover img {
  transform: scale(1.03);
}

.post-content {
  color: #8898aa;
  line-height: 1.8;
}

.post-content h2 {
  color: #32325d;
  font-size: 1.8rem;
  margin: 30px 0 15px;
}

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

.post-content ul, .post-content ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.post-content li {
  margin-bottom: 10px;
}

.post-cta {
  background: linear-gradient(135deg, rgba(103, 114, 229, 0.1), rgba(155, 130, 243, 0.1));
  border-radius: 8px;
  padding: 30px;
  margin: 40px 0;
  border-left: 4px solid #6772e5;
}

.post-cta h3 {
  color: #32325d;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.post-cta p {
  margin-bottom: 20px;
}

.post-share {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.post-share-title {
  font-weight: 600;
  color: #32325d;
}

.share-buttons {
  display: flex;
  gap: 10px;
}

.share-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6f9fc;
  color: #8898aa;
  text-decoration: none;
  transition: all 0.3s;
}

.share-button:hover {
  background: #6772e5;
  color: white;
  transform: translateY(-3px);
}

.email-signup {
  background: linear-gradient(135deg, #6772e5 0%, #9b82f3 100%);
  color: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
}

.email-signup h3 {
  color: white;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.email-signup p {
  opacity: 0.9;
  margin-bottom: 20px;
}

.signup-form {
  display: flex;
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.2);
  margin-top: 20px;
}

.signup-form input {
  flex: 1;
  padding: 15px 20px;
  border: none;
  background: transparent;
  outline: none;
  color: white;
  font-size: 1rem;
}

.signup-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.signup-form button {
  padding: 0 20px;
  background: white;
  color: #6772e5;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.signup-form button:hover {
  background: rgba(255, 255, 255, 0.9);
}

.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.page-number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: white;
  color: #8898aa;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.page-number.active, .page-number:hover {
  background: #6772e5;
  color: white;
}

/* Blog card styles for archive page */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.topic-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.topic-filter {
  background: white;
  border: none;
  border-radius: 30px;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: #8898aa;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.topic-filter.active, .topic-filter:hover {
  background: #6772e5;
  color: white;
}

.blog-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-10px);
}

.blog-card-image {
  height: 200px;
  overflow: hidden;
}

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

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

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

.blog-card-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #32325d;
}

.blog-card-title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

.blog-card-title a:hover {
  color: #6772e5;
}

.blog-card-meta {
  display: flex;
  gap: 15px;
  color: #8898aa;
  font-size: 0.8rem;
  margin-bottom: 15px;
}

.blog-card-excerpt {
  color: #8898aa;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.blog-card-readmore {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #6772e5;
  font-weight: 500;
  text-decoration: none;
  transition: gap 0.3s;
  margin-top: auto;
}

.blog-card-readmore:hover {
  gap: 8px;
}

.blog-card-readmore::after {
  content: '→';
}

/* Featured post */
.featured-post {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  position: relative;
}

.featured-post::before {
  content: 'Featured Post';
  position: absolute;
  top: 20px;
  right: 20px;
  background: #6772e5;
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  z-index: 1;
}

.featured-post-image {
  height: 100%;
  overflow: hidden;
}

.featured-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.featured-post:hover .featured-post-image img {
  transform: scale(1.05);
}

.featured-post-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.featured-post-title {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #32325d;
}

.featured-post-title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

.featured-post-title a:hover {
  color: #6772e5;
}

.featured-post-meta {
  display: flex;
  gap: 15px;
  color: #8898aa;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.featured-post-excerpt {
  color: #8898aa;
  margin-bottom: 30px;
  flex-grow: 1;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(90deg, #6772e5, #5469d4);
  color: white;
  border-radius: 30px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #6772e5, #9b82f3, #6772e5);
  background-size: 200% 100%;
  z-index: -1;
  transition: all 0.5s ease;
  opacity: 0;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 14px rgba(50, 50, 93, 0.3), 0 3px 6px rgba(0, 0, 0, 0.15);
}

.btn:hover::before {
  opacity: 1;
  background-position: 100% 0;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .blog-container {
      grid-template-columns: 1fr;
  }
  
  .featured-post {
      grid-template-columns: 1fr;
  }
  
  .featured-post-image {
      height: 300px;
  }
  
  .blog-sidebar {
      order: -1;
  }
}

@media (max-width: 768px) {
  .blog-hero h1 {
      font-size: 2.5rem;
  }
  
  .featured-post-title {
      font-size: 1.8rem;
  }
  
  .blog-grid {
      grid-template-columns: 1fr;
  }
  
  .blog-main {
      padding: 30px 20px;
  }
}