/* Featured Image */
section.featured-image{
    height: 30rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
/*section.article-header, section.main-content{
    padding:0 2.5rem;
}*/
section.main-content{
   margin-bottom: 4rem;
}
section.main-content p{
    font-size:1.6rem;
    line-height: 2.5rem;
}
figure.wp-block-image{
    margin:3rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
figcaption.wp-element-caption{
    font-size:1.2rem;
    margin-top: 2rem;
    color: rgba(0,0,0,0.7);
}
.post-title {
    font-style: normal;
    font-weight: 800;
    font-size: 1.8rem;
    line-height: 2.5rem;
    text-align: center;
    color: #000000;
    margin-top:3rem;
}
.recommended-single-wrapper {
    padding: 30px;
}
div.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    }
div.iframe-wrapper{
    position: relative;
    margin:3rem auto;
    overflow: hidden;
    max-width:1024px;
    width: 100%;
    padding-top: 56.25%; 
}
div.wp-block-embed__wrapper{
    display:flex;
    justify-content: center;
}
div.post-meta{
    font-size: 1rem;
    line-height: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 0.4rem;
    margin-bottom: 3rem;
    color:rgba(0,0,0,0.8);
    text-align: center;
}
div.post-meta a{
    color:rgba(0,0,0,0.8);
}

.recommended-single-wrapper {
    padding: 30px;
}

/* Styling for the recommended posts section */
.recommended-section {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Styling for each recommended post */
.recommended-post {
    width: 100%;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    text-decoration: none;
}

/* Styling for the thumbnail image */
.recommended-post img {
    max-width: 100px;
    max-height: 100px;
    margin-right: 1rem;
}

/* Styling for the post title */
.recommended-post h3 {
    margin: 0;
    font-size: 1.2em;
    color: #333;
    text-decoration: none;
}

/* Style for links in recommended posts */
.recommended-post a {
    text-decoration: none;
}

.recommended-post a:hover {
    text-decoration: underline;
}

div.post-meta div.desktop{
    display: none;
}
div.post-meta div.mobile{
    display: block;
}
div.post-tags{
    display: flex;
    flex-wrap: wrap;
    text-transform: uppercase;
    font-size: 1.8rem;
    padding:1rem 0;
    margin: 0 auto;
    justify-content: center;
    line-height: 3rem;
    border-top: 1px solid lightgray;
    border-bottom: 1px solid lightgray;
}
div.post-tags a{
    color:rgba(0,0,0,0.8);
    width:auto;
    padding: 0 .5rem
}
@media (max-width:1245px){
    div.post-tags{
        font-size: 1rem;
        padding:0;
        line-height: 2rem;
    letter-spacing: 0.1rem;
    }
}
@media (min-width: 1245px){
    section.featured-image{
        height: 70rem;
    }
    /*section.article-header, section.main-content{
        padding:0 18vw;
    }*/
    section.main-content p{
        font-size:1.8rem;
        line-height: 4rem;

    }
    .post-title {
        font-size: 3.2rem;
        line-height: 4.2rem;
    }
    div.post-meta{
        font-size: 1.5rem;
        letter-spacing: 0.5rem;
    }
    div.post-meta div.mobile{
        display: none;
    }
    div.post-meta div.desktop{
        display: block;
    }
    div.video-player{
        margin-top:3rem;
    }
    .related-posts {
        position: relative;
        z-index: -1;}
}
/* Styles for the related posts section */
.related-posts {
   /* display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;*/
    background: white;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    grid-gap: 2rem;
    margin: 4rem;
}
.related-posts .post-card{
    padding:0;
}
.related-posts .post-card h2{
    max-height: 9.5rem;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 4;
    word-wrap: break-word;

}
/* Styles for each post card */
.post-card {
    /*flex-basis: 23%; /* Adjust the width as needed */
    margin-bottom: 20px;
    background: white;
}

/* Styles for the thumbnail container */
.post-card .thumbnail-container {
    position: relative;
    overflow: hidden;
    padding-top: 75%; /* Set the aspect ratio (height / width) of the thumbnail container */
}

/* Styles for the thumbnail image */
.post-card .thumbnail-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure the image fills the container while preserving aspect ratio */
}

/* Styles for the post title */
.post-card h2 {
    font-size: 16px;
    margin-top: 10px;
    line-height: 2.5rem;
}

/* Media query for mobile */
@media (max-width: 767px) {
    .post-card .thumbnail-container {
        height: 10rem;
        width: 10rem;
    }

    .related-posts .post-card h2{
        -webkit-line-clamp: 3;
        font-weight: 600;
    }

    main {
        background-color: white;
    }

    .related-posts-title {
        font-size: 2rem !important;
    }

    .related-posts {
        display: flex;
        flex-direction: column;
        gap: 0px;
        margin-bottom: 20px;
        background-color: white;
    }
    .related-posts div.post-card:nth-child(1){
        border-top:1px solid lightgray;
    }

    .post-card {
        display: grid;
        grid-template-columns: 10rem auto;
        grid-template-rows: auto auto;
        grid-template-areas:
      "thumbnail category"
      "thumbnail title";
        width: 100%; /* ensures that post cards take up full width */
        border-radius: 0;
        padding: 0;
        margin-bottom: 0;
        border-left:1px solid lightgray;
        border-right:1px solid lightgray;
        border-bottom:1px solid lightgray;
    }

    .thumbnail-container {
        grid-area: thumbnail;
    }

    .thumbnail-container img {
        height: 100px;
        width: 100px;
        object-fit: cover;
    }

    .category-name {
        grid-area: category;
        margin-left: 10px; /* some space between the image and text content */
    }

 

    .recommended-section h3 {
        font-size: 2rem !important;
    }
}

.recommended-section h3 {
    display: inline;
    font-size: 2rem;
    font-family: var(--secondary-font);
    font-style: italic;
    text-transform: uppercase;
    position: relative;
    z-index: 10;
    margin-bottom: 3rem;
}

.recommended-section h3:before {
    content: '';
    position: absolute;
    top: 50%;
    left: -2rem;
    width: calc(100% + 4rem);
    height: 2.5rem;
    background-color: #E1FFA3;
    z-index: -1;
}

.recommended-section h4 {
    font-size: 1.4rem;
    font-family: var(--primary-font);
    position: relative;
    z-index: 10;
    color: black;
    font-weight: 600;
    text-decoration: none;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 4;
    word-wrap: break-word;
    margin-bottom: 3.5rem;
    padding-top:1rem;
}


@media (max-width: 1245px){
    .recommended-section h4 {
        font-size: 1.4rem;
    }
    .post-card h2 {
        grid-area: title;
        margin-left: 1rem; /* some space between the image and text content */
        margin-right:1rem;
    }
    .post-card h2 {
        font-size: 1.4rem;
        line-height: 1.9rem;
    }
}

.recommended-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid lightgray;
    padding: 1.5rem;
    margin-top:2rem;
}

.recommended-post {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.post-link {
    margin-right: 20px;
}

.img-wrapper {
    width: 8rem;
    height: 8rem;
    overflow: hidden;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
cite {
    font-size: 3.4rem;
    font-family: var(--secondary-font);
    font-weight: bold;
    line-height:5.5rem;
    display: block;
    padding:3rem 0;
}
@media (max-width: 1245px){
    cite{
        font-size: 2rem;
       line-height: 3rem;
    }
    .post-card .thumbnail-container{
        line-height: 0%;
    }
}
blockquote.wp-block-quote{
    text-align: center;
}

.related-posts-title {
    display: inline;
    font-size: 3rem;
    font-family: var(--secondary-font);
    font-style: italic;
    text-transform: uppercase;
    position: relative;
    z-index: 10;
}
div.rec-4-u{
    border-top: 1px solid lightgray;
    padding-top: 3.5rem;
}
.related-posts-title:before {
    content: '';
    position: absolute;
    top: 50%;
    left: -30px;
    width: calc(100% + 60px);
    height: 25px;
    background-color: #E1FFA3;
    z-index: -1;
}

.category-name {
    font-family: Times New Roman, serif;
    font-size: 18px;
    margin-top: 10px;
    font-style: italic;
    font-weight: 700;
    line-height: 15px;
    letter-spacing: 0;
    text-align: left;
    color: #E24A6C;
    text-transform: uppercase;
}

.featured-image-credit {
    font-size: 11px;
    font-weight: 300;
    margin-bottom: 20px;
    margin-top: 10px;
    text-align: center;
    clear: both;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 13px;
    color: #6A6E79;
}
@media (min-width: 1245px){
    section.article-header{
        padding:0 8vw;
    }
    section.main-content{
        flex: calc(100% - 34rem);  
    }
    aside.sidebar{
        flex: 34rem;
        padding-left:2rem;
        height: 100%;
    }
    div.article-container{
        display: flex;
        flex-direction: row;
        gap: 2rem;
        padding:0 8vw;
    }
    div.in-cont-video-player{
        display: none;
    }
    div.vide-plyer{
        display: contents;
    }
}
@media (max-width: 1245px){
    section.article-header{
        padding:0 2rem;
    }
    div.article-container{
       padding:0 2rem;
    }
    div.article-container img{
        width:100%;
        height: 100%;
    }
    aside.sidebar{
        padding:0;
       margin:0 0 3rem 0;
       display:flex;
       justify-content: center;
       flex-direction:column;
    }
    div.article-container .social-share-buttons img {
        width: 4rem;
        margin-right: 2rem;
    }
    div.rec-4-u, .related-posts{
        position: relative;
        z-index:-1;
    }
    div.video-player{
        display:none;
    }
    div.recommended-section{
        display: none;
    }
}
.sidebar {
    position: relative; /* Ensures that the sidebar itself stays in place */
    /*height: 100vh;  Adjust this to fit your layout */
   /* overflow: hidden; Hides the overflow */
    flex-basis: 300px; /* Adjust this to set the width of the sidebar */
    min-height: 0; /* Allows the sidebar to shrink if the content is shorter */
    margin-bottom: 3rem;
}

.sidebar-content {
    position: sticky;
    top: 0;
    /*overflow-y: auto;  Makes the content scrollable */
    /*height: 100vh;  Adjust this to fit your layout */
    -ms-overflow-style: none;  /* for Internet Explorer and Edge */
    scrollbar-width: none;  /* for Firefox */
}

.sidebar-content::-webkit-scrollbar {
    display: none;  /* for Chrome, Safari, and Opera */
}

.single-page-ads.sidebar-ad {
    height:auto;
}

.single .leaderboard-ad {
    margin-top: 60px;
}

/* Recommended videos */
.recommended-videos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    justify-content: center;
}

.recommended-video {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    flex-basis: calc(33.333% - 20px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.recommended-video a {
    text-decoration: none;
    color: #9b51e0;
    font-size: 1.1em;
    font-weight: bold;
}

.recommended-video a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .recommended-video {
        flex-basis: calc(50% - 20px); /* 2 items per row on medium screens */
    }
}

@media (max-width: 480px) {
    .recommended-video {
        flex-basis: 100%; /* 1 item per row on small screens */
    }
}

div.custom-video-container{
    text-align: center;
}

@media (min-width: 1245px){
    h1.video-title{
        font-size: 3.2rem;
    }
    div.post-meta{
        font-size: 1.5rem;
        letter-spacing: 0.5rem;
        line-height: 2.2rem;
        text-transform: uppercase;
        margin-bottom: 3rem;
        color: rgba(0,0,0,0.8);
        text-align: center;
    }
}
