﻿/****************************/
/* Board of Corrections Website */
/* July 2022 */
/****************************/
/* Fonts */
@font-face {
    font-family: 'ralewaymedium';
    src: url('../fonts/raleway-medium-webfont.woff2') format('woff2'), url('../fonts/raleway-light-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'ralewaylight';
    src: url('../fonts/raleway-light-webfont.woff2') format('woff2'), url('../fonts/raleway-light-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
/* Virginia.gov Header */
#va_aagency_bar .sui-search-box__text-input {
    width: auto !important;
}

html {
    box-sizing: inherit !important;
}

body {
    color: #363636;
    font-family: 'ralewaymedium', arial, sans-serif;
    font-size: 62.5%;
    margin: 0;
}

    body .va-agency-bar-container {
        z-index: 101 !important;
    }

header#content {
    background-color: #7e9ea1;
    background-image: url("../images/hero-image.jpg");
    background-position: right top;
    background-repeat: no-repeat;
    background-size: cover;
    border-bottom: 1px #808285 solid;
    padding-top: 10px;
    padding-bottom: 75px;
    position: relative;
    top: 0px;
}

#state-seal {
    display: block;
    font-size: 6em;
    margin: 75px auto 0px;
    width: 2em;
}

header#content h1 {
    color: #fff;
    font-family: 'ralewayregular', arial, sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 3.5em;
    letter-spacing: .025em;
    line-height: 1em;
    margin: 25px auto 50px;
    max-width: 650px;
    text-align: center;
    width: 60%;
}

    header#content h1 span {
        display: block;
    }

h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    letter-spacing: 0.03em;
}

.main-content {
    margin: 2rem 20rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    max-width: 1400px;
    padding: 2rem 0;
}

.btn-primary {
    background-color: #056b63;
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 1.1px;
    padding: 15px 40px;
    width: auto;
    text-decoration: none;
    border-radius: 0.2rem;
}

    .btn-primary:hover {
        border: 1px solid #056b63;
        background-color: #fff;
        color: #056b63;
    }

.card {
    background: #fff;
    border-radius: 10px;
    padding: 1.1rem 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid #e1e4ea;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 150px;
}

.card-header {
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2933;
    margin-bottom: 0.25rem;
}

.card-subtitle {
    font-size: 0.85rem;
    color: #6b7280;
}

.card-body {
    margin: 0.5rem 0 0.75rem;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #374151;
}

.card-footer a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    text-decoration: none;
    color: #2563eb;
    font-weight: 500;
}

    .card-footer a:hover {
        text-decoration: underline;
    }

    .card-footer a::after {
        content: "↗";
        font-size: 0.8rem;
    }

@media screen and (max-width: 900px) {
    body {
        min-width: 100%;
        margin: 0;
    }
    header h1{
        width: 8rem;
    }
    main.main-content {
        margin: 2rem 2rem;
    }
    .grid {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }
}
