/**
 * Theme Name:     Vivek
 * Author:         Byte to IT
 * Template:       astra
 * Text Domain:	   vivek
 * Description:    A custom child theme for Vivek\&#039;s website, designed to maintain the core functionality of the parent theme while allowing for unique styling and customization. This child theme ensures seamless integration of Vivek’s brand identity, optimized performance, and a flexible framework for future updates.
 */

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    font-variant-numeric: lining-nums;
    -moz-font-feature-settings:"lnum" 1; 
    -moz-font-feature-settings:"lnum=1"; 
    -ms-font-feature-settings:"lnum" 1; 
    -o-font-feature-settings:"lnum" 1; 
    -webkit-font-feature-settings:"lnum" 1; 
    font-feature-settings:"lnum" 1;
}

.event-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e3e3e3;
    padding: 20px;
    gap: 20px;
}

.event-item .button {
    background-color: transparent;
    border-color: var(--ast-global-color-2);
    color: var(--ast-global-color-2);
    transition: 500ms all ease;
}

.event-item .button:hover {
    background-color: var(--ast-global-color-6);
}

.event-thumbnail {
    width: 200px;
    height: 200px;
    border-radius: 200px;
    overflow: hidden;
}

.event-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-col {
    gap: 20px;
}

.event-col:nth-child(1) {
    flex: 50%;
}

.event-col:nth-child(2) {
    flex: 25%;
}

.event-col:nth-child(3) {
    flex: 25%;
}

.event-col p {
    margin-bottom: 0;
}

.event-col h3 {
    margin-bottom: 8px;
}

.event-item .event-col:last-of-type {
    display: flex;
    justify-content: end;
}

.hero-mobile-container {
    color: var(--ast-global-color-2) !important;
}

.hero-mobile-container h1,
.hero-mobile-container p {
    color: inherit !important;
}

.hero-mobile-container .ast-outline-button {
    color: var(--ast-global-color-2) !important;
    border-color: var(--ast-global-color-2) !important;
}

@media (max-width: 544px) {
    .hero-text h1 {
        font-size: 40px;
        line-height: 55px !important;
    }
}

@media only screen and (max-width: 976px) {

    .wp-block-uagb-container.hero {
        background-position: 56% 50%;
    }

    .wp-block-uagb-container.hero::before {
        opacity: 0;
    }

    .events-list .event-item {
        flex-direction: column;
        align-items: start;
        padding: 20px 0;
    }

    .event-col {
        flex: 100%;
    }

    .event-col.d-flex {
        flex-direction: column;
        justify-content: start;
        align-items: start;
    }
}

@media only screen and (max-width: 776px) {

    .event-thumbnail {
        width: 100%;
        height: 300px;
        border-radius: 6px;
    }
}

/* Geral */

.text-center {
    text-align: center;
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

/* NAV */

.sub-menu li a {
    color: var(--ast-global-color-2) !important;
}

.sub-menu li a:hover {
    background: var(--ast-global-color-1) !important;
    color: var(--ast-global-color-4) !important
}

.ast-theme-transparent-header #masthead {
    transition: all 0.3s ease-in-out;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 999;
}

.ast-theme-transparent-header #masthead.scrolled {
    position: fixed;
    background: rgba(255, 255, 255, 0.95); /* change as needed */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ast-theme-transparent-header #masthead.scrolled .site-logo-img img {
    filter: invert(1);
}

.ast-theme-transparent-header #masthead.scrolled svg path {
    fill: var(--wp--preset--color--ast-global-color-2);
}

.ast-theme-transparent-header #masthead.scrolled .main-header-menu .menu-link {
    color: var(--wp--preset--color--ast-global-color-2);
}

.ast-theme-transparent-header #masthead.scrolled .ast-header-button-1 .ast-custom-button {
    color: var(--wp--preset--color--ast-global-color-2);
    border: 1px solid var(--wp--preset--color--ast-global-color-2);
}

.ast-desktop .ast-primary-header-bar.main-header-bar, .ast-header-break-point #masthead .ast-primary-header-bar.main-header-bar {
    padding-top: 0 !important;
}

.ast-theme-transparent-header #masthead.scrolled .ast-mobile-header-wrap .ast-primary-header-bar,
.ast-theme-transparent-header #masthead.scrolled .ast-primary-header-bar .site-primary-header-wrap {
    height: 60px;
    min-height: 60px;
}

@media (max-width: 976px) {

    .ast-theme-transparent-header #masthead.scrolled .ast-mobile-header-wrap .ast-primary-header-bar,
    .ast-theme-transparent-header #masthead.scrolled .ast-primary-header-bar .site-primary-header-wrap {
        height: 60px;
        min-height: 60px;
    }
    .ast-logo-title-inline .ast-site-identity {
        padding: .5em 0;
    }
    .ast-logo-title-inline .site-logo-img {
        padding-right: 0;
    }
}

@media (min-width: 967px) {
    .ast-theme-transparent-header #masthead.scrolled .site-logo-img img {
        width: 100px;
        max-width: 100px;
    }
}

@media (max-width: 782px) {
    body.admin-bar .ast-mobile-popup-drawer, body.admin-bar .ast-mobile-popup-drawer .ast-mobile-popup-inner {
        top: 0 !important;
    }
}

/* Hook box */

.hook-box img {
    width: 185px !important;
    height: 185px !important;
    border-radius: 185px !important;
    object-fit: cover;
    object-position: center;
    border: 1px solid var(--ast-global-color-4);
}

.hook-box .uagb-ifb-button-wrapper {
    margin-left: 20px;
}


/* WP Forms */

.wpforms-container input.wpforms-field-medium,
.wpforms-container select.wpforms-field-medium,
.wpforms-container .wpforms-field-row.wpforms-field-medium {
    max-width: 100%;
}

/* Single Page */

.single-events .event-right-col h2,
.single-events .event-right-col h3,
.single-events .event-right-col h4 {
    margin: 2rem auto 1.2rem auto !important;
}

.single-events .ast-container {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.single-events header .ast-container {
    max-width: 1240px;
}

.single-events #primary {
    max-width: 1240px;
    width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px;
    padding-right: 20px;
}

.event-featured-image {
    padding: 0 20px;
}

.event-featured-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 16px;
}

.event-excerpt {
    max-width: 900px;
    margin: 0 auto !important;
    padding: 0 20px 40px 20px;
}

.event-map iframe {
    height: 200px;
}

.event-header {
    width: 100%;
    color: var(--ast-global-color-5);
    background-color: var(--ast-global-color-0);
    border-bottom-right-radius: 104px;
    padding: 128px 40px 80px 40px;
}

.event-local {
    max-width: 800px;
    margin: 0 auto !important;
    font-size: 50px;
}

.event-header h1 {
    color: inherit !important;
}

.event-info {
    background-color: var(--ast-global-color-5);
    border: 1px solid var(--ast-global-color-6);
    border-radius: 6px;
    padding: 32px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.event-content-wrapper {
    display: flex;
    padding: 60px 20px;
}

.wpforms-container input.wpforms-field-medium, .wpforms-container select.wpforms-field-medium, .wpforms-container .wpforms-field-row.wpforms-field-medium {
    max-width: 100% !important;
}

.event-left-col {
    flex: 0 0 30%;
    width: 30%;
}


.event-right-col {
    flex: 0 0 70%;
    width: 70%;
    padding-left: 8.333333333%;
}

@media only screen and (max-width: 976px) {

    .event-header {
        padding: 96px 24px 48px 24px;
        border-bottom-right-radius: 48px;
    }

    
    .event-content-wrapper {
        flex-direction: column;
        padding: 40px 20px;
    }

    .event-left-col {
        flex: 0 0 100%;
        width: 100%;
        padding-bottom: 20px;
    }
    
    
    .event-right-col {
        flex: 0 0 100%;
        width: 100%;
        padding-left: 0;
    }
}

@media (max-width: 767px) {
    
    .event-local {
        font-size: 30px;
    }

    .event-excerpt {
        font-size: 24px;
    }

    .event-featured-image img {
        height: 300px;
    }
}

@media (max-width: 544px) {
    .single.ast-separate-container #content .ast-container {
        padding: 0!important;
    }
}

/* |Footer */

.site-primary-footer-wrap[data-section="section-primary-footer-builder"] .ast-builder-grid-row,
.site-primary-footer-wrap[data-section="section-primary-footer-builder"] .site-footer-section {
    align-items: start !important;
}

.site-footer-primary-section-3 p {
    display: none;
}

.site-footer-primary-section-1 ul {
    margin: 0;
    list-style: none;
}

/* Contact form */

.contact-form .wpforms-field-label {
    color: var(--ast-global-color-6);
}

/* |Subscription Banner */

.subscription-container {
    position: fixed;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    top: 0;
    left: 0;
    bottom: 0;
    right: 0; 
    padding: 20px;
}

.subscription-btn {
    position: fixed;
    z-index: 9998;
    right: 20px;
    bottom: 20px;
    background-color: #fff;
    border: 2px solid var(--ast-global-color-2);
    padding: 3px 16px;
    cursor: pointer;
    text-align: center;
    transition: 500ms all ease;
}

.subscription-btn span {
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 2px;
    font-weight: 700;
}

.subscription-btn:hover {
    transform: scale(1.1);
}

.subscription-menu {
    position: relative;
    max-width: 800px;
    background-color: var(--ast-global-color-4);
    padding:32px;
    border-radius: 6px;
}

.subscription-menu .close-btn {
    position: absolute;
    top:12px;
    right: 12px;
    width: 25px;
    height: 25px;
    cursor: pointer;
    transition:500ms all ease;
} 

.subscription-menu .close-btn:hover {
    transform: scale(1.05);
}

.subscription-menu button {
    background-color: var(--ast-global-color-1);
    width: 100%;
}

.subscription-menu .wpforms-container .wpforms-field-label-inline {
    font-size: 13px;
}

.subscription-banner .uagb-forms-main-submit-button {
    height: 56px;
}

@media (max-width: 767px) {
    .subscription-btn {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
    }
}

@media (min-width: 768px) {
    .subscription-banner .wp-block-uagb-forms.uagb-forms-inline-field .uagb-forms-main-form .uagb-forms-field-desk-width-60 {
        margin-bottom: 0;
    }
}   


/* |subscription banner */

.subscription-banner .wpforms-form {
    display: flex;
    gap:20px;
    align-items: end;
    justify-content: center;
}

.subscription-banner .wpforms-field-label {
    color: #fff;
}

.subscription-banner.wpforms-container input.wpforms-field-medium {
    color: #fff;
    border-color: #fff; 
    width: 100%;
    max-width: 100%;
}

.subscription-banner .wpforms-container label.wpforms-error, .subscription-banner .wpforms-container em.wpforms-error {
    position: absolute;
    display: block;
    color: #fff !important;
    font-size: 14px;
    font-style: normal;
    cursor: default;
    min-width: unset;
    width: 100%;
    margin-top: 10px;
    white-space: nowrap;
}

.subscription-banner .wpforms-submit {
    text-transform: none !important;
    white-space: nowrap;
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
    transform: translateY(-15px);
    min-height: 50px;
}

.subscription-banner .wpforms-submit:hover {
    color: var(--ast-global-color-0);
    background-color: #fff;
    transform: translateY(-15px);
}

.subscription-banner input[type=email]::placeholder {
    color: #fff;
}


@media only screen and (max-width: 600px) {

    .subscription-banner .wpforms-form {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .subscription-banner .wpforms-form .wpforms-submit-container .wpforms-submit,
    .subscription-banner.wpforms-form .wpforms-submit-container,
    .subscription-banner .wpforms-form .wpforms-field-container,
    .subscription-banner .wpforms-form .wpforms-field,
    .subscription-banner .wpforms-form .wpforms-field input {
        width: 100%;
    }

    .subscription-banner .wpforms-submit {
        transform: unset;
    }

    .subscription-banner .wpforms-container label.wpforms-error, .subscription-banner .wpforms-container em.wpforms-error {
        position: relative;
        margin: 5px 0;
    }
}
