/* ==========================================================================
   Department Landing Page
   ========================================================================== */

.miq-department {
    font-family: var(--miq-font-primary, 'Open Sans', sans-serif);
    color: var(--miq-dark-text, #1e293b);
}

.miq-department__container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Breadcrumb */
.miq-department__breadcrumb {
    padding: 14px 0;
    font-size: 13px;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
}

.miq-department__breadcrumb a {
    color: #04A1B8;
    text-decoration: none;
}

.miq-department__breadcrumb a:hover {
    text-decoration: underline;
}

.miq-department__breadcrumb span {
    margin: 0 6px;
}

/* Hero */
.miq-department__hero {
    padding: 48px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f0fdfa 100%);
    border-bottom: 1px solid #e2e8f0;
}

.miq-department__hero--deck {
    background: linear-gradient(135deg, #f8fafc 0%, #e0f7fa 100%);
}

.miq-department__hero--engine {
    background: linear-gradient(135deg, #f8fafc 0%, #fff7ed 100%);
}

.miq-department__hero--cabin {
    background: linear-gradient(135deg, #f8fafc 0%, #ecfdf5 100%);
}

.miq-department__hero-content {
    max-width: 700px;
}

.miq-department__hero-icon {
    margin-bottom: 16px;
}

.miq-department__hero h1 {
    font-family: var(--miq-font-heading, 'Lato', sans-serif);
    font-size: 36px;
    font-weight: 700;
    color: #0C3C60 !important;
    margin: 0 0 12px;
    line-height: 1.2;
}

.miq-department__hero p {
    font-size: 17px;
    line-height: 1.6;
    color: #475569;
    margin: 0 0 20px;
}

.miq-department__hero-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 15px;
    color: #475569;
}

.miq-department__stat strong {
    color: #0C3C60;
    font-weight: 700;
}

.miq-department__stat-divider {
    width: 1px;
    height: 20px;
    background: #cbd5e1;
}

/* Categories Grid */
.miq-department__categories {
    padding: 48px 0 56px;
}

.miq-department__categories h2 {
    font-family: var(--miq-font-heading, 'Lato', sans-serif);
    font-size: 24px;
    font-weight: 700;
    color: #0C3C60 !important;
    margin: 0 0 28px;
}

.miq-department__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Category Card */
.miq-department__card {
    display: block;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.miq-department__card:hover {
    border-color: #04A1B8;
    box-shadow: 0 4px 12px rgba(4, 161, 184, 0.15);
    transform: translateY(-2px);
}

.miq-department__card-code {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.miq-department__card h3 {
    font-family: var(--miq-font-heading, 'Lato', sans-serif);
    font-size: 17px;
    font-weight: 700;
    color: #0C3C60;
    margin: 0 0 8px;
    line-height: 1.3;
}

.miq-department__card:hover h3 {
    color: #04A1B8;
}

.miq-department__card-count {
    font-size: 14px;
    color: #64748b;
}

.miq-department__card-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #cbd5e1;
    transition: all 0.2s ease;
}

.miq-department__card:hover .miq-department__card-arrow {
    color: #04A1B8;
    right: 16px;
}

/* CTA Section */
.miq-department__cta {
    padding: 48px 0;
    background: #0C3C60;
    text-align: center;
}

.miq-department__cta h2 {
    font-family: var(--miq-font-heading, 'Lato', sans-serif);
    font-size: 26px;
    font-weight: 700;
    color: #ffffff !important;
    margin: 0 0 10px;
}

.miq-department__cta p {
    font-size: 16px;
    color: #94a3b8;
    margin: 0 0 24px;
}

.miq-department__cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.miq-department__btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.miq-department__btn--primary {
    background: #04A1B8;
    color: #ffffff;
}

.miq-department__btn--primary:hover {
    background: #028a9e;
    transform: translateY(-1px);
}

.miq-department__btn--secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.miq-department__btn--secondary:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

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

@media (max-width: 640px) {
    .miq-department__hero {
        padding: 32px 0;
    }

    .miq-department__hero h1 {
        font-size: 28px;
    }

    .miq-department__grid {
        grid-template-columns: 1fr;
    }

    .miq-department__categories {
        padding: 32px 0 40px;
    }

    .miq-department__cta {
        padding: 36px 0;
    }

    .miq-department__cta h2 {
        font-size: 22px;
    }
}
