/* ============================================= START::GENERAL CSS ============================================== */
:root {
    --map-border-radius: 8px;
}
/* Prevent weird horizontal scroll which appears until page is scrolled to the bottom!*/
html, body {
    overflow-x: hidden !important;
}
video {
    /* Prevent video from overflowing and cause horizontal scroll. */
    max-width: 100%;
}
.video-wrapper {
    padding: 5px;
}
.video {
    width: 100%;
    object-fit: cover;
    border: none;
    /* The outline & negative outline offset removes the black link appearing as border of video */
    outline: 1px solid white;
    outline-offset: -1px;
}

.yt-iframe {
    width: 100%;
    aspect-ratio: 16/9;
}

/* Override the border radius of YT Embed section on "About" Page */
.h4_assistant-img {
    border-radius: 20px;
}

/* Override Header Action Button Padding */
.h4_header-action-btn {
    padding: 0 15px;
}

.blog-aside {
    padding: 30px;
}

/* ================================================ END::GENERAL CSS ================================================= */

/*============================================= START::Star Rating =============================================*/
.rating-stars-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.rating-star {
    width: 14px;
    height: auto;
    display: flex;
    color: #ffc107;
}
.rating-star-unfill-overlay {
    width: 50%;
    opacity: unset;
    mix-blend-mode: color;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background-color: #000;
}
/*============================================= END::Media Queries ===============================================*/

/*============================================= START::Map Embed =================================================*/
.max-h-600 {
    max-height: 600px;
}
#g-maps-container {
    height: auto;
    width: 100%;
    margin: auto;
}
#map-embed-wrapper {
    /* Same Border radius must be applied on child elements which wrap other elements. Otherwise, content edges
     * will overrun the border-radius of the outermost container.
    */
    border-radius: var(--map-border-radius);
    border: 1px solid gray;
    position: relative;
    /* Set X margins to 0 to keep it aligned with the heading */
    margin-left: 0;
    margin-right: 0;
}
#map-wrapper {
    padding: 0;
}
#maps-sidebar {
    height: 100%;
    box-sizing: border-box;
    overflow-y: scroll;
    border: 1px solid #ccc;
    padding: 1px;
    border-radius: var(--map-border-radius);
}
#g-map {
    /* Definite width & height are required to display map correctly.
     * source: https://developers.google.com/maps/documentation/javascript/adding-a-google-map
    */
    width: 100%;
    height: 600px;
    border-radius: var(--map-border-radius);
}
.rating {
    color: #f4b400;
}

.place-container {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    background-color: #fff;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    border-radius: var(--map-border-radius);
}
.place-container:hover {
    background-color: #f9f9f9;
    cursor: pointer;
}
.place-text {
    width: 70%;
    display: flex;
    flex-direction: column;
}
.place-media {
    width: 30%;
    display: flex;
}

.place-image-wrapper {
    width: 100%;
    max-height: 120px;
    border-radius: 8px;
}
.place-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
.place-name {
    color: #5e5e5e;
    font-size: 14px;
    font-weight: bold;
}
.place-rating {
    color: #5e5e5e;
    font-size: 12px;
}
.place-location {
    color: #5e5e5e;
    font-size: 12px;
}
.place-availability {
    color: #5e5e5e;
    font-size: 12px;
}
.place-open {
    color: rgba(25,134,57,1.00);
}
.place-closed {
    color: rgba(220,54,46,1.00)
}
/*============================================= END::Map Embed ===================================================*/

/*========================================= START::Loading Indicator =============================================*/
#loading-indicator {
    position: absolute; /* Keep it within map area/box */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-family: Arial, sans-serif;
    font-size: 18px;
    color: #333;
}
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.2);
    border-top: 4px solid #333;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
/*============================================= END::Loading Indicator ===========================================*/


/* ================================================= Author Page CSS ================================================= */
.bg-blog {
    background-color: #054ADA;
}
.text-blog {
    color: white;
}
/* Wraps Author Content on Author Page */
.author-banner {}
/* Wraps Image, Name, Description, icons (Used on Author Page) */
.author-details-row {
    width: 85%;
    margin: auto;
}
.author-banner .author-name {
    font-size: 48px;
    margin-bottom: 0
}
.author-banner .author-bio {
    font-size: 16px;
}
.author-banner .author-description {
    font-size: 18px;
}
.author-banner .author-image {
    height: 250px;
    width: 250px;
    object-fit: cover;
}

/* Article By Styling (On Blog Post Page) */
.article-by {
    font-size: 16px;
    font-weight: 500;
    color: var(--clr-common-light-gray);
    margin: 0 auto;
}

/* Author Social Links Styling */
.author-social-icons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 4px 0;
}
.author-social-icon {
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 2px;
    color: #7F879E;
    font-size: 14px;
    border: 1px solid rgba(27, 42, 82, 0.25);
    border-radius: 4px;
}
.author-social-icon:hover {
    background: var(--clr-theme-primary);
    color: var(--clr-common-white);
    border-color: transparent;
}

/* ---------------------------------------------------- Media Queries ------------------------------------------------*/
@media (max-width: 768px) {
    .author-details-row {
        width: 100%;
    }
    .author-name {
        font-size: 28px;
    }
    .author-banner .author-bio {
        font-size: 15px;
    }
    .author-banner .author-description {
        font-size: 16px;
    }
    .author-banner .author-image {
        height: auto;
        width: 100%;
        max-width: 320px;
        object-fit: cover;
    }
    .article-by {
        font-size: 14px;
    }
}
/* ---------------------------------------------------- END END END --------------------------------------------------*/

/* ============================================= START::Blog Archive Page CSS ======================================= */
.bg-blog-archive {
    background-color: #054ADA;
}
.text-blog-archive {
    color: white;
}

.blog-archive-banner {
    padding: 48px 0;
    text-align: center;
}

.blog-archive-heading {
    font-family: "Ahrefs Display", sans-serif;

    font-weight: 400;
    font-size: 50px;
    color: #fff;
    line-height: 54px;
    margin: 0;
    margin-bottom: 16px;
}

.with-line:before {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    left: 60px;
    right: 60px;
    height: 1px;
    background: rgba(255, 255, 255, .4);
}
.with-flag:after {
    content: "";
    display: block;
    position: absolute;
    bottom: -18px;
    left: 50%;
    margin-left: -10px;
    width: 20px;
    height: 36px;
    background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAABIAQMAAAC+xCV0AAAABlBMVEX8jkH////q93cUAAAAAnRSTlP/AOW3MEoAAAAVSURBVHgBY6A2GAX/SSP///9PAgkAfWwf4QQtxnkAAAAASUVORK5CYII=) 0 0 no-repeat;
    background-size: 100% auto;
    z-index: 1;
}

.articles-listing {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    text-align: center;
    padding: 10px 0 0;
    padding-top: 0;
}

.article-container {
    position: relative;
    width: 50%;
    padding: 40px 40px 40px 50px;
}
.article-container:nth-child(even):before {
    content: "";
    display: block;
    width: 1px;
    height: calc(100% - 80px);
    overflow: hidden;
    left: -1px;
    position: absolute;
    top: 40px;
    background-color: #e7e7e7;
    visibility: visible;
}
.article-container:after {
    content: " ";
    display: block;
    width: 0;
    height: 0;
    overflow: hidden;
    visibility: hidden;
    clear: both;
}
.article-header {
    text-align: left;
    padding: 0;
}
.article-category {
    font-family: "Ahrefs", sans-serif;
    font-weight: 700;
    font-size: 16px;
    font-stretch: condensed;
    text-align: left;
    line-height: 22px;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin: 0 0 8px;
}
.article-title {
    font-size: 38px;
    line-height: 42px;
}
.article-title a {
    font-family: "Ahrefs", sans-serif;
    text-align: left;
    color: #054ada;
}
.article-meta {
    position: relative;
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: #000;
}
.article-excerpt {
    display: block;
    font-size: 18px;
    line-height: 29px;
    margin: 0 0 24px;
}
.article-author {
    display: inline-block;
    vertical-align: top;
    line-height: 29px;
    white-space: nowrap;
    margin: 0 7px;
    margin-left: 0;
}
.article-author a {
    display: inline-block;
    color: #333;
    text-align: left;
    border-bottom: none;
    overflow: visible;
}
.article-author .avatar {
    float: left;
    display: block;
    width: 30px;
    height: 30px;
    margin: -2px 8px 0 0;
    border-radius: 30px;
}
.article-author .avatar img {
    width: 30px;
    height: 30px;
    vertical-align: top;
    border-radius: 30px;
    margin: 0;
}
.article-author .publish-date {
    display: inline-block;
    vertical-align: top;
    line-height: 29px;
    margin: 0 7px;
}

.articles-pagination {
    border: none;
    border-top: 1px solid #e7e7e7;
    margin: 40px auto 96px auto;
    padding: 48px 0 0;
}
.pagination-nav {
    text-align: center;
    border: none;
    padding: 40px 0 0;
    margin: 0;
}

.pagination-nav .page-number {
    display: inline-block;
    width: 46px;
    font-size: 18px;
    line-height: 28px;
    color: #054ada !important;
    font-weight: 700;
    text-decoration: none;
    padding: 4px;
    margin: 0 4px 8px;
    background-color: #ecf1ff;
    border: none;
    border-radius: 4px;
    vertical-align: top;
    transition: all .33s ease-out;
}
.pagination-nav .page-number:hover {
    color: #fff !important;
    background-color: #054ada !important;
}
.pagination-nav .dots {
    display: inline-block;
    width: 29px;
    height: 36px;
    color: #054ada !important;
    font-size: 0;
    font-weight: 700;
    line-height: 0;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 20px 4px;
    vertical-align: middle;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    padding: 0 5px;
    margin: 0 4px 8px;
}
.pagination-nav .last {
    display: inline-block;
    width: 46px;
    height: 36px;
    font-size: 0;
    line-height: 0;
    color: #054ada !important;
    background-color: #ecf1ff;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: 12px 20px !important;
    background-image: url("assets/images/blog-pagination-forward-chevron.svg");
    transition: all .33s ease-out;
    vertical-align: top;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    padding: 4px;
    margin: 0 4px 8px;
}
.pagination-nav .last:hover {
    background-position: 75% 50% !important;
    background-color: #ecf1ff !important;
    background-repeat: no-repeat !important;
    background-size: 12px 20px !important;
}
/* ============================================= END::Archive Page CSS ============================================== */

/* ========================================= START::Tnc & Privacy Policy ============================================ */
.legal-wrapper {}
.legal-last-updated {
    display: inline-block;
    font-size: 20px;
    margin-bottom: 0.5rem;
}
.legal-wrapper .section-h-larger {
    font-size: 24px;
    margin-bottom: 1rem;
}
.legal-wrapper .section-h-large {
    font-size: 20px;
    margin-bottom: 1rem;
}
.legal-wrapper .section-h-medium {
    font-size: 18px;
    margin-bottom: 1rem;
}
.legal-wrapper .section-h-small {
    font-size: 16px;
    margin-bottom: 1rem;
}
.legal-wrapper .section-p {
    font-size: 14px;
    margin-bottom: 0.75rem;
}
.legal-wrapper .list {
    padding: 0 20px;
    margin-bottom: 1.5rem;
}
.legal-wrapper .closing-note {
    font-size: 16px;
    font-weight: bold;
    margin: 1rem 0;
}

/* ========================================= END::Tnc & Privacy Policy ============================================== */

/* ---------------------------------------------------- Media Queries ------------------------------------------------*/
@media (max-width: 768px) {
    .blog-aside {
        padding: 20px;
    }
    .blog-archive-banner {
        padding: 48px 0 64px;
    }

    .blog-archive-heading {
        font-size: 38px;
        line-height: 40px;
    }

    .article-container {
        width: 100%;
    }

    /* Reduce Announcement bar font size for mobile */
    .h4_header-top-text p {
        font-size: 11px;
    }
}
@media screen and (min-width: 767px) {
    #g-maps-container {
        width: 100%;
    }
    .place-image-wrapper {
        max-width: 100px;
        max-height: 100px;
    }
}
