/* =========================================
   VARIABLES & RESET
========================================= */
:root {
    --clbt-orange: #EE5900;
    --clbt-navy: #121E28;
    --clbt-white: #FFFFFF;
    --shadow: 0 9px 35.5px 7px rgba(35, 49, 65, 0.20);
    
    /* Fonts */
    --font-primary: 'Roboto', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;500;600&family=Roboto:wght@400;700&display=swap');

/* =========================================
   POPUP LAYER (Container)
========================================= */
.sticky-popup-layer {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999 !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

.sticky-popup-layer *,
.sticky-popup-layer *::before,
.sticky-popup-layer *::after {
    box-sizing: border-box !important;
}

/* =========================================
   SHARED POPUP STYLES
========================================= */
.popup {
    position: relative !important;
    box-shadow: var(--shadow) !important;
    pointer-events: auto !important;
}

/* Typography Defaults */
.popup h3 {
    font-family: var(--font-primary) !important;
    font-weight: 700 !important;
    line-height: 110% !important;
    margin: 0 0 10px 0 !important;
}
.popup p {
    font-family: var(--font-primary) !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    margin: 0 !important;
}
.popup span { 
    color: var(--clbt-orange) !important; 
}

.popup img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border: none !important;
    max-width: 100% !important;
}

.popup a {
    text-decoration: none !important;
}

/* Buttons */
.popup__btn, .popup__btn-full {
    background-color: var(--clbt-orange) !important;
    color: #FFF !important;
    font-family: var(--font-mono) !important;
    font-weight: 500 !important;
    line-height: 121.3% !important;
    text-transform: uppercase !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    border: none !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    text-decoration: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.popup__btn:hover, .popup__btn-full:hover {
    background-color: #CC4C00 !important;
}

/* Close Button (Default Outside) */
.popup__close {
    position: absolute !important;
    top: -30px !important;
    right: 0 !important;
    width: 24px !important;
    height: 24px !important;
    background: #FFF !important;
    color: #555 !important;
    border-radius: 50% !important;
    border: none !important;
    font-size: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    z-index: 99 !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
}


/* =========================================
   SECTION 1: CARDS (Bottom Right)
========================================= */

/* --- 360x320 --- */
.popup--360x320-dark, .popup--360x320-light {
    width: 360px;
    height: 320px;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 0;
    outline: 1px solid var(--clbt-navy);
}

.popup--360x320-dark {
    /* Gradients first, Image last. Image fills the background. */
    background-image: 
        linear-gradient(90deg, #121E28 28.81%, rgba(18, 30, 40, 0.00) 81.87%), 
        linear-gradient(0deg, rgba(18, 30, 40, 0.60) 0%, rgba(18, 30, 40, 0.60) 100%), 
        url('https://placehold.co/360x320/222/222'); /* Replace with your image path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #FFF;
}

.popup--360x320-light {
    background: linear-gradient(90deg, #FFF 28.81%, rgba(255, 255, 255, 0.00) 81.87%), 
                linear-gradient(0deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.75) 100%), 
                #FFF;
}

.popup--360x320-dark .popup__content,
.popup--360x320-light .popup__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 24px;
}

.popup--360x320-dark h3, .popup--360x320-light h3 { 
    font-size: 35px; 
    width: 100%; 
    margin-bottom: 10px;
}

.popup--360x320-dark p, .popup--360x320-light p { 
    margin: 0;
}

.popup--360x320-dark .popup__btn, .popup--360x320-light .popup__btn {
    width: 100%; font-size: 20px; padding: 15px;
}


/* --- 320x280 (Standard) --- */
.popup--320x280-dark, .popup--320x280-light {
    width: 320px; 
    height: 280px;
    display: flex; 
    flex-direction: column;
    justify-content: flex-end;
    outline: 1px solid var(--clbt-navy);
}

.popup--320x280-dark {
    /* Gradient Overlay + Background Image */
    background-image: 
        linear-gradient(0deg, rgba(18, 30, 40, 0.80) 0%, rgba(18, 30, 40, 0.80) 100%), 
        url('https://placehold.co/320x280/111/111'); /* Replace with your image path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #FFF;
}

.popup--320x280-light {
    background: #FFF;
    color: var(--clbt-navy);
}

.popup--320x280-dark .popup__content,
.popup--320x280-light .popup__content {
    padding: 30px 24px;
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    justify-content: center;
}

.popup--320x280-dark h3,
.popup--320x280-light h3 { font-size: 30px; }

.popup--320x280-dark .popup__btn,
.popup--320x280-light .popup__btn { width: 100%; height: 60px; font-size: 20px; }


/* --- 320x280 (Capitol/Event) --- */
.popup--320x280-capitol {
    width: 320px; height: 280px;
    display: flex; flex-direction: column;
    outline: 1px solid var(--clbt-navy);
    position: relative;
    background: var(--clbt-navy);
}
.popup--320x280-capitol .popup__header-img {
    position: absolute; top:0; left:0; width:100%; height:100%;
    background: url('https://placehold.co/320x280/121E28/555?text=Capitol') center/cover;
    opacity: 0.4;
    z-index: 0;
}
.popup--320x280-capitol .popup__overlay-content {
    position: relative; z-index: 1;
    flex: 1; padding: 24px;
    display: flex; flex-direction: column; justify-content: center;
    color: #FFF;
}
.popup--320x280-capitol h3 { font-size: 32px; }
.popup--320x280-capitol .popup__btn { width: 100%; height: 50px; font-size: 20px; position: relative; z-index: 2; }


/* --- 280x180 --- */
.popup--280x180-dark, .popup--280x180-light {
    width: 280px; 
    height: 180px;
    display: flex; 
    flex-direction: column;
    justify-content: flex-end;
    outline: 1px solid var(--clbt-navy);
}

.popup--280x180-dark {
    /* Gradient Overlay + Background Image */
    background-image: 
        linear-gradient(0deg, rgba(18, 30, 40, 0.80) 0%, rgba(18, 30, 40, 0.80) 100%), 
        url('https://placehold.co/280x180/111/111');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #FFF;
}

.popup--280x180-light { 
    background: #FFF; 
    color: var(--clbt-navy); 
}

.popup--280x180-dark .popup__content, 
.popup--280x180-light .popup__content {
    padding: 20px; 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

.popup--280x180-dark h3, 
.popup--280x180-light h3 { 
    font-size: 26px; 
    margin: 0 !important; 
}

.popup--280x180-dark .popup__btn, 
.popup--280x180-light .popup__btn {
    width: 100%; 
    height: 50px; 
    font-size: 16px;
}


/* =========================================
   TYPE 2: BOTTOM CENTER
========================================= */

/* --- 720x180 Split (Large) --- */
.popup--720x180-dark, .popup--720x180-light {
    width: 720px !important;
    height: 180px !important;
    display: flex !important;
    flex-direction: row !important;
    padding: 0 !important;
    box-shadow: var(--shadow) !important;
    /* overflow: hidden !important; */
    margin: 0 !important;
    box-sizing: border-box !important;
}

.popup--720x180-dark {
    background: var(--clbt-navy) !important;
    color: #FFF !important;
    outline: 1px solid var(--clbt-navy) !important;
}

.popup--720x180-light {
    background: #FFF !important;
    color: var(--clbt-navy) !important;
    outline: 1px solid var(--clbt-navy) !important;
}

.popup--720x180-dark .popup__col-text, 
.popup--720x180-light .popup__col-text {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-width: 0 !important;
}

.popup--720x180-dark .text-wrapper,
.popup--720x180-light .text-wrapper {
    flex: 1 !important;
    padding: 0 30px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 8px !important;
}

.popup--720x180-dark h3, .popup--720x180-light h3 { 
    font-size: 28px !important;
    line-height: 1.1 !important;
    margin: 0 !important;
}

.popup--720x180-dark p, .popup--720x180-light p { 
    font-size: 15px !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    opacity: 0.9 !important;
}

.popup__btn-full {
    width: 100% !important;
    height: 50px !important;
    flex-shrink: 0 !important;
    background-color: var(--clbt-orange) !important;
    color: #FFF !important;
    font-family: var(--font-mono) !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    letter-spacing: -0.36px !important;
    text-transform: uppercase !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    border: none !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    margin-top: auto !important;
    text-decoration: none !important;
    border-radius: 0 !important;
}
.popup__btn-full:hover {
    background-color: #CC4C00 !important;
}

.popup--720x180-dark .popup__col-img, 
.popup--720x180-light .popup__col-img {
    width: 240px !important;
    height: 100% !important;
    flex-shrink: 0 !important;
    border-left: 1px solid #121e28;
}

.popup--720x180-dark .popup__col-img img, 
.popup--720x180-light .popup__col-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* --- 728x120 Banner (Medium) --- */
.popup--728x120-icon, .popup--728x120-dark, .popup--728x120-light {
    width: 728px !important;
    height: 120px !important;
    outline: 1px solid var(--clbt-navy) !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Icon Version */
.popup--728x120-icon {
    background: linear-gradient(90deg, #121E28 28.81%, rgba(18, 30, 40, 0.00) 81.87%), 
                linear-gradient(0deg, rgba(18, 30, 40, 0.40) 0%, rgba(18, 30, 40, 0.40) 100%), 
                url('https://placehold.co/728x120/111/111') no-repeat, #121E28;
    background-size: cover;
    color: #FFF;
}
.popup--728x120-icon .icon-area {
    width: 129px !important;
    height: 120px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-right: 1px solid rgba(255,255,255,0.2) !important;
    background: #ffffff !important;
}
.popup--728x120-icon .icon-area img { 
    width: 80px !important; 
    height: auto !important; 
}

.popup--728x120-icon .content-area,
.popup--728x120-dark .content-area,
.popup--728x120-light .content-area {
    flex: 1 !important;
    padding: 0 25px !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Dark Version (No Icon) */
.popup--728x120-dark {
    background: linear-gradient(90deg, #121E28 28.78%, rgba(18, 30, 40, 0.00) 81.73%), 
                linear-gradient(0deg, rgba(18, 30, 40, 0.40) 0%, rgba(18, 30, 40, 0.40) 100%), 
                url('https://placehold.co/728x120/111/111') no-repeat, #121E28;
    background-size: cover;
    color: #FFF;
}

/* Light Version (No Icon) */
.popup--728x120-light { 
    background: #FFF !important; 
    color: var(--clbt-navy) !important; 
}

/* Banner Typography */
.popup--728x120-icon h3, .popup--728x120-dark h3 { 
    font-size: 25px !important; 
    margin-bottom: 5px !important; 
}
.popup--728x120-light h3 { 
    font-size: 27px !important; 
    margin-bottom: 5px !important; 
}
.popup--728x120-icon p, .popup--728x120-dark p, .popup--728x120-light p { 
    font-size: 15px !important; 
}

/* Banner Button */
.popup--728x120-icon .popup__btn, 
.popup--728x120-dark .popup__btn,
.popup--728x120-light .popup__btn {
    width: 133px !important;
    height: 120px !important;
    font-size: 18px !important;
    letter-spacing: -0.36px !important;
    padding: 10px !important;
    line-height: 1.2 !important;
    border-left: 1px solid #121e28 !important;
}

/* --- 480x100 Small Banner --- */
.popup--480x100-dark, .popup--480x100-light {
    width: 480px !important;
    height: 100px !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    outline: 1px solid var(--clbt-navy) !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}
.popup--480x100-dark {
    background: linear-gradient(90deg, #121E28 17.84%, rgba(18, 30, 40, 0.00) 70.1%), 
                linear-gradient(0deg, rgba(18, 30, 40, 0.40) 0%, rgba(18, 30, 40, 0.40) 100%), 
                url('https://placehold.co/480x100/111/111') no-repeat;
    background-size: cover;
    color: #FFF;
}
.popup--480x100-light { 
    background: #FFF !important; 
    color: var(--clbt-navy) !important; 
}

.popup--480x100-dark .content-area, .popup--480x100-light .content-area {
    padding: 10px 20px !important;
    flex: 1 !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.popup--480x100-dark h3, .popup--480x100-light h3 { 
    font-size: 24px !important; 
    margin: 0 !important; 
}

.popup--480x100-dark .popup__btn, .popup--480x100-light .popup__btn {
    height: 100% !important;
    width: 140px !important;
    font-size: 18px !important;
    letter-spacing: -0.36px !important;
    padding: 10px !important;
    border-left: 1px solid #121e28 !important;
}

/* --- Full Width (100% x 120) --- */
.popup-fw-container {
    width: 100%;
    max-width: 1440px;
    height: 120px;
    display: flex;
    justify-content: center;
    position: relative;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.fw-dark { 
    background: var(--clbt-navy); 
    color: #FFF;
    outline: 1px solid var(--clbt-navy); 
}

.fw-light { 
    background: #FFF; 
    color: var(--clbt-navy);
    outline: 1px solid var(--clbt-navy); 
}

.popup__fw-inner {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
}

.popup__fw-inner .col-img {
    width: 392px;
    height: 120px;
    flex-shrink: 0;
    overflow: hidden;
    border-right: 1px solid #121e28;
}

.popup__fw-inner .col-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.popup__fw-inner .col-content {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
}

.popup__fw-inner .text-group { 
    padding: 0 30px; 
    flex: 1;
}

.popup__fw-inner h3 { 
    font-size: 32px; 
    margin-bottom: 5px; 
}

.popup__fw-inner p {
    font-size: 16px;
    margin: 0;
}

@media (max-width: 1440px) {
    .popup__fw-inner h3 { 
        font-size: 26px; 
        margin-bottom: 5px; 
    }
}

.popup__fw-inner .popup__btn {
    width: 232px;
    height: 50px;
    margin-right: 30px;
    flex-shrink: 0;
}


/* =========================================
   TYPE 3: FULLSCREEN CENTER (MODAL)
========================================= */
.popup--720x460-dark, .popup--720x460-light {
    width: 720px !important;
    height: 460px !important;
    outline: 2px solid var(--clbt-navy) !important;
    display: flex !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}
.popup--720x460-dark .col-img img, .popup--720x460-light .col-img img {
    height: 100% !important;
}
.popup--720x460-dark { 
    background: var(--clbt-navy) !important; 
    color: #FFF !important; 
}
.popup--720x460-light { 
    background: #FFF !important; 
    color: var(--clbt-navy) !important; 
}

.popup--720x460-dark .col-img, .popup--720x460-light .col-img {
    width: 360px !important;
    height: 100% !important;
    flex-shrink: 0 !important;
    border-right: 2px solid #121e28;
}

.popup--720x460-dark .col-content, .popup--720x460-light .col-content {
    width: 360px !important;
    padding: 0 !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

.modal-text-wrapper {
    flex: 1 !important;
    padding: 40px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.popup--720x460-dark h3, .popup--720x460-light h3 { 
    font-size: 45px !important; 
    line-height: 1.1 !important;
    margin-bottom: 20px !important; 
}

.popup--720x460-dark .meta p, .popup--720x460-light .meta p {
    font-family: var(--font-mono) !important;
    font-size: 20px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}
.popup--720x460-dark .meta p { 
    color: #FFF !important; 
}
.popup--720x460-light .meta p { 
    color: #000 !important; 
}

.popup--720x460-dark .popup__btn, .popup--720x460-light .popup__btn {
    width: 100% !important;
    height: 64px !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    letter-spacing: -0.44px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

/* Close Inside Override */
.popup__close--inside {
    top: 15px !important;
    right: 15px !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 24px !important;
    color: inherit !important;
}


/* =========================================
   TYPE 4: MOBILE ONLY
========================================= */

/* --- 320x60 Small --- */
.popup--320x60-dark, .popup--320x60-light {
    width: 320px !important;
    height: 60px !important;
    outline: 1px solid var(--clbt-navy) !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}
.popup--320x60-dark {
    background: linear-gradient(90deg, #121E28 17.84%, rgba(18, 30, 40, 0.00) 70.1%), 
                linear-gradient(0deg, rgba(18, 30, 40, 0.40) 0%, rgba(18, 30, 40, 0.40) 100%), 
                url('https://placehold.co/320x60/111/111') no-repeat;
    background-size: cover;
    color: #FFF;
}
.popup--320x60-light { 
    background: #FFF !important; 
    color: var(--clbt-navy) !important; 
}

.popup--320x60-dark .content, .popup--320x60-light .content {
    flex: 1 !important;
    padding-left: 15px !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;

}
.popup--320x60-dark h3, .popup--320x60-light h3 { 
    font-size: 16px !important; 
    margin: 0 !important; 
}

.popup--320x60-dark .popup__btn, .popup--320x60-light .popup__btn {
    width: 83px !important;
    height: 100% !important;
    font-size: 12px !important;
    letter-spacing: -0.24px !important;
    padding: 0 !important;
    line-height: 1.1 !important;
}

/* --- 320x280 Medium Mobile --- */
.popup--mob-medium-dark, .popup--mob-medium-light {
    width: 320px; height: 280px;
    outline: 1px solid var(--clbt-navy);
    display: flex; flex-direction: column; justify-content: flex-end;
}
.popup--mob-medium-dark {
    background: linear-gradient(0deg, rgba(18, 30, 40, 0.80) 0%, rgba(18, 30, 40, 0.80) 100%), 
                url('https://placehold.co/320x280/111/111') center/cover no-repeat;
    color: #FFF;
}
.popup--mob-medium-light { background: #FFF; color: var(--clbt-navy); }

.popup--mob-medium-dark .popup__content, .popup--mob-medium-light .popup__content {
    padding: 30px 24px;
    flex: 1; display: flex; flex-direction: column; justify-content: center;
}
.popup--mob-medium-dark h3, .popup--mob-medium-light h3 { font-size: 32px; }
.popup--mob-medium-dark .meta-text, .popup--mob-medium-light .meta-text {
    font-family: var(--font-mono);
    font-size: 18px;
    letter-spacing: 0.54px;
    text-transform: uppercase;
}
.popup--mob-medium-light .meta-text { color: var(--clbt-navy); }

.popup--mob-medium-dark .popup__btn, .popup--mob-medium-light .popup__btn {
    width: 100%; height: 49px;
    font-size: 20px;
    letter-spacing: -0.4px;
}


/* =========================================
   POSITIONING
========================================= */
.sticky-popup-layer .popup {
    position: fixed !important;
    z-index: 9999 !important;
}

/* Bottom Right */
.sticky-popup-layer .popup.pos-br {
    bottom: 12px !important;
    right: 12px !important;
}

/* Bottom Center */
.sticky-popup-layer .popup.pos-bc {
    bottom: 12px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

/* Center (Full Screen Modal) */
.sticky-popup-layer .popup.pos-center {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

/* Full Width Bottom */
.sticky-popup-layer .popup.pos-fw {
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    max-width: 1440px !important;
}
@media (min-width: 1440px) {
    .sticky-popup-layer .popup.pos-fw {
        bottom: 15px !important;
    }
}

/* Type 3 Overlay */
.sticky-popup-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(255, 255, 255, 0.5) !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
}

/* Animation */
.popup {
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

.popup.is-open {
    opacity: 1 !important;
}

.sticky-popup-overlay {
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

.sticky-popup-overlay.is-open {
    opacity: 1 !important;
}
