/* Enhanced Education/Certifications Section Styling */

/* Level Section Headers */
.certification-level-section {
    margin-bottom: 3rem;
}

.level-title {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
}

.level-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.level-badge.expert {
    background: linear-gradient(135deg, #dc3545, #c82333);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.level-badge.associate {
    background: linear-gradient(135deg, #0066cc, #004499);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.level-badge.fundamentals {
    background: linear-gradient(135deg, #28a745, #218838);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

/* Compact Card Styling */
.certification-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    height: 240px; /* Reduced from 280px to 240px */
}

.certification-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.expert-card {
    border-left: 4px solid #dc3545;
}

.expert-card:hover {
    border-color: #dc3545;
    box-shadow: 0 12px 30px rgba(220, 53, 69, 0.2);
}

.associate-card {
    border-left: 4px solid #0066cc;
}

.associate-card:hover {
    border-color: #0066cc;
    box-shadow: 0 12px 30px rgba(0, 102, 204, 0.2);
}

.fundamentals-card {
    border-left: 4px solid #28a745;
}

.fundamentals-card:hover {
    border-color: #28a745;
    box-shadow: 0 12px 30px rgba(40, 167, 69, 0.2);
}

/* Card Content */
.certification-header {
    margin-bottom: 0.5rem; /* Reduced from 1rem */
}

.date-badge {
    position: absolute;
    top: 6px; /* Reduced from 8px */
    right: 6px; /* Reduced from 8px */
    background: rgba(0, 0, 0, 0.1);
    padding: 0.2rem 0.4rem; /* Reduced padding */
    border-radius: 10px; /* Reduced from 12px */
    font-size: 0.7rem; /* Reduced from 0.75rem */
    font-weight: 500;
    color: var(--text-secondary-color);
}

.certification-card .card-title {
    font-size: 0.85rem; /* Reduced from 0.9rem */
    font-weight: 600;
    line-height: 1.1; /* Tighter line height */
    color: var(--text-color);
    margin-bottom: 0.3rem; /* Reduced from 0.5rem */
    margin-top: 1.2rem; /* Reduced from 1.5rem */
    height: 2rem; /* Reduced from 2.4rem */
    display: flex;
    align-items: center;
    justify-content: center;
}

.school-name {
    color: var(--text-secondary-color);
    font-weight: 500;
    font-size: 0.75rem; /* Reduced from 0.8rem */
}

/* More Prominent Badge Styling */
.certification-badge {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem; /* Reduced padding to give more space to badge */
    margin-top: 0.3rem; /* Reduced margin */
}

.certification-badge img {
    max-width: 135px; /* Increased from 110px */
    max-height: 135px; /* Increased from 110px */
    width: auto;
    height: auto;
    border-radius: 10px; /* Slightly larger radius */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2); /* Enhanced shadow */
    transition: all 0.3s ease;
}

.certification-badge img:hover {
    transform: scale(1.08); /* Increased from 1.05 */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25); /* Enhanced hover shadow */
}

.certification-badge p {
    margin: 0;
}

/* Dark mode adjustments */
.dark .certification-card {
    background: var(--secondary-background-color-dark);
    border-color: var(--secondary-color-dark);
}

.dark .certification-card .card-title {
    color: var(--text-color-dark);
}

.dark .school-name {
    color: var(--text-secondary-color-dark);
}

.dark .date-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary-color-dark);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .certification-card {
        height: 260px;
    }
    
    .certification-card .card-title {
        font-size: 0.85rem;
        height: 2.2rem;
    }
    
    .certification-badge img {
        max-width: 90px;
        max-height: 90px;
    }
    
    .level-badge {
        font-size: 0.95rem;
        padding: 0.4rem 1.2rem;
    }
}

@media (max-width: 576px) {
    .certification-card {
        height: 240px;
    }
    
    .certification-badge img {
        max-width: 80px;
        max-height: 80px;
    }
}
