.elementor-element-fb90480 {
    padding-left: 0px !important;
}

.a-promo-text {
    font-size: min(34px, 2rem);  /* Limits max size to 34px while maintaining responsive behavior */
}

.elementor-element-c2e31e3  .e-con-inner {
    margin-top: -40px;
}

.a-antenatal-classes-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    margin-top: -30px;
}

.a-antenatal-classes-container .sw {

}

.a-antenatal-classes-container a {
    text-decoration: none !important;
}

.a-antenatal-classes-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
}

.a-header-content {
    flex: 1;
    padding-right: 40px;
}

.a-view-classes {
    display: inline-block;
    padding: 9px 30px;
    background: transparent;
    color: #4A2159;
    border: 1px solid #4A2159;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.a-view-classes:hover {
    background: #4A2159;
    color: white;
}

.a-antenatal-classes-header h3 {
   
    margin-bottom: 20px;

}

.a-antenatal-classes-header p {
    color: #6D6E70;
    font-size: 18px;
    line-height: 26px;
    font-weight: 500;
}

.a-antenatal-classes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.a-antenatal-class-card {
    background: #fff;
    border-radius: 20px;
    border: solid 1px black;
    overflow: hidden;
    min-height: 400px; /* Approximate height of the original card */
    display: flex;
    align-items: center;
    justify-content: center;
}

.a-placeholder-text {
    color: #666;
    font-size: 16px;
}

.a-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.a-instructor {
    display: flex;
    align-items: center;
    gap: 10px;
}

.a-instructor-image, .a-instructor-image-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
}

.a-instructor-name {
    font-weight: 500;
    color: #4A2B5C;
}

.a-bookmark-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #4A2B5C;
    opacity: 0.5;
}

.a-card-image, .a-card-image-placeholder {
    width: 100%;
    height: 200px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.a-card-content {
    padding: 20px;
}

.a-category-tag {
    display: inline-block;
    background: #E8F5E9;
    color: #2E7D32;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

.a-class-title {
    font-size: 20px;
    margin: 15px 0;
    color: #4A2B5C;
    font-weight: 600;
}

.a-class-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
}

.a-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

.a-rating-stars {
    color: #FFD700;
    letter-spacing: 2px;
}

.a-price {
    font-weight: 600;
    color: #4A2B5C;
}

.a-check-availability {
    width: 100%;
    background: #4A2B5C;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.a-calendar-icon {
    width: 16px;
    height: 16px;
    color: currentColor;
}

@media (max-width: 1024px) {
    .a-antenatal-classes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .a-antenatal-classes-grid {
        grid-template-columns: 1fr;
    }
    
    .a-antenatal-tabs {
        gap: 20px;
        flex-wrap: wrap;
    }
}

.a-antenatal-tabs {
    display: flex;
    gap: 40px;
    margin-bottom: 0;
    padding-bottom: 0;
    justify-content: start;
    position: relative;
    z-index: 3;
}

.a-tab-button {
    background: none;
    border: none;
    padding: 15px 30px;
    cursor: pointer;
    color: #666;
    font-size: 1.2em;
    position: relative;
    transition: color 0.3s;
    font-weight: 500;
    outline: none;
}

.a-tab-button:hover {
    color: #4A2B5C;
}

.a-tab-button.active {
    color: #4A2B5C;
    font-weight: 600;
}

.a-tab-button.active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(100% + 2px);
    background: white;
    border-radius: 10px 10px 0 0;
    z-index: -1;
}

.a-tab-button.active::after {
    display: none;
}

.a-tab-content {
    background: white;
    padding: 27px;
    position: relative;
    z-index: 2;
    border-radius: 0 0 10px 10px;
}

.a-promo-banner {
    background: #7653A3;
    color: white;
    padding: 19px 34px;
    border-radius: 10px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.a-promo-text {
    font-size: 24px;
    font-weight: 500;
}

.a-promo-text h2 {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    color: #ffffff !important;
    font-weight: 700;
}

.a-antenatal-classes-container *:not(.far):not(.fas):not(.fa):not([class*="fa-"]) {
    font-family: "museo-sans-rounded", sans-serif !important;
}

.a-timer-item .a-number {
    background: white;
    color: #000000;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 25px;
    display: block;
    margin-bottom: 5px;
    min-width: 45px;
    text-align: center;
    height: 50px;
    width: 52px; 
    display: flex;
    align-items: center;
}

.a-timer-item .a-label {
    font-size: 14px;
    color: white;
    font-weight: 700;
}

.a-separator {
    color: white;
    font-weight: 500;
    font-size: 25px;
    margin-top: -37px;
    line-height: 30px;/* Adjust to align with the number boxes */
}

@media (max-width: 768px) {
    .a-tab-content {
        padding: 15px 0 !important;
    }
    .a-promo-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        margin:0 15px;
    }

    .a-promo-text {
        font-size: 20px;
        margin-bottom: 15px;
    }
}

.a-countdown-timer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: -7px;
}

.a-timer-item {
    text-align: center;
}

/* Add new mobile styles */
@media (max-width: 767px) {
    .a-antenatal-tabs {
        display: none;
    }

    .a-header-content {
        margin-top: 30px;
    }

    .a-antenatal-classes-header {
        flex-direction: column;
    }
    
    .elementor-element-4b55222 {
        padding-left: 4%;
        padding-right: 4%;
    }

    .a-view-classes {
        margin-bottom: 0.6rem;;
    }

    .elementor-element-fb90480 p {
        padding-left: 4%;
        padding-right: 4%;
    }
    .a-mobile-header {
        margin-bottom: 10px;
        background: white;
        border-radius: 10px 10px 0 0;
    }

    .a-mobile-header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0;
        cursor: pointer;
    }
.a-mobile-header {
    margin-bottom: 0;
}

.a-tab-content {
    padding:15px;
}
    .a-mobile-header h5 {
        margin: 0;
        font-size: 18px;
        color: #4A2159;
    }

    .a-mobile-toggle {
        font-size: 24px;
        color: #4A2159;
        transition: transform 0.3s ease;
        display: inline-block;
        width: 24px;
        height: 24px;
        text-align: center;
        line-height: 24px;
        position: relative;
    }

    /* Create the plus/minus using pseudo-elements */
    .a-mobile-toggle::before,
    .a-mobile-toggle::after {
        content: '';
        position: absolute;
        background-color: #4A2159;
        transition: transform 0.3s ease;
    }

    /* Horizontal line */
    .a-mobile-toggle::before {
        width: 16px;
        height: 2.5px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    /* Vertical line */
    .a-mobile-toggle::after {
        width: 2.5px;
        height: 16px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    /* When active, hide the vertical line to create minus sign */
    .a-tab-content.active .a-mobile-toggle::after {
        transform: translate(-50%, -50%) scaleY(0);
    }

    /* Remove the text content from the toggle */
    .a-mobile-toggle {
        font-size: 0;
    }

    .a-tab-inner {
        display: none;  /* Hide all tab content by default */
    }

    .swiper-pagination {
        display: none;  /* Hide pagination dots */
    }
}

@media (min-width: 768px) {
    .a-mobile-header {
        display: none;
    }
}

/* Swiper styles */
.antenatal-swiper {
    overflow: hidden;
    padding: 20px 0;
}

/* Desktop view - show exactly 3 items */
@media (min-width: 768px) {
    .antenatal-swiper {
        overflow: visible !important;
    }

    .swiper-wrapper {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 30px !important;
        transform: none !important;
        max-width: 100% !important;
    }

    .swiper-slide {
        width: 100% !important;
        margin-right: 0 !important;
    }

    .swiper-pagination {
        display: none !important;
    }
}

/* Mobile view - enable slider functionality */
@media (max-width: 767px) {
    /* Make the container break out of Elementor padding */
    .elementor-container {
        overflow: visible !important;
    }

    .a-antenatal-classes-container {

        position: relative;
    }

    .a-mobile-header {
        padding: 0 15px !important;
    }
    
    .a-header-content {
        padding: 0 15px !important;
    }

    .antenatal-swiper {
        padding: 0 15px 0 0 !important;
        margin: 0 !important;
        position: relative;
    }

    .swiper-wrapper {
        display: flex !important;
    }

    .swiper-slide {
        width: 77% !important;
        margin-right: 15px !important;
        flex-shrink: 0;
        transition: transform 0.3s ease;
        outline: none !important;
        box-shadow: none !important;
    }

    .swiper-slide:focus,
    .swiper-slide:active,
    .swiper-slide-active {
        outline: none !important;
        box-shadow: none !important;
    }

    /* Show all tab content on mobile */
    .a-tab-content {
        display: block !important;
        padding-left: var(--e-container-margin, 20px);
        padding-right: var(--e-container-margin, 20px);
    }

    .tp-course-btn .tutor-btn {
        padding: 9px;
    }

    .swiper-slide.swiper-slide-active:last-child {
        margin-right: 15px !important;
    }
}

.swiper-pagination {
    position: relative;
    margin-top: 20px;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #4A2159;
    opacity: 0.3;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

/* Desktop/Mobile visibility */
@media (min-width: 768px) {
    .a-mobile-tab {
        display: none;
    }
}

@media (max-width: 767px) {
    .a-antenatal-tabs {
        display: none;
    }

    .swiper-pagination  {
        display: none !important;
    }

        .a-tab-content {
            margin-bottom: 0.3rem;
            border-radius: 0;
        }
    
    .a-mobile-tab {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        background: white;
        border-radius: 10px 10px 0 0;
        cursor: pointer;
        margin-bottom: 10px;
    }

    .a-mobile-tab h5 {
        margin: 0;
        font-size: 18px;
        color: #4A2159;
    }

    .a-mobile-toggle {
        font-size: 24px;
        color: #4A2159;
        transition: transform 0.3s ease;
        display: inline-block;
        width: 24px;
        height: 24px;
        text-align: center;
        line-height: 24px;
        position: relative;
    }

    /* Create the plus/minus using pseudo-elements */
    .a-mobile-toggle::before,
    .a-mobile-toggle::after {
        content: '';
        position: absolute;
        background-color: #4A2159;
        transition: transform 0.3s ease;
    }

    /* Horizontal line */
    .a-mobile-toggle::before {
        width: 16px;
        height: 2.5px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    /* Vertical line */
    .a-mobile-toggle::after {
        width: 2.5px;
        height: 16px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    /* When active, hide the vertical line to create minus sign */
    .a-tab-content.active .a-mobile-toggle::after {
        transform: translate(-50%, -50%) scaleY(0);
    }

    /* Remove the text content from the toggle */
    .a-mobile-toggle {
        font-size: 0;
    }

    .a-mobile-tab {
        border-bottom: none;
    }

    .antenatal-swiper {
        padding-right: 0;  /* Remove right padding to show next slide */
    }
    
    .swiper-slide {
        width: 80%;  /* Make slides slightly smaller to show more of next slide */
    }
} 

.a-view-classes.desktop-only {
    display: inline-block;
}

.a-view-classes.mobile-only {
    display: none;
    margin: 20px auto;
    text-align: center;
    width: fit-content;

}

@media (max-width: 767px) {
    .a-view-classes.desktop-only {
        display: none;
    }

    .a-view-classes.mobile-only {
        display: block;
        width: 100%;
        margin: 30px 0 15px 0;  /* Changed bottom margin to 15px */
        text-align: center;
        box-sizing: border-box;
    }
} 

/* Fix card heights - both desktop and mobile */
.swiper-slide {
    height: auto !important;
    display: flex !important;
    height: 100% !important;
    min-height: fit-content !important;
}

.tp-course-item {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    margin-bottom: 30px;  /* Default margin for desktop */
}

.tp-course-teacher {
    flex-shrink: 0;
}

.tp-course-thumb {
    flex-shrink: 0;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.tp-course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tp-course-content {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
}

.tp-course-tag {
    flex-shrink: 0;
}

.tp-course-title {
    flex: 1 1 auto !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 52px !important;  /* Ensures space for 2 lines */
}

.tp-course-rating {
    flex-shrink: 0;
    margin-top: auto !important;
}

.tp-course-btn {
    flex-shrink: 0;
    margin-top: auto !important;
}

/* Ensure consistent heights in the Swiper */
.swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.a-promo-banner .a-promo-text h2 {
    font-size:34px !important;
}

/* Fix bookmark icon hover state */
.save-bookmark-btn.acadia-save-bookmark-btn {
    color: #4A2159 !important;  /* Keep icon color consistent */
}

.save-bookmark-btn.acadia-save-bookmark-btn:hover {
    color: #4A2159 !important;  /* Maintain icon color on hover */
    background-color: transparent !important;  /* Ensure background stays transparent */
}

.save-bookmark-btn.acadia-save-bookmark-btn i {
    color: inherit !important;  /* Ensure icon inherits the color */
}

@media (max-width: 767px) {

    .a-tab-inner .swiper-wrapper {
        align-items: stretch !important;
    }
    .a-tab-inner .swiper-wrapper  .swiper-slide {   
        height: auto !important;
    }
    
    
    
    /* Initial state on page load */
    .a-tab-content {
        display: block;  /* Show the container */
        margin-bottom: 0.3rem;
        border-radius: 0;
    }

    .a-mobile-header {
        margin-bottom: 0;
        background: white;
        border-radius: 10px 10px 0 0;
        display: block;  /* Always show headers */
    }
    .swiper-slide {
    }

    .a-mobile-header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
       
        cursor: pointer;
    }

    /* Hide content by default */
    .a-tab-inner {
        display: none;  /* Hide all content initially */
        background: white;
    }

    /* Show content when active */
    .a-tab-content.active .a-tab-inner {
        display: block;
    }
}

/* Remove any transforms that might interfere with positioning */
.swiper-slide-active:last-child {
    transform: none !important;
}

.swiper-slide.swiper-slide-active:last-child {
    margin-right: 0 !important;
}


