/* Country Accordion Section */
.country-accordion-section {
    padding: 100px 0;
    background-color: #f8fafc; /* Very light grey/blue */
    font-family: 'Poppins', sans-serif;
}

.ca-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.ca-top-text {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.ca-title {
    font-size: 36px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 15px;
}

.ca-desc {
    font-size: 15px;
    color: #64748b;
    max-width: 500px;
    line-height: 1.6;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #7f181c;
    border: 1px solid #7f181c;
    border-radius: 30px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    background: #1a1f36;
    border-color: #1a1f36;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(26,31,54,0.15);
}

.btn-view-all-white {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 24px !important;
    background: #ffffff !important;
    border: 1px solid #ffffff !important;
    border-radius: 30px !important;
    color: #7f181c !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.btn-view-all-white:hover {
    background: #f8fafc !important;
    border-color: #f8fafc !important;
    color: #7f181c !important;
    box-shadow: 0 4px 12px rgba(255,255,255,0.25) !important;
}


/* Accordion Container */
.ca-accordion-container {
    display: flex;
    width: 100%;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.ca-panel {
    flex: 1;
    position: relative;
    overflow: hidden;
    transition: flex 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.ca-panel:last-child {
    border-right: none;
}

.ca-panel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
}

.ca-panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6); /* Dark overlay for inactive */
    transition: background 0.5s ease;
}

/* Active State */
.ca-panel.active {
    flex: 5; /* Expands to be much wider */
}

.ca-panel.active .ca-panel-bg {
    transform: scale(1.05);
}

.ca-panel.active .ca-panel-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0) 100%);
}

.ca-panel.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #7f181c;
}

/* Inactive Icon */
.ca-inactive-icon {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    transition: opacity 0.3s ease;
}

.ca-panel.active .ca-inactive-icon {
    opacity: 0;
    pointer-events: none;
}

/* Active Content */
.ca-active-content {
    position: absolute;
    bottom: 30px;
    left: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    transition-delay: 0s;
    width: calc(100% - 80px);
    pointer-events: none;
}

.ca-panel.active .ca-active-content {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s; /* delay so it animates in after expansion */
    pointer-events: auto;
}

.ca-flag-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.ca-flag-wrap img, .ca-flag-wrap .flag {
    font-size: 18px;
}

.ca-content-title {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 5px;
    line-height: 1.2;
}

.ca-content-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.btn-ca-enquire {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #7f181c;
    color: #ffffff;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-ca-enquire:hover {
    background: #9a0f15;
    color: #ffffff;
}

/* Pagination Dots */
.ca-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.ca-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    transition: all 0.3s ease;
}

.ca-dot.active {
    width: 24px;
    border-radius: 4px;
    background: #475569;
}

/* Responsive */
@media (max-width: 991px) {
    .ca-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .ca-accordion-container {
        height: 400px;
    }
    .ca-active-content {
        left: 20px;
        width: calc(100% - 40px);
    }
    .ca-content-title {
        font-size: 22px;
    }
}
@media (max-width: 767px) {
    .ca-accordion-container {
        flex-direction: column;
        height: 600px;
    }
    .ca-panel {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .ca-panel.active {
        flex: 3;
    }
    .ca-inactive-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}
