/* ==========================================================================
   1. FIXED HEADER CLIPPING & SCREEN-WIDE RESET
   ========================================================================== */

body {
    padding-top: 25px !important; 
    margin: 0 !important;
    overflow-x: hidden !important;
}

#page, .site, .site-content, .ast-container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
}


/* ==========================================================================
   2. CLEAN THE ROW BORDERS & INJECT THE PRECISION SINGLE LINE
   ========================================================================== */

.home footer.site-footer,
.home .site-footer,
.home .site-footer [class*="inner"],
.home .site-footer [class*="row"],
.home .site-footer [class*="wrap"] {
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.home .home-main {
    border-bottom: 1px solid #cccccc !important; 
    padding-bottom: 40px !important; 
    margin-bottom: 40px !important; 
}


/* ==========================================================================
   3. GLOBAL TEXT JUSTIFICATION
   ========================================================================== */

p, .entry-content p, .wp-block-paragraph {
    text-align: justify !important;
    text-justify: inter-word !important;
}

h1, h2, h3, h4, h5, h6, li, .wp-block-columns p {
    text-align: left !important;
}


/* ==========================================================================
   4. LATEX EQUATION INLINE FLOW FIXES
   ========================================================================== */

img.latex, span.latex, .jetpack-beautiful-math {
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 4px !important;
}

p .latex-container {
    display: inline !important;
}


/* ==========================================================================
   5. 'PAPERS' PAGE REPOSITORY LAYOUT
   ========================================================================== */

.wp-block-columns .wp-block-column:nth-child(2) {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.wp-block-columns .wp-block-column:nth-child(2) img {
    max-width: 100%;
    height: auto;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.wp-block-columns .wp-block-column:nth-child(2) a:hover img {
    transform: scale(1.02);
}

.wp-block-columns .wp-block-column:nth-child(2) p {
    margin-top: 8px;
    margin-bottom: 0;
    font-size: 0.95rem;
    text-align: center !important;
}

.wp-block-columns .wp-block-column:nth-child(2) h3,
.wp-block-columns .wp-block-column:nth-child(2) h3 + p {
    text-align: left !important;
    width: 100%;
}

.wp-block-columns .wp-block-column:nth-child(2) h3 {
    margin-top: 25px;
    margin-bottom: 10px;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 5px;
}

hr.wp-block-separator.paper-divider {
    border: none;
    border-top: 1px solid #cccccc;
    margin-left: 15% !important;
    margin-right: 15% !important;
    width: 70% !important;
    margin-top: 40px !important;
    margin-bottom: 40px !important;
}

.eyebrow {
    display: none !important;
}