/* ===========================================
   ACADEMICS.CSS - Academics Page Specific Styles
   =========================================== */

/* ===========================================
   ACADEMICS SECTION
   =========================================== */

.academics {
    padding: 100px 0;
    background: #f8f9fa;
}

.academics-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.academic-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 200px;
}

.academic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(45deg, #094d6b, #2A6B7A, #D4AF37, #F5E6B8, #094d6b);
    background-size: 400% 400%;
    animation: gradientBorder 3s ease infinite;
}

.academic-card:hover {
    transform: rotateY(5deg) rotateX(5deg) translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 4rem;
    color: #094d6b;
    margin-right: 2rem;
    flex-shrink: 0;
    min-width: 80px;
    text-align: center;
}

.card-content {
    flex: 1;
    text-align: left;
}

.card-content h4 {
    font-size: 1.8rem;
    color: #094d6b;
    margin-bottom: 1rem;
    font-weight: 600;
}

.card-content p {
    color: #666;
    line-height: 1.7;
    font-size: 1rem;
}

/* ===========================================
   EXTRACURRICULARS SECTION
   =========================================== */

#Extracurriculars {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.extracs-header {
    font-size: 2.8rem;
    color: #094d6b;
}

#extracs {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.extrac {
    background: white;
    margin: 1rem 0;
    border-radius: 2px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 90%;
    height: 120px;
}

.extrac:hover {
    transform: translateY(-8px);
}

.extrac-header {
    padding: 1rem;
    font-weight: bold;
    background: #094d6b;
    color: #F5E6B8;
    transition: all 0.5s ease;
    font-size: 1.8rem;
    height: 120px;
    display: flex;
    align-items: center;
    position: relative;
}

.extrac-header img {
    margin: 10px 20px 10px;
    height: 100px;
    width: 100px;
    font-size: 0.9rem;
    border-radius: 10px;
}

.extrac-details {
    height: 100%;
    overflow: hidden;
    padding: 1rem 1rem;
    background: #f9f9f9;
    transition: all 0.4s ease, padding 0.4s ease;
    display: flex;
    flex-direction: row;
    color: #555;
}

.extrac.active {
    height: 420px;
}

.extrac-img {
    margin-right: 10px;
    width: 400px;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.extrac-img img {
    height: 200px;
    max-width: 365px;
}

.extrac-txt {
    overflow-y: scroll;
    overflow-x: hidden;
    height: 70%;
    padding-bottom: 10px;
}

.extrac-txt::-webkit-scrollbar {
    width: 10px;
}

.extrac-txt::-webkit-scrollbar-track {
    background: #f9f9f9 !important;
}

.extrac-txt::-webkit-scrollbar-thumb {
    background: #094d6b;
}

.extrac-expand-arrow {
    font-family: 'Courier New';
    position: absolute;
    right: 40px;
    margin: 0 10px 0 10px;
    font-size: 2.5rem;
    transform: rotate(90deg);
    transition: all 0.8s ease;
}

.extrac-expand-arrow.active {
    transform: rotate(270deg);
}

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */

/* Tablet View */
@media (max-width: 1024px) {
    .academic-card {
        padding: 2rem;
        min-height: 180px;
    }
    
    .card-icon {
        font-size: 3.5rem;
        margin-right: 1.5rem;
        min-width: 70px;
    }
    
    .card-content h4 {
        font-size: 1.6rem;
    }
    
    .card-content p {
        font-size: 0.95rem;
    }
}

/* Mobile View */
@media (max-width: 768px) {
    .academic-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        min-height: auto;
    }
    
    .card-icon {
        font-size: 3rem;
        margin-right: 0;
        margin-bottom: 1rem;
        min-width: auto;
    }
    
    .card-content {
        text-align: center;
    }
    
    .card-content h4 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }
    
    .card-content p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .academic-card:hover {
        transform: translateY(-5px) scale(1.02);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    }
    
    .extracs-header {
        font-size: 2.2rem;
        text-align: center;
    }
    
    .extrac {
        width: 95%;
        height: 140px;
    }
    
    .extrac-header {
        font-size: 1.5rem;
        height: auto;
        min-height: 120px;
        flex-direction: column;
        text-align: center;
    }
    
    .extrac-header img {
        margin: 10px 0;
        height: 80px;
        width: 80px;
    }
    
    .extrac-details {
        flex-direction: column;
    }
    
    .extrac-img {
        width: 60%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .extrac-img img {
        width: 100%;
        height: auto;
        max-width: none;
    }
    
    .extrac-txt {
        height: auto;
        max-height: 200px;
    }
    
    .extrac.active .extrac-details {
        height: auto;
        min-height: 250px;
    }
    .extrac-img{
        width: 100%;
    }
    .extrac-img img{
        width: 40%;
    }
    .extrac.active{
        height: 500px;
    }
    
}

@media (max-width: 480px) {
    .academic-card {
        padding: 1.2rem;
    }
    .extrac{
        height: 112px;
    }
    
    .card-icon {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }
    
    .card-content h4 {
        font-size: 1.3rem;
        margin-bottom: 0.6rem;
    }
    
    .card-content p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .extracs-header {
        font-size: 1.8rem;
    }
    
    .extrac-header {
        font-size: 1.3rem;
        padding: 0.8rem;
    }
    
    .extrac-header img {
        height: 60px;
        width: 60px;
    }
    .extrac-img{
        width: 100%;
    }
    .extrac-img img{
        width: 60%;
    }
    
    .extrac-expand-arrow {
        font-size: 2rem;
        right: 20px;
    }
    .extrac.active{
        height: 500px;
    }
}
