/*
    Skillsat News/Blog Page Styles
    Font: 'Poppins', sans-serif
    Primary Blue: #4eabff
    Primary Dark Blue: #3f94d1
    Dark: #181d26
    Text: #333
    Light theme (white backgrounds)
*/

/* ============================================================
   1. NEWS HERO / FEATURED POST HEADER
   ============================================================ */

.news-hero {
    padding: 120px 0 60px;
    background-color: #ffffff;
    text-align: center;
}

.news-hero__header {
    max-width: 700px;
    margin: 0 auto;
}

.news-hero__title {
    font-family: 'Poppins', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #181d26;
    line-height: 1.2;
    margin-bottom: 16px;
}

.news-hero__subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #888;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}


/* ============================================================
   2. FEATURED POST CARD
   ============================================================ */

.news-featured-section {
    padding: 20px 0 60px;
    background-color: #ffffff;
}

.news-featured {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
}

.news-featured__image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #f0f4f8;
    padding: 16px;
}

.news-featured__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease;
}

.news-featured:hover .news-featured__image img {
    transform: scale(1.05);
}

.news-featured__content {
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.news-featured__tag {
    display: inline-block;
    background-color: #4eabff;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 30px;
    align-self: flex-start;
}

.news-featured__title {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #181d26;
    line-height: 1.35;
    margin: 0;
    transition: color 0.2s ease;
}

.news-featured__title a {
    color: inherit;
    text-decoration: none;
}

.news-featured__title a:hover,
.news-featured__title:hover {
    color: #4eabff;
}

.news-featured__excerpt {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #777;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.news-featured__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.news-featured__author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-featured__author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background-color: #e8f4ff;
}

.news-featured__author-info {
    display: flex;
    flex-direction: column;
}

.news-featured__author-name {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.news-featured__author-title {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    color: #aaa;
    line-height: 1.3;
}

.news-featured__date,
.news-featured__read-time {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    color: #aaa;
}

.news-featured__date svg,
.news-featured__read-time svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    opacity: 0.6;
}

.news-featured__read-more {
    display: inline-block;
    margin-top: 4px;
    padding: 10px 24px;
    background-color: #4eabff;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    align-self: flex-start;
    transition: background-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 3px 10px rgba(78, 171, 255, 0.3);
}

.news-featured__read-more:hover {
    background-color: #3f94d1;
    transform: translateY(-1px);
    color: #ffffff;
}


/* ============================================================
   3. NEWS GRID SECTION
   ============================================================ */

.news-grid-section {
    padding: 60px 0 80px;
    background-color: #f8f9fb;
}

.news-grid-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.news-grid-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #181d26;
    margin: 0;
}

.news-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.news-tag {
    display: inline-block;
    padding: 6px 16px;
    background-color: #f0f0f0;
    color: #555;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 500;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.news-tag:hover {
    background-color: #e8f4ff;
    color: #4eabff;
}

.news-tag.active,
.news-tag--active {
    background-color: #4eabff;
    color: #ffffff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}


/* ============================================================
   4. NEWS CARD
   ============================================================ */

.news-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.news-card__image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #f0f4f8;
    flex-shrink: 0;
    padding: 12px;
}

.news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card__image img {
    transform: scale(1.06);
}

.news-card__image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8f4ff 0%, #c8e4ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-card__image-placeholder svg {
    width: 40px;
    height: 40px;
    opacity: 0.35;
    color: #4eabff;
}

.news-card__content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}

.news-card__tag {
    display: inline-block;
    background-color: rgba(78, 171, 255, 0.12);
    color: #3f94d1;
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: 30px;
    align-self: flex-start;
}

.news-card__title {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #181d26;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.news-card__title a {
    color: inherit;
    text-decoration: none;
}

.news-card__title a:hover,
.news-card__title:hover {
    color: #4eabff;
}

.news-card__excerpt {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: #888;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    flex: 1;
}

.news-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
    gap: 8px;
    flex-wrap: wrap;
}

.news-card__author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-card__author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background-color: #e8f4ff;
}

.news-card__author-name {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #444;
}

.news-card__date-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-card__date,
.news-card__read-time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    color: #bbb;
}

.news-card__date svg,
.news-card__read-time svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}


/* ============================================================
   5. NEWS ARTICLE / POST PAGE
   ============================================================ */

.news-post {
    padding-top: 30px;
    padding-bottom: 80px;
    background-color: #ffffff;
}

.news-post__container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-post__header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 40px;
    position: static;
    box-shadow: none;
}

.news-post__header .news-post__tag {
    display: inline-block;
    background-color: rgba(78, 171, 255, 0.12);
    color: #3f94d1;
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.news-post__title {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #181d26;
    line-height: 1.3;
    margin: 0 0 20px;
}

.news-post__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.news-post__meta-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-post__meta-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #e8f4ff;
}

.news-post__meta-author-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.news-post__meta-author-name {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.news-post__meta-author-title {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    color: #aaa;
}

.news-post__meta-date,
.news-post__meta-read-time {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: #aaa;
}

.news-post__meta-date svg,
.news-post__meta-read-time svg {
    width: 14px;
    height: 14px;
}

.news-post__meta-separator {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #ccc;
}

/* Article page meta (matching HTML classes) */
.news-post__author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-post__author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #e8f4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.news-post__author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-post__author-avatar svg {
    width: 18px;
    height: 18px;
    color: #aaa;
}

.news-post__author-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.news-post__author-name {
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.news-post__author-title {
    font-size: 11px;
    color: #aaa;
}

.news-post__date,
.news-post__read-time {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #aaa;
}

.news-post__date svg,
.news-post__read-time svg {
    width: 14px;
    height: 14px;
}

.news-post__featured-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 48px;
}

.news-post__featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Article body content */
.news-post__content {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #444;
    line-height: 1.85;
}

.news-post__content h2 {
    font-size: 26px;
    font-weight: 700;
    color: #181d26;
    margin: 40px 0 16px;
    line-height: 1.3;
}

.news-post__content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #181d26;
    margin: 32px 0 12px;
    line-height: 1.4;
}

.news-post__content p {
    margin: 0 0 20px;
}

.news-post__content ul,
.news-post__content ol {
    padding-left: 24px;
    margin: 0 0 20px;
}

.news-post__content ul {
    list-style: disc;
}

.news-post__content ol {
    list-style: decimal;
}

.news-post__content li {
    margin-bottom: 8px;
}

.news-post__content a {
    color: #4eabff;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.news-post__content a:hover {
    color: #3f94d1;
}

.news-post__content blockquote {
    border-left: 4px solid #4eabff;
    margin: 32px 0;
    padding: 16px 24px;
    background-color: #f5fbff;
    border-radius: 0 8px 8px 0;
    color: #555;
    font-style: italic;
}

.news-post__content blockquote p {
    margin: 0;
}

.news-post__content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 24px 0;
}

.news-post__content pre {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 20px 24px;
    overflow-x: auto;
    margin: 24px 0;
    font-size: 12px;
    line-height: 1.6;
}

.news-post__content code {
    background-color: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.news-post__content pre code {
    background: none;
    padding: 0;
}

.news-post__content hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 40px 0;
}


/* ============================================================
   6. SHARE & FOOTER
   ============================================================ */

.news-post__footer {
    max-width: 800px;
    margin: 48px auto 0;
    padding: 32px 20px 0;
    border-top: 1px solid #eee;
}

.news-post__share {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.news-post__share-label {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.news-post__share-links {
    display: flex;
    gap: 8px;
}

.news-post__share-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: #666;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.news-post__share-link:hover {
    background-color: #4eabff;
    color: #ffffff;
}

.news-post__share-link svg {
    width: 16px;
    height: 16px;
}

/* Related articles section */
.news-related {
    padding: 60px 0;
    background-color: #f8f9fb;
}

.news-related__header {
    text-align: center;
    margin-bottom: 40px;
}

.news-related__header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #181d26;
    margin: 0;
}

.news-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}


/* ============================================================
   7. LOADING & EMPTY STATES
   ============================================================ */

.news-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    gap: 16px;
}

.news-loading__spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e8e8e8;
    border-top-color: #4eabff;
    border-radius: 50%;
    animation: news-spin 0.75s linear infinite;
}

@keyframes news-spin {
    to {
        transform: rotate(360deg);
    }
}

.news-loading__text {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #aaa;
}

.news-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    gap: 16px;
}

.news-empty__icon {
    width: 64px;
    height: 64px;
    color: #ccc;
    opacity: 0.7;
}

.news-empty__title {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #444;
    margin: 0;
}

.news-empty__text {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #aaa;
    margin: 0;
    max-width: 400px;
    line-height: 1.6;
}


/* ============================================================
   8. ADMIN / EDITOR STYLES
   ============================================================ */

.news-editor {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.news-editor__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    border-bottom: 1px solid #f0f0f0;
    gap: 16px;
    flex-wrap: wrap;
}

.news-editor__header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #181d26;
    margin: 0;
}

.news-editor__header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.news-editor__btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
}

.news-editor__btn--primary {
    background-color: #4eabff;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(78, 171, 255, 0.3);
}

.news-editor__btn--primary:hover {
    background-color: #3f94d1;
    color: #ffffff;
}

.news-editor__btn--secondary {
    background-color: #f0f0f0;
    color: #555;
}

.news-editor__btn--secondary:hover {
    background-color: #e4e4e4;
    color: #333;
}

.news-editor__btn--danger {
    background-color: #fff0f0;
    color: #e05252;
}

.news-editor__btn--danger:hover {
    background-color: #e05252;
    color: #ffffff;
}

.news-editor__form {
    padding: 28px;
    display: grid;
    gap: 22px;
}

.news-editor__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.news-editor__field label,
.news-editor__label {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.news-editor__input,
.news-editor__textarea,
.news-editor__select {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #333;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.news-editor__input:focus,
.news-editor__textarea:focus,
.news-editor__select:focus {
    border-color: #4eabff;
    box-shadow: 0 0 0 3px rgba(78, 171, 255, 0.15);
}

.news-editor__textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.news-editor__image-upload {
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 36px 20px;
    text-align: center;
    cursor: pointer;
    background-color: #fafafa;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.news-editor__image-upload:hover {
    border-color: #4eabff;
    background-color: #f5fbff;
}

.news-editor__image-upload input[type="file"] {
    display: none;
}

.news-editor__image-upload-icon {
    width: 36px;
    height: 36px;
    color: #bbb;
    margin: 0 auto 10px;
    display: block;
}

.news-editor__image-upload p {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: #aaa;
    margin: 0;
}

.news-editor__image-upload span {
    color: #4eabff;
    font-weight: 600;
}

/* Citation row */
.news-editor__citation-item {
    display: grid;
    grid-template-columns: 1fr 1fr 40px;
    gap: 10px;
    align-items: end;
}

.news-editor__citation-remove {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    color: #aaa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.news-editor__citation-remove:hover {
    background-color: #fff0f0;
    border-color: #e05252;
    color: #e05252;
}

.news-editor__add-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background-color: transparent;
    border: 1px dashed #4eabff;
    border-radius: 30px;
    color: #4eabff;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 6px;
}

.news-editor__add-row:hover {
    background-color: rgba(78, 171, 255, 0.07);
}

/* Posts management list */
.news-posts-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.news-post-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid #f5f5f5;
    transition: background-color 0.15s ease;
}

.news-post-item:last-child {
    border-bottom: none;
}

.news-post-item:hover {
    background-color: #fafcff;
}

.news-post-item__thumbnail {
    width: 72px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background-color: #e8f4ff;
}

.news-post-item__thumbnail-placeholder {
    width: 72px;
    height: 48px;
    border-radius: 6px;
    background: linear-gradient(135deg, #e8f4ff, #c8e4ff);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-post-item__content {
    flex: 1;
    min-width: 0;
}

.news-post-item__title {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #181d26;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.news-post-item__meta {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    color: #aaa;
}

.news-post-item__status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.news-post-item__status--published {
    background-color: #e6f9f0;
    color: #1a9a5e;
}

.news-post-item__status--draft {
    background-color: #fff8e6;
    color: #c47d00;
}

.news-post-item__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.news-post-item__action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #eee;
    background-color: #ffffff;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    text-decoration: none;
}

.news-post-item__action-btn:hover {
    background-color: #4eabff;
    border-color: #4eabff;
    color: #ffffff;
}

.news-post-item__action-btn--delete:hover {
    background-color: #e05252;
    border-color: #e05252;
    color: #ffffff;
}

.news-post-item__action-btn svg {
    width: 14px;
    height: 14px;
}


/* ============================================================
   9. RESPONSIVE
   ============================================================ */

/* Tablet — 2-column grid */
@media (max-width: 1023px) {
    .news-hero__title {
        font-size: 32px;
    }

    .news-featured {
        grid-template-columns: 1fr;
    }

    .news-featured__image {
        aspect-ratio: 16 / 7;
    }

    .news-featured__content {
        padding: 32px 28px;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-related__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-post__title {
        font-size: 30px;
    }
}

/* Mobile — single column */
@media (max-width: 767px) {
    .news-hero {
        padding: 100px 0 40px;
    }

    .news-hero__title {
        font-size: 26px;
    }

    .news-hero__subtitle {
        font-size: 13px;
    }

    .news-featured-section {
        padding: 10px 0 40px;
    }

    .news-featured__content {
        padding: 24px 20px;
    }

    .news-featured__title {
        font-size: 20px;
    }

    .news-grid-section {
        padding: 40px 0 60px;
    }

    .news-grid-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-related__grid {
        grid-template-columns: 1fr;
    }

    .news-post {
        padding-top: 90px;
        padding-bottom: 60px;
    }

    .news-post__title {
        font-size: 24px;
    }

    .news-post__meta {
        gap: 14px;
    }

    .news-post__meta-separator {
        display: none;
    }

    .news-post__content {
        font-size: 13px;
    }

    .news-post__content h2 {
        font-size: 20px;
    }

    .news-post__content h3 {
        font-size: 17px;
    }

    .news-editor__citation-item {
        grid-template-columns: 1fr;
    }

    .news-post-item {
        flex-wrap: wrap;
        padding: 14px 16px;
    }

    .news-post-item__actions {
        width: 100%;
        justify-content: flex-end;
    }
}


/* ============================================================
   HOMEPAGE NEWS TICKER
   ============================================================ */

.news-ticker {
    padding: 40px 0;
    background-color: #f8f9fb;
}

.news-ticker__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.news-ticker__header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #181d26;
}

.news-ticker__view-all {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #4eabff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-ticker__view-all:hover {
    color: #3f94d1;
}

.news-ticker__track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}

.news-ticker__track::-webkit-scrollbar {
    height: 4px;
}

.news-ticker__track::-webkit-scrollbar-track {
    background: transparent;
}

.news-ticker__track::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

.news-ticker__card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.news-ticker__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.news-ticker__card-image {
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: #f0f4f8;
}

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

.news-ticker__card:hover .news-ticker__card-image img {
    transform: scale(1.05);
}

.news-ticker__card-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 28px;
}

.news-ticker__card-content {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.news-ticker__card-tag {
    font-family: 'Poppins', sans-serif;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #4eabff;
    background: rgba(78, 171, 255, 0.1);
    padding: 2px 8px;
    border-radius: 20px;
    align-self: flex-start;
}

.news-ticker__card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #181d26;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.news-ticker__card-date {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    color: #aaa;
    margin: 0;
}

@media (max-width: 767px) {
    .news-ticker__card {
        flex: 0 0 240px;
    }

    .news-ticker__card-image {
        height: 110px;
    }
}


/* ============================================================
   COMMENTS SECTION
   ============================================================ */

.comments-section {
    padding: 40px 0 60px;
    background-color: #f8f9fb;
}

.comments-container {
    max-width: 800px;
    margin: 0 auto;
}

.comments-title {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #181d26;
    margin: 0 0 24px;
}

.comments-title span {
    font-size: 14px;
    font-weight: 400;
    color: #aaa;
    margin-left: 8px;
}

/* Comment form */
.comment-form {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.comment-form--signed-out {
    justify-content: center;
    padding: 24px;
}

.comment-form__sign-in-msg {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #888;
    margin: 0;
}

.comment-form__sign-in-msg a {
    color: #4eabff;
    font-weight: 600;
    text-decoration: none;
}

.comment-form__sign-in-msg a:hover {
    color: #3f94d1;
    text-decoration: underline;
}

.comment-form__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e8f4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-form__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-form__avatar svg {
    width: 18px;
    height: 18px;
    color: #aaa;
}

.comment-form__input {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-form__input textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #333;
    resize: vertical;
    min-height: 60px;
    outline: none;
    transition: border-color 0.2s ease;
}

.comment-form__input textarea:focus {
    border-color: #4eabff;
}

.comment-form__input textarea.comment-text--error {
    border-color: #e05252;
}

.comment-form__submit {
    align-self: flex-end;
    padding: 8px 20px;
    font-size: 12px;
    border-radius: 30px;
}

.comment-form__submit--success {
    background-color: #1a9a5e !important;
}

.comment-form__posting-as {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    color: #888;
    margin-bottom: 4px;
}

.comment-form__posting-as strong {
    color: #4eabff;
    font-weight: 600;
}

.comment-form__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.comment-form__char-count {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    color: #aaa;
}

/* Individual comment */
.comment {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    margin-bottom: 12px;
}

.comment__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e8f4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.comment__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment__avatar svg {
    width: 18px;
    height: 18px;
    color: #aaa;
}

.comment__body {
    flex: 1;
    min-width: 0;
}

.comment__header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 4px;
}

.comment__author {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.comment__date {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    color: #aaa;
}

.comment__text {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin: 0;
    word-wrap: break-word;
}

.comments__loading,
.comments__empty,
.comments__error {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #aaa;
    text-align: center;
    padding: 24px;
}


