/* CSS Variables for consistent theming */
:root {
    --online-ieq9-color: #51CCF2;
    --tools-teams-color: #3DC979;
    --level2-advanced-color: #069062;
    --level1-ieq9-color: #1B679C;
    --level2-ieq9-color: #069062;
    --web-lv1-blue: #298dcd;
    --web-lv1-light-blue: #8cc7ed;
    --web-lv1-dark-blue: #005e8f;
    --web-lv2-green: #00aa7a;
    --web-lv2-light-green: #9dd3c0;
    --web-lv2-dark-green: #0b6557;
    --carousel-nav-color: #FFF;
    --carousel-nav-bg: rgba(185, 196, 252, 0.25);
    --carousel-nav-border: rgba(185, 196, 252, 0.5);
    --carousel-button-bg: #001120;
    --default-timezone-color: #3498db;
    --white: #fff;
    --black: #000;
    --grey-light: #f7f7f7;
    --grey-medium: #545454;
    --grey-dark: #616161;
    --shadow-default: 0 0.25rem 1rem #dcdde1;
    --overlay-bg: rgba(0, 0, 0, 0.5);
    --overlay-text: rgba(0, 0, 0, 0.7);
}

/* =============================================================================
   ADMIN HEADER & NAVIGATION
   ============================================================================= */

#admin-header.dark.universal .dropdown-menu-wrapper .dropdown-menu {
    top: 85px;
}

#admin-header.dark.universal.scroll-scale .dropdown-menu-wrapper .dropdown-menu {
    top: 59px;
}

#admin-header.dark.universal .web-navigation > li ul li a.nav-item img.type {
    height: 60px;
    width: 60px;
}

/* Dropdown menu text styling */
#admin-header.dark.universal .dropdown-menu-wrapper .dropdown-menu .item-wrap .item p,
.page-navigation-wrapper .dropdown-menu .item-wrap .item p {
    display: flex;
    flex-flow: wrap;
    align-items: center;
    height: 60px;
}

.page-navigation-wrapper .dropdown-menu .item-wrap .item p b {
    width: 100%;
}

#mobile-menu.menu {
    top: 67px;
}

/* Admin pre-header styling */
#admin-pre-header .dropdown-toggle,
#admin-pre-header ion-icon {
    color: var(--white);
}

html[dir="rtl"] #admin-header.dark.transparent #admin-pre-header > .container#gridview -xl {
    text-align: left;
}

i.s-circle ion-icon {
    margin: 0.2rem auto;
}

/* Scrollbar fixes */
#admin-header.dark.universal.scrollbar-fix {
    width: calc(100% - 17px);
}

html[dir="rtl"] #admin-header.dark.universal.scrollbar-fix {
    width: calc(100% - 17px);
    left: 17px;
    right: 0;
}

/* Button states */
#admin-header.dark.transparent #admin-pre-header a.btn:active,
#admin-header.dark.transparent #admin-pre-header a.btn:focus {
    background-color: #00a1d4;
}

/* =============================================================================
   UTILITY CLASSES
   ============================================================================= */

.notranslate {
    translate: no !important;
}

.n-mt-60 {
    margin-top: -60px;
}

.n-mt-50 {
    margin-top: -50px;
}

.removeUnderLine {
    text-decoration: none !important;
}

.early-bird {
    border: 2px dotted #00c19b;
}

.early-bird.l2 {
    border: 2px dotted var(--web-lv1-blue);
}

.fade-in:not(.d-none) {
    opacity: 1;
}

/* =============================================================================
   THEME COLORS
   ============================================================================= */

.text-web-lv1-blue {
    color: var(--web-lv1-blue);
}

.bg-web-lv1-blue {
    background: var(--web-lv1-blue);
}

.bg-web-lv1-light-blue {
    background: var(--web-lv1-light-blue);
}

.bg-web-lv1-dark-blue {
    background: var(--web-lv1-dark-blue);
}

.text-web-lv2-green {
    color: var(--web-lv2-green);
}

.bg-web-lv2-green {
    background: var(--web-lv2-green);
}

.bg-web-lv2-light-green {
    background: var(--web-lv2-light-green);
}

.bg-web-lv2-dark-green {
    background: var(--web-lv2-dark-green);
}

.bg-web-grey-light {
    padding-top: 1.5rem;
}

/* =============================================================================
   CAROUSEL STYLES
   ============================================================================= */

/* Keyframes */
@keyframes carousel-slidein {
    0% {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes carousel-slideout {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%);
    }
}

.carousel {
    background: none;
    display: block;
    overflow: hidden;
    position: relative;
    width: 100%;
    min-height: 510px;
    -webkit-overflow-scrolling: touch;
}

.carousel .carousel-container {
    height: 100%;
    left: 0;
    position: relative;
}

.carousel .carousel-container::before {
    padding-bottom: 400px;
}

.carousel .carousel-container .carousel-item {
    animation: 1s ease-in-out carousel-slideout;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100%;
    left: 0;
    margin: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

/* Carousel navigation buttons */
.carousel .carousel-container .item-next,
.carousel .carousel-container .item-prev {
    background: var(--carousel-button-bg);
    border-color: var(--carousel-nav-border);
    color: var(--carousel-nav-color);
    height: 42px;
    opacity: 1;
    position: absolute;
    top: 25%;
    transform: translateY(-50%);
    transition: 0.4s;
    width: 42px;
    z-index: 200;
}

.carousel .carousel-container .item-prev {
    left: 1rem;
}

.carousel .carousel-container .item-next {
    right: 1rem;
}

.carousel .carousel-container .carousel-item:hover .item-next,
.carousel .carousel-container .carousel-item:hover .item-prev {
    opacity: 1;
}

/* Carousel locator states - these cannot be easily combined due to :nth-of-type */
.carousel .carousel-locator:first-of-type:checked ~ .carousel-container .carousel-item:first-of-type,
.carousel .carousel-locator:nth-of-type(2):checked ~ .carousel-container .carousel-item:nth-of-type(2),
.carousel .carousel-locator:nth-of-type(3):checked ~ .carousel-container .carousel-item:nth-of-type(3),
.carousel .carousel-locator:nth-of-type(4):checked ~ .carousel-container .carousel-item:nth-of-type(4),
.carousel .carousel-locator:nth-of-type(4):checked ~ .carousel-container .carousel-item:nth-of-type(5) {
    animation: 0.75s ease-in-out carousel-slidein !important;
    opacity: 1 !important;
    z-index: 100 !important;
}

.carousel .carousel-locator:first-of-type:checked ~ .carousel-nav .nav-item:first-of-type,
.carousel .carousel-locator:nth-of-type(2):checked ~ .carousel-nav .nav-item:nth-of-type(2),
.carousel .carousel-locator:nth-of-type(3):checked ~ .carousel-nav .nav-item:nth-of-type(3),
.carousel .carousel-locator:nth-of-type(4):checked ~ .carousel-nav .nav-item:nth-of-type(4),
.carousel .carousel-locator:nth-of-type(4):checked ~ .carousel-nav .nav-item:nth-of-type(5) {
    color: var(--carousel-nav-color) !important;
}

.carousel .carousel-nav {
    bottom: 0.4rem;
    display: flex;
    justify-content: center;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    width: 10rem;
    z-index: 200;
}

.carousel .carousel-nav .nav-item {
    color: rgba(185, 196, 252, 0.5);
    display: block;
    flex: 1 0 auto;
    height: 1.6rem;
    margin: 0.2rem;
    max-width: 2.5rem;
    position: relative;
}

.carousel .carousel-nav .nav-item:before {
    background: currentColor;
    content: "";
    display: block;
    height: 0.1rem;
    position: absolute;
    top: 0.5rem;
    width: 100%;
}

.carousel .carousel-item .carousel-content {
    display: grid;
    align-items: end;
    position: relative;
    z-index: 5;
}

/* =============================================================================
   VIDEO CAROUSEL
   ============================================================================= */

.video-carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 365px;
    overflow: hidden;
}

.video-carousel .item {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
    flex: 1;
    height: 325px;
    margin: 0 10px;
    overflow: hidden;
    transition: flex 0.3s;
    z-index: 1;
}

.video-carousel .item .trigger {
    z-index: 3;
}

.video-carousel .item .icon {
    top: 15px;
    left: 15px;
    background: var(--white);
}

.video-carousel .item .coaches {
    background: linear-gradient(180deg, transparent, var(--overlay-text));
    bottom: 0;
    color: var(--white);
    height: 30%;
    left: 0;
    width: 100%;
    z-index: 2;
}

.video-carousel .item .coach-quote {
    bottom: -50px;
    pointer-events: none;
    right: 70px;
    width: 280px;
    z-index: 3;
}

.video-carousel .preview-width {
    flex: 0.3;
    cursor: pointer;
}

.video-carousel .preview-width .coaches {
    display: none;
}

.video-carousel .full-width {
    flex: 1;
    cursor: pointer;
}

.video-carousel .full-width .coaches {
    display: block;
}

/* =============================================================================
   MODAL STYLES
   ============================================================================= */

.modal .modal-container .close-view,
.modal.video-modal .modal-container .close-view {
    background: var(--white);
    border-radius: 50%;
    color: #171726;
    right: 0.5rem;
    top: 0.5rem;
}

.modal.video-modal .modal-container {
    max-width: 800px;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.modal.video-modal .modal-container iframe {
    width: 100%;
    height: 100%;
    aspect-ratio: 16/9;
}

.modal.video-modal .close-view ion-icon {
    margin: 0;
}

/* =============================================================================
   EVENT STYLES
   ============================================================================= */

.event-type-date {
    background: var(--overlay-bg);
    padding: 1.5em;
    border-radius: 0.8em;
}

.chip[data-language="ENGLISH"] {
    background: var(--grey-light) !important;
    color: var(--grey-medium) !important;
}

/* Event title colors - consolidated using data attributes */
.card-title[data-title="Online Level 1 iEQ9 Accreditation"],
.tile-content h5[data-title="Online Level 1 iEQ9 Accreditation"],
.list-content h5[data-title="Online Level 1 iEQ9 Accreditation"],
.card-title[data-title="Online iEQ9 Accreditation"],
.tile-content h5[data-title="Online iEQ9 Accreditation"],
.list-content h5[data-title="Online iEQ9 Accreditation"] {
    color: var(--online-ieq9-color) !important;
}

.card-title[data-title="Tools for Teams"],
.tile-content h5[data-title="Tools for Teams"],
.list-content h5[data-title="Tools for Teams"] {
    color: var(--tools-teams-color) !important;
}

.card-title[data-title="Level 2 Advanced Enneagram Team Dynamics"],
.tile-content h5[data-title="Level 2 Advanced Enneagram Team Dynamics"],
.list-content h5[data-title="Level 2 Advanced Enneagram Team Dynamics"] {
    color: var(--level2-advanced-color) !important;
}

.card-title[data-title="Level 1 iEQ9 Accreditation"],
.tile-content h5[data-title="Level 1 iEQ9 Accreditation"],
.list-content h5[data-title="Level 1 iEQ9 Accreditation"] {
    color: var(--level1-ieq9-color) !important;
}

.card-title[data-title="Level 2 iEQ9 Accreditation"],
.tile-content h5[data-title="Level 2 iEQ9 Accreditation"],
.list-content h5[data-title="Level 2 iEQ9 Accreditation"] {
    color: var(--level2-ieq9-color) !important;
}

/* =============================================================================
   TIME ZONE STYLES - CONSOLIDATED
   ============================================================================= */

.show-local-time {
    background: var(--white);
    border: 1px solid var(--default-timezone-color);
    color: var(--default-timezone-color);
    cursor: pointer;
    font-size: 0.7rem;
    padding: 0.15rem 0.3rem;
    text-align: center;
    height:auto!important;
}

/* Base styling for all time-displayed elements */
.show-local-time.time-displayed[data-title] {
    color: var(--white) !important;
    font-size: 0.8rem;
}

/* Specific event type styling */
.show-local-time.time-displayed[data-title="Online Level 1 iEQ9 Accreditation"] {
    background: var(--online-ieq9-color) !important;
    border-color: var(--online-ieq9-color) !important;
}

.show-local-time.time-displayed[data-title="Online Level 1 iEQ9 Accreditation"] .btn {
    border-color: var(--online-ieq9-color);
    color: var(--online-ieq9-color);
}

.show-local-time.time-displayed[data-title="Online iEQ9 Accreditation"] {
    background: var(--online-ieq9-color) !important;
    border-color: var(--online-ieq9-color) !important;
}

.show-local-time.time-displayed[data-title="Online iEQ9 Accreditation"] .btn {
    border-color: var(--online-ieq9-color);
    color: var(--online-ieq9-color);
}

.show-local-time.time-displayed[data-title="Tools for Teams"] {
    background: var(--tools-teams-color) !important;
    border-color: var(--tools-teams-color) !important;
}

.show-local-time.time-displayed[data-title="Tools for Teams"] .btn {
    border-color: var(--tools-teams-color);
    color: var(--tools-teams-color);
}

.show-local-time.time-displayed[data-title="Level 2 Advanced Enneagram Team Dynamics"] {
    background: var(--level2-advanced-color) !important;
    border-color: var(--level2-advanced-color) !important;
}

.show-local-time.time-displayed[data-title="Level 2 Advanced Enneagram Team Dynamics"] .btn {
    border-color: var(--level2-advanced-color);
    color: var(--level2-advanced-color);
}

.show-local-time.time-displayed[data-title="Level 1 iEQ9 Accreditation"] {
    background: var(--level1-ieq9-color) !important;
    border-color: var(--level1-ieq9-color) !important;
}

.show-local-time.time-displayed[data-title="Level 1 iEQ9 Accreditation"] .btn {
    border-color: var(--level1-ieq9-color);
    color: var(--level1-ieq9-color);
}

.show-local-time.time-displayed[data-title="Level 2 iEQ9 Accreditation"] {
    background: var(--level2-ieq9-color) !important;
    border-color: var(--level2-ieq9-color) !important;
}

.show-local-time.time-displayed[data-title="Level 2 iEQ9 Accreditation"] .btn {
    border-color: var(--level2-ieq9-color);
    color: var(--level2-ieq9-color);
}

.venue-toast .show-local-time {
    background: transparent !important;
    border-color: var(--white) !important;
    color: var(--white) !important;
}

/* =============================================================================
   VENUE TOAST STYLES
   ============================================================================= */

.venue-toast .columns {
    margin-bottom: 0 !important;
}

.venue-toast h5 {
    margin-bottom: 0.15rem;
    color: var(--white);
}

.venue-toast p {
    margin-bottom: 0.45rem;
}

.venue-toast p.venue-intro {
    align-items: center;
    display: flex;
    font-size: 1rem;
    height: 100%;
    justify-content: center;
    margin: 0;
    padding: 2rem 3rem;
    text-align: center;
}

.venue-toast .toast-success,
.venue-toast .toast-success h4,
.venue-toast .toast-success ion-icon,
.toast-light h4,
.toast-dark h4 {
    color: var(--white);
}

/* =============================================================================
   GRID & LAYOUT STYLES
   ============================================================================= */

#gridview .card {
    height: 100%;
}

#gridview .column {
    margin-bottom: 20px;
}

#gridview  .card .card-body:last-child,
#gridview  .card .card-footer:last-child,
#gridview  .card .card-header:last-child {
    margin-top: auto;
}

.card .card-body:last-child,
.card .card-footer:last-child,
.card .card-header:last-child {
    padding-bottom: 0.8rem;
}

.card-overlay h2 span {
    color: var(--white);
}

.banner {
    margin-bottom: 0 !important;
}

#web-content .columns {
    margin-bottom: 0.75rem;
}

/* =============================================================================
   LIST VIEW STYLES
   ============================================================================= */

#listview .panel.event-item .list-image .image-overlay {
    background: var(--overlay-bg);
    color: var(--white);
    position: absolute;
    text-align: center;
    top: 35%;
    width: 100%;
    z-index: 3;
}

#listview .panel.event-item .list-image img {
    width: 100%;
}

#listview .panel.event-item .list-image .image-overlay h4 span,
#listview .panel.event-item .list-image .image-overlay h2 span {
    color: var(--white);
}

/* =============================================================================
   FORM STYLES
   ============================================================================= */

.form-select:not([multiple]):not([size]) {
    background: var(--white) url(https://cdn.integrative9.com/images/chevron-down-outline.svg) no-repeat right 0.35rem center/.75rem 0.75rem;
    padding-right: 1.2rem;
}

th.sort {
    cursor: pointer;
}

.level-2-anchor  a,
.level-2-anchor  a:hover,
.level-2-anchor  a:active {
    color: var(--web-lv2-green)!important;
}

.level-1-anchor  a,
.level-1-anchor  a:hover,
.level-1-anchor  a:active {
    color: var(--web-lv1-blue)!important;
}

.event-type-date h1 span {
    font-weight: lighter!important;
}

/* =============================================================================
   TYPOGRAPHY STYLES
   ============================================================================= */

   body {
        color: #000;
        font-size: 18px;
   }

   h1, .h1 {
        font-size: 52px;
   }

   h2, .h2 {
        font-size: 40px;
        line-height: 44px;
   }

   .h3, h3 {
        font-size: 1.4rem
    }

    .h4, h4 {
        font-size: 1.2rem
    }

   p, ul li, ol li {
    font-size: 18px;
    margin-top: 0px;
   }

   p.text-large {
    font-size: 22px;
   }

   body header#admin-header ul.web-navigation li a {
        font-size: .8rem!important;
   }

/* =============================================================================
   CUSTOM STYLES
   ============================================================================= */
   
    .event-practitioner ion-icon,
    .event-practitioner img {
        margin-top: 0.25rem;
    }

/* =============================================================================
   MOBILE RESPONSIVE STYLES
   ============================================================================= */

@media screen and (max-width: 600px) {
    /* Admin header mobile fixes */
    #admin-header.dark.universal.scrollbar-fix {
        width: 100%;
    }

    /* Event details */
    img.event-image {
        width: 100%;
    }

    .event-type-date {
        text-align: center;
    }

    .event-type-date img {
        width: 90%!important;
        margin: 0.5rem auto 0.75rem;
    }

    .event-type-date h1 {
        font-size: 1.6rem;
    }

    .event-hero-banner h2 {
        font-size: 1.2rem;
    } 
    
    /* Venue toast mobile */
    .venue-toast p.venue-intro {
        font-size: 0.95rem;
        margin: 0 !important;
        padding: 0.5rem 1rem;
        text-align: center;
    }
    
    /* Video carousel mobile */
    .video-carousel .item {
        margin: 0 5px;
    }
    
    .video-carousel .item .coaches {
        height: 45%;
    }
    
    /* Event testimonial carousel mobile */
    .event-testimonial-carousel .carousel {
        min-height: 965px;
    }
    
    .event-testimonial-carousel .carousel .carousel-item {
        background-size: auto;
        background-position: 65%;
        min-height: 965px;
    }
    
    .event-testimonial-carousel .carousel .carousel-container .item-next,
    .event-testimonial-carousel .carousel .carousel-container .item-prev {
        top: 10%;
    }
    
    .event-testimonial-carousel .carousel .carousel-item img.s-circle {
        margin: 0 auto !important;
    }
    
    /* Mobile utility classes */
    .p-sm-0 { padding: 0; }
    .pb-sm-0 { padding-bottom: 0; }
    .pr-sm-0 { padding-right: 0; }
    .pl-sm-0 { padding-left: 0; }
    .p-sm-4 { padding: 0.8rem; }
    .px-sm-4 { padding-left: 0.8rem; padding-right: 0.8rem; }
    .px-sm-0 { padding-right: 0; padding-left: 0; }
    .py-sm-0 { padding-top: 0; padding-bottom: 0; }
    .py-sm-20 { padding-top: 20px; padding-bottom: 20px; }
    .py-sm-40 { padding-top: 40px; padding-bottom: 40px; }
    .pt-sm-0 { padding-top: 0; }
    .pt-sm-4 { padding-top: 0.8rem; }
    
    .mb-sm-0 { margin-bottom: 0; }
    .mt-sm-0, #compare-reports { margin-top: 0; }
    .mt-sm-1 { margin-top: 0.25rem; }
    .mb-sm-4 { margin-bottom: 0.8rem; }
    .mb-sm-3, table.responsive tr { margin-bottom: 0.5rem; }
    .mt-sm-4 { margin-top: 0.8rem; }
    .ml-sm-0 { margin-left: 0; }
    .mr-sm-0 { margin-right: 0; }
    .my-sm-4 { margin-top: 0.8rem !important; margin-bottom: 0.8rem !important; }
    .mx-sm-4 { margin-left: 0.8rem !important; margin-right: 0.8rem !important; }
    .mx-sm-0 { margin-left: 0; margin-right: 0; }
    .my-sm-0 { margin-top: 0; margin-bottom: 0; }
    .m-sm-0 { margin: 0; }
    .mt-sm-250 { margin-top: 250px; }
    .mt-sm-45 { margin-top: 45px; }
    .mb-sm-130 { margin-bottom: 130px; }
    
    .text-center-sm { text-align: center; }
    .text-left-sm { text-align: left !important; }
    .d-sm-block { display: block; }
    .s-rounded-mild { border-radius: 0.25rem; }

    /* Mobile UI */

    #admin-header.dark.universal img.mobile-logo,
    #admin-header.dark.universal.scroll-scale img.mobile-logo {
    margin: -20px 0 10px 0 !important;
    }

    .event-facilitators img.s-circle.img-responsive {
        width: 75%!important;
    }

    .modal#modal-join-waiting-list .modal-body {
        min-height: 70vh ;
    }
}