/* Career Pathways Modern Design */
.career-pathways-modern {
    background-color: var(--light-bg);
    padding: 80px 0;
    position: relative;
    width: 100%;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 15px; /* Add padding to prevent content from touching edges */
    box-sizing: border-box; /* Include padding in width calculation */
}

.career-intro {
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: center;
    padding: 0 15px; /* Add padding for smaller screens */
}

.career-highlight {
    margin-bottom: 50px;
}

.bridge-talent-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
    width: 100%;
}

.bridge-talent-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0 auto;
    flex-wrap: wrap; /* Allow wrapping for mobile */
    justify-content: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.bridge-talent-title::before,
.bridge-talent-title::after {
    content: '';
    width: 40px;
    height: 2px;
    background-color: var(--primary);
    margin: 0 15px;
}

.success-stories-container {
    width: 100%;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.success-stories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.success-story-card {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    overflow: hidden;
    transition: var(--transition);
    min-height: 250px;
    width: 100%;
}

.student-image-section {
    position: relative;
    overflow: hidden;
}

.student-image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.success-story-card:hover .student-image-section img {
    transform: scale(1.1);
}

.student-details-section {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

.student-name {
    font-size: 1.2rem; /* Fixed font size - was .2 */
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
    width: 100%;
    word-break: break-word; /* Handle long names */
}

.student-degree {
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 12px;
    width: 100%;
    word-break: break-word; /* Handle long degree names */
}

.career-details {
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    width: 100%;
    text-align: center;
}

.career-role {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 5px;
    word-break: break-word; /* Handle long role titles */
}

.career-company {
    color: var(--primary);
    font-size: 0.9rem;
}

.company-logo-section {
    background-color: var(--light-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    transition: var(--transition);
}

.company-logo {
    width: 100px;
    height: 100px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.company-logo img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
}

.success-story-card:hover .company-logo {
    transform: scale(1.05);
}

.career-cta {
    margin-top: 50px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 40px 20px;
    border-radius: var(--radius);
    width: 100%;
    box-sizing: border-box;
}

.career-cta h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    line-height: 1.4;
}

/* Responsive Adjustments */

/* Large tablets and small desktops (1024px - 1199px) */
@media (max-width: 1199px) and (min-width: 769px) {
    .success-stories-grid {
        gap: 20px;
        max-width: 1000px;
    }
    
    .success-story-card {
        min-height: 220px;
    }
    
    .student-details-section {
        padding: 15px;
    }
    
    .student-name {
        font-size: 1.1rem;
    }
    
    .company-logo {
        width: 80px;
        height: 80px;
    }
    
    .company-logo-section {
        padding: 12px;
    }
}

/* Tablets (768px - 1023px) */
@media (max-width: 1023px) and (min-width: 769px) {
    .success-stories-grid {
        gap: 15px;
        max-width: 800px;
    }
    
    .success-story-card {
        min-height: 200px;
    }
    
    .student-name {
        font-size: 1rem;
    }
    
    .student-degree,
    .career-company {
        font-size: 0.85rem;
    }
    
    .career-role {
        font-size: 0.95rem;
    }
    
    .company-logo {
        width: 70px;
        height: 70px;
    }
}

/* Small tablets and large phones (769px - 991px) - Single column starts here */
@media (max-width: 991px) {
    .success-stories-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
    
    .success-story-card {
        grid-template-columns: 1fr;
        min-height: auto;
        max-width: 100%;
    }
    
    .student-details-section {
        border-left: none;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .company-logo-section {
        padding: 20px;
    }
    
    .career-cta h3 {
        font-size: 1.5rem;
    }
}

/* Standard tablets (768px and below) */
@media (max-width: 768px) {
    .career-pathways-modern {
        padding: 60px 0;
    }
    
    .bridge-talent-title {
        font-size: 1.3rem;
    }
    
    .bridge-talent-title::before,
    .bridge-talent-title::after {
        width: 30px;
        margin: 0 10px;
    }
    
    .career-cta {
        padding: 30px 15px;
    }
    
    .career-cta h3 {
        font-size: 1.3rem;
    }
}

/* Mobile devices (576px and below) */
@media (max-width: 576px) {
    .career-pathways-modern {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .student-name {
        font-size: 1.1rem;
    }
    
    .student-degree,
    .career-company {
        font-size: 0.8rem;
    }
    
    .career-role {
        font-size: 0.9rem;
    }
    
    .bridge-talent-title {
        font-size: 1.1rem;
        flex-direction: column;
        gap: 15px;
    }
    
    .bridge-talent-title::before,
    .bridge-talent-title::after {
        width: 60px;
        margin: 0;
    }
    
    .company-logo {
        width: 70px;
        height: 70px;
    }
}

/* Fix for very small screens */
@media (max-width: 360px) {
    .student-name {
        font-size: 1rem;
    }
    
    .student-degree,
    .career-role,
    .career-company {
        font-size: 0.75rem;
    }
    
    .company-logo {
        width: 60px;
        height: 60px;
    }
}