/* Hero Section */
.hero-section {
    background: url('../Image/about.png') center center/cover no-repeat;
}

/* Academy Dropdown */
.academy-dropdown {
    position: absolute;
    top: 80px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 100;
    min-width: 150px;
}

.academy-dropdown a {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid #eee;
    text-transform: uppercase;
}

.academy-dropdown a:last-child {
    border-bottom: none;
}

.academy-dropdown a.active {
    background: #655bf5;
}

.academy-dropdown a:hover:not(.active) {
    background: #f8f9fa;
}



/* Certification Grid */
.certification-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.cert-card {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    min-height: 180px;
    display: flex;
    flex-direction: column;
}

.cert-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}


.cert-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.3;
}

.cert-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
    flex-grow: 1;
}

.read-more-btn {
    color: #6c5ce7;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
    margin-top: auto;
}

.read-more-btn:hover {
    color: #5a4ae3;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

.modal-header {
    background: #34495e;
    color: white;
    padding: 20px 25px;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header .cert-icon {
    margin-bottom: 0;
    background: rgba(255, 255, 255, 0.2);
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 25px;
}

.modal-section {
    margin-bottom: 20px;
}

.modal-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.modal-section p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .certification-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: -4px 10px;
    }

    nav ul {
        display: none;
    }

    .mobile-menu {
        display: flex;
    }

    .academy-dropdown {
        position: static;
        margin: 20px;
        width: calc(100% - 40px);
        order: 2;
    }

    .certification-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cert-card {
        padding: 20px;
        min-height: 160px;
    }

    .cert-title {
        font-size: 15px;
    }

    .cert-description {
        font-size: 13px;
    }

    .modal-content {
        margin: 20px;
        width: calc(100% - 40px);
    }
}

@media (max-width: 480px) {
    .certification-grid {
        grid-template-columns: 1fr;
    }

    .cert-card {
        padding: 18px;
        min-height: 140px;
    }

    .cert-title {
        font-size: 14px;
    }

    .cert-description {
        font-size: 12px;
    }
}