/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

.featured-resources-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.featured-resource-main {
  display: flex;
  flex-wrap: wrap;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  position: relative;
  border: 3px solid #06f;
}

.featured-resource-main:hover {
  display: flex;
  flex-wrap: wrap;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  overflow: hidden;
  position: relative;
  border: 3px solid #06f;
  cursor:pointer;
  transition: 0.5s easein;
}
.featured-image {
  flex: 1 1 40%;
  min-height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.new-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #0066ff;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 12px;
}

.featured-content {
  flex: 1 1 60%;
  padding: 20px;
}

.featured-content h3 {
  color: #0049b0;
  margin-bottom: 10px;
}

.btn-readmore {
  display: inline-block;
  margin-top: 10px;
  border: 1px solid #0049b0;
  color: #0049b0;
  padding: 8px 14px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s;
}
.btn-readmore:hover {
  background: #0049b0;
  color: #fff;
}

.featured-resource-secondary-wrapper {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.featured-resource-secondary {
  display:flex;
  flex: 1 1 calc(50% - 10px);
  border: 2px solid #ffce00;
  border-radius: 12px;
  background: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.featured-resource-secondary:hover {
  display:flex;
  flex: 1 1 calc(50% - 10px);
  border: 2px solid #ffce00;
  border-radius: 12px;
  background: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  cursor:pointer;
}

.secondary-thumb {
  position: relative;
  padding: 2rem;
}
.secondary-thumb img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius:15px;
}
.star-icon {
  position: absolute;
  top: -2px;
  right: 4px;
  color: #ffce00;
  font-size: 20px;
}

.secondary-content {
  padding: 15px;
}
.secondary-content h4 {
  margin-bottom: 8px;
  font-size: 18px;
  color: #333;
}
.secondary-content p {
  font-size: 14px;
  color: #555;
}
.secondary-content a {
  display: inline-block;
  margin-top: 5px;
  font-weight: 500;
  color: #0049b0;
  text-decoration: none;
}
