@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

html {
    position: relative;
    min-height: 100%;
}

body {
    margin: 0;
    padding-bottom: 3.5rem;
    font-family: 'Open Sans', sans-serif;
    color: #333;
    line-height: 1.5;
}

/* ── Skip link ── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 10001;
    background: #337cc0;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

a {
    color: #337cc0;
    transition: color 0.2s;
}

.body-div {
    margin-top: 0.9375rem;
    margin-bottom: 0.9375rem;
    padding-top: 0.9375rem;
    padding-bottom: 0.9375rem;
}

.required {
    color: #dc3545;
    font-weight: 600;
}

/* ── Top bar ── */
#top-div-container {
    width: 100%;
    background-color: #2c3a47;
    color: #fff;
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.top-div i {
    margin-right: 5px;
}

.top-div a {
    text-decoration: none;
    color: #fff;
    transition: opacity 0.2s;
}

.top-div a:hover {
    opacity: 0.8;
    text-decoration: none;
}

.top-div span {
    padding: 0 0.5rem;
}

/* ── Navigation ── */
.nav-wrapper {
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 10;
    padding: 20px 0;
    position: sticky;
    top: 0;
}

.nav-link {
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    border-radius: 6px;
    padding: 8px 0;
    margin-top: 0;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s, transform 0.2s;
    display: block;
    pointer-events: none;
}

.dropdown:hover > .dropdown-menu,
.dropdown:focus-within > .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-item {
    padding: 8px 20px;
    font-size: 0.875rem;
    transition: background-color 0.15s, color 0.15s;
    border-radius: 4px;
    margin: 0 4px;
}

.dropdown-item:hover, .dropdown-item:focus {
    color: #fff !important;
    background-color: #337cc0 !important;
    outline: none;
}

/* ── Focus indicators ── */
.nav-link:focus {
    outline: 2px solid #337cc0;
    outline-offset: 2px;
}

.btn:focus {
    outline: 2px solid #337cc0;
    outline-offset: 2px;
}

.navbar-toggler:focus {
    outline: 2px solid #337cc0;
    outline-offset: 2px;
}

.nav-spacer {
    border-right: 1px solid #ddd;
    margin: 0 10px;
}

/* ── Content header ── */
.content-header-wrapper {
    width: 100%;
    background: linear-gradient(135deg, #f8f9fa, #eef1f5);
    border-bottom: 1px solid #e0e4e8;
    padding: 1.25rem 0;
}

.content-header {
    display: flex;
    align-items: center;
    min-height: 2rem;
}

.content-header h2 {
    margin: 0;
    font-weight: 700;
    color: #2c3a47;
}

/* ── Carousel ── */
.carousel-img {
    width: 100%;
    object-fit: cover;
}

.carousel-inner {
    width: 100%;
    max-height: 31.25rem !important;
}

.carousel-caption-top,
.carousel-caption-topleft,
.carousel-caption-bottom,
.carousel-caption-left,
.carousel-caption-right {
    position: absolute;
    z-index: 10;
    padding: 20px 28px;
    color: #fff;
    text-align: center;
    background-color: rgba(44, 58, 71, 0.88);
    border-radius: 10px;
    backdrop-filter: blur(4px);
}

.carousel-caption-top {
    right: 40%;
    top: 18px;
    left: 40%;
}

.carousel-caption-topleft {
    right: 60%;
    top: 18px;
    left: 20%;
}

.carousel-caption-bottom {
    right: 40%;
    bottom: 18px;
    left: 40%;
}

.carousel-caption-left {
    left: 5%;
    right: 50%;
    top: 50%;
    transform: translateY(-50%);
    text-align: left;
}

.carousel-caption-right {
    right: 5%;
    left: 50%;
    top: 50%;
    transform: translateY(-50%);
    text-align: left;
}

.carousel-pause-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 11;
    background: rgba(44, 58, 71, 0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 14px;
    line-height: 36px;
    text-align: center;
    padding: 0;
}

.carousel-pause-btn:hover,
.carousel-pause-btn:focus {
    background: rgba(44, 58, 71, 0.95);
    outline: 2px solid #fff;
}

/* ── Homepage banners ── */
.content-banner-1 {
    width: 100%;
    background-color: #222;
    color: #fff;
}

.content-banner-2 {
    width: 100%;
}

.content-banner-3 {
    width: 100%;
    background-color: #f8f9fa;
    text-align: center;
    padding: 40px 0;
}

.content-banner-4 {
    width: 100%;
    background-color: #fff;
    text-align: center;
    padding: 30px 0;
}

.btn-navlink {
    width: 160px;
    line-height: 55px;
    border-radius: 28px;
    margin: 3px;
    font-weight: 600;
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn-navlink:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#building-img {
    width: 100%;
    text-align: center;
    margin-top: 60px;
}

hr.style {
    border-top: 3px double #fff;
    width: 90%;
}

.banner-2-left {
    background: linear-gradient(180deg, #2a6aaa, #225a92);
    height: 100%;
    width: 100%;
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    border-radius: 0;
}

.banner-2-right {
    background-color: #fff;
    height: 100%;
    padding: 40px;
    color: #000;
    text-align: left;
}

/* ── Service boxes ── */
.service-box {
    background-color: #fff;
    border: 1px solid #e5e5e5;
    margin: 15px;
    padding: 30px;
    height: 275px;
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.service-box:hover {
    border-color: #337cc0;
    box-shadow: 0 6px 20px rgba(51, 124, 192, 0.15);
    transform: translateY(-3px);
}

.service-box-first {
    background: linear-gradient(135deg, #337cc0, #2a6aaa);
    border: 1px solid transparent;
    margin: 15px;
    padding: 30px;
    height: 275px;
    color: #fff;
    border-radius: 8px;
}

.service-box-last {
    background: linear-gradient(135deg, #2c3a47, #1a252f);
    border: 1px solid transparent;
    margin: 15px;
    padding: 30px;
    height: 275px;
    color: #fff;
    border-radius: 8px;
}

.service-box i,
.service-box-first i,
.service-box-last i {
    font-size: 2rem;
    margin-bottom: 8px;
    display: inline-block;
}

/* ── Partnerships ── */
.partnerships-box {
    padding: 30px 20px;
}

.partnerships-box img {
    margin: 12px 16px;
    max-height: 60px;
    width: auto;
    vertical-align: middle;
    filter: grayscale(20%);
    transition: filter 0.2s, transform 0.2s;
}

.partnerships-box img:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* ── Footer ── */
.footer-container {
    width: 100%;
    background-color: #2c3a47;
    color: #fff;
    padding: 14px 0;
}

.footer {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
}

.footer a {
    text-decoration: underline;
    color: #fff;
}

.footer a:hover {
    color: #e8e8e8;
}

/* ── Left sidebar nav ── */
.left-nav-header {
    color: #fff;
    background: linear-gradient(135deg, #2c3a47, #344150);
    font-size: 1.125em;
    font-weight: 600;
    text-align: center;
    padding: 12px 10px;
    border-radius: 6px 6px 0 0;
}

.left-nav {
    width: 100%;
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    font-size: 0.9rem;
    transition: background-color 0.15s, color 0.15s, padding-left 0.15s;
}

.left-nav:hover,
a:focus .left-nav {
    color: #fff;
    background-color: #337cc0;
    padding-left: 16px;
}

a:hover .left-nav,
a:focus .left-nav {
    text-decoration: none;
}

/* ── Forms ── */
.form-control:focus {
    border-color: #337cc0;
    outline: 2px solid #337cc0;
    outline-offset: 0;
    box-shadow: 0 0 0 0.2rem rgba(51, 124, 192, 0.25);
}

/* ── Responsive iframe ── */
.responsive-iframe {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.responsive-iframe iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ── Responsive ── */
@media (max-width: 575.98px) {
    #carouselExampleIndicators {
        display: none;
    }
    #building-img {
        display: none;
    }
    .top-div-2 {
        margin-top: 10px;
    }
    .nav-wrapper {
        position: relative;
    }
}

@media (min-width: 576px) {
    .icon-fix {
        display: none;
    }
}
