@import url('https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wght@8..144,100..1000&family=Voces&display=swap');

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    background-image: url("/images/WaterDrops.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA9NC4wODE1IDI5MSA5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 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.text-title {
    font-family: "Voces", serif;
    color: steelblue;
}

.text-subtitle {
    font-family:"Voces", serif;
    color: steelblue;
}

.text-body {
    font-family:"Roboto Flex", serif;
    color:black;
}

body, a, p, .card-custom-thumbnail a, .card-custom a, .card-custom-alt-1 a {
    text-decoration: none !important;
}

.card-custom {
    border-radius: 12px;
    padding: 16px;
    background-color: white;
    max-height: 95vh;
    overflow-y: auto;
    scrollbar-width: thin;
}

    .card-custom::-webkit-scrollbar {
        width: 6px;
    }

    .card-custom::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .card-custom::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 10px;
    }

        .card-custom::-webkit-scrollbar-thumb:hover {
            background: #555;
        }

.no-scroll {
    max-height: none !important;
    overflow: visible !important;
}

.card-custom-thumbnail {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background-color: steelblue;
    border-radius: 8px;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, padding 0.3s ease;
}

    .card-custom-thumbnail:hover {
        padding: 16px 32px;
        font-size: 1.25rem;
    }

    .card-custom-thumbnail a {
        color: inherit;
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        text-decoration-color: white;
    }

    .card-custom-thumbnail img {
        width: 190px;
        height: 100px;
        border-radius: 6px;
        object-fit: cover;
    }

    .card-custom-thumbnail p {
        margin: 0;
        font-size: 1rem;
        font-weight: bold;
        color: white !important;
        text-decoration: none;
    }

.FloatRight img {
    float: right;
    margin: 0 0 15px 15px;
    max-width: 300px;
    height: auto;
}

.FloatLeft img {
    float: left;
    margin: 0 15px 15px 0;
    max-width: 300px;
    height: auto;
}

.card-custom-alt-1 {
    background-color: steelblue;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    cursor: pointer;
}

    .card-custom-alt-1:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    .card-custom-alt-1 p {
        margin-bottom: 0px;
    }

.card-custom-alt-2 {
    background-color: steelblue;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: start;
}

    .card-custom-alt-2 p {
        margin-bottom: 0px;
    }

/* Hidden scrollbar utility */
.scrollable-hidden {
    overflow-y: auto;
    min-height: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.scrollable-hidden::-webkit-scrollbar {
    display: none;
}

/* Desktop layout (md and up) */
@media (min-width: 768px) {
    .layout-container {
        height: 100vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .layout-row {
        flex: 1 1 0;
        overflow: hidden;
        height: 100%;
        display: flex;
        flex-wrap: nowrap;
    }

    .content-column,
    .right-column {
        height: 100%;
    }
}

/* Mobile layout (below md) */
@media (max-width: 767.98px) {
    html, body {
        overflow: auto;
        height: auto;
    }

    .layout-container,
    .layout-row {
        height: auto;
        overflow: visible;
    }

    .content-column {
        height: auto;
        overflow-y: visible;
        min-height: unset;
    }

    .right-column {
        height: auto;
        overflow-y: visible;
    }

    .right-column .card-custom {
        max-height: none;
        overflow-y: visible;
    }

    .card-custom {
        max-height: none;
        padding: 12px;
    }

    .card-custom-thumbnail:hover {
        padding: 8px;
        font-size: 1rem;
    }

    .card-custom-thumbnail img {
        width: 100%;
        height: auto;
        max-height: 80px;
    }

    .card-custom-thumbnail p {
        font-size: 0.9rem;
    }

    .FloatRight img,
    .FloatLeft img {
        float: none;
        display: block;
        margin: 0 auto 15px auto;
        max-width: 100%;
    }
}

/* Sidebar-specific card variants */
.card-sidebar-thumbnail {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background-color: #1a6fa8;
    border-radius: 8px;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .card-sidebar-thumbnail:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        background-color: #155d8e;
    }

    .card-sidebar-thumbnail img {
        width: 55%;
        height: 80px;
        border-radius: 6px;
        object-fit: cover;
        flex-shrink: 0;
    }

    .card-sidebar-thumbnail p {
        margin: 0;
        padding-right: 6px;
        font-size: 1rem;
        font-weight: bold;
        color: #e8f4fd !important;
        text-decoration: none;
        overflow-wrap: break-word;
        min-width: 0;
    }

.card-sidebar-news {
    background-color: #1e5f8c;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    cursor: pointer;
}

    .card-sidebar-news:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        background-color: #174f75;
    }

    .card-sidebar-news p {
        margin-bottom: 0;
        color: #d6eaf8;
    }

.right-column .text-title,
.right-sidebar .text-title {
    color: white;
}

/* ?? Shared contact page styles ?? */

.contact-hero {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    min-height: 120px;
    background: linear-gradient(135deg, steelblue 0%, #1a4f6e 100%);
}

.contact-hero img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    display: block;
}

.contact-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem 1.5rem;
    background: linear-gradient(to bottom, transparent 20%, rgba(20, 70, 110, 0.85) 100%);
}

    .contact-hero-overlay h1,
    .contact-hero-overlay h2 {
        color: white !important;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
        margin-bottom: 0;
    }

    .contact-hero-overlay h2 {
        font-size: 1rem;
        opacity: 0.9;
    }

.info-tile {
    border: 1px solid #dce8f0;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(70, 130, 180, 0.10);
}

.info-tile-header {
    background-color: steelblue;
    color: white;
    padding: 0.55rem 1rem;
    font-family: "Voces", serif;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.01em;
}

.info-tile-body {
    padding: 0.85rem 1rem;
    font-size: 0.92rem;
}

    .info-tile-body address {
        font-style: normal;
        line-height: 1.7;
        margin-bottom: 0;
    }

    .info-tile-body ul {
        margin-bottom: 0;
    }

    .info-tile-body li {
        padding: 0.2rem 0;
        border-bottom: 1px solid #f0f4f8;
    }

    .info-tile-body li:last-child {
        border-bottom: none;
    }

.info-tile .table {
    margin-bottom: 0;
    font-size: 0.88rem;
}

.map-tile {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(70, 130, 180, 0.12);
    height: 100%;
    min-height: 360px;
}

.intro-banner {
    background: linear-gradient(135deg, #eaf3fb 0%, #f5f9fd 100%);
    border-left: 4px solid steelblue;
    border-radius: 0 8px 8px 0;
    padding: 0.85rem 1.1rem;
    font-size: 0.95rem;
    line-height: 1.65;
}
