/**
 * TMT Site Polish -- CSS Overrides
 * =================================
 * Visual improvements for thementorstable.org.
 *
 * Theme:   Eventerra (child: eventerra-child)
 * Builder: WPBakery
 * Font:    Montserrat (headings)
 * Palette: Navy #0259a6, Dark Teal #0a2e3f, Black, White
 *
 * !important is used throughout because the theme and WPBakery both output
 * inline styles and very-high-specificity selectors.  This is expected for
 * an override plugin.
 */

/* =========================================================================
   1. TYPOGRAPHY
   ========================================================================= */

/* -- Base body text: larger for readability (older audience) -------------- */
body,
p,
li,
td,
th,
dd,
dt,
label,
.wpb_text_column p,
.vc_column_text p,
.wpb_text_column,
.vc_column_text {
    font-size: 16px !important;
    line-height: 1.7 !important;
    color: #2d2d2d !important;
}

/* -- Heading scale -- scoped to content areas only, NOT agenda/schedule --- */
.wpb_text_column h1,
.vc_custom_heading h1 {
    font-size: 2rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0.6em !important;
}

.wpb_text_column h2,
.vc_custom_heading h2 {
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.5em !important;
}

.wpb_text_column h3,
.vc_custom_heading h3 {
    font-size: 1.25rem !important;
    line-height: 1.35 !important;
    margin-bottom: 0.45em !important;
}

h4,
.vc_custom_heading h4,
.wpb_heading h4 {
    font-size: 1.1rem !important;
    line-height: 1.4 !important;
}

/* -- Remove aggressive ALL-CAPS from body / menu text -------------------- */
/* Keep uppercase only where it belongs: main headings & nav donate button  */
.wpb_text_column p,
.vc_column_text p,
.wpb_text_column li,
.vc_column_text li {
    text-transform: none !important;
}

/* -- Better link appearance ----------------------------------------------- */
a {
    transition: color 0.2s ease, background-color 0.2s ease !important;
}

.wpb_text_column a,
.vc_column_text a {
    color: #0259a6 !important;
    text-decoration: underline !important;
    text-underline-offset: 2px !important;
}

.wpb_text_column a:hover,
.vc_column_text a:hover {
    color: #014a8a !important;
}


/* =========================================================================
   2. SPACING  --  breathing room between WPBakery rows & elements
   ========================================================================= */

.wpb_row,
.vc_row,
.vc_row-fluid {
    margin-bottom: 20px;
}

.wpb_content_element {
    margin-bottom: 24px !important;
}

/* Tighten double-stacked separators that the builder likes to insert */
.vc_separator {
    margin-top: 12px !important;
    margin-bottom: 12px !important;
}

/* Inner row columns -- a bit of gutter breathing room */
.wpb_column {
    padding-left: 10px !important;
    padding-right: 10px !important;
}


/* =========================================================================
   3. NAVIGATION  --  "Donate" button
   ========================================================================= */

.tmt-nav-donate a,
.tmt-nav-donate a.tmt-donate-trigger,
.header-menu .tmt-nav-donate a,
.header-menu-primary .tmt-nav-donate a {
    background: #0259a6 !important;
    color: #fff !important;
    padding: 8px 20px !important;
    border-radius: 4px !important;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    letter-spacing: 0.05em !important;
    margin-left: 10px !important;
    display: inline-block !important;
    transition: background 0.2s ease !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
    -webkit-text-decoration: none !important;
    line-height: 1.4 !important;
    background-image: none !important;
    background-size: 0 !important;
}

.tmt-nav-donate a:hover,
.tmt-nav-donate a.tmt-donate-trigger:hover {
    background: #014a8a !important;
    color: #fff !important;
    border: none !important;
    text-decoration: none !important;
}

/* Remove any underline/border from theme nav styling */
li.tmt-nav-donate,
li.tmt-nav-donate a,
li.tmt-nav-donate::after,
li.tmt-nav-donate::before,
li.tmt-nav-donate a::after,
li.tmt-nav-donate a::before,
.tmt-nav-donate *,
.tmt-nav-donate *::after,
.tmt-nav-donate *::before {
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    background-image: none !important;
    outline: none !important;
}

/* Align the button vertically in the nav bar */
.tmt-nav-donate {
    display: inline-flex !important;
    align-items: center !important;
}

/* Compact nav items so they fit with the Give Now button */
.header-menu-primary ul.menu > li > a {
    font-size: 11px !important;
    padding-left: 7px !important;
    padding-right: 7px !important;
    letter-spacing: 0.01em !important;
}

/* Force desktop nav visible / hide hamburger on wide screens */
@media (min-width: 991px) {
    .header-menu-mobile-control {
        display: none !important;
    }
    .header-mobile-menu-primary {
        display: none !important;
    }
    .header-menu-primary {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        overflow: visible !important;
    }
    .header-menu-primary ul.menu {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
    }
}


/* =========================================================================
   4. HERO / PAGE TITLE  --  watermark text cleanup
   ========================================================================= */

/* Reduce the oversized translucent watermark behind page titles */
.page-title-shadow {
    opacity: 0.08 !important;
}

/* Make the actual page title more legible over hero images */
.page-title h1,
.page-title .entry-title {
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35) !important;
}


/* =========================================================================
   5. FOOTER
   ========================================================================= */

.footer-bottom {
    padding: 15px 0 !important;
    font-size: 14px !important;
}

/* Ensure the copyright text is visible but not oversized */
.footer-bottom p,
.footer-bottom span {
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: inherit !important;
}


/* =========================================================================
   6. TESTIMONIALS  --  visual separators between blocks
   ========================================================================= */

.testimonials-page .wpb_text_column + .wpb_text_column,
.page-template-testimonials .wpb_text_column + .wpb_text_column,
body[class*="testimonial"] .wpb_text_column + .wpb_text_column {
    border-top: 1px solid #e0e0e0 !important;
    padding-top: 24px !important;
    margin-top: 24px !important;
}


/* =========================================================================
   7. PHOTO GALLERY / IMAGES
   ========================================================================= */

/* Subtle rounding + hover lift on single images */
.vc_single_image img,
.wpb_single_image img {
    border-radius: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vc_single_image img:hover,
.wpb_single_image img:hover {
    transform: scale(1.015);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

/* Hide genuinely broken images (empty src or missing src) */
img[src=""],
img:not([src]) {
    display: none !important;
}


/* =========================================================================
   8. BUTTONS (general WPBakery / theme buttons)
   ========================================================================= */

.wpb_button,
.vc_btn3,
.vc_general.vc_btn3 {
    border-radius: 4px !important;
    font-weight: 600 !important;
    letter-spacing: 0.03em !important;
    transition: background 0.2s ease, box-shadow 0.2s ease !important;
}

.vc_btn3:hover,
.vc_general.vc_btn3:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}


/* =========================================================================
   9. TABLES  --  improve readability
   ========================================================================= */

table {
    border-collapse: collapse !important;
    width: 100% !important;
}

table th,
table td {
    padding: 10px 14px !important;
    border-bottom: 1px solid #e4e4e4 !important;
    text-align: left !important;
}

table thead th {
    background: #0a2e3f !important;
    color: #fff !important;
    font-weight: 600 !important;
}

table tbody tr:nth-child(even) {
    background: #f8f9fa !important;
}


/* =========================================================================
   10. FORMS  --  nicer inputs
   ========================================================================= */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select {
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    padding: 10px 12px !important;
    font-size: 15px !important;
    transition: border-color 0.2s ease !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    border-color: #0259a6 !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(2, 89, 166, 0.15) !important;
}


/* =========================================================================
   11. SCHEDULE PAGE -- leave the theme grid alone, just prevent
       global heading overrides from breaking font sizes inside cards
   ========================================================================= */

.vc_om-agenda.om-layout-grid .om-agenda-day-title {
    width: auto;
    float: left;
    padding-right: 0;
    font-size: 20px !important;
}
.vc_om-agenda.om-layout-grid .om-agenda-day-date {
    width: auto;
    float: right;
    font-size: 20px !important;
}


/* =========================================================================
   12. UTILITY CLASSES (available for ad-hoc use in WPBakery custom CSS)
   ========================================================================= */

.tmt-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.tmt-text-center { text-align: center !important; }
.tmt-mb-0 { margin-bottom: 0 !important; }
.tmt-mt-0 { margin-top: 0 !important; }


/* =========================================================================
   12. MOBILE & TABLET  --  responsive fixes
   ========================================================================= */

@media (max-width: 990px) {

    body,
    p,
    li,
    .wpb_text_column p,
    .vc_column_text p {
        font-size: 15px !important;
        line-height: 1.65 !important;
    }

    .wpb_text_column h1, .vc_custom_heading h1 { font-size: 1.65rem !important; }
    .wpb_text_column h2, .vc_custom_heading h2 { font-size: 1.3rem !important; }
    h3, .vc_custom_heading h3 { font-size: 1.1rem !important; }

    .wpb_row,
    .vc_row {
        margin-bottom: 15px;
    }

    .wpb_content_element {
        margin-bottom: 18px !important;
    }

    /* Stack columns properly */
    .wpb_column {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Nav donate button: full-width on mobile menus */
    .tmt-nav-donate {
        display: block !important;
        text-align: center !important;
        margin: 10px 0 !important;
    }

    .tmt-nav-donate a {
        margin-left: 0 !important;
        display: block !important;
        padding: 12px 20px !important;
    }
}

@media (max-width: 480px) {

    body,
    p,
    li,
    .wpb_text_column p,
    .vc_column_text p {
        font-size: 14.5px !important;
        line-height: 1.6 !important;
    }

    h1, .vc_custom_heading h1 { font-size: 1.45rem !important; }
    h2, .vc_custom_heading h2 { font-size: 1.15rem !important; }

    /* Tighter spacing on very small screens */
    .wpb_row,
    .vc_row {
        margin-bottom: 10px;
    }

    .wpb_content_element {
        margin-bottom: 14px !important;
    }

    /* Ensure images don't overflow */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
}
