/*
Theme Name: Health Tax Alliance
Description: Custom WordPress theme for Health Tax Alliance website
Version: 1.0
Author: Your Name
*/

/* Open Sans Font Family */
@font-face {
  font-family: "Open Sans";
  src: url("./fonts/OpenSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("./fonts/OpenSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("./fonts/OpenSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
/* Body text uses Open Sans Regular */
body {
  font-family: "Open Sans", Arial, sans-serif !important;
  font-weight: 400;
}

/* Headlines use Open Sans Bold */
h1,
h2 {
  font-family: "Open Sans", Arial, sans-serif !important;
  font-weight: 700 !important;
}

/* Subheadings use Open Sans SemiBold */
h3,
h4,
h5,
h6 {
  font-family: "Open Sans", Arial, sans-serif !important;
  font-weight: 600 !important;
}

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

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background: white;
  padding: 1rem 0;
  border-bottom: 2px solid #016678;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1000;
}

.header-container {
  max-width: calc(1242px + 2rem);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo .logo-img {
  height: 75px;
  width: auto;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}

.main-nav a {
  color: #016678;
  text-decoration: none;
  font-weight: 500;
}

.main-nav a:hover {
  color: #eab520;
}

.main-nav a.active {
  color: #eab520;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 4px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: #016678;
  transition: all 0.3s ease;
  display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 2px solid #016678;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 999;
  }

  .main-nav.active {
    max-height: 500px;
    overflow: visible;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
  }

  .main-nav li {
    width: 100%;
    border-bottom: 1px solid #e0e0e0;
  }

  .main-nav li:last-child {
    border-bottom: none;
  }

  .main-nav a {
    display: block;
    padding: 1rem;
    text-align: left;
  }

  .header-container {
    position: relative;
  }

  .logo .logo-img {
    height: 60px;
  }

  /* Tab Navigation Mobile Styles */
  .tab-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    justify-content: flex-start;
    padding: 0 1rem;
    gap: 0;
  }

  .tab-nav::-webkit-scrollbar {
    height: 4px;
  }

  .tab-nav::-webkit-scrollbar-track {
    background: #f1f1f1;
  }

  .tab-nav::-webkit-scrollbar-thumb {
    background: #016678;
    border-radius: 2px;
  }

  .tab-btn {
    white-space: nowrap;
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    min-width: fit-content;
  }

  .media-tabs,
  .resources-tabs {
    margin-bottom: 2rem;
  }

  .media-tabs .tab-nav,
  .resources-tabs .tab-nav {
    padding: 0 1rem;
  }
}

.container {
	max-width: calc(1242px + 2rem);
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-section {
  padding: 4rem 0;
  text-align: center;
}

.hero-subtitle {
  color: #016678;
  font-size: 0.9rem;
  font-weight: bold;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.hero-title {
  font-size: 2.5rem;
  color: #016678;
  font-weight: normal;
  line-height: 1.4;
  margin-bottom: 2rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.read-more-btn {
  background: #016678;
  color: white;
  padding: 0.8rem 2rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.read-more-btn:hover {
  background: #eab520;
}

.cards-section {
  padding: 4rem 0;
  background-color: #016678;
  border-top: 1px solid #e0e0e0;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  border: 2px solid #016678;
  text-align: center;
}

.card h3 {
  color: #016678;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.card p {
  margin-bottom: 1.5rem;
  color: #016678;
  line-height: 1.6;
}

.card-link {
  color: #016678;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.3s ease;
}

.partners-section {
  padding: 3rem 0;
  background: white;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.partners-section h2 {
  text-align: center;
  color: #016678;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.partners-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.carousel-container {
  overflow: hidden;
  width: 600px;
}

.partners-logos {
  display: flex;
  transition: transform 0.8s ease;
}

.logo-slide {
  display: flex;
  gap: 4rem;
  align-items: center;
  min-width: 600px;
  justify-content: center;
}

.partners-logos img {
  height: 80px;
  width: auto;
  object-fit: contain;
}

.carousel-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: #016678;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.3s ease;
}

.carousel-btn:hover {
  background: none;
  color: #eab520;
}

.posts-pagination-wrapper {
  position: relative;
}

.posts-navigation {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  align-items: center;
}

.posts-nav-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: #016678;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.3s ease;
}

.posts-nav-btn:hover {
/*   background: none; */
  color: #eab520;
	transform: scale(1.1);
}

.posts-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
}

.dot.active {
  background: #016678;
}

.contact-section {
  padding: 3rem 0;
  text-align: center;
  background: white;
}

.contact-section h2 {
  color: #016678;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-section p {
  color: #016678;
  margin-bottom: 2rem;
}

.contact-btn {
  background: #016678;
  color: white;
  padding: 0.8rem 2rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.contact-btn:hover {
  background: #eab520;
}

.site-footer {
  background: #efb41b;
  padding: 1rem 0;
  color: #fff;
  text-align: center;
  box-shadow: 0 -6px 12px rgba(0, 0, 0, 0.2);
  border-top: 2px solid #016678;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.social-link {
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: #016678;
}

.social-icon {
  width: 30px;
  height: 30px;
  border-radius: 0;
  background: #fff;
  color: #016678;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
  background: #eab520 !important;
  color: #fff !important;
}

.site-footer .social-icon:hover {
  background: #016678;
  color: #ffffff;
}

.footer-info p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.footer-link {
  color: #fff;
  text-decoration: underline;
}

.footer-link:hover {
  color: #016678;
  margin-bottom: 1rem;
}

.social-link {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
}

.social-link:hover {
  color: #016678;
}

.copyright {
  margin: 1rem 0;
  font-size: 0.9rem;
}

.footer-info {
  font-size: 0.9rem;
  line-height: 1.4;
}

.footer-info a {
  color: #fff;
  text-decoration: none;
}

.footer-info p {
  color: #fff;
}

.page-content {
  padding: 1rem 0;
  flex: 1;
}

.page-content h1 {
  color: #016678;
  font-size: 2.5rem;
  margin-bottom: 5rem;
}

.media-tabs {
  border-bottom: 2px solid #016678;
  margin-bottom: 3rem;
}

.tab-nav {
  display: flex;
  justify-content: center;
  gap: 0;
}

.tab-btn {
  background: none;
  border: none;
  padding: 1rem 2rem;
  cursor: pointer;
  color: #666;
  font-size: 1rem;
  border-bottom: 3px solid transparent;
  font-family: "Recoleta", Arial, sans-serif;
}

.tab-btn.active {
  color: #eab520;
  border-bottom-color: #eab520;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-content h2 {
  color: #016678;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.interviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.interview-item {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

.interview-item h3 {
  color: #016678;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.interview-item h3 a {
  color: #016678;
  text-decoration: none;
}

.interview-item h3 a:hover {
  text-decoration: underline;
}

.interview-item p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 0;
}

.interview-excerpt {
  display: block;
}

.interview-full-content {
  display: none;
}

.expand-btn {
  background: #016678;
  color: white;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 1rem;
  transition: background-color 0.3s ease;
}

.expand-btn:hover {
  background: #eab520;
}

.interview-item.expanded .interview-excerpt,
.resource-item.expanded .interview-excerpt {
  display: none;
}

.interview-item.expanded .interview-full-content,
.resource-item.expanded .interview-full-content {
  display: block;
}

.press-statement-item {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 600px;
}

.press-statement-item.file-only-tile {
  min-height: auto;
  padding: 1.25rem 1.5rem;
}

.press-statement-item.file-only-tile h3 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.press-statement-item.file-only-tile .download-buttons {
  margin-top: 0;
  padding-top: 0;
}

.press-statement-item h3 {
  color: #016678;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.press-content {
  height: 400px;
  max-height: 400px;
  overflow-y: auto;
  flex-grow: 0;
  flex-shrink: 0;
  margin-bottom: 0;
}

.press-content iframe,
.press-content embed,
.press-content object {
  max-height: 380px;
  width: 100%;
}

.download-buttons {
  margin-top: auto;
  padding-top: 1.5rem;
  flex-shrink: 0;
  min-height: 60px;
  display: flex;
  align-items: flex-end;
}

.press-content a[href*="download"],
.press-content a[href*=".pdf"] {
  background: #eab520;
  color: white;
  padding: 0.8rem 2rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  display: inline-block;
  margin-top: 1rem;
}

.press-content a[href*="download"]:first-of-type,
.press-content a[href*=".pdf"]:first-of-type {
  display: none;
}

.about-hero {
  text-align: center;
  padding: 2rem 0 4rem 0;
}

.about-hero h1 {
  color: #016678;
  font-size: 2.5rem;
  font-weight: normal;
  line-height: 1.4;
  max-width: 1000px;
  margin: 0 auto;
}

.about-sections {
  max-width: 800px;
  margin: 0 auto;
}

.about-section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #ddd;
}

.about-section h2 {
  color: #016678;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.about-section p {
  color: #666;
  line-height: 1.6;
  font-size: 1.1rem;
}

.about-section ul {
  list-style: none;
  padding: 0;
}

.about-section li {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.about-section li:before {
  content: "•";
  color: #016678;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* About page block-editor driven content */
.about-page-wrapper {
  padding: 3rem 0 4rem;
}

.about-page-content {
  max-width: 800px;
  margin: 0 auto;
  color: #333;
  line-height: 1.6;
}

.about-page-content h1 {
  color: #016678;
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.3;
  text-align: center;
  margin: 0 auto 3rem;
  max-width: 1000px;
}

.about-page-content h2 {
  color: #016678;
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
}

.about-page-content h3 {
  color: #016678;
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.about-page-content p {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 0 1rem;
}

.about-page-content ul,
.about-page-content ol {
  color: #666;
  font-size: 1.1rem;
  margin: 0 0 1.5rem 1.25rem;
}

.about-page-content ul li,
.about-page-content ol li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.about-page-content a {
  color: #016678;
  text-decoration: underline;
}

.about-page-content a:hover {
  color: #eab520;
}

.about-page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1rem 0;
}

.about-page-content blockquote {
  border-left: 4px solid #016678;
  padding: 0.5rem 1.25rem;
  margin: 1.5rem 0;
  color: #016678;
  font-style: italic;
}

.resources-tabs {
  border-bottom: 2px solid #016678;
  margin-bottom: 3rem;
}

.resources-tabs .tab-nav {
  display: flex;
  justify-content: center;
  gap: 0;
}

.resources-tabs .tab-btn {
  background: none;
  border: none;
  padding: 1rem 2rem;
  cursor: pointer;
  color: #666;
  font-size: 1rem;
  border-bottom: 3px solid transparent;
  font-family: "Recoleta", Arial, sans-serif;
}

.resources-tabs .tab-btn.active {
  color: #eab520;
  border-bottom-color: #eab520;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-content: start;
  gap: 2rem;
}

@media (max-width: 900px) {
  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .resources-grid {
    grid-template-columns: 1fr;
  }
}

.resource-item {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
	box-shadow: 2px 2px 6px 0px #00000040;
}

.resource-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f1f1f1;
}

.resource-image img,
.resource-image svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.resource-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.resource-content h3 {
  color: #016678;
  font-size: 1.2rem;
  line-height: 1.4;
  margin: 0;
}

.resource-content h3 a {
  color: #016678;
  text-decoration: none;
}

.resource-content h3 a:hover {
  text-decoration: underline;
}

.resource-btn {
  display: inline-block;
  background: #016678;
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.25s ease;
  align-self: flex-start;
  margin-top: auto;
}

.resource-btn:hover,
.resource-btn:focus-visible {
  background: #eab520;
  color: #fff;
  outline: none;
}

.resource-item .download-buttons {
  padding: 0 1.5rem 1.5rem;
  margin-top: auto;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info .info-section {
  margin-bottom: 2rem;
}

.contact-info h3 {
  color: #016678;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.contact-info p {
  color: #016678;
  line-height: 1.6;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.social-icons .social-icon:hover {
  background: #eab520 !important;
}

.social-icon.linkedin {
  background: #0077b5;
}
.social-icon.facebook {
  background: #1877f2;
}
.social-icon.twitter {
  background: #000;
}

.contact-form {
  border: 2px solid #016678;
  padding: 2rem;
  border-radius: 8px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  color: #016678;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.submit-btn {
  background: #016678;
  color: white;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background: #eab520;
}

.contact-message {
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
  font-weight: 500;
}

.contact-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.contact-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
/* Download button styling to match site buttons */
.download-buttons .wp-block-file__button {
  background: #016678 !important;
  color: white !important;
  padding: 0.8rem 2rem !important;
  text-decoration: none !important;
  border-radius: 4px !important;
  font-weight: 500 !important;
  border: none !important;
  display: inline-block !important;
  transition: background-color 0.3s ease !important;
}

.download-buttons .wp-block-file__button:hover {
  background: #eab520 !important;
}

.download-buttons {
  margin-top: 20px;
}

.hero-subtitle {
  color: #eab520;
}

.card-link:hover,
.card-link:focus-visible {
  color: #efb41b;
}

.contact-page h1 {
  color: #016678;
}

.contact-page {
  margin-bottom: 4rem;
  margin-top: 4rem;
}

.contact-section p {
  color: #eab520;
}


/* Geometric hero: full-width image carousel */
.hero-section-geometric {
  position: relative;
  padding: 2rem 0;
  overflow: hidden;
  background: #fff;
}

.hero-carousel {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-carousel-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 2;
  overflow: hidden;
  background: #eab520;
  border-radius: 8px;
}

.hero-carousel-track {
  display: flex;
  height: 100%;
  width: calc(var(--hero-slides, 3) * 100%);
  transition: transform 0.65s ease;
}

.hero-carousel-slide {
  flex: 0 0 calc(100% / var(--hero-slides, 3));
  width: calc(100% / var(--hero-slides, 3));
  height: 100%;
  min-height: 0;
}

.hero-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hero-carousel-slide {
  position: relative;
}

.hero-slide-overlay {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 55%;
  padding: 2rem 2.5rem;
  color: #fff;
  background: linear-gradient(to top right, rgba(0, 0, 0, 0.55), transparent 70%);
  pointer-events: none;
}

.hero-slide-overlay > * {
  pointer-events: auto;
}

.hero-slide-overlay h2 {
  color: #fff;
  text-transform: uppercase;
  font-size: 1.75rem;
  line-height: 1.2;
  margin: 0 0 0.6rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hero-slide-overlay p {
  color: #fff;
  font-size: 1rem;
  line-height: 1.4;
  margin: 0 0 1rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-slide-cta {
  display: inline-block;
  background: #fff;
  color: #016678;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.hero-slide-cta:hover,
.hero-slide-cta:focus-visible {
  background: #eab520;
  color: #fff;
  outline: none;
}

.hero-carousel-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  padding: 1rem 0 0;
}

.hero-dot {
  width: 40px;
  height: 4px;
  background: rgba(1, 102, 120, 0.3);
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 2px;
  transition: background-color 0.3s ease;
}

.hero-dot:hover,
.hero-dot:focus-visible {
  background: rgba(1, 102, 120, 0.6);
  outline: none;
}

.hero-dot.active {
  background: #016678;
}

.hero-carousel-btn {
  position: absolute;
  top: auto;
  bottom: 1rem;
  transform: none;
  z-index: 2;
  background: rgba(1, 102, 120, 0.55);
  color: #fff;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.hero-carousel-btn:hover,
.hero-carousel-btn:focus-visible {
  background: #efb41b;
  color: #016678;
  outline: none;
}

.hero-carousel-btn-prev {
  left: auto;
  right: 3.5rem;
}

.hero-carousel-btn-next {
  right: 1rem;
}

@media (max-width: 768px) {
  .hero-carousel-viewport {
    aspect-ratio: 4 / 3;
  }

  .hero-carousel-btn {
    font-size: 1rem;
    padding: 0.25rem 0.55rem;
  }

  .hero-carousel-btn-prev {
    right: 3rem;
  }

  .hero-carousel-btn-next {
    right: 0.5rem;
  }

  .hero-slide-overlay {
    max-width: 100%;
    padding: 1rem 1.25rem;
  }

  .hero-slide-overlay h2 {
    font-size: 1.15rem;
  }

  .hero-slide-overlay p {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }
}


/* Gradient Hero Section */
.hero-section-gradient {
  position: relative;
  padding: 5rem 0;
  min-height: 550px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #016678 0%, #01a0b8 50%, #ffffff 100%);
  overflow: hidden;
}

.hero-section-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(234, 181, 32, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(1, 102, 120, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(1px);
}

.hero-section-gradient .container {
  position: relative;
  z-index: 2;
}

.hero-section-gradient .hero-subtitle {
  color: #eab520;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.hero-section-gradient .hero-title {
  font-size: 2rem;
  line-height: 1.4;
  color: #016678;
  margin-bottom: 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.5);
}

.hero-section-gradient .read-more-btn {
  display: inline-block;
  background: #016678;
  color: white;
  padding: 1rem 2.5rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(1, 102, 120, 0.3);
}

.hero-section-gradient .read-more-btn:hover {
  background: #eab520;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 181, 32, 0.4);
}

@media (max-width: 768px) {
  .hero-section-gradient {
    padding: 3rem 0;
    min-height: 450px;
  }
  
  .hero-section-gradient .hero-title {
    font-size: 1.5rem;
  }
}


/* Dark Mode Override - Force Light Theme */
@media (prefers-color-scheme: dark) {
  .hero-section-geometric {
    background: #fff;
    color-scheme: light;
  }
}

/* Media landing: featured hero tile */
.media-featured-section {
  margin-bottom: 2rem;
}

.post-tile-featured {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  min-height: 360px;
  background: #016678;
  padding: 0;
}

.post-tile-featured .resource-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.post-tile-featured .resource-image img,
.post-tile-featured .resource-image svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.post-tile-featured::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0) 80%);
  pointer-events: none;
}

.post-tile-featured .resource-content {
  position: relative;
  z-index: 2;
  margin-left: auto;
  max-width: 50%;
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 360px;
  gap: 1rem;
  color: #fff;
}

.post-tile-featured .resource-content h3 {
  color: #fff;
  font-size: 1.75rem;
  line-height: 1.25;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.post-tile-featured .resource-excerpt {
  color: #fff;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.post-tile-featured .resource-btn {
  align-self: flex-start;
  background: #fff;
  color: #016678;
  margin-top: 0;
}

.post-tile-featured .resource-btn:hover,
.post-tile-featured .resource-btn:focus-visible {
  background: #eab520;
  color: #fff;
}

@media (max-width: 768px) {
  .post-tile-featured {
    min-height: 280px;
  }
  .post-tile-featured::after {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0.15) 100%);
  }
  .post-tile-featured .resource-content {
    max-width: 100%;
    min-height: 280px;
    padding: 1.5rem;
    justify-content: flex-end;
  }
  .post-tile-featured .resource-content h3 {
    font-size: 1.3rem;
  }
}

/* Content landing: category filter nav (shared by /resources and /media) */
.content-filter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 2px solid #016678;
  margin-bottom: 2rem;
}

.content-filter-btn {
  background: none;
  border: none;
  padding: 1rem 2rem;
  cursor: pointer;
  color: #666;
  font-size: 1rem;
  border-bottom: 3px solid transparent;
  font-family: "Recoleta", Arial, sans-serif;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.content-filter-btn:hover {
  color: #016678;
}

.content-filter-btn.active {
  color: #eab520;
  border-bottom-color: #eab520;
}

@media (max-width: 768px) {
  .content-filter-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 0.5rem;
  }
  .content-filter-btn {
    white-space: nowrap;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
  }
}

/* Breadcrumb (shared) */
.breadcrumb {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: #016678;
}

.breadcrumb a {
  color: #016678;
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb a:hover {
  color: #eab520;
}

.breadcrumb-sep {
  margin: 0 0.4rem;
  color: #016678;
}

.breadcrumb-term {
  color: rgb(1, 102, 120);
  font-weight: 400;
}

/* Single post view */
.single-post-wrapper {
  padding: 2rem 0 4rem;
}

.single-post-back {
  margin: 0 0 1.25rem;
}

.single-post-back a {
  color: #016678;
  text-decoration: none;
  font-weight: 600;
}

.single-post-back a:hover {
  color: #eab520;
}

.single-post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.single-post-badge {
  background: #016678;
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.single-post-date {
  color: #666;
  font-size: 0.95rem;
}

.single-post-title {
  color: #016678;
  font-size: 2.25rem;
  line-height: 1.2;
  margin: 0 0 1.5rem;
}

.single-post-thumbnail {
  margin-bottom: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
}

.single-post-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.single-post-content {
  max-width: 800px;
  margin: 0 auto;
  color: #333;
  line-height: 1.7;
  font-size: 1.05rem;
}

.single-post-content h2 {
  color: #016678;
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}

.single-post-content h3 {
  color: #016678;
  font-size: 1.25rem;
  margin: 1.5rem 0 0.75rem;
}

.single-post-content p {
  margin: 0 0 1rem;
}

.single-post-content ul,
.single-post-content ol {
  margin: 0 0 1.5rem 1.25rem;
}

.single-post-content a {
  color: #016678;
  text-decoration: underline;
}

.single-post-content a:hover {
  color: #eab520;
}

.single-post-content img,
.single-post-content iframe,
.single-post-content video {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem 0;
}

.single-post-content audio,
.single-post-content .wp-block-audio audio {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 1rem 0;
}

.single-post-content .wp-block-audio {
  margin: 1rem 0;
}

.single-post-content iframe {
  aspect-ratio: 16 / 9;
  width: 100%;
}

.single-post-content blockquote {
  border-left: 4px solid #016678;
  padding: 0.5rem 1.25rem;
  margin: 1.5rem 0;
  color: #016678;
  font-style: italic;
}

.resource-excerpt {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}


/* Revamp CSS */
:root{
	--hta-green: #036679;
	--hta-yellow: #EDB51E;
}
.page_intro_section {
	padding: 25px 0;
}
.page_intro_section h1{
	font-weight: 800 !important;
	font-size: 62px;
	line-height: 100%;
	color: var(--hta-green);
	margin-bottom: 0!important;
}
.intro_wrapper{
	position: relative;
	display: grid;
	place-content: center;
	isolation: isolate;
	min-height: 346px;
	border-radius: 16px;
	overflow: hidden;
}
.intro_wrapper .bg_img_wrapper{
	position: absolute;
	inset: 0;
	z-index: -1;
}
.intro_wrapper .bg_img_wrapper .overlay,
.intro_wrapper.right_abs .bg_img_wrapper:after,
.intro_wrapper.left_abs .bg_img_wrapper:before{
	content: '';
	position: absolute;
	inset: 0;
	background: #fff;
	opacity: 0.75;
}
.intro_wrapper.right_abs .bg_img_wrapper:after,
.intro_wrapper.left_abs .bg_img_wrapper:before{
	background: unset;
	opacity: 1;
	background-image: url(http://healthtaxalliance.org.za/wp-content/uploads/2026/09/Yellow_hex_shapes.png);
	background-repeat: no-repeat;
	background-size: contain;
	background-position: left bottom;
	z-index: 1;
}
.intro_wrapper.right_abs .bg_img_wrapper:after{
	background-image: url(http://healthtaxalliance.org.za/wp-content/uploads/2026/09/Green_hex_shape.png);
		background-position: right bottom;
}
.intro_wrapper .bg_img_wrapper img{
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.after_banner_description {
    padding: 40px 50px;
    font-weight: 600;
    font-size: 25px;
    line-height: 1.3;
    text-align: center;
	color: var(--hta-green);
}
.hex_desc_section {
    min-height: 398px;
    align-content: center;
}
.bg_green{
	background-color: var(--hta-green);
}
.bg_yellow{
	background-color: var(--hta-yellow);
}
.right_hex, .left_hex{
	position: relative;
	isolation: isolate;
}
.right_hex:before,
.left_hex:before{
	content: '';
	position: absolute;
	inset: 0;
    background-image: url(http://healthtaxalliance.org.za/wp-content/uploads/2026/09/single-hex-1.png);
    background-size: contain;
    background-position: left center;
    background-repeat: no-repeat;
	z-index: -1;
}
.right_hex:before {
    transform: scaleX(-1);
}
.hex_desc_section .container {
    max-width: calc(568px + 2rem);
}
.hex_desc_section.left_hex{
	padding-left: 380px;
}
.hex_desc_section.left_hex .container{
	margin-left: 0;
}
.hex_desc_section.right_hex{
	padding-right: 380px;
}
.bg_green{
	color: #fff;
}
.hex_desc_section.bg_white{
	color: var(--hta-green);
}
.sec_heading{
	font-weight: 700;
	font-size: 35px;
	line-height: 36px;
	margin-bottom: 10px;
}
.hex_desc_section .sec_description {
    font-weight: 400;
    font-size: 18px;
    line-height: 1.3;
}
.do_how_sec {
    padding-block: 63px;
}
.do_how_wrap .sec_heading {
    padding-left: 70px;
}
.do_how_items {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    justify-content: center;
}
.dh_item {
    flex: 0 0 355px;
}
.yellow_hex_bg {
    background-image: url(http://healthtaxalliance.org.za/wp-content/uploads/2026/09/single-hex.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.dh_item .dh_item_title{
    text-align: center;
    font-weight: 400 !important;
    font-size: 18px;
    line-height: 1.1;
}
.dh_item .icon_wrapper {
    padding: 60px;
    width: 100%;
    aspect-ratio: 1;
    display: grid;
    place-content: center;
}
.dh_item .icon_wrapper img {
    height: 180px;
    width: 180px;
    object-fit: contain;
}
.archive_main_content {
    padding: 25px 0;
}
.archive_main_content .content-filter-nav {
    gap: 18px;
    border-bottom: 0;
    margin-bottom: 36px;
}
.archive_main_content .content-filter-nav button {
    padding: 5px 19px;
    font-weight: 400;
    font-size: 13px;
    line-height: 1 !important;
    background-color: var(--hta-green);
    color: #fff;
    border-radius: 100vw;
    font-family: 'Open Sans';
    border-bottom: 0;
}
.archive_main_content .content-filter-nav button.active{
	background-color: var(--hta-yellow);
}
.archive_main_content .posts-pagination-wrapper {
    border-top: 1px solid var(--hta-green, #036679);
    padding-top: 48px;
}
p.article_exerpt {
    font-size: 16px;
    line-height: 1.4;
}
.archive_main_content .resource-btn {
    padding: 4px 14px;
    border-radius: 100vw;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.2;
}
.archive_main_content .posts-nav-btn {
    font-size: 0;
    transition: 0.3s transform ease-in-out;
}
.archive_main_content .posts-navigation{
	gap: 15px;
}
.archive_main_content .page-number {
    border: none;
    background: none;
    font-weight: 700;
    font-size: 13px;
    line-height: 100%;
    text-align: center;
    color: var(--hta-green);
}
.archive_main_content .page-number.active {
    border-bottom: 1px solid var(--hta-yellow);
}
.archive_main_content .media-featured-section .resource-image {
    aspect-ratio: unset;
    max-height: 395px;
    height: 400px;
}
@media(max-width: 1024px){
	.page_intro_section h1 {
		font-size: 48px;
	}
	.after_banner_description {
		padding: 40px 20px;
		font-size: 22px;
	}
	.right_hex:before, .left_hex:before{
		background-position: -120px center;
	}
	.hex_desc_section.left_hex {
		padding-left: 240px;
	}
	.hex_desc_section.right_hex {
		padding-right: 240px;
	}
	.sec_heading {
		font-size: 30px;
	}
	.do_how_wrap .sec_heading {
		padding-left: 0;
		text-align: center;
	}
}
@media(max-width: 767px){
	.page_intro_section h1 {
		font-size: 28px;
	}
	.after_banner_description {
		padding: 40px 0px;
		font-size: 20px;
	}
	.hex_desc_section.right_hex,
	.hex_desc_section.left_hex {
		overflow: hidden;
		padding-left: 0;
		padding-right: 0;
		padding-top: 200px;
		padding-bottom: 40px;
		min-height: 440px;
	}
	.hex_desc_section.right_hex:before{
		transform: scale(1);
	}
	.right_hex:before, .left_hex:before {
		background-position: -170px center;
		rotate: 90deg;
		top: -190px;
	}
}
/* Revamp CSS */