.thumbnail-image {
    width: 200px;
    height: 250px;
    object-fit: cover;
}

.intro_ass {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.intro_image {
    flex: 0 0 150px;
    width: 150px;
    height: 150px;
    overflow: hidden;
}

.intro_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.intro {
    flex: 1;
}

.nav-tabs .nav-link {
    color: #495057;
}
.nav-tabs .nav-link.active {
    background-color: #f8f9fa;
    border-color: #dee2e6 #dee2e6 #f8f9fa;
}
.tab-content .d-flex {
    background-color: #b9b9b9;
    border-bottom: 1px solid #42709e;
    padding-bottom: 10px;
}

.trigger-tab {
    background-color: #f8f9fa;
    padding: 5px 10px;
    margin-bottom: 10px;
}

.card-max-540 {
    max-width: 540px;
}

.carousel {
    position: relative;
}

.carousel > .custom-carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.custom-control {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: #fff;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.custom-control:hover {
    opacity: 1;
}

.carousel-inner {
    height: 152px;
    overflow: hidden;
}

.carousel-height {
    height: 152px;
}

a.d-block,
a.d-block * {
    cursor: pointer;
}

.fixed-width-150 {
    width: 150px;
    flex: none;
}

.news-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    height: 100%;
    border: none;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-img-container {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.news-card:hover .card-img-top {
    transform: scale(1.08);
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: auto;
    grid-gap: 20px;
    width: 100%;
    grid-auto-flow: dense;
}

.masonry-item {
    grid-column: span 2;
    margin-bottom: 0;
}

.feature-card {
    grid-column: span 4;
    grid-row: span 2;
}

.masonry-item:nth-child(2) {
    grid-row: span 2;
}

.feature-news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-img-container {
    height: 320px;
}

.medium-card {
    grid-column: span 3;
}

.medium-news-card .card-img-container {
    height: 220px;
}

.news-card .card-title {
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.6rem;
}

.feature-news-card .card-title {
    font-size: 1.6rem;
}

.news-card .card-title a {
    color: #231f20;
}

.news-card .card-title a:hover {
    color: #308282;
    text-decoration: none;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 8px;
}

.card-number {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    z-index: 2;
}

.hot-tag,
.new-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hot-tag {
    background: linear-gradient(135deg, #ff7a45, #ff4d4f);
    color: white;
}

.new-tag {
    background: linear-gradient(135deg, #36cfc9, #13c2c2);
    color: white;
}

.feature-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff4d4f;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 500;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 77, 79, 0.4);
}

.latest-feature {
    background-color: #13c2c2;
    box-shadow: 0 2px 8px rgba(19, 194, 194, 0.4);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.news-card:hover .card-overlay {
    opacity: 0.2;
}

.highlight-card {
    border-left: 3px solid #308282;
}

.tab-pane {
    transition: all 0.4s ease;
}

.secondary-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #222;
    display: block;
    overflow: visible;
    word-wrap: break-word;
    line-height: 1.3;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    max-height: none;
    flex-grow: 1;
}

.bbc-secondary-news-content {
    flex: 1.5;
    padding-right: 15px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.bbc-secondary-news-content .news-meta {
    margin-top: auto;
    flex-shrink: 0;
}

.most-read-content {
    flex: 1;
    margin-left: 170px;
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    min-height: 120px;
}

.most-read-content .news-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: none;
    flex-grow: 1;
    word-wrap: break-word;
}

.most-read-content .news-summary {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    flex-grow: 0;
    max-height: 2.8em;
}

.most-read-item {
    position: relative;
    margin-bottom: 15px;
    height: calc(100% / 3 - 10px);
    background-color: #f8f8f8;
    transition: background-color 0.2s ease;
}

.most-read-item:hover {
    background-color: #f0f0f0;
}

.most-read-item:last-child {
    margin-bottom: 0;
}

.most-read-link {
    position: relative;
    display: flex;
    flex-direction: row;
    height: 100%;
    width: 100%;
    padding: 0;
}

.most-read-image-container {
    width: 170px;
    height: 100%;
    min-height: 120px;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    overflow: hidden;
}

.most-read-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.secondary-top-image-bottom,
.secondary-bottom-image-bottom {
    width: 100%;
    height: 150px;
    margin-top: auto;
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

.secondary-top-image-bottom img,
.secondary-bottom-image-bottom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex: 1;
    margin: 0;
    display: block;
}

.bbc-primary-news-image {
    width: 100%;
    height: auto;
    overflow: hidden;
    font-size: 0;
    line-height: 0;
}

.headline-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    margin: 0;
}

.reverse-news-image {
    flex: 0 0 200px;
    height: 150px;
    overflow: hidden;
    font-size: 0;
    line-height: 0;
}

.reverse-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
}

.headline-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
    overflow: visible;
    display: block;
    word-wrap: break-word;
    line-height: 1.4;
    max-height: none;
}

.bbc-primary-news-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.headline-summary {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.5;
    flex-grow: 1;
}

.bbc-secondary-news-list {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 15px;
}

.bbc-secondary-news-item {
    background-color: #f8f8f8;
    transition: background-color 0.2s ease;
    flex: 1;
    position: relative;
    overflow: hidden;
    height: calc(100% / 3 - 10px);
    min-height: 180px;
    display: flex;
}

.bbc-secondary-news-item:hover {
    background-color: #f0f0f0;
}

.bbc-secondary-news-item a {
    display: flex;
    width: 100%;
    padding: 15px;
    height: 100%;
}

.bbc-secondary-news-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.secondary-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
    display: block;
    overflow: visible;
    word-wrap: break-word;
    line-height: 1.3;
    margin-bottom: 12px;
}

.bbc-secondary-news-bottom {
    display: flex;
    flex: 1;
    width: 100%;
}

.bbc-secondary-news-content {
    flex: 1.5;
    padding-right: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bbc-secondary-news-image {
    flex: 1;
    min-width: 35%;
    max-width: 35%;
    height: auto;
    position: relative;
    overflow: hidden;
}

.secondary-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.secondary-summary {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    flex-grow: 1;
}

.bbc-secondary-news-content .news-meta {
    margin-top: 6px;
    flex-shrink: 0;
}

.bbc-secondary-news-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 15px;
}

.bbc-secondary-news-top {
    flex: 2;
    background-color: #f8f8f8;
    transition: background-color 0.2s ease;
    border-radius: 2px;
    overflow: hidden;
    min-height: 0;
}

.bbc-secondary-news-top:hover {
    background-color: #f0f0f0;
}

.bbc-secondary-news-top a {
    display: block;
    height: 100%;
    padding: 15px;
    text-decoration: none;
    color: inherit;
}

.secondary-top-wrapper {
    display: flex;
    height: 100%;
    gap: 15px;
}

.secondary-top-content {
    flex: 1.6;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.secondary-top-image {
    flex: 1;
    height: 100%;
    max-width: 250px;
    position: relative;
    overflow: hidden;
}

.secondary-top-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.secondary-top-image-bottom {
    width: 100%;
    height: auto;
    margin-top: auto;
    max-height: 220px;
    overflow: hidden;
}

.secondary-top-image-bottom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bbc-secondary-news-bottom {
    flex: 1;
    background-color: #f8f8f8;
    transition: background-color 0.2s ease;
    border-radius: 2px;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.bbc-secondary-news-bottom:hover {
    background-color: #f0f0f0;
}

.bbc-secondary-news-bottom a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.secondary-small-title {
    font-size: 1rem;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.secondary-small-summary {
    font-size: 0.85rem;
    margin-bottom: 8px;
    flex-grow: 1;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.secondary-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
    display: block;
    overflow: visible;
    word-wrap: break-word;
    line-height: 1.3;
    margin-bottom: 10px;
}

.secondary-summary {
    font-size: 0.9rem;
    color: #555;
    display: block;
    line-height: 1.4;
    flex-grow: 1;
    overflow: visible;
    word-wrap: break-word;
    margin-bottom: 10px;
}

.secondary-top-vertical {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.secondary-top-image-bottom {
    width: 100%;
    height: auto;
    margin-top: auto;
    max-height: 220px;
    overflow: hidden;
}

.secondary-top-image-bottom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bbc-secondary-news-top a {
    display: block;
    height: 100%;
    padding: 15px;
    text-decoration: none;
    color: inherit;
}

.bbc-secondary-news-top .secondary-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 10px;
    line-height: 1.3;
    flex-grow: 0;
}

.bbc-secondary-news-top .secondary-summary {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.4;
    display: block;
    flex-grow: 0;
    overflow: visible;
}

.bbc-secondary-news-top .news-meta {
    margin-bottom: 10px;
    flex-shrink: 0;
}

.bbc-reversed-news-container {
    width: 100%;
}

.bbc-reverse-news-item {
    background-color: #f8f8f8;
    transition: background-color 0.2s ease;
    height: 100%;
    border-radius: 2px;
    overflow: hidden;
}

.bbc-reverse-news-item:hover {
    background-color: #f0f0f0;
}

.bbc-reverse-news-item a {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
    padding: 15px;
}

.reverse-news-wrapper {
    display: flex;
    flex-direction: row;
    height: 100%;
    gap: 15px;
}

.reverse-news-image {
    flex: 0 0 200px;
    height: 150px;
    overflow: hidden;
    font-size: 0;
    line-height: 0;
}

.reverse-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
}

.reverse-news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.reverse-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
    display: block;
    overflow: visible;
    word-wrap: break-word;
    line-height: 1.3;
    margin-bottom: 10px;
}

.reverse-summary {
    font-size: 0.85rem;
    color: #555;
    display: block;
    line-height: 1.4;
    margin-bottom: 10px;
    flex-grow: 1;
}

.bbc-reversed-layout-container {
    width: 100%;
    margin-top: 30px;
}

.bbc-bottom-news-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

.section-header {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #222;
}

.bbc-section-header {
    margin-bottom: 1.5rem;
}

.red-divider {
    height: 4px;
    width: 50px;
    background-color: #bb1919;
    margin-bottom: 15px;
}

.bbc-style-top-stories {
    margin-bottom: 2.5rem;
}

.bbc-top-news-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.bbc-primary-news {
    background-color: #f8f8f8;
    transition: background-color 0.2s ease;
}

.bbc-primary-news:hover {
    background-color: #f0f0f0;
}

.bbc-primary-news-image {
    width: 100%;
    height: auto;
    overflow: hidden;
    font-size: 0;
    line-height: 0;
}

.headline-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    margin: 0;
}

.bbc-primary-news-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.headline-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
    overflow: visible;
    display: block;
    word-wrap: break-word;
    line-height: 1.4;
    max-height: none;
}

.headline-summary {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.5;
    flex-grow: 1;
}

.bbc-secondary-news-list {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 15px;
}

.bbc-secondary-news-item {
    background-color: #f8f8f8;
    transition: background-color 0.2s ease;
    display: flex;
    flex: 1;
    position: relative;
    overflow: hidden;
    height: calc(100% / 4 - 11.25px);
    min-height: 120px;
}

.bbc-secondary-news-item:hover {
    background-color: #f0f0f0;
}

.bbc-secondary-news-item a {
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    padding: 10px;
    height: 100%;
}

.bbc-secondary-news-content {
    flex: 1.5;
    padding-right: 15px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.bbc-secondary-news-image {
    flex: 1;
    position: relative;
    height: 100%;
    min-width: 40%;
    overflow: hidden;
}

.secondary-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.secondary-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #222;
    display: block;
    overflow: visible;
    word-wrap: break-word;
    line-height: 1.3;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    max-height: none;
    flex-grow: 1;
}

.secondary-summary {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    flex-grow: 1;
}

.bbc-secondary-news-content .news-meta {
    margin-top: auto;
    flex-shrink: 0;
}

.bbc-news-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-meta {
    font-size: 0.85rem;
    color: #6e6e6e;
    display: flex;
    justify-content: space-between;
}

.news-time {
    font-weight: 500;
}

.news-category {
    color: #bb1919;
}

.mobile-news-scroller {
    margin-bottom: 20px;
    background-color: #f8f8f8;
    padding: 15px 0;
}

.scrolling-news-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.scrolling-news-wrapper {
    display: flex;
    gap: 15px;
    padding: 0 15px;
}

.scrolling-news-item {
    width: 200px;
    flex-shrink: 0;
}

.mobile-news-image img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.mobile-news-title {
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 8px;
    color: #222;
}

.bbc-section {
    margin-bottom: 2.5rem;
}

.bbc-news-grid {
    width: 100%;
}

.bbc-news-item {
    margin-bottom: 20px;
    background-color: #f8f8f8;
    transition: background-color 0.2s ease;
}

.bbc-news-item:hover {
    background-color: #f0f0f0;
}

.bbc-news-image {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.news-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.bbc-news-content {
    padding: 12px;
}

.news-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #222;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-summary {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 8px;
    line-height: 1.4;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bbc-ranked-list-container {
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    height: 100%;
}

.bbc-ranked-list-header {
    background-color: #bb1919;
    color: white;
    padding: 10px 15px;
}

.ranked-list-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.bbc-ranked-list {
    list-style-position: inside;
    padding: 0;
    margin: 0;
    list-style-type: none;
}

.bbc-ranked-list.no-number li:before {
    content: none;
    display: none;
}

.ranked-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 15px;
    counter-increment: item;
}

.ranked-item:last-child {
    border-bottom: none;
}

.ranked-item:before {
    content: counter(item) '.';
    font-weight: bold;
    color: #bb1919;
    margin-right: 8px;
}

.ranked-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.ranked-title {
    font-size: 1rem;
    font-weight: 500;
    color: #222;
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
}

.bbc-news-item.featured-item {
    margin-bottom: 15px;
}

.bbc-news-item.featured-item:last-child {
    margin-bottom: 0;
}

.most-read-content .news-meta {
    margin-top: auto;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .masonry-item {
        grid-column: span 2;
    }

    .feature-card {
        grid-column: span 4;
    }

    .medium-card {
        grid-column: span 3;
    }

    .most-read-content .news-title {
        font-size: 1.1rem;
        line-height: 1.3;
        -webkit-line-clamp: unset;
        line-clamp: unset;
    }

    .most-read-image-container {
        width: 150px;
    }

    .most-read-content {
        margin-left: 150px;
    }

    .headline-title {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .secondary-title {
        font-size: 1rem;
        line-height: 1.3;
    }

    .secondary-top-content {
        flex: 2;
    }

    .secondary-top-image {
        max-width: 200px;
    }

    .bbc-secondary-news-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        height: auto;
    }

    .bbc-secondary-news-top,
    .bbc-secondary-news-bottom {
        height: auto;
        min-height: 180px;
        flex: none;
    }

    .bbc-secondary-news-bottom {
        padding: 0;
    }

    .bbc-secondary-news-bottom a {
        padding: 15px;
        flex-direction: column;
        display: block;
    }

    .secondary-bottom-vertical {
        display: flex;
        flex-direction: column;
        height: 100%;
        width: 100%;
    }

    .secondary-bottom-image-bottom {
        width: 100%;
        height: 150px;
        margin-top: auto;
        overflow: hidden;
        display: flex;
    }

    .secondary-top-image-bottom {
        max-height: none;
        height: 150px;
        display: flex;
    }

    .bbc-secondary-news-bottom .secondary-small-title {
        font-size: 1.15rem;
        font-weight: 600;
        margin-bottom: 10px;
        line-height: 1.3;
        flex-grow: 0;
    }

    .bbc-secondary-news-bottom .secondary-small-summary {
        font-size: 0.9rem;
        margin-bottom: 10px;
        line-height: 1.4;
        display: block;
        flex-grow: 0;
        overflow: visible;
        -webkit-line-clamp: unset;
        line-clamp: unset;
    }

    .bbc-secondary-news-bottom .news-meta {
        margin-bottom: 10px;
        flex-shrink: 0;
    }

    .reverse-news-image {
        flex: 0 0 160px;
        height: 120px;
    }

    .reverse-title {
        font-size: 1rem;
    }

    .bbc-bottom-news-container {
        grid-template-columns: 1fr;
    }

    .bbc-top-news-container {
        grid-template-columns: 1fr;
    }

    .headline-title {
        font-size: 1.5rem;
    }

    .bbc-secondary-news-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .bbc-secondary-news-item {
        height: auto;
        min-height: 180px;
    }

    .bbc-secondary-news-content {
        flex: 1;
        height: 100%;
        justify-content: space-between;
    }

    .secondary-summary {
        -webkit-line-clamp: 3;
        line-clamp: 3;
        max-height: none;
        flex-grow: 1;
        margin-bottom: 4px;
    }

    .most-read-item {
        margin-bottom: 15px;
        height: auto;
        min-height: 130px;
    }

    .most-read-content .news-summary {
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}

@media (max-width: 767px) {
    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 15px;
    }

    .masonry-item {
        grid-column: span 1;
    }

    .feature-card {
        grid-column: span 2;
    }

    .medium-card {
        grid-column: span 1;
    }

    .card-img-container {
        height: 200px;
    }

    .feature-img-container {
        height: 230px;
    }

    .bbc-secondary-news-item {
        min-height: 160px;
    }

    .secondary-summary {
        -webkit-line-clamp: 2;
        line-clamp: 2;
        margin-bottom: 2px;
    }

    .most-read-content .news-title {
        font-size: 1rem;
        -webkit-line-clamp: unset;
        line-clamp: unset;
        line-height: 1.25;
        margin-bottom: 4px;
    }

    .most-read-content .news-summary {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .most-read-image-container {
        width: 150px;
    }

    .most-read-content {
        margin-left: 150px;
        padding: 10px;
    }

    .headline-title {
        font-size: 1.3rem;
        line-height: 1.25;
    }

    .secondary-title {
        font-size: 0.95rem;
        line-height: 1.25;
    }

    .bbc-secondary-news-list {
        grid-template-columns: 1fr;
    }

    .bbc-secondary-news-container {
        grid-template-columns: 1fr;
    }

    .secondary-top-content {
        flex: 1.2;
    }

    .secondary-top-image {
        max-width: 150px;
    }

    .bbc-secondary-news-top,
    .bbc-secondary-news-bottom {
        min-height: auto;
    }

    .secondary-top-image-bottom,
    .secondary-bottom-image-bottom {
        height: 150px;
    }

    .secondary-bottom-image-bottom {
        max-height: 120px;
    }

    .bbc-secondary-news-bottom .secondary-small-title {
        font-size: 1rem;
    }

    .bbc-secondary-news-bottom .secondary-small-summary {
        font-size: 0.85rem;
    }

    .reverse-news-image {
        flex: 0 0 120px;
        height: 90px;
    }

    .reverse-title {
        font-size: 0.95rem;
        margin-bottom: 5px;
    }

    .reverse-summary {
        font-size: 0.8rem;
        margin-bottom: 5px;
    }

    .section-header {
        font-size: 1.5rem;
    }

    .headline-summary {
        font-size: 1rem;
    }

    .bbc-news-item {
        margin-bottom: 15px;
    }

    .news-title {
        font-size: 1.1rem;
    }

    .most-read-item {
        min-height: auto;
    }
}

@media (max-width: 576px) {
    .masonry-grid {
        grid-template-columns: 1fr;
    }

    .masonry-item,
    .feature-card,
    .medium-card {
        grid-column: span 1;
    }

    .news-card {
        margin-bottom: 15px;
    }

    .most-read-content {
        padding: 8px 10px;
    }

    .most-read-content .news-title {
        font-size: 0.95rem;
        margin-bottom: 3px;
    }

    .most-read-content .news-summary {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .most-read-image-container {
        width: 130px;
    }

    .most-read-content {
        margin-left: 130px;
    }

    .headline-title {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .secondary-title {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }

    .secondary-top-image-bottom {
        max-height: 120px;
    }

    .bbc-reverse-news-item a {
        padding: 10px;
    }

    .reverse-news-image {
        flex: 0 0 100px;
        height: 80px;
    }

    .reverse-title {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }

    .reverse-summary {
        display: none;
    }

    .bbc-news-item {
        margin-bottom: 10px;
    }

    .bbc-news-content {
        padding: 10px;
    }
}
