/* ===========================
   Department Hero Card
=========================== */
.dept-hero {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-xl);
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-lg);
    padding: var(--spacing-2xl);
    border-left: 6px solid var(--color-primary);
    margin-bottom: var(--spacing-xl);
}

.dept-hero-icon {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--color-primary), #024a99);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--color-white);
    box-shadow: var(--box-shadow);
}

.dept-tag {
    display: inline-block;
    background: var(--color-secondary);
    color: var(--color-white);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: var(--spacing-sm);
}

.dept-hero-content h2 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-2xl);
}

.dept-lead {
    color: var(--color-grey);
    font-size: var(--font-size-base);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
}

.dept-meta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.dept-meta-strip span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-dark);
    background: var(--color-light);
    padding: 6px 14px;
    border-radius: 20px;
}

.dept-meta-strip span i {
    color: var(--color-primary);
    font-size: 13px;
}

/* ===========================
   Programmes Grid
=========================== */
.dept-programmes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.dept-prog-card {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    background: var(--color-white);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.dept-prog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--box-shadow-lg);
}

/* Card Header Colours — mirrors courses.css */
.dept-prog-header {
    padding: var(--spacing-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dept-prog-header.cyber {
    background: linear-gradient(135deg, #012c6d, #024a99);
}

.dept-prog-header.ai {
    background: linear-gradient(135deg, #1a6b3c, #27a35f);
}

.dept-prog-header.data {
    background: linear-gradient(135deg, #db3441, #a5202b);
}

.dept-prog-icon {
    font-size: 44px;
}

.dept-prog-badge {
    background: rgba(255, 255, 255, 0.25);
    color: var(--color-white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Card Body */
.dept-prog-body {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dept-prog-body h4 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-lg);
}

.dept-prog-body p {
    color: var(--color-grey);
    font-size: var(--font-size-sm);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
    flex: 1;
}

.dept-prog-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dept-prog-meta li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-sm);
    color: var(--color-dark);
}

.dept-prog-meta li i {
    color: var(--color-primary);
    width: 14px;
}

.dept-prog-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-border);
}

.dept-prog-footer .btn {
    width: 100%;
    text-align: center;
    font-size: var(--font-size-sm);
    padding: 11px 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.dept-prog-footer .btn-outline {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
}

.dept-prog-footer .btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* ===========================
   Responsive
=========================== */
@media (max-width: 992px) {
    .dept-programmes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dept-hero {
        flex-direction: column;
        gap: var(--spacing-lg);
    }

    .dept-hero-icon {
        width: 70px;
        height: 70px;
        font-size: 30px;
    }
}

@media (max-width: 576px) {
    .dept-programmes-grid {
        grid-template-columns: 1fr;
    }

    .dept-meta-strip {
        gap: var(--spacing-sm);
    }

    .dept-meta-strip span {
        font-size: 12px;
        padding: 5px 10px;
    }
}


/* ===========================
   Why ICT Courses Section
=========================== */
.why-ict-section {
    background: linear-gradient(160deg, #f4f6f9 0%, #eef1f8 100%);
    position: relative;
    overflow: hidden;
}

.why-ict-section::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(27, 44, 101, 0.04);
    pointer-events: none;
}

.why-ict-section::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(205, 22, 63, 0.04);
    pointer-events: none;
}

.why-ict-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.why-ict-card {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl) var(--spacing-lg);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.why-ict-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-lg);
}

.why-ict-card:hover .why-ict-line {
    width: 100%;
}

/* Accent line at bottom */
.why-ict-line {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 40px;
    background: var(--color-secondary);
    border-radius: 0 2px 0 0;
    transition: width 0.4s ease;
}

/* Large background number */
.why-ict-number {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 52px;
    font-weight: 900;
    color: rgba(27, 44, 101, 0.05);
    line-height: 1;
    user-select: none;
    letter-spacing: -2px;
}

/* Icon wrapper */
.why-ict-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    border: 1.5px solid color-mix(in srgb, var(--accent) 20%, transparent);
}

.why-ict-icon-wrap i {
    font-size: 22px;
    color: var(--accent);
}

/* Fallback for browsers without color-mix */
@supports not (color: color-mix(in srgb, red 10%, transparent)) {
    .why-ict-icon-wrap {
        background: rgba(27, 44, 101, 0.08);
        border-color: rgba(27, 44, 101, 0.15);
    }
}

.why-ict-card h4 {
    color: var(--color-primary);
    font-size: var(--font-size-base);
    font-weight: 700;
    margin-bottom: 10px;
}

.why-ict-card p {
    color: var(--color-grey);
    font-size: var(--font-size-sm);
    line-height: 1.7;
    margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .why-ict-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .why-ict-grid {
        grid-template-columns: 1fr;
    }
}
