/* ===== Blog Single ===== */
.blog-single {
  font-family: 'Poppins', sans-serif;
  color: #333;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
}

/* --- Hero Section --- */
.post-hero {
  position: relative;
  text-align: left;
  overflow: hidden;
  margin-bottom: -50px; /* no gap under tilt */
}

.post-hero .hero-image img {
  width: 100%;
  height: 330px; /* reduced height */
  object-fit: cover;
  display: block;
}

.post-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, #00AEEF 0%, #171254 100%);
  opacity: 0.95;
  z-index: 1;
}

/* Tilt divider */
.post-hero::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 80px;
  background: #f9fafc;
  transform: skewY(-3deg);
  transform-origin: bottom left;
  z-index: 2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start; /* aligns left */
  color: #fff;
  text-align: left;
  padding: 0 120px;
}

.hero-overlay .post-title {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #fff;
  line-height: 1.3;
}

.hero-overlay .post-meta {
  font-size: 0.9rem;
  opacity: 0.9;
  color: #fff;
}

.hero-overlay .post-meta span {
  margin: 0 8px;
  color: #fff;
}

/* --- Decorative Shape --- */
.hero-shape-divider {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.hero-shape-divider svg {
  position: relative;
  display: block;
  width: calc(132% + 1.3px);
  height: 80px;
}

.hero-shape-divider path {
  fill: #f9fafc;
}

/* --- Content Area --- */
body.single-post {
  background-color: #f9fafc;
}

.post-body-wrapper {
  padding: 80px 0;
}

.blog-layout {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.post-content-area {
  flex: 3;
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  animation: fadeUp 0.6s ease both;
}

.post-content-area p {
  margin-bottom: 1.5em;
  line-height: 1.8;
  color: #444;
}

.post-content-area img {
  width: 100%;
  border-radius: 8px;
  margin: 25px 0;
}

/* --- Sidebar --- */
.sidebar-area {
  flex: 1;
}

.sidebar-widget {
  background: #fff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.sidebar-widget h3 {
  margin-bottom: 20px;
  font-size: 1.2rem;
  color: #171254;
  border-bottom: 2px solid #00AEEF;
  display: inline-block;
  padding-bottom: 5px;
}

/* Sidebar post list (like itcompany.com.au) */
.sidebar-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-widget li {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
  transition: all 0.3s ease;
}

.sidebar-widget li:last-child {
  border: none;
}

.sidebar-widget li:hover {
  transform: translateY(-3px);
}

.sidebar-widget li a {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: #333;
}

.sidebar-widget li img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-widget .info {
  flex: 1;
}

.sidebar-widget .title {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
  line-height: 1.4;
}

.sidebar-widget .title:hover {
  color: #00AEEF;
}

.sidebar-widget .date {
  font-size: 0.8rem;
  color: #777;
}

/* --- Footer + Author Box --- */
.post-footer {
  margin-top: 40px;
  border-top: 1px solid #eee;
  padding-top: 25px;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
}

.post-nav a {
  color: #00AEEF;
  text-decoration: none;
  font-weight: 500;
}

.post-nav a:hover {
  text-decoration: underline;
}

.author-box {
  display: flex;
  gap: 20px;
  background: #f5f5f5;
  padding: 25px;
  border-radius: 10px;
  margin-top: 40px;
}

.author-box .avatar img {
  border-radius: 50%;
  width: 80px;
  height: 80px;
}

.author-box .info h4 {
  margin: 0 0 6px;
}

/* --- Animation --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .blog-layout {
    flex-direction: column;
  }

  .sidebar-area {
    margin-top: 40px;
  }

  .hero-overlay {
    padding: 0 50px;
  }

  .hero-overlay .post-title {
    font-size: 2rem;
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .post-hero .hero-image img {
    height: 220px;
  }

  .hero-overlay {
    padding: 0 30px;
  }

  .hero-overlay .post-title {
    font-size: 1.5rem;
  }

  .post-content-area {
    padding: 25px;
  }
}