/* Interactive Carousel Styles */

.ic-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.ic-container.rtl-layout {
    direction: rtl;
}

.ic-main-title {
    text-align: center;
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 50px;
    font-weight: 700;
}

/* Carousel Wrapper */
.ic-carousel-wrapper {
    position: relative;
    padding: 0 60px;
    margin-bottom: 40px;
}

.ic-carousel-container {
    overflow: hidden;
    border-radius: 20px;
}

.ic-carousel {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 30px;
}

/* Carousel Items */
.ic-carousel-item {
    min-width: calc(33.333% - 20px);
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.5;
    transform: scale(0.85);
}

/* Center item styling */
.ic-carousel-item.center {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

/* Active card is always centered */
.ic-carousel-item.active {
    opacity: 1;
    transform: scale(1);
    z-index: 3;
}

.ic-card {
    /*background: white;*/
    border-radius: 15px;
    overflow: hidden;
    /*box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);*/
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.ic-carousel-item.center .ic-card {
    /*box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);*/
}

.ic-card:hover {
    transform: translateY(-5px);
}

.ic-carousel-item.center .ic-card:hover {
    transform: translateY(-10px);
    /*box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);*/
}

/* Active card styling - blue border */
.ic-carousel-item.active .ic-card {
    border: 1px solid #3333330a;
    /*box-shadow: 0 20px 60px rgba(0,0, 0, 0.4);*/
}

.ic-carousel-item.active .ic-card:hover {
    /*box-shadow: 0 20px 60px rgba(0,0, 0, 0.4);*/
}

.ic-card-image {
    width: 100%;
    height: 280px;
    display: block;
}
.ic-card img {
    object-fit: cover;
    width: 100%;
    height: 280px !important;
}

.ic-card-content {
    padding: 25px;
    text-align: center;
}

.ic-card-title {
    font-size: 1.3rem;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.4;
}

/* Navigation Buttons */
.ic-nav-button {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50% !important;
    background: white;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    /*box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);*/
    line-height: 1;
}

.ic-nav-button:hover {
    background: #3498db;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.ic-nav-button:active {
    transform: translateY(-50%) scale(0.95);
}

.ic-container.rtl-layout .ic-nav-button.ic-prev {
    right: 0;
}

.ic-container.rtl-layout .ic-nav-button.ic-next {
    left: 0;
}

.ic-container:not(.rtl-layout) .ic-nav-button.ic-prev {
    left: 0;
}

.ic-container:not(.rtl-layout) .ic-nav-button.ic-next {
    right: 0;
}

/* Content Display Area */
.ic-content-display {
    background: white;
    border-radius: 15px;
    padding: 40px;
    /*box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);*/
    min-height: 300px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    max-height: 0;
    overflow: hidden;
}

.ic-content-display.show {
    opacity: 1;
    transform: translateY(0);
    max-height: 2000px;
}

.ic-content-placeholder {
    text-align: center;
    color: #95a5a6;
    font-size: 1.2rem;
    padding: 60px 20px;
}

.ic-content-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ecf0f1;
}

.ic-content-icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.ic-content-title {
    font-size: 2rem;
    color: #2c3e50;
    flex: 1;
    margin: 0;
    font-weight: 700;
}

.ic-content-body {
    line-height: 1.8;
    color: #555;
    font-size: 1.1rem;
}

.ic-content-body h3 {
    color: #2c3e50;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 600;
}

.ic-content-body h4 {
    color: #34495e;
    margin-top: 20px;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.ic-content-body p {
    margin: 15px 0;
}

.ic-content-body ul,
.ic-content-body ol {
    margin: 15px 0;
    padding-right: 25px;
    padding-left: 25px;
}

.ic-content-body li {
    margin: 10px 0;
    color: #555;
}

.ic-content-body strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .ic-carousel-item {
        min-width: calc(50% - 15px);
    }
}

@media (max-width: 768px) {

    /* CAROUSEL: make it flat and clean */
    .ic-carousel {
        gap: 0;
    }

    .ic-carousel-item {
        min-width: 100%;
        opacity: 1 !important;
        transform: scale(1) !important;
        cursor: default;
    }

    .ic-carousel-item.center,
    .ic-carousel-item.active {
        transform: scale(1) !important;
        opacity: 1;
    }

    /* Disable hover effects on mobile */
    .ic-card:hover,
    .ic-carousel-item.center .ic-card:hover {
        transform: none;
    }

    /* Navigation buttons: smaller & higher */
    .ic-nav-button {
        top: 35%;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    /* Card image tighter */
    .ic-card-image,
    .ic-card img {
        height: 200px !important;
    }

    /* Content display: no collapsing animation */
    .ic-content-display {
        opacity: 1;
        transform: none;
        max-height: none;
        padding: 20px;
    }

    .ic-content-display.show {
        opacity: 1;
        transform: none;
    }

    /* Header stacks instead of horizontal */
    .ic-content-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .ic-content-title {
        font-size: 1.4rem;
    }

    /* Kill animation delays on mobile */
    .ic-content-display.show .ic-content-header,
    .ic-content-display.show .ic-content-body {
        animation: none;
    }

    .ic-carousel-wrapper {
        padding: 0;
    }
}
@media (max-width: 480px) {
    .ic-carousel-wrapper {
        padding: 0 45px;
    }

    .ic-main-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }

    .ic-content-display {
        padding: 20px;
    }

    .ic-card-content {
        padding: 20px;
    }

    .ic-card-title {
        font-size: 1.1rem;
    }

    .ic-content-body {
        font-size: 1rem;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ic-content-display.show .ic-content-header,
.ic-content-display.show .ic-content-body {
    animation: fadeInUp 0.6s ease forwards;
}

.ic-content-display.show .ic-content-body {
    animation-delay: 0.2s;
}