
    main {
        width: 100%;
        display: flex;
        justify-content: space-between;
        gap: 20px;
        padding: 8rem 6rem;
        border-radius: 8px;
    }

    #news-details {
        width: 100%;
        padding-right: 1rem; /* Adjusted for better spacing */
        box-shadow: 0 0 15px rgba(192, 109, 0, 0.158);
        border-radius: 20px;
        padding: 1rem;
    }

    #news-details h4{
        color: rebeccapurple;
        padding-block: 0.8rem;
    }
    #news-details p{
        color: rgb(70, 67, 67);
        padding-block: 0.8rem;
        margin-bottom: 10px;
    }

    .related-news {
        width: 300px; /* Fixed width */
        padding: 1rem;
        box-shadow: 0px 8px 15px rgba(43, 20, 1, 0.137);
        border-radius: 20px;
        margin-bottom: 20px;
    }

    .news-content h2 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .news-content small {
        color: #666;
        display: block;
        margin-bottom: 1rem;
    }

    .news-content .img-div {
        width: 100%;
        height: 400px;
        border-radius: 12px;
        overflow: hidden;
        margin-bottom: 1rem;
    }

    .news-content img {
        width: 100%;
        height: 100%;
        margin-bottom: 1rem;
    }

    .news-content p {
        line-height: 1.6;
        color: #333;
    }

    .item{
        background: #228b22;
    }

    #Newsletter{
        padding: 1rem;
        box-shadow: 0px 8px 20px #ddd;
        border-radius: 20px;
    }

    #Newsletter form{
        display: flex;
        align-items: center;
        gap: 10px;
    }

    #Newsletter form input{
        padding: 6px 12px ;
        border: 1px solid #ddd;
        border-radius: 12px;
    }

    form button{
        border: none;
        padding: 6px 22px;
        font-size: 1rem;
        border-radius: 5px;
        background: #f06000;
        color: #fff;
        transition: 0.5s ease;
    }

    form button:hover{
        background: #fff;
        box-shadow: 0px 6px 12px #ddd;
        color: #f06000;
        cursor: pointer;
    }

    .go-back{
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 30px;
    }

    .go-back a{
        text-decoration: none;
        padding: 6px 12px;
        padding-bottom: 8px;
        background: #f06000;
        border-radius: 4px;
        color: #fff;
        font-size: 1rem;
        font-weight: 500;
        transition: 0.5s ease-in-out;
        box-shadow: 0px 6px 12px rgba(51, 51, 51, 0.397);
    }

    .go-back a:hover{
        background: #fff;
        color: #f06000;
        cursor: pointer;
    }

/* /////////////////////////////side content///////// */

    .side-content{
        width: 300px;
        min-height: 100vh;
        display: flex;
        position: static;
        top: 20px;
        flex-direction: column;
    }
    .related-news h3 {
        text-align: center;
        font-size: 1.5rem;
        margin-bottom: 1rem;
        color: rgb(235, 121, 15);
    }

    .related-news-item {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 1rem;
        padding: 1rem;
        background-color: #faf9f9;
        border-radius: 5px;
        /* box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); */
        text-decoration: none;
        color: inherit;
        transition: 0.5s ease;
    }

    .related-news-item:hover {
        background-color: #f06000;
        color: #fff;
    }

    .related-news-item:hover h4{
        color: #fff;
    }

    .related-news-item img {
        width: 80px;
        height: 80px;
        border-radius: 5%;
        object-fit: cover;
        margin-right: 1rem;
    }

    .related-news-item div {
        flex: 1;
    }

    .related-news-item h4 {
        margin: 0 0 0.5rem 0;
        color: #228b22; /* Forest green */
    }

    .related-news-item p {
        margin: 0;
        color: #666;
    }

    /* Media Queries */
    @media screen and (max-width: 1084px) {
        main{
            padding: 2.5rem;
        }
        #news-details {
            max-width: 680px;
        }

        .side-content{
          
            overflow: hidden;
            background: #666;
        }

        .related-news{
            width: 100%;
        }
        .related-news img{
            width: 40px;
            height: 40px;
        }

        .related-news a{
           font-size: 0.7em;
        }

        #Newsletter{
            padding: 0.5rem;
        }
        #Newsletter form{
            display: flex;
            flex-direction: column;
        }

        #Newsletter form input{
           width: 100%;
           margin-bottom: 12px;
        }

    }


    @media screen and (max-width: 980px) {
        #news-details{
            max-width: 600px;
        }
        .related-news a{
            display: flex;
            flex-direction: column;
        }
    }


    @media screen and (max-width: 890px) {
        #news-details{
            max-width: 580px;
        }
        /* .related-news{
            background: #228b22;
        } */
        .related-news a{
            display: flex;
            flex-direction: column;
        }
    }


    @media (max-width: 780px) {
        main {
            padding: 2.5rem;
            flex-direction: column;
            align-items: center;
        }

        #news-details {
            max-width: 600px;
            padding-right: 0;
            margin-bottom: 2rem;
        }

        .side-content{
            width: 100%;
        }

        .related-news {
            width: 100%;
            padding: 0.8rem;
        }

        .related-news img{
            width: 80px;
            height: 80px;
            border-radius: 0;
        }

        .related-news a{
            display: flex;
            flex-direction: row;
            font-size: 0.9em;
            background: #ccc;
        }
    }

    @media (max-width: 480px) {
        main{
            padding: 0.8rem;
        }
        .news-content h2 {
            font-size: 1.5rem;
            padding: 0.8rem;
        }

        .news-content p {
            font-size: 0.875rem;
        }

        .related-news-item img {
            width: 80px;
            height: 80px;
        }
        .related-news{
            padding: 0.8rem;
        }
        #Newsletter{
            padding: 0.8rem;
        }
    }
/*///////container query//////// */
.img-div img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}


