/* wrm Newsroom Style Sub-Header */
.wrm-newsroom-header {
    background: #fff;
    box-shadow: 0 0px 29px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1;
}
.fw-600{
    font-weight: 600;
}
.section-section-blog-page{
        padding: 40px 0 !important;
}
.section-section-blog-page .container, .wrm-newsroom-header .container {
    max-width: 980px;
        
   
}
.newsroom-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.newsroom-title h1 {
    font-size: 28px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0;
    letter-spacing: -0.003em;
}

.newsroom-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: #424245;
    text-decoration: none;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.23543;
    letter-spacing: -0.022em;
    transition: color 0.15s ease-in-out;
}

.nav-link:hover {
    color: #0066cc;
}

/* Close Search Button Styling */
.close-search {
        gap: 8px;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #424245;
    font-size: 18px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.15s ease-in-out;
    min-width: 44px;
    min-height: 44px;
}

.close-search:hover {
    color: #0066cc;
    background: rgba(0, 102, 204, 0.05);
}

.close-search i {
    font-size: 16px;
}

/* Search Toggle Button */
.search-toggle {
    display: flex; /* Visible by default */
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #424245;
    font-size: 17px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    padding: 8px 12px;
    border-radius: 6px;
}

.search-toggle:hover {
    color: #0066cc;
    background: rgba(0, 102, 204, 0.05);
}

.search-toggle i {
    font-size: 16px;
}

/* Expandable Search Section */
.search-section {
    max-height: 0;
    overflow: hidden;
    
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(-20px);
}

.search-section.active {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
}

.search-content {
    padding: 32px 0;
    max-width: 1200px;
    margin: 0 auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(20px);
    opacity: 0;
}

.search-section.active .search-content {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.1s;
}

.newsroom-search-form {
    margin-bottom: 32px;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    max-width: 600px;
    margin: 0 auto;
    border-radius: 30px;;
}

.newsroom-search-input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    outline: none;
    font-size: 18px;
    font-weight: 400;
    border-radius: 12px 0 0 12px;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.newsroom-search-input:focus {
    transform: scale(1.02);
     
}

.newsroom-search-input::placeholder {
    color: #86868b;
}

.search-submit {
    padding: 16px 20px;
    background: #0066cc;
    border: none;
    border-radius: 0 12px 12px 0;
    color: white;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.search-submit:hover {
    background: #0056b3;
}

/* Quick Links */
.quick-links h3 {
    font-size: 21px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 16px 0;
    text-align: center;
}

.quick-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.quick-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #fff;
    color: #424245;
    text-decoration: none;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 400;
    transition: all 0.15s ease-in-out;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
}

.quick-link:hover {
    background: #0066cc;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.25);
}

.quick-link.active {
    background: #0066cc;
    color: white;
}

.quick-link i {
    font-size: 14px;
}

/* Smooth Header Transitions */
.header {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    opacity: 1;
}

.header.search-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

/* Smooth Button Transitions */
.search-toggle,
.close-search {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
    opacity: 1;
}

.search-toggle.hiding,
.close-search.hiding {
    transform: scale(0.8);
    opacity: 0;
    pointer-events: none;
}

/* Newsroom Header Sticky Animation */
.wrm-newsroom-header {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: sticky;
    top: 0;
    z-index: 1;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Apple Newsroom Latest News Section */
.latest-news-header {
    margin-bottom: 40px;
}

.latest-news-header h2 {
    font-size: 32px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0;
    letter-spacing: -0.003em;
}

/* Apple News Grid Layout */
.apple-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}
.apple-news-card{
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border-radius: 30px;
    border: 0px;
    padding: 0px;
}

/* Featured Card (First Post) */
.apple-news-card.featured-card {
    grid-column: 1 / -1; /* Spans full width */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 20px;
   
    
}

.featured-card .news-image {
    margin-bottom: 0;
    order: 1;
}

.featured-card .news-content {
    order: 2;
    padding-left: 20px;
}

.featured-card .category-label {
    font-size: 14px;
    font-weight: 600;
    color: #6e6e73;
    letter-spacing: 0.5px;
}

.featured-card .news-title {
    margin: 16px 0 20px 0;
}

.featured-card .news-title a {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.005em;
        color: #1d1d1f;
}
.featured-card .news-title a:hover {
    color: #0066cc;
}
.featured-card .news-date {
    font-size: 17px;
    color: #6e6e73;
    font-weight: 400;
}

/* Regular Cards */
.apple-news-card:not(.featured-card) {
    display: flex;
    flex-direction: column;
}

/* News Image */
.news-image {
    margin-bottom: 20px;
    overflow: hidden;
   
        border-top-right-radius: 12px;
    border-top-left-radius: 12px;
}

.featured-card .news-image {
    border-radius: 18px;
}

.news-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.apple-news-card:hover .news-img {
    transform: scale(1.02);
}

/* Regular News Content */
.apple-news-card:not(.featured-card) .news-content {
    flex: 1;
        padding: 0px 20px 20px;
}

.apple-news-card:not(.featured-card) .news-category {
    margin-bottom: 8px;
}

.apple-news-card:not(.featured-card) .category-label {
    font-size: 12px;
    font-weight: 600;
    color: #6e6e73;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.apple-news-card:not(.featured-card) .news-title {
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.apple-news-card:not(.featured-card) .news-title a {
    color: #1d1d1f;
    text-decoration: none;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.003em;
    transition: color 0.2s ease-in-out;
}

.apple-news-card:not(.featured-card) .news-title a:hover {
    color: #0066cc;
}

.apple-news-card:not(.featured-card) .news-date {
    color: #6e6e73;
    font-size: 14px;
    font-weight: 400;
}

/* Responsive Design for Featured Card */
@media (max-width: 1024px) {
    .apple-news-card.featured-card {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: left;
    }
    
    .featured-card .news-image {
        order: 1;
    }
    
    .featured-card .news-content {
        order: 2;
        padding-left: 0;
    }
    
    .featured-card .news-title a {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .featured-card .news-title a {
        font-size: 28px;
    }
    
    .featured-card .news-content {
        padding-left: 0;
    }
    
    .apple-news-card.featured-card {
        gap: 24px;
        margin-bottom: 16px;
        padding-bottom: 32px;
    }
}

/* Grid layout adjustments for remaining cards */
@media (min-width: 768px) and (max-width: 1024px) {
    .apple-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 767px) {
    .apple-news-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Large screens - 3 columns for regular cards */
@media (min-width: 1200px) {
    .apple-news-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .apple-news-card.featured-card {
        grid-template-columns: 1.8fr 1fr;
        gap: 5px;
    }
}

/* Animation for grid items */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.apple-news-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.apple-news-card:nth-child(1) { animation-delay: 0.1s; }
.apple-news-card:nth-child(1) .news-image{   border-top-right-radius: 0px; border-bottom-right-radius: 0px;}
.apple-news-card:nth-child(2) { animation-delay: 0.2s; }
.apple-news-card:nth-child(3) { animation-delay: 0.3s; }
.apple-news-card:nth-child(4) { animation-delay: 0.4s; }
.apple-news-card:nth-child(5) { animation-delay: 0.5s; }
.apple-news-card:nth-child(6) { animation-delay: 0.6s; }

/* Apple-style Pagination - Exact Match */
.apple-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 20px 0;
}

.pagination-container {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.pagination-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #1d1d1f;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: none;
}

.pagination-arrow:hover:not(.disabled) {
    background: rgba(0, 0, 0, 0.04);
    transform: scale(1.05);
}

.pagination-arrow.disabled {
    color: #d2d2d7;
    cursor: not-allowed;
    background: transparent;
}

.pagination-arrow.disabled svg {
    opacity: 0.3;
}

.pagination-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 17px;
    font-weight: 400;
    color: #1d1d1f;
    user-select: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.current-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #1d1d1f;
    border-radius: 8px;
    font-weight: 400;
    font-size: 17px;
    color: #1d1d1f;
}

.page-separator {
    color: #1d1d1f;
    font-weight: 400;
    font-size: 17px;
}

/* Remove any extra styling */
.total-pages {
    display: none; /* We're combining this with page-separator */
}

/* Responsive Design */
@media (max-width: 768px) {
    .pagination-container {
        gap: 16px;
    }
    
    .pagination-arrow {
        width: 44px;
        height: 44px;
    }
    
    .pagination-info {
        font-size: 16px;
    }
    
    .current-page {
        min-width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .page-separator {
        font-size: 16px;
    }
    
    .apple-pagination {
        margin-top: 60px;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .pagination-container {
        gap: 12px;
    }
    
    .pagination-arrow {
        width: 40px;
        height: 40px;
    }
    
    .current-page {
        min-width: 32px;
        height: 32px;
        font-size: 15px;
    }
    
    .pagination-info {
        font-size: 15px;
    }
    
    .page-separator {
        font-size: 15px;
    }
}

/* Hover effects for arrows */
.pagination-arrow svg {
    transition: transform 0.2s ease-in-out;
}

.pagination-arrow:hover:not(.disabled) svg {
    transform: translateX(2px);
}

.pagination-arrow.pagination-prev:hover:not(.disabled) svg {
    transform: translateX(-2px);
}

/* Focus states for accessibility */
.pagination-arrow:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

.current-page:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

/* Breadcrumb Navigation Styling */
 

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 400;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
    content: "›";
    margin: 0 8px;
    color: #86868b;
    font-size: 16px;
    font-weight: 300;
}

.breadcrumb-link {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
    font-weight: 400;
}

.breadcrumb-link:hover {
    color: #004c99;
    text-decoration: underline;
}

.breadcrumb-current {
    color: #6e6e73;
    font-weight: 400;
}

/* Responsive breadcrumb */
@media (max-width: 768px) {
    .breadcrumb-list {
        font-size: 13px;
    }
    
    .breadcrumb-list li:not(:last-child)::after {
        margin: 0 6px;
        font-size: 14px;
    }
}

/* Alternative arrow style breadcrumb */
.breadcrumb-list.arrow-style li:not(:last-child)::after {
    content: "→";
    margin: 0 10px;
    color: #86868b;
    font-size: 14px;
}

/* Alternative slash style breadcrumb */
.breadcrumb-list.slash-style li:not(:last-child)::after {
    content: "/";
    margin: 0 8px;
    color: #86868b;
    font-size: 14px;
}

/* Beautiful Social Share Buttons */
.social-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f5f5f7;
    color: #6e6e73;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.social-btn i {
    font-size: 18px;
    transition: transform 0.25s ease;
}

.social-btn:hover i {
    transform: scale(1.1);
}

/* WhatsApp */
.social-btn.whatsapp {
    background: #f5f5f7;
}

.social-btn.whatsapp:hover {
    background: #25D366;
    color: white;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

/* X (formerly Twitter) */
.social-btn.x-twitter {
    background: #f5f5f7;
}

.social-btn.x-twitter:hover {
    background: #000000;
    color: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Email */
.social-btn.email {
    background: #f5f5f7;
}

.social-btn.email:hover {
    background: #ea4335;
    color: white;
    box-shadow: 0 8px 25px rgba(234, 67, 53, 0.3);
}

/* Copy Link */
.social-btn.copy-link {
    background: #f5f5f7;
}

.social-btn.copy-link:hover {
    background: #007aff;
    color: white;
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.3);
}

/* Active state for copy link */
.social-btn.copy-link.copied {
    background: #34c759;
    color: white;
}

/* Remove text spans for cleaner icon-only design */
.social-btn span {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .social-buttons {
        gap: 8px;
        justify-content: center;
    }
    
    .social-btn {
        width: 40px;
        height: 40px;
    }
    
    .social-btn i {
        font-size: 16px;
    }
}

/* Social Sharing Section Styling */
.social-sharing-section {
    margin: 60px 0;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 16px;
    text-align: center;
}

.sharing-header h4 {
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 8px 0;
}

.sharing-header p {
    color: #6e6e73;
    font-size: 16px;
    margin: 0 0 32px 0;
}

.social-sharing-section .social-buttons {
    justify-content: center;
    gap: 16px;
}

/* Post Meta Social Buttons */
.post-meta .social-buttons {
    gap: 8px;
}
.featured-image-wrapper img, .post-content img{
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;   
}
.featured-image-wrapper img{
    margin: 0px;
}
header.blog-hero-section.section-section-blog-page {
    margin-top: 20px;
}
.post-meta .social-btn {
    width: 36px;
    height: 36px;
    background: #fff;
        margin-top: 6px;
}

.post-meta .social-btn i {
    font-size: 16px;
}

/* Ripple effect on click */
.social-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.social-btn:active::before {
    width: 100%;
    height: 100%;
}

/* Tooltip styling */
.social-btn[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: #1d1d1f;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    animation: fadeInTooltip 0.2s ease forwards;
}

@keyframes fadeInTooltip {
    to {
        opacity: 1;
    }
}

/* Loading state for copy button */
.social-btn.copy-link.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Related Posts Slider */
.related-posts-slider {
    position: relative;
    overflow: hidden;
}

.related-posts-container {
    overflow: hidden;
    border-radius: 12px;
}

.related-posts-grid {
    display: flex;
    gap: 24px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 26px 4px; /* Small padding for shadow */
}

.related-post-card {
    flex: 0 0 calc(33.333% - 16px); /* 3 cards visible by default */
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.related-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.post-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: #f5f5f7;
}

.post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-card:hover .post-img {
    transform: scale(1.05);
}

.placeholder-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f7 0%, #e5e5ea 100%);
    color: #c7c7cc;
    font-size: 24px;
}

.post-content {
    padding: 20px;
}

.post-category {
    font-size: 11px;
    font-weight: 600;
    color: #6e6e73;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.related-post-card h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.related-post-card h3 a {
    color: #1d1d1f;
    text-decoration: none;
    transition: color 0.2s ease;
}

.related-post-card h3 a:hover {
    color: #0066cc;
}

.related-post-card p {
    color: #6e6e73;
    font-size: 14px;
    line-height: 1.4;
    margin: 0 0 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #86868b;
}

.post-date,
.read-time {
    font-weight: 400;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

.slider-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    color: #1d1d1f;
    cursor: pointer;
    transition: all 0.2s ease;
    pointer-events: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.slider-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.prev-btn {
    left: -22px;
}

.next-btn {
    right: -22px;
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    padding: 4px;;
}
input:-internal-autofill-selected {
  
    background-color: light-dark(rgb(255, 255, 255), rgba(70, 90, 126, 0.4)) !important;
     
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d2d2d7;
    cursor: pointer;
    transition: all 0.2s ease;
}

.slider-dot.active {
    background: #0066cc;
    transform: scale(1.2);
}

/* Responsive Design for Slider */
@media (max-width: 1024px) {
    .related-post-card {
        flex: 0 0 calc(50% - 12px); /* 2 cards visible */
    }
}

@media (max-width: 768px) {
    .related-post-card,
    .related-posts-section .related-post-card {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .post-content {
        padding: 16px;
    }
    
    .related-post-card h3 {
        font-size: 16px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
    }
    
    .prev-btn {
        left: -20px;
    }
    
    .next-btn {
        right: -20px;
    }
    
    .related-posts-slider {
        margin-top: 32px;
    }
}

@media (max-width: 480px) {
    .related-posts-grid {
        gap: 16px;
    }
    
    .prev-btn {
        left: -16px;
    }
    
    .next-btn {
        right: -16px;
    }
    
    .related-posts-slider {
        margin-top: 24px;
    }
}

/* Section spacing override */
.section-section-blog-page {
    padding: 40px 0 !important;
}

.related-posts-section.section-section-blog-page {
    padding: 60px 0 80px 0 !important;
     
}

@media (max-width: 768px) {
    .section-section-blog-page {
        padding: 24px 0 !important;
    }
    
    .related-posts-section.section-section-blog-page {
        padding: 40px 0 60px 0 !important;
    }
}

/* Featured Related Posts (Top 3) - Apple Newsroom Style */
.featured-related-posts {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #d2d2d7;
}

.featured-related-card {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 20px 0;
    border-bottom: 1px solid #f2f2f7;
    transition: transform 0.2s ease-in-out;
}

.featured-related-card:last-child {
    border-bottom: none;
}

.featured-related-card:hover {
    transform: translateY(-2px);
}

.featured-post-image {
    flex: 0 0 120px;
    height: 80px;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f7;
}

.featured-post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.featured-related-card:hover .featured-post-img {
    transform: scale(1.05);
}

.featured-placeholder-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f7 0%, #e5e5ea 100%);
    color: #c7c7cc;
    font-size: 18px;
    border-radius: 8px;
}

.featured-post-content {
    flex: 1;
    min-width: 0;
}

.featured-post-category {
    font-size: 12px;
    font-weight: 600;
    color: #6e6e73;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.featured-related-card h3 {
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.featured-related-card h3 a {
    color: #1d1d1f;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.003em;
    transition: color 0.2s ease-in-out;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-related-card h3 a:hover {
    color: #0066cc;
}

.featured-post-date {
    color: #86868b;
    font-size: 14px;
    font-weight: 400;
}

/* Section Header Styling */
.section-blog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f2f2f7;
}

.section-blog-header-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 8px 0;
    letter-spacing: -0.005em;
}

.section-blog-header-content .subtitle {
    color: #6e6e73;
    font-size: 16px;
    margin: 0;
    font-weight: 400;
}

.section-blog-header-link {
    color: #0066cc;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.section-blog-header-link:hover {
    color: #004c99;
    text-decoration: underline;
}

/* Responsive Design for Featured Cards */
@media (max-width: 768px) {
    .featured-related-card {
        gap: 16px;
        padding: 16px 0;
    }
    
    .featured-post-image {
        flex: 0 0 100px;
        height: 70px;
    }
    
    .featured-related-card h3 a {
        font-size: 18px;
    }
    
    .featured-post-date {
        font-size: 13px;
    }
    
    .featured-related-posts {
        gap: 24px;
        margin-bottom: 40px;
        padding-bottom: 32px;
    }
    
    .section-blog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 32px;
    }
    
    .section-blog-header-content h2 {
        font-size: 28px;
    }
    
    .section-blog-header-content .subtitle {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .featured-related-card {
        flex-direction: column;
        gap: 12px;
        text-align: left;
    }
    
    .featured-post-image {
        flex: 0 0 auto;
        width: 100%;
        height: 160px;
        border-radius: 12px;
    }
    
    .featured-placeholder-image {
        font-size: 24px;
        border-radius: 12px;
    }
    
    .featured-related-card h3 a {
        font-size: 20px;
        -webkit-line-clamp: 3;
    }
}

/* Large screens - maintain clean layout */
@media (min-width: 1200px) {
    .featured-related-posts {
        max-width: 800px;
        margin: 0 auto 60px auto;
    }
    
    .featured-post-image {
        flex: 0 0 140px;
        height: 90px;
    }
    
    .featured-related-card h3 a {
        font-size: 22px;
    }
}

/* Hide newsroom links on mobile */
@media (max-width: 768px) {
    .newsroom-links .nav-link {
        display: none;
    }
    .apple-news-card:nth-child(1) .news-image {
        border-radius: 0px;;
        border-top-right-radius: 18px;
        border-top-left-radius: 18px;
    }
        .featured-card .news-title a {
        font-size: 24px;
    }
    .news-content{
               padding: 17px !important;
    }

}