/*** ------------------ Giao diện tuỳ chỉnh cho website USSH ------------------- ***/
/*** ------- By Quang Huy Vu - vuquanghuy1998@gmail.com / huy@ussh.edu.vn ------ ***/
/*** ---------------------------- Date: 12/01/2020 ----------------------------- ***/

/*** --- Gọi font chữ từ Google Fonts --- ***/
@import url('https://fonts.googleapis.com/css2?family=Lobster&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap'); /* Font cho text thân bài của các bài longform */
/*** --- END: Gọi font chữ từ Google Fonts --- ***/

td, th {
  padding: 5px !important; /* Thêm space giữa text và border của các box trong bài viết */
}

/*** ------ Custom Styles - Block hiển thị grid menu của trang Sinh viên ------- ***/
/*** --------------------------- Giao diện Desktop ----------------------------- ***/
.student-cats .cat-item-inner h3 {
  font-size: 26px !important;
  line-height: 1.5em !important;
}

.student-cats .cat-item-inner h3 a {
  font-size: 26px !important;
  text-shadow: none !important;
  line-height: 1.5em !important;
}

.student-cats .cat-item-inner h3 a:hover {
  text-shadow: none !important;
  color: #ffffff !important;
  font-size: 28px !important;
  line-height: 1.5em !important;
}

/*** --------------------------- Giao diện Mobile ------------------------------ ***/
@media only screen and (max-width: 768px) {
.student-cats .cat-item-inner h3 {
  font-size: 20px !important;
  line-height: 1.5em !important;
}

.student-cats .cat-item-inner h3 a {
  font-size: 20px !important;
  text-shadow: none !important;
  line-height: 1.5em !important;
}

.student-cats .cat-item-inner h3 a:hover {
  text-shadow: none !important;
  color: #ffffff !important;
  font-size: 22px !important;
  line-height: 1.5em !important;
}
}
/*** ---- END: Custom Styles - Block hiển thị grid menu của trang Sinh viên ---- ***/

.home-news-student .item-first h3 a {
  font-size: 115% !important;
}

.home-events-news .item-first h3 a {
  font-weight: 700 !important;
  font-size: 105% !important;
}

.home-lastest-news .item h3 a {
  font-size: 105% !important;
}

div.news_column h3 a {
  font-size: 15px !important;
}

.news_column .panel-body {
  line-height: 1.5em !important;
}

.news_column .text-muted {
  padding: 5px 0 5px 0 !important;
}

div.news_column .imghome {
    margin: 5px 10px 10px 0 !important;
}

.list-group .list-group-item-heading {
    font-size: 15px !important;
    padding: 15px 5px 5px 5px !important;
    border-bottom: 1px solid lightgrey !important;
}

.relatedcat_title {
    border: solid 1px #d72533 !important;
    border-radius: 1px !important;
    padding: 5px !important;
}

.top-bar-site .top-bar-user {
    display: none !important; /* Ẩn link Đăng nhập trên top menu của site */
}

.top-bar-menu .ussh-menu-awesome-icon li:first-child:before {
    display: none !important; /* Ẩn dấu sổ dọc (|) trước mục đầu tiên của top menu */
}

#videoDetail h1 { /* Styles cho tiêu đề video - trang xem video chi tiết */
    font-size: 20px !important;
    padding-bottom: 10px !important;
}

.videoInfo .bodytext {
    font-weight: normal !important; /* Không in đậm toàn bộ text phần mô tả chi tiết video */
}

/*** Module Văn bản ***/
.list-unstyled li {
	padding-bottom: 10px;
}
/*** END: Module Văn bản ***/

/*** Làm cho các iframe nhúng (video YouTube, tài liệu Google Drive, v.v... trở nên responsive ***/
.video-embedded-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
}

.document-embedded-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 141.43%; /* 21:29.7 (A4 Paper Size) Aspect Ratio (divide 29.7 by 21 = 1.4142857) */
}

/* Then style the iframe to fit in the container div with full height and width */
.responsive-iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
}
/*** END: Responsive iframe for embedded YouTube, Google Drive, etc ***/

.widget-default .home-lastest-news .row {
    height: 390px;
    overflow: auto;
	margin-bottom: 20px;
	scroll-snap-type: y proximity;
	scroll-behavior: smooth;
}

.widget-default .home-lastest-news .row .item:nth-child(3n+1){
	scroll-snap-align: start;
}

.widget-default .home-lastest-news .row::-webkit-scrollbar-track
{
	-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
	border-radius: 4px; /** Default: border-radius: 10px; **/
	background-color: #F5F5F5;
}

.widget-default .home-lastest-news .row::-webkit-scrollbar
{
	width: 6px; /** Default: width: 12px; **/
	background-color: #F5F5F5;
}

.widget-default .home-lastest-news .row::-webkit-scrollbar-thumb
{
	border-radius: 4px; /** Default: border-radius: 10px; **/
	-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
	background-color: #606060 /** Default: background-color: #D62929; **/
}

/*** ---------- Styles cho các bài viết dạng longform (e-magazine) ---------- ***/
/* Ảnh cover đầu bài viết */
@media only screen and (min-width: 768px) {
.longform .photo-cover-top-section-mobile { /* Ẩn ảnh cover top mobile nếu truy cập từ desktop */
	display: none !important;
}
}

@media only screen and (max-width: 767px) { /* Ẩn ảnh cover top desktop nếu truy cập từ mobile */
.longform .photo-cover-top-section-desktop {
	display: none !important;
}
}

.longform img.photo-cover-top { /* Styles cho ảnh cover top của bài viết */
	width: 100%;
    height: auto;
    padding-bottom: 0;
    -webkit-transition: padding 0.5s;
    transition: padding 0.5s;
}

/* Styles cho phần text chính của bài */
.longform .article-body > p {
	width: 100% !important;
    max-width: 660px;
    margin: 18px auto !important;
    float: none;
	font-family: 'Noto Serif';
	font-size: 17px;
	line-height: 1.7em;
	color: #000000;
	margin: 20px auto 0px auto !important;
}

.longform .article-body {
	width: 100%;
	margin: 0;
}

/* END: Styles cho phần text chính của bài */

.longform p.sapo-lead {
	font-weight: 700;
}

.longform img {
	width: 100%;
	height: auto;
}

.longform img.full-width {
	width: 100% !important;
	height: auto;
	margin: 20px auto !important;
}

.longform .heading-extended-section-desktop {
	/* margin: 0px -80px 0px -80px !important; */
	width: 100% !important;
	max-width: 720px !important;
	margin: 20px auto !important; 
	clear: both !important;
}

@media only screen and (max-width: 767px) {
.longform .heading-extended-section-desktop {
	display: none !important;
}
}

@media only screen and (min-width: 768px) {
.longform .heading-extended-section-mobile {
	display: none !important;
}
}

.longform .article-body>p img[style*="right"], .longform .article-body>p img[align="right"] {
    width: auto !important;
    height: auto !important;
    max-width: 70% !important; /* Old value: 480px */
    float: right;
    margin-right: -20% !important; /* Old value: -200px */
    margin-left: 30px !important;
    margin-bottom: 16px !important;
}

.longform .article-body>p img[style*="left"], .longform .article-body>p img[align="left"] {
    width: auto !important;
    height: auto !important;
    max-width: 70% !important; /* Old value: 480px */
    float: left;
    margin-left: -20% !important; /* Old value: -200px */
    margin-right: 30px !important;
    margin-bottom: 16px !important;
}

@media only screen and (max-width: 767px) {
.longform .article-body>p img, .longform .article-body>p img[style*="right"], .longform .article-body>p img[align="right"], .longform .article-body>p img[style*="left"], .longform .article-body>p img[align="left"] {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
}
}

.footer-site-top ul.ssmenu ul { display: none; }

.widget-default .home-lastest-news .rows {
    grid-gap: 40px;
}

.nv-block-banners{
    margin-bottom: 50px;
}