/* INDEX */
#main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#main-1 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    padding: .5rem;
    justify-content: center;
}

#main-1 .first {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    justify-content: space-between;
}

.first .category {
    font-size: x-large;
    margin: 20px 0;
}

.first .title {
    font-size: xx-large;
}

.first .writer {
    font-size: x-large;
}

.first .share {
    font-size: x-large;
    margin: 10px 0px;
}

.first .date {
    font-size: 1rem;
    margin-top: 50px;
}

#main-1 .second {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 10px;
}

#main-1 .second>div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 10px;
    overflow: hidden;
}

.title {
    color: crimson;
    font-weight: bold;
    font-family: sans-serif;
    margin: 1.5rem 0;
}

.title::first-letter {
    text-transform: uppercase;
}

.title:hover {
    color: #777;
}

.category {
    background-color: crimson;
    width: fit-content;
    padding: 5px;
    border-radius: 5px;
    color: #f4f4f4;
    text-transform: uppercase;
    text-decoration: none;
    display: block;
    font-weight: bold;
    margin: 10px 0;
}

.writer {
    text-transform: capitalize;
    margin: 10px 0;
}

.share {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.date {
    color: crimson;
    font-size: 0.9rem;
    text-align: right;
    font-weight: bold;
    font-family: sans-serif;
    padding: 5px 0;
}

#main-2 {
    display: grid;
    grid-template-columns: auto 230px;
    align-items: first baseline;
}

#main-2 .third {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.third .posts {
    width: 300px;
    height: auto;
    margin: 10px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: left;
    justify-content: space-between;
    flex-direction: column;
    cursor: pointer;
}

.post_img {
    height: 250px;
    object-fit: cover;
    background: center center/cover no-repeat;

}

.third .posts .share {
    justify-self: end;
}

#main-2 .fourth {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: .5rem 10px;
}

#main-2 .fourth h2 {
    text-align: center;
    color: crimson;
    text-decoration: underline;
    font-family: sans-serif;
    margin-bottom: 1rem;
    font-size: xx-large;
}

#main-2 .fourth .l_news {
    width: 100%;
    margin: 10px 0;
    border-radius: 10px;
    background-color: #ddd;
    padding: 10px;
}

/* SOCIAL */
.fab {
    margin: 0 3px;
}

.fa-facebook {
    color: darkblue;
}

.fa-instagram {
    color: brown;
}

.fa-whatsapp {
    color: green;
}

.fa-twitter {
    color: lightskyblue;
}

.fa-linkedin {
    color: lightskyblue;
}

/* ADVERT */
.fslideshow-container {
    position: relative;
    max-width: 800px;
    margin: auto;
    overflow: hidden;
    z-index: -1;
}

.fslide {
    display: none;
    padding: 20px;
    text-align: center;
    border: 1px solid #ccc;
    background-color: #fff;
}

.banner {
    height: 180px;
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fslide.active {
    display: block;
}


/* COMMENTS */

.pcomment {
    margin-bottom: 20px;
    border: 1px solid #ccc;
    padding: 10px;
}

.comment-section {
    margin: 0 auto;
    padding: 20px;
}

.comment-section textarea {
    width: 100%;
    height: 100px;
    margin-bottom: 10px;
    outline: none;
    padding: 5px;
}

.comment-section input[type="text"], .comment-section input[type="email"] {
    width: 100%;
    margin-bottom: 10px;
    outline: none;
    padding: 5px;
}

.comment-section input[type='submit'] {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}

.comments {
    margin-top: 20px;
}

.comment {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #888;
}

.comment p {
    margin: 0;
}

.comment p:first-child {
    font-weight: bold;
    text-transform: capitalize;
    color: #333;
}

.comment-info {
    font-size: 0.9em;
    color: #666;
}

.commenter-name {
    font-weight: bold;
    text-transform: capitalize
}

.post-title {
    font-style: italic;
    color: crimson;
}

.comment-date {
    margin-left: 10px;
}

.comment-content {
    margin-top: 5px;
    color: #666;
}


#a-story {
    display: grid;
}

.a-story {
    margin: auto;
    padding: 20px;
    max-width: 800px;
}

.a-story h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #555;
}

.a-story p {
    margin-bottom: 10px;
    color: #666;
    line-height: 25px;
}

.a-story .link {
    color: #666;
}

.social_platform {
    margin-top: 20px;
}

.social_platform p {
    margin-bottom: 10px;
}

.social_platform a {
    display: inline-block;
    margin-right: 10px;
    text-decoration: none;
    color: black;
}


@media (max-width: 780px) {
    #main-1 {
        grid-template-columns: auto;
    }

    #main-1 .first {
        border-radius: 10px;
        overflow: hidden;
    }

    #main .category {
        margin: 10px 0;
        font-size: large;
    }

    #main .title {
        font-size: x-large;
    }

    #main .writer {
        font-size: large;
    }

    #main .share {
        margin: 10px 0;
        font-size: large;
    }

    #main .date {
        margin: 5px 0px;
    }

    #main-1 .second {
        grid-template-columns: auto;
    }

    #main-2 {
        grid-template-columns: auto;
        justify-content: center;
        padding: 2rem 0px;
        background-color: #eee
    }
    .third .posts{
        width: 100%;
    }
}

@media (max-width: 320px) {
    #main-2 .third .posts {
        width: 100%;
    }
}

/* POST */
#main-post {
    margin: 1.5rem 0;
    display: grid;
    grid-template-columns: auto;
}

#post-1 {
    max-width: 600px;
    margin: auto;
}

.post-1 {
    display: flex;
    flex-direction: column;
    padding: .5rem;
    color: #666;
}

.post-1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.post-1 .content-post {
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 5px;
    text-align: justify;
    line-height: 25px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    display: block;
}

.post-1 .content-post:first-letter {
    text-transform: capitalize;
    font-size: large;
    font-weight: bold;
}

.content p:first-letter {
    text-transform: capitalize;
    font-size: large;
    font-weight: bold;
}

/* Replies list */
.replies-list {
    list-style-type: none;
    padding-left: 20px;
    margin-left: 10px;
}

.reply {
    margin-bottom: 10px;
}

/* Reply content */
.reply-content {
    background-color: #f1f1f1;
    width: 100%;
    padding: 10px;
}

.reply-content h4 {
    margin: 0;
    color: #555;
    text-transform: capitalize;
}

.occupation {
    color: #999;
    margin-bottom: 10px;
}

.reply-content .reply-text {
    color: #333;
}

.reply-content small {
    color: crimson;
    text-align: center;
}

@media only screen and (max-width: 768px) {
    #post-1 .content-post {
        font-size: medium;
    }
}

@media only screen and (max-width: 480px) {
    #post-1 .content-post {
        font-size: medium;
    }
}

/* ABOUT */
#about {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem 0px;
}

#about h2 {
    margin: 2rem 0;
    color: #555;
    text-align: center;
}

.about {
    max-width: 800px;
    line-height: 30px;
    color: #777;
    align-self: center;
    padding: .5rem;
}

#about h4 {
    color: crimson;
    margin: 1.5rem 0;
    align-self: center;
}

#about p {
    align-self: center;
    color: #777;
    margin-left: 5px;
}

#about-list {
    margin: 1.5rem;
    align-self: center;
    color: #777;
}

@media (max-width: 768px) {
    .about {
        text-align: justify;
    }
}

/* PROFILE */

#profile {
    max-width: 600px;
    margin: 20px auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-family: sans-serif;
}

#profile img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 20px;
}

.profile h2 {
    margin-bottom: 10px;
    color: #333;
    text-align: center;
}

.profile p {
    margin-bottom: 5px;
    color: #666;
}

.profile p a {
    color: #666;
}

/* REPORT */
.report {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.injustice-report {
    color: #555;
    margin-bottom: 20px;
}

#main-content p {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 25px;
    color: #666;
}

#main-content .link {
    color: #666;
}

@media screen and (max-width: 1200px) {
    .container {
        padding: 0 10px;
    }

    #main-content p {
        text-align: justify;
    }
}

/* DONATE */

.donate {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.donate-section {
    margin-bottom: 20px;
}

.donate-section>h2 {
    color: #555;
    margin-bottom: 20px;
}

.donate-section .link {
    color: #666;
}

.donate-section p {
    margin-bottom: 10px;
    font-size: 16px;
    color: #666;
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    .donate-section p {
        text-align: justify;
    }
}