/* Clinical Data Management Course Page Styles */

/* Page-specific override to reduce gap between sections without affecting global styles */
section.features {
    padding: 1rem 0;
}

/* Why Choose Section - Minimal Features Grid */
.minimal-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
    text-align: left;
}

.m-feature-item {
    display: flex;
    gap: 20px;
    padding-bottom: 20px;
    /* border-bottom: 1px solid #f0f0f0; */
}

.m-feature-icon {
    width: 45px;
    height: 45px;
    background: #f8f9fa;
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    flex-shrink: 0;
    border: 2px solid var(--secondary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.m-feature-content h4 {
    margin: 0 0 5px 0;
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.1rem;
}

.m-feature-content p {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

/* Eligibility Section - Stripes Layout */
.eligibility-stripes {
    margin: 40px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.eligibility-stripe {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 25px 35px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s ease;
}

.eligibility-stripe:nth-child(even) {
    background: #fafafa;
}

.eligibility-stripe:hover {
    background: #fff8e1;
}

.eligibility-stripe:last-child {
    border-bottom: none;
}

.stripe-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
    width: 60px;
    text-align: center;
}

.stripe-content {
    flex: 1;
    text-align: left;
}

.stripe-content h4 {
    margin: 0 0 5px 0;
    color: var(--secondary);
    font-size: 1.15rem;
    font-weight: 700;
}

.stripe-content p {
    margin: 0;
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* Salary Insights Section - Table Styling */
.salary-table-wrapper {
    margin-top: 30px;
    width: 100%;
    overflow-x: auto;
}

.salary-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.salary-table thead tr {
    background-color: var(--secondary);
    color: white;
}

.salary-table th {
    padding: 18px 25px;
    font-weight: 600;
    font-size: 1rem;
    background: var(--secondary);
    color: #fff;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.salary-table th:first-child {
    border-left: none;
}

.salary-table td {
    padding: 18px 25px;
    border-bottom: 1px solid #f0f0f0;
    border-left: 1px solid #f0f0f0;
    font-size: 0.95rem;
    color: #333;
}

.salary-table td:first-child {
    border-left: none;
}

.salary-table tr:last-child td {
    border-bottom: none;
}

.salary-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.salary-table tbody tr:hover {
    background-color: #fff8e1;
    transition: background 0.3s ease;
}

.salary-table td:nth-child(3) {
    font-weight: 700;
    color: var(--secondary);
}

/* Program Overview Premium Layout */
.overview-intro-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    text-align: justify;
    margin-top: 30px;
    margin-bottom: 50px;
}

.overview-intro-text p {
    margin-bottom: 20px;
}

.elegant-features-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 80px;
    row-gap: 0;
    padding: 0 15px;
    margin-top: 40px;
}

.elegant-feature-row {
    display: grid;
    grid-template-columns: 60px 140px 1fr;
    align-items: center;
    padding: 25px 0;
    border-bottom: 1px solid var(--primary);
    transition: all 0.3s ease;
}

.elegant-feature-row:nth-last-child(-n+2) {
    border-bottom: none;
}

.elegant-feature-row:hover {
    transform: translateX(8px);
    background: linear-gradient(90deg, rgba(255,183,0,0.05), transparent);
    border-radius: 12px;
    padding-left: 15px;
    margin-left: -15px;
    border-bottom-color: transparent;
}

.elegant-icon {
    font-size: 1.6rem;
    color: var(--primary);
    width: 48px;
    height: 48px;
    background: rgba(255, 183, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    transition: all 0.3s ease;
}

.elegant-feature-row:hover .elegant-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary);
    color: #fff;
    box-shadow: 0 5px 15px rgba(255, 183, 0, 0.3);
}

.elegant-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.elegant-value {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.5;
    font-weight: 500;
}

@media (max-width: 992px) {
    .elegant-features-wrapper {
        grid-template-columns: 1fr;
        padding: 0;
    }
    .elegant-feature-row:nth-last-child(2) {
        border-bottom: 1px solid var(--primary);
    }
    .elegant-feature-row:last-child {
        border-bottom: none;
    }
}

@media (max-width: 576px) {
    .elegant-feature-row {
        grid-template-columns: 50px 1fr;
        gap: 15px;
        align-items: start;
    }
    .elegant-title {
        grid-column: 2;
        margin-bottom: 5px;
        margin-top: 5px;
    }
    .elegant-value {
        grid-column: 2;
    }
    .elegant-icon {
        grid-row: span 2;
    }
}

/* Featured 2x2 Offering Cards */
.featured-offering-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.featured-card {
    background: #fff;
    padding: 50px 40px;
    border-radius: 24px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--primary);
    transition: width 0.3s ease;
    z-index: -1;
}

.featured-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(10, 38, 71, 0.12);
    border-color: transparent;
}

.featured-card:hover::before {
    width: 100%;
    opacity: 0.03;
}

.f-card-icon {
    width: 70px;
    height: 70px;
    background: #f8f9fa;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.featured-card:hover .f-card-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1) rotate(-5deg);
}

.featured-card h4 {
    color: var(--secondary);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 18px;
    line-height: 1.3;
}

.featured-card p {
    color: #4a4a4a;
    line-height: 1.8;
    font-size: 1.1rem;
    margin: 0;
}

@media (max-width: 992px) {
    .featured-offering-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* New Offering Cards (Original - Kept for reference or other uses) */
.offering-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.offering-card {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border-top: 5px solid var(--primary);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.offering-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    border-top-color: var(--secondary);
}

.offering-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
    opacity: 0.8;
}

.offering-card h4 {
    color: var(--secondary);
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.offering-card p {
    color: #5a5a5a;
    line-height: 1.8;
    font-size: 1.05rem;
    margin: 0;
}

/* Dual Pillar Roadmap Showcase */
.pillar-roadmap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
    position: relative;
}

.roadmap-column {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.roadmap-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary);
}

.roadmap-header i {
    font-size: 1.5rem;
    color: var(--primary);
}

.roadmap-header h3 {
    margin: 0;
    color: var(--secondary);
    font-size: 1.6rem;
    font-weight: 800;
}

.roadmap-item {
    display: flex;
    gap: 25px;
    position: relative;
    padding-left: 10px;
}

/* Subtle Vertical Line */
.roadmap-item::before {
    content: '';
    position: absolute;
    left: 31px;
    top: 55px;
    bottom: -55px;
    width: 2px;
    background: #f0f0f0;
    z-index: 1;
}

.roadmap-item:last-child::before {
    display: none;
}

.roadmap-icon-circle {
    width: 45px;
    height: 45px;
    background: #fff;
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
    color: var(--secondary);
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.roadmap-item:hover .roadmap-icon-circle {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

.roadmap-text h4 {
    margin: 0 0 8px 0;
    color: var(--secondary);
    font-size: 1.25rem;
    font-weight: 700;
}

.roadmap-text p {
    margin: 0;
    font-size: 1.05rem;
    color: #555;
    line-height: 1.6;
}

@media (max-width: 991px) {
    .pillar-roadmap {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 576px) {
    .roadmap-item {
        gap: 15px;
    }
    .roadmap-header h3 {
        font-size: 1.4rem;
    }
}

/* Adjust Responsive Layouts */
@media (max-width: 768px) {

    /* Hero Fixes */
    .hero {
        padding-top: 20px !important;
    }

    .hero h1 {
        font-size: 2.5rem !important;
        line-height: 1.3 !important;
        margin-top: 10px !important;
    }

    .hero .hero-text {
        font-size: 1rem !important;
        line-height: 1.5 !important;
    }

    .hero-grid {
        display: block !important;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    /* Features Fixes */
    .minimal-features-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .m-feature-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    /* Syllabus Fixes */
    .curriculum-modules {
        padding: 0 15px;
    }

    .curriculum-grid-modern {
        display: block !important;
    }

    /* Salary Table Mobile Fix */
    .salary-table th,
    .salary-table td {
        padding: 10px 8px !important;
        font-size: 0.8rem !important;
    }

    .salary-table th {
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Syllabus Section - Balanced Grid Layout (CDM Specific) */
.curriculum-modern {
    padding-top: 30px !important;
    padding-bottom: 10px !important;
}

.curriculum-grid-modern {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px 40px !important;
    align-items: start !important;
}

.curriculum-header {
    grid-column: 1 / -1 !important;
    text-align: center !important;
    margin-bottom: 25px !important;
}

.curriculum-modules {
    display: flex !important;
    flex-direction: column !important;
    gap: 25px !important;
}

.curriculum-card {
    height: 100% !important;
    margin-bottom: 0 !important;
}

@media (max-width: 991px) {
    .curriculum-grid-modern {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

/* Premium Career Scope Section */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.role-card {
    background: #fff;
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.role-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.role-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.role-card h4 {
    color: var(--secondary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.role-card .role-points {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
    width: 100%;
}

.role-card .role-points li {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.role-card .role-points li::last-child {
    margin-bottom: 0;
}

.role-card .role-points li::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* Career Path Progression */
.career-path-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 21px;
    margin-top: 10px;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
}

.path-step {
    background: var(--gray-100);
    color: var(--secondary);
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid #e2e8f0;
}

.path-step.highlighted {
    background: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
}

.path-arrow {
    color: #cbd5e1;
    font-size: 1.1rem;
}

@media (max-width: 600px) {
    .career-path-flow {
        flex-direction: column;
        padding: 20px 15px;
        gap: 12px;
    }
    
    .path-arrow {
        transform: rotate(90deg);
        margin: 2px 0;
    }

    .path-step {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}

/* Salary Brackets */
.salary-tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.salary-tier-card {
    background: #051B34;
    /* Elegant dark blue */
    color: #fff;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-bottom: 4px solid var(--primary);
}

.salary-tier-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(5, 27, 52, 0.3);
}

.tier-exp {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.tier-role {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #f1f5f9;
    min-height: 48px;
    /* Keeps grid uniform if text wraps */
}

.tier-amount {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

/* Premium Placement Timeline */
.placement-timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0;
}

/* The vertical connecting line */
.placement-timeline::before {
    content: '';
    position: absolute;
    top: 5px;
    bottom: 0;
    left: 16px;
    width: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 60px;
    z-index: 2;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 34px;
    height: 34px;
    background: #fff;
    border: 3px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--secondary);
    font-size: 1rem;
    z-index: 3;
    transition: all 0.3s ease;
}

.timeline-content {
    background: #fff;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 0 5px rgba(255, 184, 0, 0.15);
}

.timeline-item:hover .timeline-content {
    transform: translateX(8px);
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.timeline-content h4 {
    color: var(--secondary);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.timeline-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Curriculum Tools Footer */
.curriculum-tools-footer {
    grid-column: 1 / -1 !important;
    text-align: center !important;
    width: 100% !important;
    margin-top: 3rem !important;
    /* mt-5 equivalent */
    padding: 0 15px;
}

.curriculum-tools-footer p {
    font-size: 1.25rem !important;
    color: var(--secondary) !important;
    margin-bottom: 0 !important;
    line-height: 1.6 !important;
}

@media (max-width: 768px) {
    .curriculum-tools-footer p {
        font-size: 1.1rem !important;
    }
}