/* Hero Section */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.hero-content {
    padding: 20px 0;
}

.hero-img-container {
    order: 1;
}

.hero-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.hero-content h1 {
    font-size: 1.6rem;
    line-height: 2.2rem;
    font-weight: 400;
    text-transform: capitalize;
    color: var(--headline-color);
    margin-bottom: 20px;
}

.blog-meta {
    font-size: 1rem;
}


/* blog content section */
.blog-content {
    background: var(--lightbg-color);
    padding: 10px 20px 40px;
    box-shadow: rgba(0, 120, 212, 0.25) 0px 10px 20px 0px;
    margin: 20px 0 40px;
    position: relative;
    border-radius: 5px;
}

.blog-content h2,
h3,
h4 {
    font-weight: 600;
    text-transform: capitalize;
    color: var(--headline-color);
    margin: 25px 0 10px;
}

.blog-content h2 {
    font-size: 1.5rem;
    line-height: 2rem;
}

.blog-content h3 {
    font-size: 1.4rem;
    line-height: 1.6rem;
}

.blog-content h4 {
    font-size: 1.3rem;
    line-height: 1.5rem;
}

.blog-content p {
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.6rem;
}

.blog-content ul {
    margin-left: 20px;
}

.blog-content ul li {
    font-size: 1rem;
    line-height: 1.5rem;
    margin-bottom: 10px;
    color: var(--paragraph-color);
}


/* comment section */
.comment-section {
    margin: 2rem 0 3rem;
}

.comment-section .comment-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    font-weight: 600;
}

/* Comment form styles */
.comment-area {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.comment-form {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #F3F3F3;
    border-radius: 2rem;
    padding: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.comment-area .avatar { border: 1px solid var(--primary-color); }

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    background: transparent;
}

.submit-btn {
    background-color: #0077cc;
    color: white;
    border: none;
    border-radius: 2rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.submit-btn:hover {
    background-color: #0066b3;
}

/* Comment list styles */
.comment-list {
    display: flex;
    flex-direction: column;
}

.comment {
display: flex; 
align-items: flex-start;
padding: 1rem;
}

.comment-block {
    background-color: var(--lightbg-color);
    border-radius: 0.75rem;
    position: relative;
    padding: 1rem;
    width: 100%;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

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

.author-name {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.comment-date {
    color: #888;
    font-size: 0.8rem;
}

.comment-content {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.5;
}

.comment-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #888;
    font-size: 0.8rem;
    background: none;
    border: none;
    cursor: pointer;
}

.action-btn:hover {
    color: #555;
}

.action-btn svg {
    width: 16px;
    height: 16px;
}

.load-more {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-top: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
}

.load-more:hover {
    text-decoration: underline;
}


/* Tablet Styles */
@media (min-width: 768px) {

    .hero {
        flex-direction: row;
        align-items: center;
    }

    .hero-content {
        flex: 1;
        order: 1;
    }

    .hero-img-container {
        flex: 1;
        order: 2;
    }

    .comment-section .comment-title {
        font-size: 1.75rem;
    }

    .comment-form {
        padding: 0.75rem 1rem;
    }

    .avatar {
        margin-right: 1rem;
    }

    .comment-input {
        font-size: 1rem;
    }

    .submit-btn {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }

    .comment-block {
        padding: 1.25rem;
    }

    .author-name {
        font-size: 1.1rem;
    }

    .comment-date {
        font-size: 0.9rem;
    }

    .comment-content {
        font-size: 1rem;
    }
}

@media (min-width: 1024px) {

    .hero-content h1 {
        font-size: 4rem;
        line-height: 5rem;
    }

    .blog-content {
        padding: 10px 50px 40px;
    }

    .blog-content h2 {
        font-size: 2rem;
        line-height: 2.5rem;
    }

    .blog-content h3 {
        font-size: 1.6rem;
    }

    .blog-content h4 {
        font-size: 1.2rem;
    }

    .comment-form {
        padding: 0.75rem 1.5rem;
    }

    .comment-block {
        padding: 1.5rem;
    }
}

@media screen and (min-width: 1600px) and (max-width: 1920px) {
    .hero-content h1 {
        font-size: 5rem;
        line-height: 6rem;
    }

    .blog-meta {
        font-size: 1.3rem;
    }


    .blog-content h2 {
        font-size: 2.5rem;
        line-height: 3rem;
    }

    .blog-content h3 {
        font-size: 2rem;
        line-height: 2, 5rem;
    }

    .blog-content h4 {
        font-size: 1.5rem;
        line-height: 2rem;
    }


    .blog-content p {
        margin-bottom: 15px;
        font-size: 1.1rem;
        line-height: 1.8rem;
    }


}