﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

/*  --------------------------------------------------
    General Purpose CSS i have added
    --------------------------------------------------
*/
/*
    CONTROL VISIBILITY CLASS

    USAGE:

    if (isVisible) {
        element.classList.remove('hidden');
        element.classList.add('visible');
    } else {
        element.classList.remove('visible');
        element.classList.add('hidden');
    }

*/
/* Start with the element hidden by default */
.visibility-toggle.hidden {
    display: none !important;
}

/* When the element should be visible */
.visibility-toggle.visible {
    display: inline-flex !important; /* Or adjust to 'inline', 'inline-block', 'flex' as necessary */
    align-items: center;
}

/* Compact thumbnail for card image column */
td.cardImgColumn img.lazy {
    max-height: 40px; /* thumbnail height */
    width: auto; /* preserve aspect ratio */
    display: block;
    margin: 0 auto; /* center the image */
}

td.cardImgColumn div {
    display: flex;
    align-items: center;
    justify-content: center; /* optional: centers flex contents */
    gap: 6px; /* maintain existing spacing */
    white-space: nowrap;
}

/* Optional: Make it responsive - If you want smaller rows on mobile: */
@media (max-width: 768px) {
    td .cardImgColumn img.lazy {
        max-height: 30px;
    }
}

/*  --------------------------------------------------
    Original Site CSS
    --------------------------------------------------
*/

.home-logo {
    position: relative;
    top: 5px;
    right: 10px;
}

div.card-heading chevron::before {
    font-family: 'CaGov';
    content: '\58';
    float: right;
    display: inline;
}

div.card-heading chevron.collapsed::before {
    font-family: 'CaGov';
    content: '\59';
    float: right;
    display: inline;
}

.disclaimer {
    color: #696969;
    font-size: .85em;
}

.banner-main {
    text-align: center;
    background-color: #455659;
    color: #fff;
    width: 100%;
    padding: 0 0 0px 0;
    position: relative;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url('../images/background.jpg');
    background-size: cover;
}

/*  --------------------------------------------------
    Original Template CSS
    --------------------------------------------------
*/
a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    position: relative;
    min-height: 100%;
}

body {
    /* Margin bottom by footer height */
    margin-bottom: 60px;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px; /* Vertically center the text there */
}

/* Overriding cagov.core.min.css defaults (http s://california.azureedge.net/cdt/statetemplate/6.0.2/css/cagov.core.css)
-------------------------------------------------- */
.main-content a:not(.btn) {
    background-image: linear-gradient(to right, #046B99 50%, transparent 50%);
    background-repeat: repeat-x;
    background-size: 2px 1px;
    background-position: center bottom 4%;
    background-origin: padding-box;
    text-decoration: none !important;
}

    .main-content a:not(.btn):hover {
        background-image: linear-gradient(to right, #02374e 50%, transparent 50%);
        text-decoration: none !important;
    }

@media (min-width: 768px) {
    .branding {
        height: 25px !important; /* was 82px */
    }
}

.branding .header-organization-banner {
    line-height: 25px; /* was 82px */
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
}

    .branding .header-organization-banner img {
        width: 100%;
        max-width: 150px; /* was 300px */
        max-height: 18px; /* was 70px */
        object-fit: contain !important;
        object-position: left;
    }

@media (min-width: 768px) {
    .fixed.compact .branding {
        height: 2px !important; /* was 57px */
    }

    .fixed.compact .header-organization-banner {
        height: 2px; /* was 55px */
        max-height: 5px; /* was 45px */
        line-height: 2px; /* was 55px */
    }

        .fixed.compact .header-organization-banner a {
            max-width: 125px; /* was 225px */
        }
}

/*.main-content a:not(.btn) {
    background-image: linear-gradient(to right, #046B99 50%, transparent 50%);
    background-repeat: repeat-x;
    background-size: 2px 1px;
    background-position: center bottom 4%;
    background-origin: padding-box;
    text-decoration: none !important;
}

    .main-content a:not(.btn):hover {
        background-image: linear-gradient(to right, #02374e 50%, transparent 50%);
        text-decoration: none !important;
    }*/

/* -----------------------------------------
   LAYOUTS -  /source/scss/cagov/layout.scss
----------------------------------------- */
/* CPERI: FORCE DISABLE MOBILE CONTROLS (Padding + Search + Hamburger Menu, etc) */
.global-header .mobile-controls {
    display: none !important;
}

/* CPERI: FORCE SMALL AMOUNT OF PADDING BETWEEN "Utility Header (_UtilityHeader.cshtml) AND CONTROLS ON FORM */
.fixed + .main-content {
    padding-top: 10px; /* 119px */
}

.fixed .main-content {
    padding-top: 10px; /* 119px */
}

.fixed.nav-full-width-icons + .main-content {
    padding-top: 10px; /* 145px */
}

/* Default layout is 1 column */
/*.main-content {
    background: #fff;
    min-height: 5px;*/ /* 400px */
/*}

    .main-content > .section {
        padding-bottom: 2px;*/ /* 23px */
/*}*/

/* Two column layout option */
/*@media (min-width: 992px) {
    .two-column .main-content .main-primary {
        position: relative;
        min-height: 1px;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (min-width: 992px) and (min-width: 992px) {
    .two-column .main-content .main-primary {
        float: left;
        width: 66.66667%;
    }
}

@media (min-width: 992px) {
    .two-column .main-content .main-secondary {
        position: relative;
        min-height: 1px;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (min-width: 992px) and (min-width: 992px) {
    .two-column .main-content .main-secondary {
        float: left;
        width: 33.33333%;
    }
}

@media (min-width: 768px) {
    .two-column .main-content .reverse-main .main-primary {
        left: 33.33333%;
    }
}

@media (min-width: 768px) {
    .two-column .main-content .reverse-main .main-secondary {
        right: 66.66667%;
    }
}

@media (max-width: 991px) {
    .two-column .main-content .main-secondary {
        position: inherit;
    }
}*/

/* Remove the left and right border for mobile */
/*@media (max-width: 768px) {
    .global-header, .main-content, .global-footer {
        border: none !important;
        width: 100%;
    }
}

.main-content > .section,
.two-column .main-content > .section {
    margin-right: auto;
    margin-left: auto;
    padding-left: 15px;
    padding-right: 15px;
}

@media (min-width: 576px) {
    .main-content > .section,
    .two-column .main-content > .section {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .main-content > .section,
    .two-column .main-content > .section {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .main-content > .section,
    .two-column .main-content > .section {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .main-content > .section,
    .two-column .main-content > .section {
        max-width: 1140px;
    }
}

@media (min-width: 1280px) {
    .main-content > .section,
    .two-column .main-content > .section {
        max-width: 1280px;
    }
}*/