
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f7f8fb;
    color: #333;
    line-height: 1.5;
    font-size: small;
}
@media (max-width: 768px) {
    .blog-text{
        font-size: smaller;
    }
}
/* Header Section */

.blog-btn {
    background-color: #e63946;
    color: white;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    margin: 20px;
}

.blog-btn:hover {
    background-color: #ff6b6b;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 10px 15px;
    }

    .header-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .blog-btn {
        font-size: 0.9rem;
        padding: 8px 15px;
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .header-title {
        font-size: 1.3rem;
    }

    .blog-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}


.blog-content {
    max-width: 1200px;
    margin: 50px auto;
    padding: 40px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.blog-content:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}
.main-text1 {
color: #100d0d;
}
.main-text2 {
    color: #585555;
    }

 @media screen and (max-width: 768px) {
    .main-text1{
        font-size: x-large;
    }
    .main-text2{
      font-size: small;  
        
    }

    
}  
        
.blog-img {
    width: 100%;
    height: 600px;
    background: url('images/su4.jpeg') no-repeat center center/cover;
    
    margin-bottom: 30px;
    position: relative;
    transition: filter 0.3s ease, transform 0.3s ease;
}
@media screen and (max-width: 768px) {
    .blog-img{
        margin: 0;
        padding: 0;
        width: 100%;
        height: 300px;
    }   
}

.blog-img:hover {
    filter: brightness(0.6);
    transform: scale(1.05);
}

.blog-img::after {
    content: ' ';
    position: absolute;
    top: 10px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 8px 20px;
    font-size: 1.3rem;
    color: #fff;
    border-radius: 20px;
}

.blog-text {
    font-size: small;
    color: #555;
    margin-bottom: 40px;
    line-height: 1.9;
    letter-spacing: 0.5px;
}

/* Social Media Sharing Section */
.social-media {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap; /* For responsiveness */
}

.social-media a {
    color: white;
    padding: 14px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
}

/* Dynamic Colors for Icons */
.social-media a:nth-child(1) {
    background: linear-gradient(45deg, #3b5998, #4c66a4); /* Facebook */
}

.social-media a:nth-child(2) {
    background: linear-gradient(45deg, #1da1f2, #33aaff); /* Twitter */
}

.social-media a:nth-child(3) {
    background: linear-gradient(45deg, #0077b5, #0088cc); /* LinkedIn */
}

.social-media a:nth-child(4) {
    background: linear-gradient(45deg, #25d366, #58e48b); /* WhatsApp */
}

.social-media a:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    filter: brightness(1.2);
}

.social-media a i {
    font-size: 1.6rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .social-media a {
        width: 45px;
        height: 45px;
        padding: 12px;
    }

    .social-media a i {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .social-media a {
        width: 40px;
        height: 40px;
        padding: 10px;
    }

    .social-media a i {
        font-size: 1.2rem;
    }
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.comments-section {
    margin: 50px auto; /* Spacing above and below */
    padding: 30px;
    max-width: 1000px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.comments-section h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #1d3557;
    font-weight: 700;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 1rem;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease-in-out;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: #1d3557;
    outline: none;
}

.comment-box-button {
    padding: 15px;
    background: linear-gradient(45deg, #1d3557, #457b9d);
    color: white;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.comment-box-button:hover {
    background: linear-gradient(45deg, #457b9d, #1d3557);
    transform: translateY(-3px);
}

.posted-comments {
    margin-top: 30px;
}

.posted-comment {
    padding: 15px;
    background-color: #e9ecef;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    color: #495057;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.posted-comment .comment-author {
    font-weight: bold;
    color: #1d3557;
    margin-bottom: 5px;
}

.posted-comment .comment-actions {
    display: flex;
    gap: 10px;
    position: absolute;
    top: 15px;
    right: 15px;
}

.comment-actions button {
    background-color: transparent;
    border: none;
    color: #1d3557;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s ease-in-out;
}

.comment-actions button:hover {
    color: #e63946;
}

.no-comments {
    font-size: 1rem;
    color: #757575;
    text-align: center;
    margin-top: 20px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .container{
        max-width:1000px;
        margin: 10px auto;
        padding: 10px;
    }
    .comments-section {
        margin: 0px auto; /* Spacing above and below */
        padding: 10px;
        max-width: 1000px;
        background-color: #ffffff;
        border-radius: 15px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .comment-box-button {
        width: 100%;
        padding: 12px;
    }

    .posted-comment {
        gap: 5px;
        padding: 10px;
    }

    .comment-actions {
        top: auto;
        bottom: 10px;
        right: 10px;
    }
}

.related-posts {
    margin-top: 60px;
    background-color: #fff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.related-posts h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #1d3557;
    font-weight: 600;
}

.related-posts ul {
    list-style: none;
    padding: 0;
}

.related-posts ul li {
    font-size: 1.1rem;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.related-posts ul li a {
    color: #ff9f1c;
    text-decoration: none;
}

.related-posts ul li a:hover {
    color: #1d3557;
    text-decoration: underline;
}

.author-section {
    margin-top: 80px;
    padding: 35px;
    background-color: #f7f8fb;
    display: flex;
    align-items: center;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.author-section img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-right: 20px;
    transition: transform 0.3s ease;
}

.author-section img:hover {
    transform: scale(1.1);
}

.author-section .author-info h4 {
    font-size: 1.5rem;
    color: #1d3557;
    font-weight: 600;
}

.author-section .author-info p {
    font-size: 1.1rem;
    color: #555;
}