/* 
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 */
/*
 Theme Name:  Hello Elementor Child – Sidebar for Single Post
 Template:    hello-elementor
 Description: Adds a styled sidebar to single posts with categories, search, and recent posts.
 Version:     1.0
*/

/* Layout */
.hec-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 16px;
}

.hec-grid {
  display: grid;
  grid-template-columns: 1fr 320px; /* content + sidebar */
  gap: 32px;
}

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

.hec-content {
  min-width: 0;
}

.hec-sidebar {
  min-width: 0;
}

@media (min-width: 1025px) {
  .hec-sidebar--sticky {
    position: sticky;
    top: 24px;
  }
}

/* Sidebar General */
.hec-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: #f8fbff;
  border: 1px solid #e5e9f2;
  border-radius: 8px;
  padding: 20px 22px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.sidebar-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #222;
  border-bottom: 2px solid #eaeaea;
  padding-bottom: 8px;
}

/* Category Widget */
.sidebar-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-widget ul li {
  margin-bottom: 10px;
  line-height: 1.5;
  position: relative;
  padding-left: 16px;
}

.sidebar-widget ul li::before {
  content: "▶";
  font-size: 10px;
  color: #ffb400;
  position: absolute;
  left: 0;
  top: 3px;
}

.sidebar-widget ul li a {
  color: #0c4b86;
  text-decoration: none;
  transition: 0.2s;
  font-size: 15px;
}

.sidebar-widget ul li a:hover {
  color: #111;
}

/* Search Widget */
.sidebar-widget input[type="search"] {
  width: 70%;
  padding: 9px 12px;
  border: 1px solid #ccc;
  border-radius: 4px 0 0 4px;
  outline: none;
}

.sidebar-widget input[type="submit"] {
  width: 30%;
  padding: 9px 0;
  border: none;
  background: #111;
  color: #fff;
  font-weight: 600;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: 0.3s;
}

.sidebar-widget input[type="submit"]:hover {
  background: #ffb400;
  color: #000;
}

/* Recent Posts */
.sidebar-widget.recent-posts ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
}

.sidebar-widget.recent-posts ul li {
  display: flex;
  gap: 12px;
  border: 1px solid #eaeaea;
  border-radius: 6px;
  background: #fff;
  padding: 10px;
  align-items: flex-start;
  transition: all 0.2s ease;
}

.sidebar-widget.recent-posts ul li:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sidebar-widget.recent-posts ul li img {
  width: 70px;
  height: 55px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.sidebar-widget.recent-posts ul li div {
  flex: 1;
}

.sidebar-widget.recent-posts ul li a {
  display: block;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  color: #222;
  margin-bottom: 5px;
  text-decoration: none;
}

.sidebar-widget.recent-posts ul li a:hover {
  color: #0c4b86;
}

.sidebar-widget.recent-posts ul li .read-more {
  font-size: 13px;
  color: #ff9100;
  text-decoration: none;
}

.sidebar-widget.recent-posts ul li .read-more:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .hec-sidebar {
    gap: 16px;
  }
  .sidebar-widget {
    padding: 16px;
  }
  .sidebar-widget.recent-posts ul li img {
    width: 60px;
    height: 45px;
  }
}


/*
 Theme Name:   Hello Elementor Child
 Template:     hello-elementor
 Text Domain:  hello-elementor-child
*/

:root{
  --container: min(1200px, 92vw);
  --gap: 28px;
  --radius: 18px;
}

/* Container */
.container{
  width: var(--container);
  margin-inline: auto;
}

/* HERO SECTION */
.post-hero{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 24px auto 32px;
  aspect-ratio: 16/9;
}
.post-hero img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-hero::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.20) 0%, rgba(0,0,0,.55) 100%);
}
.post-hero__inner{
  position:absolute; left:24px; right:24px; bottom:22px;
  color:#fff;
  z-index:1;
}
.post-hero__title{
  margin:0;
  line-height:1.1;
  font-weight:800;
  font-size: clamp(28px, 4.5vw, 48px);
  letter-spacing:-.015em;
}
.post-hero__meta{
  margin-top:8px;
  opacity:.9;
  font-size:14px;
}

/* MAIN LAYOUT */
.post-wrap{
  display:grid;
  grid-template-columns: minmax(0,1fr) 320px;
  gap: var(--gap);
  align-items:start;
  margin-bottom:64px;
}
@media (max-width: 991px){
  .post-wrap{
    grid-template-columns: 1fr;
  }
  .sidebar{
    margin-top:32px;
  }
}

/* CONTENT */
.entry-content{
  background:#fff;
  border-radius: var(--radius);
  padding: clamp(18px, 2.5vw, 28px);
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
}
.entry-content img{ height:auto; }

/* SIDEBAR */
.sidebar{
  position: sticky;
  top: 90px;
  height: fit-content;
}
.widget{
  background:#fff;
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
  margin-bottom: 18px;
}
.widget .widget-title{
  margin:0 0 10px;
  font-weight:700;
  font-size:16px;
}

/* Gutenberg wide/full block fixes */
.alignwide{ width: min(1100px, 100%); margin-inline:auto; }
.alignfull{ width: 100vw; margin-left: 50%; transform: translateX(-50%); }

/* Optional: hide sidebar on small screens */
@media (max-width: 767px){
  .sidebar{
    display:none;
  }
}
