/* ===== AEGIS 2026 — Workshop site styles =====
   Forked from EIVN 2025 and refined.
   Palette: navy #0c1f4d / #1e3a6e / #395b89 / #486ea7              */

:root {
  --navy-1: #0c1f4d;
  --navy-2: #1e3a6e;
  --navy-3: #395b89;
  --navy-4: #486ea7;
  --accent: #f4b66c;
  --text:   #2a2a2a;
  --muted:  #6b7280;
  --border: #e5e7eb;
}

body {
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #fafbfd;
}

/* ===== Top navigation bar ===== */
.navbar {
    font-weight: 600;
    background-color: #ffffff;
    box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 2px 14px rgba(10,20,45,.06);
    border-bottom: 3px solid var(--navy-3);
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.navbar .container {
    flex-wrap: nowrap;
}

.navbar-brand {
    display: flex;
    align-items: center;
    margin-right: 24px;
    color: var(--navy-1) !important;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    white-space: nowrap;
}

.navbar-brand .fas {
    margin-right: 0.55em;
    color: var(--navy-4);
    font-size: 1.05em;
}

.navbar-nav {
    flex-wrap: nowrap;
}

.nav-link {
    position: relative;
    padding: 0.45rem 0.85rem !important;
    color: #3a3a3a !important;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    transition: color .2s ease;
}

/* drop the old dashed separator */
.nav-link::after { display: none !important; }

/* animated underline */
.nav-link::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 0;
    height: 2px;
    background: var(--navy-3);
    transition: width .25s ease, left .25s ease;
    border-radius: 1px;
}

.nav-link:hover {
    color: var(--navy-3) !important;
    background: transparent;
}

.nav-link:hover::before,
.nav-item.active .nav-link::before {
    width: calc(100% - 1.7rem);
    left: 0.85rem;
}

.nav-item.active .nav-link {
    color: var(--navy-1) !important;
    font-weight: 700;
}

@media (max-width: 992px) {
    .navbar .container { flex-wrap: wrap; }
    .navbar-nav { flex-wrap: wrap; }
    .navbar-collapse { background-color: #f8f8f8; }
    .nav-link { padding-left: 15px !important; }
    .nav-link::before { display: none; }
}

/* ===== Carousel ===== */
.carousel-item {
    transition: transform .9s ease, opacity .9s ease;
    position: relative;
}

.carousel-item img {
    height: 400px;
    object-fit: cover;
    filter: saturate(1.05);
}

.carousel-caption {
    position: absolute;
    top: 50%;
    transform: translateY(-52%);
    left: 7%;
    right: auto;
    bottom: auto;
    max-width: 880px;
    text-align: left;
    padding: 0;
    color: #fff;
    height: auto;
    margin: 0;
}

.carousel-caption h5 {
    color: #fff;
    font-weight: 800;
    font-size: 54px;
    line-height: 1.1;
    margin: 0 0 16px;
    letter-spacing: 0.5px;
    text-shadow: 0 3px 14px rgba(0,0,0,0.45);
}

.carousel-caption p {
    color: #e8eefc;
    font-size: 20px;
    line-height: 1.4;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
    max-width: 780px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.6;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .carousel-item img { height: 300px; }
    .carousel-caption { left: 5%; max-width: 90%; }
    .carousel-caption h5 { font-size: 32px; margin-bottom: 10px; }
    .carousel-caption p  { font-size: 15px; }
}

/* ===== Grid spacing ===== */
.row {
    min-height: 400px;
    margin-bottom: 30px;
}

/* ===== Sidebar menu ===== */
.list-group {
    border-radius: 0;
    overflow: hidden;
    margin-top: 50px;
    box-shadow: 0 2px 8px rgba(10,20,45,.04);
}

.list-group-item {
    border: none;
    border-bottom: 1px solid #e8e8e8;
    background-color: #f8f8f8;
    color: #333;
    padding: 14px 20px;
    font-size: 15px;
    transition: background-color .15s ease, color .15s ease, padding .15s ease;
}

.list-group-item-action.active,
.list-group-item-action:hover {
    background-color: var(--navy-4);
    color: white;
    text-decoration: none;
    padding-left: 24px;
}

.list-group-item:first-child {
    border-top: 3px solid var(--navy-2);
}

.list-group-item::after {
    content: "\00bb";
    float: right;
    color: #9aa0a6;
}

.list-group-item-action.active::after,
.list-group-item-action:hover::after {
    color: #fff;
}

.list-group .title {
    background-color: var(--navy-3);
    background-image: linear-gradient(135deg, var(--navy-1), var(--navy-3));
    color: white;
    padding: 15px 20px;
    margin-top: 0;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.list-group-item:last-child { border-bottom: none; }

/* ===== Main content box ===== */
.content-box {
    border: 1px solid var(--border);
    padding: 26px 32px;
    margin-top: 49px;
    background-color: #fff;
    box-shadow: 0 2px 12px rgba(10,20,45,.05);
    border-radius: 2px;
}

.content-box h2 {
    color: var(--navy-1);
    margin-bottom: 16px;
    text-align: center;
    letter-spacing: 0.3px;
    font-weight: 700;
    padding-bottom: 14px;
    border-bottom: 2px solid #eef1f7;
}

.content-box h4 {
    color: var(--navy-3);
    margin-top: 24px;
    margin-bottom: 10px;
    font-weight: 700;
}

.content-box h5 {
    color: var(--navy-2);
    margin-top: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}

.content-box p { margin-bottom: 10px; line-height: 1.7; }
.content-box p:first-child { padding-top: 5px; }
.content-box p:last-child  { margin-bottom: 0; }

.content-box ul { line-height: 1.75; }

.content-box a { color: var(--navy-4); }
.content-box a:hover { color: var(--navy-1); }

.content-box .table thead {
    background-color: var(--navy-3);
    color: #fff;
}

.content-box .table thead th {
    border-color: var(--navy-2);
    font-weight: 600;
}

.content-box .table th,
.content-box .table td { vertical-align: middle; }

.callout {
    background: linear-gradient(to right, rgba(72,110,167,0.10), rgba(176,210,246,0.15));
    border-left: 4px solid var(--navy-4);
    padding: 14px 18px;
    margin-top: 18px;
    border-radius: 3px;
}

/* ===== Footer ===== */
footer {
    background-color: #0a0f1e;
    color: #cfcfcf;
    padding: 10px 0;
    position: relative;
    bottom: 0;
    width: 100%;
    border-top: 3px solid var(--navy-3);
}

footer a { color: #9db6e0; }
footer a:hover { color: #fff; }
