.faculty-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.faculty-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #34ce57);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.faculty-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.faculty-card:hover::before {
    transform: scaleX(1);
}

.faculty-card .card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.faculty-icon {
    min-width: 50px;
    width: 50px;
    height: 50px;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.faculty-icon i {
    font-size: 20px;
    color: #28a745;
}

.faculty-card h3 {
    font-size: 1.1rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.program-list {
    margin: 1rem 0;
    flex: 1;
    overflow-y: auto;
    max-height: 200px;
    padding-right: 5px;
}

.program-list::-webkit-scrollbar {
    width: 4px;
}

.program-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.program-list::-webkit-scrollbar-thumb {
    background: #28a745;
    border-radius: 4px;
}

.program-list-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.program-list-item:last-child {
    border-bottom: none;
}

.program-list-item a {
    font-size: 0.9rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.faculty-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.25rem;
    font-weight: 600;
    color: #28a745;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.card-footer {
    background: transparent;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 1rem;
}

.btn-outline-success {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-width: 2px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-outline-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #28a745;
    transition: all 0.4s ease;
    z-index: -1;
}

.faculty-card:hover .btn-outline-success {
    color: #fff;
}

.faculty-card:hover .btn-outline-success::before {
    left: 0;
}

/* Animation for faculty cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.col-md-6 {
    animation: fadeInUp 0.6s ease backwards;
}

.col-md-6:nth-child(2) {
    animation-delay: 0.2s;
}

.col-md-6:nth-child(3) {
    animation-delay: 0.4s;
}

/* Academic Systems & Standards Styles */
.academic-card {
    background: #fff;
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    height: 100%;
    transition: all 0.3s ease;
}

.academic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(40,167,69,0.1);
}

.academic-card .card-body {
    padding: 2rem;
}

.academic-card .card-title {
    color: #28a745;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.academic-card .card-title i {
    margin-right: 0.75rem;
    font-size: 1.5rem;
    opacity: 0.8;
}

.grading-table {
    width: 100%;
    margin-top: 1rem;
}

.grading-table th {
    background: rgba(40,167,69,0.05);
    color: #28a745;
    font-weight: 600;
    padding: 0.75rem;
}

.grading-table td {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.credit-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.credit-list li {
    padding: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.credit-list li:last-child {
    border-bottom: none;
}

.credit-list li:hover {
    background: rgba(40,167,69,0.05);
    padding-left: 1.5rem;
}

/* Calendar Accordion Styles */
.calendar-accordion {
    max-width: 100%;
    margin: 0 auto;
}

.calendar-card {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.calendar-header {
    border: none;
}

.calendar-btn {
    width: 100%;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: none;
    color: #333;
    font-weight: 600;
    text-align: left;
    transition: all 0.3s ease;
}

.calendar-btn:hover,
.calendar-btn.active {
    background: rgba(40,167,69,0.05);
    color: #28a745;
}

.calendar-btn i {
    transition: transform 0.3s ease;
}

.calendar-btn.active i {
    transform: rotate(180deg);
}

.calendar-title {
    font-size: 1.1rem;
}

.calendar-body {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 0 0 10px 10px;
}

.calendar-event {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 8px;
    background: #fff;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.calendar-event:last-child {
    margin-bottom: 0;
}

.event-date {
    background: #28a745;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    min-width: 100px;
    text-align: center;
    margin-right: 1rem;
}

.event-detail {
    flex-grow: 1;
}

.event-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.25rem;
}

.event-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Event Type Colors */
.calendar-event[data-type="registration"] {
    border-left-color: #28a745;
    background: rgba(40, 167, 69, 0.05);
}

.calendar-event[data-type="registration"] .event-type {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.calendar-event[data-type="academic"] {
    border-left-color: #007bff;
    background: rgba(0, 123, 255, 0.05);
}

.calendar-event[data-type="academic"] .event-type {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.calendar-event[data-type="exam"] {
    border-left-color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

.calendar-event[data-type="exam"] .event-type {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.calendar-event[data-type="event"] {
    border-left-color: #ffc107;
    background: rgba(255, 193, 7, 0.05);
}

.calendar-event[data-type="event"] .event-type {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
}

/* Animation */
.calendar-event {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.3s ease forwards;
}

.calendar-event:nth-child(2) { animation-delay: 0.1s; }
.calendar-event:nth-child(3) { animation-delay: 0.2s; }
.calendar-event:nth-child(4) { animation-delay: 0.3s; }
.calendar-event:nth-child(5) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Academic Support Section Styles */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.support-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.06);
    height: auto;
    min-height: 250px;
    display: flex;
    flex-direction: column;
}

.support-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(40,167,69,0.08);
}

.support-icon-wrapper {
    width: 45px;
    height: 45px;
    background: rgba(40,167,69,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.support-icon-wrapper i {
    font-size: 1.25rem;
    color: #28a745;
}

.support-title {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.support-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.support-features {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem 0;
}

.support-feature {
    display: flex;
    align-items: center;
    margin-bottom: 0.4rem;
    padding: 0.4rem;
    font-size: 0.9rem;
}

.support-feature i {
    color: #28a745;
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

.support-link {
    font-size: 0.9rem;
    padding: 0.4rem 0;
    margin-top: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .support-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .support-card {
        min-height: auto;
    }
}