/* =======================================
   GLOBAL RESET + BASE
======================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.gls-body {
    font-family: "Inter", sans-serif;
    background: #f6f8fb;
    color: #1d3557;
    line-height: 1.6;
}

.gls-container {
    width: 100%;
    max-width: 1300px; /* Option B (original layout) */
    margin: 0 auto;
    padding: 30px;
}

/* =======================================
   TOP NAVIGATION BAR
======================================= */
.gls-topnav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 30px;
    background: linear-gradient(to right, #1d3557, #457b9d);
    color: white;
    position: sticky;
    top: 0;
    z-index: 999;
}

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

.gls-topnav-center {
    gap: 24px;
}

.gls-topnav-right {
    gap: 12px;
}

.gls-nav-logo {
    color: white;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
}

.gls-nav-subtitle {
    display: block;
    font-size: 12px;
    opacity: 0.75;
}

/* NAV BUTTONS */
.btn-nav {
    padding: 8px 16px;
    background: #1d3557;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease;
}

.btn-nav:hover {
    background: #163047;
    text-decoration: none;
}

.btn-nav i {
    width: 16px;
    height: 16px;
}

/* =======================================
   DEV BANNER
======================================= */
.gls-dev-banner {
    background: #e63946;
    color: white;
    text-align: center;
    padding: 10px 0;
    font-weight: 600;
    letter-spacing: 1px;
}

/* =======================================
   BREADCRUMBS
======================================= */
.gls-breadcrumbs {
    font-size: 0.9rem;
    color: #1d3557;
    margin: 12px 4px 24px 4px;
}

.gls-breadcrumbs a {
    color: #1d3557;
    text-decoration: none;
    font-weight: 600;
}

.gls-breadcrumbs span {
    opacity: 0.75;
}

/* =======================================
   CARD GRID + CARDS
======================================= */
.gls-grid,
.gls-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px,1fr));
    gap: 32px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.gls-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 28px 32px;
    box-shadow: 
        0 4px 12px rgba(0,0,0,0.06),
        0 1px 3px rgba(0,0,0,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gls-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 6px 18px rgba(0,0,0,0.10),
        0 2px 6px rgba(0,0,0,0.06);
}

.gls-card h3 {
    margin-bottom: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0b2d52;
}

.gls-card p {
    margin-bottom: 18px;
    font-size: 1.05rem;
    color: #334a6b;
    line-height: 1.6;
}

.gls-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.gls-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
}

/* Module icon colours */
.gls-card-icon--blue   { background: #1d3557; }
.gls-card-icon--green  { background: #2a9d8f; }
.gls-card-icon--teal   { background: #1ea7a0; }
.gls-card-icon--orange { background: #f4a261; }
.gls-card-icon--red    { background: #e63946; }
.gls-card-icon--purple { background: #6c5ce7; }

.gls-card-link {
    font-weight: 600;
    color: #d62839;
    text-decoration: none;
}

.gls-card-link:hover {
    text-decoration: underline;
}

/* =======================================
   SECTION HEADERS
======================================= */
.gls-section {
    margin-top: 16px;
    margin-bottom: 32px;
}

.gls-section-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: #1d3557;
    margin-bottom: 6px;
}

.gls-section-subtitle {
    font-size: 1.02rem;
    color: #457b9d;
    margin-bottom: 14px;
}

.gls-section-navy {
    background: #0b2d52;
    border-radius: 18px;
    padding: 32px 28px 40px 28px;
    margin-top: 20px;
}

/* =======================================
   BUTTONS
======================================= */
.btn-primary,
.btn-secondary {
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
}

.btn-primary {
    background: #1d3557;
    color: white;
}

.btn-primary:hover {
    background: #163047;
}

.btn-secondary {
    background: #457b9d;
    color: white;
}

.btn-secondary:hover {
    background: #3a6b87;
}

/* =======================================
   FOOTER (NAVY)
======================================= */
.gls-footer-navy {
    background: #0b2d52;
    color: #ffffff;
    padding: 28px 18px;
}

.gls-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gls-footer-links-light a {
    color: #e9ecf2;
    text-decoration: none;
    font-weight: 600;
    margin-left: 18px;
}

.gls-footer-links-light a:hover {
    text-decoration: underline;
}

/* =======================================
   ELFIE ASSISTANT
======================================= */
#elfie-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

#elfie-img {
    width: 110px;
    cursor: pointer;
}

#elfie-bubble {
    position: absolute;
    bottom: 130px;
    right: 0;
    background: #ffffff;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    color: #1d3557;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    max-width: 230px;
    display: none;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

/* AUTO-GRID FIX FOR OLD PAGES */
.gls-section-navy > .gls-card {
    margin-bottom: 26px; /* still spaced correctly if not enough cards */
}

.gls-section-navy.auto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 32px !important;
}

.gls-section-navy.auto-grid .gls-card {
    margin-bottom: 0; /* grid controls spacing */
}
