/* ==========================================================
   TAX COLLECTOR REDESIGNED SUBPAGES
   ========================================================== */


/* ==========================================================
   GLOBAL / ANCHOR SCROLLING
   ========================================================== */

html {
    scroll-behavior: smooth;
}

/* Leaves room above anchored headings after scrolling */
.tax-redesign-info h3[id] {
    scroll-margin-top: 120px;
}


/* ==========================================================
   1. IMPORTANT NOTICE
   Style Class Name: tax-redesign-notice
   ========================================================== */

.tax-redesign-notice {
    margin: 16px 0 22px;
}

.tax-redesign-notice .content-boxes {
    display: block;
}

.tax-redesign-notice .contentBox {
    position: relative;

    width: 100%;
    box-sizing: border-box;

    padding: 16px 20px 16px 58px;

    background: #dcecf9;

    border: 1px solid #9ebfdd;
    border-radius: 4px;

    box-shadow: none;
}

/* Remove default Kentico decorative background */
.tax-redesign-notice .contentBox__bg {
    display: none;
}

/* Blue exclamation icon */
.tax-redesign-notice .contentBox::before {
    content: "!";

    position: absolute;
    top: 16px;
    left: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    background: #2865b1;
    color: #fff;

    border-radius: 50%;

    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.tax-redesign-notice .contentBox__content {
    position: relative;

    padding: 0;
    margin: 0;

    line-height: 1.5;
}

.tax-redesign-notice .contentBox__content > :first-child {
    margin-top: 0;
}

.tax-redesign-notice .contentBox__content > :last-child {
    margin-bottom: 0;
}

.tax-redesign-notice .contentBox__content h2,
.tax-redesign-notice .contentBox__content h3,
.tax-redesign-notice .contentBox__content h4 {
    margin: 0 0 4px;

    font-size: 1rem;
    font-weight: 700;
}



/* ==========================================================
   2. TOPIC CARDS
   Style Class Name: tax-redesign-topics
   ========================================================== */
.tax-redesign-topics {
    margin: 18px 0 32px;
}

/* "On This Page" heading */
.tax-redesign-topics .content-boxes-group__title {
    margin: 0 0 14px;
    font-size: 1.35rem;
    font-weight: 700;
}

/* ==========================================================
   TOPIC CARD GRID
   ========================================================== */
.tax-redesign-topics .content-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
}

/* ==========================================================
   INDIVIDUAL TOPIC CARD
   ========================================================== */
.tax-redesign-topics .contentBox {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 170px;             /* card/photo height */
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #d2d2d2;
    border-radius: 6px;
    overflow: hidden;              /* clips photo + band to rounded corners */
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

/* ==========================================================
   FULL CARD LINK (anchor fills the card)
   ========================================================== */
.tax-redesign-topics .contentBoxLink,
.tax-redesign-topics .contentBox__title--link {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    z-index: 10;
    text-decoration: none;
    cursor: pointer;
}

/* ==========================================================
   TOPIC CARD IMAGE  (fills the whole card)
   Covers BOTH possible Kentico class names.
   ========================================================== */
.tax-redesign-topics .contentBoxBG,
.tax-redesign-topics .contentBox__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    pointer-events: none;
}

/* ==========================================================
   TITLE BAND  (blue overlay across the bottom)
   Covers BOTH the camelCase title div AND the BEM content div.
   ========================================================== */
.tax-redesign-topics .contentBoxTitle,
.tax-redesign-topics .contentBox__content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;


    display: flex;              /* ← center text vertically */
    align-items: center;
    justify-content: center;
    min-height: 58px; 


    margin: 0;
    padding: 8px 14px; /*Changed this and it fixed the boxes*/
    background: rgba(5, 64, 135, 0.9);   /* #054087 @ 90% */
    text-align: center;
    pointer-events: none;
}

/* Title text — covers the table-cell variant AND plain headings/paragraphs */
.tax-redesign-topics .contentBoxTableCell,
.tax-redesign-topics .contentBox__content h2,
.tax-redesign-topics .contentBox__content h3,
.tax-redesign-topics .contentBox__content h4,
.tax-redesign-topics .contentBox__content p {
    margin: 0;
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.3;
}

/* Hide stray helper divs if they exist */
.tax-redesign-topics .contentBoxCorner,
.tax-redesign-topics .contentBoxImageSpacer,
.tax-redesign-topics .content-box__spacer {
    display: none;
}

/* ==========================================================
   TOPIC CARD HOVER
   ========================================================== */
.tax-redesign-topics .contentBox:hover {
    border-color: #2865b1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* ==========================================================
   TOPIC CARD KEYBOARD FOCUS
   ========================================================== */
.tax-redesign-topics .contentBox:focus-within {
    border-color: #2865b1;
    outline: 3px solid #2865b1;
    outline-offset: 2px;
}

/* ==========================================================
   3. MAIN INFORMATION BOXES
   Style Class Name: tax-redesign-info
   ========================================================== */

.tax-redesign-info {
    margin: 24px 0;
}


/* Stack information boxes vertically */
.tax-redesign-info .content-boxes {
    display: flex;
    flex-direction: column;

    width: 100%;

    gap: 18px;
}


/* Individual information box */
.tax-redesign-info .contentBox {
    position: relative;

    width: 100%;
    box-sizing: border-box;

    padding: 18px 22px;

    background: #fff;

    border: 1px solid #e4e4e4;
    border-left: 5px solid #2874b9;
    border-radius: 3px;

    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}


/* Remove default Kentico decorative background */
.tax-redesign-info .contentBox__bg {
    display: none;
}


/* Information box content */
.tax-redesign-info .contentBox__content {
    position: relative;

    width: 100%;

    padding: 0;
    margin: 0;

    line-height: 1.5;
}


/* Information headings */
.tax-redesign-info .contentBox__content h2,
.tax-redesign-info .contentBox__content h3,
.tax-redesign-info .contentBox__content h4 {
    margin: 0 0 8px;

    color: #222;

    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
}


/* Paragraphs */
.tax-redesign-info .contentBox__content p {
    margin-top: 0;
    margin-bottom: 10px;

    line-height: 1.5;
}


/* Lists */
.tax-redesign-info .contentBox__content ul,
.tax-redesign-info .contentBox__content ol {
    margin-top: 8px;
    margin-bottom: 12px;

    padding-left: 24px;
}

.tax-redesign-info .contentBox__content li {
    margin-bottom: 4px;

    line-height: 1.45;
}


/* Prevent extra whitespace at bottom */
.tax-redesign-info .contentBox__content > :last-child {
    margin-bottom: 0;
}


/* ==========================================================
   4. TABLET
   ========================================================== */

@media (max-width: 768px) {

    .tax-redesign-topics .content-boxes {
        grid-template-columns: repeat(2, 1fr);

        gap: 14px;
    }

}


/* ==========================================================
   5. MOBILE
   ========================================================== */

@media (max-width: 600px) {

    /* ------------------------------------------------------
       NOTICE
       ------------------------------------------------------ */

    .tax-redesign-notice .contentBox {
        padding: 14px 14px 14px 52px;
    }

    .tax-redesign-notice .contentBox::before {
        top: 14px;
        left: 14px;

        width: 26px;
        height: 26px;

        font-size: 18px;
    }


    /* ------------------------------------------------------
       TOPIC CARDS
       ------------------------------------------------------ */

    .tax-redesign-topics .content-boxes {
        grid-template-columns: repeat(2, 1fr);

        gap: 12px;
    }


    /* ------------------------------------------------------
       INFORMATION BOXES
       ------------------------------------------------------ */

    .tax-redesign-info .content-boxes {
        gap: 14px;
    }

    .tax-redesign-info .contentBox {
        padding: 16px 18px;

        border-left-width: 4px;
    }

}


/* ==========================================================
   6. SMALL MOBILE
   ========================================================== */

@media (max-width: 380px) {

    .tax-redesign-topics .content-boxes {
        grid-template-columns: 1fr;
    }

}