/*
Theme Name: OceanWP Child Theme
Theme URI: https://oceanwp.org/
Description: OceanWP WordPress theme. Sample child theme.
Author: OceanWP
Author URI: https://oceanwp.org/
Template: oceanwp
Version: 1.1.0
*/

/* Parent stylesheet is loaded from functions.php. */

/* Blog card rules previously appended to the OceanWP parent style.css.
   The live editorial colors live in Additional CSS and are copied with the Customizer settings. */
.blog-page {
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 32px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.blog-item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.blog-item:hover {
  transform: translateY(-5px);
}

.blog-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-title {
  font-size: 20px;
  margin: 15px;
}

.blog-title a {
  text-decoration: none;
  color: #333;
}

.blog-excerpt {
  font-size: 15px;
  color: #555;
  margin: 0 15px 15px;
  flex-grow: 1;
}

.blog-btn {
  display: inline-block;
  margin: 0 15px 15px;
  padding: 10px 15px;
  background: #0073e6;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  text-align: center;
  transition: background 0.3s ease;
}

.blog-btn:hover {
  background: #005bb5;
}

@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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