/*
Theme Name: 地方創生・フェアネス共創研究所
Theme URI: https://fairlab.jp/vision
Author: Zumi
Author URI: https://example.com
Description: オリジナルWordPressテーマ
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: futurecenter
*/

/* ========================================
   Reset & Base Styles
======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo,
    sans-serif;
  line-height: 1.8;
  color: #333;
  background-color: #fff;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

ul,
ol {
  list-style: none;
}
:root {
  --primary: #007a8b;
  --accent: #f93800;
}

/* ========================================
   Container
======================================== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

/* ========================================
   Header
======================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.site-logo a {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.logo-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}

/* Navigation */
.main-navigation {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-menu li a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
}
.nav-menu li:hover a {
  color: var(--primary) !important;
}
.nav-menu li:last-of-type {
  background-color: var(--primary);
  border: 2px solid var(--primary);
  padding: 0.2rem 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
}
.nav-menu li:last-of-type a {
  height: 100%;
  color: #fff !important;
  font-size: 14px;
  display: block;
}
.nav-menu li:last-of-type:hover {
  background-color: #fff;
  opacity: 1;
}
.nav-menu li:last-of-type:hover a {
  color: var(--primary) !important;
}
.toggle-search {
  position: relative;
  margin-left: 15px;
}
.toggle-search summary {
  display: block;
  cursor: pointer;
  width: 30px;
  transition: all 0.2s ease;
}
.toggle-search summary img{
  height: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
  background-color: #fff;
   border-radius: 50%;
}
.toggle-search summary::-webkit-details-marker {
  display: none;
}
.toggle-search[open] summary {
  filter: invert(100%);
}
.toggle-search form {
  position: absolute;
  bottom: -200%;
  right: 0;
  width: auto;
  opacity: 0;
  padding: 0.3rem;
  transition: all 0.5s ease;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
}
.toggle-search[open] form {
  opacity: 1;
  transform: none;
}
.search-form ul {
  display: inline-flex !important;
}
.search-form ul li [type="submit"]{
   width: 25px;
  height: 25px;
     background-image: url('../images/search_icon.svg');
     background-size: contain;
     background-position: center center;
    color: transparent;
    text-indent: -9999px
}
/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

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

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

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

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

/* ========================================
   Main Content
======================================== */
.main-content {
  min-height: 60vh;
  padding-bottom: 4rem;
}

/* Hero Section */
.hero-section {
  width: 100%;
  margin-bottom: 4rem;
  padding: 0;
}

.hero-image {
  width: 100%;
  aspect-ratio: 100/ 40;
  position: relative;
  overflow: hidden;
  clip-path: ellipse(100% 100% at 50% 0%);
}

.hero-image img {
  position: absolute;
  top: -8%;
  left: 0;
  bottom: 10%;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Section Styles */
section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--accent);
  font-weight: bolder;
}

/* Mission Section */
.mission-section {
  background-color: #fff;
}

.mission-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.mission-content p {
  margin-bottom: 1.5rem;
  line-height: 2;
}

/* Activities Section */

.activities-intro {
  max-width: 900px;
  margin: 0 auto 3rem;
  text-align: left;
}

.activities-list {
  max-width: 900px;
  margin: 0 auto;
  list-style-type: disc;
}

.activities-list ul {
  padding-left: 1.5rem;
  margin-bottom: 2rem;
  list-style-type: disc;
}

.activities-list li {
  position: relative;
  line-height: 1.8;
}

.activities-list li::marker {
  color: var(--primary);
}
.activities-list .layer_2nd {
  list-style-type: circle;
  padding-left: 1.3rem;
}

/* Resources, Events, Column Sections */
.resources-section,
.events-section,
.column-section {
  padding: 4rem 0;
}

.resource-item,
.event-item,
.column-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5%;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.resource-image,
.event-image,
.column-image {
  width: 100%;
  height: 0;
  padding-bottom: 75%;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.resource-image img,
.event-image img,
.column-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.resource-content h3,
.event-content h3,
.column-content h3 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.resource-content p,
.event-content p,
.column-content p {
  margin-bottom: 2rem;
  line-height: 1.8;
}

/* News Section */
.news-section .section-title {
  color: var(--primary);
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3%;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.news-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-thumbnail {
  width: 100%;
  height: 0;
  padding-bottom: 60%;
  position: relative;
  overflow: hidden;
}

.news-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-content {
  padding: 1.5rem;
}

.news-title {
  font-size: 20px;
  margin-bottom: 1rem;
  line-height: 1.5;
  font-weight: 500;
}

.news-date {
  font-size: 0.9rem;
  color: var(--accent);
}

/* Buttons */
.btn-wrapper {
  text-align: center;
  margin-top: 3rem;
}

.btn {
  display: inline-block;
  padding: 0.5rem 3rem;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: #138496;
  opacity: 1;
}

.btn-secondary {
  background-color: var(--primary);
  color: #fff;
  padding: 0.5rem 2rem;
}

.btn-secondary:hover {
  background-color: #138496;
  opacity: 1;
}

/* ========================================
   Footer
======================================== */
.site-footer {
  background-color: var(--primary);
  color: #fff;
  padding: 3rem 0 1.5rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  text-align: center;
}

.footer-logo {
  display: block;
  width: 70%;
  margin: 0 auto 1.5rem;
  background-color: #fff;
  color: #000;
  font-size: 14px;
  padding: 0.5rem 0;
}

.footer-logo img {
  height: 50px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.footer-info {
  margin-bottom: 2rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
}

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

/* ========================================
   Archive Page Styles
======================================== */
.page-archive {
  padding-top: 0;
  background-color: #f5f5f5;
}

/* Archive Hero */
.archive-hero {
  position: relative;
  width: 100%;
  margin-bottom: 0;
  padding-top: 0;
}

.archive-hero .hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 35%;
  overflow: hidden;
  clip-path: ellipse(100% 100% at 50% 0%);
}

.archive-hero .hero-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
}

.archive-hero .hero-title {
  font-size: 2.25rem;
  color: #fff;
  font-weight: 600;
}

/* Archive Content */
.archive-content {
  padding: 2rem 0 4rem;
}

.archive-description {
  text-align: center;
  margin-bottom: 3rem;
}

.archive-description p {
  font-size: 1rem;
  line-height: 1.8;
}

/* Archive Layout */
.archive-layout {
  display: block;
  grid-template-columns: 280px 1fr;
  gap: 4%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Sidebar */
.archive-widget {
  display: flex;
  top: 100px;
  justify-content: space-between;
}

.category-widget {
  width: 300px;
  height: 50px;
  position: relative;
}
.category-widget form{
  border-bottom: #333 solid 1px;
  font-size: 20px;
    font-weight: 700;
    height: 50px;
    width: 100%;
}
.category-widget form > *,
.category-widget form ul{
  display: flex!important;
  width: 100%;
  height: 100%;
}
.category-widget form ul li:first-of-type,
.category-widget form select{
  width:100%;
  height: 100%;
}
.category-widget form select{
  padding-left:10px;
}
.category-widget::after{
  content:"";
  background: url("../images/arw_btm.svg") no-repeat center center;
  right: 3%;
   top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  position: absolute;
}
.search-widget {
  background-color: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.category-list {
  list-style: none;
  text-align: center;
}

.category-list li {
  margin-bottom: 0.5rem;
}

.category-list li a {
  display: block;
  padding: 0.6rem 0.8rem;
  color: #333;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.category-list li a:hover {
  background-color: #e9ecef;
  color: var(--primary);
  opacity: 1;
}

.category-list li.current a {
  background-color: var(--primary);
  color: #fff;
  font-weight: 600;
}

/* Search Widget */

.archive-search {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  background-color: #fff;
  padding: 0.3rem;
}


/* Posts Grid */
.archive-posts {
  width: 100%;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 3%;
  margin-bottom: 3rem;
}

.post-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.post-card-link {
  display: block;
}

.post-card-thumbnail {
  width: 100%;
  height: 0;
  padding-bottom: 65%;
  position: relative;
  overflow: hidden;
  background-color: #f0f0f0;
}

.post-card-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-thumbnail.no-thumbnail {
  background-color: #e9ecef;
}

.post-card-content {
  padding: 1.5rem;
}

.post-card-title {
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  color: #333;
  font-weight: 600;
}

.post-card-date {
  display: block;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
}

/* Pagination */
.pagination-wrapper {
  margin-top: 3rem;
}

.pagination-wrapper .page-numbers {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
}

.pagination-wrapper .page-numbers li {
  display: inline-block;
}

.pagination-wrapper .page-numbers a,
.pagination-wrapper .page-numbers span {
  display: inline-block;
  padding: 0.6rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #333;
  transition: all 0.3s ease;
}

.pagination-wrapper .page-numbers a:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
  opacity: 1;
}

.pagination-wrapper .page-numbers .current {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}

.pagination-wrapper .page-numbers .prev,
.pagination-wrapper .page-numbers .next {
  font-weight: 600;
}

/* No Posts */
.no-posts {
  text-align: center;
  padding: 4rem 2rem;
}

.no-posts p {
  font-size: 1.1rem;
  color: #666;
}

/* ========================================
   Vision Page Styles
======================================== */
.page-vision {
  padding-top: 0;
}

/* Hero Section */
.vision-hero {
  position: relative;
  width: 100%;
  margin-bottom: 0;
  padding-top: 0;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 35%;
  overflow: hidden;
  clip-path: ellipse(100% 100% at 50% 0%);
}

.hero-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
}

.hero-title {
  font-size: 3rem;
  color: #fff;
  font-weight: 600;
}

/* Vision Sections */
.vision-section {
  padding: 4rem 0;
}

.vision-section.section-1 {
  background-color: #fff;
  padding-top: 2rem;
}

.vision-section.section-2 {
  background-color: #fff;
  padding-bottom: 5rem;
}

.vision-main-title {
  font-size: 2.2rem;
  text-align: center;
  color: var(--accent);
  margin-bottom: 3rem;
  font-weight: 600;
  line-height: 1.6;
}

.vision-secondary-title {
  font-size: 2rem;
  text-align: center;
  color: var(--accent);
  margin-bottom: 3rem;
  font-weight: 600;
  line-height: 1.6;
}

.vision-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.vision-content p {
  margin-bottom: 1.5rem;
  line-height: 2;
  color: #333;
}

.vision-highlight {
  color: var(--primary);
}

.vision-image-label {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: #666;
  text-align: center;
}

.vision-illustration {
  width: 100%;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.vision-illustration img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.vision-link-text {
  margin-top: 2.5rem;
}

.inline-link {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
}

.inline-link:hover {
  color: #138496;
}
/* ========================================
   About Page Styles
======================================== */

.image_wrapper{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(2, 1fr);
grid-column-gap: 10px;
grid-row-gap: 10px;
  max-width: 990px;
  margin: 100px auto;
}
.image_wrapper figure{
  aspect-ratio: 16/9;
}
.image_wrapper figure img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info_warapper{
  max-width: 800px;
  margin:0 auto;
  border: 1px solid #000;
  padding: 15px 25px;
}
/* ========================================
   Single Post Styles
======================================== */
.single-post {
  padding-top: 4rem;
}
.article-single {
  background-color: #fff;
}

.article-header {
  max-width: 904px;
  margin: 0 auto;
  text-align: left;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
}

.article-title {
  font-size: 2rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  color: #333;
  font-weight: 600;
}

.article-meta {
  display: flex;
  gap: 1rem;
  color: #666;
  font-size: 0.95rem;
}

.article-date {
  color: #666;
}

.article-featured-image {
  width: 100%;
  margin-bottom: 3rem;
  border-radius: 8px;
  overflow: hidden;
}

.article-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.article-body {
  width: 100%;
  max-width: 990px;
  margin: 0 auto;
  margin: 0 auto 3rem;
  line-height: 2;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1%;
}
.article-content {
  width: 74%;
}

.article-content p {
  margin-bottom: 1.5rem;
  font-size: 16px;
}

.article-content h2 {
  font-size: 1.6rem;
  margin: 2.5rem 0 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
  color: #333;
}

.article-content h3 {
  font-size: 1.4rem;
  margin: 2rem 0 1rem;
  color: #333;
}

.article-content h4 {
  font-size: 1.2rem;
  margin: 1.5rem 0 1rem;
  color: #333;
}

.article-content ul,
.article-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.article-content ul li,
.article-content ol li {
  margin-bottom: 0.8rem;
  line-height: 1.8;
}

.article-content ul {
  list-style: disc;
}

.article-content ol {
  list-style: decimal;
}

.article-content img {
  max-width: 100%;
  height: auto;
  margin: 2rem 0;
  border-radius: 8px;
}

.article-content a {
  color: var(--primary);
  text-decoration: underline;
}

.article-content a:hover {
  color: #138496;
}

.article-content blockquote {
  padding: 1em 1em 1em 2em;
  border: 1px solid #999;
  background-color: #f7f7f7;
  color: #333333;
  font-size: 16px;
}
.article-content blockquote  h3{
    font-size: 16px;
}
.article-content blockquote a {
  color: var(--primary);
  text-decoration: none;
}   
.article-content blockquote div::before{
    content: "";
}

.article-content blockquote ol li{
    margin-bottom: 0;
    padding: 5px 0;
}
.article-footer {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

.article-categories,
.article-tags {
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.meta-label {
  font-weight: 600;
  color: #666;
  font-size: 0.9rem;
}

.category-link,
.tag-link {
  display: inline-block;
  padding: 0.4rem 1rem;
  background-color: #f8f9fa;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #333;
  transition: all 0.3s ease;
}

.category-link:hover,
.tag-link:hover {
  background-color: var(--primary);
  color: #fff;
  opacity: 1;
}

/* Sidebar */
.single-sidebar {
  width: 23%;
}

.sidebar-inner {
  margin: 0 auto;
}

.sidebar-title {
  font-size: 16px;
  color: var(--accent);
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
}

.related-posts {
  display: grid;
  gap: 2rem;
}

/* Related Posts Section (横並び) */
.related-posts-section {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid #e0e0e0;
}

.related-posts-section .related-posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

/* Materials Download Form in Sidebar */
.materials-download-form-sidebar {
  width: 23%;
}

/* Single Materials Page Specific Styles (1対1レイアウト) */
.single-materials .article-body {
  gap: 8%;
}

.single-materials .article-content {
  flex: 1;
  width: auto;
  padding-left: 0;
}

.single-materials .single-sidebar,
.single-materials .materials-download-form-sidebar {
  flex: 1;
  width: auto;
}

.materials-download-form {
  width: 100%;
}

.materials-download-form .form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.materials-download-form .form-group {
  margin-bottom: 1rem;
  width: 100%;
}

.materials-download-form .form-row .form-group {
  flex: 1;
}

.materials-download-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
}

.materials-download-form input[type="text"],
.materials-download-form input[type="email"] {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
}

.materials-download-form .required {
  color: var(--accent);
  margin-left: 0.25rem;
}

.materials-download-form .form-example {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.25rem;
}

.materials-download-form .privacy-group {
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 4px;
}

.materials-download-form .privacy-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
}

.materials-download-form .privacy-checkbox-label input[type="checkbox"] {
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.materials-download-form .checkbox-text {
  font-size: 0.85rem;
  line-height: 1.6;
}

.materials-download-form .privacy-link-text,
.materials-download-form .privacy-notice,
.materials-download-form .privacy-agreement {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  line-height: 1.6;
}

.materials-download-form .privacy-link-text a {
  color: var(--primary);
  text-decoration: underline;
}

.materials-download-form .form-submit {
  margin-top: 1.5rem;
}

.materials-download-form .download-button {
  width: 100%;
  padding: 0.75rem;
  text-align: center;
  background-color: var(--primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.materials-download-form .download-button:hover {
  background-color: #138496;
}

.materials-download-form .download-button:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
}

.materials-download-form .download-button .button-loading {
  display: inline-block;
}

.related-post-item {
  transition: all 0.3s ease;
}

.related-post-item:hover .related-post-thumbnail {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.related-post-link {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.related-post-thumbnail {
  width: 100%;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.related-post-thumbnail img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.related-post-content {
  padding: 10px 0;
}

.related-post-title {
  font-size: 14px;
  color: var(--primary);
  margin-bottom: 0.8rem;
  line-height: 1.5;
}
.related-post-link a:hover {
  text-decoration: underline;
}
/* ========================================
  Search result page
======================================== */
.search-results-page h1{
  text-align: center;
  font-size: 28px;
  margin-top: 120px;
  padding-bottom: 100px;
}

.search-results-page .container{
  margin-bottom: 100px;
}
/* ========================================
  taxonomy  page
======================================== */
.taxonomy-hero{
  width: 100%;
  padding:120px 0 100px;
    text-align: center;
    color: var(--accent);
    font-size: 20px;
    font-weight: bold;
} 
.taxonomy-hero h1{
  font-size: 32px;
  color: #000;
}
.back_wrap{
  width: 100%;
  text-align: center;
}
.back_wrap button{
  margin: 0 auto;
}
/* ========================================
  taxonomy  page
======================================== */
.privacy-section{
  padding: 4rem 0;
}
.privacy-section ol{
  list-style: auto;
    list-style-position: inside;
    padding-left: 1.3em;
}
.privacy-section ul{
  list-style: disc;
    list-style-position: inside;
     padding-left: 1.3em;
}
.privacy-section h3{
  color:#f93800;
  margin: 30px 0 ;
  font-weight: bolder;
}
.privacy-section li{
  margin: 1rem 0;
}
/* ========================================
   Thanks Page Styles
======================================== */
.page-thanks {
  padding-top: 4rem;
}

.thanks-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 4rem 0;
}

.thanks-icon {
  margin: 0 auto 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.thanks-title {
  font-size: 2rem;
  color: #333;
  margin-bottom: 2rem;
  font-weight: 600;
}

.thanks-message {
  font-size: 1rem;
  line-height: 1.8;
  color: #666;
  margin-bottom: 3rem;
}

.thanks-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.thanks-actions .btn {
  min-width: 200px;
}
/* ========================================
   Responsive Design
======================================== */
@media (max-width: 1024px) {
  .header-container {
    padding: 1rem 3%;
  }

  .nav-menu {
    gap: 1.5rem;
  }

  .nav-menu li a {
    font-size: 0.9rem;
  }
  .toggle-search form {
    width: 100vw;
    position: fixed;
    top:115px;
    bottom:auto;
    left: 0;
    right: 0;
    padding:0.3rem 0.5rem;
  }
  .toggle-search form [type="text"]{
    width: 85vw;
  }
}

@media (max-width: 1024px) {
  .archive-layout {
    grid-template-columns: 240px 1fr;
    gap: 3%;
  }

  .posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {

  .site-logo img {
    height: 35px;
  }

  .logo-text {
    font-size: 0.8rem;
  }
   .toggle-search summary img{
    height: auto;
  }
  /* Mobile Menu */
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: #fff;
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
  }

  .nav-menu li a {
    display: block;
    padding: 1rem;
    font-size: 1.1rem;
  }

  .btn-contact {
    width: 100%;
    text-align: center;
  }

  /* Sections */
  section {
    padding: 3rem 0;
  }


  .section-title {
    font-size: 1.6rem;
    margin-bottom: 2rem;
  }

  .hero-image {
    aspect-ratio: auto;
    height: 0;
    padding-bottom: 70%;
  }
  .hero-image img {
    width: 100%;
    height: 100%;
    top: 0;
    bottom:auto;
    object-fit: cover;
  }
  .resource-item,
  .event-item,
  .column-item {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .event-item {
    direction: ltr;
}

  .event-content {
    order: 2;
  }

  .event-image {
    order: 1;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .container {
    width: 100%;
    padding: 0 5%;
  }

  /* Archive Page */
  .page-archive {
    padding-top: 0;
  }

  .archive-hero .hero-image-wrapper {
    padding-bottom: 50%;
  }

  .archive-hero .hero-title {
    font-size: 1.6rem;
  }

  .archive-hero .hero-curve {
    height: 50px;
  }

  .archive-hero .hero-curve::before {
    top: -49px;
    height: 50px;
  }

  .archive-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .archive-search {
    position: static;
    order: -1;
  }

  .search-widget {
    margin-bottom: 1.5rem;
    width: 50%;
  }
  .search-widget form ul li:has([type="text"]){
    width: 80%;
  }
   .search-widget form ul li [type="text"]{
    width: 100%;
   }
.category-widget{
  width: 45%;
}
.category-widget form{
  font-size: 14px;
}
  .posts-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Vision Page */
  .hero-image-wrapper {
    padding-bottom: 50%;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-curve {
    height: 50px;
  }

  .hero-curve::before {
    top: -49px;
    height: 50px;
  }

  .vision-main-title {
    font-size: 1.6rem;
  }

  .vision-secondary-title {
    font-size: 1.5rem;
    line-height: 1.5;
  }

  .vision-content {
    text-align: left;
  }

  .vision-content p {
    font-size: 0.95rem;
  }

  .vision-highlight {
    font-size: 1rem;
  }
   .image_wrapper{
  grid-template-columns: repeat(2, 1fr);
grid-template-rows: repeat(3, 1fr);
 }

  /* Single Post */
  .article-title {
    font-size: 1.6rem;
  }

  .article-body {
    font-size: 0.95rem;
     flex-direction: column;
  }

  .article-body h2 {
    font-size: 1.4rem;
  }

  .article-body h3 {
    font-size: 1.2rem;
  }
  .article-content,
  .single-sidebar {
    width: 100%;
  }
  
  .materials-download-form-sidebar {
    width: 100%;
    margin-top: 2rem;
  }
  
  .related-posts-section .related-posts {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
  }
  
  .related-posts{
    grid-template-columns: 1fr 1fr;
    gap: 2rem;  
  }
  .related-post-item{
    width: 100%;
  }
  .related-post-link {
    grid-template-columns: 1fr;
  }

  .related-post-content {
    padding: 1rem 0;
  }

  /* Thanks Page */
  .thanks-content {
    padding: 2rem 0;
  }

  .thanks-title {
    font-size: 1.8rem;
  }

  .thanks-actions {
    flex-direction: column;
    align-items: center;
  }

  .thanks-actions .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.4rem;
  }

  .btn {
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
  }

  .resource-content h3,
  .event-content h3,
  .column-content h3 {
    font-size: 1.4rem;
  }

  .footer-logo img {
    height: 40px;
  }

  /* Archive Page */
  .archive-hero .hero-image-wrapper {
    padding-bottom: 70%;
  }

  .archive-hero .hero-title {
    font-size: 1.6rem;
  }

  .archive-hero .hero-curve {
    height: 40px;
  }

  .archive-hero .hero-curve::before {
    top: -39px;
    height: 40px;
  }

  .post-card-title {
    font-size: 1rem;
  }

  .pagination-wrapper .page-numbers a,
  .pagination-wrapper .page-numbers span {
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
  }

  /* Vision Page */
  .hero-image-wrapper {
    padding-bottom: 70%;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-curve {
    height: 40px;
  }

  .hero-curve::before {
    top: -39px;
    height: 40px;
  }

  .vision-main-title {
    font-size: 1.4rem;
  }

  .vision-secondary-title {
    font-size: 1.3rem;
  }

  .vision-content p {
    font-size: 0.9rem;
  }

  /* Single Post */
  .article-title {
    font-size: 1.4rem;
  }

  .article-body {
    font-size: 0.9rem;
  }

  .article-body h2 {
    font-size: 1.3rem;
  }

  .article-body h3 {
    font-size: 1.1rem;
  }

  .article-body ul,
  .article-body ol {
    padding-left: 1.5rem;
  }

  .related-post-title {
    font-size: 1rem;
  }

  .sidebar-title {
    font-size: 1.3rem;
  }

  /* Thanks Page */
  .thanks-title {
    font-size: 1.6rem;
  }

  .thanks-message {
    font-size: 0.95rem;
  }

  .thanks-actions {
    flex-direction: column;
    align-items: center;
  }

  .thanks-actions .btn {
    width: 100%;
    max-width: 300px;
  }
}