/* 
 * IBM Carbon Design System - Professional Corporate Theme
 * Built for EGSPEC COE Portal (v3.0.0 Stable)
 * No generated images - Clean CSS-driven UI shell
 */

:root {
    --cds-ui-background: #f4f4f4;
    /* Gray-10 Background */
    --cds-ui-01: #ffffff;
    --cds-brand-01: #002d62;
    /* Corporate Deep Blue */
    --cds-brand-hover: #001d40;
    --cds-text-primary: #161616;
    --cds-text-secondary: #525252;
}

/* --- Layout Stability & Grid --- */
body {
    background-color: var(--cds-ui-background);
    color: var(--cds-text-primary);
    -webkit-font-smoothing: antialiased;
    font-family: 'IBM Plex Sans', -apple-system, sans-serif;
    margin: 0;
}

/* --- Mobile Utility Class --- */
.hide-on-mobile {
    display: inherit;
}

@media (max-width: 64rem) {
    .hide-on-mobile {
        display: none !important;
    }
}

.cds--grid {
    max-width: 1440px;
    padding-left: 2rem;
    padding-right: 2rem;
}

.corporate-section {
    padding: 4rem 0;
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
}

/* --- Professional Header & UI Shell (Clean Split) --- */
.header-top-utility {
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.75rem;
    height: 40px;
    /* Modern height */
    display: flex;
    align-items: center;
}

.branding-utility-split {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.college-branding-simple {
    font-weight: 700;
    color: #161616;
    letter-spacing: 0.2px;
}

.utility-links-group {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* --- Accreditation Logos Group --- */
.accreditation-logos-group {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-left: auto;
}

.accreditation-logos-group picture,
.accreditation-logos-group a {
    display: flex;
    align-items: center;
}

.square-logo {
    height: 44px;
    width: auto;
    max-width: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.square-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-2px);
}

.utility-link-item {
    color: #525252;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.utility-link-item:hover {
    color: var(--cds-brand-01);
}

.utility-lang-box {
    padding-left: 1.5rem;
    border-left: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
}

.modern-lang-select {
    border: none;
    background: transparent;
    font-size: 0.75rem;
    font-weight: 600;
    color: #161616;
    cursor: pointer;
    padding: 2px 4px;
}

.main-corporate-header {
    background: #ffffff;
    padding: 1.5rem 1.5rem;
    /* Fluid padding matching utility bar */
    border-bottom: 1px solid #dcdcdc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.branding-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.branding-text-group {
    border-left: 1px solid #e0e0e0;
    padding-left: 1rem;
}

/* --- Navigation Shell --- */
.portal-navbar {
    background: var(--cds-brand-01);
    height: 3.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.portal-nav-link {
    color: #ffffff !important;
    text-decoration: none !important;
    height: 3.5rem;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s cubic-bezier(0.2, 0, 0.38, 0.9);
}

.portal-nav-link:hover {
    background: var(--cds-brand-hover);
}

.portal-nav-link--active {
    box-shadow: inset 0 -4px 0 #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

/* --- Corporate CSS Hero (No Images) --- */
.corporate-hero {
    background: linear-gradient(135deg, var(--cds-brand-01) 0%, #004d9a 100%);
    position: relative;
    padding: 6rem 0;
    color: #ffffff;
    overflow: hidden;
}

/* Subtile geometric pattern for corporate feel */
.corporate-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: radial-gradient(#fff 1px, transparent 1px);
    background-size: 40px 40px;
}

.hero-content-box {
    position: relative;
    z-index: 10;
}

/* --- Information Cards --- */
.executive-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.executive-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--cds-brand-01);
}

.status-badge {
    background: #eef3fb;
    color: var(--cds-brand-01);
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 2px;
    display: inline-block;
}

/* --- Footer --- */
.corporate-footer {
    background: #161616;
    color: #ffffff;
    padding: 5rem 0 3rem 0;
    margin-top: 5rem;
}

/* --- Mobile Responsive Branding & Navigation Overrides --- */
@media (max-width: 64rem) {
    .main-corporate-header {
        padding: 0.75rem 1rem !important;
    }

    .branding-container > div:first-child {
        gap: 0.75rem !important;
    }

    .branding-container img {
        height: 35px !important;
    }

    .branding-text-group {
        padding-left: 0.75rem !important;
        border-left: 1px solid #e0e0e0 !important;
    }

    .branding-text-group h1 {
        font-size: 1.1rem !important;
        white-space: nowrap;
    }

    .nav-desktop {
        display: none !important;
    }
}

/* --- Mobile Off-Canvas Menu (IBM Carbon Style) --- */
.mobile-offcanvas {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: #ffffff;
    z-index: 2000;
    box-shadow: 4px 0 24px rgba(0,0,0,0.15);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.mobile-offcanvas.active {
    left: 0;
}

.offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1999;
    display: none;
    backdrop-filter: blur(2px);
}

.offcanvas-overlay.active {
    display: block;
}

.offcanvas-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f4f4f4;
}

.offcanvas-nav-body {
    padding: 1rem 0;
    overflow-y: auto;
}

.mobile-nav-link {
    display: block;
    padding: 1rem 1.5rem;
    color: #161616;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    border-bottom: 1px solid #f4f4f4;
}

.mobile-nav-link:hover {
    background: #f4f4f4;
    color: var(--cds-brand-01);
}