/*
 Theme Name:   Storefront Child
 Template:     storefront
 Author:       Peter Thomas
 Description:  A child theme of Storefront.
 Version:      1.0.0
*/

/* Form Container */
/*.wpcf7-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}*/

/* Styling for MC4WP form */
.mc4wp-form {
    max-width: 400px; /* Adjust width as needed */
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

.mc4wp-form .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.mc4wp-form label {
    font-weight: bold;
    margin-bottom: 5px;
}

.mc4wp-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.mc4wp-submit {
    width: 100%;
    padding: 12px;
    background-color: #0073e6;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.mc4wp-submit:hover {
    background-color: #005bb5;
}


/* Validation Error Messages */
.wpcf7-not-valid {
    border-color: #e74c3c;
}

.wpcf7-validation-errors {
    color: #e74c3c;
    background-color: #fdecea;
    padding: 10px;
    border: 1px solid #e74c3c;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* Landing Page Input and Textarea Fields */
.custom-input,
.custom-textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.custom-textarea {
    height: 150px; /* Taller textarea */
}

/* Landing Page Submit Button */
.custom-submit {
    display: inline-block;
    background-color: #3498db;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
}

.custom-submit:hover {
    background-color: #2980b9;
}

/* Success Messages */
.wpcf7-mail-sent-ok {
    color: #27ae60;
    background-color: #ecf9f1;
    padding: 10px;
    border: 1px solid #2ecc71;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* Top Nav Bar */
.primary-navigation {
    float: right !important;
}


.uagb-cta__buttons {
    width: 200px !important;
}

.hover-effect img {
    transition: transform 0.3s ease-in-out;
}

.hover-effect img:hover {
    transform: scale(1.05); /* Slight zoom effect */
}

.shadow-effect img {
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2); /* Adds a soft shadow */
    border-radius: 10px; /* Optional: makes corners rounded */
}

.uagb-image-heading {
	background: rgba(0, 0, 0, 0.5); /* Black with 50% opacity */
    display: inline-block; /* Ensures the background only covers the text */
    padding: 5px 10px; /* Adds some space around the text */
    border-radius: 5px; 
}

@media (max-width: 600px) {
	.uagb-image-heading {
		font-size: 18px;
	}
}	

/* Style the MC4WP form */
.notice-text {
    font-size: 14px !important; 
    color: #666 !important; 
    font-style: italic !important;  
    line-height: 1.5 !important;  
    margin-bottom: 10px !important;
}

/* Submit button */
.custom-submit-btn {
    background-color: #0073aa !important; 
    color: #ffffff !important;  
    font-size: 16px !important; 
    font-weight: bold !important; 
    padding: 12px 24px !important; 
    border-radius: 5px !important; 
    border: none !important; 
    transition: background-color 0.3s ease, transform 0.2s ease !important; 
}

/* Submit button - Hover effect */
.custom-submit-btn:hover {
    background-color: #005f8d !important; 
    transform: scale(1.05) !important; 
}

/* Submit button - Make button full width on small screens */
@media (max-width: 600px) {
    .custom-submit-btn {
        width: 100% !important; 
        text-align: center !important; 
    }
}

/* MC4WP Form Container */
.mc4wp-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Top-level menu links */
.main-navigation ul.menu > li > a {
    display: block;
    padding: 14px 20px;
    color: #2c2c2c;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Hover effect for top-level items */
.main-navigation ul.menu > li > a:hover,
.main-navigation ul.menu > li.current-menu-item > a {
    color: #b03060; 
    #border-bottom: 2px solid #b03060;
}

/* Dropdown container */
.main-navigation ul.sub-menu {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 0;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

/* Dropdown menu items */
.main-navigation ul.sub-menu li a {
    padding: 12px 20px;
    font-size: 14px;
    color: #333;
    font-weight: 400;
    display: block;
    transition: background 0.3s ease;
}

/* Dropdown hover */
.main-navigation ul.sub-menu li a:hover {
    background-color: #f8f8f8;
    color: #b03060;
}

/* Make dropdown items align neatly */
.main-navigation ul.sub-menu li {
    border-bottom: 1px solid #eee;
}

.main-navigation ul.sub-menu li:last-child {
    border-bottom: none;
}

.main-navigation ul.menu > li > a {
    position: relative;
}


/* Remove click/active border from menu items */
.main-navigation a:focus,
.main-navigation a:active {
    outline: none;
    box-shadow: none;
}

/* Remove focus/active outline from the logo */
.site-branding a:focus,
.site-branding a:active,
.custom-logo-link:focus,
.custom-logo-link:active {
    outline: none;
    box-shadow: none;
    border: none;
}

/* Add a background image to a few pages and add a white background that is transparent to slightly hide it*/
/*.site {
  background-color: rgba(255, 255, 255, 0.30);
  position: relative;
  z-index: 1;
}*/

body.page-id-960,
body.page-id-9,
body.page-id-16,
body.page-id-1046,
body.page-id-1119,
body.page-id-1894 {
  background-image: url('https://charityforum.novacroft.com/wp-content/uploads/2025/05/CharityForumBackground-1.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
/* Background image on the newletter landing page */
body.page-id-815 {
  background-image: url('https://charityforum.novacroft.com/wp-content/uploads/2025/05/CharityForumBackground-1.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Hide the default page titles */
.page .entry-title {
  display: none;
}

/* Makes the whole header transparent */
/*.site-header {
  background: transparent;
  position: relative;
  z-index: 10;
}*/

/* Makes the whole header semi-transparent */
/*.site-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(5px);
}*/

/*.site-header {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.6) 70%,
    rgba(255, 255, 255, 0.0) 100%
  );
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px); 
  position: relative;
  z-index: 10;
}*/

.site-header {
	padding-top: 10px;
	padding-bottom: 10px;
}

.site-header .site-navigation, 
.site-header .site-logo,
.site-header nav {
	margin: 0;
	padding: 0;
	line-height: 1.2;
	height: auto;
}

.custom-logo-link {
	padding-top: 20px;
}

/* FOOTER */

/* Makes the footer semi-transparent */
/*.site-footer {
  background: rgba(255, 255, 255, 0.85); 
  backdrop-filter: blur(5px); 
  -webkit-backdrop-filter: blur(5px); 
  position: relative;
  z-index: 10;
}*/

/* Base style for normal footer links */
.site-footer a:not(.wp-block-social-link-anchor) {
  text-decoration: none !important;
  color: #000000;
  position: relative;
  transition: color 0.3s ease;
}

/* Hover underline effect for normal links */
.site-footer a:not(.wp-block-social-link-anchor)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background-color: #000000;
  transition: width 0.3s ease;
}

.site-footer a:not(.wp-block-social-link-anchor):hover::after {
  width: 100%;
}

/* This is the main content container on each page. */
.wp-block-uagb-container {
	padding: 10px 50px 10px 50px !important;
}

/********** This is the container user by the custom HTML widgets **********/
.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

/********** Info Flip Cards **********/
.flip-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1rem;
}

.flip-card {
  background: transparent;
  perspective: 1000px;
  width: 100%;
  height: 300px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  gap: 0.5rem;
}

.flip-card:nth-child(3n+1) .flip-card-front {
  background-color: #FFF5B0;
}

.flip-card:nth-child(3n+2) .flip-card-front {
  background-color: #D9EDF7;
}

.flip-card:nth-child(3n+3) .flip-card-front {
  background-color: #F4F4F4;
}


.flip-card-back {
  background-color: #f9f9f9;
  transform: rotateY(180deg);
}

.flip-link {
  display: inline-block;
  margin-top: 1rem;
  color: #78BCDB; 
  font-weight: bold;
  text-decoration: none;
  transition: color 0.2s ease;
}

.flip-link:hover {
  color: #525251; 
  text-decoration: underline;
}


.card-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 0.5rem;
  filter: brightness(0); /* makes it full black even if tinted */
}

@media (max-width: 768px) {
  .flip-card {
    height: 360px;
  }
  .flip-card-grid {
    grid-template-columns: 1fr;
  }
	.card-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 0.25rem;
  }

  .flip-card-front,
  .flip-card-back {
    padding: 1rem;
    font-size: 0.95rem;
  }
}


/********** Custom Image Grid **********/
.image-grid-wrapper {
  max-width: 1200px; 
  margin: 0 auto;
  padding: 0 1rem;
}

.image-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6rem;
  justify-content: center;
}

.image-card {
  position: relative;
  width: 100%;
  max-width: 300px;
  text-decoration: none;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); 
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.image-text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  text-align: center;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(3px);
}

.image-card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.image-card:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .image-grid {
    flex-direction: column;
    align-items: center;
  }

  .image-text {
    font-size: 1rem;
    padding: 0.5rem;
  }
}

/********** Split Box **********/
.split-box {
  display: flex;
  flex-direction: row;  /* default: image left, text right */
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin: 1.5rem 0;
  background-color: rgba(120, 188, 219, 0.1); /* soft blue tint */
}

.split-box.reverse {
  flex-direction: row-reverse; /* text left, image right */
}

.split-box .split-image,
.split-box .split-text {
  flex: 1 1 50%;
  padding: 1rem;
  box-sizing: border-box;
}

/* Make sure image behaves */
.split-box .split-image img {
  width: 75%;
  height: auto;
  display: block;
  margin: 0 auto; 
  border-radius: 8px;
}


/* Text alignment and safety */
.split-box .split-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #111;
  text-align: left;
  border-radius: 8px;
  padding: 2rem;
}

@media (max-width: 768px) {
	.content-wrapper {
		padding: 0;
		max-width: none;
	}
  .split-box,
  .split-box.reverse {
    flex-direction: column;
  }

  .split-box .split-image,
  .split-box .split-text {
    flex: 1 1 100%;
    width: 100%;
    min-width: 100%;
    padding: 1rem;
    text-align: center;
    align-items: center;
	background-color: rgba(120, 188, 219, 0.1);
  }
}

/****** Testimonial Slider ******/
.testimonial-slider {
  max-width: 1200px; 
  margin: 2rem auto;
  overflow: hidden;
  border-radius: 12px;
  background-color: rgba(120, 188, 219, 0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 1rem;
}

.testimonial-track {
  display: flex;
  transform: translateX(0);
  transition: transform 0.6s ease-in-out;
}

.testimonial {
  flex: 0 0 100%;
  padding: 2rem;
  text-align: center;
  box-sizing: border-box;
}

.testimonial p {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial h4 {
  color: #444;
  font-weight: normal;
}

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


/********** Generic Classes for Font Size etc. **********/
.text-bold {
  font-weight: bold;
}

.text-italic {
  font-style: italic;
}

.text-light {
  font-weight: 300;
}

.text-medium {
  font-weight: 500;
}

.text-heavy {
  font-weight: 700;
}

.font-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #525251;
}

.font-body {
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  color: #333;
}

.text-yellow {
  color: #F7DB3B;
}

.text-blue {
  color: #0D28F2;
}

.text-cf-blue {
	color: #78BCDB;
}

.text-muted {
  color: #777;
}

.text-large {
  font-size: 1.25rem;
}

.text-small {
  font-size: 0.875rem;
}

.no-bottom-margin {
	margin-bottom: 0px;
}

.no-top-margin {
	margin-top: 0px;
}

/********** News Card with Read More Link **********/

.news-card {
    max-width: 1200px;
    margin: 1.5rem auto;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    background-color: rgba(120, 188, 219, 0.1);
    overflow: hidden;
  }

  .news-text {
    padding: 2rem 2rem 2rem 2rem;
    color: #111;
    text-align: left;
    box-sizing: border-box;
  }

  .news-excerpt {
    margin-bottom: 1.5rem;
  }
  .read-more-btn {
    margin-bottom: 2rem;
  }

  .news-title {
    margin: 0 0 2rem; 
    font-size: 1.5rem;
    color: #222;
  }

  .news-excerpt {
    line-height: 1.5;
    color: #444;
  }

 .read-more-btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: #78BCD9;
  color: #fff;
  text-decoration: none !important;
  border-radius: 4px;
  font-size: 0.95rem;
  transition: background-color 0.2s ease;
}

.read-more-btn:hover {
  background-color: #5AA0B0;
  text-decoration: none;     
}


  @media (max-width: 768px) {
    .news-text {
      padding: 1rem;
      text-align: center;
    }
    /* on mobile, reset left margins so everything stays centered */
    .news-title,
    .news-excerpt,
    .read-more-btn {
      margin-left: 0;
    }
    .read-more-btn {
      margin-bottom: 1.5rem;
    }
  }