/* ===============================
   Slider Wrapper
================================ */
.exam-slider-wrapper {
    position: relative;
    max-width: 760px;
    margin: 60px auto;
    padding: 0 60px; /* space for arrows */
    overflow: hidden;
    min-height: 350px;
}

/* ===============================
   Card Track
================================ */
.exam-card-track {
    position: relative;
    height: 100%;
}

/* ===============================
   Exam Card
================================ */
.exam-card {
    position: absolute;
    display: flex;
    align-items: flex-start; /* align text to top of image */
    gap: 24px; 

    background: #fff;
    border-radius: 16px;
    padding: 26px 30px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
    border: 1px solid #e6eaee;

    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.55s ease, opacity 0.55s ease;
    pointer-events: none;
}

.exam-card.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    z-index: 2;
}
.exam-card.exit-left { transform: translateX(-120%); opacity: 0; }
.exam-card.exit-right { transform: translateX(120%); opacity: 0; }

/* ===============================
   Left Content
================================ */
.exam-card-content {
        flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* align items to top */
    align-items: flex-start; 
}

/* Center ONLY heading */
.exam-card-content h2 {
    text-align: left; /* heading aligned left with text */
    font-size: 1.6rem;
    color: #055f57;
       margin: 0 0 8px; /* reduce bottom spacing */

}

/* ===============================
   Text Styles
================================ */
/* Remove extra space in meta */
.meta {
    display: flex;
    flex-direction: column;
    gap: 2px;      /* very small gap between items */
    font-size: 0.9rem;
    margin-bottom: 4px; /* reduce bottom margin */
    align-items: flex-start; /* align text left */
}

.desc {
    font-size: 0.9rem;
    color: #374151;
      margin: 0;       /* remove default margin */
    line-height: 1.4; /* tighter spacing */
}

/* ===============================
   Right Image (Bigger & fixed)
================================ */
.exam-card-image {
    width: 280px; /* bigger width */
    height: 180px; /* bigger height */
    flex-shrink: 0;
    border-radius: 16px;
    overflow: hidden;
    align-self: center;
}
.exam-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===============================
   Arrows
================================ */
.exam-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 96px;
    background: rgba(5,95,87,0.06);
    color: #055f57;
    border-radius: 12px;
    border: none;
    font-size: 1.9rem;
    cursor: pointer;
    z-index: 6;
}
.exam-arrow.left { left: 0; }   /* perfectly aligned */
.exam-arrow.right { right: 0; }

/* ===============================
   Responsive Tablet (up to 768px)
================================ */
@media (max-width: 768px) {
    .exam-card {
        flex-direction: column;
        padding: 22px;
        align-items: center; /* center content */
    }

    .exam-card-content {
        width: 100%;
        justify-content: flex-start;
        text-align: center; /* better for smaller screens */
        margin-bottom: 16px; /* spacing before image */
    }

    .exam-card-content h2 {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .exam-card-image {
        width: 100%;
        height: 220px;
        margin-top: 0;
    }

    .meta {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .exam-arrow {
        top: auto; /* remove absolute top */
        bottom: -50px; /* position below card */
        transform: translateY(0);
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
    }

    .exam-arrow.left { left: 30%; }  /* horizontally aligned */
    .exam-arrow.right { right: 30%; }
}
@media (max-width: 480px) {

    /* Slider wrapper grows naturally, no extra space */
    .exam-slider-wrapper {
        max-width: 100%;
        padding: 0 12px;
        position: relative;    /* arrows positioned inside wrapper */
        min-height: auto;      /* remove large fixed height */
        overflow: visible;     /* allow arrows to show outside if needed */
    }

    /* Only one card shown, relative positioning for mobile */
    .exam-card {
        position: relative !important; /* overrides absolute */
        flex-direction: column;      
        align-items: flex-start;
        padding: 16px 12px;
        margin-bottom: 0;             /* remove extra space below */
        opacity: 1 !important;        /* ensure visible */
        transform: none !important;   /* no slide transform */
        pointer-events: auto !important;
        display: none;                 /* hide all initially */
    }

    /* Card content */
    .exam-card-content {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        text-align: left;
    }

    /* Heading */
    .exam-card-content h2 {
        font-size: 1.25rem;
        margin: 0;
        color: #055f57;
    }

    /* Image in the middle */
    .exam-card-image {
        width: 100%;
        height: 150px;
        margin: 8px 0;
        border-radius: 12px;
        overflow: hidden;
    }
    .exam-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* Meta info */
    .meta {
        display: flex;
        flex-direction: column;
        gap: 2px;
        font-size: 0.85rem;
        align-items: flex-start;
        margin-bottom: 4px;
    }

    /* Description */
    .desc {
        font-size: 0.85rem;
        line-height: 1.4;
        color: #374151;
        margin: 0;
    }

    /* Navigation Arrows */
    .exam-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 24px;                  /* smaller size for mobile */
        height: 24px;
        font-size: 1rem;              /* slightly smaller */
        background: rgba(5,95,87,0.06);
        color: #055f57;
        border-radius: 8px;
        border: none;
        cursor: pointer;
        z-index: 10;                  /* above card content */
    }
    .exam-arrow.left { left: -4px; }
    .exam-arrow.right { right: -4px; }
}
