/*
Theme Name: Astra Child
Theme URI: https://dev-morgan-machinery.pantheonsite.io/
Template: astra
Author: Cyrus Clone
Author URI: https://dev-morgan-machinery.pantheonsite.io/
Description: A child theme
Version: 1.1.1743949656
Updated: 2025-04-06 14:27:36

*/

/* Pop and relax effect for all images, EXCEPT on .home and .single pages */
body:not(.home):not(.single) img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body:not(.home):not(.single) img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}


/* addition Centered popup card styling */
/* Overlay background */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.5s ease;
}

/* Centered popup box */
.popup-box {
  background-color: #ffeb3b;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.25);
  text-align: center;
  position: relative;
  max-width: 90%;
  font-size: 1.2rem;
  color: #333;
}

/* Close button */
.popup-box .close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 22px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Latest Posts Section */
.latest-posts {
  margin: 40px 0;
}

.latest-posts-title {
  font-size: 24px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: bold;
  color: #333;
  padding: 20px;
}

.latest-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
	padding: 10px;
}

.latest-post-item {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.latest-post-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.latest-post-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.latest-post-title {
  font-size: 18px;
  margin: 12px;
}

.latest-post-title a {
  text-decoration: none;
  color: #222;
}

.latest-post-title a:hover {
  color: #0073e6;
}

.latest-post-excerpt {
  font-size: 14px;
  color: #555;
  margin: 0 12px 16px;
  line-height: 1.5;
}


