/* Opsters eSports Announcements - Enhanced Styling */
.recentNews {
    text-align: center;
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
    padding: 40px 0;
    position: relative;
    /* Removed margin auto and max-width here. It's now handled by parent */
}

.recentNews::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(255, 165, 0, 0.1));
    pointer-events: none;
}

.news-title {
    padding-top: 30px;
    padding-bottom: 30px;
    font-family: 'nimbus-sans-condensed', sans-serif;
    font-size: 55px;
    font-weight: bold;
    color: #ffcc00;
    text-shadow: 0 0 10px #ffaa00;
    text-transform: uppercase;
}

.recentNews .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
}

.recentNews .ct-blog {
    margin-bottom: 30px;
    flex: 0 0 calc(100% - 30px);
    max-width: calc(100% - 30px);
    margin: 0 15px 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (min-width: 576px) {
    .recentNews .ct-blog {
        flex: 0 0 calc(50% - 30px);
        max-width: calc(50% - 30px);
    }
}

@media (min-width: 992px) {
    .recentNews .ct-blog {
        flex: 0 0 calc(33.333% - 30px);
        max-width: calc(33.333% - 30px);
    }
}

.ct-blog.active {
    transform: translateY(-5px); /* Slight lift always */
    box-shadow: 0 10px 25px rgba(255, 204, 0, 0.3); /* More pronounced shadow with gold tint always */
}

.ct-blog .inner {
    background-color: #222;
    padding: 10px;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    border: 1px solid #444;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}


.ct-blog .fauxcrop {
    overflow: hidden;
    border-bottom: 2px solid #333;
}

.ct-blog .fauxcrop img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}


.ct-blog .inner:hover .fauxcrop img {
    transform: scale(1.05);
}


.ct-blog-content {
    padding: 20px;
    background-color: #2a2a2a;
    width: 100%;
}

.ct-blog-header {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.4em;
    font-weight: bold;
    text-align: center;
    width: 100%;
    color: #fff;
    text-shadow: 0 0 3px #aaa;
}

.ct-blog-content p {
    margin-top: 0;
    width: 100%;
    color: #eee;
    line-height: 1.6;
}

.ct-blog-content .read-more{
    color: #ffcc00;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    display: inline-block;
    position: relative;
    transition: color 0.3s ease;

}


.ct-blog-content .read-more:hover{
    color: #ffaa00;
}

.ct-blog-content .read-more::after{
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 2px;
    background-color: #ffcc00;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.ct-blog-content .read-more:hover::after{
    transform: scaleX(1);
}


.ct-blog-content ul {
    list-style-type: none;
    padding-left: 0;
    font-size: 0.9em;
}

.ct-blog-content li {
    line-height: 1.8;
    color: #ddd;
}

.ct-blog-content strong{
    color: #ffcc00;
    font-weight: bold;
}

.ct-blog-content span{
    font-style: italic;
}

/* Additional CSS to center the content container */
.center-content {
    display: flex;
    justify-content: center;
    width: 100%;
}
.content {
    max-width: 1400px;
    width: 100%;
}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1050; /* Sit on top - INCREASED Z-INDEX TO BE ABOVE NAV BAR */
    padding-top: 50px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (image) */
.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
}

/* Caption of Modal Image */
#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Add Animation */
.modal-content, #caption {
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
    from {-webkit-transform:scale(0)}
    to {-webkit-transform:scale(1)}
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

/* The Close Button */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
    .modal-content {
        width: 100%;
    }
}

/* Style for the news date */
.news-date {
    font-size: 0.8em;
    color: #aaa;
    margin-bottom: 5px;
    text-align: left;
    font-style: italic;
    display: none; /* hidden by default, shown by JS */
}

/* Dual Image Containers */
.dual-image-container {
    display: flex; /* Use flexbox to arrange images side-by-side */
    justify-content: space-around; /* Add space between the images */
}

.image-with-border {
    border: 1px solid #ccc; /* Add a light gray border */
    padding: 5px; /* Add some padding inside the border */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    width: 48%; /* Make each image take up roughly half the container width */
}

.modal-content img {
    max-width: 50%; /* Adjust as needed */
    height: auto;
    margin: 5px;
}