.program-structure {
    padding: 40px 0;
    background-color: #e9e9e9 !important;
}

.section-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 400;
}

.year-header {
    background: linear-gradient(135deg, #173457, #2a4a6b);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(23, 52, 87, 0.2);
}

/* Equal height rows for desktop */
@media (min-width: 992px) {
    .program-structure .row {
        display: flex;
        flex-wrap: wrap;
    }
    
    .program-structure .row > [class*='col-'] {
        display: flex;
        flex-direction: column;
    }
}

.semester-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: 100%; /* Makes cards fill their container */
    display: flex;
    flex-direction: column;
}

.semester-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(23, 52, 87, 0.15);
    transform: translateY(-2px);
}

.semester-title {
    background: linear-gradient(135deg, #173457, #2a5a8a);
    color: white;
    font-weight: 700;
    font-size: 1.3rem;
    margin: -25px -25px 20px -25px; /* Extends to card edges */
    padding: 15px 20px;
    text-align: center;
    border-radius: 10px 10px 0 0;
    letter-spacing: 1px;
    box-shadow: 0 3px 10px rgba(23, 52, 87, 0.2);
    position: relative;
    overflow: hidden;
}

.semester-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.semester-card:hover .semester-title::before {
    left: 100%;
}

.course-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1; /* Allows list to fill remaining space */
}

.course-item {
    background: var(--accent-color);
    padding: 12px 18px;
    margin-bottom: 8px;
    border-radius: 6px;
    font-weight: 500;
    color: #495057;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.course-item:hover {
    background: #e9ecef;
    border-left-color: var(--primary-color);
    transform: translateX(5px);
}

.elective-options {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    padding: 30px;
    margin-top: 3rem;
}

.options-title {
    color: var(--primary-color);
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

.option-card {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.option-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(23, 52, 87, 0.12);
}

.option-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.specialty-course {
    background: #fff3cd;
    border-left-color: #ffc107;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .semester-card {
        padding: 20px;
    }
    
    .semester-title {
        margin: -20px -20px 15px -20px;
        font-size: 1.1rem;
        padding: 12px 15px;
    }
    
    .elective-options {
        padding: 20px;
    }
}

.program-aims {
    padding: 60px 0;
    background-color: #fff;
}

.aims-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.aim-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.aim-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(23, 52, 87, 0.1);
    transform: translateY(-2px);
}

.aim-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.aim-content {
    flex: 1;
}

.aim-text {
    color: #495057;
    line-height: 1.5;
    margin: 0;
}

.key-highlights {
    background: linear-gradient(135deg, var(--accent-color), #e9ecef);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
}

.highlights-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.highlights-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.highlight-tag {
    background: white;
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.highlight-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    .program-aims {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .aims-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .aim-item {
        padding: 18px;
    }
    
    .key-highlights {
        padding: 20px;
    }
    
    .highlights-list {
        gap: 10px;
    }
    
    .highlight-tag {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}