/* Products styles.

   developer:   charlest
   requires:    /common/framework/css/framework.zh-tw.css
   ========================================================================== */



/* ==========================================================================
   setup the environment
   ========================================================================== */
html { font-family: 'Microsoft YaHei', 'Hiragino Sans GB', Arial, sans-serif; }

main a { color: #172942; }

main a:focus,
main a:hover { color: #ff6c00; }



/* ==========================================================================
   header
   ========================================================================== */
#header h1 {
    font-size: 2.25rem; 
	text-transform: uppercase; 
	font-weight: 400; 
	color: #dd1100; 
	display: inline-block;
    }
h3 {
     color: #222; 
     display: inline; 
     font-size: 1.0625rem; 
     font-weight: 600; 
     margin-left: 0px;
    }
a:hover h3{
        color: #dd1600!important;
    }
    
/* ==========================================================================
   shared section standards
   ========================================================================== */

/* page wrappers
   ========================================================================== */
.page-width {
    margin: 0 auto;
    max-width: 1013px;
    width: 100%;
}

.page-padding { padding: 0 1rem; }


/* buttons
   ========================================================================== */
.button {
    background: #5bb2a6;
    border-radius: .25rem;
    color: #fff;
    display: inline-block;
    padding: .5rem 1.5rem;
}

.button:focus,
.button:hover { background: #ff6c00; }

a.button {
        background: #dd1600;
        color: #fff;
        padding: 6px 14px;
        font-size: 1rem;
        font-weight: 400;
        display: inline-block;
        float: right;
        margin-top: 10px;
    }
a.button:hover {
        color: #fff;
    }

#topic section .thumbnails a span {
    width:11rem;
    display: block;
}

#topic section.scheduled-courses .thumbnails a span.title {
    width: 12rem;
    display: inline-block;
}

/* ==========================================================================
   Topic pages thumbnails
   ========================================================================== */

p.description {
    font-size: 1rem;
    line-height: 1.5rem;
    color: #535353;
    width: 23rem;
}

.home .heading {
    width: 24rem;
}

.home .page-padding {
    padding: 0 3rem;
}
.home .page-padding section {
    border-top: 1px solid #b3b3b3;
    padding-top: 2.5rem;
    padding-bottom: 1.2rem;
}
#products-services {
    border-top: none;
    padding-top: 1.2rem;
}

#topic main section{ 
    position: relative; 
    padding: 1rem 1rem 0 0; 
} 

#topic section#products-services span {
    display: inline-block;  
}

#topic section .thumbnail.right {
    float: right;
}

#topic section .thumbnail {
    margin: 0 0 2rem;
}

#topic #course section .thumbnail {
    margin: 0 0 3.5rem;
    text-align: center!important;
}

#topic #course section .thumbnail span {
    display: block;
}

#topic #course section .thumbnail.width-0 {
    width: 10.6rem;
}

#topic #course section .thumbnail.width-0 a img {
        padding: 0 0 .9rem 0;
}

#topic #course section .thumbnail.vertical-align-0 {
    padding-top: 0.6rem;
}

#topic #course section .thumbnail.vertical-align-1 span {
    width: 10.0rem;
    display: block;
}

#topic #course section .thumbnail.vertical-align-1 {
    padding-top: 1.6rem;
}

#topic #course section .thumbnail.vertical-align-2 {
    padding-top: 1.2rem;
}

#topic #course section .thumbnail.vertical-align-2 span {
    width: 11.3rem;
}

#topic #course section .thumbnail.vertical-align-3 {
    padding-top: 2rem;
}

#topic #course section .thumbnail.vertical-align-4 {
    padding-top: 0.4rem;
}

#topic #course section .thumbnail.vertical-align-4 span {
    width: 7.6rem;
}

#topic #course section .thumbnail.vertical-align-5 {
    padding-top: 0.5rem;
}

#topic #course section .thumbnail.vertical-align-5 span {
    width: 10.3rem;
}

#topic #course section .thumbnail.vertical-align-6 {
    padding-top: 0.9rem;
}

#topic #course section .thumbnail.vertical-align-6 a img {
        padding: 0 0 .9rem 0;
}

#topic section .thumbnail:nth-child(2n),
#topic section .thumbnail:nth-child(2n + 1) {
    text-align: center;
}

#topic section .grid.cols-3 .thumbnail:nth-child(3n) {
    text-align: right;
}

#topic section .thumbnail:nth-child(4n) {
    text-align: right;
}

#topic section .thumbnail:nth-child(4n+1) {
    text-align: left;
}

#topic section .thumbnails img {
    display: block;
    margin: 0 .5rem 0 0; 
    padding: 0;
    vertical-align: middle;
}

#topic section .thumbnails a {
    font-size: 1rem;
    display: inline-block;
    text-align: left;
}

#topic main#course section .cols-4.thumbnails a {
    font-weight: 600;
}

#topic section .cols-2.thumbnails a {
    font-size: 1.2rem;
}

#topic section .cols-3.thumbnails a {
    font-size: 1.125rem;
}

#topic section button.button {
    right: 0;
    float: right;
    margin: 2rem 0;
}

#topic .hideable {
    display: block;
    width: 100% !important;
}

#topic section.show .nav,
#topic section.show header {
    display: none;
}

#topic main {
    display: block;
    overflow: hidden;
    margin: 0;
}

#topic section .thumbnail:nth-child(4n) {
    text-align: center;
}

#topic section .thumbnail:nth-child(4n+1) {
    text-align: center;
}

#topic section .grid.cols-2 .thumbnail:nth-child(2n) {
    text-align: right;
}
#topic section .grid.cols-2 .thumbnail:nth-child(2n + 1) {
    text-align: left;
}

#topic section .grid.cols-3 .thumbnail:nth-child(3n) {
    text-align: right;
}
#topic section .grid.cols-3 .thumbnail:nth-child(3n + 1) {
    text-align: left;
}

#topic section .grid.cols-4 .thumbnail:nth-child(4n) {
    text-align: right;
}

#topic section .grid.cols-4 .thumbnail:nth-child(4n+1) {
    text-align: left;
}

/* ==========================================================================
   Product Layout
   ========================================================================== */
#content{width:965px;}
div.image{margin: auto; display: inline-block; vertical-align: top; width: auto; padding-top: .3rem;}

div.note { margin: auto; display: inline-block; max-width: 13.875rem;} 
div.description{
    display: inline-block; 
    font-size: .875rem; 
    line-height: 1.4; 
    color: #222; 
    margin-top: .2rem;
    min-width: 10rem;
}

a img{border:0;}

div.image img{vertical-align:top;border-width:0;}

.header-inner {
    margin-top: 70px;
}

#topic section#products-services span.free,
#topic section#more-products span.free {
  color: #888;
  font-weight: 400;
  display: inline;
}

#topic section#more-products {
    margin-bottom: 4.6875rem;
}

.product-footer a:link, .product-footer a:visited, .product-footer a:active {color: #dd1100;}
a:hover,a:visited,a:link,a:active{ text-decoration:none!important;}

.product-header{max-width: 95%; margin-bottom: 3rem; display: block; font-size: 1.105rem; line-height: 1.7; font-weight: 300;}
.middle-product-header{max-width: 960px; font-size: 1.445rem; color: #222; margin: 1rem 0 2rem 0; font-weight: 600;}
.product-footer{clear: both; font-size: .9rem; font-weight: 400; color: #636363; padding-bottom: 1.5rem;}
.product-footer a:hover{color: #f57300;}

.product-footer span{padding-bottom: 5px; display: inline-block;}
.product-footer span.text{padding-right: 0.1875rem;}
.dividers{margin: 0 .5rem; margin-bottom: -3px; color: #bfbfbf; border-right: solid 1px #bfbfbf; height: 0.99rem;}



/* ==========================================================================
   tooltip
   ========================================================================== */
.annotation {
    color: #777;
    text-transform: uppercase;
    font-size: 0.875rem;
    position: relative;
}
.icon {
    cursor: pointer;
    display: inline !important;
    position: relative;
    text-align: center;
}
.icon:before {
    border: 1px solid #9d9d9d;
    border-radius: 6px;
    color: #9d9d9d;
    content: '𝑖';
    display: inline-block;
    font-size: 10px;
    height: 13px;
    line-height: 11px;
    margin-left: .18rem;
    width: 13px;
    position: absolute;
    top: 3px;
}
.tooltip {
    background: #fff;
    border: 1px solid #d6d6d6;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .25);
    color: #535353;
    display: none; 
    font-size: 11px;
    left: -8px !important;
    line-height: 1.5;
    min-width: 240px;
    padding: .5rem 1rem;
    position: absolute;
    text-align: left;
    text-transform: none;
    top: 27px !important;
    width: 240px;
    z-index: 2;
}
.tooltip .before {
    border-bottom: 10px solid #d6d6d6;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 0;
    bottom: auto;
    content: '';
    display: inline-block;
    height: 8px;
    left: calc(50% - 4px) !important;
    position: absolute;
    top: -10px;
    width: 8px !important;
}
.tooltip .after {
    border-bottom: 10px solid #fff;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 0;
    bottom: auto;
    content: '';
    display: inline-block;
    height: 8px;
    left: calc(50% - 4px) !important;
    position: absolute;
    top: -9px;
    width: 8px !important;
}
.tooltip-content {
    display: inline-block;
    white-space: nowrap;
}
.icon:hover .tooltiptext {
    visibility: visible;
}



/* ==========================================================================
   responsive breakpoint styles
   ========================================================================== */

/* styles for large screens (1200px)
   ========================================================================== */
@media all and (max-width: 1200px) {
	div.note {max-width: 13rem;}
	h3 {font-size: 0.96475rem;}
	div.description{font-size: .93rem; line-height: 1.7;}
    .icon:before { top: 2px; }
}


/* styles for medium screens (900px)
   ========================================================================== */
@media all and (max-width: 900px) {
    .header-inner {
        margin-top: 1rem;
    }
    #header h1 {
        float: left !important;
        margin-top: 2.5rem;
        max-width: 80%;
    }
    a.section-topics { 
        margin-right: 10px; 
    }
    a.section-topics i.browse-icon {
        position: relative;
        top: 1px;
    }
    .section-topics-list {
        border-radius: 0;
        border-width: 0 0 1px;
        right: 0;
        top: 100%;
        width: 100%;
    }
    .section-topics-list a {
        font-size: 1rem;
    }
    .thumbnail {
        text-align: left !important;
    }
    .thumbnail a {
        max-width: 100%;
    }
    .thumbnail {
        display: inline-block;
        width: 49% !important;
        clear: none !important;
        float: none;
        vertical-align: top;
    }
    div.note {max-width: 80%;} 
    .icon:before { top: 1px; }
}


/* styles for small screens (600px)
   ========================================================================== */
@media all and (max-width: 600px) {
    .thumbnail {
        display: inline-block;
        width: 100% !important;
        clear: none !important;
        float: none;
        vertical-align: top;
    }
    .header-inner { 
        margin-top: 1.5rem;
    }
    #header h1 {
        max-width: 100%;
    }
    .home .page-padding { 
        padding: 0 1rem 0 1rem; 
        } 
    .home .heading {
        width: 22rem;
    }
    .product-header {
        padding-top: 1.2rem;    
    }
    .featured-course-slides img {
        width: 98%;
    }
    h3 {
        font-size: 1.125rem;
        display: inline-block;
        width: 100%;
    }
    div.description {
        font-size: 1rem;
    }
    #topic .grid.cols-3 .thumbnail {
        display: inline-block;
        width: 100% !important;
        clear: none !important;
        float: none;
        vertical-align: top;
    }
    #topic main section { 
        position: relative; 
        padding: 0rem 0rem 0 0; 
        }
    #topic section .cols-3.thumbnails a {
        font-size: 1rem;
    }
    #topic section .thumbnails a span {
        width:8rem;
    }
    #topic section .thumbnails a span.long-text {
        width: 18rem; 
    }
    a.button {
        margin-bottom: 2.5rem;
        float: left;        
    }
    .icon:before { top: 0px; }
}


/* styles for minimum supported screen width (320px)
   ========================================================================== */
@media all and (max-width: 320px) {
   #topic main section {
        position: relative;
        padding: 1rem 3rem 0 0;
    }
}


/* printer styles
   ========================================================================== */
@media print {}
