.button-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    transition: color 0.2s;
}
.button-primary .icon {
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
    margin-left: 0.25em;
}
.button-primary:hover .icon,
.button-primary:focus .icon {
    transform: translateX(5px) scale(1.08);
}
.news-wrapper {
    flex: 1;
    background-color: var(--gray-50);
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.container {
    max-width: 1280px; /* max-w-7xl */
    margin-left: auto;
    margin-right: auto;
    padding: 4rem 1.5rem; /* py-16 px-6 */
}

/* --- Layout --- */
.news-layout {
    display: grid;
    gap: 2rem; /* gap-8 */
}

.news-content {
    display: flex;
    flex-direction: column;
    gap: 2rem; /* space-y-8 */
}

.resource-sidebar {
    grid-column: span 1 / span 1;
}

.sidebar-sticky-content {
    position: sticky;
    top: 10rem;
    margin-top: 3rem;
}

/* --- Typography --- */
.section-title {
    font-size: 1.5rem; /* text-2xl */
    line-height: 2rem;
    font-weight: 700; /* font-bold */
    color: var(--daikin-dark-navy);
    margin-bottom: 1.5rem; /* mb-6 */
}

.subsection-title {
    font-size: 1.125rem; /* text-lg */
    line-height: 1.75rem;
    font-weight: 600; /* font-semibold */
    color: var(--daikin-dark-navy);
}

/* --- Featured Card --- */
.featured-news-section {
    display: flex;
    flex-direction: column;
}

.featured-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); /* shadow-sm */
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem; /* rounded-lg */
    background-color: #fff;
}

.featured-card .card-image-container {
    height: 16rem; /* h-64 */
    overflow: hidden;
}

.featured-card .card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-card .card-body {
    padding: 1.5rem; /* p-6 */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.featured-card .card-date {
    font-size: 0.875rem; /* text-sm */
    color: var(--daikin-blue);
    font-weight: 500; /* font-medium */
    margin-bottom: 0.5rem; /* mb-2 */
}

.featured-card .card-title {
    font-size: 1.25rem; /* text-xl */
    font-weight: 700; /* font-bold */
    color: var(--daikin-dark-navy);
    margin: 0 0 0.75rem 0; /* mb-3 */
    line-height: 1.3; /* leading-tight */
}

.featured-card .card-description {
    color: var(--gray-600);
    margin-bottom: 1rem; /* mb-4 */
    line-height: 1.625; /* leading-relaxed */
}

.button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem; /* rounded-md */
    font-size: 0.875rem; /* text-sm */
    font-weight: 500; /* font-medium */
    padding: 0.5rem 1rem; /* px-4 py-2 */
    background-color: var(--daikin-blue);
    color: white;
    text-decoration: none;
    transition: background-color 0.2s;
}

.button-primary:hover {
    background-color: var(--daikin-dark-navy);
}


/* --- Filter Section --- */
.filter-header {
    display: flex;
    align-items: center;
    gap: 1rem; /* gap-4 */
    margin-bottom: 1.5rem; /* mb-6 */
}
.filter-icon {
    width: 1.25rem; /* h-5 w-5 */
    height: 1.25rem;
    color: var(--daikin-blue);
}
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem; /* gap-3 */
}
.filter-btn {
    padding: 0.5rem 1rem;
    font-family: var(--font-primary);
    font-size: 0.875rem;
    border-radius: 0.375rem;
    border: 1px solid var(--daikin-blue);
    background-color: transparent;
    color: var(--daikin-blue);
    cursor: pointer;
    transition: all 0.2s;
}
.filter-btn:hover {
    background-color: var(--daikin-blue);
    color: white;
}
.filter-btn.active {
    background-color: var(--daikin-blue);
    color: white;
}

/* --- News List --- */
.news-list {
    display: grid;
    gap: 1.5rem; /* gap-6 */
}
.news-item {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    background-color: #fff;
}
.news-item-image {
    height: 12rem; /* h-48 */
    overflow: hidden;
}
.news-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-item-body {
    width: 100%;
    padding: 1rem; /* p-4 */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
    box-sizing: border-box;
}
.tag-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* gap-2 */
    margin-bottom: 0.75rem; /* mb-3 */
}
.tag {
    font-size: 0.75rem; /* text-xs */
    background-color: rgba(0, 114, 206, 0.1); /* bg-daikin-blue/10 */
    color: var(--daikin-blue);
    padding: 0.25rem 0.5rem; /* px-2 py-1 */
    border-radius: 0.25rem;
    width: fit-content;
}
.date {
    font-size: 0.75rem;
    color: var(--gray-500);
}
.news-item-title {
    font-size: 1rem; /* text-base */
    font-weight: 600;
    color: var(--daikin-dark-navy);
    transition: color 0.2s;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}
.news-item:hover .news-item-title {
    color: var(--daikin-blue);
}
.news-item-description {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.625;
    margin-bottom: 2rem;
}
.arrow-icon-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.75rem;
}
.arrow-icon-wrapper svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--gray-400);
}

/* --- Sidebar --- */
.sidebar-widget {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    backdrop-filter: blur(10px);
}
.sidebar-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--daikin-dark-navy);
    margin: 0 0 1.5rem 0;
    text-align: center;
}
.resource-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.resource-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background-color 0.2s;
}
.resource-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.resource-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--daikin-blue);
    transition: color 0.2s;
}
.resource-link:hover .resource-icon {
    color: var(--daikin-dark-navy);
}
.resource-text {
    font-size: 0.875rem;
    color: var(--daikin-dark-navy);
    transition: color 0.2s;
}
.resource-link:hover .resource-text {
    color: var(--daikin-blue);
}
.resource-link .arrow-icon {
    width: 1rem;
    height: 1rem;
    color: var(--gray-400);
    margin-left: auto;
    transition: color 0.2s;
}
.resource-link:hover .arrow-icon {
    color: var(--daikin-blue);
}

.no-news-message {
    text-align: center;
    padding: 2rem;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem; 
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slider-container .featured-card {
    width: 100%;
    flex-shrink: 0;
}

.slider-btn {
    position: relative;
    background-color: var(--daikin-blue);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
    line-height: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.2s;
}

.slider-btn:hover {
    background-color: rgba(0, 44, 86, 0.8);
}

.slider-btn:disabled {
    background-color: rgba(107, 114, 128, 0.3);
    cursor: not-allowed;
}

.slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    gap: 0.5rem;
    z-index: 10;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.2s;
    border: 0;
}

.slider-dots .dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.slider-dots .dot.active {
    background-color: white;
}

.featured-news-header {
    position: relative;
    display: flex;
    justify-content: space-between; /* Pushes title left and buttons right */
    align-items: center;
    margin-bottom: 1.5rem; /* Same margin as the original section-title */
}

/* Make sure the title has no bottom margin anymore, as the header handles it */
.featured-news-header .section-title {
    margin-bottom: 0;
}

/* --- Responsive Breakpoints --- */
@media (min-width: 640px) { /* sm: */
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    .tag-group {
        flex-direction: row;
        align-items: center;
    }
    .tag, .date {
        font-size: 0.875rem;
    }
    .news-item-title {
        font-size: 1.125rem;
    }
}

@media (min-width: 768px) { /* md: */
    .featured-card {
        flex-direction: row;
    }
    .featured-card .card-image-container {
        width: 33.333333%;
        height: auto;
    }
    .featured-card .card-body {
        width: 66.666667%;
    }
    .news-item {
        flex-direction: row;
    }
    .news-item-image {
        width: 33.333333%;
        height: auto;
    }
    .news-item-body {
        width: 66.666667%;
        min-height: 180px;
        padding: 1.5rem;
    }
    .news-item-title {
        font-size: 1.25rem;
    }
}

@media (min-width: 1024px) { /* lg: */
    .container {
        padding-left: 3rem;
        padding-right: 3rem;
    }
    .news-layout {
        grid-template-columns: repeat(4, 1fr);
    }
    .news-content {
        grid-column: span 3 / span 3;
    }
}
