/* ===========================
   NEWS ARTICLE
=========================== */

.news-article{

    max-width:900px;

    margin:50px auto;

    padding:0 20px;

}


.news-article article{

    background:#fff;

    padding:40px;

    border-radius:12px;

    box-shadow:
    0 3px 12px rgba(0,0,0,.12);

}


/* ===========================
   TITLE
=========================== */

.news-article h1{

    font-size:38px;

    color:#222;

    margin-bottom:10px;

    line-height:1.3;

}


.article-date{

    color:#82BE21;

    font-weight:bold;

    margin-bottom:30px;

}


/* ===========================
   MAIN ARTICLE IMAGE
=========================== */

.article-image{

    width:100%;

    height:auto;

    max-height:600px;

    object-fit:contain;

    border-radius:10px;

    margin-bottom:30px;

}


/* ===========================
   ARTICLE CONTENT
=========================== */

.article-content{

    color:#444;

    font-size:17px;

    line-height:1.8;

}


.article-content p{

    margin-bottom:20px;

}


/* ===========================
   TINYMCE ARTICLE IMAGES
=========================== */

/*
Makes editor images large enough
on desktop while keeping them
inside the article.
*/

.article-content img{

    display:block;

    width:85% !important;

    max-width:650px !important;

    height:auto !important;

    margin:30px auto;

    object-fit:contain;

    border-radius:10px;

}


/*
Prevents images inside links
from overflowing.
*/

.article-content a img{

    max-width:100%;

}


/* ===========================
   BACK BUTTON
=========================== */

.back-news{

    display:inline-block;

    margin-top:35px;

    color:#ff7b00;

    text-decoration:none;

    font-weight:bold;

}


.back-news:hover{

    color:#82BE21;

}


/* ===========================
   NEWS GALLERY
=========================== */

.news-gallery{

    margin-top:50px;

}


.news-gallery h2{

    font-size:30px;

    color:#222;

    margin-bottom:25px;

}


/* ===========================
   GALLERY GRID
=========================== */

.gallery-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:30px;

}


/* ===========================
   GALLERY IMAGES
=========================== */

.gallery-grid img{

    width:100%;

    height:auto;

    max-height:600px;

    display:block;

    object-fit:contain;

    background:#f4f4f4;

    border-radius:10px;

}


.gallery-item{

    display:flex;

    flex-direction:column;

}


.gallery-caption{

    margin-top:10px;

    text-align:center;

    font-size:15px;

    color:#666;

    line-height:1.5;

}


/* =====================================
   ARTICLE NEW BADGE
===================================== */

.article-new-badge {

    display:inline-block;

    background:#ff6600;

    color:#ffffff;

    padding:6px 12px;

    border-radius:20px;

    font-size:0.75rem;

    font-weight:800;

    letter-spacing:1px;

    margin-bottom:15px;

}


/* ===========================
   TABLET
=========================== */

@media(max-width:900px){

    .gallery-grid{

        grid-template-columns:repeat(2,1fr);

    }


    .article-content img{

        max-width:100%;

    }

}


/* ===========================
   MOBILE
=========================== */

@media(max-width:768px){

    .news-article{

        margin:30px auto;

        padding:0 15px;

    }


    .news-article article{

        padding:25px;

    }


    .news-article h1{

        font-size:28px;

    }


    .article-content{

        font-size:16px;

    }


    .article-content img{

        width:90% !important;

        max-width:90%;

        height:auto !important;

        margin:25px auto;

        border-radius:8px;

    }

}


@media(max-width:600px){

    .gallery-grid{

        grid-template-columns:1fr;

    }


    .gallery-grid img{

        max-height:none;

    }


    .news-gallery h2{

        font-size:26px;

    }

}


/* =========================================
   NEWS FEEDBACK / COMMENTS
========================================= */

.news-feedback {

    margin-top: 65px;

    padding: 40px;

    background: #f5f5f2;

    border-radius: 14px;

    border: 1px solid #e3e3df;

}


/* =========================================
   ARTICLE LIKE
========================================= */

.article-like {

    margin-top: 30px;

    margin-bottom: 45px;

}


/* =========================================
   ARTICLE LIKE BUTTON
========================================= */

.like-button {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding: 8px 14px;

    border: 1px solid #82BE21;

    border-radius: 6px;

    background: #82BE21;

    color: #fff;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;

}


.like-button:hover {

    background: #6fa51b;

    border-color: #6fa51b;

    transform: translateY(-1px);

}


.like-button span {

    font-weight: 700;

}


/* =========================================
   COMMENTS HEADING
========================================= */

.comments-heading {

    display: flex;

    align-items: baseline;

    justify-content: space-between;

    margin-bottom: 25px;

    padding-bottom: 15px;

    border-bottom: 2px solid #ddd;

}


.comments-heading h2 {

    margin: 0;

    font-size: 30px;

    color: #222;

}


.comments-heading span {

    color: #777;

    font-size: 14px;

}


/* =========================================
   COMMENTS LIST
========================================= */

.comments-list {

    display: flex;

    flex-direction: column;

    gap: 15px;

    margin-bottom: 40px;

}


.comment {

    padding: 20px 22px;

    background: #fff;

    border-radius: 10px;

    border: 1px solid #e2e2e2;

}


.comment-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 10px;

}


.comment-header strong {

    font-size: 16px;

    color: #222;

}


.comment-header span {

    color: #888;

    font-size: 13px;

}


.comment p {

    margin: 0;

    line-height: 1.6;

    color: #333;

}


.no-comments {

    color: #777;

    margin-bottom: 35px;

}


/* =========================================
   COMMENT FORM
========================================= */

.comment-form {

    padding: 30px;

    background: #fff;

    border-radius: 12px;

    border: 1px solid #e2e2e2;

    box-shadow: 0 2px 8px rgba(0,0,0,.06);

}


.comment-form h3 {

    margin-top: 0;

    margin-bottom: 8px;

    font-size: 24px;

    color: #222;

}


.comment-form h3::after {

    content: "";

    display: block;

    width: 45px;

    height: 3px;

    margin-top: 10px;

    background: #82BE21;

    border-radius: 3px;

}


/* =========================================
   FORM GROUPS
========================================= */

.form-group {

    margin-bottom: 20px;

}


.form-group label {

    display: block;

    margin-bottom: 7px;

    font-weight: bold;

    color: #333;

}


.form-group label span {

    font-weight: normal;

    color: #888;

    font-size: 13px;

}


.form-group input,
.form-group textarea {

    width: 100%;

    padding: 12px 14px;

    border: 1px solid #ccc;

    border-radius: 7px;

    font-family: inherit;

    font-size: 15px;

    background: #fff;

    transition: border-color .2s ease,
                box-shadow .2s ease;

}


.form-group input:focus,
.form-group textarea:focus {

    outline: none;

    border-color: #82BE21;

    box-shadow: 0 0 0 3px rgba(130,190,33,.12);

}


.comment-submit {

    border: none;

    padding: 12px 24px;

    border-radius: 25px;

    background: #82BE21;

    color: #fff;

    font-size: 15px;

    font-weight: bold;

    cursor: pointer;

    transition: 0.2s ease;

}


.comment-submit:hover {

    opacity: 0.9;

    transform: translateY(-1px);

}


/* =========================================
   COMMENT SUCCESS
========================================= */

.comment-success {

    margin-bottom: 30px;

    padding: 15px 20px;

    background: #fff;

    border-left: 4px solid #82BE21;

    border-radius: 7px;

    color: #333;

    border-top: 1px solid #e2e2e2;

    border-right: 1px solid #e2e2e2;

    border-bottom: 1px solid #e2e2e2;

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .news-feedback {

        margin-top: 45px;

        padding: 25px 20px;

        border-radius: 12px;

    }


    .comments-heading {

        align-items: flex-start;

        gap: 8px;

        flex-direction: column;

    }


    .comments-heading h2 {

        font-size: 26px;

    }


    .comment-header {

        align-items: flex-start;

        gap: 5px;

        flex-direction: column;

    }


    .comment {

        padding: 18px;

    }


    .comment-form {

        padding: 20px;

    }

}


/* =========================================
   COMMENT SUCCESS
========================================= */

.comment-success {

    margin-bottom:30px;

    padding:15px 20px;

    background:#f5f5f2;

    border-left:4px solid #82BE21;

    border-radius:6px;

    color:#333;

}


/* =========================================
   COMMENT LIKE BUTTON
========================================= */

.comment-like {

    margin-top: 12px;

}


.comment-like-button {

    display: inline-flex;

    align-items: center;

    gap: 5px;

    padding: 5px 10px;

    border: 1px solid #82BE21;

    border-radius: 5px;

    background: #82BE21;

    color: #fff;

    font-size: 13px;

    font-weight: 500;

    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;

}


.comment-like-button:hover {

    background: #6fa51b;

    border-color: #6fa51b;

    transform: translateY(-1px);

}


.comment-like-button span {

    font-weight: 600;

}
