﻿:root {
    --sii-orange: #ff671f;
    --sii-orange-dark: #e65a1a;
    --sii-blue: #0049D0;
    --sii-teal: #15D4C9;
    --ls-spacing: 1px;
}

.ls-1 {
    letter-spacing: var(--ls-spacing);
}

.modern-banner {
    padding: 30px 0 !important;
    min-height: auto !important;
    margin-bottom: 0 !important;
}

    .modern-banner .why_title {
        text-align: left !important;
        margin: 0 0 8px 0 !important;
        line-height: 1.2;
    }

    .modern-banner .why_desc {
        width: 100% !important;
        text-align: left !important;
        margin: 0 !important;
        max-width: 800px;
    }

.banner-stats {
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 1.2rem !important;
}

    .banner-stats .stat-item {
        border-left: none !important;
        border-right: 3px solid var(--sii-orange);
        padding-right: 15px;
        padding-left: 0 !important;
        text-align: right;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

.modern-events-bg {
    background-color: #f4f7f9;
    padding-top: 20px;
    padding-bottom: 80px;
}

/* Card Styling */
.modern-event-card {
    background: #fff;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0,0,0,0.05) !important;
}

    .modern-event-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.12) !important;
    }

.card-img-wrapper {
    overflow: visible;
    padding-bottom: 15px;
}

.event-cover-img {
    height: 220px;
    object-fit: cover;
}

.event-placeholder-img {
    height: 220px;
}

.type-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    z-index: 5;
}

    .type-badge.webinar {
        background: var(--sii-teal);
    }

    .type-badge.hybrid {
        background: var(--sii-blue);
    }

    .type-badge.physical {
        background: var(--sii-orange);
    }

.status-pill {
    display: inline-block;
    padding: 4px 14px;
    background: var(--sii-blue);
    color: #fff;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 73, 208, 0.2);
}

.past-event .card-img-wrapper img {
    filter: grayscale(0.5);
    opacity: 0.8;
}

.past-event .date-floating .month {
    color: #6c757d;
}

.date-floating {
    position: absolute;
    bottom: -15px;
    right: 20px;
    background: #fff;
    width: 65px;
    height: 65px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    z-index: 10;
    border: 1px solid rgba(0,0,0,0.05);
}

    .date-floating .day {
        font-size: 1.4rem;
        font-weight: 800;
        color: #333;
        line-height: 1;
    }

    .date-floating .month {
        font-size: 0.7rem;
        text-transform: uppercase;
        font-weight: 700;
        color: var(--sii-orange);
    }

.card-body {
    margin-top: 10px;
}

.flag-icon {
    width: 22px;
    height: auto;
    border-radius: 2px;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Buttons */
.action-btn {
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 700;
    border: none;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.physical-btn {
    background: var(--sii-orange);
    color: #fff !important;
}

    .physical-btn:hover {
        background: var(--sii-orange-dark);
        box-shadow: 0 5px 15px rgba(255, 103, 31, 0.3);
    }

.webinar-btn {
    background: #f0f7ff;
    color: var(--sii-blue) !important;
    border: 1px solid var(--sii-blue);
}

    .webinar-btn:hover {
        background: var(--sii-blue);
        color: #fff !important;
    }

.action-btn:disabled,
.action-btn.disabled {
    background: #ccc !important;
    color: #888 !important;
    border-color: #ccc !important;
    cursor: not-allowed;
    box-shadow: none !important;
    pointer-events: auto;
}

/* Pill Filters */
.pill-btn {
    padding: 8px 24px;
    border-radius: 50px;
    border: 1px solid #eee;
    background: #f8f9fa;
    color: #666;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
}

    .pill-btn:hover {
        background: #eee;
    }

    .pill-btn.active {
        background: var(--sii-orange);
        color: #fff;
        border-color: var(--sii-orange);
        box-shadow: 0 4px 10px rgba(255, 103, 31, 0.2);
    }

.form-select:focus {
    border-color: var(--sii-orange);
    box-shadow: 0 0 0 0.25rem rgba(255, 103, 31, 0.1);
}

.filter-group-country {
    max-width: 300px;
}

.btn-clear-country {
    z-index: 5;
    margin-right: 25px;
}

/* iOS Toggle Switch Styling */
.ios-switch-wrapper {
    position: relative;
    width: 60px;
    height: 34px;
    display: flex;
    align-items: center;
}

.ios-switch-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ios-switch-label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e2e8f0;
    transition: .4s;
    border-radius: 30px;
    border: 1px solid #cbd5e1;
}

.ios-switch-handle {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    top: 2px;
    background-color: white;
    transition: .4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.ios-switch-input:checked + .ios-switch-label {
    background-color: var(--sii-orange);
    border-color: var(--sii-orange-dark);
}

    .ios-switch-input:checked + .ios-switch-label .ios-switch-handle {
        transform: translateX(34px);
    }

.timeline-label {
    font-size: 0.85rem;
    color: #64748b;
    transition: color 0.3s;
    cursor: pointer;
    line-height: 1;
    margin-top: 1px;
}

    .timeline-label.active {
        color: #0f172a;
        font-weight: 700 !important;
    }

/* Banner Stats */
.banner-stats .stat-item {
    border-left: 2px solid rgba(255,255,255,0.2);
    padding-left: 20px;
}

/* Custom Tooltip */
.tooltip-inner {
    max-width: 350px !important;
    padding: 10px 15px !important;
    text-align: left !important;
    border-radius: 8px !important;
    background-color: rgba(0, 73, 208, 0.95) !important;
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: rgba(0, 73, 208, 0.95) !important;
}
