/*
	Theme Name: Hello Elementor
	Theme URI: https://elementor.com/hello-theme/?utm_source=wp-themes&utm_campaign=theme-uri&utm_medium=wp-dash
	Description: Hello Elementor is a lightweight and minimalist WordPress theme that was built specifically to work seamlessly with the Elementor site builder plugin. The theme is free, open-source, and designed for users who want a flexible, easy-to-use, and customizable website. The theme, which is optimized for performance, provides a solid foundation for users to build their own unique designs using the Elementor drag-and-drop site builder. Its simplicity and flexibility make it a great choice for both beginners and experienced Web Creators.
	Author: Elementor Team
	Author URI: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash
	Version: 3.4.5
	Stable tag: 3.4.5
	Requires at least: 6.0
	Tested up to: 6.8
	Requires PHP: 7.4
	License: GNU General Public License v3 or later.
	License URI: https://www.gnu.org/licenses/gpl-3.0.html
	Text Domain: hello-elementor
	Tags: accessibility-ready, flexible-header, custom-colors, custom-menu, custom-logo, featured-images, rtl-language-support, threaded-comments, translation-ready,
*/

/* === SINGLE POST LAYOUT (WITH SIDEBAR) === */

/* === FIXED SINGLE POST LAYOUT === */
.single-post-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  background: #fff;
}

.single-post-wrapper .he-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
  box-sizing: border-box;
}

.single-post-wrapper .he-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

/* Main content */
.single-post-wrapper .he-main {
  flex: 0 0 70%;
  max-width: 70%;
}

/* Sidebar */
.single-post-wrapper .he-sidebar {
  flex: 0 0 30%;
  max-width: 30%;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

/* Featured image */
.post-featured-image {
  margin-bottom: 25px;
  overflow: hidden;
  border-radius: 10px;
}
.post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* Post meta */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  background: #f8f8f8;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 10px 15px;
  margin-bottom: 25px;
  color: #555;
  font-size: 15px;
}

/* Responsive fix */
@media (max-width: 992px) {
  .single-post-wrapper .he-row {
    flex-direction: column;
  }

  .single-post-wrapper .he-main,
  .single-post-wrapper .he-sidebar {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .single-post-wrapper .he-sidebar {
    margin-top: 30px;
  }
}

/* === SIDEBAR STYLING (Hello Elementor Child Theme) === */

.he-sidebar {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  font-family: 'Inter', sans-serif;
}

.he-sidebar .widget {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f1f1;
}

.he-sidebar .widget:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.he-sidebar .widget-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #222;
  position: relative;
}

.he-sidebar .widget-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: #0073e6; /* Elementor blue accent */
  margin-top: 8px;
  border-radius: 3px;
}

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

.he-sidebar ul li {
  margin-bottom: 10px;
}

.he-sidebar ul li a {
  text-decoration: none;
  color: #333;
  transition: color 0.2s;
}

.he-sidebar ul li a:hover {
  color: #0073e6;
}

/* Contact Form 7 inside sidebar */
.he-sidebar form.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.he-sidebar input[type="text"],
.he-sidebar input[type="email"],
.he-sidebar textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
}

.he-sidebar input[type="submit"] {
  background: #0073e6;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.he-sidebar input[type="submit"]:hover {
  background: #005bb5;
}

/* Responsive */
@media (max-width: 992px) {
  .he-sidebar {
    margin-top: 30px;
  }
}
