/* CUHK PPRC Main Styles */

/* Poppins Font Faces */
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-Thin.ttf') format('truetype'); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-ThinItalic.ttf') format('truetype'); font-weight: 100; font-style: italic; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-ExtraLight.ttf') format('truetype'); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-ExtraLightItalic.ttf') format('truetype'); font-weight: 200; font-style: italic; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-Light.ttf') format('truetype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-LightItalic.ttf') format('truetype'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-Italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-MediumItalic.ttf') format('truetype'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-SemiBold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-SemiBoldItalic.ttf') format('truetype'); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-BoldItalic.ttf') format('truetype'); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-ExtraBold.ttf') format('truetype'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-ExtraBoldItalic.ttf') format('truetype'); font-weight: 800; font-style: italic; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-Black.ttf') format('truetype'); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-BlackItalic.ttf') format('truetype'); font-weight: 900; font-style: italic; font-display: swap; }

/* Alegreya Sans SC Font */
@font-face { font-family: 'Alegreya Sans SC'; src: url('../fonts/AlegreyaSansSC-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }

/* Podkova Font */
@font-face { font-family: 'Podkova'; src: url('../fonts/Podkova-Variable.ttf') format('truetype'); font-weight: 400 800; font-style: normal; font-display: swap; }

*:not(td, th), *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Cells excluded from the padding reset so the cellpadding attribute on
   rich-text tables (set in the editor) is honored. Keep border-box. */
td, th {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 36px;
    letter-spacing: 0;
    color: #3D3D3D;
}

.container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 58px;
}

/* Block spacing */
[class*="wp-block-lazyblock-"] + [class*="wp-block-lazyblock-"] {
    margin-top: 150px;
}

.wp-block-lazyblock-section-heading + [class*="wp-block-lazyblock-"] {
    margin-top: 50px;
}

.wp-block-lazyblock-accordion + .wp-block-lazyblock-accordion {
    margin-top: 0;
}

.wp-block-lazyblock-people-grid + .wp-block-lazyblock-people-grid,
.wp-block-lazyblock-people-grid + .wp-block-lazyblock-people-grid-2-columns,
.wp-block-lazyblock-people-grid-2-columns + .wp-block-lazyblock-people-grid,
.wp-block-lazyblock-people-grid-2-columns + .wp-block-lazyblock-people-grid-2-columns {
    margin-top: 80px;
}

.section {
    padding: 150px 0;
}

.section--gray {
    background-color: #F8F8F8;
}

.section--gray-pattern {
    background-image: url('/wp-content/uploads/2026/03/bg-gray.png');
    background-size: 125% auto;
    background-position: top center;
    background-repeat: repeat-y;
}

img {
    max-width: 100%;
    height: auto;
}

/* List Styles */
ol, ul {
    margin: 0;
    padding-left: 1.5em;
}

ol {
    list-style-type: decimal;
}

ul {
    list-style-type: disc;
}

ol li, ul li {
    padding-left: 5px;
}

p + p {
    margin-top: 1em;
}

/* Default Heading Styles */
h1 { font-size: 64px; line-height: 80px; font-weight: 400; }
h2 { font-size: 46px; line-height: 56px; font-weight: 400; }
h3, h5, h6 { font-size: 20px; line-height: 36px; font-weight: 400; }
h4 { font-size: 26px; line-height: 38px; font-weight: 400; }

.wp-block-heading {
    margin-bottom: 0.5em;
}

/* Typography Utility Classes — Desktop */
.text-h1 { font-size: 64px; line-height: auto; font-weight: 400; }
.text-h1-b { font-size: 78px; line-height: 90px; font-weight: 500; }
.text-h2 { font-size: 46px; line-height: 56px; font-weight: 400; }
.text-h3 { font-size: 20px; line-height: 36px; font-weight: 400; }
.text-h3-m { font-size: 24px; line-height: 42px; font-weight: 500; }
.text-h3-sb { font-size: 24px; line-height: 38px; font-weight: 600; }
.text-h4 { font-size: 26px; line-height: 38px; font-weight: 400; }
.text-button { font-size: 21px; line-height: 40px; font-weight: 500; }
.text-date { font-size: 18px; line-height: 30px; font-weight: 400; }
.text-footer { font-size: 24px; line-height: auto; font-weight: 700; }
.text-header { font-size: 26px; line-height: auto; font-weight: 400; }

/* Tablet: 769px - 1280px */
@media (max-width: 1280px) {
    body {
        font-size: 21px;
        line-height: 36px;
    }
    [class*="wp-block-lazyblock-"] + [class*="wp-block-lazyblock-"] {
        margin-top: 100px;
    }
    .wp-block-lazyblock-section-heading + [class*="wp-block-lazyblock-"] {
        margin-top: 50px;
    }
    .wp-block-lazyblock-accordion + .wp-block-lazyblock-accordion {
        margin-top: 0;
    }
    .wp-block-lazyblock-people-grid + .wp-block-lazyblock-people-grid,
    .wp-block-lazyblock-people-grid + .wp-block-lazyblock-people-grid-2-columns,
    .wp-block-lazyblock-people-grid-2-columns + .wp-block-lazyblock-people-grid,
    .wp-block-lazyblock-people-grid-2-columns + .wp-block-lazyblock-people-grid-2-columns {
        margin-top: 60px;
    }
    h2, .text-h2 { font-size: 44px; line-height: 54px; }
    h3, .text-h3 { font-size: 21px; line-height: 36px; }
    .text-h3-m { font-size: 25px; line-height: 42px; }
    h4, .text-h4 { font-size: 29px; line-height: 36px; }
    .text-date { font-size: 19px; line-height: 30px; }

    .section {
        padding: 100px 0;
    }
}

/* Mobile: <= 768px */
@media (max-width: 768px) {
    body {
        font-size: 21px;
        line-height: 36px;
    }
    .container {
        padding: 0 18px;
    }
    [class*="wp-block-lazyblock-"] + [class*="wp-block-lazyblock-"] {
        margin-top: 80px;
    }
    .wp-block-lazyblock-section-heading + [class*="wp-block-lazyblock-"] {
        margin-top: 50px;
    }
    .wp-block-lazyblock-accordion + .wp-block-lazyblock-accordion {
        margin-top: 0;
    }
    .wp-block-lazyblock-people-grid + .wp-block-lazyblock-people-grid,
    .wp-block-lazyblock-people-grid + .wp-block-lazyblock-people-grid-2-columns,
    .wp-block-lazyblock-people-grid-2-columns + .wp-block-lazyblock-people-grid,
    .wp-block-lazyblock-people-grid-2-columns + .wp-block-lazyblock-people-grid-2-columns {
        margin-top: 100px;
    }
    h2, .text-h2 { font-size: 44px; line-height: 54px; }
    h3, .text-h3 { font-size: 21px; line-height: 36px; }
    .text-h3-m { font-size: 25px; line-height: 42px; }
    h4, .text-h4 { font-size: 29px; line-height: 36px; }
    .text-date { font-size: 19px; line-height: 30px; }
}

/* 404 Page */
.page-404 {
    text-align: center;
    padding: 150px 0;
}

.page-404__title {
    color: #166592;
    margin: 0 0 20px;
}

.page-404__message {
    font-size: 20px;
    line-height: 36px;
    color: #3D3D3D;
    margin: 0 0 40px;
}

.page-404__btn {
    display: inline-block;
    padding: 14px 40px;
    background-color: #166592;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    line-height: 28px;
    transition: background-color 0.3s;
}

.page-404__btn:hover {
    background-color: #124f73;
}
