/********************* overall ************************/

:root{
    --theme-primary-color: #670054;
}

.text-primary{
    color: var(--theme-primary-color) !important;
}

a.text-primary:hover{
    color: var(--theme-primary-color) !important;
    opacity: 0.8;
}

.bg-light{
    background: #f4f4f2 !important;
}

.widget{
    border: solid #dfdfdd;
    border-width: 0 .1rem .1rem 0;
    background: #fff;
}

.bt-0{
    border-top: none !important;
}

.bt-1{
    border-top: .1rem solid #dcdcda;
}

.bt-2{
    border-top: .16rem solid #888888 !important;
}
.bb-2{
    border-bottom: .16rem solid #888888 !important;
}


.h-66 {
    height: 66.6666666666% !important;
}

.h-33 {
    height: 33.3333333333% !important;
}

.w-66 {
    width: 66.6666666666% !important;
}

.w-33 {
    width: 33.3333333333% !important;
}

.w-60 {
    width: 60% !important;
}

.w-40 {
    width: 40% !important;
}

a{
    color : #222;
}

a:hover{
    color : #444;
    text-decoration: none;
}

.oft{
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-gray{
    color: #888;
}

body{
    min-height: 100vh;
    position: relative;
}

main{
    padding-bottom: 4rem;
}

.g-recaptcha > div {
    margin: 0 auto;
}

.required{
    color: red;
}

.widget .h-33{
    padding:0.3rem 0.5rem !important;
}

.widget .h-33 a{
    overflow-y:hidden;
}

.widget .h-33:first-child{
    padding:0.2rem 0.5rem 0.3rem 0.5rem !important;
}

.widget .h-33:last-child{
    padding:0.3rem 0.5rem 0.2rem 0.5rem !important;
}

.widget .h-50:first-child{
    padding:0.5rem 0.5rem 0.75rem 0.5rem !important;
}

.widget .h-50:last-child{
    padding:0.75rem 0.5rem 0.5rem 0.5rem !important;
}


.widget2{
    border: solid #dfdfdd;
    border-width: 0 .1rem .1rem 0;
    background: #fff;
}

.widget2 .illastrate {
    width: 100%;
    padding-top: 66.666667%;
    overflow: hidden;
    position: relative;
}

.widget2 .illastrate img {
    position: absolute;
    top: 0;
    width: 100%;
}

.widget2 .description {
    padding: 0.75rem 0.5rem 0.5rem 0.5rem !important;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 80px;
    font-size: 0.8rem;
}
.widget2 .description h4 {
    font-size: 0.9rem;
    font-weight: 700;
}

body .subject-list .widget{
    height: 100% !important;
}

.w-42{
    width: 42%;
}
.ps-50{
    padding-left: 50%
}

.widget p.description{
    font-size: 0.9rem;
    font-weight: 700;
}
/********************** HEADER *************************/
header{
    position: sticky;
    top:0;
    z-index: 99;
    background: #f4f4f2 !important;
	transition: all 500ms;
}

header.fixed{
    box-shadow: 0 0.5rem 1rem rgba(102, 102, 102, 0.349);
}

header nav.navbar button.navbar-toggler{
    margin: 0 0.8rem 0.5rem !important;
}

/********************** BRANDBAR *************************/
header div.brand-bar .container-fluid{
    padding: 0 0.5rem;
} 

header div.brand-bar ul li a{
    font-size: 0.9rem;
}

header .navbar-brand{
    white-space: normal;
}

.navbar-brand .small-brand{
    font-size: 0.7rem;
    width: 8rem;
    overflow: hidden;
    display: inline-block;
    line-height: 1.2;
    vertical-align: middle;
}

.navbar-brand .current-page{
    vertical-align: top;
    font-size: 1.5rem;
    margin-top: -10px;
    border-left: 0.1rem solid #aaa;
    color: var(--theme-primary-color);
}

.navbar-brand .brand-title{
    color: var(--theme-primary-color);
}

/********************** NAVBAR *************************/
#main-navbar ul li{
    padding: 0.3rem;
    padding-right: 0.7rem;
    padding-bottom: 0;
    margin: 0
}

#main-navbar ul li a{
    font-size: 0.95rem;
    font-weight: bold;
    color: #222;
}
#main-navbar ul li a{
    border-bottom: 0.2rem solid #f4f4f2 ;
}  
#main-navbar ul li:hover a{
    border-bottom-color: var(--theme-primary-color);
}   

#main-navbar .nav-item.active a{
    border-bottom-color: var(--theme-primary-color);
}

/********************** SUB BAR *************************/

.sub-navbar{
    background-color: var(--theme-primary-color);
    background-image: url('../images/subtle-grey.png');
    background-repeat: repeat;
}

.sub-navbar .navbar-nav .nav-item .nav-link{
    color: #fff;
    font-size: 0.95rem;
    text-shadow: 0 0 3px #000;
    font-weight: 700;
}

.sub-navbar .navbar-nav .nav-item .nav-link:hover{
    text-decoration: underline;
}

.sub-navbar .navbar-nav .nav-item.active a{
    font-weight: bold;
}

header .sub-navbar{
    display: none;
}

header .sub-navbar.shown-start{
    display: block;
    background-color: var(--theme-primary-color);
    background-image: url('../images/subtle-grey.png');
    background-repeat: repeat;
}

/********************** HEAD LIST *************************/
.head-list .widget{
    height: 280px !important;
    overflow: hidden;
}

.head-list .widget.half{
    height: calc(140px - 0.25rem) !important;
    overflow: hidden;
}

.head-list .widget.half .widget-title{
    font-size: 0.8rem;
}

#main-carousel {
    height: 100%;
}

#main-carousel .carousel-inner {
    height: 100%;
}

#main-carousel .carousel-item {
    background-size: cover;
    background-position: 50% 50%;
    width: 100%;
    height: 100%;
}

#main-carousel .carousel-item img {
    visibility: hidden;
}

.carousel-caption{
    text-shadow: 0 0 0.1rem #b5b0b0;
    /* filter: drop-shadow(0 0 0.5rem #000); */
}

.carousel-title{
    color: #FFF;
    position: absolute;
    bottom: 0.5rem;
    left: 1rem;
    text-shadow: 0 0 0.1rem #b5b0b0;
    /* filter: drop-shadow(0 0 0.5rem #000); */
}

.article .carousel-title{
    text-shadow: 0 0 0.1rem #b5b0b0;
    font-size: 2vw;
    right: 1vw;
    left: 1vw;
    filter: drop-shadow(0 0 0.5rem #000);
}

.widget .full-widget{
    width: 100%;
    height: 100%;
    display: block;

    background-size: cover;
    background-position: 50% 50%;
    position: relative;
}

.widget .full-widget .widget-title{
    position: absolute;
    left: 0.5rem;
    bottom: 0rem;
    color: #2b2b2b;
    /* text-shadow: 0 0 0.1rem #b5b0b0; */
    /*  filter: drop-shadow(0 0 0.5rem #000); */ 
    margin-bottom: 0.1rem;
}


:not(.sidebar) > .widget .full-widget .widget-title{
    position: absolute;
    bottom: 0;
    left: 0;
    color: #2b2b2b;
    /* background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%,rgba(0, 0, 0, 0.62) 25%,rgb(0, 0, 0) 100%); */
    /* background: -moz-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(0,0,0,0.62) 25%, rgba(0,0,0) 100%);  */
    /* background: -webkit-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,0.62) 25%,rgba(0,0,0) 100%);  */
    width: 100%;
    margin-bottom: 0;
    padding: 10px 8px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    font-size: 1rem;
    background: rgba(239, 239, 239, 0.68) 68%;
}

.carousel-caption {
    right: 0;
    bottom: 0;
    left: 0;
    color: #2b2b2b;
    text-align: left;
    /* background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%,rgba(0, 0, 0, 0.62) 25%,rgb(0, 0, 0) 100%); */
    /*background: -moz-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(0,0,0,0.62) 25%, rgba(0,0,0) 100%); /* FF3.6-15 */
    /*background: -webkit-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,0.62) 25%,rgba(0,0,0) 100%); /* Chrome10-25,Safari5.1-6 */
    margin-bottom: 0;
    padding: 10px 8px;
    background: rgba(239, 239, 239, 0.68) 68%;
}

.carousel-caption h5{
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    font-size: 1rem;
    margin: 0;
    padding: 0;
}


.widget .widget-desc{
    font-size: 0.8rem;

}

a.link-box:hover{
    filter: saturate(180%);
}

a.link-box:hover .link-title{
    text-decoration: underline;
}

/********************** ISSUE *************************/

.subject-list .widget.issue{
    width: 160px;
    height: auto !important;
}

.subject-list .widget.issue .widget-title.back{
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%,rgba(0, 0, 0, 0.20) 25%,rgba(0, 0, 0,0.4) 100%);
    background: -moz-linear-gradient(top, rgba(0, 0, 0, 0) 0%,rgba(0, 0, 0, 0.20) 25%,rgba(0, 0, 0,0.4) 100%);
    background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0) 0%,rgba(0, 0, 0, 0.20) 25%,rgba(0, 0, 0,0.4) 100%);
    filter: blur(2px);
}

.subject-list .widget.issue .widget-title h5,
.subject-list .widget.issue .widget-title time{
    display: block;
    text-align: center;
}

.subject-list .widget.issue .widget-title time{
    font-size: 0.8rem;
}

.subject-list .widget.issue .widget-title.back h5,
.subject-list .widget.issue .widget-title.back time{
    visibility: hidden;
}

.subject-list .widget.issue .widget-title.front{
    background: none;
}

.subject-list .widget.issue a.link-box{
    transition: all 500ms;
}

.subject-list .widget.issue a.link-box:hover{
    filter: none;
    transform-origin: center center;
    transform: scale(1.05);
}


/********************** SUBJECT LIST *************************/
.subject-list .subject-title{
    border-top: .16rem solid #888888;
}

.subject-list .main-sbj{
    font-weight: bold;
    font-size: 1.2rem;
    padding-right: 0.5rem;
}

.subject-list .main-sbj.has-sub::after{
    font-family: "Font Awesome 5 Free" !important;
    content: "\f105";
    font-size: 1.4rem;
    top:2px;
    position: relative;
}

.subject-list .sub-sbj{
    list-style: none;
    display: inline-block;
    padding:0;
    margin: 0;
}

.subject-list .sub-sbj li{
    display: inline-block;
    padding:0 0.8rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: bold;
}

.subject-list .sub-sbj li a{
    color: #666;
}


.subject-list .widget{
    height: 270px !important;
    overflow: hidden;
}

.card-title{
    font-size: 1rem;
    font-weight: 700;
    margin: 0 -0.4rem 0.7rem;
}

@media (max-width: 575.98px) {
    .sub-subject-list .card-columns {
        column-count: 1;
    }

    .subject-list .card-columns {
        column-count: 1;
    }
}

@media (min-width: 576px) and (max-width: 767.98px)  {
    .sub-subject-list .card-columns {
        column-count: 1;
    }

    .subject-list .card-columns {
        column-count: 1;
    }
}

@media (min-width: 768px) and (max-width: 991.98px)  {
    .sub-subject-list .card-columns {
        column-count: 2;
    }

    .subject-list .card-columns {
        column-count: 2;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px)  {
    .sub-subject-list .card-columns {
        column-count: 3;
    }

    .subject-list .card-columns {
        column-count: 3;
    }
}

@media (min-width: 1200px)  {
    .sub-subject-list .card-columns {
        column-count: 4;
    }

    .subject-list .card-columns {
        column-count: 3;
    }
}

.card-columns {
    font-size: 0.85rem;
}

 .card, 
 .card img,
 .card-img-top{
    border-radius: 0
}

 .card-body{
    padding: 0.8rem;
}

 .card-body h5{
    font-size: 1rem;
}


a.link-card:hover img{
    filter: saturate(180%);
}

a.link-card:hover .card-title{
    text-decoration: underline;
}



/********************** ARTICLE *************************/

.author-list{
    padding: 0;
    list-style: none;
}

.author-list li{
    display: inline;
    padding-right: 0.5rem;
    font-weight: bold;
}

.author-list li::after{
    content: ";"
}

.author-list li:last-child::after{
    content: ""
}

.article-detail{
    font-size: 0.9rem;
    color: #656565;
}

.popover {
    border-radius: .1rem;
}

.form-control{
    border-radius: 0.1rem;
    background-color: #f7f7f7;
}

.form-group label{
    margin-bottom: 0.1rem;
}
/********************** ARCHIVE *************************/

.issueList article{
    border-bottom: 0.1rem solid #AAA;
}

.issueList article .title {
    background-color: #fafafa;
    color: #555;
    cursor: pointer;
}

.issueList article .content {
    background-color: #fff;
    display: none;
}

.issueList article .title i {
    vertical-align: middle;
    padding-top:0.2rem;
    font-size: 1.42em;
  }
.issueList article .content {
    padding: 0 10px;
  }

  
  .issueList .issueInfo img {
    height: 60px;
  }

  .issueList .issueInfo .issueDetail {
    margin: 0 20px;
  }
  .issueList .issueInfo time {
    display: block;
    color: gray;
  }
  
/*******************CINATCT***************************/

.contact > form > .row {
    padding: 0 10px;
}

.contact > form > .row > div{
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100%  !important;

}

.contact label{
    display: inline-block;
    width: 23%;
}

.contact .form-control{
    display: inline-block;
    width: 75%;
}

.contact h1{
    font-size: 1.5rem;
    font-weight: bolder;
}
  

/********************** FOOTER *************************/

footer{
    position: absolute;
    width: 100%;
    bottom: 0;
}

footer nav ul{
    padding: 0;
    list-style: 0;
    display: inline;
}

footer nav ul li{
    padding: 0 0.5rem;
    display: inline;
}

footer nav ul li a{
    font-size: 0.7rem;
}

/****************** SOME OTHER **********************/

.list-group{
    border-radius: 0 !important;
}

.list-group-item {
    border: 1px solid rgba(0,0,0,.125);
    border-left: none;
    border-right: none;
    border-radius: 0 !important;
}

.list-group-item:first-child {
    border-top: none;
}

.faq-a p{
    margin-bottom: 0.2rem;
}

.faq-a p:last-child{
    margin-bottom: 0;
}

header.fixed #header-image {
    max-height: 0;    
  }
  
  #header-image {
    transition: all 500ms;
    max-height: 150px;
    overflow: hidden;
  }

  footer nav ul li {
    list-style: none;
    display: block;
}
footer nav ul li a{
    color: #FFF !important;
    font-size: 0.9rem;
}

main {
    padding-bottom: 14rem;
}

@media only screen and (max-width: 576px) {
  main {
    padding-bottom: 25rem;
}
    footer nav ul li.pb-3 {
        padding-bottom:0 !important;
    }
}

footer * {
    color: #fff !important;
}

footer{
    background-color: var(--theme-primary-color) !important;
}

.sidebar .link-title.widget-title{
    display: none;
}