/*
Theme Name: TNB YTN Divi Child
Description: Child theme for TNB YTN Portal
Author: TNB YTN
Template: Divi
Version: 1.0.1
Text Domain: tnb-ytn-divi-child
*/

/*
 * Add project-specific CSS below.
 * Divi loads this child stylesheet automatically when the child theme is active.
 */


/* Global header created in Divi Theme Builder. */
.et-l--header .et_pb_section {
    background-color: #fff;
    padding: 15px 0;
}

/* Keep the editable Global Header visible while the page scrolls. */
.et-l--header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 9999;
}

body.admin-bar .et-l--header {
    top: 32px;
}
}

/* Desktop submenu for the editable Divi Menu module. */
@media (min-width: 981px) {
    .et-l--header .et_pb_menu .et-menu-nav > ul > li > ul.sub-menu {
        background: #fff;
        border-top: 3px solid #f44336;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
        min-width: 220px;
        padding: 8px 0;
    }

    .et-l--header .et_pb_menu .et-menu-nav > ul > li > ul.sub-menu a {
        color: #555;
        display: block;
        font-family: 'tenaga', Arial, sans-serif;
        font-size: 15px;
        line-height: 1.25;
        padding: 11px 20px;
        width: 100%;
    }

    .et-l--header .et_pb_menu .et-menu-nav > ul > li > ul.sub-menu a:hover,
    .et-l--header .et_pb_menu .et-menu-nav > ul > li > ul.sub-menu .current-menu-item > a {
        background: #f44336;
        color: #fff !important;
        opacity: 1;
    }
}

/* Exceptional: Divi Image modules use the original HTML sprite sheets. */

.ytn-exceptional-section.et_pb_section:has(img[src*="sprite-b.png"]) > .et_pb_row {
    max-width: 1200px;
}

/* .ytn-exceptional-section.et_pb_section:has(img[src*="sprite-b.png"]) > .et_pb_row:first-child .et_pb_text {
    margin-bottom: 0;
    text-align: center;
} */

/* .ytn-exceptional-section.et_pb_section:has(img[src*="sprite-b.png"]) > .et_pb_row:first-child .et_pb_text:first-child p {
    color: #f44336;
    font-family: 'Arial Narrow', Arial, sans-serif;
    font-size: clamp(42px, 4.7vw, 60px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: .9;
    text-transform: uppercase;
} */

/* .ytn-exceptional-section.et_pb_section:has(img[src*="sprite-b.png"]) > .et_pb_row:first-child .et_pb_text:last-child p {
    color: #f44336;
    font-size: clamp(18px, 2vw, 26px);
    font-weight: 700;
    line-height: 1.1;
    margin-top: 8px;
    text-transform: uppercase;
} */

/* .ytn-exceptional-section.et_pb_section:has(img[src*="sprite-b.png"]) > .et_pb_row:last-child {
    margin-top: 50px;
} */

/* .ytn-exceptional-section.et_pb_section:has(img[src*="sprite-b.png"]) > .et_pb_row:last-child .et_pb_column {
    text-align: center;
}

.ytn-exceptional-section.et_pb_section:has(img[src*="sprite-b.png"]) .et_pb_image {
    margin: 0 auto 10px;
    overflow: hidden;
} */

.ytn-exceptional-section.et_pb_section:has(img[src*="sprite-b.png"]) .et_pb_image:has(img[src*="sprite-b.png"]) {
    height: 302px !important;
    max-width: 254px;
    width: 254px;
    background: url('assets/images/animation/sprite-b.png') 0 0 no-repeat;
    animation: ytn-exceptional-education 1s steps(11) infinite;
}

.ytn-exceptional-section.et_pb_section:has(img[src*="sprite-b.png"]) .et_pb_image:has(img[src*="sprite-c.png"]) {
    height: 263px !important;
    max-width: 280px;
    width: 280px;
    background: url('assets/images/animation/sprite-c.png') 0 0 no-repeat;
    animation: ytn-exceptional-interview .8s steps(9) infinite;
}

.ytn-exceptional-section.et_pb_section:has(img[src*="sprite-b.png"]) .et_pb_image:has(img[src*="sprite-d.png"]) {
    height: 280px !important;
    max-width: 280px;
    width: 280px;
    background: url('assets/images/animation/sprite-d.png') 0 0 no-repeat;
    animation: ytn-exceptional-campus 1.6s steps(10) infinite;
}

.ytn-exceptional-section.et_pb_section:has(img[src*="sprite-b.png"]) .et_pb_image img {
    opacity: 0;
}

/* .ytn-exceptional-section.et_pb_section:has(img[src*="sprite-b.png"]) .et_pb_button {
    background: #e44126;
    border: 0;
    border-radius: 0 30px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 18px 44px;
    text-transform: uppercase;
} */

@media (max-width: 980px) {
    .ytn-exceptional-section.et_pb_section:has(img[src*="sprite-b.png"]) {
        padding: 55px 0 65px;
    }

    .ytn-exceptional-section.et_pb_section:has(img[src*="sprite-b.png"]) > .et_pb_row:last-child {
        margin-top: 20px;
    }

    .ytn-exceptional-section.et_pb_section:has(img[src*="sprite-b.png"]) > .et_pb_row:last-child .et_pb_column {
        margin-bottom: 48px;
    }
}

@media (max-width: 782px) {
    body.admin-bar .et-l--header {
        top: 46px;
    }
}

.et-l--header .et_pb_row {
    align-items: center;
    display: flex;
    max-width: none;
    min-height: 75px;
    padding: 0 50px;
    width: 100%;
}

.et-l--header .et_pb_image_0_tb_header {
    margin: 0;
    text-align: left;
}

.et-l--header .et_pb_image_0_tb_header img {
    height: auto;
    max-width: 270px;
    width: 100%;
}

.et-l--header .et_pb_button_0_tb_header {
    background: #f44336;
    border: 0;
    border-radius: 0 20px 0 20px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    min-width: 140px;
    margin-right: 48px;
    padding: 13px 20px;
    text-align: center;
    text-transform: uppercase;
}

.et-l--header .et_pb_button_0_tb_header:hover {
    background: #d9362b;
    color: #fff;
}

.tnb-ytn-header-search {
    position: fixed;
    right: 42px;
    top: 56px;
    z-index: 1001;
}

.tnb-ytn-search-trigger {
    appearance: none;
    background: transparent;
    border: 0;
    color: #666;
    cursor: pointer;
    line-height: 1;
    padding: 8px;
}

.tnb-ytn-search-trigger svg {
    display: none;
    fill: none;
    height: 20px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2;
    width: 20px;
}

.tnb-ytn-search-trigger:hover,
.tnb-ytn-search-trigger:focus {
    color: #f44336;
}

.tnb-ytn-search-form {
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    display: none;
    gap: 8px;
    padding: 12px;
    position: absolute;
    right: 0;
    top: 46px;
    width: 280px;
}

.tnb-ytn-header-search.is-open .tnb-ytn-search-form {
    display: flex;
}

.tnb-ytn-search-form input {
    border: 1px solid #ccc;
    min-width: 0;
    padding: 9px 10px;
    width: 100%;
}

.tnb-ytn-search-form label {
    flex: 1;
}

.tnb-ytn-search-form button[type='submit'] {
    background: #f44336;
    border: 0;
    color: #fff;
    cursor: pointer;
    padding: 9px 12px;
}

/* The Home page is a full-width banner landing page, not a blog layout. */
.page-id-31 #sidebar,
.page-id-31 .entry-title {
    display: none;
}

.page-id-31 #left-area {
    float: none;
    padding: 0;
    width: 100%;
}

.page-id-31 #main-content .container::before {
    display: none;
}

.page-id-31 #main-content .container {
    max-width: none;
    padding: 0;
    width: 100%;
}

.page-id-31 .entry-content {
    padding-top: 0;
}

/* MetaSlider controls match the archived YTN homepage banner. */
.ytn-home-slider .flexslider {
    margin: 0;
}

.ytn-home-slider .flex-direction-nav a {
    background: transparent !important;
    border-radius: 0 !important;
    color: #fff;
    display: block !important;
    font-size: 0;
    height: 44px;
    margin-top: -22px;
    opacity: 1;
    text-shadow: none;
    width: 44px;
}

.ytn-home-slider .flex-direction-nav,
.ytn-home-slider .flex-direction-nav a {
    opacity: 1 !important;
    visibility: visible !important;
}

.ytn-home-slider .flex-direction-nav a::before {
    color: #fff;
    content: '';
    display: block;
    font-family: Arial, sans-serif;
    font-size: 40px;
    font-weight: 300;
    line-height: 44px;
    text-shadow: none;
}

.ytn-home-slider .flex-direction-nav .flex-prev {
    left: 10px;
}

.ytn-home-slider .flex-direction-nav .flex-prev::before {
    content: '←' !important;
}

.ytn-home-slider .flex-direction-nav .flex-next {
    right: 10px;
}

.ytn-home-slider .flex-direction-nav .flex-next::before {
    content: '→' !important;
}

.ytn-home-slider .flex-direction-nav a:hover::before,
.ytn-home-slider .flex-direction-nav a:focus::before {
    color: #f44336;
}

.ytn-home-slider .flex-control-nav {
    bottom: 70px;
    z-index: 5;
}

.ytn-home-slider .flex-control-paging li {
    margin: 0;
}

.ytn-home-slider .flex-control-paging li a {
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    height: 4px;
    margin: 0 10px;
    width: 40px;
}

.ytn-home-slider .flex-control-paging li a:hover,
.ytn-home-slider .flex-control-paging li a.flex-active {
    background: #f44336;
}

/* Divi Global Footer: editable structure with the archived YTN visual style. */
.et-l--footer .et_pb_section {
    padding: 0;
}

.et-l--footer .et_pb_section > .et_pb_row {
    max-width: none;
    padding: 0;
    width: 100%;
}

.et-l--footer .et_pb_section:first-child > .et_pb_row > .et_pb_column:first-child {
    background: #ddd;
    align-items: center;
    display: flex;
    gap: 22px;
    padding: 32px 50px;
}

.et-l--footer .et_pb_section:first-child > .et_pb_row {
    column-gap: 0;
    gap: 0;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

.et-l--footer .et_pb_section:first-child > .et_pb_row > .et_pb_column {
    box-sizing: border-box;
    margin-right: 0 !important;
}

.et-l--footer .et_pb_section:first-child > .et_pb_row > .et_pb_column:first-child {
    flex: 0 0 37.5% !important;
    max-width: 37.5% !important;
    width: 37.5% !important;
}

.et-l--footer .et_pb_section:first-child > .et_pb_row > .et_pb_column:last-child {
    flex: 0 0 62.5% !important;
    max-width: 62.5% !important;
    width: 62.5% !important;
}

.et-l--footer .et_pb_section:first-child > .et_pb_row > .et_pb_column:last-child {
    background: #f2f2f2;
    padding: 32px 50px;
}

.et-l--footer .et_pb_section:first-child .et_pb_row .et_pb_row {
    padding: 0;
    width: 100%;
}

.et-l--footer .et_pb_section:first-child .et_pb_text p {
    color: #666;
    font-size: 12px;
    line-height: 1.2;
    margin: 0 0 8px;
}

.et-l--footer .et_pb_section:first-child .et_pb_text strong {
    color: #333;
    font-size: 14px;
    letter-spacing: 0.02em;
}

.et-l--footer .et_pb_section:first-child .et_pb_image {
    margin-left: auto;
    max-width: 165px;
}

.et-l--footer .et_pb_section:first-child > .et_pb_row > .et_pb_column:first-child .et_pb_image {
    flex: 0 0 112px;
    margin: 0;
    max-width: 112px;
}

.et-l--footer .et_pb_section:first-child > .et_pb_row > .et_pb_column:first-child .et_pb_text {
    margin: 0;
}

.et-l--footer .et_pb_section:first-child > .et_pb_row > .et_pb_column:first-child .et_pb_code {
    flex: 0 0 134px;
    margin: 0;
}

.et-l--footer .et_pb_section:first-child > .et_pb_row > .et_pb_column:first-child .et_pb_image:has(img[src*="sprite-h.png"]) {
    flex: 0 0 134px;
    height: 177px !important;
    margin: -100px 0 0 !important;
    max-width: 134px;
    background: url('assets/images/animation/sprite-h.png') 0 0 no-repeat;
    animation: ytn-footer-check 1.5s steps(15) infinite;
}

.et-l--footer .et_pb_section:first-child > .et_pb_row > .et_pb_column:first-child .et_pb_image:has(img[src*="check-application-illustration.png"]) {
    margin: -100px 0 0 !important;
}

.et-l--footer .et_pb_section:first-child > .et_pb_row > .et_pb_column:first-child {
    align-items: flex-start;
}

.et-l--footer .et_pb_section:first-child > .et_pb_row > .et_pb_column:first-child .et_pb_text {
    text-align: right;
    width: 100%;
}

.et-l--footer .et_pb_section:first-child > .et_pb_row > .et_pb_column:first-child .et_pb_image:has(img[src*="sprite-h.png"]) img {
    height: 177px !important;
    opacity: 0;
    width: 134px !important;
}

.ytn-footer-check-sprite {
    display: block;
    height: 177px;
    width: 134px;
    background: url('assets/images/animation/sprite-h.png') 0 0 no-repeat;
    animation: ytn-footer-check 1.5s steps(15) infinite;
}

@keyframes ytn-footer-check {
    from { background-position: 0 0; }
    to { background-position: -2010px 0; }
}

.ytn-exceptional-section.et_pb_section:has(.ytn-exceptional-sprite) {
    padding: 80px 0 100px;
}

.ytn-exceptional-section.et_pb_section:has(.ytn-exceptional-sprite) > .et_pb_row {
    max-width: 1200px;
}

.ytn-exceptional-section.et_pb_section:has(.ytn-exceptional-sprite) > .et_pb_row:first-child .et_pb_text {
    margin-bottom: 0;
    text-align: center;
}

.ytn-exceptional-section.et_pb_section:has(.ytn-exceptional-sprite) > .et_pb_row:first-child .et_pb_text:first-child p {
    color: #f44336;
    font-family: 'Arial Narrow', Arial, sans-serif;
    font-size: clamp(42px, 4.7vw, 60px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: .9;
    text-transform: uppercase;
}

.ytn-exceptional-section.et_pb_section:has(.ytn-exceptional-sprite) > .et_pb_row:first-child .et_pb_text:last-child p {
    color: #f44336;
    font-size: clamp(18px, 2vw, 26px);
    font-weight: 700;
    line-height: 1.1;
    margin-top: 8px;
    text-transform: uppercase;
}

.ytn-exceptional-section.et_pb_section:has(.ytn-exceptional-sprite) > .et_pb_row:last-child {
    margin-top: 50px;
}

.ytn-exceptional-section.et_pb_section:has(.ytn-exceptional-sprite) > .et_pb_row:last-child .et_pb_column {
    text-align: center;
}

.ytn-exceptional-section.et_pb_section:has(.ytn-exceptional-sprite) .et_pb_code {
    margin-bottom: 10px;
}

.ytn-exceptional-sprite {
    display: block;
    margin: 0 auto;
    overflow: hidden;
}

.ytn-exceptional-sprite--education {
    height: 302px;
    width: 254px;
    background: url('assets/images/animation/sprite-b.png') 0 0 no-repeat;
    animation: ytn-exceptional-education 1s steps(11) infinite;
}

.ytn-exceptional-sprite--interview {
    height: 263px;
    width: 280px;
    background: url('assets/images/animation/sprite-c.png') 0 0 no-repeat;
    animation: ytn-exceptional-interview .8s steps(9) infinite;
}

.ytn-exceptional-sprite--campus {
    height: 280px;
    width: 280px;
    background: url('assets/images/animation/sprite-d.png') 0 0 no-repeat;
    animation: ytn-exceptional-campus 1.6s steps(10) infinite;
}

@keyframes ytn-exceptional-education {
    from { background-position: 0 0; }
    to { background-position: -2816px 0; }
}

@keyframes ytn-exceptional-interview {
    from { background-position: 0 0; }
    to { background-position: -2520px 0; }
}

@keyframes ytn-exceptional-campus {
    from { background-position: 0 0; }
    to { background-position: -2800px 0; }
}

.ytn-exceptional-section.et_pb_section:has(.ytn-exceptional-sprite) .et_pb_button {
    background: #e44126;
    border: 0;
    border-radius: 0 30px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 18px 44px;
    text-transform: uppercase;
}

.ytn-exceptional-section.et_pb_section:has(.ytn-exceptional-sprite) .et_pb_button:hover {
    background: #005da9;
}

@media (prefers-reduced-motion: reduce) {
    .ytn-footer-check-sprite,
    .ytn-exceptional-sprite {
        animation: none;
    }
}

.et-l--footer .et_pb_section:nth-child(2) {
    background: #000;
}

.et-l--footer .et_pb_section:nth-child(2) > .et_pb_row {
    padding: 20px 50px;
}

.et-l--footer .et_pb_section:nth-child(2) .et_pb_text p {
    color: #fff;
    font-size: 10px;
    line-height: 1.4;
    margin: 0;
    text-transform: uppercase;
}

.et-l--footer .et_pb_section:nth-child(2) > .et_pb_row > .et_pb_column:last-child .et_pb_text {
    text-align: right;
}

@media (max-width: 980px) {
    .et-l--header .et_pb_row {
        min-height: 70px;
        padding: 0 20px;
    }

    .et-l--header .et_pb_image_0_tb_header img {
        max-width: 220px;
    }

    .tnb-ytn-header-search {
        right: 14px;
        top: 20px;
    }

    #metaslider-id-32 .flex-control-nav {
        bottom: 20px;
    }

    #metaslider-id-32 .flex-control-paging li a {
        margin: 0 5px;
        width: 28px;
    }

    .et-l--footer .et_pb_section:first-child > .et_pb_row > .et_pb_column:first-child,
    .et-l--footer .et_pb_section:first-child > .et_pb_row > .et_pb_column:last-child {
        display: block;
        padding: 40px 25px;
    }

    .et-l--footer .et_pb_section:first-child > .et_pb_row > .et_pb_column:first-child .et_pb_image {
        margin: 0 auto 16px;
    }

    .et-l--footer .et_pb_section:first-child > .et_pb_row > .et_pb_column:first-child .et_pb_code {
        margin: 0 auto 16px;
    }

    .et-l--footer .et_pb_section:first-child > .et_pb_row > .et_pb_column:first-child .et_pb_image:has(img[src*="sprite-h.png"]) {
        margin: 0 auto 16px;
    }

    body.home .et_pb_section:has(.ytn-exceptional-sprite) {
        padding: 55px 0 65px;
    }

    body.home .et_pb_section:has(.ytn-exceptional-sprite) > .et_pb_row:last-child {
        margin-top: 20px;
    }

    body.home .et_pb_section:has(.ytn-exceptional-sprite) > .et_pb_row:last-child .et_pb_column {
        margin-bottom: 48px;
    }

    .et-l--footer .et_pb_section:first-child .et_pb_column .et_pb_column {
        margin-bottom: 24px;
    }

    .et-l--footer .et_pb_section:nth-child(2) > .et_pb_row {
        padding: 20px;
    }

    .et-l--footer .et_pb_section:nth-child(2) > .et_pb_row > .et_pb_column:last-child .et_pb_text {
        margin-top: 10px;
        text-align: left;
    }

}
