 /* ---------- Carousel shell ---------- */
.carousel {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    min-height: 700px;
    height: 100vh;
    overflow: hidden;
    background-color: transparent important!;
}

/* ---------- Slides ---------- */
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity .8s ease, transform 1.2s ease;
    background-color: rgba(0,0,0,0.5);
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
    padding: 70px 80px;
    display: flex;
    align-items: center;
    pointer-events: none;
}
.slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
    pointer-events: auto;
}

.slide-inner { max-width: 800px; }

h1.slide-title {
    color: #fff;
    font-size: 40px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
    line-height: 1.15;
}
.subtitle {
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 27px;
    margin-bottom: 20px;
}
.slide p, .slide li { color: #fff; text-align: justify; font-size: 22px; line-height: 1.65; }

/* ---------- Learn More button ---------- */
.learn-more {
    display: inline-block;
    margin-top: 24px;
    background: #4fb4e8;
    color: #fff;
    padding: 12px 28px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}
.learn-more:hover {
    background: #3aa2d6;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,.3);
}
.learn-more:after {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
    transition: left .5s ease;
}
.learn-more:hover:after { left: 100%; }

.underline {
    margin-top: 22px;
    height: 2px;
    background: rgba(255,255,255,.75);
    width: 60%;
}

/* ---------- Design 3: cards ---------- */
.slide-inner .cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.slide-inner .cards .card {
    flex: 1 1 200px;
    border: 2px solid rgba(255,255,255,.35);
    border-radius: 10px;
    padding: 30px 20px 20px;
    background: transparent;
    position: relative;
    min-width: 200px;
    transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease;
}
.slide-inner .cards .card:hover {
    transform: translateY(-8px);
    border-color: #4fb4e8;
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
.slide-inner .cards .card .card-icon {
    position: absolute;
    top: -28px; left: 50%;
    transform: translateX(-50%);
    width: 56px; height: 56px;
    border-radius: 50%;
    background: #fff;
    color: #0c5192;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
}
.slide-inner .cards .card h3 {
    color: #fff;
    text-align: left;
    font-size: 15px;
    margin-bottom: 14px;
    font-weight: 700;
}
.slide-inner .cards .card ul {padding-left: 10px;}
.slide-inner .cards .card li { margin-bottom: 6px; color: #fff; font-size: 17px; text-align: left;}

/* ---------- Design 4: why-invest ---------- */
.why-title {
    padding-top: 20px;
    color: #ffffff;
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 20px;
    font-size: 22px; font-weight: 800;
    text-transform: uppercase;
}
.why-title .fa-lightbulb { color: #fff; font-size: 26px; }

.why-box {
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 10px 100px 100px 10px;
    padding: 24px 30px;
    max-width: 800px;
}
.why-box ul { list-style: none; }
.why-box ul ul { list-style: disc; margin: 6px 0 0 22px; }
.why-box ul ul li { display: list-item; font-size: 17px; margin-bottom: 2px; }
.why-box ul ul li:before { content: none; }

/* ---------- Dots ---------- */
.dots {
    position: absolute;
    bottom: 20px; left: 0; right: 0;
    text-align: center;
    z-index: 5;
}
.dot {
    display: inline-block;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #072e56;
    margin: 0 5px;
    cursor: pointer;
    transition: background .3s ease, transform .3s ease;
}
.dot.active { background: #fff; transform: scale(1.2); }
.dot:hover { background: #4fb4e8; }

/* ---------- Arrows ---------- */
.arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    z-index: 5;
    background: rgba(255,255,255,.15);
    color: #fff;
    border: none;
    width: 42px; height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: background .3s ease, transform .3s ease;
}
.arrow:hover { background: rgba(255,255,255,.3); transform: translateY(-50%) scale(1.15); }
.arrow.prev { left: 15px; }
.arrow.next { right: 15px; }

/* ---------- Animations ---------- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeRight {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes zoomIn {
    from { opacity: 0; transform: scale(.8); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes lineGrow {
    from { width: 0; }
    to   { width: 60%; }
}
@keyframes pulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50%      { transform: translateX(-50%) scale(1.08); }
}

/* Reset animated children when inactive so they replay */
.slide:not(.active) .slide-title,
.slide:not(.active) .subtitle,
.slide:not(.active) p,
.slide:not(.active) .learn-more,
.slide:not(.active) .underline,
.slide:not(.active) .card,
.slide:not(.active) .why-title,
.slide:not(.active) .why-box,
.slide:not(.active) .why-box li {
    opacity: 0;
    animation: none;
}

/* Active slide: staggered entrance */
.slide.active .slide-title { animation: fadeRight .8s ease .2s both; }
.slide.active .subtitle    { animation: fadeRight .8s ease .45s both; }
.slide.active p            { animation: fadeUp    .8s ease .65s both; }
.slide.active .learn-more  { animation: fadeUp    .7s ease .9s  both; }
.slide.active .underline   { animation: lineGrow  1s   ease 1.1s both; }

/* Design 3 cards - staggered zoom + pulsing icon */
.slide.active .card:nth-child(1) { animation: zoomIn .7s ease .3s both; }
.slide.active .card:nth-child(2) { animation: zoomIn .7s ease .5s both; }
.slide.active .card:nth-child(3) { animation: zoomIn .7s ease .7s both; }
.slide.active .card .card-icon   { animation: pulse 2.5s ease-in-out 1.2s infinite; }

/* Design 4 - checklist cascade */
.slide.active .why-title { animation: fadeRight .8s ease .2s both; }
.slide.active .why-box   { animation: fadeUp    .8s ease .4s both; }
.slide.active .why-box > ul > li:nth-child(1) { animation: fadeRight .6s ease .7s  both; }
.slide.active .why-box > ul > li:nth-child(2) { animation: fadeRight .6s ease .9s  both; }
.slide.active .why-box > ul > li:nth-child(3) { animation: fadeRight .6s ease 1.1s both; }
.slide.active .why-box > ul > li:nth-child(4) { animation: fadeRight .6s ease 1.3s both; }
.slide.active .why-box > ul > li:nth-child(5) { animation: fadeRight .6s ease 1.5s both; }

/* ---------- Responsive carousel ---------- */
@media (max-width: 1200px) {
    .slider-right-content { width: 300px; }
}

@media (max-width: 992px) {
    .slider-right-content {
        position: relative;
        width: 100%;
        min-height: auto;
        height: auto;
        padding: 30px 20px;
    }
    .slider-right-content .right-contents {
        position: relative;
        top: auto;
        transform: none;
        padding: 0;
    }
    h1.slide-title { font-size: 28px; }
}

@media (max-width: 768px) {
    .carousel { min-height: 900px; height: auto;}
    h1.slide-title { font-size: 24px; }
    .subtitle { font-size: 14px; }
    .slide p, .slide li { font-size: 13px; }
    .cards { flex-direction: column; gap: 10px; margin-top: 20px; }
    .slide-inner {padding-top: 100px;}
    .slide-inner .cards .card li { margin-bottom: 2px; font-size: 12px; text-align: justify;}
    .card { min-width: 100%; }
    .why-box { border-radius: 10px; padding: 20px; }
    .why-title { font-size: 18px; }
    .arrow { width: 36px; height: 36px; }
    .arrow.prev { left: 8px; }
    .arrow.next { right: 8px; }
}

@media (max-width: 480px) {
    .slide { padding: 30px 18px; }
    h1.slide-title { font-size: 20px; }
    .learn-more { padding: 10px 20px; font-size: 11px; }
    .slider-right-content .right-contents h3 { font-size: 22px; }
    .slider-right-content .right-contents h1 { font-size: 28px; }
    .slider-right-content .right-contents h4 { font-size: 14px; }
}

/* ---------- Right panel: blue palette ---------- */
:root {
    --rp-navy:        #0a2e5f;   /* deepest - overall card */
    --rp-navy-soft:   #103a73;   /* highlight cards */
    --rp-blue:        #1960a8;   /* component panel bg */
    --rp-blue-mid:    #2a7bc4;   /* mid accent */
    --rp-cyan:        #4fb4e8;   /* bright accent / CTA */
    --rp-cyan-light:  #7fd0f5;   /* subtle highlight */
    --rp-ice:         #e4f3fc;   /* text contrast */
    --rp-glass:       rgba(255, 255, 255, .08);
    --rp-border:      rgba(255, 255, 255, .12);
}

.slider-right-content {
    width: 360px;
    min-height: 100%;
    height: 100vh;
    position: absolute;
    right: 0;
    top: 0;
    background: linear-gradient(180deg,
                    rgba(10, 46, 95, .78) 0%,
                    rgba(25, 96, 168, .72) 55%,
                    rgba(42, 123, 196, .68) 100%);
    backdrop-filter: blur(10px);
    z-index: 2;
    overflow-y: auto;
    padding: 24px 20px;
    box-shadow: inset 2px 0 0 rgba(255, 255, 255, .08);
}

.slider-right-content::-webkit-scrollbar { width: 6px; }
.slider-right-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .25);
    border-radius: 3px;
}

.right-contents { position: relative; width: 100%; }

.right-item {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity .6s ease, transform .6s ease;
    pointer-events: none;
    display: none;
}
.right-item.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    display: block;
    animation: slideInRight .7s ease;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ---------- Invest CTA ---------- */
.invest-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: linear-gradient(135deg, var(--rp-cyan) 0%, var(--rp-blue-mid) 100%);
    color: #fff;
    padding: 14px 20px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 22px;
    box-shadow: 0 6px 16px rgba(79, 180, 232, .35);
    transition: transform .3s ease, box-shadow .3s ease;
    position: relative;
    overflow: hidden;
}
.invest-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(79, 180, 232, .5);
}
.invest-btn::after {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
    transition: left .6s ease;
}
.invest-btn:hover::after { left: 100%; }

/* ---------- Overall + Highlights grid ---------- */
.progress-overview {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 10px;
    margin-bottom: 22px;
}

/* Deepest navy for the project-wide anchor metric */
.overall-card {
    background: linear-gradient(145deg, var(--rp-navy) 0%, #061f44 100%);
    color: #fff;
    border-radius: 8px;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 150px;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 4px 12px rgba(6, 31, 68, .4);
    position: relative;
    overflow: hidden;
}
.overall-card::before {
    content: "";
    position: absolute;
    top: -40px; right: -40px;
    width: 100px; height: 100px;
    background: radial-gradient(circle, rgba(79, 180, 232, .25), transparent 70%);
    pointer-events: none;
}
.overall-label {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.15;
    color: rgba(255, 255, 255, .9);
}
.overall-value {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    letter-spacing: -1px;
}

/* Highlights sit a tone brighter — secondary metrics */
.highlight-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.highlight-card {
    background: linear-gradient(145deg, var(--rp-navy-soft) 0%, #0a2e5f 100%);
    color: #fff;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    justify-content: center;
    border-left: 3px solid var(--rp-cyan);
    transition: transform .3s ease, border-color .3s ease;
}
.highlight-card:nth-child(2) { border-left-color: var(--rp-cyan-light); }
.highlight-card:hover { transform: translateX(-2px); }
.highlight-label {
    font-size: 11px;
    line-height: 1.25;
    color: rgba(255, 255, 255, .85);
    font-weight: 500;
}
.highlight-value {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.5px;
}

/* ---------- Component progress panel (mid-blue) ---------- */
.component-progress {
    background: linear-gradient(160deg, var(--rp-blue) 0%, #104980 100%);
    border-radius: 8px;
    padding: 18px 16px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 4px 12px rgba(10, 46, 95, .3);
}

.component-progress h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    text-transform: uppercase;
    letter-spacing: .8px;
}
.component-progress h4::before {
    content: "";
    width: 4px; height: 14px;
    background: var(--rp-cyan);
    border-radius: 2px;
}

.component-list { list-style: none; padding: 0; margin: 0; }
.component-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    transition: background .3s ease;
}
.component-row:last-child { border-bottom: none; }
.component-row:hover { background: rgba(255, 255, 255, .04); }

.component-name {
    font-size: 12px;
    line-height: 1.3;
    color: rgba(255, 255, 255, .92);
    font-weight: 500;
}
.component-bar {
    height: 6px;
    background: rgba(255, 255, 255, .12);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    min-width: 60px;
}
.component-fill {
    height: 100%;
    border-radius: 3px;
    width: 0;
    transition: width 1.4s cubic-bezier(.22, .61, .36, 1);
    position: relative;
    overflow: hidden;
}
.component-fill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
                    transparent 0%,
                    rgba(255, 255, 255, .35) 50%,
                    transparent 100%);
    animation: shimmer 2.5s ease-in-out infinite;
}
.right-item.active .component-fill {
    width: var(--target-width, 0);
}

@keyframes shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Status-based fill colors (based on percentage) */
.component-fill.low    { background: linear-gradient(90deg, #ff6b6b, #ff8787); }
.component-fill.med    { background: linear-gradient(90deg, #ffa94d, #ffc078); }
.component-fill.good   { background: linear-gradient(90deg, var(--rp-cyan), var(--rp-cyan-light)); }
.component-fill.high   { background: linear-gradient(90deg, #51cf66, #8ce99a); }

.component-perc {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    min-width: 44px;
    text-align: right;
    letter-spacing: -.3px;
}

/* Highlighted component rows get a left accent */
.component-row.is-highlight {
    position: relative;
    padding-left: 10px;
}
.component-row.is-highlight::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 60%;
    background: var(--rp-cyan);
    border-radius: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .slider-right-content {
        position: relative;
        width: 100%;
        height: auto;
        padding: 24px;
    }
    .right-item { display: block; opacity: 1; transform: none; }
    .right-item:not(.active) { display: none; }
}
@media (max-width: 480px) {
    .progress-overview { grid-template-columns: 1fr; }
    .overall-card { min-height: auto; }
    .component-row { grid-template-columns: 1fr auto; }
    .component-bar { grid-column: 1 / -1; order: 3; }
}