/*============================================*/
/* SDGI CIRCULAR CAROUSEL WIDGET        */
/* Created: 2026/02/20                  */
/* Version: 1.0.0                       */
/*============================================*/

/* Circular Section Variables */
:root {
    --circ-brown: #9c1006;
    --circ-yellow: var(--color-gold);
    --circ-white: var(--color-white);
    --circ-transition: 0.8s;
    --circ-arc-push: 0px;
    --circ-line-h: 70px;
    --circ-mask-w: min(1700px, 90vw);            
    --circ-mask-h: 700px;   
    --circ-arc-gap: 45px; 
}

.circ-container {
    background-color: var(--circ-brown);
    height: 1000px;
    min-height: 1000px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    color: var(--circ-white);
    font-family: "Aeonik", sans-serif;
    box-sizing: border-box;
}

.circ-container * {
    box-sizing: border-box;
}

.circ-upper-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 25px;
    padding-left: 80px;
    padding-right: 80px;
    z-index: 10;
    flex: 0 0 auto;
    transition: padding-top 0.5s ease;
    max-width: 1400px;
    margin: auto;
    width: 100%;
}

.circ-lower-container {
    position: relative;
    flex: 1;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    overflow: hidden;
    pointer-events: none;
}

.circ-subtitle {
    font-size: 24px;
    margin: 0;
    margin-bottom: 8px;
    transition: font-size 0.5s ease;
}

.circ-title {
    font-size: 72px;
    font-weight: bold;
    line-height: 72px;
    max-width: 900px;
    margin: 0;
    transition: font-size 0.5s ease;
}

.circ-connector-line {
    position: absolute;
    bottom: var(--circ-mask-h);
    left: 50%;
    width: 1px;
    background: rgba(255, 255, 255, 0.6);
    z-index: 4;
    transform: translateX(-50%);
    height: 45px;
    margin-top: 20px;
    transition: bottom 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.circ-image-mask {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    background: transparent;
    border-top-left-radius: 50% 100%;
    border-top-right-radius: 50% 100%;
    overflow: hidden;
    pointer-events: auto;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    width: var(--circ-mask-w);
    height: var(--circ-mask-h);
}

.circ-image-mask::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.circ-image-mask.overlay-disabled::before {
    opacity: 0;
}

.circ-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* --- CHANGED: This is the FADE IN speed (0.4s) --- */
    transition: opacity 0.4s ease, transform 0.5s ease-in-out;
    opacity: 1;
    transform: scale(1.05);
}

.circ-slide-bg.fade-out {
    opacity: 0;
    /* --- CHANGED: This is the FADE OUT speed (0.2s) --- */
    transition: opacity 0.2s ease, transform 0.5s ease-in-out;
}

.circ-arc-system {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 10;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    width: calc(var(--circ-mask-w) + (var(--circ-arc-gap) * 2));
    height: calc((var(--circ-mask-h) + var(--circ-arc-gap)) * 2);
    bottom: calc(((var(--circ-mask-h) + var(--circ-arc-gap)) * -1) - var(--circ-arc-push));
    border: 1px solid rgba(255, 255, 255, 0.4); 
    border-radius: 50%;
}

.circ-static-arc-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    display: none; 
}

.circ-static-arc-svg circle {
    fill: none;
    stroke: rgba(255, 255, 255, 0.4);
    vector-effect: non-scaling-stroke;
    stroke-width: 1px;
}

.circ-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* --- CHANGED: This is the FADE IN speed (0.4s) --- */
    transition:
        opacity 0.4s ease,
        transform 0.4s ease,
        padding-bottom 0.5s ease;
    padding-bottom: 170px;
}

.circ-content-overlay.fade-out {
    opacity: 0;
    transform: translateY(20px);
    /* --- CHANGED: This is the FADE OUT speed (0.2s) --- */
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        padding-bottom 0.5s ease;
}

.circ-slide-number {
    font-family: "Inter", sans-serif;
    font-size: 140px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
    -webkit-text-stroke: 1px #ffffff;
    paint-order: stroke fill;
    opacity: 0.2;
    position: absolute;
    top: -50px;
    z-index: -1;
    transition:
        font-size 0.5s ease,
        top 0.5s ease;
}

.circ-slide-title-inner {
    font-size: 38px;
    font-weight: bold;
    margin-bottom: 24px;
    transition:
        font-size 0.5s ease,
        margin-bottom 0.5s ease;
}

.circ-slide-desc {
    font-size: 16px;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
    max-width: 440px;
    margin-bottom: 50px;
    padding: 0 20px;
    transition:
        font-size 0.5s ease,
        margin-bottom 0.5s ease;
}

.circ-button-size {
    display: flex;
    align-items: center;
    gap: 10px;
}

.circ-explore-btn {
    position: relative;
    z-index: 1;
    color: #000;
    width: 175px;
    height: 56px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: color 0.2s;
    font-size: 16px;
    outline: none;
}

.circ-btn-icon {
    width: 20px;
    height: 20px;
    display: block;
    object-fit: contain;
}

.circ-explore-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--circ-yellow);
    border-radius: 30px;
    z-index: -1;
    transition:
        transform 0.2s,
        background-color 0.2s;
    border: 1px solid var(--circ-yellow);
}

.circ-explore-btn:hover::before {
    background-color: #ffffff !important;
    border: 1px solid #000;
}
.circ-explore-btn:focus {
    outline: none;
}

.circ-nav-btn {
    position: absolute !important;
    bottom: 100px;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: none;
    justify-content: center !important;
    align-items: center !important;
    color: var(--circ-white) !important;
    z-index: 20 !important;
    transition:
        background-color 0.2s,
        transform 0.2s !important;
    pointer-events: auto !important;
    padding: 0 !important;
    outline: none;
    border: 1px solid #000 !important;
    background: rgb(255, 255, 255) !important;
}

.circ-nav-btn:hover {
    border: 1px solid var(--circ-yellow) !important;
    background-color: var(--circ-yellow) !important;
}
.circ-nav-btn:focus {
    outline: none;
}

.circ-nav-btn img {
    width: 10px;
    height: 16px !important;
    pointer-events: none;
    display: block;
}

.circ-nav-btn[id*="circ-btn-prev"] {
    left: max(30px, calc(50% - (var(--circ-mask-w) / 2) + 100px)) !important; 
}

.circ-nav-btn[id*="circ-btn-next"] {
    right: max(30px, calc(50% - (var(--circ-mask-w) / 2) + 100px)) !important;
}

.circ-rotation-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.circ-dot-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin-left: -20px;
    margin-top: -20px;
    pointer-events: auto;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform var(--circ-transition) cubic-bezier(0.25, 1, 0.5, 1);
}

.circ-dot-inner {
    position: absolute;
    display: flex;
    align-items: center;
    transition: transform var(--circ-transition) cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: center center;
}

.circ-dot {
    width: 22px;
    height: 22px;
    background-color: var(--circ-yellow);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 11px;
    color: #000;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.circ-dot-number {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.circ-dot-title {
    font-family: "Arial";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--circ-white);
    font-size: 22px;
    opacity: 0;
    white-space: nowrap;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.circ-dot-wrapper.side-left .circ-dot-title {
    right: 45px;
    text-align: right;
}

.circ-dot-wrapper.side-right .circ-dot-title {
    left: 45px;
    text-align: left;
}

.circ-dot-wrapper:hover .circ-dot {
    transform: scale(1.8);
}

.circ-dot-wrapper:hover .circ-dot-number {
    opacity: 1;
}

.circ-dot-wrapper:hover .circ-dot-title {
    opacity: 1;
}

.circ-dot-wrapper.active {
    pointer-events: none;
}

.circ-dot-wrapper.active .circ-dot {
    transform: scale(1.4);
    box-shadow: 0 0 0 6px rgba(253, 215, 101, 0.2);
}

.circ-dot-wrapper.active .circ-dot-number,
.circ-dot-wrapper.active .circ-dot-title {
    display: none;
}

@media(max-width: 1440px) {
    :root {
        --circ-mask-h: 575px;
        --circ-mask-w: 1200px;
    }

    .circ-upper-container {
        padding: 125px 32px 0;
    }
}

@media (max-width: 1024px) {
    .circ-upper-container {
        padding: 50px 30px 0 30px;
    }

    .circ-explore-btn {
        height: 48px;
        padding: 10px 24px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    :root {
        --circ-mask-w: 760px; 
        --circ-mask-h: 420px;
        --circ-arc-push: 0px; 
        --circ-line-h: 70px;
        --circ-arc-gap: 30px;
    }

    .circ-container {
        height: 725px !important;
        min-height: 725px !important;
        max-height: 725px;
        overflow: hidden;
    }

    .circ-upper-container {
        flex: 0 0 auto;
        padding-bottom: 0px;
        z-index: 20;
    }

    .circ-lower-container {
        position: relative;
        flex: 1;
        height: 100%;
        width: 100%;
        overflow: hidden;
    }

    .circ-connector-line {
        bottom: var(--circ-mask-h);
        height: 30px;
    }

    .circ-title {
        font-size: 30px;
        padding: 0 20px;
        line-height: 1.1;
    }

    .circ-image-mask {
        width: var(--circ-mask-w);
        height: var(--circ-mask-h);
        border-top-left-radius: 50% 100%;
        border-top-right-radius: 50% 100%;
        left: 50%;
        transform: translateX(-50%);
        bottom: 0;
        position: absolute;
    }

    .circ-slide-bg {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        transform: scale(1.05) !important;
    }

    .circ-content-overlay {
        width: 100%;
        max-width: none;
        left: 0;
        bottom: 0;
        transform: none;
        padding-top: 50px;
        padding-bottom: 60px;
        padding-left: 25px;
        padding-right: 25px;
        box-sizing: border-box;
    }

    .circ-subtitle {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .circ-slide-title-inner {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .circ-slide-desc {
        font-size: 14px;
        margin-bottom: 30px;
        line-height: 1.4;
        padding: 0;
        max-width: 300px;
    }

    .circ-slide-number {
        font-size: 72px;
        top: -10px;
        opacity: 0.3;
    }

    .circ-nav-btn {
        display: flex;
        bottom: 60px !important;
    }

    .circ-nav-btn[id*="circ-btn-prev"] {
        left: 30px !important;
    }
    
    .circ-nav-btn[id*="circ-btn-next"] {
        right: 30px !important;
        left: auto !important;
    }

    .circ-explore-btn {
        font-size: 15px;
    }

    .circ-arc-system {
        width: calc(var(--circ-mask-w) + (var(--circ-arc-gap) * 2));
        height: calc((var(--circ-mask-h) + var(--circ-arc-gap)) * 2);
        bottom: calc(((var(--circ-mask-h) + var(--circ-arc-gap)) * -1) - var(--circ-arc-push));
    }

    .circ-dot {
        width: 16px !important;
        height: 16px !important;
    }
    .circ-dot-wrapper {
        width: 16px;
        height: 16px;
        margin-left: -8px;
        margin-top: -8px;
    }
    .circ-dot-wrapper.active .circ-dot {
        transform: scale(1);
    }
}
.circ-dot-wrapper.active .circ-dot {
    transform: scale(1);
}