/* Reset Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.career-img-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.career-img {
    display: block;
    width: 100%;
    height: auto;
}

.career-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    z-index: 1;
    text-align: center;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.3);
}


/* Content Wrapper */
.career-content {
    position: relative;
    max-width: 70%;
    margin: auto;
    padding: 20px;
    text-align: center;
}

/* Section Title */
.section-title {
    font-size: 32px;
    font-weight: bold;
    color: black; 
    margin-bottom: 80px;
}

/* Job Description */
.career-description {
    font-size: 18px;
    margin-bottom: 30px;
}

/* Career Box Row */
.career-box-row {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

/* Box for job details */
.career-box {
    background: rgba(238, 237, 237, 0.6);
    color: black;
    padding: 30px;
    border-radius: 10px;
    flex: 1;
    text-align: left;
    max-width: 32%;
    min-height: 200px; /* More height */
}

/* Underline & Change Heading Color */
.career-box h3 {
    text-decoration: underline;
    color: #0067FF; /* Dark blue */
    font-size: 22px;
    margin-bottom: 15px;
}

/* Increase Line Spacing for Bullet Points */
.career-box ul {
    padding-left: 20px;
    font-size: 18px;
    line-height: 2; /* Increase space between points */
}

/* Contact Section */
.career-contact {
    font-size: 18px;
    margin-bottom: 20px;
}

.career-contact a {
    color: #0067FF;
    font-weight: bold;
    text-decoration: none;
}

/* Download Button */
.career-btn {
    text-align: center;
    margin-top: 20px;
}

.download-btn {
    display: inline-block;
    padding: 15px 25px;
    background: #006ab3;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
}

.download-btn:hover {
    background: #004a8d;
}

.success-stories {
    text-align: center;
    padding: 40px 0;
}

.carousel-wrapper {
    position: relative;
    max-width: 1100px;
    margin: auto;
}

/* Controls at top-left corner of carousel-container */
.slider-controls {
    position: absolute;
    top: -60px;
    left: 0;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: transparent;
    border: 1.8px solid #0067FF;
    color: #0067FF;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
    font-weight: bold;
    padding: 0;
    opacity: 0.8;
}

.carousel-btn:hover:enabled {
    background-color: #f2f8ff;
    opacity: 1;
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.carousel-container {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 40px;
    scrollbar-width: none; 
    align-items: stretch;
}
.carousel-track::-webkit-scrollbar {
    display: none; 
}

.success-card {
    min-width: 300px;
    max-width: 350px;
    min-height: 600px; 
    background: white;
    border-radius: 12px;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.15);
    padding: 20px;
    flex-shrink: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
    transform: scale(0.95);
    opacity: 0.9;
    overflow: hidden;
}

.testimonial-text {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    padding: 10px;
    text-align: center;
}

.success-card p {
    font-size: 15px;
    margin: 15px 0 0;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.6;
}

/*.....zooming & highlighting....*/
.success-card.highlight {
    transform: scale(1.02);
    opacity: 1;
    box-shadow: 0 8px 20px rgba(0, 103, 255, 0.2);
    z-index: 1;
}

.success-card img {
    display: block;
    margin: 0 auto 15px auto; /* centers image horizontally */
    width: 100%;
    max-width: 250px;
    border-radius: 10px;
}


.slider-dots .dot {
    height: 10px;
    width: 10px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.slider-dots .dot.active {
    background-color: #0067FF;
}


/* Responsive Tweaks */
@media (max-width: 1000px) {
    .success-card {
        min-width: 45%;
    }
}
@media (max-width: 600px) {
    .success-card {
        min-width: 90%;
    }
}

/* Image Styling */
.success-image img {
    width: 100%;
    max-width: 250px; /* Adjust width */
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}


/* Responsive Design */
@media (max-width: 1024px) {
    .career-overlay {
        font-size: 2rem;
        padding: 5%;
    }

    .career-box-row {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .career-box {
        max-width: 100%;
    }

    .success-grid {
        flex-direction: column;
        gap: 20px;
    }

    .success-card {
        width: 100%;
    }

    .success-image img {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .testimonial-text {
        padding: 15px;
    }
}
