/*
    ITAICS Modern UI
    - Bootstrap 5.2.3 compatible
    - Intentionally lightweight (no build step required)
*/

:root {
    --itaics-navy: #093969;
    --itaics-navy-900: #031426;
    --itaics-slate: #0f172a;
    --itaics-slate-600: #475569;
    --itaics-bg: #f8fafc;
    --itaics-card: #ffffff;
    --itaics-border: rgba(15, 23, 42, 0.12);
    --itaics-shadow: 0 18px 55px rgba(15, 23, 42, 0.12);
}

/* ---------- Base ---------- */

.itaics-body {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--itaics-bg);
    color: var(--itaics-slate);
}

.itaics-main {
    min-height: calc(100vh - 320px);
}

.skip-link {
    position: absolute;
    left: 0.75rem;
    top: 0.75rem;
    z-index: 2000;
    padding: 0.5rem 0.75rem;
    background: #fff;
    border: 1px solid var(--itaics-border);
    border-radius: 0.5rem;
    text-decoration: none;
}

/* ---------- Navbar ---------- */

.itaics-navbar {
    background: linear-gradient(135deg, var(--itaics-navy-900) 0%, var(--itaics-navy) 55%, var(--itaics-navy-900) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.itaics-brand-logo {
    height: 40px;
    width: auto;
}

.itaics-brand-name {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.itaics-brand-subtitle {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.9;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.86);
    font-weight: 600;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: #ffffff;
}

.navbar-dark .navbar-nav .dropdown-menu {
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 0.85rem;
    box-shadow: var(--itaics-shadow);
}

.dropdown-menu .dropdown-item {
    font-weight: 600;
}

/* ---------- Buttons ---------- */

.btn-itaics {
    background: #ffc107; /* Bootstrap warning */
    border-color: #ffc107;
    color: #111827;
    font-weight: 700;
}

.btn-itaics:hover,
.btn-itaics:focus {
    background: #ffcd39;
    border-color: #ffcd39;
    color: #111827;
}

/* ---------- Sections / Cards ---------- */

.page-hero {
    padding: 3.25rem 0 2.25rem;
    background:
        radial-gradient(900px circle at 15% 0%, rgba(9, 57, 105, 0.14), transparent 55%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.03) 0%, transparent 90%);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.itaics-section {
    padding: 4rem 0;
}

.itaics-section-muted {
    background: rgba(2, 6, 23, 0.03);
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.itaics-section-title {
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Aliases used in views (kept for developer ergonomics) */

.section-title {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--itaics-slate-600);
    font-size: 1.05rem;
}

.itaics-lead {
    color: rgba(255, 255, 255, 0.88);
}

.itaics-card {
    background: var(--itaics-card);
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 1rem;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

.itaics-card-hover {
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.itaics-card-hover:hover {
    transform: translateY(-3px);
    box-shadow: var(--itaics-shadow);
}

.itaics-iconbox {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(9, 57, 105, 0.10);
    border: 1px solid rgba(9, 57, 105, 0.15);
}

/* Icon style used on the Home page cards */

.itaics-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(9, 57, 105, 0.10);
    border: 1px solid rgba(9, 57, 105, 0.15);
    color: var(--itaics-navy);
}

.itaics-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.itaics-bullet {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    margin-top: 0.45rem;
    background: #ffc107;
    box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.25);
    flex: 0 0 auto;
}

.itaics-kicker {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    font-size: 0.8rem;
}

/* ---------- Hero ---------- */

.itaics-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    padding: 5rem 0;
    background:
        radial-gradient(900px circle at 15% 25%, rgba(255, 193, 7, 0.20), transparent 40%),
        radial-gradient(900px circle at 85% 30%, rgba(13, 202, 240, 0.18), transparent 45%),
        linear-gradient(135deg, var(--itaics-navy-900) 0%, var(--itaics-navy) 55%, var(--itaics-navy-900) 100%);
}

.itaics-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('Images/BackGrounds/motherboard1.png');
    background-size: cover;
    background-position: center;
    opacity: 0.16;
    mix-blend-mode: overlay;
    pointer-events: none;
}

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

.itaics-hero-badges .badge {
    font-weight: 700;
}

/* ---------- Page header ---------- */

.itaics-page-header {
    padding: 2.75rem 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.03), rgba(2, 6, 23, 0));
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

/* ---------- Footer ---------- */

.itaics-footer {
    background: linear-gradient(135deg, var(--itaics-navy-900) 0%, #05223d 55%, var(--itaics-navy-900) 100%);
    color: rgba(255, 255, 255, 0.90);
}

.itaics-footer-muted {
    color: rgba(255, 255, 255, 0.70);
}

.itaics-footer-link,
.itaics-footer a {
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
}

.itaics-footer a:hover,
.itaics-footer a:focus {
    color: #ffffff;
    text-decoration: underline;
}

.itaics-footer-list {
    margin: 0;
    padding: 0;
}

.itaics-footer-list li {
    margin-bottom: 0.35rem;
}

.itaics-footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.itaics-footer-logo {
    height: 44px;
    width: auto;
}

/* ---------- Legacy compatibility: remove fixed scroll container ---------- */

.content1 {
    padding: 0;
    overflow: visible;
    border: none;
    margin-top: 0;
    height: auto;
}

/* Improve default link behavior in content */

.itaics-main a {
    color: var(--itaics-navy);
}

.itaics-main a:hover {
    color: #05223d;
}

/* Contrast fix: Bootstrap .text-warning on the light hero background can be hard to read */
.page-hero .text-warning{ color: var(--itaics-navy) !important; }

/* OurCommunities readable typography inside modern cards */
.itaics-prose h2, .itaics-prose h3 {
    scroll-margin-top: 100px;
}

.itaics-prose ul {
    padding-left: 1.25rem;
}

    .itaics-prose ul ul {
        margin-top: .5rem;
    }

.itaics-prose li {
    margin-bottom: .35rem;
}

.itaics-prose a {
    text-decoration: underline;
    text-underline-offset: 2px;
}
