/* 
Project Name: Modern Portfolio Website
Description: A complete responsive modern portfolio website design
             by using HTML CSS and Vanilla JavaScript from scratch.
Author: Esteham H. Zihad Ansari
Github: https://github.com/esteham
Website: https://xetroot.com
License: MIT License
Copyright: 2025 @Esteham H. Zihad Ansari
*/

/* Container Start */

.blog-container {
  width: 100%;
  color: var(--text-black-900);
}

/* Container End */
/* Top Section Start */

.top-section {
  background: var(--bg-black-100);
  padding: 20px 6% 40px;
}

.top-section .top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding-bottom: 30px;
}

.top-row.logo {
  position: absolute;
  top: 50px;
  font-size: 30px;
  text-transform: capitalize;
}

.top-row .logo a {
  color: var(--text-black-700);
  font-weight: 700;
  padding: 15px 20px;
  font-size: 30px;
  letter-spacing: 5px;
  position: relative;
}

.top-row .logo a span {
  font-family: "Clicker Script", cursive;
  font-size: 40px;
}

.top-row .logo a::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-bottom: 5px solid var(--skin-color);
  border-left: 5px solid var(--skin-color);
  bottom: 0;
  left: 0;
}

.top-row .logo a::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-top: 5px solid var(--skin-color);
  border-right: 5px solid var(--skin-color);
  top: 0;
  right: 0;
}

.bottom-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.category a {
  color: var(--skin-color);
}

/* Top Section End */

/* Body Section Start */
.body-section {
  padding: 20px 6%;
  background: var(--bg-black-900);
}

.body-section .body-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 20px;
}

.body-section .body-row .left {
  flex-basis: 80%;
  width: 80%;
}

.body-section .body-row .left .blog-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding-top: 15px;
}

.body-section .body-row .right {
  flex-basis: 40%;
  width: 40%;
}

.body-row .left .blog-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.body-row .left .blog-title {
  padding: 10px 0;
}

.body-row .left .blog-desc {
  padding: 10px 0;
  line-height: 1.5;
  word-spacing: 1.1px;
  text-align: justify;
}

.body-row .left .social-share {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 30px 15px;
  border-left: 2px solid var(--skin-color);
}

.body-row .left .social-share .social-icons a {
  color: var(--text-black-900);
  padding: 0 3px;
}

.body-row .left .social-share .social-icons a i {
  color: var(--text-black-900);
  font-size: 22px;
}

.body-row .left .social-share .social-icons a:hover i {
  color: var(--skin-color);
}

.body-row .right .section-title h2 {
  font-size: 35px;
}

.body-row .right .recent-posts {
  margin-top: -10px;
}

.body-row .right .recent-posts a {
  color: var(--text-black-900);
}

.body-row .right .recent-posts a:hover {
  color: var(--skin-color);
}

.body-row .right .recent-posts .post-row {
  display: flex;
  justify-content: left;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  margin: 5px;
  box-shadow: 0 0 20px rgba(48, 46, 77, 0.15);
}

.recent-posts {
        padding: 10px;
    }
    .post-row {
        display: flex;
        gap: 10px;
        margin-bottom: 15px;
        background: #f9f9f9;
        padding: 10px;
        border-radius: 10px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        transition: transform 0.3s ease;
    }
    .post-row:hover {
        transform: translateY(-3px);
    }
    .post-img img {
        width: 100px;
        height: 80px;
        object-fit: cover; /* ✅ image সুন্দর ভাবে crop হবে */
        border-radius: 8px;
        border: 1px solid #ddd;
    }
    .post-desc p {
        margin: 4px 0;
        font-size: 14px;
        color: #333;
    }
    .post-desc i {
        color: #555;
        margin-right: 4px;
    }

/* Body Section End */

/* Footer Section Start */
.footer-section {
  background: var(--bg-black-100);
  color: var(--text-black-700);
  font-size: 16px;
}

.footer-section .footer-row {
  padding: 30px 5%;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

.footer-section .footer-row a {
  color: var(--skin-color);
}

/* Footer Section End */

/* Device Responsive Start */
@media (max-width: 760px) {
  .body-section .body-row {
    flex-direction: column;
  }

  .body-section .body-row .left,
  .body-section .body-row .right {
    flex-basis: 100%;
    width: 100%;
  }

  .body-row .right .recent-posts .post-row {
    justify-content: flex-start;
  }
}

@media (max-width: 580px) {
  .body-row .left .social-share .social-icons {
    padding-left: 15px;
    padding-top: 20px;
  }

  .footer-section .footer-row {
    flex-direction: column;
  }

  .footer-section .footer-row div {
    flex-basis: 100%;
    width: 100%;
  }
}

/* Device Responsive End */

/* custom */

.full-width-img {
  width: 100vw;
}

.image-x img {
  width: 10px;
}
/* Comment Section Styles */
.comment-section {
    margin-top: 40px;
    padding: 20px;
    background: var(--bg-black-50);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.comment-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--bg-black-100);
    border-radius: 5px;
    background: var(--bg-black-100);
    color: var(--text-black-900);
    transition: all 0.3s ease;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--skin-color);
    outline: none;
}

.comments-list {
    margin-top: 40px;
}

.comment-item {
    padding: 20px;
    margin-bottom: 20px;
    background: var(--bg-black-100);
    border-radius: 8px;
    position: relative;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.comment-author {
    display: flex;
    align-items: center;
}

.comment-author i {
    font-size: 24px;
    margin-right: 10px;
    color: var(--skin-color);
}

.comment-date {
    display: flex;
    align-items: center;
    color: var(--text-black-700);
    font-size: 14px;
}

.comment-date i {
    margin-right: 5px;
}

.comment-body p {
    line-height: 1.6;
    color: var(--text-black-700);
}

.no-comments {
    text-align: center;
    padding: 20px;
    color: var(--text-black-700);
    font-style: italic;
}

.comment-alert {
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.comment-alert.success {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid #28a745;
}
