﻿html {
    position: relative;
    min-height: 100%;
}

body {
  
    font-size: 1.1rem !important;
}

h1, h2, h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: normal;
}

h1 {
    font-size: 1.8em !important;
}

h2 {
    font-size: 1.5em !important;
}

h3 {
    font-size: 1.3em !important;
}

h3 {
    font-size: 1.2em !important;
}

.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;
}



.adBlock {
    border: 1px solid red;
}

a {
    text-decoration: none;
}



.province-card {
    display: flex;
    align-items: center;
    padding: 0.6rem 1rem;
    background-color: #e9f2fb;
    border-radius: 0.5rem;
    border: 1px solid #c1d4fb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    color: #212529;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
    user-select: none;
    width: 100%;
    justify-content: center;
    cursor: pointer;
}

    .province-card:hover,
    .province-card:focus,
    .province-card.active {
        background-color: #90caf9;
        border-color: #42a5f5;
        box-shadow: 0 8px 16px rgba(25, 118, 210, 0.5);
        transform: scale(1.05);
        outline: none;
    }




.category-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

    .category-card:hover {
        transform: scale(1.02);
        box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    }

    .category-card i {
        font-size: 1.5rem;
        color: #0d6efd;
        margin-right: 0.75rem;
    }


.region-card {
    background: #e9f2fb;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #c1d4fb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
    height: 100%;
    display: flex;
    align-items: center;
}

    .region-card:hover {
        transform: scale(1.03);
        background: #cbe4fd;
    }

    .region-card img {
        width: 28px;
        height: 18px;
        margin-right: 0.5rem;
        flex-shrink: 0;
    }

.article-link {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #075b76;
    font-weight: 600;
    flex-grow: 1;
    text-decoration: none;
    margin-right: 1rem;
}

.article-icon {
    color: #0dcaf0;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 0.25rem;
    transition: color 0.3s ease;
}

.custom-article-item:hover .article-icon {
    color: #002147;
}

.custom-article-item:hover .article-link {
    color: #002147;
}

.title-and-date {
    white-space: normal;
    display: inline;
}

.date-mobile {
    font-style: italic;
    font-size: 0.85em;
    color: #6c757d;
    margin-left: 0.25rem;
    white-space: normal;
    display: inline;
}

.custom-article-item {
    background-color: #e3f2fd;
    border: 1px solid #90caf9 !important;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.25);
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    margin-bottom: 8px;
    padding: 0.6rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

    .custom-article-item:hover {
        background-color: #90caf9;
        border-color: #0d47a1;
        box-shadow: 0 8px 16px rgba(25, 118, 210, 0.6);
        transform: scale(1.05);
        outline: none;
    }

.province-heading-container {
    position: relative;
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

    .province-heading-container::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 150px;
        height: 80px;
        background: var(--flag-url) no-repeat center / contain;
        opacity: 0.15;
        transform: translate(-50%, -50%);
        pointer-events: none;
        z-index: 0;
    }

    .province-heading-container h1 {
        position: relative;
        z-index: 1;
    }
@media (max-width: 767.98px) {

    body {
        font-size: 1.1rem !important;
    }

    h1 {
        font-size: 1.2em !important;
    }

    h2 {
        font-size: 1.1em !important;
    }

    h3 {
        font-size: 1.05em !important;
    }

    h4 {
        font-size: 1.05em !important;
    }

    .list-group-item {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

        .list-group-item small {
            padding-left: 1.5rem;
        }

    .custom-article-item {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        margin-left: -0.75rem !important;
        margin-right: -0.75rem !important;
    }
}
.question-block {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.question {
    font-weight: 600;
    display: flex;
    gap: 0.5rem;
}

.answer {
    margin-top: 5px;
    color: #6c757d;
}
@media (max-width: 767px) {
    .question {
        font-size: 1.2rem;
    }

    .answer {
        font-size: 0.95rem;
    }
}


.form-category {

  

}

.form-category h2
{
    font-weight:400;
}

/* --- FORM ITEM CARDS --- */
.form-item {
    background: #f3f3f3;
    border-left: 5px solid #0d6efd;
    box-shadow: 0 1px 4px rgba(30, 64, 175, 0.05);
    padding: 1rem 1.2rem;
    margin-bottom: 0.8rem;
    cursor: pointer;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

    .form-item:hover {
        border-color: #3b82f6;
        box-shadow: 0 6px 18px rgba(30, 64, 175, 0.12);
        transform: translateY(-3px);
    }

    .form-item > h3 {
        color: #1e3a8a;
        margin: 0 0 0.4rem 0;
        font-size: 1.15rem;
        font-weight: 600;
    }

    .form-item > p {
        color: #475569;
        margin: 0;
        font-size: 0.95rem;
        line-height: 1.4;
    }

.author-image-wrapper {
    z-index: 2;
}

.author-image {
    width: 120px;
    height: 120px;
    box-shadow: 0 0 12px 6px rgba(0, 123, 255, 0.4);
}

.author-card {
    border: 1px solid rgba(0, 123, 255, 0.5);
    background-color: #fff;
    box-shadow: 0 6px 18px 4px rgba(0, 123, 255, 0.2);
}

.checkin-section {
    max-width: 700px;
    margin: 2rem auto;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.checkin-section-header {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1565c0;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    user-select: none;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #1565c0;
}

/* Main item */
.checkin-item {
    background-color: #f1f8e9;
    border-left: 6px solid #7cb342;
    border-radius: 0.5rem;
    box-shadow: 0 2px 6px rgba(139, 195, 74, 0.3);
    margin-bottom: 1rem; /* gap between main items */
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    color: #2e7d32;
    width: 100%;
    border-right: 1px solid #c5e1a5;
    border-top: 1px solid #c5e1a5; 
    border-bottom: 1px solid #c5e1a5; 
}

    .checkin-item .checkin-icon {
        font-size: 1.6rem;
        color: #43a047;
        flex-shrink: 0;
    }

/* Subitems container - sibling, narrower, right aligned */
.checkin-subitems {
    width: 90%; /* changed from 80% to 90% */
    margin-left: auto;
    margin-top: 0.7rem; /* gap between parent and subitems */
    margin-bottom: 1rem;
}

/* Each subitem */
.checkin-subitem {
    background-color: #e8f5e9;
    border-left: 6px solid #4caf50;
    border-radius: 0.4rem;
    box-shadow: 0 1px 4px rgba(76, 175, 80, 0.3);
    margin-bottom: 0.8rem; /* gap between subitems */
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
    color: #2e7d32;
    width: 100%;
    border-right: 1px solid #c5e1a5;
    border-top: 1px solid #c5e1a5;
    border-bottom: 1px solid #c5e1a5;
}

    .checkin-subitem .checkin-icon {
        font-size: 1.3rem;
        color: #388e3c;
        flex-shrink: 0;
    }
.breadcrumb {
    font-size: 0.95rem;
    background-color: #f8f9fa !important;
    box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}
@media (min-width: 768px) {
    .custom-article-item small.text-muted {
        white-space: nowrap;
    }
}

.mt-4 > .row {
    --bs-gutter-x: 0;
    margin-left: 0 !important;
    margin-right: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* -------------------- Common Problems -------------------- */
.problem-card {
    background: #fff2f2; /* light red background */
    border: 2px solid #f5b5b5; /* soft red border */
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    height: 100%;
    box-shadow: 0 3px 8px rgba(255,0,0,0.1);
    transition: all 0.2s ease;
}

    .problem-card:hover {
        background: #ffe5e5;
        border-color: #f28b8b;
        box-shadow: 0 5px 14px rgba(255,0,0,0.2);
    }

    .problem-card i {
        font-size: 2rem;
        margin-bottom: 0.5rem;
        color: #d62828; /* reddish icons */
    }

    .problem-card p {
        margin: 0;
        color: #374151;
        font-weight: 600;
    }

/* -------------------- Tools -------------------- */
.tool-card {
    background: #f0f7ff;
    border: 1px solid #a0c4ff;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    transition: background 0.2s ease;
}

    .tool-card:hover {
        background: #dceaff;
    }

    .tool-card i {
        font-size: 2rem;
        color: #0d6efd;
        margin-bottom: 0.5rem;
    }

/* -------------------- Resources -------------------- */
.resource-card {
    background: #e8f9f2;
    border: 1px solid #b6e6d6;
    border-radius: 10px;
    padding: 1rem;
    transition: background 0.2s ease;
}

    .resource-card:hover {
        background: #d2f1e5;
    }

    .resource-card h5 i {
        margin-right: 0.5rem;
        color: #0d6efd;
    }

    .smallest
    {
        font-size: 0.8rem;

    }

canvas {
    height: 400px !important;
}

.chart-wrapper {
    aspect-ratio: 1 / 1; /* Always square */
    width: 100%;
    max-width: 350px; /* Optional cap */
    margin: 0 auto; /* Center inside column */
}

    .chart-wrapper canvas {
        width: 100% !important;
        height: 100% !important;
    }

ol.footnotes {
    list-style-type: none; /* removes numbers */
    padding-left: 0; /* removes indent */
    margin-left: 0;
    font-style: italic;
    font-size: 0.85em; /* or "small" */
}