/* ============================================================
   TAKSAKA ID - NEWS & INSIGHT PAGE STYLES
   Prestigious Corporate Aesthetic (Deep Navy, Royal Blue, Gold)
   ============================================================ */

/* ================= HERO SECTION ================= */
.news-hero {
    background: linear-gradient(135deg, #091730 0%, #0f2850 60%, #1e3a8a 100%);
    padding: 130px 24px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.news-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 20%, rgba(37, 99, 235, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.news-hero-container {
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.news-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #f8fafc;
    margin-bottom: 18px;
    backdrop-filter: blur(8px);
}

.news-tag-pill i {
    color: #fbbf24;
}

.news-hero h1 {
    font-size: 44px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.news-hero p {
    font-size: 16.5px;
    color: #cbd5e1;
    line-height: 1.7;
    margin: 0 0 28px 0;
    font-weight: 400;
}

.news-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: #94a3b8;
    background: rgba(15, 40, 80, 0.5);
    padding: 6px 18px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.news-breadcrumb a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.2s;
}

.news-breadcrumb a:hover {
    color: #60a5fa;
}

.news-breadcrumb .sep {
    font-size: 10px;
    opacity: 0.6;
}

.news-breadcrumb .current {
    color: #fbbf24;
    font-weight: 600;
}

/* ================= SECTION FEED ================= */
.news-section {
    padding: 60px 24px 110px;
    background: #f8faff;
    min-height: 70vh;
}

.news-container {
    max-width: 1240px;
    margin: 0 auto;
}

/* ================= CONTROLS: SEARCH & CATEGORIES ================= */
.news-controls {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 44px;
}

.news-search-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 8px 10px 8px 20px;
    box-shadow: 0 4px 20px rgba(15, 40, 80, 0.05);
    transition: all 0.3s;
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
}

.news-search-box:focus-within {
    border-color: #2563eb;
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.15);
}

.news-search-box .search-icon {
    color: #94a3b8;
    font-size: 18px;
    margin-right: 12px;
}

.news-search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    color: #0f2850;
    background: transparent;
}

.news-search-box input::placeholder {
    color: #94a3b8;
}

.clear-search-btn {
    color: #94a3b8;
    text-decoration: none;
    margin-right: 12px;
    font-size: 14px;
    padding: 4px;
}

.clear-search-btn:hover {
    color: #ef4444;
}

.btn-search {
    background: linear-gradient(135deg, #0f2850 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
}

.btn-search:hover {
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

/* Category Pills */
.news-category-pills {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.news-category-pills .pill {
    padding: 9px 22px;
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(15, 40, 80, 0.03);
}

.news-category-pills .pill:hover {
    color: #2563eb;
    border-color: #93c5fd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.news-category-pills .pill.active {
    background: #0f2850;
    color: #ffffff;
    border-color: #0f2850;
    box-shadow: 0 4px 14px rgba(15, 40, 80, 0.25);
}

/* ================= NEWS GRID ================= */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 32px;
}

.news-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 18px rgba(15, 40, 80, 0.05);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-8px);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 16px 36px rgba(15, 40, 80, 0.12);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #091730;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

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

.card-category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(15, 40, 80, 0.85);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12.5px;
    color: #64748b;
    margin-bottom: 12px;
}

.card-meta i {
    color: #2563eb;
    margin-right: 4px;
}

.card-title {
    font-size: 19px;
    font-weight: 800;
    color: #0f2850;
    line-height: 1.4;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.news-card:hover .card-title {
    color: #2563eb;
}

.card-excerpt {
    font-size: 14.5px;
    color: #64748b;
    line-height: 1.65;
    margin: 0 0 20px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.btn-read-more {
    font-size: 13.5px;
    font-weight: 700;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.news-card:hover .btn-read-more {
    gap: 10px;
    color: #1d4ed8;
}

.card-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12.5px;
    color: #94a3b8;
}

.card-stats i {
    color: #94a3b8;
}

/* ================= EMPTY STATE ================= */
.news-empty-state {
    text-align: center;
    padding: 70px 20px;
    background: #ffffff;
    border-radius: 24px;
    border: 1px dashed #cbd5e1;
    max-width: 600px;
    margin: 30px auto;
}

.empty-icon {
    font-size: 48px;
    color: #94a3b8;
    margin-bottom: 16px;
}

.news-empty-state h3 {
    font-size: 20px;
    color: #0f2850;
    font-weight: 800;
    margin: 0 0 8px 0;
}

.news-empty-state p {
    font-size: 14.5px;
    color: #64748b;
    margin: 0 0 24px 0;
}

.btn-reset {
    display: inline-block;
    background: #0f2850;
    color: #ffffff;
    padding: 10px 26px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13.5px;
    transition: background 0.2s;
}

.btn-reset:hover {
    background: #2563eb;
}

/* ================= LIGHTBOX / DETAIL MODAL ================= */
.news-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.news-modal-overlay.active {
    display: flex;
}

.news-modal-box {
    background: #ffffff;
    border-radius: 24px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
    background: #0f2850;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-head-category {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.15);
    padding: 4px 14px;
    border-radius: 30px;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.modal-close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: #ffffff;
}

.modal-scroll-content {
    padding: 32px 36px 40px;
    overflow-y: auto;
    flex: 1;
}

.modal-title {
    font-size: 28px;
    font-weight: 800;
    color: #0f2850;
    line-height: 1.35;
    margin: 0 0 14px 0;
}

.modal-meta-bar {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.modal-meta-bar i {
    color: #2563eb;
    margin-right: 4px;
}

.modal-image-container {
    width: 100%;
    max-height: 420px;
    border-radius: 16px;
    overflow: hidden;
    background: #091730;
    margin-bottom: 28px;
    box-shadow: 0 8px 24px rgba(15, 40, 80, 0.08);
}

.modal-image-container img {
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.modal-article-text {
    font-size: 16px;
    line-height: 1.85;
    color: #334155;
    margin-bottom: 32px;
}

.modal-article-text p {
    margin-bottom: 18px;
}

/* Share Bar */
.modal-share-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: #f8faff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    margin-bottom: 40px;
    gap: 16px;
    flex-wrap: wrap;
}

.share-label {
    font-size: 14px;
    font-weight: 700;
    color: #0f2850;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-label i {
    color: #2563eb;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-share {
    border: none;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-share.wa {
    background: #25d366;
    color: #ffffff;
}
.btn-share.wa:hover {
    background: #1eb857;
}

.btn-share.fb {
    background: #1877f2;
    color: #ffffff;
}
.btn-share.fb:hover {
    background: #1464cc;
}

.btn-share.copy {
    background: #ffffff;
    color: #0f2850;
    border: 1px solid #cbd5e1;
}
.btn-share.copy:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

/* ================= COMMENTS SECTION ================= */
.modal-comments-section {
    border-top: 2px solid #e2e8f0;
    padding-top: 32px;
}

.comments-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.comments-heading i {
    font-size: 20px;
    color: #2563eb;
}

.comments-heading h3 {
    font-size: 19px;
    font-weight: 800;
    color: #0f2850;
    margin: 0;
}

.comment-form-box {
    background: #f8faff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 28px;
}

.comment-form-box .form-row {
    margin-bottom: 14px;
}

.comment-form-box label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #0f2850;
    margin-bottom: 6px;
}

.comment-form-box input,
.comment-form-box textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    font-size: 14px;
    color: #0f2850;
    background: #ffffff;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
    font-family: inherit;
}

.comment-form-box input:focus,
.comment-form-box textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.comment-form-box textarea {
    resize: vertical;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
}

.comment-status-msg {
    font-size: 13px;
    font-weight: 600;
}

.btn-send-comment {
    background: linear-gradient(135deg, #0f2850 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s;
    margin-left: auto;
}

.btn-send-comment:hover {
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-item {
    display: flex;
    gap: 16px;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(15, 40, 80, 0.03);
}

.comment-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f2850 0%, #2563eb 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.comment-author {
    font-size: 14.5px;
    color: #0f2850;
    font-weight: 700;
}

.comment-date {
    font-size: 12px;
    color: #94a3b8;
}

.comment-text {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    word-break: break-word;
}

.admin-reply-box {
    margin-top: 12px;
    padding: 12px 16px;
    background: #f1f5f9;
    border-left: 3px solid #2563eb;
    border-radius: 8px;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 4px;
}

.reply-text {
    font-size: 13.5px;
    color: #334155;
    line-height: 1.5;
}

.empty-comments {
    text-align: center;
    padding: 30px;
    color: #94a3b8;
}

.empty-comments i {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.5;
}

.empty-comments p {
    font-size: 14px;
    margin: 0;
}

/* Toast */
.news-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #0f2850;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.news-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
    .news-hero h1 { font-size: 34px; }
    .news-grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
    .modal-scroll-content { padding: 24px 20px; }
    .modal-title { font-size: 22px; }
    .modal-image-container { max-height: 280px; }
    .modal-share-bar { flex-direction: column; align-items: flex-start; }
    .share-buttons { width: 100%; justify-content: flex-start; }
}

@media (max-width: 600px) {
    .news-hero { padding: 110px 16px 50px; }
    .news-hero h1 { font-size: 28px; }
    .news-hero p { font-size: 14.5px; }
    .news-section { padding: 40px 16px 80px; }
    .news-grid { grid-template-columns: 1fr; }
    .news-modal-overlay { padding: 0; align-items: flex-end; }
    .news-modal-box { max-height: 94vh; border-radius: 20px 20px 0 0; }
    .modal-head { padding: 14px 18px; }
    .form-actions { flex-direction: column; align-items: stretch; }
    .btn-send-comment { width: 100%; justify-content: center; }
}
