/*
Theme Name: Ride for Hannah
Theme URI: https://rideforhannah.net
Author: RLC IMT
Author URI: https://wec.net
Description: A custom WordPress block theme for the Hannah Micayla Serfass Foundation — featuring scholarship applications, donor support, and inspiring stories.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: block-patterns, full-site-editing, custom-blocks, foundation, charity
Text Domain: rideforhannah
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
*/

:root {
  --btn-gradient: linear-gradient(0deg, #004C97 0%, #0080FF 100%);
  --btn-gradient-hover: linear-gradient(0deg, #004C97 0%, #0080FF 60%);
}

html {
  scroll-behavior: smooth;
}

p {
	font-size: 18px;
}

h2 {
	margin: 0;
	color: #004C97;
}
hr {
	border-width: 3px !important;
}
h2 + hr, h3 + hr {
	border-color: #004C97 !important;
	height: 4px !important;
	background: #004C97 !important;
	opacity: 1 !important;
}
h2.has-white-color + hr, h3.has-white-color + hr{
	background: #fff !important;
	opacity: 1 !important;
}
.wp-site-blocks > *:not(footer){
	padding-left: 20px;
	padding-right: 20px;
}
.wp-block-group {
	
}
/**Blue Background Images**/
#donate, #sponsors, .blue-bg{
  background-image: url('./img/donate_bg.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/**Variable Fonts **/
.has-grappa-variable-font {
  font-family: var(--wp--preset--font-family--grappa-variable);
  font-variation-settings: "wght" 100;
}

.has-grappa-two-variable-font {
  font-family: var(--wp--preset--font-family--grappa-two-variable);
  font-variation-settings: "wght" 100;
}

header.main-header nav {
	margin-left: auto;
}

header {
  border-bottom: 2px #fff solid;
  position: absolute;
  left: 0;
  right: 0;
  background: transparent;
  z-index: 9;
}
header nav {
	width: 100%;
}
.header-alt {
	position: relative;
	background: #004c97;
	margin-bottom: 55px;
}

.main-header {
  padding-top: 20px;
  padding-bottom: 20px;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
}

.header-alt > .main-header, 
.header-alt + main {
	width: 95%;
	margin: 0 auto;
	flex-direction: row;
	flex-wrap: nowrap;
}
 
.header-alt + main {
	margin-bottom: 50px;
}

.blog-template-wrapper {
	max-width: 650px;
}

.wp-block-navigation__responsive-container {
	display: block !important;
	position: relative !important;
}

.custom-logo-link {
  background: #fff;
  margin-top: 0px;
  position: absolute;
  top: 50px;
}

.header-alt .custom-logo-link {
	position: relative;
	top: 0;
}

 .wp-block-navigation .wp-block-navigation-item {
  border: 1px #fff solid;
  background: transparent;
  margin: 10px 15px;
  border-radius: 5px;
  color: #fff;
  min-width: 120px;
  text-align: center;
  justify-content: center;
  text-transform: uppercase;
  cursor: pointer;
 }
 
 .wp-block-navigation .wp-block-navigation-item:hover {
   background: rgba(255,255,255, 0.2);
 }
 
 .wp-block-navigation .wp-block-navigation-item > a{
  padding: 7px 20px;
 }
 
.wp-block-navigation .header-donate-btn {
  border-radius: 6px;
  border: 1px solid #FFF;
  background: var(--btn-gradient);
  text-shadow: 0px 1px 2px #000;
  text-transform: uppercase;
}

.wp-block-navigation .header-donate-btn:hover{
	background: var(--btn-gradient-hover);
}

.wp-block-navigation .header-donate-btn a {
  background: none;
  padding: 20px 48px !important;
  letter-spacing: 0.48px;
}

body.scrolled .site-header.transparent-header {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  background-color: rgba(0, 0, 0, 0.6) !important;
}


/**Donation Section**/
#donate {
	padding-bottom: 150px !important;
}
.donation-button .wp-block-button__link.selected {
	background: #002c60;
	color: #fff;
}

.custom-donation-input {
  background: #e0eafc;
  color: #002c60;
  border-radius: 10px;
  font-weight: bold;
  font-size: 48px;
  padding: 48px 0rem !important;
  transition: all 0.3s ease;
  min-width: 120px;
  text-align: center;
  width: 100%;
  border: 2px solid white;
  margin-top: 0 !important;
}

.custom-donation-input::placeholder {
  color: #ccc;
}

/* Donation Box Container */
.donation-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2rem;
  text-align: center;
}

/* Donation Button Wrapper */
#donate p{
	font-size: 24px;
}
.donation-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* Individual Buttons */
.donation-button .wp-block-button__link {
  background: #e0eafc;
  color: #002c60;
  border-radius: 10px;
  font-weight: bold;
  font-size: 40px;
  padding: 48px 2rem;
  transition: all 0.3s ease;
  display: inline-block;
  min-width: 120px;
  text-align: center;
  transition: .4s;
}

.donation-button.primary .wp-block-button__link {
  color: #ffffff;
  background: linear-gradient(0deg, #004C97 0%, #0080FF 100%);
  text-shadow: 0px 1px 2px #000;
  text-transform: uppercase;
}

.donation-button .wp-block-button__link:hover {
  background: #002c60;
  color: #ffffff;
}
.donation-button.primary .wp-block-button__link:hover {
  background: linear-gradient(0deg, #004C97 0%, #0080FF 60%);
}

.donation-message {
  margin: 0;
  color: #002c60;
}
.donation-message span {
  display: block;
}
.donation-message .donation-line1 {
	font-size: 48px;
	margin-top: 70px
}
.donation-message .donation-line2 {
	font-size: 56px;
	margin-bottom: 50px;
	font-weight: 900;
}

/**About**/
#about {
	margin-bottom: 70px;
}

#about p {
	line-height: 30px;
}

/**Donate Section**/
#donate {

  
}

/**Scholarship**/
#scholarship {
	color: #004C97;
}

#scholarship h3{
	font-size: 35px;
	margin: 0;
}

#scholarship p{
	font-size: 18px;
	font-style: normal;
	font-weight: 300;
	line-height: 30px;
	letter-spacing: 0.9px;
}

/**Sponsor Grid**/
#sponsors p{
	font-size: 24px;
}

#sponsors .cta-box p{
	font-size: 18px;
}

.sponsor-grid {
	display: flex;
	gap: 24px;
}

.sponsor-grid > * {
	text-align: center;
	max-width: 100%;
	height: auto;
	border-radius:12px;
	background:white;
	padding:1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	padding:5% 0;
	flex:1;
}

.sponsor-grid > .cta-box {
	color: #fff;
	font-size: 18px;
	line-height: 2;
	text-transform: uppercase;
}

/* Featured blog section */
.featured-posts-grid {
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.story-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 16px;
  border: 1px solid #004C97;
}

.story-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.story-card .wp-block-post-excerpt {
  font-size: 24px;
  margin-top: 0.5rem;
  color: #004C97;
  font-size: 24px;
}
.story-card .wp-block-post-featured-image {
	margin: 0;
}
.story-card .wp-block-post-excerpt__more-link {
  display: flex;
  padding: 24px 40px;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  border-radius: 8px;
  border: 1px solid #FFF;
  background: var(--btn-gradient);
  margin-top: 1rem;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  text-transform: uppercase;
}

.story-card .wp-block-post-excerpt__more-link:hover {
  background: var(--btn-gradient-hover);
}

.story-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

.story-card img:empty,
.story-card img[src=""],
.story-card img:not([src]) {
  background: url('/wp-content/themes/rideforhannah/img/default-featured.png') center center / cover no-repeat;
  content: "";
  display: block;
  min-height: 200px;
}

.wp-block-buttons .read-more-btn { 
	margin-top: 30px !important;
}
.read-more-btn > a{
	display: flex !important;
	padding: 28px 72px;
	justify-content: center;
	align-items: center;
	border-radius: 8px;
	border: 1px solid #FFF;
	background: var(--btn-gradient);
	color: #FFF;
	text-shadow: 0px 1px 2px #000;
	font-size: 24px;
	font-style: normal;
	font-weight: 700;
	line-height: 30px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}
.read-more-btn > a:hover {
	background: var(--btn-gradient-hover);
}
.wp-block-query-pagination--align-center {
	margin: 30px 0;
	justify-content: center;
	font-size: 18px;
	padding: 10px;
}
.wp-block-query-pagination--align-center .page-numbers {
  padding: 10px;
  margin: 10px;
  font-size: 21px;
}
/**Award**/
.awards-section {
  background: #cce0f2;
  padding: 60px 20px;
}
.awards-section h3 {
  color: #002c60;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
}
.awards-section h4 {
  color: #002c60;
  font-weight: 700;
  margin-top: 2rem;
  text-transform: uppercase;
}
.awards-section p {
  color: #002c60;
  font-size: 24px;
}
.award-entry-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #002c60;
}
.award-entry-row p {
  margin: 0;
}
.award-entry-row p:first-child {
  text-align: left;
}
.award-entry-row p:last-child {
  text-align: right;
}


/**Gravity Forms**/
input {
	padding: 25px 16px !important;
	border-radius: 8px;
	border: 1px solid #004C97;
	background: rgba(255, 255, 255, 0.10);

}
.gform_wrapper.gravity-theme .ginput_complex p {
	margin: 0;
	width: 100%;
}
.gform_wrapper.gravity-theme .ginput_complex p span {
	display: block;
}
.gform_wrapper.gravity-theme .ginput_complex p br {
	display: none;
}
.gfield label + p {
	display: none;
}
.gform_wrapper.gravity-theme .ginput_complex.has_last_name.has_first_name {
	flex-wrap: nowrap;
}
.gform_wrapper.gravity-theme .ginput_complex.has_last_name.has_first_name p:first-child {
	margin-right: 10px;
}
.ginput_container_fileupload {
  position: relative;
  padding: 55px;
  border-radius: 8px;
  border: 2px dashed #004C97;
  background-color: #fff;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ginput_container_fileupload:hover,
.ginput_container_fileupload.drag-over {
  background-color: #e0eafc;
  border-color: #0080FF;
}

.ginput_container_fileupload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.ginput_container_fileupload .custom-upload-label {
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
  position: relative;
}

.ginput_container_fileupload .custom-upload-label img {
  width: 25px;
  height: 25px;
  margin-right: 5px;
}

.ginput_container_fileupload .custom-upload-label span {
  font-size: 18px;
  font-weight: 500;
  color: #004C97;
}

.ginput_container_fileupload .file-name {
  margin-top: 10px;
  font-size: 16px;
  color: #004C97;
  font-weight: bold;
}

.ginput_container_fileupload .gform_fileupload_rules{
	display: none;
}
.gform_footer input{
	background: var(--btn-gradient);
	border-radius: 8px;
	border: 1px solid #FFF;
	width: 100%;
	font-size: 24px;
	text-transform: uppercase;
	letter-spacing: 0.48px;
	color: #fff;
	text-shadow: 0px 1px 2px #000;
	cursor: pointer;
}
.gform_footer input:hover {
	background: var(--btn-gradient-hover);
}
.gf-upload-file .gfield_description {
	font-size: 18px !important;
}
.gf-upload-file label,
.gf-upload-file .gfield_description p{
	display: none !important;
}
.gf-upload-file .gfield_description ol{
	line-height: 1.8;
	margin: 8px 0 auto;
	padding-left: 30px;
}
.gform_footer.top_label p, .gform_footer.top_label br,
.gform_footer.top_label > p, .gform_footer.top_label > br, form > p,
.gform_wrapper + p{
	display: none;
}

/**Single Post**/
.wp-singular main .wp-block-post-featured-image {
	/*width: 50%;*/
}

/**Footer**/
.site-footer {
  background-color: #002c60;
  color: white;
  padding: 4rem 20px;
  text-align: center;
  background-image: url('./img/footer_bg.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
.site-footer img {
  max-width: 300px;
  margin-bottom: 2rem;
}
.site-footer a {
  color: white;
  text-decoration: underline;
}
.site-footer p {
	margin: 0;
	line-height: 1;
}
.site-footer .hashtag{
	margin-top: 50px;
}
/* === MOBILE NAVIGATION === */
.wp-block-navigation__responsive-container-open {
  display: none;
}

/* Responsive Styles */
@media (max-width: 1200px) { 
	.wp-block-site-logo {
	  display: flex;
	  justify-content: center;
	  position: absolute;
	  left: 0;
	  right: 0;
	  top: 42px;
	}
	.custom-logo-link {
	  position: relative;
	}
	ul.wp-block-navigation__container {
	  justify-content: space-around;
	}
	.header-alt .custom-logo-link {
		position: absolute;
		top: 50px;
	}
    .wp-singular main .wp-block-post-featured-image {
		width: 80%;
	}
  
}

@media (max-width: 1024px) {
  .main-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .hero-video-cover {
	  min-height: auto;
  }
	
  .wp-block-navigation .wp-block-navigation-item {
    margin: 5px 0;
    min-width: unset;
  }

  .donation-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .donation-button .wp-block-button__link {
    width: 100%;
    padding: 24px 1rem;
    font-size: 28px;
  }

  .donation-message .donation-line1,
  .donation-message .donation-line2 {
    font-size: 32px;
  }

  .sponsor-grid {
    flex-direction: column;
  }

  .story-card {
    width: 100%;
  }

  .read-more-btn > a {
    width: 100%;
    padding: 16px;
  }
  
  #blog .wp-block-post-template {
	  grid-template-columns: repeat(2, 1fr);
  }
  .site-footer figure ~ p {
	  font-size: 35px !important;
  }
}

@media (max-width: 720px) {
	.has-x-large-font-size {
		font-size: 35px !important;
	}
	.site-footer img {
	  max-width: 200px;
	  height: auto !important;
	}
	.award-entry-row p {
		font-size: 24px !important;
	}
	.site-footer figure ~ p {
		font-size: 24px !important;
	}
	.site-footer p {
		text-align: center;
	}
	.wp-block-post-template.is-flex-container.is-flex-container.columns-3 > li {
		width: calc(50% - .83333em) !important;
	}
}

@media (max-width: 820px) {
	header {
		border: 0;
	}
	.main-header {
		display: flex;
		flex-direction: revert;
		justify-content: space-between;
	}
	header nav {
		width: auto;
	}
	.wp-block-site-logo {
		position: relative;
		justify-content: flex-start;
		top: 0;
	}
	.wp-block-site-logo a{
		top: auto;
	}
	.header-alt .custom-logo-link {
	  position: relative;
	  top: 0;
	}
	ul.wp-block-navigation__container {
		justify-content: flex-start !important;
		width: 100%;
		text-align: left;
		align-items: flex-start !important;
		
	}
	ul.wp-block-navigation__container li:not(:last-of-type){
		display: none;
	}
	.wp-block-navigation__responsive-container-open	{
		display: block !important;
		z-index: 99;
	}
	.wp-block-navigation__responsive-container-close	{
		z-index: 9;
	}
	.wp-block-navigation__responsive-container-open,
	.wp-block-navigation__responsive-container-close	{
		position: fixed;
		top: 55px;
		background:#0070df;
	}
	.wp-block-navigation__responsive-container-open svg,
	.wp-block-navigation__responsive-container-close svg{
		height: 45px;
		width: 45px;
		color: #fff;
	}
	.wp-block-navigation__responsive-container.is-menu-open {
		position: fixed !important;
		width: 50%;
		right: 0;
		left: auto;
		background:
		linear-gradient(0deg, #004C97 0%, #0080FF 100%);
		color: #fff !important;
	}
	ul.wp-block-navigation__container li:not(:last-of-type) {
		width: 100%;
		padding-left: 15px;
		border: 0 !important;
	}
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content {
		width: 100%;
		text-align: left;
	}
	ul.wp-block-navigation__container li:last-of-type > a {
		text-align: center !important;
		width: auto !important;
	}
	.wp-block-navigation__responsive-container.is-menu-open ul.wp-block-navigation__containe .wp-block-navigation-item > a{
		padding: 7px 20px !important;
	}
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.header-donate-btn{
		margin-left: 15px;
	}
	.wp-block-navigation .wp-block-navigation-item {
		margin-right: 55px;
	}
}


@media (max-width: 640px) {
	body .has-x-large-font-size, body .has-large-font-size {
		font-size: 35px !important;
	}
	#blog .wp-block-post-template {
		grid-template-columns: 1fr;
	}
	.wp-singular main .wp-block-post-featured-image {
		width: 100%;
	}
	.wp-block-post-template.is-flex-container.is-flex-container.columns-3 > li {
		width: 100% !important;
	}
	.wp-block-query-pagination--align-center {
		justify-content: space-between !important;
	}
	.wp-block-query-pagination--align-center .page-numbers {
		display: none;
	}
}
/* Additional adjustments for very small screens */


@media (max-width: 480px) {
  .donation-box {
    padding: 1rem;
  }

  .gform_wrapper input,
  .custom-donation-input {
    font-size: 18px;
    padding: 16px;
  }

  .gform_footer input {
    font-size: 18px;
  }

  .site-footer img {
    max-width: 180px;
  }
  .wp-block-navigation__responsive-container-open	{
		display: block !important;
		z-index: 2;
	}
	.wp-block-navigation__responsive-container-close	{
		z-index: 1;
	}
}

@media (max-width: 420px) {
	ul.wp-block-navigation__container li:last-of-type > a {
		padding: 15px 20px !important;
	}
	.wp-block-site-logo a {
		width: 100px;
	}
	.wp-block-navigation__responsive-container-open,
	.wp-block-navigation__responsive-container-close {
        top: 48px;
    }
}

@media (min-width: 200px) {
    .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) .wp-block-navigation__responsive-container-close {
        display: none;
    }
}





