/* ===========================
   NEW UNIVERSITY SECTIONS
   Modern Components for Gradify
   =========================== */

/* Course Categories Grid */
.course-categories {
    background: white;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.category-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 24px;
    border: 2px solid #e2e8f0;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-10px);
    border-color: #6366f1;
    box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.3);
}

.category-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.category-icon i {
    font-size: 3rem;
    color: #6366f1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover .category-icon {
    background: white;
    transform: scale(1.1);
}

.category-card:hover .category-icon i {
    color: #6366f1;
}

.category-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover h3,
.category-card:hover p {
    color: white;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6366f1;
    font-weight: 600;
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover .category-link {
    color: white;
}

.category-link i {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-link:hover i {
    transform: translateX(5px);
}

/* Featured Courses Showcase */
.courses-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.course-card-modern {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
}

.course-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.course-thumbnail {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-card-modern:hover .course-thumbnail img {
    transform: scale(1.1);
}

.course-level {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(99, 102, 241, 0.95);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.course-duration {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.course-duration i {
    color: #f97316;
}

.course-body {
    padding: 2rem;
}

.course-category {
    display: inline-block;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    color: #6366f1;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.course-body h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #0f172a;
}

.course-body p {
    color: #475569;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.course-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.course-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.course-stats .stat i {
    color: #f97316;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-price {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #6366f1;
}

/* Testimonials Section */
.testimonials-section {
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    padding: 2.5rem;
    border-radius: 24px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.quote-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.quote-icon i {
    color: white;
    font-size: 1.5rem;
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #0f172a;
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
}

.testimonial-author h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.testimonial-author p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

/* Events Section */
.events-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.event-card {
    background: white;
    padding: 2rem;
    border-radius: 24px;
    display: flex;
    gap: 2rem;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        border-color 0.3s ease;
    border: 2px solid #e2e8f0;
    will-change: transform;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -5px rgba(99, 102, 241, 0.15);
    /* Softer colored shadow */
    border-color: #6366f1;
}

.event-date {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    padding: 1rem 0.75rem;
    border-radius: 12px;
    text-align: center;
    color: white;
    min-width: 70px;
    flex-shrink: 0;
}

.event-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.event-date .month {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.event-content {
    flex: 1;
}

.event-category {
    display: inline-block;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(251, 146, 60, 0.1));
    color: #f97316;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.event-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.event-content>p {
    color: #475569;
    margin-bottom: 1rem;
}

.event-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.event-meta i {
    color: #f97316;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

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

    .courses-showcase,
    .testimonials-grid,
    .events-grid {
        grid-template-columns: 1fr;
    }

    .events-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .event-card {
        flex-direction: column;
    }

    .event-date {
        width: 100%;
    }

    /* Category Card Adjustments for Tablet/Mobile */
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.5rem;
    }

    .category-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .category-thumbnail {
        margin-bottom: 15px;
    }
}

/* Small Mobile Adjustments */
@media (max-width: 500px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        padding: 1.5rem;
    }
}

/* Category Thumbnails */
.category-thumbnail {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.category-card:hover .category-thumbnail {
    transform: scale(1.05);
}

@media (min-width: 1024px) {
    .category-thumbnail {
        margin-bottom: 24px;
    }

    .category-card {
        padding: 1.5rem;
    }
}