.newsroom-page{
    padding:0px 0;
    margin-top: -15px;
    margin-bottom: 50px;
}

.newsroom-hero {
    height: 750px;
    background-position: bottom;
}
.section-title{
    font-size:42px;
    font-weight:700;
    margin-bottom:30px;
}

.news-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.news-card{
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 5px 20px rgba(0,0,0,0.08);
    transition:0.3s;
    margin: 20px;
}
.newsroom-card-content{
padding: 10px;
}
.newsroom-card-content h3{
 line-height: 1.2;
 font-weight: 700;
 display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.news-card:hover{
    transform:translateY(-5px);
}

.news-thumb img{
    width:100%;
    display:block;
}

.news-content{
    padding:20px;
}

.news-content h3{
    font-size:22px;
    margin-bottom:15px;
}

.read-more{
    display:inline-block;
    margin-top:15px;
    font-weight:600;
}

.section-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
    gap:20px;
    margin-top: 40px;
}
.section-title-wrap h2{
    font-size: 32px;
    font-weight: 800;
    color: #000000;
}
.section-title-wrap h2 span{
        color: #ba2228;
}
.newsroom-year-filter{
    min-width:180px;
    height:44px;
    padding:0 15px;
    border:1px solid #ddd;
    border-radius:8px;
    background:#fff;
    font-size:14px;
    cursor:pointer;
}

.newsroom-card{
    border-radius: 16px;
    /* overflow: hidden; */
    box-shadow: 0 8px 18px rgba(0, 0, 0, .06);
        transition: transform .2s ease, box-shadow .2s ease;
    margin: 10px;
}
.newsroom-card img{
 border-radius: 16px;
 border-bottom-left-radius:0px;
  border-bottom-right-radius:0px;
}

/* Limit title and excerpt lengths */
.newsroom-card-content h3 a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.newsroom-card-content .excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
        font-size: 14px;
    margin-bottom: 15px;
}

/* Fade effect for right side of sliders */
.newsroom-section .newsroom-results {
    position: relative;
   /* overflow: hidden;  Prevent horizontal scrollbars if the slider overflows */
}

/* We create an absolutely positioned overlay on the right side */
.newsroom-section .newsroom-results::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 15%; /* Adjust width of the fade */
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .8) 100%);
    z-index: 10;
    pointer-events: none; /* Allows clicking through the fade to the slide underneath */
}

/* Toggle Switch CSS */
.newsroom-region-toggle {
    display: flex;
    align-items: center;
    gap: 15px;
}

.toggle-label {
    font-weight: 600;
    color: #000;
    transition: 0.3s;
}

.toggle-label.active {
    color: #db2628; /* Red color matching Hamdard theme */
}

/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #888;
  transition: .4s;
  border-radius: 24px;
}

.switch .slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #db2628; /* Red color */
}

input:focus + .slider {
  box-shadow: 0 0 1px #db2628;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* Sticky Filter Wrapper & Dropdown styling */
.newsroom-filters-wrapper {
    background: #fff;
    padding: 15px 0;
    margin-bottom: 30px;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.newsroom-filters-wrapper.is-fixed {
    position: fixed;
    top: 100px;
    left: 0;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    /* If there is a fixed header, you might need to adjust 'top' via JS or change this to e.g., top: 80px */
}

.newsroom-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.year-dropdown {
    margin-left: auto; /* Ensure it pushes to the right */
}

.newsroom-year-filter {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 35px; /* space for the custom arrow */
}

/* Photo Gallery Specifics */
.photo-slide-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 10px; /* Equal spacing around the column to match slick slider spacing */
}

.photo-slide-column .photo-card {
    margin: 0; /* Override the default margin since we use gap */
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    /* Maintain aspect ratio or fixed height if necessary, typically image sets height */
}

.photo-card .card-image-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

.photo-card .card-overlay-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.photo-card .card-overlay-title h3 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Video Gallery Specifics */
.video-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: -30px;
}

.video-column h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 25px;
}

.video-card {
    display: flex;
    align-items: center;
    background: transparent;
    box-shadow: none;
    margin: 0 0 25px 0;
    gap: 20px;
}

.video-card .card-image-link {
    flex: 0 0 160px; /* fixed width for thumbnail */
    height: 100px; /* fixed height */
    border-radius: 12px;
    overflow: hidden;
}

.video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.video-card .newsroom-card-content {
    flex: 1;
    padding: 0;
}

.video-card .newsroom-card-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.video-card .newsroom-card-content h3 a {
    color: #000;
    text-decoration: none;
}

.video-card .newsroom-card-content .excerpt {
    font-size: 13px;
    color: #666;
    margin: 0;
    -webkit-line-clamp: 2; /* Adjust depending on design */
}

/* Single News Layout */
.newsroom-single-meta .share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #c0c0c0;
    color: #c0c0c0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.newsroom-single-meta .share-icon:hover {
    background: #db2628;
    color: #fff;
    border-color: #db2628;
}

.category-pills .cat-pill {
    display: inline-block;
    padding: 6px 15px;
    /* border: 1px solid #ddd; */
    border-radius: 20px;
    font-size: 14px;
    text-transform: capitalize;
    color: #666;
    text-decoration: none;
    background: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.1);
}

.category-pills .cat-pill:hover {
    border-color: #db2628;
    color: #db2628;
}

.related-card a:hover {
    color: #db2628 !important;
}

/* Single News Inline Replacements */
.newsroom-single-container {
    padding-top: 30px;
    padding-bottom: 30px;
}
.newsroom-single-thumbnail {
    margin-bottom: 20px;
}
.newsroom-single-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 16px;
}
.newsroom-single-title {
    margin-top: 20px;
    font-weight: 600;
    font-size: 32px;
    line-height: 1.2;
}
.newsroom-single-content {
    font-size: 16px;
    line-height: 1.4;
    color: #000;
}

.newsroom-single-breadcrumbs {
    margin-bottom: 20px;
    font-size: 16px;
    color: #000;
}
.newsroom-single-breadcrumbs a{
color: #db2628;
}
.breadcrumb-home {
    color: #db2628;
}
.breadcrumb_last{
    color: #db2628;
}
.newsroom-breadcrumb-hr {
margin: 0 0 30px 0;
    border: none;
    height: 5px;
    border-bottom: 2px solid #674848;
}

.newsroom-single-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #d5d5d5;
}
.meta-info {
    font-size: 16px;
    color: #000;
}
.meta-share {
    display: flex;
    gap: 10px;
}
.sticky-sidebar{
    position: sticky;
    top: 120px;
    align-self: flex-start;
}
.newsroom-single-sidebar {
    padding-left: 20px;
}
.sidebar-widget {
    margin-bottom: 40px;
}
.sidebar-widget .widget-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
}
.widget-recent-blog .widget-title { color: #db2628; }
.widget-recent-blog .widget-title span { color: #000; }
.widget-categories .widget-title { color: #000; }
.widget-categories .widget-title span { color: #db2628; }
.widget-years .widget-title { color: #db2628; }
.widget-years .widget-title span { color: #000; }

.recent-blog-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}
.recent-thumb {
    flex: 0 0 140px;
    height: 110px;
    overflow: hidden;
    border-radius: 16px;
}
.recent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.recent-content {
    flex: 1;
}
.recent-content h4 {
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.recent-content h4 a {
    color: #000;
    font-weight: 600;
}
.recent-content .excerpt {
    font-size: 12px;
    color: #000;
    line-height: 1.4;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sidebar-widget .year-dropdown {
    margin-left: 0px;
}

.year-dropdown {
    max-width: 200px;
}

.newsroom-single-related {
    margin-top: 50px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}
.newsroom-single-related h3 {
    font-size: 24px;
    font-weight: 800;
    color: #db2628;
    margin-bottom: 25px;
}
.newsroom-single-related h3 span {
    color: #000;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.related-card {
    margin-bottom: 20px;
}
.related-thumb {
    display: block;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 15px;
}
.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.related-card h4 {
    font-size: 16px;
    line-height: 1.4;
}
.related-card h4 a {
    color: #000;
    font-weight: 700;
}

/* Masonry Photo Gallery */
.newsroom-masonry-gallery {
    column-count: 3;
    column-gap: 20px;
    margin-top: 30px;
}
.newsroom-masonry-gallery .gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 16px;
    overflow: hidden;
    padding: 0;
}
.newsroom-masonry-gallery .gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}
.newsroom-masonry-gallery .gallery-item a:hover img {
    transform: scale(1.05);
}

/* Archive Layout Styles */
.newsroom-archive-featured {
    margin-bottom: 40px;
}
.newsroom-archive-featured .newsroom-featured-thumb img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    margin-bottom: 20px;
}
.newsroom-archive-featured .newsroom-featured-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}
.newsroom-archive-featured .newsroom-featured-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
}
.newsroom-archive-featured .newsroom-featured-title a {
    color: #000;
}
.newsroom-archive-featured .newsroom-featured-excerpt {
    font-size: 16px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 25px;
}

.newsroom-read-more {
    display: inline-block;
    background-color: #db2628;
    color: #fff !important;
    padding: 8px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.newsroom-read-more:hover {
    background-color: #b51c1e;
    box-shadow: 0 4px 10px rgba(219, 38, 40, 0.3);
}

.newsroom-archive-masonry {
    column-count: 3;
    column-gap: 30px;
}
.newsroom-archive-card {
    break-inside: avoid;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.06);
    display: block;
    width: 100%;
    vertical-align: top;
}
.newsroom-archive-card .newsroom-card-thumb img {
    width: 100%;
    height: auto;
    display: block;
}
.newsroom-archive-card .newsroom-card-content {
    padding: 20px;
}
.newsroom-archive-card .newsroom-card-title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 15px;
}
.newsroom-archive-card .newsroom-card-title a {
    color: #000;
}
.newsroom-archive-card .newsroom-card-excerpt {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.newsroom-load-more-wrapper {
    position: relative;
    text-align: center;
    margin-top: 10px; /* Pull it up over the grid to overlap */
    padding-top: 40px; /* Create space for the fade */
    z-index: 10;
}
.load-more-fade {
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    height: 350px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 80%, rgba(255,255,255,1) 100%);
    pointer-events: none; /* Let clicks pass through if needed */
}
.newsroom-load-more-btn {
    
}
.newsroom-load-more-btn:hover {
   
}

@media (max-width: 850px) {
 .newsroom-hero {
    height: 250px;
    background-position: center;
    background-size: cover;
}
.newsroom-filters-wrapper.is-fixed{
    top:65px;
}
.newsroom-slider .slick-prev {
        left: -20px;
    }
.newsroom-slider .slick-next {
        right: -20px;
    }
.newsroom-section .newsroom-results::after{
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .0) 100%);
}    
.newsroom-archive-masonry {
    column-count: 2;
}

}
@media (max-width: 768px) {
    .video-grid-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }


    .newsroom-hero {
    height: 160px;
    background-position: center;
    background-size: cover;
}
.newsroom-filters-wrapper.is-fixed{
    top:65px;
}
.newsroom-slider .slick-prev {
        left: -20px;
    }
.newsroom-slider .slick-next {
        right: -20px;
    }
.newsroom-section .newsroom-results::after{
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .0) 100%);
}
.newsroom-region-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    position: relative;
    top: -7px;
}

    .newsroom-masonry-gallery {
        column-count: 2;
    }
    .newsroom-archive-masonry {
        column-count: 1;
    }
    .newsroom-archive-featured .newsroom-featured-title {
        font-size: 28px;
    }
}
@media (max-width: 480px) {
    .newsroom-masonry-gallery {
        column-count: 1;
    }
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}