/* 
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 */

/* Menu Styles */
.simple-menu ul {
  list-style: none;
}
.simple-menu li {
  padding-top: 4px;
  padding-bottom: 4px;
}
.simple-menu > ul {
  padding-left: 0;
}
.simple-menu > ul > li {
  padding-top: 8px;
  padding-bottom: 8px;
}
.simple-menu > ul ul {
  padding-top: 8px;
  padding-bottom: 8px;
}

/* News Slider Styles */
.swiper:has(.news-item) {
  padding: 10px;
  margin: -10px;
}
.news-item .elementor-widget-theme-post-featured-image {
  overflow: hidden;
}
.news-item img {
  transition: all 0.3s ease;
}
.news-item:hover img {
  transform: scale(1.1);
}

/* Image links (community page) */
.image-link a {
  position: relative;
}
.image-link a::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}
.image-link a::after {
  content: "+";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 24px;
  font-weight: 600;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #004577;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}
.image-link a:hover::before {
  opacity: 1;
}
.image-link a:hover::after {
  opacity: 1;
}

/* Projects */
.project-item:hover h4 {
  color: #ffffff !important;
}
.project-item:hover .elementor-element {
  color: #ffffff !important;
}
.project-item:hover .elementor-post-info__terms-list-item {
  color: #ffffff !important;
}
.project-item:hover .project-type-pill {
  border-color: #ffffff !important;
}

/* Enhanced Flag Styling */
.country-flag {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.country-flag:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.country-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
