/* What's New Section */
.primary-whats-new-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
}

.primary-whats-new-card {
    background-color: #f3f4f6;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    padding: 1.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-decoration: none;
    color: inherit;
    display: block;
}

.primary-whats-new-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.primary-whats-new-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.primary-whats-new-icon {
    width: 40px;
    height: 40px;
    background-color: #2563eb;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    color: #ffffff;
}

.primary-whats-new-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

.primary-whats-new-card > p {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1.25rem;
    line-height: 1.5;
    font-family: 'Roboto', sans-serif;
}

.primary-whats-new-items {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
}

.primary-whats-new-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background-color: #ffffff;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    font-size: 0.8125rem;
    color: #374151;
    font-weight: 500;
}

.primary-whats-new-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    background-color: #fbbf24;
    color: #78350f;
    border-radius: 0.375rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.primary-whats-new-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
    color: #2563eb;
    font-weight: 600;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.primary-whats-new-card:hover .primary-whats-new-link {
    color: #1d4ed8;
}

.primary-whats-new-link svg {
    transition: transform 0.2s ease;
}

.primary-whats-new-card:hover .primary-whats-new-link svg {
    transform: translateX(4px);
}

/* What's New Section */
.whats-new-section {
    margin-top: 0;
    margin-bottom: 3rem;
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
    position: relative;
    background-color: transparent;
    border-bottom: none;
}

/* What's New Section on Secondary Page - Different Styling */
.whats-new-section-secondary {
    margin-top: 0;
    padding-top: 0;
    position: relative;
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
    border-bottom: none;
}

/* Light override for Primary page */
.whats-new-section-dark-wrapper {
    background-color: #ffffff !important;
    border-radius: 1rem !important;
    padding: 2rem 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: auto !important;
    margin: 0 auto !important;
    transform: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    border-bottom: none !important;
}

@media (min-width: 1024px) {
    .whats-new-section-dark-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        min-width: auto !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        transform: none !important;
    }
}

.whats-new-content-wrapper {
    max-width: 1280px;
    margin: 0 auto;
}

.whats-new-section-dark-wrapper .whats-new-header :is(h1,h2) {
    color: #111827 !important;
}

.whats-new-section-dark-wrapper .whats-new-header p {
    color: #374151 !important;
}

.whats-new-section-dark-wrapper .whats-new-filter-btn {
    background-color: #ffffff !important;
    color: #374151 !important;
    border: 1.5px solid #d1d5db !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.whats-new-section-dark-wrapper .whats-new-filter-btn:hover {
    background-color: #ffffff !important;
    border-color: #9ca3af !important;
    color: #111827 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.whats-new-section-dark-wrapper .whats-new-filter-btn.active {
    background-color: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
}

.whats-new-section-dark-wrapper .whats-new-filter-btn.active:hover {
    background-color: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
}

.whats-new-section-dark-wrapper .whats-new-table-container {
    background-color: #ffffff !important;
    border: 1.5px solid #d1d5db !important;
    border-radius: 0.75rem !important;
    overflow: hidden;
}

.whats-new-section-dark-wrapper .whats-new-table thead {
    background-color: #f9fafb !important;
    border-bottom: 1px solid #e5e7eb !important;
}

.whats-new-section-dark-wrapper .whats-new-table th {
    color: #6b7280 !important;
}

.whats-new-section-dark-wrapper .whats-new-table tbody tr {
    border-bottom: 1px solid #d1d5db !important;
}

.whats-new-section-dark-wrapper .whats-new-table tbody tr:last-child {
    border-bottom: none !important;
}

.whats-new-section-dark-wrapper .whats-new-table tbody tr:hover {
    background-color: #f9fafb !important;
}

.whats-new-section-dark-wrapper .whats-new-table td,
.whats-new-section-dark-wrapper .whats-new-table-name {
    color: #111827 !important;
}

.whats-new-section-dark-wrapper .whats-new-table-location {
    color: #6b7280 !important;
}

.whats-new-section-dark-wrapper .whats-new-table-date {
    color: #d1d5db !important;
    font-weight: 600;
}

.whats-new-section-dark-wrapper .whats-new-table-action-text,
.whats-new-section-dark-wrapper .whats-new-table-action-text svg {
    color: #4b5563 !important;
}

.whats-new-section-dark-wrapper .whats-new-table-row:hover .whats-new-table-action-text,
.whats-new-section-dark-wrapper .whats-new-table-row:hover .whats-new-table-action-text svg {
    color: #111827 !important;
}

@media (min-width: 768px) {
    .whats-new-section-secondary {
        padding-left: 0;
        padding-right: 0;
    }
}

.whats-new-section-dark-wrapper {
    background-color: #151520;
    border-radius: 1.25rem;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    transform: none;
    position: relative;
    min-width: 100%;
}

@media (min-width: 1024px) {
    .whats-new-section-dark-wrapper {
        width: 80vw;
        max-width: 80vw;
        min-width: 1280px;
        margin-left: 50%;
        margin-right: auto;
        transform: translateX(-50%);
    }
}

.whats-new-content-wrapper {
    max-width: 1280px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .whats-new-section-dark-wrapper {
        padding: 3rem 2.5rem;
    }
}

.whats-new-section-secondary .whats-new-header {
    margin-bottom: 1.5rem;
    text-align: left;
}

.whats-new-section-dark-wrapper .whats-new-header :is(h1,h2) {
    font-size: 2rem;
    font-weight: 700;
    color: #111827 !important;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .whats-new-section-dark-wrapper .whats-new-header :is(h1,h2) {
        font-size: 2.25rem;
    }
}

.whats-new-section-dark-wrapper .whats-new-header p {
    font-size: 0.9375rem;
    color: #6b7280 !important;
    margin-top: 0.5rem;
    font-family: 'Roboto', sans-serif;
}

.whats-new-section-secondary .whats-new-filters {
    justify-content: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: none;
}

.whats-new-section-dark-wrapper .whats-new-filter-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: #d1d5db;
    border-color: transparent;
}

.whats-new-section-dark-wrapper .whats-new-filter-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: transparent;
    color: #ffffff;
}

.whats-new-section-dark-wrapper .whats-new-filter-btn.active {
    background-color: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.whats-new-section-dark-wrapper .whats-new-filter-btn.active:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

.whats-new-header {
    margin-bottom: 2rem;
    text-align: center;
}

.whats-new-header :is(h1,h2) {
    font-size: 3rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.5rem 0;
    font-family: 'Roboto', sans-serif;
    letter-spacing: -0.01em;
    position: relative;
}

.whats-new-title-highlight {
    position: relative;
    display: inline-block;
}

.whats-new-title-highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #fbbf24;
    border-radius: 2px;
}

@media (max-width: 480px) {
    .whats-new-header :is(h1,h2) {
        font-size: 2.5rem;
    }
}

@media (min-width: 768px) {
    .whats-new-header :is(h1,h2) {
        font-size: 3.5rem;
    }
}

/* Responsive styles for What's New section */
@media (max-width: 1024px) {
    .whats-new-section-secondary {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .whats-new-section-dark-wrapper {
        padding: 1.5rem 1rem !important;
    }
    
    .whats-new-content-wrapper {
        padding-left: 0;
        padding-right: 0;
    }
    
    .whats-new-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 0;
        padding-right: 0;
    }
    
    .whats-new-table {
        min-width: 800px;
    }
}

@media (max-width: 768px) {
    .whats-new-section-secondary {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .whats-new-section-dark-wrapper {
        padding: 1.25rem 0.75rem !important;
        border-radius: 0.75rem !important;
    }
    
    .whats-new-content-wrapper {
        padding-left: 0;
        padding-right: 0;
    }
    
    .whats-new-section-dark-wrapper .whats-new-header :is(h1,h2) {
        font-size: 1.5rem !important;
    }
    
    .whats-new-header :is(h1,h2) {
        font-size: 2rem;
    }
    
    .whats-new-header p {
        font-size: 0.875rem;
    }
    
    .whats-new-filters {
        gap: 0.375rem;
        margin-bottom: 1.5rem;
    }
    
    .whats-new-filter-btn {
        padding: 0.4375rem 0.875rem;
        font-size: 0.8125rem;
    }
    
    .whats-new-table-container {
        border-radius: 0.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-left: -0.75rem;
        margin-right: -0.75rem;
        padding-left: 0;
        padding-right: 0;
    }
    
    .whats-new-table {
        min-width: auto;
        width: 100%;
        font-size: 0.875rem;
        table-layout: fixed;
    }
    
    /* Set column widths for date and name */
    .whats-new-table td:first-child,
    .whats-new-table th:first-child {
        width: 30%;
    }
    
    .whats-new-table td:nth-child(2),
    .whats-new-table th:nth-child(2) {
        width: 70%;
    }
    
    /* Hide Location (3), Level (4), and column 5 on mobile - keep Date (1) and Name (2) */
    .whats-new-table th:nth-child(3),
    .whats-new-table th:nth-child(4),
    .whats-new-table th:nth-child(5),
    .whats-new-table td:nth-child(3),
    .whats-new-table td:nth-child(4),
    .whats-new-table td:nth-child(5) {
        display: none;
    }
    
    .whats-new-table th {
        padding: 0.5rem 0.625rem;
        font-size: 0.6875rem;
    }
    
    .whats-new-table th:first-child {
        padding-left: 0.75rem;
    }
    
    .whats-new-table th:last-child {
        padding-right: 0.75rem;
    }
    
    .whats-new-table td {
        padding: 0.625rem 0.625rem;
        font-size: 0.8125rem;
    }
    
    .whats-new-table td:first-child {
        padding-left: 0.75rem;
    }
    
    .whats-new-table td:last-child {
        padding-right: 0.75rem;
    }
    
    /* Show name with ellipsis on mobile */
    .whats-new-table td:nth-child(2) {
        max-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .whats-new-table-name {
        min-width: auto;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .whats-new-table-location {
        display: none;
    }
    
    .whats-new-table-date {
        min-width: auto;
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    /* On phones: hide only "View resources" text so resource name can span longer; keep arrow */
    .whats-new-table-action-text span {
        display: none !important;
    }
}

@media (max-width: 640px) {
    .whats-new-section-secondary {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .whats-new-section-dark-wrapper {
        padding: 1.25rem 0.75rem !important;
    }
    
    .whats-new-content-wrapper {
        padding-left: 0;
        padding-right: 0;
    }
    
    .whats-new-section-dark-wrapper .whats-new-header :is(h1,h2) {
        font-size: 1.375rem !important;
    }
    
    .whats-new-header :is(h1,h2) {
        font-size: 1.75rem;
    }
    
    .whats-new-filters {
        gap: 0.25rem;
    }
    
    .whats-new-filter-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .whats-new-table-container {
        margin-left: -0.75rem;
        margin-right: -0.75rem;
        padding-left: 0;
        padding-right: 0;
    }
    
    .whats-new-table {
        min-width: auto;
        width: 100%;
        table-layout: fixed;
    }
    
    /* Set column widths for date and name */
    .whats-new-table td:first-child,
    .whats-new-table th:first-child {
        width: 30%;
    }
    
    .whats-new-table td:nth-child(2),
    .whats-new-table th:nth-child(2) {
        width: 70%;
    }
    
    /* Hide Location (3), Level (4), and column 5 on mobile - keep Date (1) and Name (2) */
    .whats-new-table th:nth-child(3),
    .whats-new-table th:nth-child(4),
    .whats-new-table th:nth-child(5),
    .whats-new-table td:nth-child(3),
    .whats-new-table td:nth-child(4),
    .whats-new-table td:nth-child(5) {
        display: none;
    }
    
    .whats-new-table th {
        padding: 0.4375rem 0.5rem;
        font-size: 0.625rem;
    }
    
    .whats-new-table td {
        padding: 0.5rem 0.5rem;
        font-size: 0.75rem;
    }
    
    /* Show name with ellipsis on mobile */
    .whats-new-table-name {
        min-width: auto;
        max-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.8125rem;
    }
    
    .whats-new-table-location {
        display: none;
    }
    
    .whats-new-table-date {
        min-width: auto;
        font-size: 0.6875rem;
        white-space: nowrap;
    }
    
    /* Hide only "View resources" text; keep arrow so name can span longer */
    .whats-new-table-action-text span {
        display: none !important;
    }
}

@media (max-width: 500px) {
    /* Hide Level column on very small screens */
    .whats-new-table th:nth-child(4),
    .whats-new-table td:nth-child(4) {
        display: none;
    }
}

@media (max-width: 480px) {
    .whats-new-section-secondary {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .whats-new-section-dark-wrapper {
        padding: 1rem 0.5rem !important;
    }
    
    .whats-new-content-wrapper {
        padding-left: 0;
        padding-right: 0;
    }
    
    .whats-new-section-dark-wrapper .whats-new-header {
        margin-bottom: 1rem;
    }
    
    .whats-new-section-dark-wrapper .whats-new-header :is(h1,h2) {
        font-size: 1.25rem !important;
    }
    
    .whats-new-header :is(h1,h2) {
        font-size: 2.5rem;
    }
    
    .whats-new-header p {
        font-size: 0.8125rem;
    }
    
    .whats-new-filters {
        gap: 0.25rem;
        margin-bottom: 1rem;
    }
    
    .whats-new-filter-btn {
        padding: 0.3125rem 0.625rem;
        font-size: 0.6875rem;
        border-radius: 0.5rem;
    }
    
    .whats-new-table-container {
        border-radius: 0.5rem;
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        padding-left: 0;
        padding-right: 0;
    }
    
    .whats-new-table {
        min-width: auto;
        width: 100%;
        table-layout: fixed;
    }
    
    /* Set column widths for date and name */
    .whats-new-table td:first-child,
    .whats-new-table th:first-child {
        width: 30%;
    }
    
    .whats-new-table td:nth-child(2),
    .whats-new-table th:nth-child(2) {
        width: 70%;
    }
    
    /* Hide Location (3), Level (4), and column 5 on mobile - keep Date (1) and Name (2) */
    .whats-new-table th:nth-child(3),
    .whats-new-table th:nth-child(4),
    .whats-new-table th:nth-child(5),
    .whats-new-table td:nth-child(3),
    .whats-new-table td:nth-child(4),
    .whats-new-table td:nth-child(5) {
        display: none;
    }
    
    .whats-new-table th {
        padding: 0.375rem 0.4375rem;
        font-size: 0.5625rem;
    }
    
    .whats-new-table td {
        padding: 0.4375rem 0.4375rem;
        font-size: 0.6875rem;
    }
    
    /* Show name with ellipsis on mobile */
    .whats-new-table-name {
        min-width: auto;
        max-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.75rem;
    }
    
    .whats-new-table-location {
        display: none;
    }
    
    .whats-new-table-date {
        min-width: auto;
        font-size: 0.625rem;
        white-space: nowrap;
    }
    
    .whats-new-table-action-text {
        display: none;
    }
}

.whats-new-header p {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

.whats-new-contact-link {
    color: #6b7280;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.whats-new-contact-link:hover {
    color: #374151;
    text-decoration: underline;
}

.whats-new-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding-bottom: 0;
    justify-content: center;
}

.whats-new-filter-btn {
    padding: 0.5rem 1rem;
    background-color: #ffffff;
    color: #374151;
    border: 1.5px solid #d1d5db;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    display: inline-flex;
    align-items: center;
}

.whats-new-filter-btn:hover {
    background-color: #ffffff;
    border-color: #9ca3af;
    color: #111827;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.whats-new-filter-btn.active {
    background-color: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.whats-new-filter-btn.active:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

.whats-new-table-container {
    background-color: #ffffff;
    border: 1.5px solid #d1d5db;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.whats-new-section-dark-wrapper .whats-new-table-container {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.05);
}

.whats-new-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Roboto', sans-serif;
}

.whats-new-table thead {
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.whats-new-section-dark-wrapper .whats-new-table thead {
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.whats-new-table th {
    padding: 0.5rem 0.75rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.whats-new-section-dark-wrapper .whats-new-table th {
    color: #9ca3af;
}

.whats-new-table th:first-child {
    padding-left: 1rem;
}

.whats-new-table th:nth-child(3) {
    text-align: center;
}

.whats-new-table th:nth-child(4) {
    text-align: center;
}

.whats-new-table th:last-child {
    padding-right: 1rem;
    text-align: right;
}

.whats-new-table tbody tr {
    border-bottom: 1px solid #d1d5db;
    transition: background-color 0.15s ease;
}

.whats-new-table tbody tr:last-child {
    border-bottom: none;
}

.whats-new-table tbody tr:hover {
    background-color: #fafafa;
}

.whats-new-table tbody tr[style*="cursor: pointer"] {
    cursor: pointer;
}

.whats-new-table tbody tr[style*="cursor: pointer"]:hover {
    background-color: #f3f4f6;
}

.whats-new-section-dark-wrapper .whats-new-table tbody tr {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.whats-new-section-dark-wrapper .whats-new-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.whats-new-table td {
    padding: 0.5rem 0.75rem;
    font-size: 0.9375rem;
    color: #111827;
    vertical-align: middle;
}

.whats-new-section-dark-wrapper .whats-new-table td {
    color: #e5e7eb;
}

.whats-new-table td:first-child {
    padding-left: 1rem;
}

.whats-new-table td:nth-child(3) {
    text-align: center;
}

.whats-new-table td:nth-child(4) {
    text-align: center;
}

.whats-new-table td:last-child {
    padding-right: 1rem;
}

.whats-new-table-name {
    font-weight: 600;
    min-width: 200px;
    color: #111827;
}

.whats-new-section-dark-wrapper .whats-new-table-name {
    color: #ffffff;
}

.whats-new-table-location {
    color: #6b7280;
    font-size: 0.875rem;
    min-width: 150px;
    white-space: nowrap;
}

.whats-new-section-dark-wrapper .whats-new-table-location {
    color: #9ca3af;
}

.whats-new-table-topic,
.whats-new-table-format {
    white-space: nowrap;
    text-align: center;
}

.whats-new-table-level {
    white-space: nowrap;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.5rem;
}

.whats-new-table td.whats-new-table-date,
.whats-new-table-date {
    color: #9ca3af !important;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    min-width: 120px;
}

.whats-new-section-dark-wrapper .whats-new-table td.whats-new-table-date,
.whats-new-section-dark-wrapper .whats-new-table-date {
    color: #9ca3af !important;
    font-weight: 600;
}

.whats-new-table-action {
    text-align: right;
}

.whats-new-table-action-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    font-family: 'Roboto', sans-serif;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.2s ease;
}

.whats-new-table-row:hover .whats-new-table-action-text {
    color: #111827;
}

.whats-new-section-dark-wrapper .whats-new-table-action-text {
    color: #ffffff;
}

.whats-new-section-dark-wrapper .whats-new-table-row:hover .whats-new-table-action-text {
    color: #e5e7eb;
}

.whats-new-table-action-text svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.whats-new-table-row:hover .whats-new-table-action-text svg {
    transform: translateX(4px);
}

.whats-new-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
    background-color: #ffffff;
}

.whats-new-list-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s ease;
    gap: 1rem;
}

.whats-new-list-date {
    font-size: 0.8125rem;
    color: #6b7280;
    font-family: 'Roboto', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
    width: 100px;
}

.whats-new-list-item:last-child {
    border-bottom: none;
}

.whats-new-list-item:hover {
    background-color: #f9fafb;
}

.whats-new-list-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #6b7280;
}

.whats-new-list-item:hover .whats-new-list-icon {
    color: #2563eb;
}

.whats-new-list-icon svg {
    width: 20px;
    height: 20px;
}

.whats-new-list-content {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.whats-new-list-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    font-family: 'Roboto', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Mobile - show name with ellipsis */
@media (max-width: 768px) {
    .whats-new-list-item {
        padding: 0.625rem 1rem;
        gap: 0.75rem;
    }
    
    .whats-new-list-content {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }
    
    .whats-new-list-name {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: block;
    }
    
    .whats-new-list-location {
        display: none;
    }
    
    .whats-new-list-tags {
        display: none;
    }
    
    .whats-new-list-link {
        display: none;
    }
    
    .whats-new-list-date {
        width: auto;
        min-width: 60px;
        font-size: 0.75rem;
    }
}

.whats-new-list-location {
    font-weight: 400;
    color: #6b7280;
    font-size: 0.8125rem;
}

.whats-new-list-tags {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-left: auto;
    margin-right: 1rem;
}

.whats-new-tag {
    display: inline-block;
    padding: 0.25rem 0.5625rem;
    background-color: #f9fafb;
    color: #6b7280;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    white-space: nowrap;
    line-height: 1.3;
}

/* Level-specific colors - apply to both dark wrapper and regular section */
.whats-new-table-level .whats-new-tag {
    font-weight: 700;
    margin-right: 0.5rem;
}

.whats-new-table-level .whats-new-tag:last-child {
    margin-right: 0;
}

.whats-new-table-level .whats-new-tag[data-level="primary"] {
    background-color: #10b981;
    color: #ffffff;
}

.whats-new-table-level .whats-new-tag[data-level="secondary"] {
    background-color: #3b82f6;
    color: #ffffff;
}

.whats-new-table-level .whats-new-tag[data-level="as"] {
    background-color: #f59e0b;
    color: #ffffff;
}

.whats-new-table-level .whats-new-tag[data-level="alevel"] {
    background-color: #ef4444;
    color: #ffffff;
}

.whats-new-table-level .whats-new-tag[data-level="alevel-further"] {
    background-color: #8b5cf6;
    color: #ffffff;
}

.whats-new-table-level .whats-new-tag[data-level="gcse"] {
    background-color: #fbbf24;
    color: #78350f;
}

.whats-new-table-level .whats-new-tag[data-level="l2"] {
    background-color: #1e3a8a;
    color: #ffffff;
}

.whats-new-table-level .whats-new-tag[data-level="l2fm"] {
    background-color: #7c3aed;
    color: #ffffff;
}

.whats-new-table-level .whats-new-tag[data-level="further"] {
    background-color: #8b5cf6;
    color: #ffffff;
}

.whats-new-table-level .whats-new-tag[data-level="all"] {
    background-color: #6b7280;
    color: #ffffff;
}

.whats-new-list-link {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    font-family: 'Roboto', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.whats-new-list-item:hover .whats-new-list-link {
    color: #111827;
}

.whats-new-list-link svg {
    transition: transform 0.2s ease;
}

.whats-new-list-item:hover .whats-new-list-link svg {
    transform: translateX(4px);
}

.whats-new-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
    font-family: 'Roboto', sans-serif;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background-color: #ffffff;
}

.whats-new-table tbody .whats-new-empty-state td {
    text-align: center;
    padding: 3rem 1rem;
    border: none;
    color: #6b7280;
}

.whats-new-table tbody .whats-new-empty-state td p {
    margin: 0;
    font-size: 1rem;
}

.whats-new-view-all {
    margin-top: 1.5rem;
    text-align: center;
}

.whats-new-view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    transition: color 0.2s ease;
}

.whats-new-view-all-link:hover {
    color: #1d4ed8;
}

.whats-new-section-dark-wrapper .whats-new-view-all-link {
    color: #2563eb !important;
}

.whats-new-section-dark-wrapper .whats-new-view-all-link:hover {
    color: #1d4ed8 !important;
}

.whats-new-view-all-link svg {
    transition: transform 0.2s ease;
}

.whats-new-view-all-link:hover svg {
    transform: translateX(4px);
}

.whats-new-return {
    margin-bottom: 2rem;
}

.whats-new-return-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #2563eb;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    transition: color 0.2s ease;
}

.whats-new-return-link:hover {
    color: #1d4ed8;
}

.whats-new-return-link svg {
    transition: transform 0.2s ease;
}

.whats-new-return-link:hover svg {
    transform: translateX(-4px);
}

/* Search Results Top Navigation Bar */
.search-results-top-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    width: 100%;
}

.search-results-nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-results-how-to-use-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2563eb;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.search-results-how-to-use-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.search-results-how-to-use-link:active {
    color: #1e40af;
}

@media (max-width: 768px) {
    .search-results-top-nav-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .search-results-nav-right {
        width: 100%;
        justify-content: flex-end;
    }
    
    /* Hide "How to use resources" on phones */
    .search-results-how-to-use-link {
        display: none !important;
    }
}

.whats-new-empty-state p {
    margin: 0;
    font-size: 1rem;
}

/* Search Results Input Styling - Matching Whats New Page */
.whats-new-section .search-results-input-container {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.whats-new-section .search-results-subtitle {
    text-align: center;
    font-size: 0.9375rem;
    color: #6b7280;
    margin: 0 0 1.5rem 0;
    font-family: 'Roboto', sans-serif;
}

.whats-new-section .search-results-filters {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.whats-new-section .search-results-level-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.whats-new-section .search-results-type-filter {
    display: flex;
    align-items: center;
}

.whats-new-section .search-results-type-select {
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    background-color: #ffffff;
    color: #374151;
    border: 1.5px solid #d1d5db;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    width: 200px; /* Fixed width */
    max-width: 200px; /* Prevent growing */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    background-size: 14px 14px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.whats-new-section .search-results-type-select:hover {
    border-color: #9ca3af;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.whats-new-section .search-results-type-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

@media (max-width: 768px) {
    .whats-new-section .search-results-filters {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .whats-new-section .search-results-level-filters {
        gap: 0.375rem;
        width: 100%;
        justify-content: center;
    }
    
    .whats-new-section .search-results-type-filter {
        width: 100%;
    }
    
    .whats-new-section .search-results-type-select {
        width: 100%;
        max-width: 100%;
    }
}

.whats-new-section .search-results-form {
    width: 100%;
    max-width: 600px;
}

.whats-new-section .search-results-input-wrapper {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 1.5px solid #d1d5db;
    border-radius: 0.75rem;
    padding: 0.5rem;
    gap: 0.5rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.whats-new-section .search-results-input-wrapper:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.whats-new-section .search-results-icon {
    color: #9ca3af;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.whats-new-section .search-results-input {
    flex: 1;
    min-width: 0; /* allow shrinking so Search button stays on screen when clear appears */
    border: none;
    outline: none;
    font-size: 0.9375rem;
    font-family: 'Roboto', sans-serif;
    color: #111827;
    background: transparent;
    padding: 0.25rem 0;
}

.whats-new-section .search-results-input::placeholder {
    color: #9ca3af;
}

.whats-new-section .search-results-clear-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.25rem;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    transition: color 0.2s ease;
    border-radius: 0.25rem;
}

.whats-new-section .search-results-clear-btn:hover {
    color: #374151;
    background-color: #f3f4f6;
}

.whats-new-section .search-results-button {
    padding: 0.625rem 1.25rem;
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.whats-new-section .search-results-button:hover {
    background-color: #1d4ed8;
}

.whats-new-section .search-results-button:active {
    background-color: #1e40af;
}

@media (max-width: 768px) {
    .whats-new-section .search-results-input-container {
        margin-bottom: 1.5rem;
    }
    
    .whats-new-section .search-results-form {
        max-width: 100%;
    }
    
    .whats-new-section .search-results-input-wrapper {
        padding: 0.4375rem;
        min-width: 0; /* allow wrapper to shrink so Search button stays visible */
    }
    
    .whats-new-section .search-results-button {
        flex-shrink: 0; /* keep Search button on screen when clear button appears */
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
}
