*:focus {
    box-shadow: none !important;
}

.row {
    margin-left: 40px;
}

h6 {
    padding-bottom: 10px;
    font-weight: bold;
}

/* Sidebar styling */
.sidebar {
    /*height: calc(100vh - 56px);  Full view height minus navbar */
    overflow-y: auto; /* Make sidebar independently scrollable */
    background-color: #fff; /* #f8f9fa; Light background */
    padding: 1rem;
    border-right: 1px solid #dee2e6;
}

/* Main content styling */
.main-content {
    /*height: calc(100vh - 100px);  Full view height minus navbar */
    overflow-y: auto; /* Independently scrollable if content is long */
    padding: 1rem;
}

/* Fixed (sticky) header in the main content area */
.content-header {
    position: sticky;
    top: 0;
    background-color: #ffffff;
    z-index: 999;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
}

/* Main Area (Header + Content) */
.main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Top Menu */
.top-menu {
    display: flex;
    background-color: #fff;
    padding-top: 10px;
    align-items: left;
    height: auto;
    margin-left: -2px;
    /* margin-top: 50px; */
}


/* Content Section (Cards) */
.content {
    /* padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 15px;
    padding-right: 17px; */
    display: flex;
    column-gap: 20px;
    /* gap: 20px; */
    flex-wrap: wrap; /* Allows wrapping if you shrink the window */
    justify-content: left;
}

.card {
    width: 30%;
    /*width: 300px;  Fixed width for each card */
    border-radius: 0px;
    border: none;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    -webkit-box-shadow: 0px 5px 35px rgba(196,196,196,0.5);
    -moz-box-shadow: 0px 5px 35px rgba(196,196,196,0.5);
    box-shadow: 0px 5px 35px rgba(196,196,196,0.5);
    margin-top: 50px;
}

.card-illustration {
    background-color: #ccc;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    overflow: hidden;
}

.card-category {
    /* background-color: #fff; */
    padding: 40px 40px 20px;
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
}

.card-content {
    padding: 0 40px 40px;
    flex: 1;
}

    /* .card-content h3 {
        margin-bottom: 10px;
        font-size: 1.1rem;
        font-weight: bold;
    } */

    .card-content p {
        margin-bottom: 10px;
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .card-content a {
        text-decoration: none;
        color: #0d6efd;
        font-size: 1rem;
    }

/* Default button style */
.btn-custom {
    background-color: #ccc;
    border-radius: 0px;
    color: white;
    font-weight: bold;
    border: none;
}

/* Hover state for non-selected buttons */
.btn-check:not(:checked) + .btn-custom:hover {
    background-color: #ccc; /* remains unchanged */
    color: black;
}

/* Selected (checked) state */
.btn-check:checked + .btn-custom {
    background-color: #ba0c2f;
    color: white;
    font-weight: bold;
}

/*
              Custom styles for the search box in the sidebar:
              - Only a single black bottom border across the entire input group
            */
.search-box .input-group {
    border-bottom: 1px solid #ccc !important;
}

.search-box .form-control,
.search-box .btn {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.form-check-input {
    border-color: dimgray;
}

/* Mobile Controls (search + dropdown) are hidden on screens wider than 600px */
.mobile-controls, .display-none {
    display: none;
}

.breads-section {
    padding-top: 20px;
    padding-bottom: 10px;
    margin: 0;
}

.dropdown-list {
    padding-left: 0px;
    min-width: 266px;
}

/* @media (max-width: 576px) {
    .mobile-controls
    {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
    }
} */

@media screen and (max-width: 1024px) {
    .row {
        margin-left: 0;
    }

    .content {
        gap: 15px;
        padding-right: 0;
    }
}

@media screen and (max-width: 768px) {
    .sidebar {
        margin-top: 50px;
        border-right: none;
    }

    .row {
        margin-left: 0;
    }

    .content {
        gap: 15px;
        padding-right: 0;
    }
}

/* Hide the sidebar entirely on screens <600px*/
@media (max-width: 576px) {
    .mobile-controls {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .sidebar {
        display: none;
    }

    .row {
        margin-left: 0;
    }
    /* Top Menu */
    .top-menu {
        margin-top: 50px;
    }

    .content {
        display: flex;
        justify-content: center;
    }

    .card {
        width: 100%;
    }
}


//Martin added for dynimic page
.modal-content.no-header .modal-header {
    display: none;
}

.modal-content.no-header {
    border: none;
    border-radius: 0;
    background-color: #000; /* Optional */
}

@media (max-width: 768px) {
    .modal-body h1 {
        font-size: 1.8rem;
    }

    .modal-body p {
        font-size: 1rem;
        padding: 0 1rem;
        text-align: center;
    }
}

.scaled-text {
    font-size: clamp(.75rem, 1.5vw + 1rem, 2rem);
/*    line-height: 1.6;
*/}

.balanced-text {
    text-wrap: balance;
}

.text-container {
    max-height: 200px; /* Adjust to match expected image height */
    overflow: hidden;
    display: flex;
    align-items: center;
}

.scaled-tight-text {
    font-size: clamp(0.9rem, 1.2vw, 1.4rem);
    line-height: 1.4;
    margin: 0;
}

.text-wrapper {
    display: flex;
    align-items: center;
    height: 100%;
}

    .text-wrapper p {
        margin: 0;
        line-height: 1.4;
        width: 100%;
        font-size: 1.5rem; /* fallback */
    }

.header-text {
    padding-top: 2rem !important;
    padding-bottom: 5rem !important;
    padding-left: calc(3rem + 4px) !important;
    color: white;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

.partner-logo {
    position: relative !important;
/*    top: 8rem;
    left: calc(3rem + 4px) !important;
*/    
    max-height: 100px;
    z-index: 3;
}


.custom-close-inside {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: white;
    border: 1px solid #ccc;
    /*border-radius: 0%;*/
    width: 24px !important;
    height: 24px !important;
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s ease;
    z-index: 1051; /* ensure it's above content */
}

    .custom-close-inside:hover {
        background-color: #f0f0f0; /* subtle dim on hover */
    }

.custom-action-button {
    position: absolute;
    top: 15px;
    background-color: white;
    border: 1px solid #ccc;
    /*border-radius: 0%;*/
    width: 36px !important;
    height: 36px !important;
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s ease;
    z-index: 1051;
    opacity: 0.5;
}

    .custom-action-button:hover {
        background-color: #f0f0f0;
    }

    .custom-action-button:nth-of-type(1) {
        right: 55px; /* Print button */
    }

    .custom-action-button:nth-of-type(2) {
        right: 15px; /* Close button */
    }
