/* Camp ACC year-end campaign section. Works alongside Bootstrap 3. */
html {
    scroll-behavior: smooth;
}

.acc-ye {
    color: #173e4b;
    font-family: inherit;
    background-color: #FAFAFA;
}
.acc-ye *, .acc-ye *::before, .acc-ye *::after { box-sizing: border-box; }

/* Set the banner photo here; keep its subjects toward the right. */
.acc-ye-hero {
  min-height: 410px;
  display: flex;
  align-items: center;
  background-image: linear-gradient(90deg, rgba(0,36,39,.78) 0%, rgba(0,36,39,.45) 46%, rgba(0,36,39,.03) 80%), url('/img/appeal/campaign-hero.jpg');
  background-size: cover;
  background-position: center center;
}
.acc-ye-hero-inner { width: min(1100px, 92%); margin: 0 auto; padding: 60px 0; }
.acc-ye-hero h1 { color: #fff; font-size: clamp(34px, 4.7vw, 62px); line-height: 1.08; font-weight: 750; max-width: 670px; margin: 0 0 20px; text-shadow: 0 2px 8px rgba(0,0,0,.25); }
.acc-ye-hero p { color: #fff; font-size: clamp(18px, 2.1vw, 26px); line-height: 1.45; font-style: italic; margin: 0; text-shadow: 0 2px 6px rgba(0,0,0,.3); }

.acc-ye-intro { max-width: 850px; margin: 0 auto; padding: 35px 22px 30px; text-align: center; }
.acc-ye-intro h2 { font-size: clamp(22px, 2.5vw, 28px); font-weight: 700; line-height: 1.35; color: #084459; margin: 0 0 14px; }
.acc-ye-intro p { font-size: 20px; line-height: 1.65; margin: 0; }

.acc-ye-feature { max-width: 1100px; margin: 30px auto 38px; padding: 26px; border-radius: 16px; background: #E1F5FC; }
.acc-ye-feature:has(.acc-ye-gt-logo-container) { padding-bottom: 20px; }
.acc-ye-feature-label { display: inline-block; background: #084459; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .08em; padding: 9px 20px; border-radius: 4px; margin-bottom: 20px; }
.acc-ye-feature-grid { display: grid; grid-template-columns: minmax(220px, 34%) 1fr; gap: 30px; align-items: center; }
.acc-ye-feature-image { width: 100%; height: 300px; object-fit: cover; border-radius: 12px; display: block; }
.acc-ye-feature-copy h2 { color: #084459; font-size: clamp(27px, 3.1vw, 39px); line-height: 1.14; font-weight: 750; margin: 0 0 12px; }
.acc-ye-feature-copy p { font-size: 17px; line-height: 1.55; margin: 0 0 16px; }
.acc-ye-feature-copy .acc-ye-feature-tagline { font-style: italic; font-size: 18px; }
.acc-ye-button { display: inline-block; background: #cb8b0c; color: #fff !important; text-decoration: none !important; font-weight: 700; font-size: 17px; border-radius: 30px; padding: 13px 27px; transition: background-color .15s ease; }
.acc-ye-button:hover, .acc-ye-button:focus { background: #a97106; color: #fff; }

.acc-ye-other { max-width: 1100px; margin: 0 auto; padding: 0 15px 45px; text-align: center; }
.acc-ye-other h2 { font-size: 27px; color: #084459; font-weight: 700; margin: 0 0 23px; }
.acc-ye-other .flex-row { margin: -10px; }
.acc-ye-option { padding: 8px 18px; min-height: 150px; }

.acc-ye-option-icon { display: block; color: #084459; font-family: Arial, sans-serif; font-size: 39px; line-height: 1.2; margin-bottom: 9px; }
.acc-ye-option h3 { font-size: 18px; color: #084459; font-weight: 700; margin: 0 0 8px; }
.acc-ye-option p { font-size: 15px; line-height: 1.5; margin: 0; }
.acc-ye-option-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.acc-ye-option-link:hover,
.acc-ye-option-link:focus {
    color: inherit;
    text-decoration: none;
}

.acc-ye-option-link:hover .acc-ye-option h3,
.acc-ye-option-link:focus .acc-ye-option h3 {
    text-decoration: underline;
}

.acc-ye-option-link .acc-ye-option {
    cursor: pointer;
}
.acc-ye-hero-button {
    display: inline-block;
    margin-top: 30px;
    padding: 13px 30px;
    background: #cb8b0c;
    color: #fff !important;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none !important;
    border-radius: 30px;
    transition: background-color .15s ease;
}

.acc-ye-hero-button:hover,
.acc-ye-hero-button:focus {
    background: #a97106;
    color: #fff;
}


/* Giving Tuesday Results - Feature 3 */

.acc-ye-results {
    margin-top: 20px;
    padding: 20px 25px;
    background: #ffffff;
    border: 1px solid #d5e5ec;
    border-radius: 12px;
    text-align: center;
    color: #063f53;
}


/* Giving Tuesday Results - Feature 3 */

.acc-ye-results {
    width: 100%;
    max-width: 1100px;
    box-sizing: border-box;
    margin: 20px auto 30px;
    padding: 20px 25px;
    background: #CBE8F3;
    border: 1px solid #d5e5ec;
    border-radius: 12px;
    text-align: center;
    color: #063f53;
}

.acc-ye-results h3 {
    margin: 0 0 12px;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.acc-ye-results p {
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
}

.acc-ye-results-logo {
    display: block;
    width: 180px;
    max-width: 60%;
    height: auto;
    margin: 0 auto 12px;
}


/* Giving Tuesday logo - Feature 2 */

.acc-ye-gt-logo-container {
    text-align: center;
    margin: 25px 0 0;
}

.acc-ye-gt-logo {
    display: block;
    width: 260px;
    max-width: 60%;
    height: auto;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .acc-ye-gt-logo {
        width: 180px;
    }
}



@media (min-width: 992px) { .acc-ye-other .flex-row > div + div .acc-ye-option { border-left: 1px solid #d8e0e2; } }

/* Hide hero button on desktop */
.acc-ye-hero-button {
    display: none;
}

@media (max-width: 767px) {
  
	.acc-ye-hero {
		min-height: 380px;
		background-position: center center;
		background-size: cover;
		background-image:
			linear-gradient(
				to bottom,
				rgba(0,36,39,.75) 0%,
				rgba(0,36,39,.50) 45%,
				rgba(0,36,39,.15) 100%
			),
			url('/img/appeal/campaign-hero-mobile.jpg');
	}

  .acc-ye-hero-inner { padding: 55px 0; }
  .acc-ye-desktop-only { display: none; }
  .acc-ye-feature { margin: 10px 14px 32px; padding: 18px; }
  .acc-ye-feature-grid { grid-template-columns: 1fr; gap: 20px; }
  .acc-ye-feature-image { height: 230px; }
  .acc-ye-option { min-height: auto; padding: 12px; }
  .acc-ye-hero-button { display: inline-block; }
  .acc-ye-results {
    padding: 18px 15px;
  }

    .acc-ye-results {
        padding: 18px 15px;
		margin-bottom: 20px;
		background: #CBE8F3;
    }

    .acc-ye-results h3 {
        font-size: 18px;
    }

    .acc-ye-results p {
        font-size: 16px;
    }

}


/* Embedded Givebutter feature layout */

.acc-ye-feature-heading {
    text-align: center;
    margin-bottom: 25px;
}

.acc-ye-feature-heading h2 {
    color: #084459;
    font-size: clamp(25px, 2.8vw, 35px);
    line-height: 1.15;
    font-weight: 700;
    margin: 0 0 12px;
}

.acc-ye-feature-heading .acc-ye-feature-tagline {
    font-size: clamp(20px, 2.3vw, 25px);
    font-style: italic;
    line-height: 1.4;
    margin: 0;
}

.acc-ye-giving-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 30px;
    align-items: center;
}

.acc-ye-giving-photo {
    min-width: 0;
}

.acc-ye-giving-photo .acc-ye-feature-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
}

.acc-ye-giving-form {
    min-width: 0;
}

.acc-ye-giving-form h3 {
    color: #084459;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 18px;
}

.acc-ye-giving-form givebutter-widget {
    display: block;
    width: 100%;
}

.acc-ye-giving-footer {
    text-align: center;
    color: #084459;
	font-size: clamp(20px, 2.4vw, 26px);
	font-weight: 700;    
	line-height: 1.5;	
    margin: 28px 0 0;
}

/* Mobile layout */
@media (max-width: 991px)  {
    .acc-ye-hero-button {
        display: inline-block;
    }
	.acc-ye-giving-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .acc-ye-giving-photo .acc-ye-feature-image {
        height: auto;
        max-height: none;
        object-fit: contain;
    }

	.acc-ye-giving-form-container {
		padding-top: 0;
	}
    .acc-ye-giving-form h3 {
        font-size: 22px;
    }

    .acc-ye-giving-footer {
        margin-top: 24px;
    }
}


/* Tablet-specific adjustments */

@media (min-width: 768px) and (max-width: 991px) {
    .acc-ye-giving-photo .acc-ye-feature-image {
        width: 100%;
        max-width: 450px;
        height: auto;
        max-height: none;
        object-fit: contain;
        margin: 0 auto;
    }

    .acc-ye-giving-form-container {
        padding-top: 30px;
        width: 100%;
        max-width: 450px;
        margin: 0 auto;
    }
}




/* Mobile hero: separate text from photograph */
@media (max-width: 767px) {

    .acc-ye-hero {
        min-height: 0;
        display: flex;
        flex-direction: column;
        background-image: none;
        background-color: #063f53;
    }

    .acc-ye-hero-inner {
        width: 100%;
        margin: 0;
        padding: 25px 20px 20px;
        text-align: center;
    }

    .acc-ye-hero h1 {
        margin: 0 auto 15px;
    }

    .acc-ye-hero p {
        margin: 0 auto 15px;
    }

    .acc-ye-hero-button {
        margin-top: 10px;
        margin-bottom: 0;
    }

    .acc-ye-hero::after {
        content: "";
        display: block;
        width: 100%;
        height: 300px;
        background-image: url('/img/appeal/campaign-hero-mobile.jpg');
        background-size: cover;
        background-position: center 65%;
    }

}



/* Hide campaign hero on phones */
@media (max-width: 767px) {
    .acc-ye-hero {
        display: none;
    }
}

@media (max-width: 767px) {
    .acc-ye {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .acc-ye-feature {
        margin-top: 10px;
    }
}


/* Make a Gift button within mobile feature */
.acc-ye-mobile-gift-button {
    display: none;
}

@media (max-width: 767px) {
    .acc-ye-mobile-gift-button {
        display: inline-block;
        margin-top: 20px;
        padding: 13px 30px;
        background: #cb8b0c;
        color: #fff !important;
        font-size: 18px;
        font-weight: 700;
        text-decoration: none !important;
        border-radius: 30px;
    }

    .acc-ye-mobile-gift-button:hover,
    .acc-ye-mobile-gift-button:focus {
        background: #a97106;
        color: #fff;
        text-decoration: none;
    }
}
