:root {
  --white: #ffffff;
  --black: #000000;
  --dark-grey: #4A4A4A;
  --primary-color: #091733;
  --yellow-color: #DAA520;
  --light-yellow-color: #F4F0E7;
  --heading-yellow-color: #DCC5A2;
  --dark-yellow-color: #B9A082;

}

/*---------- Blog CSS start -----------*/

.blog-list p {
    font-size: 16px;
}

.blog-list .blog-date {
    font-size: 18px;
    color: var(--primary-color);
}

.blog-list .blog-text {
    background-color: #fff;
    padding: 0 20px 20px 20px;
    display: inline-block;
    width: 100%;
}

.blog-list .blog-text a {
    color: var(--primary-color);
}

.blog-list .blog-text a:hover {
    color: var(--yellow-color);
    text-decoration: underline;
}

.blog-list .grid-blog {
    margin-left: calc(var(--bs-gutter-x)* -.9);
    margin-right: calc(var(--bs-gutter-x)* -.9);
}

.blog-list .grid-blog:after {
    content: '';
    display: block;
    clear: both;
}

.blog-list .grid-item {
    float: left;
}

.blog-list .grid-item img {
    display: block;
    max-width: 100%;
}

.blog-details {
    margin-top: 129px;
    display: inline-block;
    width: 100%;
}

.blog-details .share-icon {
    font-size: 18px;
    font-weight: 400;
    float: left;
    position: relative;
    z-index: 1;
}





.blog-details .article-sec {
  margin-top: 4rem;
}

.blog-details .blog-post-date {
    background-color: var(--primary-color);
    padding: 20px 40px;
    color: var(--white);
  display: block;
  width: max-content;
    bottom: 40px;
    font-size: 18px;
    font-weight: 500;
}

.blog-details .main-ttl {
    color: #fff;
}

.blog-details .main-ttl p {
    font-size: 18px;
    color: var(--black);
}

.blog-details ul {
    list-style: disc;
    margin-left: 25px;
}

.blog-details ul li {
    font-size: 18px;
    padding: 5px;
}

.whole-gallery {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 100%;
    color: var(--white);
    background-color: rgba(9, 23, 51, .7);
    /* padding: 93px 40px; */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: "Montserrat";
    font-size: 24px;
    font-weight: 600;
    
}

.totop-overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
background: #000000;
background: -webkit-linear-gradient(0deg, rgba(0, 0, 0, 0.63) 7%, rgba(255, 255, 255, 0) 43%);
background: -moz-linear-gradient(0deg, rgba(0, 0, 0, 0.63) 7%, rgba(255, 255, 255, 0) 43%);
background: linear-gradient(0deg, rgba(0, 0, 0, 0.63) 7%, rgba(255, 255, 255, 0) 43%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000", endColorstr="#FFFFFF", GradientType=0);
}

.blog-gallery img {
    transition: transform 0.5s ease;
    -webkit-transition: transform 0.5s ease;
}

.blog-gallery img:hover {
    transform: scale(1.2);
    -webkit-transform: scale(1.2);
}

.similar-posts {
    background-color: #F8F8F8;
}

.similar-posts .posts-slider {
    overflow: hidden;
    position: relative;
}

.similar-posts a {
    color: var(--dark-grey);
}

.similar-posts a:hover {
    color: var(--black);
    text-decoration: underline;
}



.blog-list .blog-item:nth-child(6n + 2) img, .blog-list .blog-item:nth-child(7n) img{

    width: 100%;
    height: 405px;
    object-fit: cover;
    object-position: center;
}

.blog-list .blog-item:nth-child(6n + 3) img, .blog-list .blog-item:nth-child(6n + 4) img{

    width: 100%;
    height: 317px;
    object-fit: cover;
    object-position: center;
}

.blog-list .blog-item:nth-child(6n + 5) img, .blog-list .blog-item:nth-child(6n + 6) img{

    width: 100%;
    height: 570px;
    object-fit: cover;
    object-position: center;
}

.blog-gallery{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.blog-gallery .gallery-item:nth-child(1), .blog-gallery .gallery-item:nth-child(2), .blog-gallery .gallery-item:nth-child(3), .blog-gallery .gallery-item:nth-child(4) {
    display: block;
}

.blog-gallery .gallery-item:nth-child(3), .blog-gallery .gallery-item:nth-child(4) {
    grid-column: span 1;
}

.blog-gallery .gallery-item{
    width: 100%;
    height: 265px;
    padding: 0;
    display: none;
}

.blog-gallery .gallery-item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.blog-gallery .gallery-item:nth-child(2){
    grid-column: span 2;
}

.blog-gallery .gallery-item:nth-child(1){
    grid-row: span 2;
    grid-column: span 2;
    height: 100%;
}

.blog-details-text h2, .blog-details-text h3 {
    font-size: 32px;
    font-weight: bold;
    font-family: "Cinzel";
    color: #4A4A4A;
    margin: 15px 0;
}

.blog-details-text a{
    word-break: break-all;
    color: #D9A346;
}

.blog-details-text p{
    margin-bottom: 15px;
}

.blog-details-text ol, .blog-details-text ul{
    padding-left: 25px;
}

.blog-list .grid-blog{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.blog-list .grid-blog .blog-item img{
height: 423px;
}

.blog-list .grid-blog .blog-item h4{
    color: var(--primary-color);
    letter-spacing: 5px;
    font-weight: 500;
    font-size: 24px;
}


.pagination {
    list-style: none;
    width: 100%;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding-top: 30px;
    height: -moz-max-content;
    height: max-content;
    grid-column: span 3;
}

.pagination li a {
    color: #1e2431;
    width: 39px;
    height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    font-size: 24px;
    border: 1px solid var(--primary-color);
}

.pagination li .active {
    background-color: var(--primary-color);
    color: #fff;
}

.pagination li .active {
    background-color: var(--primary-color);
    color: #fff;
}

.pagination li.arrow a {
    border: none;
}
.pagination li:last-child a {
    background-color: transparent;
}

.blog-details-img img{
    width: 100%;
    height: 525px;
 
}

.blog-details-img{
    position: relative;
}

.blog-details-img .container.date {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);

}

.blog-details-img .container.title{
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.share-cont{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px;
    margin-bottom: 50px;
    padding: 20px 0;
    border-top: 1px solid rgba(9, 23, 51, 0.2);
    border-bottom: 1px solid rgba(9, 23, 51, 0.2);
}

.next-post{
    font-size: 18px;
    font-weight: 400;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.next-post img{
    margin-left: 15px;
}

.similar-posts h2{
    font-weight: 400;
    color: var(--primary-color);
}



/*---------- Media Css Start -----------*/
@media only screen and (max-width:1024px) {
    .blog-list .grid-sizer, .blog-list.grid-item {
        width: 50%;
    }

    .blog-details ul li {
        font-size: 16px;
    }

}

@media only screen and (max-width:992px) {
.blog-list .grid-blog{
    grid-template-columns: 1fr 1fr;
}

    .blog-gallery{
        grid-template-columns: 1fr;
        gap: 5px;
    }



    .blog-gallery .gallery-item:nth-child(1){
        grid-row: span 1;
        grid-column: span 1;
        height: 265px;
    }
    
     .blog-gallery .gallery-item:nth-child(2){
        grid-column: span 1;
     }
}

@media only screen and (max-width:767px) {
    .blog-list .grid-blog{
        grid-template-columns: 1fr;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .blog-list .grid-blog .blog-item img{
        height: 300px !important;
    }
    .blog-gallery{
        padding: 0 0.75rem;
        margin-top: 1rem !important;
    }

        .blog-gallery .gallery-item:nth-child(1){
            height: 200px;
        }

    .blog-gallery .gallery-item{
        height: 200px;
    }

.whole-gallery{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 25px;
}

    .blog-list .grid-sizer, .blog-list.grid-item {
        width: 100%;
    }

    .blog-details {
        margin-top: 120px;
    }

    .blog-details .share-icon {
        width: 100%;
        writing-mode: inherit;
        font-size: 18px;
      
    }

    .blog-details .share-icon a {
        display: inline-block;
        vertical-align: middle;
        margin-top: 0;
    }

    .blog-details .article-sec {
        padding-left: 0;
        display: inline-block;
        width: 100%;
    }

    .blog-details .blog-post-date {
        font-size: 14px;
        bottom: 20px;
        padding: 12px 20px;
    }

    .next-post{
        width: 100%;
        font-size: 16px;
        justify-content: flex-end;
    }

}