/* Responsive styles for news details */
.news-details-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.news-details-hero-section {
    padding: 4rem 0 2rem;
}

.news-details-content-grid {
    display: flex;
    flex-direction: row;
    gap: 2.5rem;
    align-items: flex-start;
}

.news-details-sidebar {
    min-width: 320px;
    max-width: 400px;
    flex: 1 1 320px;
    position: static;
    margin-top: 0;
}

.news-details-featured-image-container img {
    width: 100%;
    height: auto;
    max-width: 700px;
    display: block;
    margin: 0 auto;
}

.news-details-article-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.news-details-article-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.news-details-card {
    background: var(--white, #fff);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 1.5rem;
    /* padding: 2rem; */
}

.news-details-related-articles-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-details-related-article {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--gray-50, #f9fafb);
    border-radius: 12px;
    padding: 1rem;
    flex-direction: column;
    transition: box-shadow 0.2s;
}

.news-details-related-article:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
}

.news-details-related-article-image {
    width: 110px;
    height: 82px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .news-details-related-article-image {
        width: 80px;
        height: 60px;
    }
}

.news-details-related-article-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.news-details-related-article-excerpt {
    font-size: 0.98rem;
    color: var(--gray-700, #374151);
    margin-bottom: 0.25rem;
}

.news-details-related-article-date {
    font-size: 0.92rem;
    color: var(--gray-500, #6b7280);
}

.news-details-tag {
    display: inline-block;
    background: var(--daikin-blue, #0097d3);
    color: var(--white, #fff);
    border-radius: 16px;
    padding: 0.25em 1em;
    font-size: 0.95em;
    margin: 0 0.25em 0.5em 0;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    cursor: pointer;
}

.news-details-tag:hover, .news-details-tag:focus {
    background: var(--daikin-dark-navy, #002d72);
    color: var(--white, #fff);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px) scale(1.06);
    text-decoration: none;
}

.news-details-related-article-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.5em;
    line-height: 1.5em;
}

.news-wrapper {
    background: #fff;
    padding: 8rem 0 4rem;
}

.news-details-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* --- Hero Section --- */
.news-details-hero-section {
    position: relative;
    padding: 3rem 1.5rem 1rem;
}

.news-details-hero-content {
    max-width: 56rem;
    /* max-w-4xl */
    margin: 0 auto;
}

.news-details-meta-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    /* gap-4 */
    margin-bottom: 1.5rem;
    /* mb-6 */
    font-size: 0.875rem;
    /* text-sm */
}

.news-details-category-badge {
    background-color: rgba(0, 114, 198, 0.1);
    /* bg-daikin-blue/10 */
    color: var(--daikin-blue);
    padding: 0.25rem 0.75rem;
    /* px-3 py-1 */
    border-radius: 9999px;
    /* rounded-full */
    font-weight: 500;
    /* font-medium */
}

.news-details-meta-info {
    display: flex;
    align-items: center;
    color: #6b7280;
    /* text-gray-500 */
    gap: 1rem;
    /* space-x-4 */
}

.news-details-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    /* space-x-1 */
}

.icon-sm {
    height: 1rem;
    /* h-4 */
    width: 1rem;
    /* w-4 */
}

.news-details-article-title {
    font-weight: 700;
    /* font-bold */
    font-size: 1.875rem;
    /* text-3xl */
    color: var(--daikin-dark-navy);
    line-height: 1.2;
    /* leading-tight */
    margin-bottom: 1rem;
    /* mb-4 */
}

.news-details-article-subtitle {
    font-size: 1.25rem;
    /* text-xl */
    color: #4b5563;
    /* text-gray-600 */
    line-height: 1.625;
    /* leading-relaxed */
    margin-bottom: 2rem;
    /* mb-8 */
}

.news-details-featured-image-container {
    margin-bottom: 3rem;
    /* mb-12 */
}

.news-details-featured-image {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    /* rounded-lg */
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    /* shadow-lg */
}


/* --- Main Content Area --- */
.news-details-main-content-area {
    flex: 1;
    background-color: #ffffff;
    padding: 4rem 1.5rem;
}

.news-details-content-grid {
    max-width: 80rem;
    /* max-w-7xl */
    margin: 0 auto;
    display: grid;
    gap: 2rem;
    align-items: start;
    grid-template-columns: repeat(4, 1fr);
}

.news-details-article-body {
    grid-column: span 3 / span 3;
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.news-details-text-section {
    max-width: none;
    margin-bottom: 2rem;
}

.news-details-section-heading {
    font-size: 1.5rem;
    /* text-2xl */
    font-weight: 700;
    /* font-bold */
    color: #222;
    margin-bottom: 1rem;
}

.news-details-text-section p {
    color: #374151;
    /* text-gray-700 */
    line-height: 1.625;
    /* leading-relaxed */
    margin-bottom: 1rem;
}

.news-details-list {
    list-style-position: inside;
    list-style-type: disc;
    margin-bottom: 1rem;
    padding-left: 0;
}

.news-details-list li {
    margin-bottom: 0.5rem;
    /* space-y-2 */
    color: #374151;
}

.news-details-image-section {
    margin-bottom: 2rem;
}

.news-details-content-image {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.news-details-image-caption {
    font-size: 0.875rem;
    /* text-sm */
    color: #4b5563;
    /* text-gray-600 */
    margin-top: 0.5rem;
    text-align: center;
}

.news-details-quote-section {
    background-color: rgba(0, 114, 198, 0.05);
    /* bg-daikin-blue/5 */
    border-left: 4px solid #0097d3;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin: 2rem 0;
}

.news-details-quote-section blockquote {
    font-size: 1.125rem;
    /* text-lg */
    color: #1a3a4a;
    font-style: italic;
    margin: 0;
}

.news-details-quote-section cite {
    display: block;
    margin-top: 0.5rem;
    color: #888;
    font-size: 1rem;
    font-style: normal;
}

.news-details-video-section {
    position: relative;
    margin-bottom: 2rem;
}

.news-details-video-player {
    aspect-ratio: 16 / 9;
    background-color: #e5e7eb;
    /* bg-gray-200 */
    border-radius: 0.5rem;
    overflow: hidden;
}

.news-details-video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-details-video-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.3);
}

.news-details-play-button {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border: none;
    border-radius: 50%;
    padding: 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.news-details-play-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.play-icon {
    height: 2rem;
    /* h-8 */
    width: 2rem;
    /* w-8 */
    color: white;
    fill: white;
}

.news-details-video-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #222;
    margin-top: 1rem;
}

.news-details-cta-section {
    background-color: #f9fafb;
    /* bg-gray-50 */
    border-radius: 0.5rem;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.news-details-cta-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.5rem;
}

.news-details-cta-description {
    color: #374151;
    margin-bottom: 1rem;
}

.news-details-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-color: #0097d3;
    color: #fff;
    margin-top: 1rem;
}

.news-details-btn-primary {
    background-color: #0097d3;
    color: #fff;
}

.news-details-btn-primary:hover {
    background-color: #002d72;
}

.news-details-btn-outline {
    border-color: #e5e7eb;
    background-color: #fff;
    color: #374151;
}

.news-details-btn-outline:hover {
    background-color: #f9fafb;
}

.news-details-download-section {
    border: 1px solid #e5e7eb;
    /* border-gray-200 */
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 2rem;
}

.news-details-download-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    /* space-x-3 */
}

.news-details-download-icon {
    height: 1.25rem;
    /* h-5 */
    width: 1.25rem;
    /* w-5 */
    color: #0097d3;
}

.news-details-download-title {
    font-weight: 600;
    color: #222;
}

.news-details-download-description {
    font-size: 0.95rem;
    color: #4b5563;
}

.news-details-download-content .news-details-btn-outline {
    margin-left: auto;
}


/* --- Sidebar --- */
.news-details-sidebar {
    position: sticky;
    top: 9rem;
    /* top-8 */
    display: flex;
    flex-direction: column;
    gap: 2rem;
    /* space-y-8 */
}

.news-details-card {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.news-details-card-content {
    padding: 1rem;
    /* p-4 */
}

.news-details-card-title {
    font-weight: 600;
    color: var(--daikin-dark-navy);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.news-details-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.news-details-tag {
    background-color: #f3f4f6;
    /* bg-gray-100 */
    color: #374151;
    /* text-gray-700 */
    padding: 0.25rem 0.5rem;
    /* px-2 py-1 */
    border-radius: 0.25rem;
    /* rounded */
    font-size: 0.875rem;
    /* text-sm */
}

.news-details-related-articles-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-details-related-article {
    border-bottom: 1px solid #f3f4f6;
    /* border-gray-100 */
    padding-bottom: 1rem;
}

.news-details-related-articles-container .news-details-related-article:last-child {
    border-bottom: none;
}

.news-details-related-article-image {
    width: 100%;
    height: 8rem;
    /* h-32 */
    object-fit: cover;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
}

.news-details-related-article-title {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--daikin-dark-navy);
    line-height: 1.25;
    /* leading-tight */
    margin-bottom: 0.25rem;
}

.news-details-related-article-excerpt {
    font-size: 0.75rem;
    /* text-xs */
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.news-details-related-article-date {
    font-size: 0.75rem;
    color: #6b7280;
}

.news-details-article-body h1,
.news-details-article-body h2,
.news-details-article-body h3,
.news-details-article-body h4,
.news-details-article-body h5,
.news-details-article-body h6 {
    color: #222;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.news-details-article-body h1 {
    font-size: 2.5rem;
}

.news-details-article-body h2 {
    font-size: 2rem;
}

.news-details-article-body h3 {
    font-size: 1.5rem;
}

.news-details-article-body h4 {
    font-size: 1.25rem;
}

.news-details-article-body h5 {
    font-size: 1.1rem;
}

.news-details-article-body h6 {
    font-size: 1rem;
}

.news-details-article-body p,
.news-details-article-body ul,
.news-details-article-body ol,
.news-details-article-body blockquote,
.news-details-article-body pre,
.news-details-article-body table {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.15rem;
    line-height: 1.7;
}

.news-details-article-body ul,
.news-details-article-body ol {
    padding-left: 2rem;
}

.news-details-article-body ul {
    list-style: disc inside;
}

.news-details-article-body ol {
    list-style: decimal inside;
}

.news-details-article-body li {
    margin-bottom: 0.5rem;
}

.news-details-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0 1rem 0;
    display: block;
}

.news-details-article-body blockquote {
    border-left: 4px solid #0097d3;
    background: #f1f8fb;
    padding: 1rem 1.5rem;
    font-style: italic;
    color: #1a3a4a;
    margin: 2rem 0;
}

.news-details-article-body cite {
    display: block;
    color: #888;
    font-size: 1rem;
    margin-top: 0.5rem;
    font-style: normal;
}

.news-details-article-body button,
.news-details-article-body a.button {
    display: inline-block;
    background: #0097d3;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    margin-bottom: 1rem;
    transition: background 0.2s;
    text-decoration: none;
}

.news-details-article-body button:hover,
.news-details-article-body a.button:hover {
    background: #002d72;
}

.news-details-article-body .image-caption {
    color: #888;
    font-size: 0.95rem;
    margin-top: -1rem;
    margin-bottom: 2rem;
    text-align: center;
}

.news-details-article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.news-details-article-body th,
.news-details-article-body td {
    border: 1px solid #e5e7eb;
    padding: 0.75rem 1rem;
    text-align: left;
}

.news-details-article-body th {
    background: #f1f8fb;
    font-weight: 600;
}

.news-details-article-body pre {
    background: #f4f4f4;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 1rem;
    margin: 2rem 0;
}

.news-details-article-body a {
    color: #0097d3;
    text-decoration: underline;
    word-break: break-word;
}

.news-details-article-body a:hover {
    color: #002d72;
}

.news-details-article-body .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background-color: var(--daikin-blue);
    color: white;
    text-decoration: none;
    transition: background-color 0.2s;
}

.news-details-article-body .btn-primary:hover {
    background-color: var(--daikin-dark-navy);
    color: #ffffff;
}


.news-details-article-body iframe {
    width: 100% !important;
    position: relative !important;
    height: 400px !important;
    box-shadow: none !important;
    border: 0 !important;
    border-radius: .5rem;
}

@media (max-width: 1024px) {
    .news-details-content-grid {
        flex-direction: column;
        gap: 2rem;
    }

    .news-details-sidebar {
        min-width: 0;
        max-width: 100%;
        margin-top: 2.5rem;
    }
}

@media (max-width: 768px) {
    .news-details-hero-section {
        padding: 2.5rem 0 1.5rem;
    }

    .news-details-article-title {
        font-size: 1.5rem;
    }

    .news-details-featured-image-container {
        margin-bottom: 1.5rem;
    }

    .news-details-content-grid {
        gap: 1.25rem;
    }

    .news-details-sidebar {
        margin-top: 1.5rem;
        padding: 0;
    }

    .news-details-content-grid {
        display: flex;
    }

    .news-details-card {
        padding: 0;
    }

    .news-details-main-content-area {
        padding: 0;
    }

    .image-gallery {
        margin: 0;
    }
}

@media (max-width: 600px) {
    .news-details-container {
        padding: 0 0.25rem;
    }

    .news-details-hero-section {
        padding: 1.25rem 0 0.5rem;
    }

    .news-details-article-title {
        font-size: 1.05rem;
    }

    .news-details-featured-image-container img,
    .gallery-image {
        border-radius: 8px;
        height: auto;
        aspect-ratio: 4/3;
        max-width: 100%;
    }

    .news-details-sidebar {
        margin-top: 0.75rem;
        padding: 0;
    }

    .news-details-card {
        padding: 0.75rem;
    }

    .news-details-related-article {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .news-details-related-articles-container {
        gap: 0.75rem;
    }
    .news-details-article-body {
        padding: 0 0.5rem;
    }

    .news-details-article-body h1 {
        font-size: 2rem;
    }

    .news-details-article-body h2 {
        font-size: 1.5rem;
    }

    .news-details-article-body h3 {
        font-size: 1.2rem;
    }
}