/* ==================== CERTIFICATION DETAIL PAGE STYLES ==================== */
.cert-detail-hero {
    margin-top: 110px;
    padding: 80px 0 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
}

.cert-detail-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.cert-level-badge {
    display: inline-block;
    padding: 0.6rem 1.8rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.cert-level-badge.associate {
    background: rgba(16, 185, 129, 0.3);
}

.cert-detail-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cert-detail-subtitle {
    font-size: 1.4rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.cert-detail-meta {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.cert-detail-meta span {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.cert-detail-meta i {
    font-size: 1.3rem;
}

/* Certification Overview Section */
.cert-overview {
    padding: 80px 0;
    background: var(--white);
}

.cert-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.cert-main-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.content-section {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.content-section:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.content-section .section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.content-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* Competency Grid */
.competency-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.competency-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--accent-color);
    border-radius: 12px;
    transition: var(--transition);
}

.competency-item:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, var(--accent-color), var(--white));
    box-shadow: var(--shadow);
}

.competency-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

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

.competency-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Target Audience */
.target-audience {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.audience-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    padding: 1rem;
    background: var(--accent-color);
    border-radius: 10px;
}

.audience-item i {
    color: var(--success-color);
    font-size: 1.3rem;
    margin-top: 0.2rem;
}

.audience-item p {
    font-size: 1.05rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* Assessment Details */
.assessment-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.detail-box {
    background: linear-gradient(135deg, var(--accent-color), var(--white));
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
}

.detail-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.detail-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.detail-box h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.detail-box p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Sidebar */
.cert-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: sticky;
    top: 130px;
}

.sidebar-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.sidebar-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.sidebar-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.sidebar-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.sidebar-card .btn-cta-primary,
.sidebar-card .btn-cta-secondary {
    width: 100%;
    justify-content: center;
    margin-bottom: 0.8rem;
}

.level-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--accent-color);
    border-radius: 10px;
    margin-bottom: 0.8rem;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
}

.level-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateX(5px);
}

.level-link i:first-child {
    font-size: 1.5rem;
}

.level-link span {
    flex: 1;
    font-weight: 600;
}

.help-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 0;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.help-link:hover {
    gap: 1.2rem;
}

/* ==================== ASSESSMENT DETAIL PAGE STYLES ==================== */
.assessment-detail-hero {
    margin-top: 110px;
    padding: 80px 0 60px;
    background: linear-gradient(135deg, var(--secondary-color), #374151);
    color: var(--white);
}

.assessment-detail-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.assessment-detail-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.assessment-detail-subtitle {
    font-size: 1.4rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

/* Assessment Overview */
.assessment-overview {
    padding: 80px 0;
    background: var(--white);
}

.assessment-intro {
    max-width: 900px;
    margin: 0 auto 5rem;
    text-align: center;
}

.intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* Assessment Components */
.assessment-components {
    margin-bottom: 6rem;
}

.component-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.component-card {
    background: linear-gradient(135deg, var(--accent-color), var(--white));
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
}

.component-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.component-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    font-weight: 800;
    box-shadow: var(--shadow);
}

.component-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin: 2rem 0 1.5rem;
}

.component-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.component-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Evaluation Dimensions */
.evaluation-dimensions {
    margin-bottom: 6rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 5rem 0;
    margin-left: -100vw;
    margin-right: -100vw;
    padding-left: 100vw;
    padding-right: 100vw;
}

.dimension-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.dimension-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 20px;
    transition: var(--transition);
    border: 2px solid var(--border-color);
}

.dimension-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.dimension-card.featured {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    transform: scale(1.05);
}

.dimension-card.featured:hover {
    transform: scale(1.08) translateY(-10px);
}

.dimension-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    color: var(--white);
}

.dimension-card.featured .dimension-icon {
    background: rgba(255, 255, 255, 0.2);
}

.dimension-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.dimension-card p {
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.dimension-card.featured p {
    color: rgba(255, 255, 255, 0.9);
}

.dimension-examples {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.dimension-card.featured .dimension-examples {
    border-top-color: rgba(255, 255, 255, 0.2);
}

.dimension-examples h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dimension-examples ul {
    list-style: none;
    padding: 0;
}

.dimension-examples li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
}

.dimension-examples li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.dimension-card.featured .dimension-examples li::before {
    color: var(--warning-color);
}

/* Assessment Process Timeline */
.assessment-process {
    margin-bottom: 6rem;
}

.process-timeline {
    max-width: 800px;
    margin: 3rem auto 0;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 40px;
    bottom: 40px;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-light));
}

.process-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: var(--shadow);
    z-index: 1;
}

.step-content {
    flex: 1;
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.step-content:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.step-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--secondary-color);
}

.step-content p {
    color: var(--text-light);
    line-height: 1.7;
}

/* FAQ Section */
.assessment-faq {
    margin-bottom: 5rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.faq-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.faq-item h4 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.faq-item h4 i {
    color: var(--primary-color);
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Assessment CTA */
.assessment-cta {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 5rem 3rem;
    border-radius: 25px;
    color: var(--white);
}

.assessment-cta h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.assessment-cta p {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 2.5rem;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 968px) {
    .cert-detail-title,
    .assessment-detail-title {
        font-size: 2.5rem;
    }

    .cert-content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .cert-sidebar {
        position: static;
    }

    .competency-grid,
    .assessment-details {
        grid-template-columns: 1fr;
    }

    .component-grid,
    .dimension-cards,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .dimension-card.featured {
        transform: scale(1);
    }

    .dimension-card.featured:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 640px) {
    .cert-detail-hero,
    .assessment-detail-hero {
        padding: 60px 0 40px;
    }

    .cert-detail-title,
    .assessment-detail-title {
        font-size: 2rem;
    }

    .cert-detail-subtitle,
    .assessment-detail-subtitle {
        font-size: 1.1rem;
    }

    .cert-detail-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .content-section {
        padding: 1.5rem;
    }

    .competency-item {
        flex-direction: column;
        text-align: center;
    }

    .process-timeline::before {
        left: 20px;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .process-step {
        gap: 1rem;
    }
}

/* Updated Certification Card Button Styles */
.cert-card .btn-cert {
    width: 100%;
    padding: 0.9rem;
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.cert-card .btn-cert:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateX(5px);
}

.cert-card .btn-cert i {
    transition: var(--transition);
}

.cert-card .btn-cert:hover i {
    transform: translateX(5px);
}

/* Updated Learn More Button */
.btn-learn-more {
    margin-top: 1.5rem;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-learn-more:hover {
    background: var(--primary-dark);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(37, 99, 235, 0.3);
}

.btn-learn-more i {
    transition: var(--transition);
}

.btn-learn-more:hover i {
    transform: translateX(5px);
}

/* Ensure has-dropdown class is properly styled */
.nav-item.has-dropdown {
    position: relative;
}

.nav-item.has-dropdown > .nav-link::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.7rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.nav-item.has-dropdown:hover > .nav-link::after {
    transform: rotate(180deg);
}

/* Mobile dropdown indicator */
@media (max-width: 968px) {
    .nav-item.has-dropdown .nav-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-item.has-dropdown .nav-link::after {
        margin-left: auto;
    }
}

/* Add these styles to your existing cert-assess.css */

/* Different color themes for each level */
.cert-level-badge.professional {
    background: rgba(59, 130, 246, 0.3);
}

.cert-level-badge.leader {
    background: rgba(251, 191, 36, 0.3);
}

/* Hero backgrounds for different levels */
.professional-hero {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
}

.leader-hero {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* Cert card enhancements */
.cert-tagline {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cert-card h3.cert-name {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    min-height: 3em;
}

/* Wider competency grid for leader level (9 items) */
.content-section:has(.competency-item:nth-child(9)) .competency-grid {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 968px) {
    .content-section:has(.competency-item:nth-child(9)) .competency-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .content-section:has(.competency-item:nth-child(9)) .competency-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive adjustments for certificate names */
@media (max-width: 768px) {
    .cert-card h3.cert-name {
        font-size: 1rem;
        min-height: auto;
    }
}

/* Additional spacing for better readability */
.cert-card {
    padding: 2rem;
}

.cert-card.highlighted {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.cert-card.highlighted:hover {
    transform: scale(1.08);
}

/* ==================== CERTIFICATION LEVEL COLOR THEMES - FIXED ==================== */

/* Level 1 - Associate Theme (Green) */
.cert-level-badge.associate {
    background: rgba(16, 185, 129, 0.3); /* Green */
}

.associate-hero {
    background: linear-gradient(135deg, #10b981, #059669); /* Green gradient */
}

.cert-overview.associate .competency-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.cert-overview.associate .detail-box i {
    color: #10b981;
}

.cert-overview.associate .audience-item i {
    color: #10b981;
}

/* Level 2 - Professional Theme (Blue) */
.cert-level-badge.professional {
    background: rgba(59, 130, 246, 0.3); /* Blue */
}

.professional-hero {
    background: linear-gradient(135deg, #3b82f6, #1e40af); /* Blue gradient */
}

.cert-overview.professional .competency-icon {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
}

.cert-overview.professional .detail-box i {
    color: #3b82f6;
}

.cert-overview.professional .audience-item i {
    color: #3b82f6;
}

/* Level 3 - Leader Theme (Orange/Gold) */
.cert-level-badge.leader {
    background: rgba(245, 158, 11, 0.3); /* Orange */
}

.leader-hero {
    background: linear-gradient(135deg, #f59e0b, #d97706); /* Orange gradient */
}

.cert-overview.leader .competency-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.cert-overview.leader .detail-box i {
    color: #f59e0b;
}

.cert-overview.leader .audience-item i {
    color: #f59e0b;
}

/* Home page certification cards with correct colors */
.cert-card[data-category="associate"] .cert-level {
    background: #10b981; /* Green */
}

.cert-card[data-category="professional"] .cert-level.advanced {
    background: #3b82f6; /* Blue */
}

.cert-card[data-category="leader"] .cert-level.professional {
    background: #f59e0b; /* Orange - fix the class name in HTML to 'leader' */
}

/* Fix the last card's level badge class in index.html */
/* Change <div class="cert-level professional">Level 3</div> 
   to <div class="cert-level leader">Level 3</div> */

.cert-level.leader {
    background: #f59e0b; /* Orange */
}