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

:root {
    --sgm-blue: #29458B;        /* main buttons, active nav */
    --sgm-blue-dark: #111E40;   /* top strip / site toggle */
    --sgm-blue-dark-hover: #293B69;
    --sgm-nav-hover-bg: #EAEAEA;
    --sgm-body-bg: #ffffff;
    --sgm-text: #333333;
    --sgm-muted: #777777;
    --sgm-division-blue: #29458B;
    --sgm-values-bg: #F5F5F5;
    --sgm-radius-large: 18px;
}

.sgm-body {
    font-family: "adelle-sans", sans-serif;
    font-weight: 400;
    font-style: normal;
    background-color: var(--sgm-body-bg);
    color: var(--sgm-text);
    margin: 0;
}

/* Headings heavier */
h1, h2, h3, h4, h5, h6,
.sgm-section-title,
.sgm-hero-title {
    font-weight: 700;
}

/* ---- Top strip ---- */

.sgm-top-strip {
    background-color: var(--sgm-blue-dark);
    font-size: 15px;
    padding: 20px 0;
}

.sgm-top-strip-label {
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.sgm-top-switcher {
    font-size: 11px;
}

.sgm-switch-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background-color: transparent;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.sgm-switch-pill:hover {
    background-color: var(--sgm-blue-dark-hover);
    border-color: transparent;
    color: #ffffff;
}

.sgm-switch-pill--active {
    background-color: #ffffff;
    color: var(--sgm-blue-dark);
    border-color: #ffffff;
}

/* Small screens: allow horizontal scroll of pills */
@media (max-width: 575.98px) {
    .sgm-top-switcher {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        justify-content: flex-start;
    }
}

/* ---- Navbar (white, no shadow) ---- */

.sgm-navbar {
    background-color: #ffffff;
    padding-top: 1.6rem;
    padding-bottom: 0.6rem;
}

.sgm-logo {
    height: 50px;
    width: auto;
}

.sgm-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #111111;
}

.sgm-navbar .navbar-brand:hover .sgm-logo-text {
    color: #111111;
}

.sgm-nav-links .nav-link {
    color: #111111;
    font-size: 14px;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

/* Hover: light grey */
.sgm-nav-links .nav-link:hover {
    background-color: var(--sgm-nav-hover-bg);
    color: var(--sgm-blue-dark);
}

/* ACTIVE: blue pill with white text */
.sgm-nav-links .nav-link.active {
    background-color: var(--sgm-blue);
    color: #ffffff;
}

/* Navbar toggler (mobile) */
.sgm-navbar-toggler {
    background-color: transparent;
}

.sgm-navbar-toggler-icon {
    width: 1.5em;
    height: 1.5em;
    background-image: none;
    position: relative;
}

.sgm-navbar-toggler-icon::before,
.sgm-navbar-toggler-icon::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #000000;
    border-radius: 999px;
}

.sgm-navbar-toggler-icon::before {
    top: 6px;
}

.sgm-navbar-toggler-icon::after {
    bottom: 6px;
}

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

.sgm-hero-wrapper {
    background-color: #ffffff;
}

.sgm-hero-card {
    border-radius: 20px;
    min-height: 360px;
    background-color: #000; /* fallback if video fails */
    position: relative;
}

@media (min-width: 992px) {
    .sgm-hero-card {
        min-height: 420px;
    }
}

.sgm-hero-video-bg {
    position: absolute;
    inset: 0;
}

.sgm-hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sgm-hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6); /* 60% black overlay */
}

/* Centered hero content */
.sgm-hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 600px;
}

@media (min-width: 768px) {
    .sgm-hero-content {
        padding: 64px 64px;
        min-height: 420px;
    }
}

.sgm-hero-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 20px;
    border-radius: 999px;
    background-color: #ffffff;
    color: var(--sgm-blue-dark);
    font-size: 13px;
    margin-bottom: 18px;
}

.sgm-hero-title {
    font-size: 55px;
    line-height: 1.25;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .sgm-hero-title {
        font-size: 32px;
    }
}

.sgm-hero-subtitle {
    font-size: 14px;
    max-width: 420px;
    margin-bottom: 24px;
    color: #f5f5f5;
}

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

.sgm-btn-primary {
    background-color: var(--sgm-blue);
    color: #ffffff;
    border-radius: 999px;
    font-size: 14px;
    padding: 8px 20px;
    border: none;
}

.sgm-btn-primary:hover {
    background-color: #1e3568;
    color: #ffffff;
}

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

.sgm-section {
    background-color: #ffffff;
}

.sgm-section-title {
    font-size: 24px;
    margin-bottom: 8px;
    color: #111111;
}

.sgm-section-title--highlight {
    color: var(--sgm-blue);
    font-size: 55px;
}

.sgm-section-lead {
    font-size: 14px;
    max-width: 440px;
    color: var(--sgm-muted);
}

/* ---- Key Divisions (image blocks) ---- */

.sgm-division-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Square image container with rounded corners */
.sgm-division-block {
    position: relative;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 10px;
}

/* Maintain square aspect ratio */
.sgm-division-block::before {
    content: "";
    display: block;
    padding-top: 100%; /* 1:1 square */
}

/* Actual image cropped inside */
.sgm-division-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sgm-division-text {
    font-size: 11px;
}

.sgm-division-title {
    font-weight: 700;
}

.sgm-division-subtitle {
    color: var(--sgm-muted);
}

/* ---- Values card ---- */

.sgm-values-card {
    border-radius: 18px;
    background-color: var(--sgm-values-bg);
    padding: 60px 24px;
}

.sgm-values-text {
    font-size: 16px;
    margin-bottom: 0;
}

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

.sgm-footer {
    font-size: 12px;
}

/* ---- Mobile adjustments ---- */

@media (max-width: 767.98px) {
    .sgm-hero-card {
        
    }

    .sgm-hero-content {
        padding: 40px 20px;
        min-height: 340px;
    }

    .sgm-section-title {
        font-size: 20px;
    }

    .sgm-values-card {
        padding: 40px 20px;
    }
    .sgm-section-title--highlight{
        font-size: 32px;
    }
}

/* =========================================================
   ABOUT PAGE STYLES
   ======================================================= */

/* Intro paragraph under the hero */
.sgm-about-intro-text {
    max-width: 840px;
    font-size: 18px;
    line-height: 1.5;
    color: var(--sgm-blue);
    font-weight: 700;
}

@media (min-width: 992px) {
    .sgm-about-intro-text {
        font-size: 20px;
    }
}

/* Vision / Mission / Values cards */
.sgm-vmv-card {
    border-radius: 18px;
    padding: 24px 24px 28px;
    color: #ffffff;
}

/* Colours you specified */
.sgm-vmv-card--vision {
    background-color: #1943AA;
}

.sgm-vmv-card--mission {
    background-color: #174DD6;
}

.sgm-vmv-card--values {
    background-color: #3F70E9;
}

.sgm-vmv-title {
    font-size: 18px;
    margin-bottom: 16px;
}

/* Grey image area inside each card (replace with real image) */
.sgm-vmv-image-wrapper {
    margin-bottom: 16px;
    width: 100%;
    padding-top: 70%; /* approximate aspect ratio from design */
    position: relative;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* If you use <img> inside, this crops it nicely */
.sgm-vmv-image {
    position: absolute;
    inset: 0;
    width: 80%;
    height: 80%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.sgm-vmv-text {
    font-size: 13px;
    margin-bottom: 0;
}

/* Leadership section */
.sgm-leadership-heading {
    color: var(--sgm-blue);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
}

@media (min-width: 992px) {
    .sgm-leadership-heading {
        font-size: 24px;
    }
}

.sgm-leadership-text {
    font-size: 14px;
    color: var(--sgm-text);
    max-width: 420px;
}

.sgm-leadership-card {
    border-radius: 18px;
    background-color: #F5F5F5;
    padding: 32px;
}

.sgm-leadership-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

/* Mobile spacing tweaks for VMV cards */
@media (max-width: 767.98px) {
    .sgm-vmv-card {
        padding: 20px 18px 22px;
    }
}

/* ==========================
   SERVICES PAGE
   ======================== */

.sgm-services-filter {
    margin-top: 8px;
}

.sgm-services-filter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 12px;
    text-decoration: none;
    border: 1px solid #DADADA;
    background-color: #F7F7F7;
    color: #444444;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sgm-services-filter-pill:hover {
    background-color: var(--sgm-nav-hover-bg);
    border-color: #C5C5C5;
}

.sgm-services-filter-pill.is-active {
    background-color: var(--sgm-blue);
    border-color: var(--sgm-blue);
    color: #ffffff;
}

/* cards */

.sgm-service-card {
    border-radius: 18px;
    background-color: #F5F5F5;
    padding: 20px 20px 24px;
}

.sgm-service-card-body {
    /* space for avatar etc */
}

.sgm-service-category-pill {
    display: inline-flex;
    padding: 4px 12px;
    border-radius: 999px;
    background-color: #ffffff;
    font-size: 11px;
    color: #555555;
    border: 1px solid #E0E0E0;
}

/* round avatar placeholder */

/* ICON ONLY — no circle, no background */
.sgm-service-avatar {
    width: auto;
    height: auto;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: none !important;
    padding: 0;
    border-radius: 0;
}

/* SVG icon */
.sgm-service-avatar img,
.sgm-service-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
    background: none !important;
    border-radius: 0;
}


.sgm-service-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #111111;
}

.sgm-service-excerpt {
    font-size: 12px;
    color: var(--sgm-text);
    margin-bottom: 0;
}

/* responsive spacing */

@media (max-width: 767.98px) {
    .sgm-service-card {
        padding: 18px 16px 20px;
    }
}

/* ==========================
   CONTACT PAGE
   ======================== */

.sgm-contact-card {
    border-radius: 18px;
    background-color: #F7F7F7;
    padding: 24px 24px 28px;
    display: flex;
    flex-direction: column;
}

.sgm-contact-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.sgm-contact-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
}

.sgm-contact-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #111111;
}

.sgm-contact-text {
    font-size: 13px;
    color: #333333;
}

.sgm-contact-link {
    color: #333333;
    text-decoration: none;
}

.sgm-contact-link:hover {
    text-decoration: underline;
}

/* Full-width map section */
.sgm-map-wrapper {
    width: 100%;
    background-color: #E3E3E3; /* grey placeholder behind map */
}

.sgm-map-inner {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

/* Responsive map: takes full width with fixed height */
.sgm-map-iframe {
    width: 100%;
    height: 420px;
    display: block;
}

@media (max-width: 767.98px) {
    .sgm-contact-card {
        padding: 20px 20px 24px;
    }

    .sgm-map-iframe {
        height: 300px;
    }
}


/* ==========================
   ACCREDITATION PAGE
   ======================== */

.sgm-acc-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    font-size: 13px;
}

.sgm-acc-table thead tr {
    border-bottom: 1px solid #E3E3E3;
}

.sgm-acc-table thead th {
    border-bottom-width: 1px !important;
    border-bottom-color: #E3E3E3 !important;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #777777;
    background-color: #F8F8F8;
}

.sgm-acc-table tbody tr:nth-child(even) {
    background-color: #FAFAFA;
}

.sgm-acc-table tbody tr:nth-child(odd) {
    background-color: #FFFFFF;
}

.sgm-acc-table td,
.sgm-acc-table th {
    padding: 12px 16px;
    border-top: none;
}

.sgm-acc-title strong {
    font-size: 13px;
    color: #111111;
}

.sgm-acc-description {
    margin-top: 2px;
}

.sgm-acc-th-download,
.sgm-acc-download {
    white-space: nowrap;
}

/* Download button pill */
.sgm-acc-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    text-decoration: none;
    background-color: var(--sgm-blue);
    color: #ffffff;
    border: none;
    transition: background-color 0.15s ease;
}

.sgm-acc-download-btn:hover {
    background-color: #1e3568;
    color: #ffffff;
}

@media (max-width: 767.98px) {
    .sgm-acc-table thead {
        display: none;
    }

    .sgm-acc-table tbody tr {
        display: block;
        margin-bottom: 12px;
        border-radius: 12px;
        overflow: hidden;
        background-color: #F7F7F7 !important;
    }

    .sgm-acc-table tbody td {
        display: block;
        border: none;
        padding: 8px 14px;
    }

    .sgm-acc-download {
        text-align: left !important;
    }
}