/* ============================================================================
   THEME INTRACOM — CSS TRANG CHỦ (home.css)
   Hero + lưới 2 cột (nội dung + sidebar) + số mới nhất + chủ đề + số báo
   + bài đọc nhiều nhất + sidebar (trường / sự kiện / banner)
   ============================================================================ */

.intracom_home { padding-bottom: 24px; }

/* HERO */
.intracom_hero { margin: 0 0 20px; }
.intracom_hero img { display: block; width: 100%; height: auto; border-radius: 14px; }

/* LƯỚI 2 CỘT */
.intracom_home_grid { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.intracom_home_main { min-width: 0; }
.intracom_home_side { min-width: 0; }

/* Tiêu đề khối */
.intracom_section { margin: 34px 0; }
.intracom_section:first-child { margin-top: 8px; }
.intracom_section_head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.intracom_section_head h2 { color: #25134d; font-size: 1.35rem; font-weight: 800; margin: 0; display: flex; align-items: center; gap: 10px; text-transform: uppercase; }
.intracom_section_head h2 .fa { color: #25134d; }
.intracom_seeall { color: #5b6cc0; text-decoration: none; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.intracom_seeall:hover { color: #eba400; }

/* SỐ MỚI NHẤT */
.intracom_latest_body { display: flex; gap: 32px; align-items: flex-start; }
.intracom_latest_cover { flex: 0 0 240px; display: block; }
.intracom_latest_cover img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.15); transition: transform .2s; }
.intracom_latest_cover:hover img { transform: translateY(-3px); }
.intracom_latest_info { flex: 1; min-width: 0; }
.intracom_latest_title { margin: 0 0 6px; font-size: 1.5rem; font-weight: 800; }
.intracom_latest_title a { color: #25134d; text-decoration: none; }
.intracom_latest_title a:hover { color: #eba400; }
.intracom_latest_subtitle { color: #eba400; font-weight: 600; font-size: 1.05rem; margin-bottom: 12px; }
.intracom_issue_desc { color: #555; line-height: 1.7; margin-bottom: 18px; }
.intracom_issue_meta { list-style: none; margin: 14px 0 22px; padding: 0; }
.intracom_issue_meta li { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: #333; font-size: .95rem; }
.intracom_issue_meta li .fa { color: #25134d; width: 18px; text-align: center; }
.intracom_btn { display: inline-flex; align-items: center; gap: 10px; background: #25134d; color: #fff; text-decoration: none; font-weight: 700; padding: 12px 24px; border-radius: 8px; transition: background .2s; }
.intracom_btn:hover { background: #eba400; color: #fff; }

/* CÁC CHỦ ĐỀ */
.intracom_topics_grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.intracom_topic_card { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; text-decoration: none; padding: 26px 14px; border-radius: 14px; gap: 10px; transition: transform .15s, box-shadow .15s; }
.intracom_topic_card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,.10); }
.intracom_topic_icon { width: 56px; height: 56px; object-fit: contain; }
.intracom_topic_name { font-weight: 700; font-size: 1rem; }
.intracom_topic_count { color: #777; font-size: .88rem; }
.intracom_topic_card:nth-child(1) { background: #eef4fb; } .intracom_topic_card:nth-child(1) .intracom_topic_name { color: #2f6fb0; }
.intracom_topic_card:nth-child(2) { background: #eef7ee; } .intracom_topic_card:nth-child(2) .intracom_topic_name { color: #4a9e4a; }
.intracom_topic_card:nth-child(3) { background: #fdf3e7; } .intracom_topic_card:nth-child(3) .intracom_topic_name { color: #e08a2a; }
.intracom_topic_card:nth-child(4) { background: #f3eefb; } .intracom_topic_card:nth-child(4) .intracom_topic_name { color: #7d4bc4; }
.intracom_topic_card:nth-child(5) { background: #fdeef5; } .intracom_topic_card:nth-child(5) .intracom_topic_name { color: #d14b8f; }
.intracom_topic_card:nth-child(6) { background: #e9f6f6; } .intracom_topic_card:nth-child(6) .intracom_topic_name { color: #2aa5a5; }

/* CÁC SỐ BÁO */
.intracom_issues_grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.intracom_issue_card { display: block; text-decoration: none; background: #fff; border: 1px solid #eee; border-radius: 12px; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.intracom_issue_card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.12); }
.intracom_issue_cover { background: #f3eefb; aspect-ratio: 3 / 4; overflow: hidden; }
.intracom_issue_cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.intracom_issue_nocover { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #b9a9dd; font-size: 2.2rem; }
.intracom_issue_label { padding: 12px 14px 5px; color: #25134d; font-weight: 700; font-size: 18px; }
.intracom_issue_date { padding: 0 14px 14px; color: #888; font-size: .82rem; }

/* BÀI BÁO ĐỌC NHIỀU NHẤT */
.intracom_mostread_list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.intracom_mostread_item { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid #eee; }
.intracom_mostread_item:last-child { border-bottom: 0; }
.intracom_rank { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: #25134d; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: .9rem; }
.intracom_art_thumb { flex: 0 0 90px; height: 62px; border-radius: 8px; overflow: hidden; display: block; }
.intracom_art_thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.intracom_art_info { flex: 1; min-width: 0; }
.intracom_art_title { display: block; color: #25134d; font-weight: 700; text-decoration: none; line-height: 1.35; margin-bottom: 4px; }
.intracom_art_title:hover { color: #eba400; }
.intracom_art_authors { color: #777; font-size: .85rem; margin-bottom: 4px; }
.intracom_art_meta { display: flex; align-items: center; gap: 16px; color: #888; font-size: .82rem; }
.intracom_art_meta .fa { margin-right: 4px; }
.intracom_art_views { color: #25134d; font-weight: 700; }

/* ---------- SIDEBAR ---------- */
.intracom_side_block { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 18px; margin-bottom: 24px; }
.intracom_side_head { color: #25134d; font-size: 1.05rem; font-weight: 800; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; text-transform: uppercase; }
.intracom_side_head .fa { color: #25134d; }
.intracom_side_img { width: 100%; height: auto; border-radius: 8px; margin-bottom: 12px; }
.intracom_side_title { color: #25134d; font-size: 1.05rem; font-weight: 700; margin: 0 0 8px; }
.intracom_side_block p { color: #555; font-size: .9rem; line-height: 1.6; margin: 0 0 14px; }
.intracom_side_btn { display: inline-flex; align-items: center; gap: 8px; background: #25134d; color: #fff; text-decoration: none; font-weight: 600; font-size: .85rem; padding: 9px 18px; border-radius: 6px; }
.intracom_side_btn:hover { background: #eba400; color: #fff; }

/* Sự kiện */
.intracom_events { list-style: none; margin: 0 0 14px; padding: 0; }
.intracom_events li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.intracom_events li:last-child { border-bottom: 0; }
.intracom_event_date { flex: 0 0 auto; width: 48px; height: 52px; border-radius: 8px; background: #25134d; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.intracom_event_date b { font-size: 1.2rem; }
.intracom_event_date small { font-size: .68rem; margin-top: 3px; letter-spacing: .5px; }
.intracom_event_info a { display: block; color: #25134d; font-weight: 600; font-size: .9rem; text-decoration: none; line-height: 1.4; margin-bottom: 4px; }
.intracom_event_info a:hover { color: #eba400; }
.intracom_event_place { color: #888; font-size: .8rem; }

/* Banner */
.intracom_side_banners a { display: block; margin-bottom: 12px; }
.intracom_side_banners a:last-child { margin-bottom: 0; }
.intracom_side_banners img { width: 100%; height: auto; border-radius: 8px; display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .intracom_home_grid { grid-template-columns: 1fr; gap: 20px; }
    .intracom_topics_grid { grid-template-columns: repeat(2, 1fr); }
    .intracom_issues_grid { grid-template-columns: repeat(3, 1fr); }
    .intracom_latest_body { flex-direction: column; }
    .intracom_latest_cover { flex-basis: auto; max-width: 220px; }
    .intracom_section_head h2 { font-size: 1.15rem; }
}
@media (max-width: 575px) {
    .intracom_topics_grid { grid-template-columns: 1fr 1fr; }
    .intracom_issues_grid { grid-template-columns: 1fr 1fr; }
    .intracom_art_thumb { display: none; }
}

/* ===== Trang chủ full-width: bỏ giới hạn 860px của theme cha ===== */
/* Trang CHỦ full-width (chỉ trang chủ) */
@media (min-width: 992px) {
    .pkp_page_index .pkp_structure_main,
    .pkp_page_index .pkp_structure_main:first-child:last-child {
        width: 100% !important;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 20px 0;
        box-sizing: border-box;
        border: 0;
    }
}
.pkp_structure_main:before, .pkp_structure_main:after{
    display: none;
}
.pkp_structure_main h1, .pkp_structure_main h2, .pkp_structure_main h3, .pkp_structure_main h4 {
    margin: 0 0 10px;
}

/* ===== Block chức năng nổi bật đầu sidebar ===== */
.pkp_structure_sidebar .pkp_block,
.intracom_home_side .pkp_block { margin-bottom: 24px; }

.block_make_submission .block_make_submission_link {
    display: block; text-align: center; background: #eba400; color: #25134d;
    font-weight: 800; text-decoration: none; padding: 15px; border-radius: 10px;
    font-size: 1.05rem; box-shadow: 0 6px 16px rgba(235,164,0,.35); transition: all .2s;
}
.block_make_submission .block_make_submission_link:hover { background: #25134d; color: #fff; }

.block_language { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 14px 16px; }
.block_language .title { color: #25134d; font-weight: 800; text-transform: uppercase; font-size: .95rem; margin: 0 0 10px; }
.block_language ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.block_language li { flex: 1; }
.block_language li a {
    display: block; text-align: center; padding: 8px; border: 1px solid #d7d0e6; border-radius: 6px;
    color: #25134d; text-decoration: none; font-weight: 600; font-size: .9rem;
}
.block_language li.current a, .block_language li a:hover { background: #25134d; color: #fff; border-color: #25134d; }