﻿.smart-listing h1 {
    background: #990000;
    padding: 5px;
    font-size: 16px;
    line-height: 1.4;
    display: inline;
    color: #FFF;
}
.tags_listing .tagmore {
    text-align: center;
    padding-top: 10px;
}
/*.btn-light {
    color: #2196f3;
}*/
.relative-keywords .list-inline {
    margin: 5px 0;
    padding-left: 5px;
}
    .relative-keywords .list-inline a {
        color: #2196f3;
        text-decoration:underline;
    }
 a.active {
    color: #0095da;
}
/*body {
    background-image: url("https://www.ccyp.com/assets/img/home/repeatgray.png");
    background-repeat: repeat;
}
.header-container {
    width: 1200px;
    max-width: none !important;
    background-color: #F4F4F2;
    margin-right: auto;
    margin-left: auto;
}*/
.list-category h5 {
    font-size: 16px;
    margin-top: 8px;
    margin-bottom: 8px;
}

.list-category h6 {
    color: #999;
}

.list-category > tbody > tr {
    background-color: transparent;
    transition: background-color .15s ease-in-out;
}

.list-category > tbody td:hover:not(.cind-row-last) {
    background-color: #fff;
}


.list-category a, a:hover {
    text-decoration: none;
}

.fa-map-marker {
    color: #fbc826;
}

.block-title {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.4;
    background: url(/assets/img/block-divider-red.png) repeat-x center center;
}

.page-title-navigation {
    margin-top: 15px;
}

.block-title2 {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.4;
    background: url(/assets/img/block-divider-yellow.png) repeat-x center center;
}

.regular-listing span {
    background: #ffdd00;
    padding: 5px;
}

#ccyp_list .nav-tabs {
    margin-bottom: 20px;
}
#ccyp_list a.nav-link.active {
    color: #0095da;
    font-weight: bold;
}
#ccyp_smart_list a.title, .adv-item a.title {
    font-size: 16px;
    color: #ff5e5e;
    font-weight: bold;
    text-decoration: underline;
}


a.title-sub {
    font-size: 14px;
}

#ccyp_smart_list a.title-sub, #ccyp_regular_list .yp a.title-sub, #ccyp_regular_list .cyp a.title-sub {
    color: #ff5e5e;
    font-weight: normal;
}

#ccyp_smart_list .banner-panel img {
    margin-left: -15px;
    margin-bottom: 5px;
}

#ccyp_regular_list a.title {
    font-size: 16px;
    text-decoration:underline;
}

.well-small h4 {
    font-size: 17px;
    font-weight: 700;
}

.body-right {
    border-bottom: 1px solid #e5e5e5;
}

.media-heading a {
    color: #ff0000;
}

.page-numbers {
    padding-bottom: 30px;
}

.certificate img {
    width: 30px;
}

.tags_title {
    padding-top: 4px;
}

/* One breadcrumb presentation for every Subject route.  Some migrated views
   use a direct nav while older partials still emit a Bootstrap ol/ul. */
.public-breadcrumb,
.public-breadcrumb .breadcrumb,
.subject-breadcrumb-toolbar .breadcrumb,
.subject-detail-breadcrumb {
    align-items: center;
    background: transparent;
    color: #222;
    display: flex;
    flex-wrap: wrap;
    font-size: 16px;
    font-weight: 400;
    gap: 6px;
    line-height: 1.4;
    list-style: none;
    margin: 8px 0;
    padding: 0 2px;
}

.public-breadcrumb .breadcrumb {
    margin: 0;
}

.public-breadcrumb a,
.public-breadcrumb span,
.public-breadcrumb li,
.subject-breadcrumb-toolbar .breadcrumb a,
.subject-breadcrumb-toolbar .breadcrumb li,
.subject-detail-breadcrumb a,
.subject-detail-breadcrumb span {
    color: #222;
    font-size: inherit;
    font-weight: 400;
    line-height: inherit;
}

.public-breadcrumb .breadcrumb-item + .breadcrumb-item {
    padding-left: 0;
}

.public-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: #666;
    content: "/";
    padding-right: 6px;
}

.subject-breadcrumb-toolbar {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

/* The legacy public layout also contains a few non-Subject pages that still
   emit a plain Bootstrap breadcrumb.  Normalize their typography as well so
   an active item never becomes unexpectedly bold. */
.legacy-public-body .breadcrumb,
.legacy-public-body .breadcrumb a,
.legacy-public-body .breadcrumb span,
.legacy-public-body .breadcrumb li,
.legacy-public-body .breadcrumb .active,
.legacy-public-body .breadcrumb .breadcrumb-item.active {
    font-weight: 400;
}

.gallery-item-ccyp {
    width: 150px;
    height: 150px;
    overflow: hidden;
    margin-bottom: 10px;
}

    .gallery-item-ccyp img {
        width: 150px;
    }

.tags_listing label, .tags_listing .taglist {
    display: inline-block;
}

.gallery-cpn {
    margin-top: 10px;
    margin-bottom: 10px;
}

.list-misc .fa {
    color: #212529;
}
.gallery .list-misc .gallery   {
    color: #ff5e5e !important;
    font-weight:bold;
}
    .gallery .list-misc .gallery .fa {
        color: #ff5e5e;
        font-weight: bold;
    }
.syp .list-misc .syp {
    color: #ff5e5e !important;
    font-weight: bold;
}

    .syp .list-misc .syp .fa {
        color: #ff5e5e;
        font-weight: bold;
    }
.video .list-misc .video {
    color: #ff5e5e !important;
    font-weight: bold;
}

    .video .list-misc .video .fa {
        color: #ff5e5e;
        font-weight: bold;
    }
.event .list-misc .event {
    color: #ff5e5e !important;
    font-weight:bold;
}

    .event .list-misc .event .fa {
        color: #ff5e5e;
        font-weight: bold;
    }

.fa-globe {
    color: #212529;
}
.ccyp-listing {
    border-top: 3px solid #fbc826;
    padding: 15px;
    background-color: #f4f5f6;
}
.event-avater-container {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    border-radius: 50%;
    overflow: hidden;
}

    .event-avater-container img {
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        width: 100%;
    }

.event-avater-name {
    text-align: center;
    padding: 5px 0;
    font-weight: bold;
    font-size: 16px;
}

.event-avater-wrap {
    width: 50%;
    margin-right: auto;
    margin-left: auto;
}

.event-avater-item {
    text-align: center;
}
.ccyp-listing a.common-tag {
    color: #000;
    border: solid 2px #ffcd0d;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    font-size: 15px;
}
@media (min-width: 768px) {
    .gallery-item-ccyp {
        width: 230px;
        height: 230px;
        overflow: hidden;
        margin-bottom: 10px;
    }

        .gallery-item-ccyp img {
            width: 230px;
        }
}

@media (min-width: 992px) {
}

@media (min-width: 1200px) {
    .gallery-item-ccyp {
        width: 170px;
        height: 170px;
        overflow: hidden;
        margin-bottom: 30px;
    }

        .gallery-item-ccyp img {
            width: 170px;
        }
}

a.title, a.title-sub {
    display: block;
}

/* Ranking keeps the legacy tab/list appearance while remaining usable at 390px. */
.subject-ranking-legacy .ranking-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0;
}
.subject-ranking-legacy .ranking-tabs > li > a,
.subject-ranking-legacy .ranking-tabs > li > button {
    min-height: 40px;
    padding: 0.65rem 0.9rem;
}
.subject-ranking-legacy .tab-content {
    min-width: 0;
}
.subject-ranking-legacy .block-list-item {
    margin-left: 0;
    margin-right: 0;
}
.subject-ranking-legacy .block-list-item .space {
    overflow-wrap: anywhere;
}
.subject-ranking-legacy .ranking-empty {
    border: 1px solid #e5e7eb;
    color: #6b7280;
    padding: 1.25rem;
    text-align: center;
}
.subject-side-banner { margin-bottom: 25px; text-align: center; }
.subject-side-banner img { display: block; width: 100%; max-width: 100%; height: auto; }

@media only screen and (max-width: 768px) {
    /* Old mobile breadcrumb: 14px text, 12px vertical padding, 8px item spacing. */
    .legacy-public-body .breadcrumb {
        font-size: 14px;
        line-height: 1.5;
    }

    .public-breadcrumb,
    .public-breadcrumb .breadcrumb,
    .subject-breadcrumb-toolbar .breadcrumb,
    .subject-detail-breadcrumb {
        font-size: 14px;
        line-height: 1.5;
        margin: 0;
        padding: 12px 0;
        gap: 0;
    }

    .public-breadcrumb > span {
        margin: 0 4px 0 8px;
    }

    .public-breadcrumb .breadcrumb {
        gap: 0;
    }

    .public-breadcrumb .breadcrumb-item + .breadcrumb-item {
        padding-left: 8px;
    }

    .public-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
        padding-right: 8px;
    }

    .public-breadcrumb .breadcrumb-item.active,
    .public-breadcrumb .breadcrumb-item.active a {
        font-weight: 700;
        color: #1e2328;
    }

    .public-breadcrumb > a:first-child,
    .public-breadcrumb .breadcrumb li:first-child a,
    .subject-detail-breadcrumb > a:first-child {
        font-size: 0;
    }

    .public-breadcrumb > a:first-child::before,
    .public-breadcrumb .breadcrumb li:first-child a::before,
    .subject-detail-breadcrumb > a:first-child::before {
        color: #222;
        content: "\f015";
        font-family: FontAwesome;
        font-size: 14px;
        margin-right: 2px;
    }

    .subject-ranking-legacy .ranking-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .subject-ranking-legacy .ranking-tabs > li {
        flex: 0 0 auto;
    }
    .subject-ranking-legacy .ranking-tabs > li > a,
    .subject-ranking-legacy .ranking-tabs > li > button {
        display: block;
    }
}

@media only screen and (max-width: 768px) {
    .subject-breadcrumb-toolbar {
        display: block;
        margin-top: 8px;
    }
    .pindex-mobile-search { margin: 8px 0 12px; }
    .pindex-mobile-search #ccyp_search { display: flex; flex-wrap: nowrap; align-items: center; width: 100%; margin: 0; }
    .pindex-mobile-search #ccyp_search.active { display: flex; flex-wrap: wrap; align-items: center; width: 100%; margin: 0; }
    .pindex-mobile-search #ccyp_search .homeonly,
    .pindex-mobile-search #ccyp_search .main-location-group { display: none !important; }
    .pindex-mobile-search #ccyp_search.active .main-location-group { display: block !important; flex: 0 0 100%; width: 100% !important; margin: 6px 0 0; padding: 0; order: 3; }
    .pindex-mobile-search #ccyp_search.active .main-location-group .form-control { width: 100%; height: 46px; font-size: 18px; }
    .pindex-mobile-search #ccyp_search .main-keyword-group,
    .pindex-mobile-search #ccyp_search.active .main-keyword-group { flex: 1 1 auto; width: auto !important; min-width: 0; margin-left: 0; padding: 0; }
    .pindex-mobile-search #ccyp_search .main-keyword-group .form-control { width: 100%; height: 46px; font-size: 18px; }
    .pindex-mobile-search #ccyp_search .main-search-group { flex: 0 0 54px; padding: 0 0 0 8px; }
    .pindex-mobile-search #ccyp_search .main-search-btn { width: 54px; height: 46px; font-size: 28px; color: #606b78; background: transparent; border: 0; }

    .subject-list-mobile-search { margin: 8px 0 2px; }
    .subject-list-mobile-search #ccyp_search { display: flex; flex-wrap: nowrap; align-items: center; width: 100%; margin: 0; }
    .subject-list-mobile-search #ccyp_search.active { flex-wrap: wrap; }
    .subject-list-mobile-search #ccyp_search .homeonly,
    .subject-list-mobile-search #ccyp_search .main-location-group { display: none !important; }
    .subject-list-mobile-search #ccyp_search.active .main-location-group { display: block !important; flex: 0 0 100%; width: 100% !important; margin: 6px 0 0; padding: 0; order: 3; }
    .subject-list-mobile-search #ccyp_search.active .main-location-group .form-control,
    .subject-list-mobile-search #ccyp_search .main-keyword-group .form-control { width: 100%; height: 46px; font-size: 18px; }
    .subject-list-mobile-search #ccyp_search .main-keyword-group { flex: 1 1 auto; width: auto !important; min-width: 0; margin-left: 0; padding: 0; }
    .subject-list-mobile-search #ccyp_search .main-search-group { flex: 0 0 54px; padding: 0 0 0 8px; }
    .subject-list-mobile-search #ccyp_search .main-search-btn { width: 54px; height: 46px; font-size: 28px; color: #606b78; background: transparent; border: 0; }


    /* Keep Pindex F-zone mobile banners structurally and dimensionally identical to the legacy #ffbanner partial. */
    .legacy-fzone-banner .d-md-none #ffbanner { min-height: 65px; height: auto; margin-bottom: 8px; }
    .legacy-fzone-banner .d-md-none #ffbanner img { width: 48% !important; display: inline-block !important; height: auto; max-width: none; }
    .subject-mobile-banner-zone .carousel-item a,
    .subject-mobile-banner-zone .carousel-item img { display: block; width: 100%; max-width: 100%; height: auto; }

    ul.subject-filter {
        white-space: nowrap;
        overflow: hidden;
        overflow-x: scroll;
        overflow-y: hidden;
        display: block;
    }

        ul.subject-filter li.nav-item {
            display: inline-block;
        }
        ul.subject-filter .nav-link { 
            padding: .5rem .5rem;
        }
    body {
        background-color: #fff;
    }

    .topic-list li {
        white-space: normal;
    }

    .block-list-item .btn-link .fa {
        margin-left: 5px;
    }

    .page-numbers {
        padding-bottom: 10px;
    }

    .gallery-item-ccyp {
        width: 100%;
        height: auto;
    }

    .list-desc {
        display: none;
    }

    .gallery-item-ccyp img {
        width: 100%;
        height: auto;
    }

    .gallery-cpn {
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .list-category a.btn-link {
        text-decoration: underline;
        font-size: 16px;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
    }

    #ccyp_smart_list .banner-panel {
        text-align: center;
    }

        #ccyp_smart_list .banner-panel img {
            margin: 0;
            padding: 0;
            width: 220px;
            height: auto;
        }

    .slip {
        background-color: transparent;
        border: none;
        padding: 0;
    }

    .adv-search #ccyp_regular_list, .adv-search #ccyp_smart_list {
        padding-right: 15px;
        padding-left: 15px;
    }

    .listing-avater-container {
        position: relative;
        width: 100%;
        padding-top: 130%; /* 1:1 Aspect Ratio */
        border-radius: 5%;
        overflow: hidden;
    }

        .listing-avater-container img {
            position: absolute;
            top: 0;
            left: 0;
            bottom: 0;
            right: 0;
            width: 100% !important;
        }

    .listing-avater-wrap {
        width: 100%;
    }

    .list-data-item {
        white-space: nowrap;
        overflow: hidden; 
        overflow-x: scroll;
        overflow-y: hidden;
    }

     

    a.title-sub {
        font-size: 10px;
    }

    address {
        color: #777777;
    }

    #ccyp_smart_list a.title, .adv-item a.title {
     font-size:16px;
    }

    #ccyp_smart_list a.title-sub, #ccyp_regular_list .yp a.title-sub, #ccyp_regular_list .cyp a.title-sub {
        color: #000;
        font-weight: normal;
    }
    .list-data-item.full-address{text-overflow:ellipsis;}
    .full-address {
        font-size: 12px;
    }
    #ffbanner{min-height:65px;height:auto;margin-bottom:8px;}
    .block-item {
        padding: 0 0 10px 0;
    }
    .list-data-phone{margin:5px 0;display:block;}
    #ccyp_smart_list .btn-light, #ccyp_regular_list .btn-light {
        color: #2196f3;
        background-color: #fff;
        padding: 0 5px;
    }
    .list-misc a {
        margin-right: 5px;
    }
    .list-misc{margin-top:5px;}
    .btn-sm {
        padding: .15rem .1rem;
    }

    .home-title h2 {
        color: #000;
        font-weight: normal;
    }
    .home-title-mark.smart {
        background-color: #fbc826;
    }
    .home-title { 
        margin-bottom: 7px;
    }

    .list-misc .fa {
        color: #2196f3;
    }
    #ffbanner img{width:48% !important; display:inline-block !important;}
}
