/* ============================================================
   RJMC — Department Page Styles  v2.0
   Matches: style.css  · Red · Teal · Deep palette
   Mini Hero: mirrors ourmission.css exactly (dept- prefix)
   Body sections: reuse Default.aspx shared classes
   Fonts: Playfair Display (display) · DM Sans (body)
   ============================================================ */

/* ══════════════════════════════════════════════════════════
   § 1 — MINI HERO  (mirrors om-mini-hero from ourmission.css)
══════════════════════════════════════════════════════════ */
.dept-mini-hero {
    position: relative;
    background-image: linear-gradient(145deg, rgba(22,55,69,.95) 0%, rgba(44,104,123,.88) 55%, rgba(140,199,196,.30) 100%), url('../images/rjmc-mini-banner.png');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    min-height: 310px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Geometry rings */
.dept-hero-geo {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.dept-hero-geo--1 {
    top: -70px;
    right: -70px;
    width: 340px;
    height: 340px;
    border: 1.5px solid rgba(140,199,196,.12);
    animation: deptGeoSpin 24s linear infinite;
}

.dept-hero-geo--2 {
    bottom: -90px;
    left: 8%;
    width: 240px;
    height: 240px;
    border: 1px solid rgba(219,26,26,.08);
    animation: deptGeoSpin 36s linear infinite reverse;
}

.dept-hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(140,199,196,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(140,199,196,.04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

@keyframes deptGeoSpin {
    to {
        transform: rotate(360deg);
    }
}

.dept-hero-inner {
    position: relative;
    z-index: 2;
    padding: 68px 0 60px;
}

/* Breadcrumb */
.dept-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

    .dept-breadcrumb a {
        font-size: 11.5px;
        font-weight: 600;
        letter-spacing: 1.2px;
        text-transform: uppercase;
        color: rgba(140,199,196,.65) !important;
        transition: color .25s;
    }

        .dept-breadcrumb a:hover {
            color: var(--teal, #8CC7C4) !important;
        }

    .dept-breadcrumb .bc-sep {
        font-size: 11px;
        color: rgba(255,255,255,.22);
    }

    .dept-breadcrumb .bc-current {
        font-size: 11.5px;
        font-weight: 600;
        letter-spacing: 1.2px;
        text-transform: uppercase;
        color: rgba(255,255,255,.40);
    }

/* Title row */
.dept-hero-title-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 22px;
}

.dept-hero-accent {
    display: inline-block;
    width: 5px;
    height: 56px;
    background: linear-gradient(180deg, var(--red, #DB1A1A) 0%, var(--red-dark, #b31212) 100%);
    border-radius: 4px;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(219,26,26,.35);
}

.dept-hero-h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--white, #fff);
    line-height: 1.15;
    letter-spacing: -.3px;
    margin: 0 0 6px;
}

    .dept-hero-h1 em {
        font-style: italic;
        color: #8CC7C4;
    }

.dept-hero-tagline {
    font-family: 'DM Sans', sans-serif;
    font-size: 13.5px;
    font-weight: 400;
    letter-spacing: .5px;
    color: rgba(255,255,255,.50);
    margin: 0;
}

/* Pill tags */
.dept-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dept-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .5px;
    color: rgba(255,255,255,.70);
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    padding: 6px 14px;
    border-radius: 50px;
    backdrop-filter: blur(6px);
    transition: all .25s var(--ease);
}

    .dept-pill i {
        color: #8CC7C4;
        font-size: 12px;
    }

    .dept-pill:hover {
        background: rgba(140,199,196,.15);
        border-color: rgba(140,199,196,.30);
        color: #fff;
    }

/* ══════════════════════════════════════════════════════════
   § 2 — DEPARTMENT LISTINGS SECTION
══════════════════════════════════════════════════════════ */
.dept-listings-section {
    background: var(--white, #ffffff);
}

/* Category group */
.dept-category {
    margin-bottom: 60px;
}

    .dept-category:last-child {
        margin-bottom: 0;
    }

/* Category header bar */
.dept-cat-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--gray-200, #dde4e7);
}

.dept-cat-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: var(--radius-sm, 8px);
    background: linear-gradient(135deg, var(--deep, #2C687B) 0%, var(--deep-dark, #1f4e5f) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--teal-light, #b0dbd9);
    box-shadow: var(--shadow-sm);
}

.dept-cat-label {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--deep-deeper, #163745);
}

.dept-cat-count {
    margin-left: auto;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted, #7a8c94);
    background: var(--gray-100, #f0f3f4);
    padding: 4px 14px;
    border-radius: 50px;
    border: 1px solid var(--gray-200, #dde4e7);
}

/* Cards grid */
.dept-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px;
}

/* Individual card */
.dept-card {
    background: var(--white, #ffffff);
    border: 1px solid var(--gray-200, #dde4e7);
    border-radius: var(--radius-md, 14px);
    padding: 28px 22px 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
    transition: all .35s var(--ease);
    text-decoration: none !important;
}

    /* Red top bar on hover */
    .dept-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--red, #DB1A1A), var(--red-light, #f04444));
        transform: scaleX(0);
        transform-origin: left;
        transition: transform .35s var(--ease);
    }

    .dept-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-md);
        border-color: rgba(219,26,26,.18);
    }

        .dept-card:hover::before {
            transform: scaleX(1);
        }

/* Coming soon variant */
.dept-card--coming {
    background: var(--gray-50, #f9fafa);
    border-style: dashed;
    pointer-events: none;
}

    .dept-card--coming::before {
        display: none;
    }

/* Icon circle */
.dc-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--teal-pale, #e6f5f4);
    border: 1px solid rgba(140,199,196,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--deep, #2C687B);
    margin-bottom: 18px;
    transition: all .35s var(--ease-spring);
}

.dept-card:hover .dc-icon-wrap {
    background: linear-gradient(135deg, var(--red, #DB1A1A) 0%, var(--red-dark, #b31212) 100%);
    border-color: transparent;
    color: #fff;
    transform: scale(1.1) rotate(-5deg);
    box-shadow: var(--shadow-red);
}

.dept-card--coming .dc-icon-wrap {
    background: var(--gray-100, #f0f3f4);
    border-color: var(--gray-200, #dde4e7);
    color: var(--gray-400, #8fa0a8);
}

.dc-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--deep-deeper, #163745);
    margin-bottom: 6px;
    line-height: 1.3;
}

.dc-sub {
    font-size: 12px;
    color: var(--text-muted, #7a8c94);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 18px;
}

/* CTA link */
.dc-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--red, #DB1A1A) !important;
    border-bottom: 2px solid var(--red, #DB1A1A);
    padding-bottom: 1px;
    transition: all .25s var(--ease);
    align-self: flex-start;
}

.dept-card:hover .dc-link {
    gap: 11px;
    color: var(--red-dark, #b31212) !important;
}

.dc-link--muted {
    color: var(--text-muted, #7a8c94) !important;
    border-bottom-color: var(--gray-200, #dde4e7);
}

/* ══════════════════════════════════════════════════════════
   § 3 — CTA BANNER SECONDARY BUTTON
   (adds outline variant alongside Default.aspx btn-cta-white)
══════════════════════════════════════════════════════════ */
.btn-cta-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,.55);
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .3px;
    background: transparent;
    transition: all .3s var(--ease);
    text-decoration: none !important;
}

    .btn-cta-outline:hover {
        background: rgba(255,255,255,.12);
        border-color: #fff;
        transform: translateY(-2px);
    }

/* ══════════════════════════════════════════════════════════
   § 4 — RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
    .dept-mini-hero {
        background-attachment: scroll;
        min-height: 260px;
    }

    .dept-hero-h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 767px) {
    .dept-hero-inner {
        padding: 52px 0 44px;
    }

    .dept-hero-h1 {
        font-size: 1.9rem;
    }

    .dept-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width: 480px) {
    .dept-hero-h1 {
        font-size: 1.65rem;
    }

    .dept-hero-accent {
        height: 42px;
    }

    .dept-cards-grid {
        grid-template-columns: 1fr;
    }
}
