@import url('../css/default.css');
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css");

/* ===== Bootstrap primary colour override ===== */
.btn-primary {
    background-color: #006280 !important;
    border-color: #006280 !important;
    color: #fff !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #004d63 !important;
    border-color: #004d63 !important;
}
.btn-outline-primary {
    color: #006280 !important;
    border-color: #006280 !important;
}
.btn-outline-primary:hover {
    background-color: #006280 !important;
    border-color: #006280 !important;
    color: #fff !important;
}
.text-primary { color: #006280 !important; }
.bg-primary   { background-color: #006280 !important; }
.bg-primary-subtle { background-color: rgba(0,98,128,0.1) !important; }

/* ===== Primary button variant ===== */
.button-primary {
    background: #006280 !important;
    color: #fff !important;
}
.button-primary:hover {
    background: #004d63 !important;
    color: #fff !important;
}

/* ===== Header / Nav ===== */
.nav-logo img    { width: 60px; }
.navbar-brand img { width: 60px; }
.offcanvas-title img { width: 120px; }

.web-menu ul li a {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    padding: 0.4rem 0.65rem;
    border-radius: 0.4rem;
    transition: color .2s, background .2s;
}
.web-menu ul li a:hover,
.web-menu ul li a.active-link {
    color: #006280 !important;
    background: rgba(0,98,128,0.08) !important;
}

/* ===== Page top spacer (fixed nav offset) ===== */
.page-top-spacer { padding-top: 80px; }

/* ===== Hero section ===== */
.hero-section {
    padding: 100px 0 60px;
}
.hero-image {
    border-radius: 1.25rem;
    box-shadow: 0 1rem 3rem rgba(0,98,128,0.18);
    max-height: 420px;
    object-fit: cover;
    width: 100%;
}

/* ===== Feature cards (homepage) ===== */
.feature-card {
    border-radius: 1rem !important;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s !important;
}
.feature-card:hover {
    transform: translateY(-7px) !important;
    box-shadow: 0 0.75rem 1.5rem rgba(0,98,128,0.18) !important;
    border-color: #006280 !important;
}
.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
}

/* ===== Section heading underline ===== */
.section-heading {
    position: relative;
    display: inline-block;
    padding-bottom: 0.6rem;
    margin-bottom: 0.4rem;
}
.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #006280;
    border-radius: 2px;
}

/* ===== Page hero banner (breadcrumb pages) ===== */
.page-hero {
    background: linear-gradient(135deg, #006280 0%, #004d63 100%);
    padding: 2.25rem 0 1.75rem;
    margin-top: 72px;
}
.page-hero h1, .page-hero h2, .page-hero h3,
.page-hero h4, .page-hero h5, .page-hero h6 { color: #fff; }
.page-hero .breadcrumb-item a { color: rgba(255,255,255,0.8); }
.page-hero .breadcrumb-item.active { color: rgba(255,255,255,0.6); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* ===== Benefits ===== */
.benefits img { height: 170px; }

/* ===== Search form ===== */
.banner_form {
    display: grid;
    grid-template-columns: 1fr max-content;
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-top: 0.75rem;
    box-shadow: 0 0.25rem 1rem rgba(0,0,0,0.08);
}
.banner_form>i {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: #6c757d;
    z-index: 2;
}
.banner_form input {
    padding: 0.6rem 1rem 0.6rem 2.25rem;
    border-radius: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-right: none;
}
.banner_form button {
    padding: 0.4rem 1rem;
    border-radius: 0;
    background: #006280;
    color: #fff;
}
.banner_form button:hover { background: #004d63 !important; }

/* ===== Card hover ===== */
.cardboxhover:hover {
    border: 1px solid #006280 !important;
    transition: .15s ease;
    box-shadow: 0 0.25rem 0.75rem rgba(0,98,128,0.12);
}
.card { border-radius: 0.75rem; }

/* ===== Blog cards ===== */
.blog-card {
    border: none !important;
    border-radius: 0.85rem !important;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease !important;
    box-shadow: 0 0.125rem 0.5rem rgba(0,0,0,0.07) !important;
}
.blog-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 0.75rem 1.5rem rgba(0,98,128,0.16) !important;
}
.blog-card .card-img-top {
    height: 195px;
    object-fit: cover;
}

/* ===== Table improvements ===== */
.table-primary-head thead th {
    background: #006280;
    color: #fff;
    border-color: #005570;
    font-weight: 600;
}
.table-primary-head tbody tr:hover {
    background: rgba(0,98,128,0.04);
    cursor: pointer;
}

/* ===== Contact page ===== */
.contact-info-card {
    border-radius: 0.85rem;
    border: 1px solid #e4eff3 !important;
    padding: 1.5rem;
    transition: border-color .3s, box-shadow .3s;
    height: 100%;
}
.contact-info-card:hover {
    border-color: #006280 !important;
    box-shadow: 0 0.25rem 1rem rgba(0,98,128,0.1);
}
.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0,98,128,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #006280;
    flex-shrink: 0;
}

/* ===== Auth / Login ===== */
.auth-bg {
    min-height: calc(100vh - 72px);
    background: linear-gradient(135deg, #f0f7fa 0%, #e4eff3 100%);
    display: flex;
    align-items: center;
    padding: 4rem 0;
}
.auth-card {
    border-radius: 1rem !important;
    overflow: hidden;
    box-shadow: 0 0.5rem 2.5rem rgba(0,98,128,0.13) !important;
    border: none !important;
}
.auth-card-header {
    background: linear-gradient(135deg, #006280 0%, #004d63 100%);
    padding: 2rem 2rem 1.5rem;
    text-align: center;
}

/* ===== Footer redesign ===== */
.footer-main {
    background: #0f2532;
}
.footer-main a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color .2s;
    font-size: 0.9rem;
}
.footer-main a:hover { color: #4db8d4; }
.footer-brand-text {
    color: rgba(255,255,255,0.55);
    font-size: 0.88rem;
    line-height: 1.7;
}
.footer-main .footer-section-title {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.footer-link-list li { margin-bottom: 0.45rem; }
.footer-bottom {
    background: #0a1e2a;
    padding: 1rem 0;
}
.footer-bottom p {
    color: rgba(255,255,255,0.45);
    font-size: 0.82rem;
    margin: 0;
}
.footer-bottom a { color: #4db8d4; }
.footer-divider { border-color: rgba(255,255,255,0.1); }

.text-justify { text-align: justify; }
