/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra



/* categories below (begins here) */
/* ============================= */
/* TARGET ALL SPECIFIED SECTIONS */
/* ============================= */
.elementor-element-4d81df3,
.elementor-element-7ccc2c8,
.elementor-element-37e3a42,
.elementor-element-0f7f3a1,
.elementor-element-ce44ad1,
.elementor-element-2f43bff{
    position:relative;
    overflow:hidden;
    transition:transform 0.4s ease-in-out;
}

/* ============================= */
/* HOVER ZOOM EFFECT */
/* ============================= */
.elementor-element-4d81df3:hover,
.elementor-element-7ccc2c8:hover,
.elementor-element-37e3a42:hover,
.elementor-element-0f7f3a1:hover,
.elementor-element-ce44ad1:hover,
.elementor-element-2f43bff:hover{
    transform:scale(1.05);
}

/* ============================= */
/* DARK OVERLAY (ALWAYS PRESENT) */
/* ============================= */
.elementor-element-4d81df3::after,
.elementor-element-7ccc2c8::after,
.elementor-element-37e3a42::after,
.elementor-element-0f7f3a1::after,
.elementor-element-ce44ad1::after,
.elementor-element-2f43bff::after{
    content:"";
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.2);
    opacity:0; /* always visible */
    pointer-events:none;
}

/* ============================= */
/* KEEP CONTENT ABOVE */
/* ============================= */
.elementor-element-4d81df3 *,
.elementor-element-7ccc2c8 *,
.elementor-element-37e3a42 *,
.elementor-element-0f7f3a1 *,
.elementor-element-ce44ad1 *,
.elementor-element-2f43bff *{
    position:relative;
    z-index:1;
}
/* categories above (ends here) */

/* RESET GLOBAL DAMAGE */
.container {
  max-width: 100% !important;
}

/* Ensure full-width sections actually stretch */
.e-con.e-con-full,
.elementor-section.elementor-section-full_width {
    max-width: 100% !important;
}

/* Optional: center the content nicely */
.ast-container,
.elementor-container {
    margin-left: auto;
    margin-right: auto;
}


/* GRID LAYOUT Latest News */
.hfe-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* CARD DESIGN */
.hfe-post-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.hfe-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* IMAGE FIX (IMPORTANT PART) */
.hfe-post-image {
  width: 100%;
  height: 220px; /* SAME HEIGHT FOR ALL */
  overflow: hidden;
}

.hfe-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* CROPS NICELY */
  display: block;
}

/* CONTENT */
.hfe-post-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* TITLE */
.hfe-post-title {
  font-size: 18px;
  margin-bottom: 10px;
  line-height: 1.4;
}

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

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

/* META */
.hfe-post-meta {
  font-size: 13px;
  color: #777;
  margin-bottom: 10px;
}

/* EXCERPT */
.hfe-post-excerpt {
  font-size: 14px;
  color: #555;
  margin-bottom: 15px;
  flex-grow: 1;
}

/* READ MORE BUTTON */
.hfe-read-more {
  text-decoration: none;
  font-weight: 600;
  color: #0073e6;
  transition: 0.3s;
}

.hfe-read-more:hover {
  color: #005bb5;
}

/* ADD SPACE AT BOTTOM OF SECTION */
.elementor-element-c8d5e4c {
  padding-bottom: 60px;
}
/*&Latest News*/


/* SECTION */
.category-section {
  padding: 50px 20px;
  background: #f5f5f5;
}

/* GRID CONTAINER */
.container {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}



/* CARD */
.card {
  background: #fff;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  transition: 0.3s ease;
  border: 1px solid #eee;
}

/* IMAGE */
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
}

/* TEXT */
.card h3 {
  font-size: 18px;
  margin: 15px 0 5px;
  color: #333;
}

.card p {
  font-size: 14px;
  color: #777;
}

/* HOVER EFFECT */
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .container {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

