/* ====
   HWS Custom Styles
   ==== */

/* ==== Global Modular Footer (DR Pattern) ==== */

/* 1. Main Footer Wrapper - Tightened Padding */
#footer.footer-section {
    background: #000 !important;
    color: #fff !important;
    text-align: left;
    padding: 2rem 0 1rem 0;
    border: none !important;
}

/* 2. Flatten Modular Nesting */
#footer .footer-col-content section,
#footer .footer-col-content .container,
#footer .footer-col-content .columns,
#footer .footer-col-content .column,
#footer .footer-modular-content {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* 3. Column Alignment Control (L | C | R) */

/* FIX: Ensure the first element in any column (like the H4 in Col 3) aligns to the top */
#footer .footer-col-content > *:first-child {
    margin-top: 0 !important;
}

#footer .footer-columns > .column:nth-child(1) .footer-col-content {
    text-align: left !important;
}

#footer .footer-columns > .column:nth-child(2) .footer-col-content {
    text-align: center !important;
}

#footer .footer-columns > .column:nth-child(3) .footer-col-content {
    text-align: right !important;
}

/* Force all nested elements to inherit the column's alignment */
#footer .footer-col-content,
#footer .footer-col-content * {
    text-align: inherit !important;
    color: #fff !important;
}

/* Remove bottom margin from last paragraph to reduce height */
#footer .footer-col-content p:last-child {
    margin-bottom: 0 !important;
}

/* 4. Links: Teal Accent */
#footer a {
    color: #00b3a4 !important;
    text-decoration: none;
}

#footer a:hover {
    text-decoration: underline;
}

/* 5. Copyright Bar Styling - Tightened Margin */
.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 1.5rem;
    padding-top: 1rem;
    text-align: center;
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.85rem;
    margin: 0;
}

/* 6. Mobile Responsiveness */
@media (max-width: 840px) {
    #footer .footer-columns {
        display: flex;
        flex-direction: column;
    }
    #footer .footer-columns > .column {
        width: 100% !important;
        text-align: left !important;
        padding: 1rem 0;
    }
    #footer .footer-col-content {
        text-align: left !important;
    }
}


/* ====
   Blog / Learning Center Styling
   ==== */

/* 1. Normalize Blog Post Title Size (Targeting H1 in Card Body) */
.blog-listing .card-body h1,
.blog-listing .card-body h1 a {
    font-size: 1.5rem !important;
    line-height: 1.2 !important;
    margin-top: 0.5rem !important;
    margin-bottom: 1rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

/* 2. Fix Column Width (Preventing the "Skinny" look) */
.bricklayer-column {
    width: 100% !important;
    padding: 0 1rem !important;
}

/* 3. Tighten Card Spacing */
.blog-listing .card {
    margin-bottom: 2rem;
    border: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* 4. Summary Text Styling */
.blog-listing .card-body p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #444;
}

/* 5. Sidebar Search Box Styling */
.blog-sidebar input[type="search"],
.blog-sidebar input.search-input {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* 6. Mobile Responsiveness for Blog */
@media (max-width: 840px) {
    .blog-listing .card-body h1 {
        font-size: 1.3rem !important;
    }
}