/* Academic Content Styles */
.academic-content {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.academic-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="academic-pattern" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23007bff" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23academic-pattern)"/></svg>') repeat;
    pointer-events: none;
    z-index: 1;
}

.academic-content__inner {
    position: relative;
    z-index: 2;
}

.academic-content__wrapper {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

/* Academic Header Styles */
.academic-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 60px 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.academic-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/><circle cx="20" cy="20" r="1" fill="white" opacity="0.1"/><circle cx="80" cy="30" r="1.5" fill="white" opacity="0.1"/></svg>');
    animation: float 20s linear infinite;
}

.academic-header__title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.academic-header__content {
    position: relative;
    z-index: 2;
}

.academic-header__content p {
    font-size: 18px;
    line-height: 1.8;
    margin: 0;
    max-width: 900px;
    margin: 0 auto;
    opacity: 0.95;
}

/* Academic Subjects Styles */
.academic-subjects {
    padding: 60px 50px;
}

.academic-subjects__content,
.academic-recommended {
    height: 100%;
}

.academic-subjects__title,
.academic-recommended__title {
    font-size: 32px;
    font-weight: 600;
    color: #333;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.academic-subjects__title::after,
.academic-recommended__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 2px;
}

.academic-subjects__list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.academic-subjects__list li {
    margin-bottom: 20px;
    animation: fadeInLeft 0.6s ease-out;
    animation-fill-mode: both;
}

.academic-subjects__list li:nth-child(1) { animation-delay: 0.1s; }
.academic-subjects__list li:nth-child(2) { animation-delay: 0.2s; }
.academic-subjects__list li:nth-child(3) { animation-delay: 0.3s; }
.academic-subjects__list li:nth-child(4) { animation-delay: 0.4s; }
.academic-subjects__list li:nth-child(5) { animation-delay: 0.5s; }
.academic-subjects__list li:nth-child(6) { animation-delay: 0.6s; }

.subject-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #007bff;
}

.subject-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.2);
    border-left-color: #ff6b35;
}

.subject-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    margin-right: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.subject-item:hover .subject-icon {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    transform: scale(1.1);
}

.subject-text {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
}

/* Recommended Section Styles */
.academic-recommended__content {
    padding-top: 20px;
}

.recommended-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    animation: fadeInRight 0.6s ease-out;
    animation-fill-mode: both;
    position: relative;
    overflow: hidden;
}

.recommended-item:nth-child(1) { animation-delay: 0.2s; }
.recommended-item:nth-child(2) { animation-delay: 0.4s; }
.recommended-item:nth-child(3) { animation-delay: 0.6s; }
.recommended-item:nth-child(4) { animation-delay: 0.8s; }

.recommended-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.recommended-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.15);
}

.recommended-item:hover::before {
    left: 100%;
}

.recommended-item__icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-right: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.recommended-item:hover .recommended-item__icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
}

.recommended-item__content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.recommended-item__content p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    font-weight: 400;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Styles */
@media (max-width: 991px) {
    .academic-content {
        padding: 80px 0;
    }
    
    .academic-header {
        padding: 40px 30px;
    }
    
    .academic-header__title {
        font-size: 36px;
        margin-bottom: 20px;
    }
    
    .academic-header__content p {
        font-size: 16px;
    }
    
    .academic-subjects {
        padding: 40px 30px;
    }
    
    .academic-subjects__title,
    .academic-recommended__title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .subject-item,
    .recommended-item {
        padding: 15px;
    }
    
    .subject-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-right: 15px;
    }
    
    .recommended-item__icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-right: 15px;
    }
}

@media (max-width: 767px) {
    .academic-content {
        padding: 60px 0;
    }
    
    .academic-header {
        padding: 30px 20px;
    }
    
    .academic-header__title {
        font-size: 28px;
    }
    
    .academic-header__content p {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .academic-subjects {
        padding: 30px 20px;
    }
    
    .academic-subjects__title,
    .academic-recommended__title {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .subject-item {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }
    
    .subject-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .recommended-item {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }
    
    .recommended-item__icon {
        margin-right: 0;
        margin-bottom: 15px;
        align-self: center;
    }
    
    .subject-item:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 575px) {
    .academic-header__title {
        font-size: 24px;
    }
    
    .academic-subjects__title,
    .academic-recommended__title {
        font-size: 20px;
    }
    
    .subject-text,
    .recommended-item__content p {
        font-size: 14px;
    }
}
