/* ==========================================================================
   Exact MS Learn Layout & Theme (White + Blue)
   ========================================================================== */

:root {
    --ms-blue: #0078d4;
    --ms-blue-hover: #106ebe;
    --ms-white: #ffffff;
    --ms-bg-light: #faf9f8;
    --ms-text-primary: #171717;
    --ms-text-secondary: #505050;
    --ms-border: #e1dfdd;
    
    --border-learningpath: #0078d4;
    --border-module: #00a4ef;
    --border-course: #20b2aa;
    
    --font-family: 'Segoe UI', 'Open Sans', system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--ms-text-primary);
    background-color: var(--ms-white);
    line-height: 1.5;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--ms-blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Typography Utilities */
.font-size-xs { font-size: 0.75rem; }
.font-size-sm { font-size: 0.875rem; }
.font-size-lg { font-size: 1.125rem; }
.font-weight-semibold { font-weight: 600; }
.letter-spacing-wide { letter-spacing: 0.05em; }
.is-uppercase { text-transform: uppercase; }
.color-text-subtle { color: var(--ms-text-secondary); }
.has-text-centered { text-align: center; }

/* Spacing Utilities */
.padding-block-xs { padding-top: 1rem; padding-bottom: 1rem; }
.padding-block-sm { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.padding-block-lg { padding-top: 3rem; padding-bottom: 3rem; }
.padding-top-lg { padding-top: 3rem; }
.margin-top-xxs { margin-top: 0.5rem; }
.margin-top-xs { margin-top: 1rem; }
.margin-top-sm { margin-top: 1.5rem; }
.margin-top-md { margin-top: 2rem; }
.margin-bottom-none { margin-bottom: 0; }
.margin-top-auto { margin-top: auto; }

/* Flexbox / Layout */
.display-flex { display: flex; }
.flex-direction-column { flex-direction: column; }
.align-items-stretch { align-items: stretch; }
.align-items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-md { gap: 1.5rem; }
.flex-wrap-wrap { flex-wrap: wrap; }

.uhf-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.layout-body-header {
    background-color: var(--ms-white);
    position: sticky;
    top: 0;
    z-index: 100;
}
.border-bottom {
    border-bottom: 1px solid var(--ms-border);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 54px;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    color: var(--ms-text-primary);
    font-weight: 600;
    text-decoration: none;
    margin-right: 2rem;
}
.brand-logo:hover {
    text-decoration: none;
}
.logo-divider {
    margin: 0 8px;
    font-weight: 400;
    color: var(--ms-text-secondary);
}

.primary-nav {
    display: flex;
    gap: 1.5rem;
}
.nav-link {
    color: var(--ms-text-primary);
    font-size: 0.875rem;
    font-weight: 400;
    padding: 0.5rem 0;
}
.nav-link:hover {
    text-decoration: underline;
}
.nav-link.active {
    font-weight: 600;
    border-bottom: 2px solid var(--ms-blue);
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 2px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none !important;
    background: none;
    font-family: inherit;
}
.button-primary {
    background-color: var(--ms-blue);
    color: var(--ms-white);
}
.button-primary:hover {
    background-color: var(--ms-blue-hover);
}
.button-outline {
    background-color: transparent;
    border-color: var(--ms-border);
    color: var(--ms-text-primary);
}
.button-outline:hover {
    border-color: #8a8886;
    background-color: var(--ms-bg-light);
}
.button-clear {
    background: transparent;
    color: var(--ms-text-primary);
}
.button-clear:hover {
    background-color: rgba(0, 0, 0, 0.05);
}
.button-sm {
    padding: 4px 12px;
}

/* Hero */
.hero {
    background-color: var(--ms-bg-light); /* Base light beige/gray */
    background-image: url('images/hero_bg.png');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: cover;
    padding: 6rem 0;
    border-bottom: 1px solid var(--ms-border);
}
.hero-content {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
#hero-main-container {
    max-width: 600px;
}
.title.is-2 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

/* Bifold Sections */
.columns {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1.5rem;
}
.column {
    padding: 0 1.5rem;
    flex: none;
    width: 100%;
}
@media (min-width: 768px) {
    .column.is-half {
        width: 50%;
    }
    .column.is-6-desktop {
        width: 50%;
    }
}
.header-level {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.right-align {
    text-align: right;
}

/* Grid & Cards */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    list-style: none;
}
@media (min-width: 768px) {
    .grid.is-3-desktop {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    background-color: var(--ms-white);
    border: 1px solid var(--ms-border);
    border-radius: 2px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease;
}
.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.card-content {
    padding: 1.5rem;
    flex: 1 1 auto;
}
.media {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    height: 100%;
}

.border-left-lg {
    border-left-width: 6px;
    border-left-style: solid;
}
.border-color-learningpath { border-left-color: var(--border-learningpath); }
.border-color-module { border-left-color: var(--border-module); }
.border-color-course { border-left-color: var(--border-course); }

.card-template {
    padding: 1.5rem 1.5rem 0 1.5rem;
    flex: 1 1 auto;
}
.card-supertitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--ms-text-secondary);
    margin-bottom: 0.25rem;
}
.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ms-text-primary);
    display: block;
    margin-bottom: 0.5rem;
}
.card-title:hover {
    text-decoration: underline;
    color: var(--ms-blue);
}
.card-footer {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: flex-end;
}

.metadata {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    color: var(--ms-text-secondary);
}
.metadata li {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Role / Domain Cards */
.role-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background-color: var(--ms-white);
    border: 1px solid var(--ms-border);
    border-radius: 2px;
    color: var(--ms-text-primary);
    font-weight: 600;
    font-size: 0.875rem;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.role-card i {
    font-size: 1.5rem;
    color: var(--ms-blue);
}
.role-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Service Cards (Premium Style) */
.service-card {
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-top: 4px solid var(--ms-blue) !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden;
    background-color: var(--ms-white);
}
.service-card .card-content {
    padding: 2rem 1.75rem !important;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 120, 212, 0.08), 0 4px 16px rgba(0, 0, 0, 0.03) !important;
    border-color: rgba(0, 120, 212, 0.15) !important;
}
.service-card .font-size-lg {
    font-size: 1.25rem !important;
    color: var(--ms-text-primary);
    font-weight: 600;
}
.service-card .font-size-sm {
    line-height: 1.5;
    margin-top: 0.75rem;
}

/* Premium Light Section for Roles and Domains */
.role-domain-dark-section {
    background-color: var(--ms-white) !important; /* White background */
    color: var(--ms-text-primary) !important;
    padding: 5rem 0;
}
.role-domain-dark-section .title.is-2 {
    color: var(--ms-text-primary) !important;
    margin-bottom: 2.5rem;
}
.role-domain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.explore-card {
    background-color: var(--ms-white) !important; /* White card background */
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--ms-border) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
}
.explore-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(0, 120, 212, 0.2) !important;
}
.explore-card-image {
    background-color: var(--ms-bg-light); /* Light gray base for illustrations */
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--ms-border);
}
.explore-card-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.explore-card-content {
    padding: 1.25rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.explore-card-title {
    color: var(--ms-blue) !important; /* Lighter bright blue for premium contrast */
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-decoration: none;
}
.explore-card-title:hover {
    text-decoration: underline !important;
}
.explore-card-desc {
    color: var(--ms-text-secondary) !important; /* Lighter text for descriptions */
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

/* Footer */
.footer-layout {
    background-color: var(--ms-bg-light);
}
.border-top {
    border-top: 1px solid var(--ms-border);
}
.footer-links a {
    color: var(--ms-text-secondary);
}
.footer-links a:hover {
    color: var(--ms-text-primary);
    text-decoration: underline;
}

/* Mobile specific grid columns for Services, Job Roles, and Domains */
@media (max-width: 767px) {
    #business-services-section .grid,
    .role-domain-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem;
    }
}

/* AVIDZ Footer Link Animation */
.avidz-link {
    color: var(--ms-blue);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.avidz-link:hover {
    color: var(--ms-blue);
    text-decoration: none;
    text-shadow: 0 0 8px rgba(0, 120, 212, 0.6), 0 0 16px rgba(0, 120, 212, 0.4), 0 0 24px rgba(0, 120, 212, 0.2);
    transform: scale(1.05);
}

/* Mobile Navigation */
.display-none-desktop { display: none; }

@media (max-width: 991px) {
    .display-none-desktop { display: inline-flex; }
    .hide-on-mobile { display: none; }
    
    .primary-nav {
        display: none;
        position: absolute;
        top: 54px;
        left: 0;
        right: 0;
        background: var(--ms-white);
        flex-direction: column;
        padding: 1rem 1.5rem;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        border-bottom: 1px solid var(--ms-border);
        gap: 0;
        z-index: 90;
    }
    .primary-nav.active {
        display: flex;
    }
    .nav-link {
        padding: 1rem 0;
        border-bottom: 1px solid var(--ms-border);
        width: 100%;
    }
    .nav-link:last-child {
        border-bottom: none;
    }
}
