/* Academics Page Specific Styles */

/* Programs Section */
.programs-section {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.program-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
    /* Cards visible by default - no opacity 0 blocking clicks */
    opacity: 1;
    /* Flexbox to push button to bottom */
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Program card content wrapper for flex spacing */
.program-card .program-list {
    flex-grow: 1;
}

.program-card .btn-primary {
    margin-top: auto;
}

/* Animation classes for scroll effects */
.program-card.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.program-card.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.program-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.program-card:hover .program-icon {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    transform: rotate(360deg);
}

.program-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.program-duration {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.program-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}

.program-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.program-list li:last-child {
    border-bottom: none;
}

.program-list li:before {
    content: '▸';
    color: var(--accent-color);
    font-weight: 700;
    margin-right: 0.75rem;
}

.program-list .dept-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.program-list .dept-link:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.program-list .dept-link:after {
    content: '→';
    position: absolute;
    right: -20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.program-list .dept-link:hover:after {
    opacity: 1;
    right: -25px;
}

.program-stats {
    display: flex;
    justify-content: space-around;
    margin: 2rem 0 1.5rem;
    padding: 1.5rem 0;
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-item strong {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-item span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Academic Structure Section */
.structure-section {
    padding: 5rem 0;
    background: white;
}

.structure-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 1rem 2.5rem;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-color: var(--primary-color);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.semester-card {
    background: var(--bg-secondary);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.semester-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.semester-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    padding: 1.5rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.semester-header h4 {
    font-size: 1.25rem;
    margin: 0;
}

.semester-badge {
    background: rgba(255, 255, 255, 0.3);
    padding: 0.375rem 1rem;
    border-radius: 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
}

.semester-info {
    padding: 1.5rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.info-row span {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.info-row strong {
    color: var(--accent-color);
    font-size: 1.125rem;
}

.semester-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.semester-info ul li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.semester-info ul li:before {
    content: '✓';
    color: var(--accent-color);
    font-weight: 700;
    margin-right: 0.75rem;
}

/* Resources Section */
.resources-section {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.resource-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
    text-align: center;
}

.resource-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.resource-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin: 0 auto 1.5rem;
}

.resource-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.resource-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.resource-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.resource-link:hover {
    color: var(--accent-color);
    gap: 0.75rem;
}

/* Credits Section */
.credits-section {
    padding: 5rem 0;
    background: white;
}

.credits-visualization {
    max-width: 900px;
    margin: 3rem auto 0;
}

.credit-bar-container {
    margin-bottom: 3rem;
}

.credit-bar {
    display: flex;
    height: 100px;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.credit-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.credit-segment:hover {
    filter: brightness(1.1);
    transform: scaleY(1.05);
}

.credit-segment span {
    font-size: 0.875rem;
    line-height: 1.4;
}

.credit-segment strong {
    font-size: 1.125rem;
}

.credit-segment.core {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.credit-segment.elective {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
}

.credit-segment.project {
    background: linear-gradient(135deg, #10b981, #059669);
}

.credit-segment.other {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.credit-legend {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
}

.legend-color {
    width: 30px;
    height: 30px;
    border-radius: 0.375rem;
    flex-shrink: 0;
}

.legend-color.core {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.legend-color.elective {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
}

.legend-color.project {
    background: linear-gradient(135deg, #10b981, #059669);
}

.legend-color.other {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .structure-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tab-btn {
        width: 100%;
    }
    
    .semester-grid {
        grid-template-columns: 1fr;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .credit-bar {
        flex-direction: column;
        height: auto;
    }
    
    .credit-segment {
        padding: 1.5rem;
    }
    
    .credit-legend {
        grid-template-columns: 1fr;
    }
}

/* Certification Program Styles */
.cert-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.cert-duration {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.cert-tag {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cert-tag:hover {
    background: var(--primary-dark);
    color: white;
}
