/* ========== Specializations – Shared Design System ========== */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Sora:wght@400;600;800&display=swap');

:root {
    --spec-primary: #7c3aed;
    --spec-light: #a855f7;
    --spec-pale: #f7f3ff;
    --spec-dark: #1e1035;
    --spec-gradient: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    --spec-overlay: linear-gradient(to top, rgba(20, 10, 50, 0.9) 0%, transparent 60%);
    --spec-text-dark: #1e1035;
    --spec-text-gray: #6b7280;
}

/* Scoped wrapper for specialization pages */
.spec-page {
    font-family: 'DM Sans', sans-serif;
}

.spec-page h1,
.spec-page h2,
.spec-page h3,
.spec-page h4,
.spec-page h5,
.spec-page .spec-hero-title,
.spec-page .spec-section-title {
    font-family: 'Sora', sans-serif;
}

/* ========== Hero Section ========== */
.spec-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    background-color: #1e1035;
    background-size: cover;
    background-position: center;
    padding: 100px 0 60px 0;
}

.spec-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--spec-overlay);
    pointer-events: none;
}

.spec-hero .container {
    position: relative;
    z-index: 1;
}

.spec-hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--spec-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 50px;
    margin-bottom: 12px;
    font-family: 'DM Sans', sans-serif;
}

.spec-hero-title {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3.25rem);
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.2;
}

.spec-hero-underline {
    width: 80px;
    height: 4px;
    background: var(--spec-light);
    border-radius: 2px;
    margin-top: 8px;
}

/* Hero variants – page-specific background images */
.spec-hero--autotronics {
    background-image: url('https://images.unsplash.com/photo-1601026967915-281d3160683b?w=1600&q=80');
}

.spec-hero--mechatronics {
    background-image: url('https://wallpapercave.com/wp/wp4062048.jpg');
}

.spec-hero--it {
    background-image: url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?w=1600&q=80');
}

.spec-hero--energy {
    background-image: url('https://images.unsplash.com/photo-1509391366360-2e959784a276?w=1600&q=80');
}

/* ========== Content Area – 2-column layout ========== */
.spec-content-area {
    padding: 60px 0 80px;
}

.spec-main {
    padding-right: 2rem;
}

.spec-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

/* ========== Sections – card layout ========== */
.spec-section {
    padding: 32px 32px;
    margin-bottom: 32px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.spec-section--white {
    /* reserved for future light variants; keep white background */
}

.spec-section--pale {
    background: #ffffff;
}

/* Numbered purple gradient box + bold title */
.spec-section-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.spec-section-num {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--spec-gradient);
    color: #fff;
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spec-section-title {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--spec-text-dark);
    margin: 0;
}

/* Subsection: left purple border + uppercase label */
.spec-subsection {
    margin-bottom: 24px;
}

.spec-subsection-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--spec-primary);
    margin-bottom: 10px;
    padding-left: 14px;
    border-left: 4px solid var(--spec-primary);
}

.spec-subsection-content {
    padding-left: 14px;
}

/* List items – small purple rounded markers (letters or numbers) */
.spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.spec-list-item {
    position: relative;
    padding: 8px 0 8px 32px;
    font-size: 0.95rem;
    color: var(--spec-text-dark);
}

.spec-list-item::before {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background: var(--spec-pale);
    border: 2px solid var(--spec-primary);
    color: var(--spec-primary);
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    content: counter(spec-list, decimal);
    counter-increment: spec-list;
}

.spec-list--letters {
    counter-reset: spec-list 0;
}

.spec-list--letters .spec-list-item::before {
    content: counter(spec-list, upper-alpha);
    counter-increment: spec-list;
}

.spec-list--numbers {
    counter-reset: spec-list 0;
}

/* Feature / skill / career blocks that use spec-list */
.spec-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.spec-feature-item {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #f3f4f6;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.spec-feature-item i {
    color: var(--spec-primary);
    font-size: 1.25rem;
    margin-bottom: 10px;
    display: block;
}

.spec-feature-item h5 {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--spec-text-dark);
    margin-bottom: 8px;
}

.spec-feature-item p {
    font-size: 0.9rem;
    color: var(--spec-text-gray);
    margin: 0;
}

/* Career boxes in main content */
.spec-career-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.spec-career-box {
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #f3f4f6;
    transition: all 0.25s ease;
}

.spec-career-box:hover {
    border-color: #e5e7eb;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
}

.spec-career-box i {
    font-size: 2rem;
    color: var(--spec-primary);
    margin-bottom: 12px;
    display: block;
}

.spec-career-box h5 {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--spec-text-dark);
    margin-bottom: 12px;
}

.spec-career-box .spec-list {
    text-align: start;
}

.spec-career-box .spec-list-item {
    padding-left: 28px;
}

.spec-career-box .spec-list-item::before {
    width: 18px;
    height: 18px;
    font-size: 0.65rem;
}

/* Why BTU / CTA blocks */
.spec-why-box {
    background: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.spec-why-box .spec-icon-box {
    width: 56px;
    height: 56px;
    background: var(--spec-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    margin: 0 auto 12px;
}

.spec-cta-block {
    background: var(--spec-gradient);
    color: #fff;
    padding: 48px 40px;
    border-radius: 20px;
    text-align: center;
}

.spec-cta-block h2 {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.spec-cta-block .btn-light {
    background: #fff;
    color: var(--spec-primary);
    border: none;
    font-weight: 600;
}

.spec-cta-block .btn-outline-light {
    border-color: rgba(255,255,255,0.8);
    color: #fff;
}

/* ========== Sidebar Cards ========== */
.spec-sidebar-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(30, 16, 53, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.12);
}

.spec-sidebar-card h3 {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--spec-text-dark);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--spec-pale);
}

/* Card 1: University Programs */
.spec-programs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.spec-programs-list li {
    margin-bottom: 6px;
}

.spec-programs-list a {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--spec-text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.spec-programs-list a:hover {
    background: var(--spec-pale);
    color: var(--spec-primary);
}

.spec-programs-list a.active {
    background: var(--spec-gradient);
    color: #fff;
}

.spec-programs-list a i {
    margin-left: 10px;
    opacity: 0.8;
}

/* Card 2: Contact Us */
.spec-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.9rem;
    color: var(--spec-text-dark);
}

.spec-contact-item:last-child {
    margin-bottom: 0;
}

.spec-contact-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--spec-pale);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--spec-primary);
}

.spec-contact-item a {
    color: var(--spec-primary);
}

/* Card 3: Related Sites */
.spec-related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.spec-related-list li {
    margin-bottom: 8px;
}

.spec-related-list a {
    display: block;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--spec-text-dark);
    transition: color 0.2s ease;
}

.spec-related-list a:hover {
    color: var(--spec-primary);
}

/* ========== Utilities ========== */
.spec-icon-box {
    width: 56px;
    height: 56px;
    background: var(--spec-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
}

.spec-btn-primary {
    background: var(--spec-primary);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.spec-btn-primary:hover {
    background: var(--spec-light);
    color: #fff;
}

/* Responsive */
@media (max-width: 991px) {
    .spec-sidebar {
        position: static;
        margin-top: 40px;
    }

    .spec-main {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .spec-hero {
        min-height: 320px;
        padding-bottom: 40px;
    }

    .spec-section {
        padding: 32px 0;
    }

    .spec-feature-grid {
        grid-template-columns: 1fr;
    }

    .spec-career-grid {
        grid-template-columns: 1fr;
    }
}
