body {
    color: #002642;
    background-color: #E3E5E4;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.3;
}

.wrapper {
    width: 90%;
}

h1 {
    font-size: 3.2em;
}

h2 {
    font-size: 3em;
}

h3 {
    font-size: 2.4em;
}

h4 {
    font-size: 2em;
}

h5 {
    font-size: 1.8em;
}

h6 {
    font-size: 1.5em;
}

.page-template-page-student-hostels-details-new .header-bottom:before {
    position: absolute;
    display: block;
    content: '';
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.14);
    z-index: 2;
    background: rgb(9, 38, 66);
    background: linear-gradient(180deg, rgba(9, 38, 66, 1) 0%, rgba(9, 38, 66, 0) 70%);
}

.page-title {
    margin-bottom: 40px;
    font-weight: 600;
    overflow: hidden;
}

.page-title h1 {
    display: inline-block;
    position: relative;
    padding-bottom: 20px;
    padding-right: 30px;
    color: #002642;
    font-size: 2.4em;
    text-align: left;
}

.page-title h1:after {
    display: block;
    position: absolute;
    content: '';
    left: 100%;
    bottom: 26px;
    width: 3000px;
    height: 3px;
    background-color: #002642;
}

.page-subtitle h2 {
    font-size: 3.2em;
    font-weight: 700;
}

.content-block {
    padding: 60px 0;
}

.main-menu ul {
    table-layout: auto;
}

.main-menu li {
    text-align: left;
}


/* HOME */

.content-introduction {
    padding: 60px 0 90px 0;
}

.content-introduction p {
    max-width: 670px;
    margin: 0 auto;
    font-size: 2.2em;
}

.grids {
    width: 100%;
    overflow: hidden;
}

.grid {
    display: block;
    position: relative;
    float: left;
    width: 25%;
    height: 0;
    padding: 23px 10px 33% 18px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    cursor: pointer;
}

.grid-title {
    position: relative;
    color: #002642;
    font-size: 2.7em;
    font-weight: 800;
    line-height: 1.16;
    opacity: 1;
    z-index: 2;
    transition: opacity 0.3s ease-in;
}

.grid-more {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 150px;
    height: 0;
    padding-bottom: 150px;
    color: #FFF;
    background-color: #008CEB;
    border-radius: 100%;
    text-transform: uppercase;
    -ms-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.grid-more span {
    position: absolute;
    left: 50%;
    top: 50%;
    margin-top: -3px;
    font-size: 2.7em;
    font-weight: 800;
    text-align: center;
    -ms-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
}

.grid:before {
    position: absolute;
    display: block;
    content: '';
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: rgba(121, 214, 219, 0.72);
    opacity: 1;
    transition: opacity 0.3s ease-in;
}

.content-cols {
    display: inline-block;
    position: relative;
    width: 100%;
    text-align: center;
}

.content-cols:before {
    display: block;
    position: absolute;
    content: '';
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: url('images/student-hostels/home-bg.jpg') no-repeat center 70%;
    background-size: cover;
    opacity: 0.16;
    z-index: -1;
}

.content-cols .content-block-wrapper {
    display: inline-block;
    text-align: left;
}

.content-col {
    position: relative;
    width: 46%;
    z-index: 2;
}

.content-col-1 {
    float: left;
}

.content-col-2 {
    float: right;
}


/* HOSTEL */

.content-color-block {
    position: relative;
    width: 100%;
}

.ccb-image {
    position: absolute;
    display: block;
    left: 0;
    top: 0;
    width: 58%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.ccb-text {
    display: block;
    width: 42%;
    margin-left: 58%;
    background-color: #79D6DB;
}

.ccbr-content {
    padding: 90px 20px;
    vertical-align: middle;
}

.ccbr-content h1 {
    margin-bottom: 40px;
    font-size: 3.2em;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.ccbr-content p {
    max-width: 340px;
    margin: 0 auto;
    font-size: 1.7em;
    text-align: center;
}

.content-gallery {
    padding: 75px 0;
    text-align: center;
}

.page-subtitle {
    margin-bottom: 47px;
    text-align: left;
}

.cg-entries {
    display: inline-block;
    width: 100%;
    max-width: 1015px;
    margin: 0 auto;
}

.cg-entry {
    display: block;
    position: relative;
    float: left;
    top: 0;
    width: 15.7%;
    height: 0;
    margin: 0 1.16% 1.16% 0;
    padding-bottom: 12%;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    transition: top 0.3s ease-out;
}

.cg-entry:hover {
    top: -10px;
    transition: top 0.3s ease-in;
}

.cg-entry:nth-child(6n+6) {
    margin-right: 0;
}


/* NEWS */

.ct-entry {
    display: block;
    margin-bottom: 40px;
    color: #002642;
    font-size: 2em;
    font-weight: 700;
}

.ct-entry:hover {
    color: #508eec;
}

.news-entry {
    display: block;
    padding-bottom: 40px;
    border-bottom: 1px solid #005F84;
    margin: 0 auto 40px auto;
}

.news-entry:last-child {
    border-bottom: 0;
}

.news-title {
    display: block;
    margin-bottom: 40px;
    color: #002642;
    font-size: 2em;
    font-weight: 700;
}

a.news-title:hover {
    color: #508eec;
}

.news-intro p,
.news-intro li {
    color: #333;
    font-size: 1.6em;
    line-height: 1.4;
}

a.btn.yellow.news-button {
    font-size: 15px;
}

.cndb-block {
    background-color: #FFF;
    border-radius: 15px;
    box-shadow: 7px 7px 7px rgba(0, 0, 0, 0.32);
}

.cnd-top {
    display: table;
    table-layout: fixed;
    width: 100%;
}

.cndt-left {
    display: table-cell;
    width: 29%;
    padding-right: 40px;
    border-right: 3px solid #002642;
    vertical-align: top;
}

.cndt-left h2 {
    margin-bottom: 30px;
    font-size: 2em;
    font-weight: 700;
}

.cndt-share {
    display: inline-block;
    padding: 9px 15px 10px 15px;
    color: #FFF;
    background-color: #002642;
    font-size: 1.6em;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    border-radius: 10px;
}

.cndt-right {
    display: table-cell;
    width: 71%;
    padding-left: 50px;
    vertical-align: top;
}

.content-news-details-2 {
    position: relative;
    background-color: #FFF;
}

.content-news-details-2:before {
    display: block;
    position: absolute;
    content: '';
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: url('images/student-hostels/cnd-bottom-bg.jpg') no-repeat center 70%;
    background-size: cover;
    opacity: 0.3;
    z-index: 1;
}

.cnd-bottom {
    display: table;
    position: relative;
    table-layout: fixed;
    width: 100%;
    z-index: 2;
}

.cndb-left {
    display: table-cell;
    width: 55%;
    padding-right: 40px;
    border-right: 3px solid #002642;
    vertical-align: top;
}

.cndb-right {
    display: table-cell;
    width: 45%;
    padding-left: 40px;
    vertical-align: top;
}

.cndb-title {
    margin-bottom: 40px;
    font-size: 2.8em;
    font-weight: 700;
}

.cndb-file {
    display: block;
    position: relative;
    top: 0;
    padding-left: 60px;
    margin-bottom: 30px;
    color: #002642;
    font-size: 1.9em;
    font-weight: 600;
    transition: top 0.2s ease-out;
}

.cndb-file:hover {
    top: -5px;
    transition: top 0.2s ease-in;
}

.cndb-file:before {
    position: absolute;
    display: block;
    content: '';
    left: 0;
    top: 5px;
    width: 39px;
    height: 39px;
    background: url('images/student-hostels/icon-download@2x.png') no-repeat center center;
    background-size: contain;
}

.cndb-block {
    padding: 30px 40px;
    margin-bottom: 50px;
    background-color: #FFF;
    border-radius: 25px;
    box-shadow: 7px 7px 7px rgba(0, 0, 0, 0.32);
}

.cndbb-row {
    margin-bottom: 20px;
}

.cndbb-label {
    display: block;
    margin-bottom: 3px;
    font-size: 1.5em;
}

.cndbb-text {
    font-size: 1.9em;
    font-weight: 700;
}


/* New style */

.hostel-banner {
    width: 100%;
    padding-bottom: 20%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.hostel-tabs {
    display: flex;
    margin: 2em 0;
}

.tablink {
    display: block;
    width: 100%;
    margin-right: 1%;
    text-align: center;
    background-color: rgba(121, 214, 219);
    padding: 3em 0;
    transition: .2 ease-in-out;
    cursor: pointer;
}

.tablink:hover,
.tablink.active {
    background-color: #092642;
}

.tablink h3 {
    font-size: 1.8em;
    color: #002642;
}

.tablink:hover h3,
.tablink.active h3 {
    color: rgba(121, 214, 219);
}

.tablink:last-child {
    margin-right: 0;
}

.hostel-icon {
    width: 45px;
    height: 45px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 auto 10%;
    cursor: pointer;
}

.tablink:first-child .hostel-icon {
    background-image: url(https://webarchive.lib.cuhk.edu.hk/20230313225436oe_/https://www.uc.cuhk.edu.hk/wp-content/uploads/file-1.png);
}

.tablink:first-child:hover .hostel-icon,
.tablink:first-child.active .hostel-icon {
    background-image: url(https://webarchive.lib.cuhk.edu.hk/20230313225436oe_/https://www.uc.cuhk.edu.hk/wp-content/uploads/file-2.png);
}

.tablink:nth-child(2) .hostel-icon {
    background-image: url(https://webarchive.lib.cuhk.edu.hk/20230313225436oe_/https://www.uc.cuhk.edu.hk/wp-content/uploads/chat-1.png);
}

.tablink:nth-child(2):hover .hostel-icon,
.tablink:nth-child(2).active .hostel-icon {
    background-image: url(https://webarchive.lib.cuhk.edu.hk/20230313225436oe_/https://www.uc.cuhk.edu.hk/wp-content/uploads/chat-2.png);
}

.tablink:nth-child(3) .hostel-icon {
    background-image: url(https://webarchive.lib.cuhk.edu.hk/20230313225436oe_/https://www.uc.cuhk.edu.hk/wp-content/uploads/street-sign-1.png);
}

.tablink:nth-child(3):hover .hostel-icon,
.tablink:nth-child(3).active .hostel-icon {
    background-image: url(https://webarchive.lib.cuhk.edu.hk/20230313225436oe_/https://www.uc.cuhk.edu.hk/wp-content/uploads/street-sign-2.png);
}

.tablink:nth-child(4) .hostel-icon {
    background-image: url(https://webarchive.lib.cuhk.edu.hk/20230313225436oe_/https://www.uc.cuhk.edu.hk/wp-content/uploads/life-1.png);
}

.tablink:nth-child(4):hover .hostel-icon,
.tablink:nth-child(4).active .hostel-icon {
    background-image: url(https://webarchive.lib.cuhk.edu.hk/20230313225436oe_/https://www.uc.cuhk.edu.hk/wp-content/uploads/life-2.png);
}

.tablink:nth-child(5) .hostel-icon {
    background-image: url(https://webarchive.lib.cuhk.edu.hk/20230313225436oe_/https://www.uc.cuhk.edu.hk/wp-content/uploads/megaphone-1.png);
}

.tablink:nth-child(5):hover .hostel-icon,
.tablink:nth-child(5).active .hostel-icon {
    background-image: url(https://webarchive.lib.cuhk.edu.hk/20230313225436oe_/https://www.uc.cuhk.edu.hk/wp-content/uploads/megaphone-2.png);
}

.tabcontents {
    margin: 2em 0 5em;
}

.tabcontent {
    display: none;
}

.tabcontent .wrapper {
    background-color: #Fff;
    padding: 2%;
}

.grid-1-3,
.grid-1-2 {
    overflow: hidden;
}

.grid-1-2 .grid-col {
    display: inline-block;
    width: 49%;
    margin-right: 2%;
    margin-bottom: 2%;
    float: left;
}

.grid-1-3 .grid-col {
    display: inline-block;
    width: 32%;
    margin-right: 2%;
    margin-bottom: 2%;
    float: left;
}

.grid-1-2 .grid-col:nth-child(2n+2),
.grid-1-3 .grid-col:nth-child(3n+3) {
    margin-right: 0;
}

.hib-photo {
    position: relative;
    display: block;
    width: 100%;
    padding-bottom: 75%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    transition: .2 ease-in-out;
}

.hib-photo:hover {
    opacity: .8;
}

.hib-caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    color: #fff;
    background: rgb(0, 0, 0, 0.5);
    /* background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%);*/
    padding: 5px;
    font-size: 1.5em;
    line-height: 1.4;
}

.hostel-table-container {
    margin: 2em 0;
}

.hostel-table {
    display: flex;
    width: 100%;
    background-color: #f8f7f7;
}

.ht-left {
    width: 50%;
}

.ht-right {
    width: 50%;
}

.ht-row {
    width: 100%;
    border: 1px solid #fff;
    font-size: 1.6em;
    padding: 8px;
    text-align: center;
}

.hostel-table:first-child {
    background-color: rgba(121, 214, 219);
    font-weight: bold;
}

.hostel-text {
    margin-bottom: 4em;
}

h3.hostel-subtitle {
    font-size: 2.2em;
    font-weight: bold;
    margin-bottom: 1em;
}

.social-cols {
    display: flex;
    margin: 2em 0;
}

.social-col {
    width: 35px;
    height: 35px;
    margin-right: 10px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    transition: .2 ease-in-out;
}

.social-col:hover {
    transform: scale(1.05);
}

.facebook {
    background-image: url(https://webarchive.lib.cuhk.edu.hk/20230313225436oe_/https://www.uc.cuhk.edu.hk/wp-content/uploads/facebook.png);
}

.instagram {
    background-image: url(https://webarchive.lib.cuhk.edu.hk/20230313225436oe_/https://www.uc.cuhk.edu.hk/wp-content/uploads/instagram.png);
}

.wm-blocks {
    overflow: hidden;
    margin-bottom: 2em;
}

.wm-text {
    display: inline-block;
    width: 70%;
    margin-left: 2%;
    vertical-align: middle;
}

.wm-photo {
    display: inline-block;
    width: 27%;
    vertical-align: middle;
}

.wm-photo img {
    box-shadow: 0 3px 9px #b9b9b9;
}

.carousel-container {
    position: relative;
}

.carousel-slider-static {
    display: flex;
}

.carousel-slider-static .carousel-slide {
    width: 49%;
}
.carousel-slider-static .carousel-slide:first-child{
    margin-right:2%;
}
#hostel-facilities,
#life,
#warden-message,
#introduction {
    opacity: 0;
    height: 0;
    overflow: hidden;
}

#hostel-facilities.active,
#life.active,
#introduction.active,
#warden-message.active {
    opacity: 1;
    height: auto;
    overflow: inherit;
}

.bx-controls-direction {
    width: 100%;
}

.bx-wrapper .bx-controls-direction a {
    position: absolute;
    color: #092642;
    font-size: 2em;
    width: 45px;
    height: 45px;
    background-image: url(images/slide-arrow-sprite@2x.png);
    background-size: 45px;
    background-repeat: no-repeat;
}

.bx-wrapper .bx-controls-direction a.bx-prev {
    left: 0;
    top: 50%;
    background-position: left 1px;
}

.bx-wrapper .bx-controls-direction a:hover {
    opacity: .7;
}

.bx-wrapper .bx-controls-direction a.bx-next {
    right: 0;
    top: 50%;
    background-position: bottom;
}

.page-template-page-student-hostels-details-new .header {
    padding-bottom: 25%;
    width: 100%;
    height: 0;
}

.hdb-right-mb {
    display: none;
}

.page-template-page-student-hostels-details-new .header-bottom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    z-index: 1;
    background-color: #e3e5e4;
    background-color: #79d6db;
}

.hostel-details-banner {
    display: flex;
    width: 100%;
    height: 100%;
    background-image: url(images/hostel-banner-bg@2x.jpg);
    background-size: contain;
    background-position: left;
    background-repeat: no-repeat;
}

.hdb-left {
    position: absolute;
    width: 50%;
    max-width: 600px;
    margin: auto;
    right: 50%;
    height: 100%;
    background-position: right;
    z-index: 2;
}

.hdb-left .site-title {
    position: absolute;
    top: 60%;
    width: 100%;
    right: 0;
    padding-right: 30px;
    line-height: 1.2;
}

.hdb-right {
    position: absolute;
    right: 0;
    width: 50%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-position: right top;
    background-image: url(https://webarchive.lib.cuhk.edu.hk/20230313225436oe_/https://www.uc.cuhk.edu.hk/wp-content/uploads/facilities/BH-aspect-ratio-100-40.jpg);
    z-index: 1;
}

.icon-male {
    display: block;
    width: 40px;
    height: 40px;
    background-image: url(images/male-1@2x.png);
    background-size: 40px;
    background-repeat: no-repeat;
    margin: auto;
}

.icon-female {
    display: block;
    width: 40px;
    height: 40px;
    background-image: url(images/female-1@2x.png);
    background-size: 40px;
    background-repeat: no-repeat;
    margin: auto;
}

.cs-photo {
    display: block;
    background-position: center;
    background-size: auto 100%;
    background-repeat: no-repeat;
    width: 100%;
    padding-bottom: 67%;
    background-color: #f5f5f5;
}
.carousel-slider-static .carousel-slide{
    position: relative;
}
@media (max-width: 1500px) {
    .hdb-left .site-title {
        top: 70%;
        font-size: 4em;
    }
    .header-top {
        padding: 25px 0;
    }
}

@media (max-width: 1200px) {
    .hdb-left .site-title {
        top: 79%;
        font-size: 3em;
    }
    .ccbr-content h1,
    .page-title h1 {
        font-size: 2.4em;
    }
    .page-subtitle h2 {
        font-size: 2.2em;
    }
    .main-menu li a {
        font-size: 1.7em;
    }
    .content-introduction p {
        font-size: 1.8em;
    }
    .content-block {
        padding: 30px 0;
    }
    .content-col {
        width: 48%;
    }
    .page-subtitle {
        margin-bottom: 27px;
    }
    .grid-more {
        width: 120px;
        padding-bottom: 120px;
    }
    .grid-more span {
        font-size: 2.2em;
    }
    .hdb-left .site-title {
        top: 70%;
    }
}

@media (max-width: 1024px) {
    .page-template-page-student-hostels-details-new .header {
        padding-bottom: 35%;
    }
    .hdb-right-pc {
        display: none;
    }
    .hdb-right-mb {
        display: inherit;
    }
    .ccbr-content h1,
    .page-title h1 {
        font-size: 2.2em;
    }
    .page-subtitle h2 {
        font-size: 2em;
    }
    .grid-title {
        font-size: 2.1em;
    }
    .content-introduction {
        padding: 30px 0 45px 0;
    }
    .page-title {
        margin-bottom: 10px;
    }
    .main-menu li {
        display: inline-block;
        width: auto;
        margin-bottom: 15px;
        /* width: 32%;
        height: 23px;
        border-right: 0;
        border-left: 2px solid #FFF;
        margin-bottom: 20px;*/
    }
    .main-menu li {
        padding: 0 15px;
    }
    .main-menu li a {
        font-size: 1.6em;
    }
    .main-menu li a br {
        display: inline;
        content: '';
        padding-left: 5px;
        clear: none;
    }
    .news-title {
        margin-bottom: 20px;
    }
    .tabcontents .grid-1-3 .grid-col:nth-child(3n+3) {
        margin-right: 2%;
    }
    .tabcontents .grid-1-3 .grid-col {
        width: 49%;
    }
    .tabcontents .grid-1-3 .grid-col:nth-child(2n+2) {
        margin-right: 0;
    }
}

@media (min-width: 769px) {
    .grid:hover:before {
        opacity: 0;
        transition: opacity 0.3s ease-out;
    }
    .grid:hover .grid-title {
        opacity: 0;
        transition: opacity 0.3s ease-out;
    }
    .grid:hover .grid-more {
        opacity: 1;
        transition: opacity 0.3s ease-in;
    }
}

@media (max-width: 768px) {
    .ccbr-content h1,
    .page-title h1 {
        font-size: 2em;
    }
    .page-title h1 {
        padding-right: 20px;
    }
    .ccbr-content h1 {
        margin-bottom: 25px;
        text-align: left;
    }
    .page-subtitle h2 {
        font-size: 1.8em;
    }
    p,
    .content-introduction p {
        font-size: 1.7em;
        text-align: left;
    }
    .news-title {
        font-size: 1.8em;
    }
    .tab .col12 div.news-contact-heading,
    .news-contact-heading {
        font-size: 1.6em;
    }
    .main-menu-button {
        background-color: #00BDC7;
    }
    .main-menu li {
        display: block;
        width: 100%;
        height: auto;
        border: 0;
        margin: 0 auto 20px auto;
        text-align: center;
    }
    .main-menu li a {
        margin: 0 auto;
    }
    .content-col {
        float: none;
        width: 100%;
    }
    .content-col-1 {
        margin-bottom: 1.7em;
    }
    .content-block {
        padding: 30px 0;
    }
    .content-block.content-introductio n br {
        display: none;
    }
    .grid {
        width: 50%;
    }
    .grid-title {
        font-size: 2em;
    }
    .ccbr-content {
        padding: 50px 20px;
    }
    .ccb-text {
        width: 100%;
        margin: 0;
    }
    .ccbr-content p {
        max-width: 700px;
        text-align: left;
    }
    .ccb-image {
        position: static;
        width: 100%;
        height: 0;
        padding-bottom: 50%;
    }
    .cg-entry {
        width: 23.5%;
        padding-bottom: 18%;
        margin: 0 2% 2% 0;
        transition: none;
    }
    .cg-entry:nth-child(6n+6) {
        margin-right: 2%;
    }
    .cg-entry:nth-child(4n+4) {
        margin-right: 0;
    }
    .cg-entry:hover {
        top: 0;
        transition: none;
    }
    .hostel-icon {
        width: 35px;
        height: 35px;
    }
    .tablink h3 {
        font-size: 1.5em;
    }
    .wm-photo {
        width: 37%;
        vertical-align: top;
    }
    .wm-text {
        width: 60%;
    }
    .hdb-left .site-title {
        top: 50%;
    }
}

@media (max-width: 600px) {
    .grid-more {
        width: 100px;
        padding-bottom: 100px;
    }
    .grid-more span {
        margin-top: 0;
        font-size: 1.8em;
    }
    .grid-1-3 .grid-col,
    .grid-1-3 .grid-col:nth-child(3n+3),
    .tabs-1-3 .grid-col,
    .tabs-1-3 .grid-col:nth-child(3n+3),
    .grid-1-2 .grid-col {
        width: 100%;
        margin-right: 0;
    }
    .hostel-tabs {
        display: block;
        overflow: hidden;
    }
    .hostel-icon {
        margin: 0 auto 10px;
    }
    .tablink {
        display: inline-block;
        width: 50%;
        margin: 0;
        padding: 2em 0;
        border: 1px solid #e3e5e4;
        float: left;
    }
    .tablink {
        min-height: 126px;
        padding: 2em 0.5em;
    }
}

@media (max-width: 450px) {
    .grid-title {
        font-size: 1.8em;
    }
    .header:before {
        background: transparent;
    }
    .hdb-left .site-title {
        font-size: 1.8em;
        padding-right: 0;
        padding-left: 0;
        line-height: 1.2;
    }
}

@media (max-width: 400px) {
    p,
    .content-introduction p,
    .ccbr-content p,
    .news-intro p,
    .news-intro li {
        font-size: 1.4em;
    }
    .ccbr-content h1,
    .page-title h1 {
        font-size: 1.8em;
    }
    .page-subtitle h2 {
        font-size: 1.6em;
    }
    .news-title {
        font-size: 1.6em;
    }
    .tab .col12 div.news-contact-heading,
    .news-contact-heading {
        font-size: 1.4em;
    }
    .tab .col12 div.news-contact-name,
    .tab .col12 div.news-contact-phone,
    .tab .col12 div.news-contact-email,
    .news-contact-name,
    .news-contact-phone,
    .news-contact-email {
        font-size: 1.3em;
    }
    .ccbr-content {
        padding: 30px 20px;
    }
    .grid {
        width: 100%;
    }
    .grid-title br {
        display: inline;
        content: '';
        padding-left: 0;
        clear: none;
    }
    .grid-more {
        width: 86px;
        height: 86px;
        padding-bottom: 0;
    }
    .grid-more span {
        margin-top: 0;
        font-size: 1.8em;
    }
}

@media (max-width:376px) {
    .page-template-page-student-hostels-details-new .header {
        padding-bottom: 102%;
    }
    .hostel-details-banner {
        display: block;
        background-image: none;
        background-color: #e3e5e4;
    }
    .hdb-left {
        position: relative;
        right: unset;
        width: 100%;
        height: auto;
        margin: auto;
        padding: 10px;
        padding-top: 55px;
        background-image: url(images/hostel-banner-bg@2x.jpg);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    .hdb-left .site-title {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        height: auto;
    }
    .hdb-right {
        position: relative;
        width: 100%;
        height: auto;
        background-position: center;
        padding-bottom: 75%;
    }
}
