/* Main Stylesheet for Tạp chí Kinh tế & Phát triển - ktpt.edu.vn (100% Original bg_Tabmenu1-5.jpg Desktop Architecture) */

:root {
    --primary-red: #cc0001;
    --dark-red: #990000;
    --primary-blue: #166cb9;
    --title-blue: #186cb5;
    --text-dark: #00013a;
    --text-gray: #555555;
    --border-gray: #e2e2e2;
    --bg-page: #999999;
}

body {
    background-color: var(--bg-page);
    font-family: Arial, Tahoma, sans-serif;
    font-size: 12px;
    color: var(--text-dark);
    line-height: 1.4;
    margin: 0;
    padding: 0;
}

a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-red);
}

.clear {
    clear: both;
}

.clean {
    clear: both;
    height: 0;
    overflow: hidden;
}

/* Hide Hamburger Toggle Button on Desktop by default */
.mobile-nav-toggle {
    display: none;
}

/* --- Container Portal --- */
#ViT-Portal {
    margin: 0 auto;
    width: 960px;
    background: transparent;
}

/* --- Top Header & Language --- */
#portal-top {
    background: var(--primary-red);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    margin-top: 18px;
    position: relative;
}

#chose-language {
    font-weight: bold;
    position: absolute;
    right: 10px;
    top: -17px;
    /* Positioned ABOVE red box on dark gray background */
    font-size: 11px;
    color: #ffffff;
    z-index: 100;
}

#chose-language a {
    color: #ffffff;
    padding: 0 3px;
    font-family: Arial, sans-serif;
}

#chose-language a:hover {
    color: #ffd700;
    text-decoration: underline;
}

#chose-language span {
    color: #ffffff;
    padding: 0 4px;
}

#icon_home {
    display: inline-block;
    vertical-align: middle;
}

/* --- Header Logo Section (Using Original logo.png) --- */
#header {
    position: relative;
    right: 0;
}

#logo .logo_body {
    background: url('../images/logo.png') 0 10px no-repeat;
    display: block;
    height: 115px;
    margin: 0 0 0 10px;
    padding: 10px;
    width: 928px;
    position: relative;
}

#logo .logo_body .logo_link_left a {
    position: absolute;
    left: 0;
    top: 0;
    width: 300px;
    height: 100px;
}

#logo .logo_body .logo_link_right a {
    position: absolute;
    right: 0;
    top: 2px;
    width: 185px;
    height: 110px;
}

/* --- Desktop Top Menu Bar (Using Original bg_Tabmenu1..5.jpg) --- */
#menu-top {
    position: relative;
    z-index: 10;
    padding-left: 0px;
    margin-top: 0;
}

#menu-top #menu {
    height: 20px;
    line-height: 20px;
    background-repeat: no-repeat;
    background-position: 0 0;
    transition: background-image 0.15s ease-in-out;
}

/* Dynamic bg_Tabmenu1..5.jpg classes for Desktop */
#menu-top #menu.bg-tab-1,
body.tab-1 #menu-top #menu {
    background-image: url('../images/bg_Tabmenu1.jpg');
}

#menu-top #menu.bg-tab-2,
body.tab-2 #menu-top #menu {
    background-image: url('../images/bg_Tabmenu2.jpg');
}

#menu-top #menu.bg-tab-3,
body.tab-3 #menu-top #menu {
    background-image: url('../images/bg_Tabmenu3.jpg');
}

#menu-top #menu.bg-tab-4,
body.tab-4 #menu-top #menu {
    background-image: url('../images/bg_Tabmenu4.jpg');
}

#menu-top #menu.bg-tab-5,
body.tab-5 #menu-top #menu {
    background-image: url('../images/bg_Tabmenu5.jpg');
}

ul.nav-top {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    height: 25px;
}

ul.nav-top li.menu {
    position: relative;
    margin-right: 0;
}

ul.nav-top li.menu h2.menu-block {
    margin: 0;
    font-size: 12px;
    font-weight: bold;
}

/* User Custom Tab Link CSS with Padding Left 8px */
ul.nav-top li.menu a {
    display: inline-block;
    align-items: center;
    justify-content: center;
    height: 25px;
    line-height: 25px;
    color: #00003a;
    font-weight: bold;
    font-size: 12px;
    font-family: Arial, sans-serif;
    text-align: left;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0;
    padding-left: 8px;
    box-sizing: border-box;
}

/* Exact Tab Widths matching bg_Tabmenu1-5.jpg */
ul.nav-top li.menu.tab-item-1 a {
    width: 114px;
}

ul.nav-top li.menu.tab-item-2 a {
    width: 104px;
}

ul.nav-top li.menu.tab-item-3 a {
    width: 108px;
}

ul.nav-top li.menu.tab-item-4 a {
    width: 90px;
}

ul.nav-top li.menu.tab-item-5 a {
    width: 90px;
}

ul.nav-top li.menu:hover a {
    color: var(--primary-red);
}

/* --- Submenu Links Bar (Divided Left White ~755px, Right Red ~205px - Image 2) --- */
.header-bottom-wrapper {
    display: flex;
    width: 960px;
    margin: 0;
    position: relative;
}

.header-bottom-left {
    width: 745px;
    background: #ffffff;
    border-top-right-radius: 12px;
    padding: 6px 0 4px 0;
    box-sizing: border-box;
    box-shadow: 3px 0 6px -2px rgba(0, 0, 0, 0.18);
    position: relative;
    z-index: 5;
}

.header-bottom-right {
    width: 205px;
    background: var(--primary-red);
    /* Right area RED matching Image 2 */
    box-sizing: border-box;
}

#menu-right {
    background: transparent;
    padding: 0 0 0 10px;
    width: 735px;
    box-sizing: border-box;
}

.submenu-container {
    background: #ffffff;
    border: 1px solid #b5b5b5;
    border-radius: 12px;
    padding: 5px 12px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12);
}

#menu-right ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#menu-right ul li .title a {
    color: #333333;
    font-size: 11px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

#menu-right ul li .title a:hover {
    color: var(--primary-red);
}

#menu-right ul li.spacer {
    color: #888888;
    font-size: 11px;
    font-weight: normal;
}

/* --- Portal Center --- */
#portal-center {
    background: #ffffff;
    padding: 10px 0 25px 0;
    min-height: 600px;
    margin-top: 0;
}

#left {
    float: left;
    padding-left: 10px;
    width: 745px;
    box-shadow: 5px 0 6px -2px rgba(0, 0, 0, 0.18);
    position: relative;
    z-index: 5;
    padding-right: 10px;
}

#right {
    float: right;
    width: 190px;
    padding-right: 10px;
}

/* Top Content Area (Slider + Guidelines Banner) */
.center-top {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.center-top-left {
    width: 485px;
}

.center-top-right {
    width: 235px;
}

/* Banner Slider */
#abc-top {
    width: 485px;
    height: 240px;
    overflow: hidden;
    position: relative;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

#abc-top-i {
    width: 100%;
    height: 100%;
    position: relative;
}

#abc-top-i .slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: none;
}

#abc-top-i .slide-item.active {
    opacity: 1;
    display: block;
}

#abc-top-i img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: bold;
}

.slide-pager {
    position: absolute;
    bottom: 8px;
    right: 10px;
    z-index: 100;
}

.slide-pager ul {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.slide-pager a {
    background-color: #202020;
    border: 1px solid #ffffff;
    color: #ffffff;
    display: block;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    text-align: center;
    border-radius: 2px;
}

.slide-pager a.activeSlide,
.slide-pager a:hover {
    background-color: var(--primary-blue) !important;
}

/* Quy định gửi bài Banner */
.quydinh_guibai {
    height: 240px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.quydinh_guibai:hover {
    transform: translateY(-2px);
}

.quydinhguibai_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Section Tra cứu bài báo --- */
.tracuu {
    margin-top: 15px;
    margin-bottom: 25px;
}

.tracuu .tracuu_title {
    color: var(--title-blue);
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--title-blue);
    padding-bottom: 4px;
    display: inline-block;
}

.tracuu .tracuu_center {
    border: 3px solid #dfdfdf;
    background: #ffffff;
    padding: 6px 10px;
    border-radius: 4px;
}

.tracuu .search-form table {
    width: 100%;
    border-collapse: collapse;
}

.tracuu .search-form td {
    vertical-align: middle;
    padding: 2px 2px;
    white-space: nowrap;
}

.tracuu_radiolist {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    white-space: nowrap;
}

.tracuu_radiolist label {
    margin-left: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.tracuu .ddlYear,
.tracuu .ddlLinhVuc,
.tracuu .txtKeyword {
    border: 1px solid #ccc;
    padding: 3px 5px;
    font-size: 11px;
    border-radius: 3px;
    outline: none;
    display: inline-block;
    vertical-align: middle;
    box-sizing: border-box;
}

.tracuu .ddlYear {
    width: 65px;
    margin-left: 4px;
}

.tracuu .ddlLinhVuc {
    width: 105px;
    margin-left: 3px;
}

.tracuu .txtKeyword {
    width: 155px;
    margin-left: 3px;
}

.tracuu .txtKeyword:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 4px rgba(22, 108, 185, 0.3);
}

.tracuu .btnSearch {
    background: #8fc31f url('../images/btnSearch.png') no-repeat center center;
    border: 1px solid #7ab013;
    border-radius: 3px;
    cursor: pointer;
    height: 22px;
    width: 22px;
    margin-left: 4px;
    vertical-align: middle;
    display: inline-block;
}

/* --- Section Bài báo mới nhất --- */
#menu-middle {
    margin-top: 10px;
}

#menu-middle .item-title,
.title_tapchi {
    background: var(--border-gray);
    color: var(--primary-blue);
    font-size: 14px;
    font-weight: bold;
    padding: 8px 12px;
    text-transform: uppercase;
    border-left: 4px solid var(--primary-red);
    border-radius: 2px 2px 0 0;
}

.list-news-left ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.list-news-left ul li {
    padding: 12px 8px;
    border-bottom: 1px dashed #d0d0d0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: background-color 0.15s ease;
}

.list-news-left ul li:hover {
    background-color: #f7f9fc;
}

.article-info {
    width: 630px;
}

.article-info h3 {
    margin: 0 0 4px 0;
    font-size: 13px;
    line-height: 1.4;
}

.article-info h3 a {
    color: var(--text-dark);
    font-weight: bold;
}

.article-info h3 a:hover {
    color: var(--primary-red);
}

.article-info .authors {
    color: #444444;
    font-style: italic;
    font-size: 11px;
    margin-bottom: 3px;
}

.article-info .so-trang {
    color: #666666;
    font-size: 11px;
}

.article-download {
    width: 60px;
    text-align: right;
    padding-top: 4px;
}

.btn-pdf-download {
    display: inline-block;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0;
    border: none;
    text-decoration: none !important;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn-pdf-download:hover {
    background: transparent !important;
    box-shadow: none !important;
    transform: scale(1.08);
    opacity: 0.9;
}

/* --- Right Sidebar --- */
#tapchi-moinhat {
    background: #f2f2f2;
    border: 1px solid #d5d5d5;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 18px;
}

#tapchi-moinhat .header-bar {
    background: #cc0001;
    height: 18px;
    width: 100%;
}

#tapchi-moinhat .title {
    color: #990000;
    font-size: 13px;
    font-weight: bold;
    padding: 8px 10px 6px 10px;
    text-align: center;
    text-transform: uppercase;
    background: #f2f2f2;
}

#tapchi-moinhat .center {
    padding: 8px 12px 14px 12px;
    text-align: center;
    background: #f2f2f2;
}

#tapchi-moinhat .center img {
    width: 100%;
    max-width: 175px;
    height: auto;
    border: 1px solid #707070;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s;
}
    transition: transform 0.2s;
}

#tapchi-moinhat .center img:hover {
    transform: scale(1.03);
}

#abc-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#abc-right a img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: opacity 0.2s;
}

#abc-right a img:hover {
    opacity: 0.9;
}

/* --- Footer --- */
#portal-bottom {
    background: var(--primary-red);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    color: #ffffff;
    padding: 15px 20px;
    font-size: 11px;
    line-height: 1.6;
}

#footer-left address.text {
    font-style: normal;
}

#footer-left .fl_add {
    color: #ffffff;
}

#footer-left .fl_add span {
    font-weight: bold;
}

/* --- Inner Pages Formatting --- */
.page-container {
    padding: 10px 0;
}

.page-title {
    color: var(--primary-blue);
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--primary-red);
    text-transform: uppercase;
}

.page-content {
    line-height: 1.7;
    font-size: 13px;
    color: #333333;
}

.page-content p {
    margin-bottom: 12px;
    text-align: justify;
}

.page-content h3 {
    color: var(--primary-red);
    font-size: 14px;
    font-weight: bold;
    margin: 15px 0 8px 0;
}

/* Article Detail Page */
.article-detail-header {
    background: #f8f9fa;
    padding: 15px;
    border-left: 4px solid var(--primary-red);
    margin-bottom: 20px;
    border-radius: 0 4px 4px 0;
}

.article-detail-title {
    font-size: 18px;
    color: var(--primary-blue);
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.article-detail-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

.article-detail-authors {
    font-size: 13px;
    font-weight: bold;
    color: #333;
}

.abstract-box {
    border: 1px solid #e2e2e2;
    padding: 15px;
    background: #fffefd;
    border-radius: 4px;
    margin-bottom: 20px;
}

.abstract-title {
    font-weight: bold;
    color: var(--primary-red);
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
}

/* Modal PDF Preview */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: #ffffff;
    width: 90%;
    max-width: 800px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-header {
    background: var(--primary-red);
    color: #fff;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.modal-close {
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    color: #fff;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
}

/* --- PDF Download Button Styling for .article-download --- */
.article-download {
    float: right;
    width: 45px;
    text-align: right;
    padding-top: 2px;
}

.article-download a {
    display: inline-block;
    text-decoration: none !important;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.article-download a:hover {
    transform: scale(1.08);
    opacity: 0.9;
}

.article-download a img {
    display: block;
    width: 35px;
    height: 44px;
    border: none;
    cursor: pointer;
}

/* --- Policy Horizontal Pill Navigation Bar (ktpt.edu.vn Design) --- */
.policy-pill-container {
    width: 100%;
    margin-bottom: 22px;
}

.policy-pill-nav {
    background: #f8f9fa;
    border: 1px solid #dcdcdc;
    border-radius: 20px;
    padding: 7px 16px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.policy-tab-item {
    font-size: 11.5px;
    font-weight: 700;
    color: #333333;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 14px;
    transition: all 0.2s ease;
    text-decoration: none !important;
    letter-spacing: 0.2px;
}

.policy-tab-item:hover {
    color: #b81c22;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.policy-tab-item.active {
    color: #b81c22 !important;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    font-weight: bold;
}

.policy-tab-divider {
    color: #cccccc;
    font-size: 12px;
    font-weight: 300;
    user-select: none;
}


/* Announcement Detail Page Styles */
.announcement-full-description {
    font-size: 14px;
    line-height: 1.7;
    color: #333;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.announcement-full-description .news-title {
    display: none !important;
}

.announcement-full-description #ctl00_ContentPlaceHolder1_ctl00_ctl01_pnlBaiVietQuanTam {
    display: none !important;
}

.announcement-full-description img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 15px auto;
}

.announcement-full-description table {
    max-width: 100% !important;
    width: 100% !important;
}

.announcement-full-description iframe {
    max-width: 100% !important;
}

.announcement-full-description #other-news {
    margin-top: 25px;
    background: #f8f9fa;
    padding: 12px 15px;
    border-left: 4px solid #166cb9;
    border-radius: 0 4px 4px 0;
}

.announcement-full-description #other-news h6 {
    font-size: 14px;
    color: #166cb9;
    margin-bottom: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.announcement-full-description #other-news ul {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}

.announcement-full-description #other-news ul li {
    margin-bottom: 6px;
}

.announcement-full-description #other-news ul li a {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.4;
}

.announcement-full-description #other-news ul li a:hover {
    color: #cc0001;
    text-decoration: underline;
}

/* Static Page & Policy Page Image Constraints */
.static-page-content img,
.policy-panel img,
.policy-content-wrapper img,
.about-panel img,
.about-content-wrapper img,
.page_about img {
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
}

