/* ===== Advance Safety Theme — matches advancesafetytraining.com ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --ast-teal: #04374A;
    --ast-teal-dark: #053a50;
    --ast-black: #000000;
    --ast-light-blue: #E4F2FF;
    --ast-dark-section: #003548;
    --ast-off-white: #FAFAFA;
    --ast-text: #000;
    --ast-white: #fff;
}

html, body {
    font-family: 'Poppins', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--ast-text);
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--ast-teal);
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}

a {
    color: var(--ast-teal);
    text-decoration: none;
}

a:hover {
    color: var(--ast-teal-dark);
    text-decoration: underline;
}

/* ===== Buttons — matches WP site exactly ===== */

/* Solid teal button — "view solutions", submit buttons */
.btn-primary,
.btn-ast {
    background-color: var(--ast-teal);
    border-color: var(--ast-teal);
    color: #fff;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 18px;
    border-radius: 5px;
    padding: 0 25px;
    line-height: 64px;
    height: 64px;
    display: inline-block;
    text-align: center;
    transition: background-color 0.2s;
    text-decoration: none;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-ast:hover,
.btn-ast:focus {
    background-color: var(--ast-teal-dark);
    border-color: var(--ast-teal-dark);
    color: #fff;
    text-decoration: none;
}

/* Smaller teal button — login/submit */
.btn-primary-sm {
    background-color: var(--ast-teal);
    border-color: var(--ast-teal);
    color: #fff;
    font-weight: 600;
    border-radius: 5px;
    padding: 10px 24px;
    line-height: normal;
    height: auto;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s;
}

.btn-primary-sm:hover,
.btn-primary-sm:focus {
    background-color: var(--ast-teal-dark);
    border-color: var(--ast-teal-dark);
    color: #fff;
}

/* Small inline buttons — admin table Edit / Delete */
.btn-sm {
    font-size: 14px;
    padding: 6px 16px;
    line-height: 1.5;
    height: auto;
    text-transform: none;
    min-width: 75px;
}

/* Ghost button — header "CLICK TO SCHEDULE" style */
.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    background: transparent;
    text-transform: uppercase;
    padding: 15px 25px;
    border-radius: 5px;
    transition: background-color 0.2s, color 0.2s;
    text-decoration: none;
}

.btn-outline-light:hover {
    background: #fff;
    color: #000;
    text-decoration: none;
}

/* White button on dark bg — "VIEW MORE" on service cards */
.btn-outline-primary {
    background: #fff;
    color: var(--ast-teal);
    border: none;
    border-radius: 5px;
    text-transform: uppercase;
    font-size: 16px;
    padding: 0 20px;
    line-height: 50px;
    text-decoration: none;
    display: inline-block;
    font-weight: 400;
}

.btn-outline-primary:hover {
    background: #f0f0f0;
    color: var(--ast-teal);
    text-decoration: none;
}

/* ===== Cards — featured service card style ===== */
.card {
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    background-color: #e9ecef;
    color: #333;
    text-align: center;
}

.card:hover {
    transform: none;
    box-shadow: none;
}

.card .card-header {
    background-color: #e0e0e0;
    color: #333;
    font-weight: 500;
    border: none;
}

.card .card-body {
    color: #333;
    text-align: left;
}

.card .card-title a {
    color: var(--ast-teal);
    font-size: 20px;
    font-weight: 400;
}

/* ===== Tables ===== */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background-color: #e0e0e0;
    color: #333;
    padding: 10px 14px;
    text-align: left;
    font-weight: 500;
}

td {
    padding: 10px 14px;
    border-bottom: 1px solid #e0e0e0;
}

tr:hover {
    background-color: var(--ast-light-blue);
}

/* ===== Forms — matches WP login/contact form style ===== */
.form-control {
    height: 50px;
    line-height: 50px;
    border: 1px solid #ddd;
    font-family: 'Poppins', sans-serif;
}

.form-floating > .form-control:focus {
    border-color: var(--ast-teal);
    box-shadow: 0 0 0 0.2rem rgba(4, 55, 74, 0.2);
}

.form-check-input:checked {
    background-color: var(--ast-teal);
    border-color: var(--ast-teal);
}

/* Form container — shadow card like WP contact form */
.form-card {
    background-color: #fff;
    border: 0;
    padding: 30px;
    box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.2);
}

/* ===== Section backgrounds ===== */
.section-light-blue {
    background-color: var(--ast-light-blue);
}

.section-dark {
    background-color: var(--ast-dark-section);
    color: #fff;
}

.section-grey {
    background-color: var(--ast-off-white);
}

/* ===== Section heading with accent line ===== */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    padding: 0 85px;
}

.section-header h2::before,
.section-header h2::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 3px;
    background: var(--ast-teal);
}

.section-header h2::before {
    left: 0;
}

.section-header h2::after {
    right: 0;
}

/* ===== Validation ===== */
.validation-message {
    color: #dc3545;
    font-size: 0.85rem;
}

/* ===== Blazor error UI ===== */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* ===== Page Shell ===== */
.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===== Top Bar ===== */
.header-top-bar {
    background-color: #000;
    color: #ccc;
    font-size: 14px;
    padding: 6px 0;
    font-family: 'Poppins', sans-serif;
}

.header-contact span {
    color: #fff;
    font-weight: 500;
}

/* ===== Main Nav ===== */
.main-nav {
    background-color: #000;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.brand {
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.brand-logo {
    height: 50px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-links .nav-link {
    color: #fff;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 14px;
    padding: 10px 18px;
    transition: background-color 0.2s, color 0.2s;
    white-space: nowrap;
    text-decoration: none;
}

.nav-links .nav-link:hover,
.nav-links .nav-link.active {
    background-color: #053a50;
    color: #fff;
}

/* Mobile hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
}

/* ===== Main Content ===== */
.main-content {
    flex: 1;
    background-color: #fff;
}

/* Full-bleed content area — no constraints so hero banners go edge-to-edge */
.content {
    /* Controlled by MainLayout.razor.css */
}

/* White padded container for admin/inner pages */
.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 30px;
    background-color: #fff;
    min-height: 60vh;
}

/* ===== Footer ===== */
.site-footer {
    background-color: #000;
    color: #a9a9a9;
    padding: 3rem 0 1.5rem;
    font-size: 0.9rem;
}

.site-footer h5 {
    color: #fff;
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 24px;
    line-height: normal;
}

.footer-logo {
    height: 45px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-links a {
    color: #a9a9a9;
    text-decoration: none;
    font-weight: 500;
}

.footer-links a:hover {
    color: #fff;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.12);
    margin: 1.5rem 0 1rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        padding-bottom: 12px;
    }

    .nav-links.open {
        display: flex;
    }

    .main-nav ::deep .container {
        flex-wrap: wrap;
    }

    .nav-links ::deep .nav-link {
        padding: 10px 12px;
        width: 100%;
    }
}