/*
 Theme Name: Hello Elementor Child for MasudRana
 Theme URI: https://mascommpro.com/
 Description: A lightweight child theme of Hello Elementor with a clean, sticky header and NGO-friendly palette.
 Author: ShohagBiswas
 Author URI: https://shohagbiswas.com
 Template: hello-elementor
 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: hello-elementor-child
*/

/* Color variables (Earthy Humanitarian palette) */
:root{
  --olive: #556B2F;
  --moss: #6E8B3D;
  --beige: #F4EFE8;
  --charcoal: #333333;
  --ash: #888888;
}

/* Base */
body{
  color: var(--charcoal);
  background: #fff;
}

/* Sticky header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.site-header .container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-title{
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-weight: 600;
  font-size: 20px;
  letter-spacing: .3px;
  color: var(--olive);
  text-decoration: none;
}

/* Primary menu */
.primary-menu{
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu a{
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 500;
}

.primary-menu a:hover{
  color: var(--olive);
}

/* Mobile menu toggle (simple) */
.menu-toggle{
  display: none;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.1);
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff;
}

.menu-toggle:focus{
  outline: 2px solid var(--olive);
  outline-offset: 2px;
}

@media (max-width: 900px){
  .primary-menu{
    display: none;
  }
  .menu-toggle{
    display: inline-block;
  }
  .primary-menu.is-open{
    display: flex;
    position: absolute;
    top: 58px;
    right: 12px;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 12px;
    gap: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  }
}

/* Footer */
.site-footer{
  border-top: 1px solid rgba(0,0,0,0.06);
  background: var(--beige);
  color: var(--charcoal);
  padding: 28px 20px;
}

.site-footer .container{
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

a.btn-primary{
  background: var(--olive);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
}

a.btn-primary:hover{
  background: var(--moss);
}

.sidebar .widget {
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fafafa;
}
.sidebar .widget-title {
  font-weight: 600;
}

/*Showing blog posts*/

/* Latest Posts 3 Column Grid */
.latest-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}
.latest-posts-grid .post-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.latest-posts-grid .post-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.latest-posts-grid .thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.latest-posts-grid .title {
  font-size: 18px;
  margin: 15px;
}
.latest-posts-grid .title a {
  color: #202124;
  text-decoration: none;
}
.latest-posts-grid .title a:hover {
  text-decoration: underline;
}
.latest-posts-grid .meta {
  font-size: 13px;
  color: #666;
  margin: 0 15px 15px;
}

/* Horizontal Latest Posts */
.latest-posts-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

.latest-posts-row::-webkit-scrollbar {
  height: 8px;
}
.latest-posts-row::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}
.latest-posts-row::-webkit-scrollbar-track {
  background: transparent;
}

.latest-posts-row .post-card {
  flex: 0 0 280px; /* card width */
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.latest-posts-row .post-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.latest-posts-row .thumb img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.latest-posts-row .title {
  font-size: 16px;
  margin: 10px;
}
.latest-posts-row .title a {
  color: #202124;
  text-decoration: none;
}
.latest-posts-row .title a:hover {
  text-decoration: underline;
}
.latest-posts-row .meta {
  font-size: 12px;
  color: #666;
  margin: 0 10px 10px;
}

/*Contact details*/

.contact-details {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.contact-details h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #333;
}

.contact-details ul {
  list-style: none;
  padding: 0;
  margin: 0 0 15px;
}

.contact-details ul li {
  margin-bottom: 8px;
  font-size: 15px;
}

.contact-details a {
  color: #0073e6;
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

.social-links a {
  display: inline-block;
  margin-right: 10px;
  font-size: 14px;
  background: #0073e6;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.social-links a:hover {
  background: #005bb5;
}
