/*
Theme Name: Improv 502
Theme URI: 
Author: Any World Media
Author URI: 
Description: 
Requires at least: 6.6
Tested up to: 6.6
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: improv-502
Tags: 
*/

/* Forms */
input::-webkit-input-placeholder {
  /* Chrome, Safari, Opera */
  color: #000;
  font-family: "Inter", sans-serif;
  font-weight: 200;
  font-size: 1rem;
}
input::-moz-placeholder {
  /* Firefox 19+ */
  color: #000;
  font-family: "Inter", sans-serif;
  font-weight: 200;
  font-size: 1rem;
}
input:-ms-input-placeholder {
  /* IE 10+ */
  color: #000;
  font-family: "Inter", sans-serif;
  font-weight: 200;
  font-size: 1rem;
}
input::-ms-input-placeholder {
  /* Microsoft Edge */
  color: #000;
  font-family: "Inter", sans-serif;
  font-weight: 200;
  font-size: 1rem;
}

div.wpforms-container-full:not(:empty) {
  margin: 0 auto !important;
}

.wpforms-submit {
  text-transform: uppercase !important;
  font-weight: bold !important;
}

/* END Forms */

/* Mailchimp Embed Form */
#mc_embed_shell {
  font-family: "Inter", sans-serif;
  color: white;
}

#mc_embed_signup {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 16rem;
}
#mc_embed_signup_scroll {
  display: flex;
  gap: 0.75rem;
  flex-direction: column;
}

.mc-field-group {
  max-width: 14rem;
  width: 100%;
}
.mc-field-group input {
  padding: 0.5rem 0.25rem 0.5rem 0.25rem;
  width: 100%;
}

.form-header {
  margin: 0;
  text-transform: uppercase;
  font-weight: 700;
}

input[type="text"],
input[type="email"] {
  border: 2px solid #5d14f7;
}

input[type="submit"] {
  background-color: #efea5a; /* Background color */
  color: #000; /* Text color */
  padding: 0.5rem 1.5rem; /* Padding for size */
  font-size: 1.1rem; /* Font size */
  font-weight: 700; /* Bold text */
  text-transform: uppercase; /* Uppercase text */
  border: none; /* Remove border */
  border-radius: 20px; /* Rounded corners */
  cursor: pointer; /* Pointer cursor on hover */
  width: 100%;
  max-width: 14rem;
}

@media (min-width: 992px) {
  #mc_embed_signup_scroll {
    flex-direction: row;
  }
  #mc_embed_signup {
    max-width: 100%;
  }
  input[type="submit"] {
    width: unset;
    max-width: unset;
  }
}
/* END Mailchimp Embed Form */

/* ========== Global Header Styles (Mobile First) ========== */
.wp-block-navigation .wp-block-navigation-item {
  padding-bottom: 5px;
}

.wp-block-navigation-item {
  position: relative;
  display: inline-block;
  padding-bottom: 8px; /* Space for the border */
}

/* Navigation Item Hover Underline Effect */
.wp-block-navigation-item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 5px; /* Adjust thickness of the border */
  background-color: #5d14f7; /* Border color */
  transition: width 0.2s ease; /* Adjust speed of the animation */
}

.wp-block-navigation-item:hover::after {
  width: 100%;
}

/* Button Styling */
.wp-block-button__link {
  border: 3px solid #5d14f7;
  transition: all 0.2s ease;
}

.wp-block-button__link:hover {
  background-color: transparent;
  color: #5d14f7;
}

/* Yellow Button Styling */
.wp-block-button__link.has-black-color {
  background-color: #efea5a;
  border: 3px solid #efea5a;
}

.wp-block-button__link.has-black-color:hover {
  background-color: transparent;
  color: #fff !important;
}

/* Fix for default FSE menu */
body .wp-block-navigation__responsive-container-open:not(.always-shown) {
  display: block !important;
}

body
  .wp-block-navigation__responsive-container:not(.hidden-by-default):not(
    .is-menu-open
  ) {
  display: none !important;
}

/* ========== Mobile Styles (Default) ========== */
.custom-header {
  background: #fff;
  padding: 15px 20px; /* Mobile padding */
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* Hide Desktop Navigation */
.desktop-nav {
  display: none !important;
}

/* Show Mobile Hamburger Button */
.hamburger {
  display: flex;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  position: relative;
  z-index: 9999;
}

/* Hamburger Button Lines */
.line {
  width: 30px;
  height: 4px;
  background: black;
  transition: all 0.3s ease-in-out;
}

.hamburger.dark-nav .line {
  background: white;
}

.hamburger.open .line {
  background: white;
}

/* Animate Hamburger Button */
.hamburger.open .line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.open .line:nth-child(2) {
  opacity: 0;
}

.hamburger.open .line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Navigation */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%; /* Fixed width */
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* Align to top right */
  justify-content: flex-start;
  padding: 20px;
  transform: translateX(100%);
  transition: all 0.3s ease-in-out;
  opacity: 0;
  visibility: hidden;
  z-index: 9998;
}

/* Show Mobile Menu when open */
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  transition: all 0.3s ease-in-out;
}

/* Hide donate button on mobile when menu is open */
.mobile-menu.open + .donate-button {
  display: none;
}

/* Mobile Menu Links */
.mobile-menu .nav-links {
  list-style: none;
  padding: 0;
  text-align: right;
}

.mobile-menu .nav-links li {
  margin: 15px 0;
}

.mobile-nav
  .wp-block-navigation
  .wp-block-navigation-item__content.wp-block-navigation-item__content {
  color: white;
}

nav.mobile-nav {
  transform: translateY(60%);
  padding: 1rem 3rem;
  gap: 1rem;
}

ul.mobile-nav {
  padding: 0 calc(1.333em + 2px);
}

.mobile-menu .nav-links a {
  text-decoration: none;
  font-size: 18px;
  color: white !important;
  font-weight: bold;
  transition: color 0.3s;
}

.mobile-menu .nav-links a:hover {
  color: #efea5a;
}

/* ========== Desktop Styles (Apply at 768px and Up) ========== */
@media (min-width: 768px) {
  /* Desktop Header Layout */
  .custom-header {
    padding: 15px 40px; /* Increase padding for larger screens */
  }

  /* Show Desktop Navigation */
  .desktop-nav {
    display: flex !important;
    gap: 30px; /* Space between nav items */
  }

  /* Ensure donate button is properly positioned */
  .donate-button {
    display: block;
    margin-left: 20px; /* Give space from nav links */
  }

  /* Hide Mobile Navigation */
  .mobile-menu,
  .hamburger {
    display: none;
  }
}

header .header-width {
  max-width: 1600px;
  margin: auto;
}

/* Footer */

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.wp-block-social-link:hover svg {
  fill: #5d14f7 !important;
}

.copyright-line {
  color: white;
}

/* END Footer */

/* Body */
.overlay {
  position: relative; /* Establishes positioning context */
  overflow: hidden; /* Ensures the overlay doesn’t spill outside the group */
}

/* Create the overlay */
.overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Adjust color and opacity as needed */
  z-index: 1;
}

/* Ensure inner content sits above the overlay */
.overlay > * {
  position: relative;
  z-index: 2;
}

.wp-block-media-text__media img {
  border-radius: 10%;
}
.wp-block-cover__inner-container {
  display: flex;
  justify-content: center;
}

.max-w-800 {
  max-width: 800px !important;
  width: 100%;
}

@media (min-width: 992px) {
  .wp-block-media-text.has-media-on-the-right .wp-block-media-text__content {
    margin-right: -100px;
  }
  .wp-block-media-text:not(.has-media-on-the-right)
    .wp-block-media-text__content {
    margin-left: -100px;
    z-index: 1;
  }
  .wp-block-media-text__media {
    z-index: 3;
  }
}

@media (min-width: 992px) {
  .media-overlap-content {
    padding: 5rem 5rem 5rem 7rem !important;
  }
}

@media (max-width: 992px) {
  .wp-block-media-text.is-stacked-on-mobile {
    grid-template-columns: 100% !important;
  }
  .wp-block-media-text.is-stacked-on-mobile > .wp-block-media-text__media {
    grid-column: 1;
    grid-row: 1;
  }
  .wp-block-media-text.is-stacked-on-mobile > .wp-block-media-text__content {
    grid-column: 1;
    grid-row: 2;
  }
}

.wp-block-media-text__media {
  @media (max-width: 992px) {
    padding: 0 8%;
  }
}

@media (max-width: 468px) {
  .wp-block-media-text__content,
  wp-block-media-text__media {
    padding: 0 0.5rem !important;
  }
}
