.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;
    /* 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);
}