:root {
	--ab-height: 48px;
}

/* Activity Bar */

body:has(#activity-bar) #header-outer {
	top: var(--ab-height);
}
body[data-slide-out-widget-area-style=slide-out-from-right]:has(#activity-bar) .slide_out_area_close {
	top: 90px;
}

#activity-bar {
    --__ab-height: var(--ab-height, 40px);
    --__ab-gap: var(--ab-gap, 1.5em);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background-color: var(--colorA);
    overflow: hidden;
}

.activity-bar__inner {
    font-size: 18px;
    line-height: 1;
    color: white;
    font-family: var(--body-font);
    font-weight: 400;
    height: var(--__ab-height);
    display: flex;
    white-space: nowrap;
    align-items: center;
    gap: var(--__ab-gap);
	-webkit-mask-image: linear-gradient(to right, transparent, black 20px calc(100% - 20px), transparent);
	mask-image: linear-gradient(to right, transparent, black 20px calc(100% - 20px), transparent);
}

.activity-bar__track {
    display: flex;
    gap: var(--__ab-gap);
    animation: marquee forwards 40s linear infinite;
}

.activity-bar__promo {
	display: flex;
	align-items: center;
}

.activity-bar__space {
    display: block;
    width: var(--__ab-gap);
    height: 1px;
    margin-inline-start: 4px;
}

.activity-bar__promo svg {
    height: 2em;
    width: 2em;
}

.activity-bar__promo p > span {
    font-weight: 900;
    display: inline-block;
    font-size: 12px;
    line-height: .9;
    vertical-align: baseline;
    text-transform: uppercase;
    text-shadow: 0 2px 4px #44000085;
    transform: scale(1.2) rotate(2deg);
    margin-inline: 1.5em;
}

.activity-bar__promo:nth-child(even) p > span {
	transform: scale(1.2) rotate(-1deg);
}

.activity-bar__promo p {
	user-select: none;
    margin: 0;
    display: block;
	background-color: rgba(0,0,0,.2);
    padding: .1em .5em;
    border-radius: .25em;
	font-size: inherit !important;
	color: #fff;
}

body:has(#activity-bar) mobile-dock {
    bottom: var(--ab-height);
}

@media (hover:hover) {
	.activity-bar:hover .activity-bar__track {
		animation-play-state: paused;	
	}
}

@media (width < 768px) {
    /*#activity-bar {
        top: unset;
        bottom: 0;
    }*/
	
	.activity-bar__inner {
	    font-size: 16px;
	}
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% - var(--__ab-gap)));
    }
}


/* Activity Modal */

.activity-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.activity-modal.active {
    display: flex;
}

.activity-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.activity-modal__content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.activity-modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    color: #fff;
}

.activity-modal__close svg {
    color: #fff;
}

.activity-modal__close svg path {
    stroke: #fff;
}

/* .activity-modal__close:hover {
    background: #f5f5f5;
    border-color: #999;
    transform: rotate(90deg);
} */

.activity-modal__header {
    background: var(--colorA);
    color: #fff;
    padding: 30px 60px 30px 30px;
    border-radius: 12px 12px 0 0;
}

.activity-modal__header h2 {
    font-family: var(--secondaryFont);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.2;
    margin: 0 0 15px !important;
    color: #fff !important;
}

.activity-modal__date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--bodyFont);
    font-size: 1.1rem;
    font-weight: 600;
}

.activity-modal__body {
    padding: 30px;
}

.activity-modal__section {
    margin-bottom: 25px;
}

.activity-modal__section:last-child {
    margin-bottom: 0;
}

.activity-modal__section h3 {
    font-family: var(--primaryFont);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--colorA);
    margin: 0 0 15px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.activity-modal__section p {
    font-family: var(--bodyFont);
    font-size: 1.05rem;
    line-height: 1.7;
    color: #666;
    margin: 0 !important;
}

.activity-modal__section p strong {
    color: var(--colorA);
    font-weight: 700;
}

.activity-modal__section p a {
    color: var(--colorA);
    text-decoration: none;
    font-weight: 700;
}

.activity-modal__section p a:hover {
    text-decoration: underline;
}

.activity-modal__timeline {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.activity-modal__timeline li {
    font-family: var(--bodyFont);
    font-size: 1.05rem;
    line-height: 1.8;
    color: #666;
    padding-left: 20px;
    position: relative;
    font-weight: 400;
    list-style: none !important;
}

.activity-modal__timeline li::marker {
    display: none;
}

.activity-modal__timeline li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--colorB);
    border-radius: 50%;
}

.activity-modal__timeline li strong {
    color: var(--colorA);
    font-weight: 700;
}

.activity-modal__highlights ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.activity-modal__highlights li {
    font-family: var(--bodyFont);
    font-size: 1.05rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 8px;
    list-style: none !important;
}

.activity-modal__highlights li::marker {
    display: none;
}

.activity-modal__highlights strong {
    color: var(--colorA);
    font-weight: 800;
}

.activity-modal__admission {
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    font-family: var(--bodyFont);
    font-size: 1rem;
    font-weight: 400;
    margin-top: 25px;
}

.activity-modal__admission strong {
    color: var(--colorB);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Mobile styles */
@media (max-width: 768px) {
    .activity-modal {
        padding: 10px;
    }
    
    .activity-modal__content {
        max-height: 95vh;
    }
    
    .activity-modal__header h2 {
        font-size: 1.5rem;
        padding-right: 20px;
    }
    
    .activity-modal__body {
        padding: 20px;
    }
    
    .activity-modal__section h3 {
        font-size: 1.3rem;
    }
}

/* Smooth scrollbar */
.activity-modal__content::-webkit-scrollbar {
    width: 8px;
}

.activity-modal__content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 12px 12px 0;
}

.activity-modal__content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.activity-modal__content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Cursor pointer on activity bar */
#activity-bar {
    cursor: pointer;
}

