/*

font-family: 'Montserrat', sans-serif;
font-family: 'Raleway', sans-serif;

*/

*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

:root {
    --primary: #234814;
    --accent: #7AC64D;
    --background: #F3F3F3;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --heading: 'Montserrat', sans-serif;
}

body{
    font-family: 'Raleway', sans-serif;
    background: #fff;
}

/* global styling */

img{
    width: 100%;
}
ul{
    list-style: none;
}

a{
    text-decoration: none;
    color: #000;
}

hr{
    width: 95vw;
    margin: 0 auto;
}

/* header */
.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 5px;
}

.logo img {
    height: 140px; /* Adjust the height of the logo as needed */
    width: 200px; /* Maintain aspect ratio */
    margin-top: 10px;
}

.page-title {
    text-align: center;
    margin-bottom: 15px;
    font-family: var(--heading);
    color: #000000;
    font-size: 1.8rem;
}

/******* js related styling *****/

.nav-bar{
    background: #333;
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
}

.show-nav{
    height: auto;
    background: var(--primary);
}

/********************/

.nav-bar ul li{
    text-align: center;
    display: block;
    padding: 15px 0;
    transition: all 1s ease-in-out;
}

.nav-bar ul li:hover{
    background: #0e0e0e;
}

.nav-bar ul li a{
    color: #fff;
    text-transform: uppercase;
}

.nav-bar ul li a:hover{
    text-decoration: underline;
}

/* banner */
.img-link-btn {
    width: auto;
    height: 50px;
    padding: 8px 0px;
    display: block;
    border-radius: 4px;
    margin: 10px 0 10px 10px;
}

.banner{
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    padding: 30px 0;
    margin-top: 8px;
}

.banner-main-content{
    padding: 0 2rem;
    line-height: 1.7;
}

.banner-main-content h2{
    font-size: 1.7rem;
    font-family: var(--heading);
    color: #234814;
}

.banner-main-content h3{
    padding: 1rem 0;
}

.banner-main-content button{
    border: none;
    background: #234814;
    padding: 14px 18px;
    font-size: 1.2rem;
    font-family: 'Montserrat', sans-serif;
    transition: background 1s ease;
}

.banner-main-content button a{
    color: #f3f3f3f3;
    transition: color 1s ease;
}

.banner-main-content button:hover{
    background: #fff;
}

.banner-main-content button:hover a{
    color: #0d0a0b;
}

.current-news-head{
    background: #fff;
    padding: 20px;
    font-size: 12px;
    margin: 20px 0;
}

.current-news-head h3{
    padding: 6px;
    cursor: pointer;
    position: relative;
    font-size: 17px;
}

.current-news-head h3:hover::before{
    content: ">> ";
    position: absolute;
    left: -12px;
}

.current-news-head span{
    display: block;
    font-family: var(--heading);
    font-weight: 300;
    text-transform: uppercase;
    font-size: 13px;
}

.hot-topic {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 12px;
    height: 300px;
}

.hot-topic img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hot-topic:hover img {
    transform: scale(1.05);
    filter: brightness(85%) blur(0.5px); /* Optional: reduces blur slightly on hover */
}

.hot-topic-content {
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    padding: 10px 20px;
    line-height: 1.3;
    color: #f3f3f3;
}

.hot-topic h2 {
    padding: 10px 0;
    font-size: 18px;
    text-shadow: 0 0 2px #000;
}

.hot-topic h3 {
    padding: 10px 0;
    font-size: 16px;
    text-shadow: 0 0 2px #000;
}

.hot-topic p {
    padding: 10px 0;
    font-size: 15px;
    text-shadow: 0 0 2px #000;
    padding: 12px 10px;
}

/* Thicker, more prominent h3 */
.hot-topic-content h3 {
    padding: 10px 0;
    font-size: 18px;
    font-weight: 700; /* Bolder text */
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8); /* Shadow for extra emphasis */
}

/* Thicker paragraph text */
.hot-topic-content p {
    padding: 10px 0;
    font-size: 15px;
    font-weight: 500; /* Slightly bold for thickness */
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.7); /* Shadow for readability */
}

.hot-topic-content img {
    width: auto;
    height: 50px;
    padding: 8px 0px;
    display: block;
    border-radius: 4px;
    margin: 10px 0 10px 10px;
}

/** main ***/

main a{
    padding: 15px 0;
    display: block;
    transition: all 0.5s;
}

main span{
    transition: padding-left 0.5s;
}

main a:hover span{
    padding-left: 5px;
}

main a:hover{
    color: #7ac64d;
}

/* main container left */

.main-container-left{
    padding: 30px 10px;
}

.main-container-left > h2{
    padding: 15px 0 15px 30px;
    color: var(--primary);
    font-family: var(--heading);
}

.main-container-left h3{
    padding: 10px 0;
    font-size: 18px;
    font-family: var(--heading);
}

.main-container-left p{
    font-size: 15px;
    font-weight: 300;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    max-height: 3em; /* 2 lines × 1.5 line-height */
}

.main-container-left article{
    padding: 10px;
}

.container-top-left{
    padding: 15px 30px;
}

.container-bottom-left{
    background: transparent;
    margin: 15px 30px;
}

/*** main container right */

.main-container-right{
    padding: 30px 10px;
}

.main-container-right > h2{
    padding: 15px 0 15px 30px;
}

.main-container-right article{
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    padding: 15px 0;
    border-bottom: 1px solid var(--primary);
}

.main-container-right article:last-child{
    border-bottom: none;
}

.main-container-right-img{
    width: 100px;
    height: 100px;
    align-self: center;
}

.main-container-right h4{
    text-align: center;
    text-transform: uppercase;
    font-weight: 300;
    font-size: 12px;
    align-self: center;
}

.main-container-right article h2{
    font-size: 18px;
    padding: 10px 0;
    font-family: var(--heading);
}

.main-container-right article p{
    font-size: 15px;
    font-weight: 300;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    max-height: 3em; /* 2 lines × 1.5 line-height */
}

.main-container-right article div{
    margin-right: 10px;
}

/****** footer *****/
.footer {
    display: flex;
    justify-content: space-between;
    background-color: var(--primary);
    color: white;
    padding: 20px 40px;
    font-size: 14px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer-logo {
    height: auto;
    width: 100px;
}

.footer-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}

.footer-top-right {
    margin-bottom: 30px;
}

.footer-text {
    margin-bottom: 30px;
}

.footer-text .highlight {
    color: #ff4d4d; /* Red color for "NEWS 9.9.99" */
    font-weight: bold;
}

.top-right-img {
    width: 80px; /* Adjust based on your image size */
    height: auto;
    margin-bottom: 10px;
}

.footer-contact .contact-btn {
    background-color: white;
    color: black;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.footer-contact .contact-btn:hover {
    background-color: #f0f0f0;
}

@media(max-width: 460px){
    .hot-topic-content h2{
        font-size: 16px;
    }

    .main-container-right article{
        display: block;
    }

    .main-container-right article img{
        display: none;
    }
}

@media(max-width: 500px){
    .main-container-right article{
        grid-template-columns: 1fr 3fr;
        grid-template-rows: 1fr 1fr;
    }

    .main-container-right article h4{
        grid-row: 1/2;
        grid-column: 1/2;
        align-self: flex-start;
    }

    .main-container-right article img{
        grid-row: 2/3;
        grid-column: 1/2;
    }

    .main-container-right article div{
        grid-row: 1/3;
        grid-column: 2/3;
    }
}

@media(min-width: 768px){
    .banner-sub-content{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .container-bottom-left{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

.navigation-container {
    background: var(--primary);
}

@media(min-width: 800px){
    /* nav */
    .ham-btn, .times-btn{
        display: none!important;
    }

    .navigation-container{
        display: flex;
        background: #234814;
        align-items: center;
        flex-wrap: wrap;
    }

    .nav-bar{
        flex: 1 0 auto;
        height: 100%;
        background: transparent;
    }

    .nav-bar nav ul{
        display: flex;
        justify-content: center;
    }
    .nav-bar nav ul li{
        padding-right: 30px;
    }

    .nav-bar nav ul li:hover{
        background: none;
    }
}

@media (max-width: 799px) {
    .footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .footer-left, .footer-right {
        align-items: center;
        margin-bottom: 20px;
    }

    .footer-contact .contact-btn {
        width: 100%;
        max-width: 250px;
        padding: 12px 20px;
        font-size: 16px;
    }

    .top-right-img {
        width: 60px;
        margin-bottom: 15px;
    }
}

@media(min-width: 992px){
    main{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(min-width: 1080px){
    .banner{
        grid-template-columns: 1fr 2fr;
    }
}

.ham-btn {
    background: transparent;
    border: none;
    font-size: 30px;
    color: #ffffff;
    padding: 10px;
    display: block;
    cursor: pointer;
}

@media(min-width: 800px){
    .ham-btn {
        display: none;
    }
}

/* Article Detail Page Layout */
.article-detail-container {
    display: flex;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    gap: 2rem;
}

/* Left Side (Article Content) - 3/4 width */
.article-content {
    flex: 3;
    padding: 1rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
    border-radius: 8px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-meta i {
    color: var(--primary);
}

.article-title {
    font-family: var(--heading);
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.article-body {
    line-height: 1.6;
    font-size: 1rem;
    color: var(--text-dark);
}

/* Right Side (Latest News) - 1/4 width */
.latest-news {
    flex: 1;
    padding: 1rem;
    background: var(--background);
    border-radius: 8px;
}

.latest-news h2 {
    font-family: var(--heading);
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--primary);
}

.news-item:last-child {
    border-bottom: none;
}

.news-item .days-ago {
    font-size: 0.85rem;
    color: var(--primary);
    min-width: 60px;
}

.news-item a {
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.news-item a:hover {
    color: var(--accent);
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-detail-container {
        flex-direction: column;
    }

    .article-content,
    .latest-news {
        flex: 1;
    }

    .article-title {
        font-size: 2rem;
    }

    .latest-news {
        background: transparent;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 1.8rem;
    }

    .article-meta {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .news-item .days-ago {
        min-width: 50px;
        font-size: 0.8rem;
    }

    .news-item a {
        font-size: 0.9rem;
    }
}