/*!
Theme Name: AFI
Theme URI: https://them.es/starter
Author: OLST Digital
Author URI: https://them.es/
Description: 
Version: 3.6.0
Requires at least: 5.0
Tested up to: 6.8
Requires PHP: 7.2
License: GPL version 2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0
Tags: custom-background, custom-colors, featured-images, flexible-header, microformats, post-formats, rtl-language-support, theme-options, translation-ready, accessibility-ready
Text Domain: afi
*/

/* Don't overwrite this file. Compile "/assets/main.scss" to "/build/main.css" */

/* From http://codex.wordpress.org/CSS */

.alignnone {
	margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
	display: block;
	margin: 5px auto 5px auto;
}

.alignright {
	float: right;
	margin: 5px 0 20px 20px;
}

.alignleft {
	float: left;
	margin: 5px 20px 20px 0;
}

a img.alignright {
	float: right;
	margin: 5px 0 20px 20px;
}

a img.alignnone {
	margin: 5px 20px 20px 0;
}

a img.alignleft {
	float: left;
	margin: 5px 20px 20px 0;
}

a img.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption {
	max-width: 96%; /* Image does not overflow the content area */
	padding: 5px 3px 10px;
	text-align: center;
}
.wp-caption.alignnone {
	margin: 5px 20px 20px 0;
}
.wp-caption.alignleft {
	margin: 5px 20px 20px 0;
}
.wp-caption.alignright {
	margin: 5px 0 20px 20px;
}
.wp-caption img {
	border: 0 none;
	height: auto;
	margin: 0;
	max-width: 98.5%;
	padding: 0;
	width: auto;
}
.wp-caption p.wp-caption-text {
	font-size: 11px;
	line-height: 17px;
	margin: 0;
	padding: 0 4px 5px;
}

.gallery-item {
	display: inline-block;
	text-align: left;
	vertical-align: top;
	width: 50%;
}

.gallery-item a,
.gallery-item a:hover,
.gallery-item a:focus {
	-webkit-box-shadow: none;
	box-shadow: none;
	background: none;
	display: inline-block;
	max-width: 100%;
}

.gallery-item a img {
	display: block;
	-webkit-transition: -webkit-filter 0.2s ease-in;
	transition: -webkit-filter 0.2s ease-in;
	transition: filter 0.2s ease-in;
	transition: filter 0.2s ease-in, -webkit-filter 0.2s ease-in;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.gallery-item a:hover img,
.gallery-item a:focus img {
	-webkit-filter: opacity(60%);
	filter: opacity(60%);
}

.gallery-caption {
	display: block;
	text-align: left;
	padding: 0 10px 0 0;
	margin-bottom: 0;
}

.gallery-columns-1 .gallery-item {
	max-width: 100%;
}

.gallery-columns-2 .gallery-item {
	max-width: 50%;
}

.gallery-columns-3 .gallery-item {
	max-width: 33%;
}

.gallery-columns-4 .gallery-item {
	max-width: 25%;
}

.gallery-columns-5 .gallery-item {
	max-width: 20%;
}

.gallery-columns-6 .gallery-item {
	max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
	max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
	max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
	max-width: 11.11%;
}

.gallery-columns-6 .gallery-caption,
.gallery-columns-7 .gallery-caption,
.gallery-columns-8 .gallery-caption,
.gallery-columns-9 .gallery-caption {
	display: none;
}

.bypostauthor {
	font-weight: bold;
}

/* Text meant only for screen readers. */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-size: 0.875rem;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000; /* Above WP toolbar. */
}

/* =======================
   ChatGPT Code to stop single post he and h4 being so bold
========================== */
.single-post .entry-content {
  font-family: "Poppins", sans-serif;
}

.single-post .entry-content h3,
.single-post .entry-content h4 {
  font-weight: normal !important;
}

/* Style all H3s inside post content */
.single-post .entry-content h3 {
  font-family: "Poppins", sans-serif;
  font-weight: normal;
  font-size: 1.5rem;
  color: #005c3a;
  margin: 1.5em 0 0.75em;

  border-bottom: 8px solid #3A8544;
  padding-bottom: 10px;
  margin-bottom: 25px;
}

h2.wp-block-heading { font-weight: 400 !important; margin-bottom: 2rem !important; margin-top: 2rem !important; }

.entry-content p { margin-bottom: 2rem;
    margin-top: 1rem; }


/* =======================
   ChatGPT Code CSC Cards
========================== */

.membership-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.membership-cards .card {
  padding: 2rem;
  border-radius: 8px;
  color: #212121;
}

.membership-cards .card h3 {
  margin-top: 0;
  font-size: 1.5rem;
  font-weight: normal;
}

.membership-cards ul {
  margin: 0;
  padding-left: 1.2rem;
}

.membership-cards li {
  margin-bottom: 2px !important;
  font-size: .8rem !important;
}

.membership-cards li:before {
 height: 10px !important;
 width: 10px !important;
 border-radius: 15px !important;
 background-color: #fff !important;
}

/* Background colours */
.card-general {
  background: #fed939 !important;
}

.card-commercial {
  background: #ffb03a !important;
}

.card-major {
  background: #f3989b !important;
  color: #fff;
}

.card-specialist {
  background: #789bdd !important;
  color: #fff;
}

.cas-box {
  margin: 2rem auto;
  width: 80%;
  text-align: center;
}

.cas-box .btn {
  display: inline-block;
  margin: 0.5rem;
}
.latest-news-section {
  background: #f5f5f5;
  padding: 3rem 0;
  text-align: center;
}

.latest-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.news-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  text-align: left;
}

.news-image {
  height: 200px; /* fixed height */
  background-size: cover;
  background-position: center;
}

.news-content {
  padding: 1.5rem;
}

.news-title {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.news-excerpt {
  margin-bottom: 1rem;
  color: #555;
}

.view-all-news {
  margin-top: 2rem;
}

.view-all-news a {
  font-weight: bold;
  color: #3A8544;
  text-decoration: none;
}

.view-all-news a:hover {
  text-decoration: underline;
}

.view-all-news {
  margin-top: 2rem;
  text-align: center; /* centres the link */
}

.view-all-news a {
  font-weight: bold;
  color: #3A8544;
  text-decoration: none;
}

.view-all-news a:hover {
  text-decoration: underline;
}
.news-title a {
  text-decoration: none;
border-bottom: none !important;
}

.news-title a:hover {
  text-decoration: underline; /* optional: underline only on hover */
}

.map-container iframe {
  width: 900px;     /* fills parent width */
  height: 450px;   /* fixed height */
  border: 0;
  display: block;
}

/* Target common breadcrumb wrappers; adjust if your site uses a different wrapper class */
.breadcrumbs li:nth-child(2) a,
.breadcrumb li:nth-child(2) a,
.breadcrumb-trail li:nth-child(2) a,
.trail li:nth-child(2) a,
.bcn_breadcrumbs li:nth-child(2) a {
  pointer-events: none;
  cursor: default;
  color: inherit;
  text-decoration: none;
}

/* Ensure hover won't show underline */
.breadcrumbs li:nth-child(2) a:hover,
.breadcrumb li:nth-child(2) a:hover,
.breadcrumb-trail li:nth-child(2) a:hover,
.trail li:nth-child(2) a:hover,
.bcn_breadcrumbs li:nth-child(2) a:hover {
  text-decoration: none;
}


.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe,
.video-wrapper object,
.video-wrapper embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* Blockquote component */
.afi-quote {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  max-width: 880px;
  margin: 1.5rem auto;
  padding: 0 1rem;
  color: #222;
}

.afi-quote blockquote {
  position: relative;
  background: #f7faf7;               /* very light green tint */
  border-left: 8px solid #3A8544;    /* AFI brand green */
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  margin: 0;
  overflow: hidden;
}

/* Large decorative quote mark */
.afi-quote blockquote::before {
  content: "“";
  position: absolute;
  left: 14px;
  top: 6px;
  font-size: 4.25rem;
  line-height: 1;
  color: rgba(58,133,68,0.12); /* soft translucent accent */
  font-weight: 600;
  font-family: "Poppins", serif;
  pointer-events: none;
}

/* Quote text */
.afi-quote blockquote p {
  margin: 0;
  font-size: 1.125rem; /* ~18px */
  line-height: 1.55;
  color: #1e2933;
  font-weight: 400;
}

/* Citation */
.afi-quote figcaption {
  margin-top: 0.75rem;
  text-align: right;
  font-size: 0.95rem;
  color: #55606a;
  font-weight: 600;
}

/* Slightly tighter style on small screens */
@media (max-width: 480px) {
  .afi-quote blockquote::before {
    font-size: 3rem;
    left: 10px;
    top: 4px;
  }
  .afi-quote blockquote {
    padding: 1rem;
  }
  .afi-quote blockquote p {
    font-size: 1rem;
  }
}

.featured-events .card {
  border-radius: 10px;
  overflow: hidden;
}

.featured-events .event-image {
  background-size: cover;
  background-position: center;
  height: 220px;
  width: 100%;
}

.featured-events h2 {
  border-bottom: 6px solid #3A8544;
  display: inline-block;
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
}

.featured-events .card-title {
  font-weight: 600;
}

.featured-events .card {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  text-align: center;
}

.featured-events .event-image-top {
  max-width: 350px;
  width: 100%;
  height: auto;
  object-fit: contain; /* Ensures full image shows */
}

.featured-events .card-title {
  font-weight: 600;
}

.featured-events .btn.btn-primary {
  background-color: #3A8544;
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 50px;
  padding: 10px 25px;
  text-transform: uppercase;
  transition: all 0.2s ease-in-out;
  display: inline-block;
  width: auto; /* prevents full width */
}

.featured-events .btn.btn-primary:hover {
  background-color: #2e6b35;
  transform: translateY(-2px);
}

.women-in-fencing .fencing-card {
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.women-in-fencing .fencing-image {
  width: 100%;
  max-width: 250px; /* keeps it nicely sized */
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.women-in-fencing h3 {
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 10px;
}

.women-in-fencing p {
  margin-bottom: 0;
}

.responsive-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio — change if needed */
  height: 0;
  overflow: hidden;
  border-radius: 12px; /* optional: rounded corners */
}

.responsive-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.fisscard-section {
    color: #212121;
}

.fisscard-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fisscard-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.fisscard-item h3 {
    font-weight: 600;
    color: #3A8544;
}

.fisscard-item h4 {
    font-weight: 600;
    color: #3A8544;
}


