
/*
Theme Name: Blocksy Child
Template: blocksy
Version: 1.1
*/

/* =====================================================
   1. GLOBAL SAFETY AND BOX SIZING
===================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}


/* =====================================================
   2. FOOTER DESIGN
===================================================== */

.footer-area {
    background-color: #0f172a;
    color: #f1f5f9;
    padding: 40px 0;
    font-family: 'Poppins', sans-serif;
    width: 100%;
}

.footer-widgets .footer-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}

.footer-column {
    flex: 1 1 200px;
    min-width: 0;
    margin: 10px;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #38bdf8;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 6px;
}

.footer-column ul li a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-column ul li a:hover {
    color: #38bdf8;
}

.footer-bottom {
    text-align: center;
    padding: 15px;
    background-color: #1e293b;
    font-size: 0.9rem;
}

.footer-important-disclosure {
    width: 100%;
    max-width: 960px;
    margin: 20px auto 0;
    padding: 15px 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    color: #cbd5f5;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
}

.footer-important-disclosure .label {
    font-weight: 600;
    white-space: nowrap;
    margin-right: 6px;
}

.footer-important-disclosure .text {
    flex: 1;
    min-width: 0;
}


/* =====================================================
   3. POST AND PAGE PARAGRAPH FORMATTING
===================================================== */

.entry-content p,
.ct-entry-content p {
    text-align: justify;
    text-justify: inter-word;
}


/* =====================================================
   4. FINANCIAL TABLE - DESKTOP
===================================================== */

.finance-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 15px;
    table-layout: fixed;
    font-variant-numeric: tabular-nums;
}

.finance-table th,
.finance-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    overflow-wrap: break-word;
}

.finance-table th {
    background: #f5f5f5;
    font-weight: 600;
}

.finance-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.finance-table tbody tr:hover {
    background: #f7fbff;
}


/* =====================================================
   5. FINANCIAL TABLE - MOBILE RESPONSIVENESS
===================================================== */

@media screen and (max-width: 768px) {

    .finance-table,
    .finance-table thead,
    .finance-table tbody,
    .finance-table tr,
    .finance-table th,
    .finance-table td {
        display: block;
        width: 100%;
    }

    /* Hide desktop table headings */
    .finance-table thead {
        display: none;
    }

    /* Individual mobile table cards */
    .finance-table tr {
        margin-bottom: 16px;
        border: 1px solid #ddd;
        border-radius: 8px;
        overflow: hidden;
        background: #fff;
    }

    /* Individual financial data rows */
    .finance-table td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        text-align: right;
        padding: 12px;
        border: none;
        border-bottom: 1px solid #eee;
        gap: 12px;
        overflow-wrap: anywhere;
    }

    .finance-table td:last-child {
        border-bottom: none;
    }

    /* Display column heading using data-label */
    .finance-table td::before {
        content: attr(data-label);
        font-weight: bold;
        text-align: left;
        padding-right: 10px;
        flex: 1 1 45%;
        min-width: 0;
    }

    .finance-table td > * {
        max-width: 60%;
        overflow-wrap: anywhere;
    }
}


/* =====================================================
   6. GRAMMAR GRID LAYOUT
===================================================== */

.grammar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin: 25px 0;
    width: 100%;
}


/* =====================================================
   7. GRAMMAR CARDS
===================================================== */

.grammar-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    min-width: 0;
}

.grammar-card h3 {
    margin: 0;
    padding: 14px 18px;
    background: #f5f5f5;
    font-size: 20px;
}

.grammar-card table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.grammar-card th,
.grammar-card td {
    padding: 10px 16px;
    border-bottom: 1px solid #eee;
}

.grammar-card th {
    text-align: left;
    background: #fafafa;
}

.grammar-card td:last-child {
    text-align: left;
}

.grammar-card tr:last-child td {
    border-bottom: none;
}


/* =====================================================
   8. MOBILE OPTIMIZATION
===================================================== */

@media screen and (max-width: 768px) {

    /* Grammar grid */
    .grammar-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 20px 0;
    }

    /* Grammar card headings */
    .grammar-card h3 {
        font-size: 18px;
        padding: 12px 14px;
    }

    /* Grammar table cells */
    .grammar-card th,
    .grammar-card td {
        padding: 9px 12px;
    }

    /* Footer columns */
    .footer-column {
        flex: 1 1 100%;
        margin: 8px 0;
    }

    /* Footer disclosure */
    .footer-important-disclosure {
        padding-left: 12px;
        padding-right: 12px;
        font-size: 0.88rem;
    }

    .footer-important-disclosure .label {
        white-space: normal;
    }

}


/* =====================================================
   9. SMALL MOBILE DEVICES
===================================================== */

@media screen and (max-width: 480px) {

    .footer-area {
        padding: 25px 15px;
    }

    .footer-bottom {
        padding: 12px;
        font-size: 0.85rem;
    }

    .finance-table {
        font-size: 13px;
    }

    .finance-table td {
        padding: 10px;
    }

    .grammar-card th,
    .grammar-card td {
        font-size: 14px;
    }

}
