/* ══════════════════════════════════════════
   Secure Micro Academy — SharePoint-style CSS
   ══════════════════════════════════════════ */

:root {
    --sp-purple:   #262262;
    --sp-blue:     #0078d4;
    --sp-bg:       #ffffff;
    --sp-neutral:  #f3f2f1;
    --text-dark:   #323130;
    --text-mid:    #605e5c;
    --border:      #edebe9;
    --card-overlay: rgba(0,0,0,0.42);
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    margin: 0;
    color: var(--text-dark);
    background: var(--sp-bg);
    font-size: 15px;
    line-height: 1.6;
}

a { color: var(--sp-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Site Header / Nav ── */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    height: 52px;
    border-bottom: 1px solid var(--border);
    background: var(--sp-bg);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.site-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-nav a {
    color: var(--text-dark);
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 2px;
    white-space: nowrap;
    transition: background 0.15s;
}

.main-nav a:hover {
    background: var(--sp-neutral);
    text-decoration: none;
}

/* ── Hero Grid ── */
.hero-grid {
    display: grid;
    grid-template-columns: 3fr 2fr 2fr;
    grid-template-rows: 240px 240px;
    gap: 3px;
    background: #333;
}

.hero-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background-color: #444;
    background-size: cover;
    background-position: center;
}

.main-tile {
    grid-row: span 2;
    background-color: #1a3a5c;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
    transition: background 0.25s;
}

.hero-item:hover .hero-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.25) 60%, transparent 100%);
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 22px;
    color: white;
    z-index: 1;
}

.hero-content h2 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.hero-content h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.hero-link {
    color: white;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    margin-top: 4px;
}

.hero-link:hover { text-decoration: underline; }

/* Full-tile clickable overlay */
.tile-link {
    position: absolute;
    inset: 0;
    z-index: 2;
}

/* ── Quick Links Bar ── */
.quick-links {
    background: var(--sp-purple);
    color: white;
    display: flex;
    justify-content: space-evenly;
    padding: 26px 80px;
}

.link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: opacity 0.2s;
    min-width: 80px;
    text-align: center;
}

.link-item:hover { opacity: 0.8; }

a.link-item {
    color: white;
    text-decoration: none;
}

.link-item svg {
    width: 26px;
    height: 26px;
    stroke: white;
}

/* ── Intro Section ── */
.intro-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    align-items: center;
    gap: 48px;
    max-width: 1240px;
    margin: 52px auto;
    padding: 0 32px;
}

.intro-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    border-radius: 2px;
}

.intro-text h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 16px;
    line-height: 1.3;
}

.intro-text p {
    color: var(--text-mid);
    font-size: 15px;
    margin: 0;
}

/* ── Two Column Section ── */
.two-col-section {
    background: var(--sp-neutral);
    padding: 52px 0;
}

.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
}

.col-block h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 12px;
}

.col-block p {
    color: var(--text-mid);
    margin: 0 0 12px;
}

.col-block ul {
    color: var(--text-mid);
    padding-left: 20px;
    margin: 0 0 12px;
}

.col-block ul li {
    margin-bottom: 6px;
}

.col-block ul ul {
    margin-top: 6px;
}

/* ── Three Image Cards ── */
.image-cards-section {
    max-width: 1240px;
    margin: 52px auto;
    padding: 0 32px;
}

.image-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.image-card {
    position: relative;
    height: 220px;
    background-size: cover;
    background-position: center;
    background-color: #444;
    overflow: hidden;
    cursor: pointer;
    border-radius: 2px;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.08);
    transition: background 0.2s;
}

.image-card:hover .card-overlay {
    background: rgba(0,0,0,0.18);
}

.card-label {
    position: absolute;
    bottom: 16px;
    left: 16px;
    padding: 8px 14px;
    color: white;
    font-weight: 600;
    font-size: 15px;
    background: rgba(50, 50, 50, 0.82);
    border-radius: 6px;
    z-index: 1;
    backdrop-filter: blur(2px);
}

/* ── Mission / Vision / Values ── */
.mvv-section {
    background: var(--sp-bg);
    padding: 52px 0;
    border-top: 1px solid var(--border);
}

.mvv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
}

.mvv-block h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 14px;
}

.mvv-block p {
    color: var(--text-mid);
    font-size: 14px;
    margin: 0;
}

.values-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.values-list li {
    color: var(--text-mid);
    font-size: 14px;
    padding: 5px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.values-list li::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--sp-purple);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── Contact Section ── */
.contact-section {
    background: var(--sp-bg);
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 52px 20px;
}

.contact-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 20px;
}

.contact-section p {
    color: var(--text-mid);
    font-size: 14px;
    margin: 0 0 12px;
    line-height: 1.8;
}

.contact-section a {
    color: var(--sp-blue);
}

.contact-inline {
    display: flex;
    justify-content: center;
    gap: 40px;
}

/* ── Footer Bar ── */
.site-footer {
    background: var(--sp-purple);
    padding: 14px 32px;
    display: flex;
    justify-content: flex-end;
}

.footer-nav {
    display: flex;
    gap: 24px;
}

.footer-nav a {
    color: white;
    font-size: 13px;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.footer-nav a:hover {
    opacity: 1;
    text-decoration: none;
}
