/*
Theme Name: Tull Foundation
Description: The Tull Foundation
Version: 1.0
Author: Tull Foundation
Author URI: https://tullfoundation.org
Template: tull-en
*/


/*Add your own styles here:*/

@import url('https://use.typekit.net/zss5eeo.css');

/* ========================================
   1. Global Style Tweaks
======================================== */

/* Remove Enfold image hover overlay arrow/icon */
#top .avia-image-container .image-overlay,
#top .avia-image-container .avia-image-overlay {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Remove hover fade/dim on linked images */
#top .avia-image-container a:hover .avia_image,
#top .avia-image-container a:hover img,
#top .avia-image-container .avia-image-overlay-wrap:hover .avia_image,
#top .avia-image-container .avia-image-overlay-wrap:hover img {
    opacity: 1 !important;
    filter: none !important;
}

/* Prevent overlay wrapper from adding visual hover effects */
#top .avia-image-container .avia-image-overlay-wrap:hover {
    opacity: 1 !important;
}

/* ========================================
   1. Global Typography
======================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: "mr-eaves-xl-sans", sans-serif !important;
    font-weight: 700 !important;
    font-style: normal;
    text-transform: none !important;
}

p {
    font-family: "halyard-display", sans-serif;
    font-weight: 300;
    font-style: normal;
    line-height: 1.4;
}

strong {
    color: inherit !important;
}

.avia_textblock ul,
.avia_textblock ol {
    margin: 0 0 .8em 0;
    padding: 0;
}

.avia_textblock li {
    font-family: "halyard-display", sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: inherit;
    line-height: 1.6;
    color: inherit;
    margin-bottom: 0.65em;
}

.avia_textblock li::marker {
    color: inherit;
}

/* ========================================
   2. Global Buttons / Links
======================================== */

/* Enfold pill buttons */
#top .avia-button,
#top .avia-button-wrap .avia-button,
#top .avia-button span,
#top .avia-button-wrap .avia-button span {
    border-radius: 999px !important;
    -webkit-border-radius: 999px !important;
    overflow: hidden;
}

/* remove line under Enfold header */
#header_main,
#header_main .container,
#header_main_alternate,
#header {
    border-bottom: 0 !important;
    box-shadow: none !important;
}

body.page-id-3378 #header .avia-menu-text,
body.page-id-3378 #header .sub-menu a {
    color: #123062 !important;
}

/* ========================================
   3. Homepage
======================================== */

/* Shared section rhythm */
.home-hero,
.home-intro,
.home-focus-grid,
.home-story-band,
.home-cta-band {
    position: relative;
}

/* tighten default Enfold section padding a bit */
.home-hero .container,
.home-intro .container,
.home-focus-grid .container,
.home-story-band .container,
.home-cta-band .container {
    max-width: 1180px;
}

.grantee-feature .container {
    max-width: 960px;
}
/* =========================
   Hero
======================================== */



.home-hero .av-special-heading,
.home-hero .avia_textblock {
    position: relative;
    z-index: 5;
    color: #fff;
    margin-left:-100px;
}

.home-hero .hero-accent {
    color: #e85b2d;
    font-style: italic;
    margin-left:100px;
}

@media only screen and (min-width: 990px) {
    .hero-content {
        padding-left: 20px;
    }
}

img.home-real-img {
    margin-right: -100px !important;
}

@media only screen and (max-width: 767px) {
    img.home-real-img {
        margin-right: 0 !important;
    }
}

.html_header_transparency #top .avia-builder-el-0 .slideshow_caption {
    width: 100% !important;
}

#top .hero-slideshow {
    background-color: #f5f1e8 !important;
}

/* =========================
.home-hero .container {
    max-width: 1360px;
    position: relative;
}

.home-hero .av-special-heading {
    margin-bottom: 0;
}

.home-hero h1,
.home-hero h2,
.home-hero h3 {
    color: #fff !important;
    font-size: clamp(54px, 5.5vw, 76px);
    line-height: 0.95;
    letter-spacing: 0;
    margin: 0;
    max-width: 700px;
}

.home-hero .avia_textblock {
    max-width: 760px;
}

.home-hero .avia_textblock p {
    color: #fff;
    font-size: 12px;
    line-height: 1.2;
    margin: 10px 0 0 90px;
}

.home-hero .avia-image-container {
    position: relative;
    z-index: 3;
    margin-top: -155px !important;
    margin-left: 85px;
    max-width: 1210px;
}

.home-hero .avia-image-container img {
    display: block;
    width: 100%;
    height: auto;
}

.home-hero:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 110px;
    background: #f5f1e8;
    border-top-left-radius: 50% 100%;
    border-top-right-radius: 50% 100%;
    z-index: 4;
}

@media only screen and (max-width: 989px) {
    .home-hero {
        padding-top: 120px;
        padding-bottom: 55px;
    }

    .home-hero .avia-image-container {
        margin-left: 30px;
        margin-top: 20px;
        max-width: none;
    }

    .home-hero .avia_textblock p {
        margin-left: 30px;
    }
}

@media only screen and (max-width: 767px) {
    .home-hero {
        padding-top: 95px;
        padding-bottom: 40px;
    }

    .home-hero h1,
    .home-hero h2,
    .home-hero h3 {
        font-size: 42px;
        max-width: 100%;
    }

    .home-hero .avia-image-container {
        margin-left: 0;
        margin-top: 20px;
    }

    .home-hero .avia_textblock p {
        margin-left: 0;
    }

    .home-hero:after {
        height: 70px;
        bottom: -1px;
    }
}

/* =========================
   Intro
========================= */

.home-intro .container {
    max-width: 900px;
}

.home-intro h1,
.home-intro h2,
.home-intro h3 {
    color: #173a74 !important;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.05;
    margin-bottom: 18px;
}

.home-intro p {
    color: #24416e;
    font-size: 22px;
    line-height: 1.65;
    margin: 0 auto;
}



/*=========================
   CTA Band
========================= */

.home-cta-band {
    background: #123d83;
    color: #fff;
    text-align: center;
    padding: 85px 0 125px;
    overflow: hidden;
    position: relative;
}

.home-cta-band .container {
    max-width: 900px;
}

.home-cta-band h1,
.home-cta-band h2,
.home-cta-band h3 {
    color: #6dd1ea !important;
    font-size: clamp(34px, 4vw, 50px);
    line-height: 1.05;
    margin-bottom: 18px;
}

.home-cta-band p {
    color: #fff;
    font-size: 20px;
    line-height: 1.6;
    max-width: 880px;
    margin: 0 auto 28px;
}

.home-cta-band .avia-button,
.home-cta-band .avia-button-wrap .avia-button {
    background: #55c7d8 !important;
    border-color: #55c7d8 !important;
    color: #fff !important;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    padding: 12px 26px;
    box-shadow: none;
    text-transform: none;
}
/*
.home-cta-band:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 85px;
    background: #f5f1e8;
    border-top-left-radius: 50% 100%;
    border-top-right-radius: 50% 100%;
}

@media only screen and (max-width: 767px) {
    .home-cta-band {
        padding: 70px 0 100px;
    }

    .home-cta-band p {
        font-size: 18px;
    }

    .home-cta-band:after {
        height: 55px;
    }
}

 =========================
   Footer
========================= */

.footer-page-content a {
    font-weight: bold !important;
    color:#0b3e76;
    text-decoration: none !important;
    margin-right: 5px !important;
    margin-left: 5px !important; }

.footer-page-content img {
    max-width: 300px !important;
    height: auto;
    margin-bottom: 20px;
}

/*=========================
Offset Image Orange
========================= */

.offset-image-orange {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.offset-image-orange img {
    display: block;
    position: relative;
    z-index: 2;
}

.offset-image-orange:before {
    content: "";
    position: absolute;
    top: 22px;
    left: 22px;
    width: 100%;
    height: 100%;
    background: #e85b2d;
    z-index: 1;
}

/*=========================
Core Values Page
========================= */

.core-values-image {
    max-width: 325px !important;
    margin-top:-150px !important;
}

.core-value-heading {
    margin-bottom: 0 !important;
}

.core-value-heading .special-heading-border {
    display: block !important;
    width: 100% !important;
    height: 1px !important;
    margin-top: 18px !important;
    background: #4da2c1 !important;
    border: 0 !important;
}

.core-value-heading .special-heading-inner-border {
    display: none !important;
}

/*=========================
Board and Staff Page
========================= */

.board-staff-photos .container {
    max-width: 960px !important;
    margin-left: auto;
    margin-right: auto;
}

/*=========================
History Page
========================= */

#top .history-hero-heading {
    position: relative;
    top: -120px;
}

.tull-bio .container {
    max-width: 1160px !important;
    margin-left: auto;
    margin-right: auto;
}

.tull-bio-photo {
    margin-top:-120px !important;
    max-width: 325px !important;
}

/*=========================
Spotlight Stories Page
========================= */

.spotlight-stories .container {
    max-width: 960px !important;
    margin-left: auto;
    margin-right: auto;
}

.tull-read-more-link,
.tull-read-more-link:link,
.tull-read-more-link:visited,
.tull-read-more-link:hover,
.tull-read-more-link:focus {
    color: #123f7a !important;
    font-family: "mr-eaves-xl-sans", sans-serif;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: underline !important;
    text-decoration-color: #d94a1e !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 10px;
    text-decoration-skip-ink: none;
}

.orange-offset-photo {
    position: relative;
    display: inline-block;
    z-index: 1;
    overflow: visible !important;
}

.orange-offset-photo img {
    display: block;
    position: relative;
    z-index: 2;
}

.orange-offset-photo:before {
    content: "";
    position: absolute;
    top: 18px;
    left: -18px;
    width: 100%;
    height: 100%;
    background: #d94a1e;
    z-index: 1;
}

/*=========================
Grant Programs Page
========================= */

.grant-programs .container {
    max-width: 1160px !important;
    margin-left: auto;
    margin-right: auto;
}

/*=========================
Investment Policy Page
========================= */

.mission-related-investments .container {
    max-width: 1060px !important;
    margin-left: auto;
    margin-right: auto;
}

/*=========================
Steps to Applying Page
========================= */

.grant-cycles .container {
    max-width: 1060px !important;
    margin-left: auto;
    margin-right: auto;
}

.how-to-stand-out .container, .what-we-do .container {
    max-width: 1160px !important;
    margin-left: auto;
    margin-right: auto;
}

/*=========================
Grant Types Page
========================= */

.grant-types .container {
    max-width: 960px !important;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================
   TULL FOUNDATION — GRANTEE DIRECTORY
   Page: Grantee Test / page-id-5080
   Section: #av_section_2
   ========================================================== */

/* Main directory section spacing */
.page-id-5080 #av_section_2 .container {
    max-width: 1280px;
    padding-top: 70px;
    padding-bottom: 80px;
}

/* Sidebar / results column relationship */
.page-id-5080 #av_section_2 .av_one_fifth {
    width: 24%;
    margin-left: 0;
    margin-right: 5%;
}

.page-id-5080 #av_section_2 .av_four_fifth {
    width: 71%;
    margin-left: 0;
}

/* ==========================================================
   FILTER SIDEBAR
   ========================================================== */

.page-id-5080 #av_section_2 .facetwp-facet {
    margin-bottom: 34px;
}

/* Search input */
.page-id-5080 #av_section_2 .facetwp-type-search .facetwp-input-wrap {
    display: block;
    width: 100%;
}

.page-id-5080 #av_section_2 input.facetwp-search {
    width: 100%;
    height: 48px;
    padding: 0 46px 0 16px;
    border: 1px solid #c8c5bc;
    background: #fff;
    color: #333;
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
}

.page-id-5080 #av_section_2 input.facetwp-search::placeholder {
    color: #777;
}

.page-id-5080 #av_section_2 .facetwp-icon {
    right: 14px;
    opacity: .55;
}

/* Checkbox filters */
.page-id-5080 #av_section_2 .facetwp-checkbox {
    position: relative;
    background: none !important;
    padding: 0 0 0 30px;
    margin-bottom: 14px;
    color: #414141;
    font-size: 15px;
    line-height: 1.4;
}

.page-id-5080 #av_section_2 .facetwp-checkbox:before {
    content: "";
    position: absolute;
    top: 2px;
    left: 0;
    width: 17px;
    height: 17px;
    border: 1px solid #888;
    background: #fff;
}

.page-id-5080 #av_section_2 .facetwp-checkbox.checked:before {
    background: #0b3e76;
    border-color: #0b3e76;
}

.page-id-5080 #av_section_2 .facetwp-checkbox.checked:after {
    content: "";
    position: absolute;
    top: 6px;
    left: 5px;
    width: 7px;
    height: 4px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}

.page-id-5080 #av_section_2 .facetwp-counter {
    color: #767676;
    margin-left: 4px;
}

/* Award Year dropdown */
.page-id-5080 #av_section_2 select.facetwp-dropdown {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #c8c5bc;
    background-color: #fff;
    color: #414141;
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
}

/* ==========================================================
   GRANTEE RESULT CARDS
   ========================================================== */

/* Card grid */
.page-id-5080 #av_section_2 .facetwp-template .fwpl-layout.el-xokbl7 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 28px !important;
}

/* Each grantee card */
.page-id-5080 #av_section_2 .facetwp-template .fwpl-result {
    display: flex;
    background: #f6f4ed;
    border-top: 5px solid #d7481b;
    min-height: 220px;
    padding: 30px 28px;
    box-sizing: border-box;
    transition: transform .2s ease, box-shadow .2s ease;
}

.page-id-5080 #av_section_2 .facetwp-template .fwpl-result:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, .07);
}

.page-id-5080 #av_section_2 .facetwp-template .fwpl-row,
.page-id-5080 #av_section_2 .facetwp-template .fwpl-col {
    display: block !important;
    width: 100%;
}

/* Organization name */
.page-id-5080 #av_section_2 .facetwp-template .el-0zv4uh {
    color: #0b3e76;
    font-size: 23px;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 16px;
}

/* Grant purpose */
.page-id-5080 #av_section_2 .facetwp-template .el-r75n8q {
    color: #3c3c3c;
    font-size: 16px;
    line-height: 1.45;
    margin-bottom: 22px;
}

/* Do not let empty purpose fields reserve space */
.page-id-5080 #av_section_2 .facetwp-template .el-r75n8q.is-empty {
    display: none;
}

/* Date and amount */
.page-id-5080 #av_section_2 .facetwp-template .el-ygmgkl,
.page-id-5080 #av_section_2 .facetwp-template .el-ssfkm8 {
    color: #555;
    font-size: 15px;
    line-height: 1.5;
}

.page-id-5080 #av_section_2 .facetwp-template .el-ssfkm8 {
    color: #0b3e76;
    font-size: 20px;
    font-weight: 700;
    margin-top: 7px;
}

/* Hide any blank field output */
.page-id-5080 #av_section_2 .facetwp-template .fwpl-item.is-empty {
    display: none;
}

/* ==========================================================
   TABLET / MOBILE
   ========================================================== */

@media only screen and (max-width: 989px) {
    .page-id-5080 #av_section_2 .av_one_fifth,
    .page-id-5080 #av_section_2 .av_four_fifth {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .page-id-5080 #av_section_2 .av_one_fifth {
        margin-bottom: 40px;
    }

    .page-id-5080 #av_section_2 .facetwp-template .fwpl-layout.el-xokbl7 {
        grid-template-columns: 1fr !important;
    }
}

@media only screen and (max-width: 767px) {
    .page-id-5080 #av_section_2 .container {
        padding-top: 42px;
        padding-bottom: 50px;
    }

    .page-id-5080 #av_section_2 .facetwp-template .fwpl-result {
        min-height: 0;
        padding: 24px 20px;
    }

    .page-id-5080 #av_section_2 .facetwp-template .el-0zv4uh {
        font-size: 21px;
    }
}
/* ==========================================================
   TULL FOUNDATION — GRANTEE HERO TEXT READABILITY GLOW
   Page: Grantee Test / page-id-5080
   Creates a soft white wash behind the left-side hero copy
   ========================================================== */

   .page-id-5080 #av_section_1 {
    position: relative;
    overflow: hidden;
}

/* FLIP QUOTE STYLE ========================================================== */

.board-staff-photos .flip-bio {
    perspective: 1200px;
}

.board-staff-photos .flip-bio .flip-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    transform-style: preserve-3d;
    transition: transform 0.7s ease;
}

.board-staff-photos .flip-bio:hover .flip-card,
.board-staff-photos .flip-bio.is-flipped .flip-card {
    transform: rotateY(180deg);
}

.board-staff-photos .flip-bio .flip-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
}

.board-staff-photos .flip-bio .flip-front {
    z-index: 2;
}

.board-staff-photos .flip-bio .flip-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.board-staff-photos .flip-bio .flip-back {
    transform: rotateY(180deg);
    background: #EEE8E8;
    color: #022a56;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 28px;
    box-sizing: border-box;
}

.board-staff-photos .flip-bio .flip-back-content {
    font-size: 14px;
    line-height: 1.45;
    font-family: "halyard-display", sans-serif;
}

.board-staff-photos .flip-bio .avia-image-container,
.board-staff-photos .flip-bio .avia-image-container-inner,
.board-staff-photos .flip-bio .avia-image-overlay-wrap {
    height: 100%;
}

.board-staff-photos .flip-bio .flip-quote {
    display: none !important;
}

@media (hover: none) {
    .board-staff-photos .flip-bio:hover .flip-card {
        transform: none;
    }
}

/* ================STAFF MODAL======================== */

.staff-bio-modal {
    max-width: 520px;
    margin: 0 auto;
    background: #d9d9d2;
    padding: 34px 32px;
    border-radius: 0;
    box-shadow: 0 18px 45px rgba(0,0,0,0.18);
  }
  
  .staff-bio-modal-inner h3 {
    margin: 0 0 8px;
    color: #0b3e76;
    font-size: 30px;
    line-height: 1.1;
  }
  
  .staff-bio-role {
    margin: 0 0 18px;
    color: #cb4014;
    font-weight: 700;
    font-size: 16px;
  }
  
  .staff-bio-modal-inner p:last-child {
    margin-bottom: 0;
  }
  
  .mfp-content .staff-bio-modal {
    display: block !important;
  }
  
  .board-staff-photos .avia-image-container a {
    display: block;
    cursor: pointer;
  }

  /* Page 5927 - make all list copy dark blue 
#top.page-id-5927 .avia_textblock ul,
#top.page-id-5927 .avia_textblock ol,
#top.page-id-5927 .avia_textblock li,
#top.page-id-5927 .avia_textblock li strong,
#top.page-id-5927 .avia_textblock li a {
  color: #022a56 !important;
}*/

/* Bullet/number color 
#top.page-id-5927 .avia_textblock li::marker {
  color: #022a56 !important;
}*/