/* Modern Education Design */
.edu-card {
    background: rgba(13, 25, 48, 0.7);
    border: 1px solid rgba(0, 240, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.edu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 240, 255, 0.05), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s;
}

.edu-card:hover {
    transform: translateY(-5px) translateX(5px);
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 240, 255, 0.1) inset;
    background: rgba(13, 25, 48, 0.85);
}

.edu-card:hover::before {
    opacity: 1;
}

.edu-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.edu-card:hover .edu-icon {
    background: rgba(0, 240, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    transform: scale(1.1) rotate(5deg);
}

.edu-icon i {
    font-size: 2rem;
    color: #00F0FF;
    transition: all 0.3s;
}

.edu-card:hover .edu-icon i {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.edu-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #fff, #94A3B8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.edu-card:hover .edu-content h3 {
    background: linear-gradient(90deg, #00F0FF, #7000FF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.edu-content .school {
    color: #00F0FF;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.edu-content .school span,
.edu-content .school i {
    color: #00F0FF;
}

.edu-content .year {
    font-size: 0.9rem;
    color: #fff;
    background: linear-gradient(90deg, #00F0FF, #7000FF);
    padding: 6px 16px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 1rem;
    border: none;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
    font-weight: 600;
}

.edu-card:hover .edu-content .year {
    background: linear-gradient(90deg, #00F0FF, #7000FF);
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(0, 240, 255, 0.3);
}

.edu-content .desc {
    color: #94A3B8;
    line-height: 1.7;
}

/* Cert Title */
.cert-title {
    font-size: 1.8rem;
    color: #fff;
    margin: 4rem 0 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
}

.cert-title i {
    color: #00F0FF;
}

.cert-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 240, 255, 0.5), transparent);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

/* Modern Certificate Design Premium */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    padding-bottom: 2rem;
}

.cert-card-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.cert-card {
    background: rgba(13, 25, 48, 0.6);
    border: 1px solid rgba(0, 240, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    gap: 1.25rem;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Hover Content Lift */
.cert-card:hover {
    transform: translateY(-5px);
    background: rgba(13, 25, 48, 0.8);
    border-color: rgba(0, 240, 255, 0.5);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(0, 240, 255, 0.1);
}

/* Glowing Accent Line */
.cert-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #00F0FF, #7000FF);
    opacity: 0.5;
    transition: all 0.3s;
}

.cert-card:hover::before {
    opacity: 1;
    width: 4px;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

/* Icon Container */
.cert-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(0, 240, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 240, 255, 0.1);
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.cert-card:hover .cert-icon-box {
    background: rgba(0, 240, 255, 0.1);
    transform: rotate(10deg) scale(1.1);
    border-color: rgba(0, 240, 255, 0.3);
}

.cert-icon-box i {
    font-size: 1.5rem;
    color: #00F0FF;
    transition: all 0.3s;
}

.cert-card:hover .cert-icon-box i {
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

.cert-info {
    flex: 1;
}

.cert-card h4 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.cert-link-icon {
    font-size: 0.85rem;
    color: #94A3B8;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.cert-card:hover .cert-link-icon {
    opacity: 1;
    transform: translateX(0);
    color: #00F0FF;
}

.cert-card .issuer {
    color: #94A3B8;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.cert-card .date {
    color: #64748B;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Light Theme Overrides - UI/UX Pro Max Standard */
/* Light Theme Overrides - UI/UX Pro Max Standard */
[data-theme="light"] .edu-card,
[data-theme="light"] .cert-card {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid #E2E8F0 !important;
    /* Slate 200 */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .edu-card:hover,
[data-theme="light"] .cert-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    border-color: #3B82F6 !important;
    /* Brand Blue */
    transform: translateY(-2px);
}

/* Light Mode Pro Icon Box */
[data-theme="light"] .edu-icon {
    background-color: #E0F2FE !important;
    /* Sky 100 */
    border: 1px solid #BAE6FD !important;
    /* Sky 200 */
    color: #0284C7 !important;
    /* Sky 600 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .edu-card:hover .edu-icon {
    background-color: #BAE6FD !important;
    /* Sky 200 */
    transform: scale(1.1) rotate(5deg) !important;
    box-shadow: 0 4px 6px rgba(14, 165, 233, 0.2) !important;
}

[data-theme="light"] .edu-content h3,
[data-theme="light"] .edu-card:hover .edu-content h3 {
    background: none !important;
    -webkit-text-fill-color: #0F172A !important;
    /* Slate 900 */
    color: #0F172A !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    text-shadow: none !important;
    font-weight: 700 !important;
}

[data-theme="light"] .edu-content .desc,
[data-theme="light"] .cert-card .issuer,
[data-theme="light"] .cert-card .date {
    color: #475569 !important;
    /* Slate 600 */
}

/* Date Pill - Accessible Soft Style */
[data-theme="light"] .edu-content .year {
    background: #F8FAFC !important;
    /* Slate 50 */
    color: #334155 !important;
    /* Slate 700 */
    border: 1px solid #CBD5E1 !important;
    /* Slate 300 */
    box-shadow: none !important;
    opacity: 1 !important;
    font-weight: 600 !important;
    padding: 4px 14px !important;
}

[data-theme="light"] .edu-card:hover .edu-content .year {
    background: #EFF6FF !important;
    /* Blue 50 */
    border: 1px solid #3B82F6 !important;
    /* Blue 500 */
    color: #1D4ED8 !important;
    /* Blue 700 */
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2) !important;
    transform: translateY(-1px);
}

[data-theme="light"] .cert-card h4,
[data-theme="light"] .cert-card:hover h4 {
    color: #0F172A !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #0F172A !important;
}

/* Icon visibility */
[data-theme="light"] .edu-icon i,
[data-theme="light"] .cert-card i {
    color: #0284C7 !important;
    /* Sky 600 */
    text-shadow: none !important;
}

/* Elegant Title Effect */
.elegant-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: #FFFFFF;
    position: relative;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.elegant-title span {
    color: var(--accent-aqua);
}

@keyframes underlineGrow {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}