/*
Theme Name: Red-headed Woodpecker Recovery
Author: Siah St. Clair
Author URI: https://wordpress.org/
Description: Created for use by the Red-headed woodpecker recovery project.
Tags: nature, birds, three-columns, block-patterns, block-styles, featured-images
Tested up to: 6.3
Requires PHP: 7.2
Version: 1.0.0
Text Domain: rhwp
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

*/

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
 a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}


* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
     color: var(--wp--preset--color--contrast); 
     
}

.rhwp-looking-left{ 
  background-color: var(--wp--preset--color--skyblue);
	background-image:  url("../redheadedwoodpecker/assets/images/rhwptreeleft650X1000.png");
  background-position-x: 100%;
  background-position-y: 0%;
  background-size: auto 1000px;
  background-repeat:no-repeat;
  min-height: 1000px;
  padding-bottom: 100px;
} 

@media screen and (max-width: 1800px) {
  .rhwp-looking-left{ 
    background-size: auto 750px;
  }

}

@media screen and (max-width: 1475px) {
  .rhwp-looking-left{ 
    background-size: auto 650px;
  }

}

@media screen and (max-width: 1250px) {
  .rhwp-looking-left{ 
    background-size: auto 550px;
  }

}

@media screen and (max-width: 950px) {
  .rhwp-looking-left{ 
    background-size: auto 450px;
  }

}

@media screen and (max-width: 780px) {
  .rhwp-looking-left{ 
    background-size: auto 350px;
  }

}

@media screen and (max-width: 425px) {
  .rhwp-looking-left{ 
    background-size: 25%;
  }

}

.blue-page-title{
  padding-top: 100px;
  padding-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(90deg, var(--wp--preset--color--accent) 0%, var(--wp--preset--color--primary) 25%, var(--wp--preset--color--primary) 75%, var(--wp--preset--color--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.glass {
    backdrop-filter: blur(40px);
}

.neumo {
    box-shadow: 7px 7px 6px 1px var(--wp--preset--color--accent)
}

.top-gradient {
    position: relative;
}

.top-gradient * {
    z-index: 2;
}

.top-gradient::before {
    content: "";
    position: absolute;
    top: -800px;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, var(--wp--preset--color--accent-48) 0%, var(--wp--preset--color--base) 70%);
}

.wp-block-navigation {
    z-index: 9999;
}

.wp-block-navigation__responsive-container-content {
    padding: 1rem;
}

.rhwp-footer {
    border-top: 1px solid var(--wp--preset--color--accent);
}

.rhwp-post * + *:not(ul, li) {
    margin-top: 1.5em;
}

.rhwp-post ul, .rhwp-post li {
    margin-left: 1em;
}

.rhwp-post p {
    line-height: 1.8;
}

p.keep-it-short{
  max-width:50%;
}

/* @media screen and (max-width: 1800px) {
  .rhwp-looking-left{ 
    background-size: auto 750px;
  }

}

@media screen and (max-width: 1475px) {
  .rhwp-looking-left{ 
    background-size: auto 650px;
  }

}

@media screen and (max-width: 1800px) {
  .rhwp-looking-left{ 
    background-size: auto 750px;
  }

} */


@media screen and (max-width: 780px) {

    .full-hundred {
      max-width:100% !important;
    }
    .full-hundred-paras p {
      max-width:100% !important;
    }
    .rhwp-footer,
    .rhwp-center{
      padding: 10px;
    }
    .donate-button-group {
    justify-content: flex-start !important;
    padding-top:10px;
    padding-bottom:10px;
    }


  .hide-background-image {
   background-image: none !important;
  }
  }
  
  @media screen and (max-width: 1330px) {
    .hide-background-image {
      min-height:0px !important;
    }
  
  }
  
  @media screen and (min-width: 600px) {
    .no-padding {
      padding:0 !important;
    }
  
  }
  
  @media screen and (min-width: 780px) {
    .no-padding-left div.wp-block-navigation__responsive-container-content {
      padding-left:0 !important;
    }

    .no-margin-top   {
      margin-block-start:0 !important;
    }
  
  }
  
  .rhwp-footer,
  .rhwp-center{
    width:100%;
    max-width: 1200px;
    margin: 0 auto !important;
  }
  
  h1.header-identity a{
	color:black;  
    text-decoration:none;
  }
  
  .no-padding {
     padding:0 !important;
  }
  
  .red-head {
     color:#C62828;
  }
  
  .title-background-inherit{
     background-color:inherit;
  }
  
  @media screen and (min-width: 600px) {
  
  ul.top-horizontal-nav ul {
    background-color:black !important;
    color:white;
  width: fit-content;
  
  }
  
  ul.top-horizontal-nav ul > li{
    width: 500px;
    border-top: 1px solid white;
    padding:5px important;
  }
  }
  
  
  .accordion-container {
    max-width: 800px; /* Increased max-width for larger screens */
    margin: 20px auto;
}

.accordion-item {
    border: 1px solid #ddd;
    margin-bottom: 10px;
    border-radius: 8px; /* Added border-radius for rounded corners */
    overflow: hidden;  /* Added to contain rounded corners of content */
}

.accordion-title {
    width: 100%;
    padding: 15px; /* Increased padding for better touch area */
    text-align: left;
    background-color: var(--wp--preset--color--base); /* Light background for title */
    color: var(--wp--preset--color--contrast);
    cursor: pointer;
    border: none;
    display: flex; /* Use flexbox for alignment */
    justify-content: space-between; /* Space title and arrow */
    align-items: center; /* Vertically center title and arrow */
    transition: background-color 0.2s ease; /* Smooth transition */
    font-weight: 500; /* Make title a bit bold */
    border-bottom: 1px solid #ddd; /* Add a border below the title */
    font-size: var(--wp--preset--font-size--huge);
}

.accordion-title:hover {
    background-color: var(--wp--preset--color--contrast); /* Slightly darker hover background */
    color: var(--wp--preset--color--base);
}

.accordion-title.active {
    background-color: var(--wp--preset--color--contrast); /* Keep background on active state */
    color: var(--wp--preset--color--base);  /* make the title color blue when active */
}

.accordion-content {
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out; /* Smooth transition */
    opacity: 0;  /* start with 0 opacity */
    margin-block-start: 0;
}

.accordion-content.show {
    max-height: 1000px;  /* Set a large max-height */
    padding-bottom: 15px; /* Add padding when expanded */
    padding-top: 15px; /* Add padding when expanded */
    overflow-y: auto;/* Add scrollbar if content is longer than the open panel*/
    opacity: 1; /* fade in */
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}
.col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

.col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) { /* Medium screens and below (tablets) */
    .col-sm-6 {
        flex: 0 0 100%;  /* Take full width on tablets */
        max-width: 100%;
    }
    .col-lg-3 {
        flex: 0 0 50%;  /* Take 50% width on tablets */
        max-width: 50%;
    }
    .column-contrast {
      display: flex !important;
      flex-direction: column-reverse;
    }

    .multi-content-nav {
      width: 50% !important;
    }
}

@media (max-width: 576px) { /* Small screens and below (phones) */
    .col-sm-6, .col-lg-3 {
        flex: 0 0 100%; /* Take full width on phones */
        max-width: 100%;
    }
    .accordion-title {
       padding: 12px;
    }
    .accordion-content.show {
      max-height: 2000px;  /* Set a large max-height */
    }

    .multi-content-nav {
      width: 100% !important;
    }

    .modal-section {
        flex-direction: column;
    }

    .modal-image {
        width: 100%;
        max-width: 320px;
    }
}

.img-fluid {
    max-width: 100%;
    height: auto;
}
.rounded{
  border-radius: 8px;
}
.text-center{
  text-align: center;
}
.text-muted {
  color: var(--wp--preset--color--primary);
}

.arrow {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-top: 2px solid #666; /* Changed arrow color */
    border-right: 2px solid #666;
    transform: rotate(135deg);
    transition: transform 0.3s ease; /* Smooth transition for rotation */
}

.accordion-title.active .arrow {
    transform: rotate(-45deg); /* Rotate arrow when accordion is open */
}

div.accordion-content figure figcaption{
  text-align: center;
  font-size: var(--wp--preset--font-size--large);
}
#wp-modal-overlay {
  align-items: flex-start;
  padding: 40px 0;
  box-sizing: border-box;
}
.modal-content {
    max-width: 800px;
    padding: 20px;
	display:none;
}

.modal-section {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.modal-image {
    flex-shrink: 0;
    width: 300px;
	padding-top:7px;
}

.modal-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.modal-text {
    flex: 1;
	margin-top:0;
}

/* Frontend: visually hidden */
.modal-title.visually-unseen {
    display:none;
}

.top-space{
	margin-top: 20px;
}

#wp-modal-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

#wp-modal-footer button {
  background-color: #c62828;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: color 0.15s ease;
}

#wp-modal-footer button:hover,
#wp-modal-footer button:active {
  color: black;
}

/* Arrow buttons */
#rh-previous-button,
#rh-next-button {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 0;         /* hides the original text */
  position: relative;
}

/* Left arrow via CSS */
#rh-previous-button::after {
  content: "◀";
  font-size: 18px;
}

/* Right arrow via CSS */
#rh-next-button::after {
  content: "▶";
  font-size: 18px;
}

/* Close button */
.rh-close-button {
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 15px;
}

/*Donate buttton css*/
