/* ---------------------------------------------------------------------------
 * events.css — auto-loaded only on /events via pageCSS() in lib/design.php
 * Scoped via the .page-events wrapper added in events.php; safe to use
 * .fct-* class hooks without colliding with other pages.
 * ------------------------------------------------------------------------- */

:root {
    --fct-orange: #ee7954;
    --fct-pink: #f06793;
    --fct-yellow: #ebba63;
    --fct-purple: #93328e;
    --fct-blue: #1d428a;
    --fct-green: #198754;
    --fct-ink: #2b2b2b;
    --fct-muted: #666;
    --fct-card-bg: #fdfdfd;
    --fct-card-border: #ececec;
    --fct-card-shadow: 0 4px 18px rgb(20 30 60 / 6%);
    --fct-card-shadow-hover: 0 8px 24px rgb(20 30 60 / 12%);
    --fct-radius: 12px;
}

/* ---------------------------------------------------------------------------
 * Carried over from previous events.css (carousel + inews-item polish).
 * ------------------------------------------------------------------------- */

.box-static {
    background-color: rgb(0 0 0 / 0%);
}

.price-clean { border: hidden; }

.calendar {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.calendar .calendar-body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-bottom: 6px solid #4285F4;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 5px 25px rgb(1 1 1 / 15%);
}

.calendar .calendar-body .month-name {
    color: #fff;
    background: #4285F4;
    width: 100%;
    font-size: 1.6em;
    text-align: center;
    font-weight: 400;
    padding: 5px 0;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.calendar .calendar-body .day-name {
    color: #000;
    font-size: 1.5em;
    font-weight: 400;
    margin-top: 20px;
}

.calendar .calendar-body .date-number {
    color: #d00;
    font-size: 6em;
    font-weight: 600;
    line-height: 1.2em;
}

.calendar .calendar-body .year {
    color: #000;
    font-size: 1.5em;
    font-weight: 400;
    margin-bottom: 20px;
}

.info-bar.info-bar-bordered { margin: 0 0 10px 0; }
.info-bar p { line-height: 1.3; }

.btn-green { background-color: #198754; }
.btn-3d:hover, .btn-3d:focus { background-color: #145b3a !important; }
.btn.btn-reveal i { top: 0px !important; }

.thumbnail { background-color: initial; }
.inews-item .inews-thumbnail { max-width: 300px; }
.info-bar.info-bar-color div.row > div { border-right-color: rgba(255, 255, 255, 0.2); }
.inews-item .inews-date-wrapper .inews-date-day { color: #c00; }
.inews-item .inews-date-wrapper .inews-date-month { color: #000; }
.inews-item .inews-date-wrapper .inews-date-year { color: #000; }
.inews-item .inews-date-wrapper:hover { background-color: rgb(0 93 255 / 12%); }
.whiteArrow:before { border-left: 10px solid rgb(0 93 255 / 12%) !important; }
.oped { font-size: 14px; line-height: 1.3; }
.cTitle:hover { color: #93328e; }

/* ---------------------------------------------------------------------------
 * Section 1 — Page header + mailing-list banner
 * ------------------------------------------------------------------------- */

.page-events section.page-header {
    position: relative;
}

.page-events section.page-header:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(147, 50, 142, 0.55) 0%, rgba(29, 66, 138, 0.55) 100%);
    pointer-events: none;
    z-index: 1;
}

.page-events section.page-header .container {
    position: relative;
    z-index: 2;
}

.page-events section.page-header h1 {
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.page-events section.page-header .breadcrumb {
    padding-top: 6px;
}

.page-events section.page-header .breadcrumb > li + li:before {
    color: rgba(255, 255, 255, .6);
}

.fct-mailing-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, var(--fct-purple) 0%, var(--fct-blue) 100%);
    color: #fff;
    border-radius: var(--fct-radius);
    box-shadow: var(--fct-card-shadow);
    padding: 24px 28px;
    margin: 0 0 30px 0;
}

.fct-mailing-cta__text {
    flex: 1 1 320px;
    min-width: 0;
}

.fct-mailing-cta h4 {
    color: #fff;
    margin: 0 0 6px 0;
    font-size: 22px;
    font-weight: 500;
}

.fct-mailing-cta h4 i {
    margin-right: 10px;
    opacity: .85;
}

.fct-mailing-cta p {
    color: rgba(255, 255, 255, .92);
    margin: 0;
    line-height: 1.5;
}

.fct-mailing-cta__btn {
    display: inline-flex;
    align-items: center;
    background: #fff;
    color: var(--fct-purple) !important;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 12px 26px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgb(0 0 0 / 12%);
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
    text-shadow: none;
}

.fct-mailing-cta__btn:hover,
.fct-mailing-cta__btn:focus {
    background: var(--fct-purple);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgb(0 0 0 / 18%);
}

@media (max-width: 767px) {
    .fct-mailing-cta {
        padding: 20px 22px;
    }
    .fct-mailing-cta__btn {
        width: 100%;
        justify-content: center;
    }
}

/* ---------------------------------------------------------------------------
 * Section 2 — Top FCT event hero box
 * ------------------------------------------------------------------------- */

.fct-event-hero {
    background: var(--fct-card-bg);
    border-radius: var(--fct-radius);
    border-top: 4px solid var(--fct-purple);
    box-shadow: var(--fct-card-shadow);
    padding: 28px 30px;
    margin-bottom: 30px;
}

@media (max-width: 767px) {
    .fct-event-hero { padding: 20px; }
}

.fct-event-hero .box-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    border: 0;
    padding: 0;
}

.fct-event-hero .box-title > i {
    width: 38px;
    height: 38px;
    line-height: 38px;
    text-align: center;
    border-radius: 50%;
    background: rgba(147, 50, 142, 0.12);
    color: var(--fct-purple);
    margin: 0;
    font-size: 18px;
}

.fct-event-hero .box-title h2 {
    display: inline;
    font-size: 22px;
    font-weight: 700;
    color: var(--fct-ink);
    margin: 0;
}

.fct-event-hero__main {
    display: grid;
    grid-template-columns: minmax(0, 220px) 1fr auto;
    gap: 28px;
    align-items: center;
    margin-bottom: 24px;
}

.fct-event-hero__main picture,
.fct-event-hero__main picture img {
    display: block;
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgb(0 0 0 / 6%);
}

.fct-event-hero__main .fct-event-hero__desc {
    color: var(--fct-ink);
}

.fct-event-hero__main .fct-event-hero__cta {
    text-align: center;
}

.fct-event-hero__main .fct-event-hero__cta .btn {
    box-shadow: 0 4px 12px rgb(25 135 84 / 24%);
}

@media (max-width: 767px) {
    .fct-event-hero__main {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .fct-event-hero__main .fct-event-hero__cta .btn {
        width: 100%;
    }
}

.fct-event-hero__info-bar {
    background: linear-gradient(180deg, #fff, #fafafa);
    border: 1px solid var(--fct-card-border);
    border-radius: 8px;
    padding: 20px 18px;
    margin: 0 0 24px 0;
}

.fct-event-hero__info-bar .row > [class*="col-"] {
    border-right: 1px dotted #d8d8d8;
}

.fct-event-hero__info-bar .row > [class*="col-"]:last-child {
    border-right: 0;
}

.fct-event-hero__info-bar h3 {
    font-size: 18px;
    color: var(--fct-purple);
    letter-spacing: .02em;
    margin: 0 0 8px 0;
}

.fct-event-hero__info-bar p {
    color: var(--fct-ink);
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 767px) {
    .fct-event-hero__info-bar .row > [class*="col-"] {
        border-right: 0;
        border-bottom: 1px dotted #d8d8d8;
        padding-top: 14px;
        padding-bottom: 14px;
    }
    .fct-event-hero__info-bar .row > [class*="col-"]:last-child {
        border-bottom: 0;
    }
}

.fct-event-hero__blocks {
    margin: 0;
}

.fct-event-hero__blocks .box-icon {
    transition: transform .2s ease;
}

.fct-event-hero__blocks .box-icon:hover {
    transform: translateY(-2px);
}

.fct-event-hero__blocks .box-icon .box-icon-title > i {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgb(0 0 0 / 10%);
    font-size: 28px;
    color: #fff;
}

.fct-event-hero__blocks .box-icon h2 {
    font-size: 18px;
    margin-top: 14px;
    color: var(--fct-ink);
}

.fct-event-hero__blocks .box-icon p {
    color: var(--fct-muted);
    line-height: 1.5;
}

.fct-block--orange { background-color: var(--fct-orange); }
.fct-block--pink   { background-color: var(--fct-pink); }
.fct-block--yellow { background-color: var(--fct-yellow); }

/* ---------------------------------------------------------------------------
 * Section 3 — Quick Links + Upcoming Webinars cards
 * ------------------------------------------------------------------------- */

.fct-flash-icon {
    color: #d9534f;
    margin-right: 8px;
    animation: fct-blink 1s linear infinite;
}

@keyframes fct-blink {
    0%, 49%   { opacity: 1; }
    50%, 100% { opacity: 0.2; }
}

.fct-quicklinks {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .fct-quicklinks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.fct-quicklink-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1.5px solid var(--fct-purple);
    color: var(--fct-purple);
    font-weight: 600;
    border-radius: 8px;
    padding: 14px 18px;
    text-align: left;
    text-decoration: none;
    text-shadow: none;
    line-height: 1.3;
    transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.fct-quicklink-btn:hover,
.fct-quicklink-btn:focus {
    background: var(--fct-purple);
    color: #fff;
    transform: translateX(2px);
    box-shadow: var(--fct-card-shadow-hover);
    text-decoration: none;
}

.fct-quicklink-btn:hover .fct-flash-icon,
.fct-quicklink-btn:focus .fct-flash-icon {
    color: #fff;
}

.fct-webinars {
    margin-bottom: 30px;
}

.fct-webinar-card {
    background: var(--fct-card-bg);
    border: 1px solid var(--fct-card-border);
    border-left: 4px solid var(--fct-orange);
    border-radius: var(--fct-radius);
    box-shadow: var(--fct-card-shadow);
    padding: 22px 26px;
    margin-bottom: 18px;
    transition: box-shadow .2s ease, transform .2s ease;
}

.fct-webinar-card:hover {
    box-shadow: var(--fct-card-shadow-hover);
    transform: translateY(-2px);
}

.fct-webinar-card:nth-of-type(2n) {
    border-left-color: var(--fct-pink);
}

.fct-webinar-card:nth-of-type(3n) {
    border-left-color: var(--fct-yellow);
}

.fct-webinar-card h3 {
    font-size: 22px;
    color: var(--fct-ink);
    margin: 0 0 10px 0;
}

.fct-webinar-card__date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--fct-purple);
    font-weight: 600;
    margin: 0 0 14px 0;
}

.fct-webinar-card__date i {
    color: var(--fct-purple);
}

.fct-webinar-card .btn-success {
    border-radius: 999px;
    padding: 10px 22px;
    box-shadow: 0 4px 12px rgb(25 135 84 / 24%);
}

/* ---------------------------------------------------------------------------
 * Misc utilities carried over (kept narrow — no global div.row>div img reset).
 * ------------------------------------------------------------------------- */

@media only screen and (max-width: 760px) {
    .box-icon { margin: 20px 0; }
    .noBottomMargin { margin-bottom: 0px !important; }
    .topMargin30 { margin-top: 30px !important; }
    .topMargin20 { margin-top: 20px !important; }
    .topMargin0 { margin-top: 0px !important; }
    .bottomMargin20 { margin-bottom: 20px !important; }
    .noLeftMargin { margin-left: -80px; }
    .noLeftPadding { padding-left: 0px; }
    .lineHeight0 { line-height: 0px !important; }
    .box-title > i { margin-bottom: 40px; }
    .eventDate span, .eventTime span { font-weight: bold; }
}

@media (min-width: 768px) {
    .eventDate {
        width: 28%;
        padding-right: 0;
    }
    .eventTime {
        width: 72%;
        padding-left: 10px;
    }
    .horizontalPadding10 {
        padding-left: 10px;
        padding-right: 10px;
    }
    .topPadding20 { padding-top: 20px; }
    .bottomPadding20 { padding-bottom: 20px; }
}
