/* Custom Header Ribbon for Trimos Seminar 2026 */
:root {
    --trimos-ribbon-bg: #0b2d4b;
    --trimos-ribbon-primary: #ff9900;
    --trimos-ribbon-secondary: #146eb4;
    --trimos-ribbon-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.trimos-ribbon-wrapper {
    background: var(--trimos-ribbon-bg);
    background: linear-gradient(90deg, #09253f 0%, #104b77 50%, #09253f 100%);
    color: #fff;
    font-family: var(--trimos-ribbon-font);
    position: relative;
    z-index: 9999;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.4s ease;
}

.trimos-ribbon-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 45px 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    position: relative;
}

.trimos-ribbon-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 13.5px;
    line-height: 1.4;
    text-align: center;
    font-weight: 500;
}

.ribbon-badge {
    color: #ffb11a;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ribbon-title {
    color: #ffffff;
    font-weight: 800;
    text-transform: uppercase;
}

.ribbon-title--mobile {
    display: none !important;
}

.ribbon-info {
    color: #e2effa;
    font-weight: 500;
}

.ribbon-divider {
    color: rgba(226, 239, 250, 0.35);
    user-select: none;
    font-weight: 300;
}

.ribbon-btn {
    background: var(--trimos-ribbon-primary);
    color: #ffffff !important;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 30px;
    text-decoration: none !important;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(255, 153, 0, 0.35);
    border: none;
    animation: ribbonBtnPulse 2s infinite ease-in-out;
}

.ribbon-btn:hover {
    background: #e68a00;
    transform: translateY(-1.5px) scale(1.05);
    box-shadow: 0 6px 15px rgba(255, 153, 0, 0.55);
    animation-play-state: paused;
}

.trimos-ribbon-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    width: 26px;
    height: 26px;
    min-height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    line-height: 1;
    margin-right: 0;
}

.trimos-ribbon-close svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    stroke-width: 3px;
    display: block;
}

.trimos-ribbon-close:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    transform: translateY(-50%) rotate(90deg);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .trimos-ribbon-content {
        gap: 12px;
        font-size: 12.5px;
    }

    .trimos-ribbon-container {
        padding: 10px 40px 10px 15px;
    }
}

@media (max-width: 991px) {
    .trimos-ribbon-content {
        gap: 8px;
    }

    .ribbon-divider {
        display: none;
    }
}

@media (max-width: 767px) {
    .ribbon-badge,
    .ribbon-info,
    .ribbon-divider,
    .ribbon-title--desktop {
        display: none !important;
    }

    .ribbon-title--mobile {
        display: inline-block !important;
    }

    .trimos-ribbon-container {
        padding: 8px 35px 8px 15px;
        min-height: auto;
    }

    .trimos-ribbon-content {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 10px;
        font-size: 11px;
    }

    .ribbon-title {
        font-size: 11px;
        margin: 0;
    }

    .ribbon-btn {
        margin-top: 0;
        padding: 4px 12px;
        font-size: 10px;
        white-space: nowrap;
    }

    .trimos-ribbon-close {
        right: 8px;
        width: 20px;
        height: 20px;
        min-height: 20px;
    }

    .trimos-ribbon-close svg {
        width: 10px;
        height: 10px;
        stroke-width: 3.5px;
    }
}

@keyframes ribbonBtnPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(255, 153, 0, 0.35);
    }
    50% {
        transform: scale(1.04);
        box-shadow: 0 6px 16px rgba(255, 153, 0, 0.55);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(255, 153, 0, 0.35);
    }
}