/* ============================================
   Arc Card Carousel – Expanding Accordion Slider
   ============================================ */

.arc-carousel-section {
    position: relative;
    padding: 60px 0 80px;
    background: linear-gradient(180deg, #0a1a12 0%, #0d2818 40%, #0a1a12 100%);
    overflow: hidden;
}

.arc-carousel-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.arc-carousel-section .section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.arc-carousel-section .section-header h5 {
    font-family: 'Caveat', cursive;
    font-size: 22px;
    color: #6fcf97;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.arc-carousel-section .section-header h2 {
    font-family: 'Yeseva One', serif;
    font-size: 42px;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.arc-carousel-section .section-header h2 span {
    color: #6fcf97;
}

/* Carousel Container */
.arc-carousel-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.arc-carousel {
    display: flex;
    gap: 12px;
    height: 480px;
    width: 100%;
}

/* Individual Card */
.arc-card {
    position: relative;
    flex: 0.6;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.7s cubic-bezier(0.4, 0.0, 0.2, 1);
    min-width: 0;
}

.arc-card.active {
    flex: 4;
}

/* Card Image */
.arc-card .card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.arc-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.arc-card.active .card-image img {
    transform: scale(1.05);
}

/* Dark Overlay */
.arc-card .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.75) 100%
    );
    transition: background 0.5s ease;
    z-index: 1;
}

.arc-card:not(.active) .card-overlay {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

/* Vertical Label (shown when collapsed) */
.arc-card .card-label-vertical {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: translateX(-50%) rotate(180deg);
    white-space: nowrap;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 1;
    transition: opacity 0.4s ease 0.1s;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.arc-card.active .card-label-vertical {
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Content (shown when expanded) */
.arc-card .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 35px;
    z-index: 3;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.arc-card.active .card-content {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
}

.arc-card .card-content .card-tag {
    display: inline-block;
    background: rgba(111, 207, 151, 0.2);
    border: 1px solid rgba(111, 207, 151, 0.4);
    color: #6fcf97;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 30px;
    margin-bottom: 12px;
    backdrop-filter: blur(6px);
}

.arc-card .card-content h3 {
    font-family: 'Yeseva One', serif;
    font-size: 26px;
    color: #ffffff;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.arc-card .card-content p {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.5;
    max-width: 450px;
}

/* Progress Bar at bottom of active card */
.arc-card .card-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #6fcf97, #27ae60);
    z-index: 4;
    width: 0;
    border-radius: 0 2px 0 0;
    transition: none;
}

.arc-card.active .card-progress {
    animation: arcProgressFill 5s linear forwards;
}

@keyframes arcProgressFill {
    from { width: 0; }
    to { width: 100%; }
}

/* Decorative number */
.arc-card .card-number {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
    font-family: 'Yeseva One', serif;
    font-size: 48px;
    color: rgba(255,255,255,0.08);
    line-height: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.arc-card.active .card-number {
    opacity: 1;
    transition: opacity 0.5s ease 0.3s;
}

/* Navigation dots */
.arc-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.arc-carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.arc-carousel-dots .dot.active {
    background: #6fcf97;
    border-color: #6fcf97;
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(111, 207, 151, 0.5);
}

.arc-carousel-dots .dot:hover {
    border-color: #6fcf97;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1200px) {
    .arc-carousel {
        height: 420px;
    }
    .arc-card .card-content h3 {
        font-size: 22px;
    }
}

@media (max-width: 992px) {
    .arc-carousel-section {
        padding: 50px 0 60px;
    }
    .arc-carousel {
        height: 380px;
        gap: 8px;
    }
    .arc-card {
        border-radius: 16px;
    }
    .arc-card .card-content {
        padding: 20px 25px;
    }
    .arc-card .card-content h3 {
        font-size: 20px;
    }
    .arc-card .card-content p {
        font-size: 13px;
    }
    .arc-carousel-section .section-header h2 {
        font-size: 34px;
    }
}

@media (max-width: 768px) {
    .arc-carousel {
        flex-direction: column;
        height: auto;
        gap: 8px;
    }
    .arc-card {
        flex: none !important;
        height: 80px;
        border-radius: 14px;
        transition: height 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
    }
    .arc-card.active {
        height: 340px;
    }
    .arc-card .card-label-vertical {
        writing-mode: horizontal-tb;
        text-orientation: initial;
        transform: none;
        left: 20px;
        bottom: 50%;
        transform: translateY(50%);
        font-size: 14px;
    }
    .arc-card .card-number {
        font-size: 32px;
        top: 15px;
        right: 15px;
    }
    .arc-carousel-section .section-header h2 {
        font-size: 28px;
    }
    .arc-carousel-section .section-header h5 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .arc-carousel-section {
        padding: 40px 0 50px;
    }
    .arc-carousel-section .section-header {
        margin-bottom: 30px;
    }
    .arc-carousel-section .section-header h2 {
        font-size: 24px;
    }
    .arc-card.active {
        height: 300px;
    }
    .arc-card .card-content h3 {
        font-size: 18px;
    }
    .arc-card .card-content p {
        display: none;
    }
}
