@import "reset.css";
@import "root.css";
@import "toc.css";

html {
    scroll-behavior: smooth;
}

main {
    margin: auto;
    word-wrap: break-word;
    font-style: normal;
    text-rendering: optimizeLegibility;
}

main a {
    color: var(--color-primary);
    text-decoration: none;
}

.article-date {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 0 10px 0;
    margin-left: -25px;
}

.article-date-new-design {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 60px 0 -25px;
}

.article-title h1 {
    display: flex;
    justify-content: center;
    margin: 0  25%;
    text-align: center;
    padding: 40px 0 20px 0;
    font-size: 2rem;
}

.article-description {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px 0 35px 0;
    margin: 0  27%;
}

.article-description p {
    margin: 10px 0;
}

/*this class is for old design*/
.img-section{
    width: 100%;
    height:450px;
    object-fit: cover;
}

.photo-credit {
    padding-top: 5px;
    font-size: 14px;
    text-align: left;
    color: #737373;
}

@media (min-width: 993px) {
    .hide-in-s-l-screens {
        display: none !important;
    }
}

@media (min-width: 1540px) {
    .picture-section img {
        width: 1540px;
        object-fit: cover;
        margin: 0 auto;
        height: 450px;
    }

    .photo-credit {
        width: 1540px;
        padding-top: 5px;
        font-size: 15px;
        margin: 0 auto;
        text-align: left;
    }
}

@media (min-width: 993px) and (max-width: 1539px) {
    .picture-section img {
        object-fit: cover;
        width: 100%;
        height: 100%;
        max-height: 450px;
    }
}

.content-wrapper {
    display: flex;
    padding: 0 0 150px 0;
    margin-top: 40px;
}

.social-media-wrapper {
    flex: 1 1 0;
    padding-left: 20px;
}

.article-wrapper {
    flex: 2.3 1 0;
    padding: 10px 0;
}

.article-wrapper > * + * {
    margin-block-start: var(--flow-space, 1em);
    color: var(--color-secondary);
}

.article-wrapper editable-text > * + * {
    margin-block-start: var(--flow-space, 1em);
    color: var(--color-secondary);
}

.article-wrapper h2 {
    font-weight: 600;
    font-size: var(--font-content-title-h2);
}

.article-wrapper h3 {
    font-weight: 600;
    font-size: var(--font-content-title-h3);
}

.article-wrapper p {
    word-break: break-word;
}

.article-wrapper figure {
    margin: 20px 0;
}

.figure-table-mobile {
    display: none;
}

.figure-table-desktop {
    display: flex;
}

.article-wrapper caption {
    font-size: 22px;
    font-weight: bold;
    text-align: left;
    line-height: 50px;
}

.article-wrapper table {
    width: 100%;
    font-size: 18px;
    border: 1px solid #f3eeee;
}

.article-wrapper table th,
td {
    padding: 0.75rem;
}

.article-wrapper  table tfoot {
    font-size: 15px;
}

.article-wrapper  table tfoot a {
    color: #f26e22;
    text-decoration: none;
}

.article-wrapper tbody tr:nth-child(odd) {
    background-color: white;
}

.article-wrapper tbody tr:nth-child(odd):hover {
    background-color: var(--color-secondary);
    color: #FFFFFF;
}

.article-wrapper tbody tr:nth-child(even) {
    background-color: #f1ebeb;
}

.article-wrapper tbody tr:nth-child(even):hover {
    background-color: var(--color-secondary);
    color: #FFFFFF;
}

.article-wrapper .has-text-align-center {
    text-align: center;
    /*vertical-align: top;*/
}

.current-date {
    font-size: 20px;
    font-weight: bold;
}

/*css for blog banner*/
.banner {
    display: flex;
    align-items: center;
    width: 100%;
    background-color: #004766;
    color: #FFFFFF;
    min-height: 125px;
    max-height: 180px;
    padding: 8px 5%;
    margin-top: 20px;
    gap: 2%;
}

.banner-inside {
    display: flex;
    align-items: center;
    line-height: 30px;
    font-size: 25px;
    width: 100%;
}

.banner-logo-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 10px;
    line-height: 28px;
}

.banner img {
    width : 129px;
    height: 38px;
}

.banner-cta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 35%;
}

.banner-button{
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    border-radius: 5px;
    background-color: #F26E22;
    width: 200px;
    height: 44px;
    font-size: 19px;
    font-weight: bold;
}

@media (max-width: 992px) {
    body {
        font-size: 0.857rem;
        line-height: 1.2;
    }

    main {
        margin: auto;
        word-wrap: break-word;
        font-style: normal;
        text-rendering: optimizeLegibility;
        font-size: var( --font-content-mobile);
    }

    .article-date-new-design {
        margin: 35px 0 -35px;
    }

    .article-description {
        margin: 0  5%;
        padding: 0 0 30px;
    }

    .article-description p {
        margin: 10px 0;
    }

    .photo-credit {
        padding-top: 5px;
        font-size: 14px;
        text-align: center;
    }

    .img-section{
        width: 100%;
        height:350px;
        object-fit: cover;
    }

    .full-img {
        width: 100%;
        height:350px;
        object-fit: cover;
    }

    .desktop-img-section {
        display: none;
    }

    .article-date {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
        margin-left: 0;
    }

    .content-wrapper {
        display: flex;
        padding: 0 0 80px 0;
        margin-top: 20px;
    }

    .social-media-wrapper {
        display: none;
    }

    .article-wrapper {
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0 20px;
    }

    .article-wrapper > * + * {
        margin-block-start: var(--flow-space, 1em);
        color: var(--color-secondary);
        width: 100%;
    }

    .article-wrapper h2 {
        font-size: var(--font-title-h2-mobile);
    }

    .article-wrapper h3 {
        font-size: var(--font-title-h3-mobile);
    }

    .article-wrapper ul {
        padding: 0 15px;
    }

    .article-wrapper ol {
        padding: 0 15px;
    }

    .article-wrapper caption {
        font-size: 18px;
        line-height: 1.2em;
        margin: 10px 0;
    }

    .figure-table-mobile {
        display: flex;
    }

    .figure-table-desktop {
        display: none;
    }

    .article-wrapper figure table {
        width: 100%;
        font-size: 16px;
        margin-bottom: 10px;
    }

    .article-wrapper table th, td {
        padding: 0.05rem;
    }

    .article-wrapper  table tfoot {
        font-size: 13px;
    }

    /*css for blog banner*/
    .banner {
        min-height: 75px;
        max-height: 130px;
        gap: 2px;
        padding: 10px 5%;
    }

    .banner-inside {
        line-height: 15px;
        font-size: 12px;
    }

    .banner img {
        width :58px;
        height: 18px;
    }

    .banner-logo-title {
        line-height: 15px;
        padding-bottom: 4px;
    }

    .banner-button  {
        width: 88px;
        height: 23px;
        line-height: 10px;
        font-size: 8px;
    }

    .hide-inMobile {
        display: none !important;
    }
}