/*
Theme Name: Royal Elementor Kit Child
Theme URI: https://royal-elementor-addons.com/royal-elementor-kit-child
Description: Child theme for the Royal Elementor Kit
Author: WP Royal
Author URI: https://royal-elementor-addons.com/
Template: royal-elementor-kit
Version: 1.0.1
*/

/* Square container + cover image */
.square-img {
  position: relative;
  width: 100%;          
  aspect-ratio: 1 / 1;  
  overflow: hidden;
}

.square-img > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;    
  display: block;
}

/* Fallback for very old browsers without aspect-ratio support */
@supports not (aspect-ratio: 1 / 1) {
  .square-img {
    height: 0;
    padding-top: 100%; 
  }
  .square-img > img {
    position: absolute;
    top: 0; left: 0;
  }
}

/* ===== Projects Grid (Listing + Related) ===== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.project-item {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

/* Thumbnail (Shared) */
.project-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 15px;
}
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Titles */
.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #222;
}
.related-projects .project-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

/* Meta Info (shared) */
.project-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
  font-size: 0.95rem;
  color: #444;
}
.project-meta li {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
.project-meta li img {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  opacity: 0.8;
}
.related-projects .project-meta {
  font-size: 0.9rem;
}
.related-projects .project-meta li img {
  width: 16px;
  height: 16px;
}

/* Link button */
.project-link {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 6px;
  background: #014bb1;
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s ease;
}
.project-link:hover {
  background: #005bb5;
}

/* Categories (shared) */
.project-categories {
  margin-bottom: 12px;
}
.project-category {
  display: inline-block;
  background: #f0f4ff;
  color: #1a3d7c;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 6px;
  margin-right: 6px;
}
.single-project .project-category {
  background: #eef3ff;
  padding: 6px 12px;
  font-size: 0.9rem;
}

/* ===== Single Project Page ===== */
.single-project .main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.single-project .project-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 30px;
  line-height: 1.2;
  text-align: center;
}

/* Meta section (fields row/column) */
.single-project .project-meta ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0 0 25px 0;
  padding: 0;
}
.single-project .project-meta li {
  font-size: 1rem;
}

/* Content */
.single-project .project-content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 40px;
}

/* Related projects */
.related-projects {
  padding-top: 50px;
  border-top: 1px solid #eee;
}
.related-projects .section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 36px;
}

.related-projects .project-title{
	font-size: 1.2rem;
	text-align: left;
}



/*Polylang*/

/* Base dropdown style */
select.pll-switcher-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;

    padding: 10px 40px 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #111827;

    cursor: pointer;
    outline: none;

    transition: all 0.2s ease;
}

/* Hover */
select.pll-switcher-select:hover {
    border-color: #6366f1;
}

/* Focus */
select.pll-switcher-select:focus {
    border-color: #014BB1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Dropdown arrow */
select.pll-switcher-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 10.94l3.71-3.71a.75.75 0 111.06 1.06l-4.24 4.25a.75.75 0 01-1.06 0L5.21 8.29a.75.75 0 01.02-1.08z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

@media (max-width: 768px) {
    select.pll-switcher-select {
        font-size: 14px;
    }
}
