/*
Theme Name: Giáo dục đào tạo
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
.header-nav .menu-item.mega-menu > ul.sub-menu > li > a, .main-header-nav .menu-item.mega-menu > ul.sub-menu > li > a {
	font-size: 13px !important;
}

.is-divider {
	display: none;
}



.post-meta.is-small.op-8 {
	padding-bottom: 5px;
}

/* Giảm padding cho col post-item */
.col.post-item {
    padding: 0 5px !important;
}

/* Giảm padding cho box-text bên trong */
.col.post-item .box-text {
    padding: 5px 0px 5px 5px !important;
}

/* Hoặc target cụ thể hơn */
.col.post-item .box-text.text-left.is-small {
    padding: 5px 0px 5px 0px !important;
	border-bottom:solid 1px #7e7e8c;
	border-top: none;
}

.box.box-vertical.box-text-top.box-blog-post.has-hover {
	border-bottom: solid 1px #7e7e8c;
	margin-bottom: 3px;
	margin-top: 3px;
}

.row.row-tin-tuc-su-kien {
	height: 610px;
}

.attachment-original.size-original.wp-post-image {
	padding: 10px 0px 10px 0px;
}


.row.blog-tin-tuc-su-kien.large-columns-1.medium-columns-1.small-columns-1 {
	margin-top: -13px;
}

.col.post-item .post-title,
.col.post-item h3,
.col.post-item .entry-title {
    /* Giới hạn 2 dòng */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    
    /* Căn đều lề và khoảng cách chữ */
    text-align: justify;
    text-justify: inter-word;
    word-spacing: normal;
    letter-spacing: 0;
    
    /* Chiều cao và line-height */
    line-height: 1.4;
    height: calc(1.4em * 2); /* 2 dòng */
    
    /* Font và spacing */
    font-weight: bold;
    font-size: 14px;

    
    /* Xử lý từ dài */
    word-wrap: break-word;
    hyphens: auto;
}

.lp-lbc-badge, .lp-cps__badge {
	display: none !important;
}

.box-text-inner.blog-post-inner.post-title.is-xlarge  {
	color: blue !important;
}

.row.blog-tin-tuc-su-kien-cot-3.large-columns-1.medium-columns-1.small-columns-1.row-collapse {
	width: 300px;
}

.post-titleis-xlarge, .pain {
	margin-top: -15px;
}

.row.tin-tuc-content-trang-chu {
	height: 495px;
}

    .archive-title {
        display: none;
    }

.related-posts-list {
	text-align: justify !important;
}

.entry-content {
	text-align: justify !important;
}


/* ===== Item đầu tiên: ảnh full-width, title ngay bên dưới ===== */
.widget_most_read_entries .most-read-list li.mr-first {
  display: block !important;
  margin-bottom: 24px;
}
.widget_most_read_entries .most-read-list li.mr-first .mr-thumb-feature img {
  width: 100%;
  height: auto;
  margin-bottom: 8px;
}
.widget_most_read_entries .most-read-list li.mr-first .mr-title-feature h3 {
  margin: 0;
  font-size: 16px !important;
  font-weight: 700;
  line-height: 1.3;
  color: #000;
}

.widget_most_read_entries > .widget-title {
	font-size: 20px !important;
	margin-top: 8px !important;
}

/* ===== Các item 2,3,4,… ===== */
.widget_most_read_entries .most-read-list li:not(.mr-first) {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  gap: 12px;
}

/* Số thứ tự trước title */
.widget_most_read_entries .most-read-list li:not(.mr-first) .mr-number {
  flex: 0 0 24px;
  text-align: right;
  font-weight: 700;
  color: #224484;
}

/* Tiêu đề */
.widget_most_read_entries .most-read-list li:not(.mr-first) .mr-title-link {
  flex: 1;
  text-decoration: none;
  color: #000;
  font-weight: 600;
}
.widget_most_read_entries .most-read-list li:not(.mr-first) .mr-title {
  font-size: 14px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;  /* tối đa 2 dòng */
  overflow: hidden;
}

/* Thumbnail bên phải, cùng tỉ lệ 4:3 */
.widget_most_read_entries .most-read-list li:not(.mr-first) .mr-thumb-link {
  flex: 0 0 100px;   /* cố định rộng 100px */
  height: 75px;      /* cao = 100×3/4 */
  overflow: hidden;
  border-radius: 4px;
}
.widget_most_read_entries .most-read-list li:not(.mr-first) .mr-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 1) Heading “Bài đọc nhiều nhất” */
.widget_most_read_entries > .widget-title {
  border-left: 4px solid #224484; /* gạch xanh */
  padding-left: 10px;
  font-size: 16px;               /* nhỏ hơn tí */
  font-weight: 600;
  margin-bottom: 12px;
  color: #224484;
}

/* 2) Thêm “1.” trước tiêu đề của item đầu tiên */
.widget_most_read_entries .most-read-list li.mr-first .mr-title-feature h3 {
  position: relative;
  margin-left: 24px; /* nhường chỗ cho số */
}
.widget_most_read_entries .most-read-list li.mr-first .mr-title-feature h3::before {
  content: "1."; 
  position: absolute;
  left: -24px;
  top: 0;
  font-weight: 700;
  color: #224484;
}

/* 3) Items 2–N: đảo chiều flex để thumb bên phải */
.widget_most_read_entries .most-read-list li:not(.mr-first) {
  display: flex;
  flex-direction: row-reverse; /* thumb sang phải */
  align-items: center;
  gap: 12px;
}

/* (Phần còn lại giữ y nguyên) */




/* Sticky Social Sidebar - Tối giản */
.social-share-sidebar {
    position: fixed;
    top: 250px;
    left: calc(50% - 575px - 60px);
    z-index: 9999;
    width: 60px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 10px 5px;
}

.social-share-sidebar a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-bottom: 8px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    color: #fff;
    transition: transform 0.2s ease;
}

.social-share-sidebar a:hover {
    transform: scale(1.05);
}

.social-share-sidebar a:nth-child(1) { background: #1877f2; }
.social-share-sidebar a:nth-child(2) { background: #1da1f2; }
.social-share-sidebar a:nth-child(3) { background: #0077b5; }
.social-share-sidebar a:nth-child(4) { background: #0068ff; }
.social-share-sidebar a:nth-child(5) { background: #666; }

.social-share-sidebar img {
    width: 20px;
    height: 20px;
}


 


/*CSS 3 cột*/
 .news-section-container {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
        }

        .news-column {
            background: white;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            border-radius: 4px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .column-header {
            background: #224484;
            color: white;
            padding: 12px 15px;
            font-size: 14px;
            font-weight: 700;
            text-transform: uppercase;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-shrink: 0;
        }

        .view-more {
            font-size: 12px;
            color: #e0e7ff;
            text-decoration: none;
            font-weight: 400;
            transition: color 0.3s ease;
        }

        .view-more:hover {
            color: white;
        }

        .news-list {
            flex: 1;
            max-height: 420px;
      
        }

        .news-list::-webkit-scrollbar {
            width: 6px;
        }

        .news-list::-webkit-scrollbar-track {
            background: #f1f1f1;
        }

        .news-list::-webkit-scrollbar-thumb {
            background: #c1c1c1;
            border-radius: 3px;
        }

        .news-list::-webkit-scrollbar-thumb:hover {
            background: #a8a8a8;
        }

        .news-item {
            padding: 5px;
            border-bottom: 1px solid #f0f0f0;
            transition: background-color 0.2s ease;
        }

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

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

        .news-title {
            font-size: 12px;
            line-height: 1.4;
            color: #000000;
            margin-bottom: 8px;
            text-decoration: none;
            display: block;
            font-weight: 600;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            transition: color 0.3s ease;
        }

        .news-title:hover {
            color: #224484;
        }

        .news-date {
            font-size: 11px;
            color: #666;
            font-weight: 400;
        }

        .news-number {
            background: #224484;
            color: white;
            padding: 2px 8px;
            border-radius: 3px;
            font-size: 12px;
            font-weight: 700;
            margin-right: 10px;
            display: inline-block;
            min-width: 25px;
            text-align: center;
            flex-shrink: 0;
        }

        .popular-item {
            display: flex;
            align-items: flex-start;
            gap: 10px;
        }

        .popular-content {
            flex: 1;
        }

        .loading {
            padding: 20px;
            text-align: center;
            color: #666;
            font-style: italic;
        }

        @media (max-width: 992px) {
            .news-section-container {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 768px) {
            .news-section-container {
                grid-template-columns: 1fr;
            }
            
            body {
                padding: 10px;
            }
        }
/*CSS 3 cột*/




/*CSS Tin mới nhất */
/* Widget Tin Mới Nhất */
.latest-news-widget {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 260px;
    font-family: Roboto, Arial, sans-serif;
    margin-bottom: 20px;
	height: 470px !important;
}

.latest-news-widget .news-header {
    background-color: #1f3e75;
    color: #ffffff;
    padding: 12px 6px;
}

.latest-news-widget .header-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.latest-news-widget .header-icon {
    font-size: 16px;
}

.latest-news-widget .header-title {
    font-weight: bold;
    font-size: 16px;
    margin: 0;
    color: #ffffff;
}

.latest-news-widget .news-list {
    border-top: none;
}

.latest-news-widget .news-item {
    display: block;
    padding: 9px;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    color: #333333;
    transition: background-color 0.2s ease;
}

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

.latest-news-widget .news-item-odd {
    background-color: #ffffff;
}

.latest-news-widget .news-item-even {
    background-color: #f8f8f8;
}

.latest-news-widget .news-item-odd:hover {
    background-color: #f8f8f8;
}

.latest-news-widget .news-item-even:hover {
    background-color: #f3f4f6;
}

.latest-news-widget .news-title {
    font-size: 13px;
    font-weight: 700;
    color: #000000;
    line-height: 20px;
    margin: 0 0 5px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
	text-align: justify;
}

.latest-news-widget .news-date {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.latest-news-widget .new-badge {
    background-image: url('https://thpt-myducb.edu.vn/wp-content/uploads/2025/10/iconnew.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
	background-image: url('https://thpt-myducb.edu.vn/wp-content/uploads/2025/10/iconnew.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    
    width: 30px;
    height: 24px;
    
    animation: gentle-blink 2s infinite;
    display: inline-block;
    
    /* Đảm bảo span rỗng vẫn hiển thị */
    content: '';
    min-width: 24px;
    min-height: 24px;
    
    /* Ẩn text nếu có */
    text-indent: -9999px;
    overflow: hidden;
    font-size: 0;
    line-height: 0;
    
    margin-top: -3px;
    vertical-align: middle;

}

@keyframes gentle-blink {
    0%, 50% { opacity: 1; }
    25%, 75% { opacity: 0.7; }
}

.latest-news-widget .no-posts {
    text-align: center;
    opacity: 0.7;
}


.new-badge {
    background-image: url('https://thpt-myducb.edu.vn/wp-content/uploads/2025/10/iconnew.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
	background-image: url('https://thpt-myducb.edu.vn/wp-content/uploads/2025/10/iconnew.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    
    width: 30px;
    height: 24px;
    
    animation: gentle-blink 2s infinite;
    display: inline-block;
    
    /* Đảm bảo span rỗng vẫn hiển thị */
    content: '';
    min-width: 24px;
    min-height: 24px;
    
    /* Ẩn text nếu có */
    text-indent: -9999px;
    overflow: hidden;
    font-size: 0;
    line-height: 0;
    
    margin-top: -3px;
    vertical-align: middle;

}

@keyframes gentle-blink {
    0%, 50% { opacity: 1; }
    25%, 75% { opacity: 0.7; }
}

.latest-news-widget .no-posts {
    text-align: center;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .latest-news-widget {
        margin-bottom: 15px;
    }
    
    .latest-news-widget .news-item {
        padding: 12px;
    }
    
    .latest-news-widget .news-title {
        font-size: 13px;
    }
}











/* tin cạnh slide banner */
.tin-canh-slide-container {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin: 16px 0;
}

.tin-canh-slide-item {
    display: flex;
    align-items: flex-start;
    padding: 7px;
    border-bottom: 1px solid #cbcbcb;
    transition: background-color 0.3s ease;
}

.tin-canh-slide-item:last-child {
    border-bottom: none;
}

.tin-canh-slide-item:hover {
    background-color: #f8f9fa;
}

.tin-canh-slide-thumb {
  flex: 0 0 auto;
  width: 112px;
  height: 63px;               /* khung cố định 16:9 */
  margin-right: 8px;
  border-radius: 4px;         /* tuỳ chỉnh nếu muốn bo góc */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f6f8;        /* màu nền cho khoảng trống */
}

.tin-canh-slide-thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain !important; /* luôn hiển thị trọn ảnh */
  object-position: center;
  display: block;
}



.tin-canh-slide-content {
    flex: 1;
    min-width: 0;
}

.tin-canh-slide-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 18px;
    margin: 0 0 8px 0;
    color: #000000;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.4em * 2);
	text-align: justify;
	padding-right: 5px;
	display: flex;
  align-items: flex-start;
	width: 100%;
}

.tin-canh-slide-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.tin-canh-slide-title a:hover {
    color: #007cba;
}

.tin-canh-slide-date {
    font-size: 11px;
    color: #999;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tin-canh-slide-thumb {
        width: 90px;
        height: 70px;
        margin-right: 10px;
    }
    
    .tin-canh-slide-title {
        font-size: 13px;
    }
    
    .tin-canh-slide-item {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .tin-canh-slide-thumb {
        width: 70px;
        height: 55px;
        margin-right: 8px;
    }
    
    .tin-canh-slide-title {
        font-size: 12px;
    }
    
    .tin-canh-slide-item {
        padding: 10px;
    }
}







/* Responsive */
@media (max-width: 1200px) {
    .social-share-sidebar {
        position: static;
        width: 100%;
        margin-bottom: 20px;
        display: flex;
        justify-content: center;
        gap: 10px;
        padding: 15px;
    }
    
    .social-share-sidebar a {
        margin-bottom: 0;
    }
}






/* ===== THPT Mỹ Đức B – News List Layout ===== */
.lp-newslist-section { margin: 10px 0 24px; }
.lp-newslist { display:block; }
.lp-newslist-item { margin: 0; }
.lp-nl-divider { height:1px; background:#e7ecf2; margin:16px 0 20px; }

/* Hàng item */
.lp-nl-item-inner {
  display:grid;
  grid-template-columns: 320px 1fr;  /* ảnh trái */
  gap:20px;
  align-items:start;
}
@media (max-width:1024px){ .lp-nl-item-inner{ grid-template-columns:280px 1fr; } }
@media (max-width:768px){ .lp-nl-item-inner{ grid-template-columns:1fr; } }

/* Ảnh + badge */
.lp-nl-thumb{ display:block; position:relative; border-radius:12px; overflow:hidden; }
.lp-nl-thumb-ratio{ position:relative; width:100%; aspect-ratio:16/9; background:#f2f4f7; }
.lp-nl-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }

.lp-nl-noimg{
  width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
  color:#9aa4b2; font-style:italic; background:#eef2f6;
}

/* Badge trên ảnh (màu NewLife) */
.lp-nl-badge{
  position:absolute; left:12px; bottom:12px;
  display:inline-block; padding:6px 10px;
  font-size:12px; font-weight:700; color:#fff;
  background:linear-gradient(180deg,#224484 0%,#1a629a 100%);
  border-radius:10px; text-transform:uppercase;
	display:none !important;
}

/* Nội dung phải */
.lp-nl-date{ display:block; color:#6b7a90; font-size:13px; margin-bottom:6px; }
.lp-nl-title{ margin:0 0 8px; font-size:20px; line-height:1.35; font-weight:800; }
.lp-nl-title a{ color:#0b2b66; text-decoration:none; }
.lp-nl-title a:hover{ color:#1a629a; text-decoration:underline; }

.lp-nl-excerpt{ margin:0 0 10px; color:#344054; font-size:15px; line-height:1.6; }
.lp-nl-readmore{
  display:inline-block; font-weight:700; font-size:14px; color:#1a629a;
  text-decoration:none; padding-right:4px;
}
.lp-nl-readmore:hover{ text-decoration:underline; }

/* Phân trang */
.lp-nl-pagination{ margin-top:14px; }
.lp-nl-page-list{ list-style:none; padding:0; margin:0; display:flex; gap:8px; justify-content:center; }
.lp-nl-page-item a, .lp-nl-page-item span{
  display:inline-flex; min-width:36px; height:36px; align-items:center; justify-content:center;
  padding:0 12px; border:1px solid #d7e0ea; border-radius:8px;
  color:#0b2b66; background:#fff; text-decoration:none;
  font-weight:700; font-size:14px;
}
.lp-nl-page-item .current{ background:#1a629a; color:#fff; border-color:#1a629a; }
.lp-nl-page-item a:hover{ border-color:#1a629a; }











@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}