.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.grid {
  display: grid;
  gap: 20px;
}

.flex {
  display: flex;
  gap: 20px;
}

.space-between {
  justify-content: space-between;
}

.align-center {
  align-items: center;
}

.section {
  padding: 40px 0;
}

.grid-sidebar-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 1024px) {
  .grid-sidebar-layout {
    grid-template-columns: 2fr 1fr;
  }
}

.popular-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
@media (min-width: 1024px) {
  .popular-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Header */
.site-header {
  border-bottom: 1px solid #EEEEEE;
  padding: 15px 0;
  background: white;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .logo {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
}
.site-header .logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #2C3E50;
}
.site-header .menu {
  list-style: none;
  display: flex;
  gap: 25px;
  align-items: center;
  margin: 0;
  padding: 0;
}
.site-header .menu li {
  position: relative;
  /* For dropdown positioning */
}
.site-header .menu li:hover .dropdown-menu, .site-header .menu li:hover .sub-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.site-header .menu a {
  font-weight: 500;
  font-size: 0.95rem;
  color: #333333;
  display: block;
  /* improves hit area */
  padding: 5px 0;
}
.site-header .menu a:hover, .site-header .menu a.active {
  color: #D35400;
}
.site-header .menu .current-menu-item > a,
.site-header .menu .current-menu-parent > a {
  color: #D35400;
}
.site-header .menu .menu-item-has-children > a {
  padding-right: 15px;
  /* Space for icon */
  position: relative;
}
.site-header .menu .menu-item-has-children > a::after {
  content: "\f078";
  /* FontAwesome chevron-down */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 0.7rem;
  margin-left: 8px;
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.3s ease;
}
.site-header .menu .menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}
.site-header .menu {
  /* Dropdown Styles */
}
.site-header .menu .dropdown-menu,
.site-header .menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 180px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  padding: 10px 0;
  z-index: 1000;
  border: 1px solid #EEEEEE;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.site-header .menu .dropdown-menu li,
.site-header .menu .sub-menu li {
  display: block;
  margin: 0;
}
.site-header .menu .dropdown-menu a,
.site-header .menu .sub-menu a {
  display: block;
  padding: 8px 20px;
  font-size: 0.9rem;
  color: #333333;
  white-space: nowrap;
}
.site-header .menu .dropdown-menu a:hover,
.site-header .menu .sub-menu a:hover {
  background-color: #f9f9f9;
  color: #D35400;
}
.site-header .header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  /* Context for absolute search bar */
}
.site-header .header-actions .search-wrapper {
  position: relative;
}
.site-header .header-actions .search-wrapper .search-icon {
  color: #7f8c8d;
  cursor: pointer;
  font-size: 1.1rem;
}
.site-header .header-actions .search-wrapper .search-icon:hover {
  color: #D35400;
}
.site-header .header-actions .search-wrapper .search-input-container {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  /* Align to right of container */
  margin-top: 15px;
  background: white;
  border: 1px solid #EEEEEE;
  padding: 10px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 250px;
  z-index: 200;
}
.site-header .header-actions .search-wrapper .search-input-container.active {
  display: flex;
  animation: fadeIn 0.2s ease-out;
}
.site-header .header-actions .search-wrapper .search-input-container input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #EEEEEE;
  border-radius: 4px;
  font-size: 0.9rem;
  outline: none;
}
.site-header .header-actions .search-wrapper .search-input-container input:focus {
  border-color: #D35400;
}
.site-header .header-actions .search-wrapper .search-input-container button {
  background: none;
  border: none;
  color: #7f8c8d;
  margin-left: 5px;
  cursor: pointer;
}
.site-header .header-actions .search-wrapper .search-input-container button:hover {
  color: #D35400;
}
.site-header .header-actions {
  /* .btn-primary handled by global styles now */
}
.site-header .header-actions .mobile-menu-toggle {
  display: none;
  font-size: 1.4rem;
  cursor: pointer;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 768px) {
  .site-header .menu {
    display: none;
    /* Hide by default on mobile */
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #EEEEEE;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    gap: 10px;
    align-items: flex-start;
  }
  .site-header .menu.active {
    display: flex;
    /* Show when toggled */
  }
  .site-header .menu li {
    width: 100%;
  }
  .site-header .menu a {
    padding: 10px 0;
    border-bottom: 1px solid #f9f9f9;
  }
  .site-header .header-actions .mobile-menu-toggle {
    display: block;
  }
}

/* Hero Section */
.hero {
  background-color: #FFFFFF;
  padding: 40px 0;
}
.hero .hero-container {
  display: flex;
  flex-direction: column-reverse;
  gap: 30px;
}
@media (min-width: 1024px) {
  .hero .hero-container {
    flex-direction: row;
    align-items: center;
    gap: 40px;
  }
}
.hero .hero-image {
  flex: 1.5;
}
.hero .hero-image img {
  width: 100%;
  border-radius: 4px;
  height: 100%;
  object-fit: cover;
  max-height: 400px;
}
.hero .hero-content {
  flex: 1;
}
.hero .hero-content h1 {
  font-family: "Inter", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #2C3E50;
  margin-bottom: 15px;
  line-height: 1.2;
}
@media (min-width: 1200px) {
  .hero .hero-content h1 {
    font-size: 2.2rem;
  }
}
.hero .hero-content .hero-subtitle {
  font-size: 1rem;
  color: #7f8c8d;
  margin-bottom: 20px;
  font-family: "Merriweather", serif;
  line-height: 1.6;
}
.hero .hero-content .author-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: #7f8c8d;
  text-transform: uppercase;
  font-weight: 600;
}
.hero .hero-content .author-meta .author-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

/* Section Headers */
.section-header-simple {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.section-header-simple h2,
.section-header-simple h3 {
  font-family: "Inter", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #333333;
  margin: 0;
}
.section-header-simple .view-all {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #7f8c8d;
  letter-spacing: 0.5px;
}

/* Most Popular Strip (Mini Cards) */
.mini-card {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: flex-start;
  padding-right: 10px;
  border-right: 1px solid #EEEEEE;
}
.mini-card:last-child {
  border-right: none;
}
@media (max-width: 1024px) {
  .mini-card {
    border-right: none;
    border-bottom: 1px solid #EEEEEE;
    padding-bottom: 15px;
  }
}
.mini-card .mini-content {
  flex: 1;
}
.mini-card .mini-content h3 {
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  color: #333333;
}
.mini-card .mini-content .meta {
  font-size: 0.7rem;
  color: #7f8c8d;
  text-transform: uppercase;
}
.mini-card .mini-image {
  flex: 0 0 60px;
  height: 60px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
}
.mini-card .mini-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tabs Header used in Main Content */
.tabs-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  border-bottom: 1px solid #EEEEEE;
  position: relative;
}
.tabs-header .tab-btn {
  background: none;
  border: none;
  padding: 10px 5px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  color: #7f8c8d;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tabs-header .tab-btn.active, .tabs-header .tab-btn:hover {
  color: #333333;
  border-bottom-color: #333333;
}
.tabs-header .search-btn-small {
  margin-left: auto;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1rem;
  color: #333333;
}

/* Standard Story Cards (Topics, Resources, etc) */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.authors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
@media (max-width: 768px) {
  .authors-grid {
    grid-template-columns: 1fr;
  }
}

.author-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border: 1px solid #EEEEEE;
  border-radius: 8px;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}
.author-card:hover {
  border-color: rgb(212.5, 212.5, 212.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.author-card .author-avatar img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.author-card .author-card-content h3 {
  font-family: "Inter", sans-serif;
  font-size: 1.1rem;
  margin: 0 0 6px;
}
.author-card .author-card-content .meta {
  font-size: 0.8rem;
  color: #7f8c8d;
  text-transform: uppercase;
}

.story-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #EEEEEE;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}
.story-card:hover {
  border-color: rgb(212.5, 212.5, 212.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.story-card:hover h3 {
  color: #D35400;
}
.story-card .card-image {
  height: 200px;
  background-color: #eee;
  overflow: hidden;
  position: relative;
}
.story-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.story-card:hover .card-image img {
  transform: scale(1.05);
}
.story-card .card-content {
  padding: 20px;
}
.story-card .card-content h3 {
  font-family: "Inter", sans-serif;
  font-size: 1.2rem;
  margin-bottom: 10px;
  line-height: 1.4;
  cursor: pointer;
}
.story-card .card-content .meta {
  font-size: 0.8rem;
  color: #7f8c8d;
  text-transform: uppercase;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #EEEEEE;
  flex-wrap: wrap;
  gap: 20px;
}
.filter-bar .filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.filter-bar .filter-label {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: #333333;
}
.filter-bar .filter-select {
  padding: 8px 12px;
  border: 1px solid #EEEEEE;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #333333;
  outline: none;
  cursor: pointer;
  background-color: white;
}
.filter-bar .sort-links a {
  font-size: 0.9rem;
  color: #7f8c8d;
  text-decoration: none;
  margin-left: 15px;
  transition: color 0.2s ease;
}
.filter-bar .sort-links a:first-child {
  margin-left: 0;
}
.filter-bar .sort-links a.active {
  color: #D35400;
  font-weight: 600;
}

/* Large Story Cards (Latest Grid) */
.latest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
@media (max-width: 768px) {
  .latest-grid {
    grid-template-columns: 1fr;
  }
}

.story-card.large .card-image {
  height: 180px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 15px;
}
.story-card.large .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-card.large .card-content h3 {
  font-family: "Inter", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}
.story-card.large .card-content .excerpt {
  font-size: 0.9rem;
  color: #7f8c8d;
  margin-bottom: 10px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.story-card.large .card-content .meta {
  font-size: 0.75rem;
  color: #7f8c8d;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 10px;
}
.story-card.large .card-content .card-footer-icons {
  display: flex;
  gap: 15px;
  font-size: 0.8rem;
  color: #7f8c8d;
}

/* Sidebar Widgets */
.sidebar-column {
  position: sticky;
  top: 90px;
  align-self: start;
}
.sidebar-column .widget {
  margin-bottom: 50px;
}
.sidebar-column .widget h3 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.sidebar-column .widget p {
  font-size: 0.9rem;
  color: #7f8c8d;
  line-height: 1.6;
  margin-bottom: 15px;
}
.sidebar-column .widget .widget-logo img {
  border-radius: 4px;
  margin-bottom: 15px;
}
.sidebar-column {
  /* Sidebar Subscribe Form */
}
.sidebar-column .newsletter-form {
  display: flex;
  gap: 0;
}
.sidebar-column .newsletter-form input {
  flex: 1;
  padding: 10px;
  border: 1px solid #EEEEEE;
  border-right: none;
  border-radius: 4px 0 0 4px;
  font-size: 0.9rem;
  background: #f9f9f9;
}
.sidebar-column .newsletter-form button {
  padding: 0 15px;
  background: #D35400;
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  font-weight: 600;
  cursor: pointer;
}
.sidebar-column {
  /* Recommendations List */
}
.sidebar-column .rec-list {
  list-style: none;
}
.sidebar-column .rec-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}
.sidebar-column .rec-list li .rec-icon {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}
.sidebar-column .rec-list li .rec-icon-text {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: #000;
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}
.sidebar-column .rec-list li h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0;
  font-family: "Inter", sans-serif;
}
.sidebar-column .rec-list li span {
  font-size: 0.8rem;
  color: #7f8c8d;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-cloud a {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #EEEEEE;
  border-radius: 999px;
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  color: #333333;
  background: #F9F9F9;
  line-height: 1;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.tag-cloud a:hover {
  color: #000;
  border-color: #D35400;
  background: rgb(242.8905109489, 212.6131386861, 196.1094890511);
}

/* Button Global Styles */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 4px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-primary {
  background-color: #D35400;
  color: white;
}
.btn-primary:hover {
  background-color: rgb(160, 63.6966824645, 0);
  color: white;
}

/* Footer Restore */
.site-footer {
  padding-top: 40px;
  border-top: 1px solid #EEEEEE;
  margin-top: 60px;
  background-color: #F9F9F9;
  padding-bottom: 30px;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}
.site-footer h3 {
  font-family: "Inter", sans-serif;
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #2C3E50;
}
.site-footer ul {
  list-style: none;
}
.site-footer ul li {
  margin-bottom: 10px;
}
.site-footer .newsletter-form {
  display: flex;
  gap: 0;
}
.site-footer .newsletter-form input {
  padding: 10px;
  border: 1px solid #EEEEEE;
  border-right: none;
  border-radius: 4px 0 0 4px;
  flex: 1;
  font-size: 0.9rem;
}
.site-footer .newsletter-form button {
  padding: 0 20px;
  background-color: #D35400;
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}
.site-footer .newsletter-form button:hover {
  background-color: rgb(160, 63.6966824645, 0);
}
.site-footer .footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #EEEEEE;
  text-align: center;
  font-size: 0.9rem;
  color: #7f8c8d;
}

/* Social Share Icons */
.social-share-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}
.social-share-icons a {
  font-size: 1.2rem;
  color: #7f8c8d;
  transition: color 0.3s ease;
}
.social-share-icons a:hover {
  color: #D35400;
}

/* Single Post Header Meta Layout */
.single-header-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  flex-wrap: wrap;
  gap: 20px;
}
.single-header-meta .author-meta {
  margin-bottom: 0;
}
.single-header-meta .social-share-icons {
  display: flex;
  gap: 15px;
}
.single-header-meta .social-share-icons a {
  font-size: 1.5rem;
  color: #7f8c8d;
  transition: color 0.2s ease;
}
.single-header-meta .social-share-icons a:hover {
  color: #333333;
}

/* Single Post Styles */
.single-post-header {
  margin-bottom: 30px;
}

.single-post-meta {
  color: #666;
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.single-post-title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 15px;
  font-family: "Merriweather", serif;
}

.author-meta-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.author-role {
  font-size: 0.8rem;
  color: #777;
}

.single-featured-image {
  margin-bottom: 40px;
}

/* Front Page Styles */
.see-all-wrapper {
  margin-top: 30px;
}

.btn-full-width-gray {
  background: #f0f0f0;
  width: 100%;
}
.btn-full-width-gray:hover {
  background: rgb(227.25, 227.25, 227.25);
}

/* Topic/Home/Category Styles */
.topic-header {
  text-align: center;
  margin-bottom: 60px;
  padding: 40px 0;
  border-bottom: 1px solid #EEEEEE;
}

.topic-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #D35400;
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
}

.topic-title {
  font-size: 3rem;
  margin-bottom: 15px;
}

.topic-description {
  max-width: 600px;
  margin: 0 auto;
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
}

.excerpt-small {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 10px;
  line-height: 1.5;
}

.card-meta-icon {
  margin-left: 10px;
}

.pagination-wrapper {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 5px;
}

/* Pagination */
.pagination {
  margin-top: 50px;
}
.pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
}
.pagination .page-numbers {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  background: #f0f0f0;
  color: #333333;
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  min-width: 40px;
}
.pagination .page-numbers.current, .pagination .page-numbers:hover {
  background: #333333;
  color: white;
}
.pagination .page-numbers.dots {
  background: transparent;
  color: #999;
  min-width: auto;
  padding: 0 10px;
  cursor: default;
}
.pagination .page-numbers.dots:hover {
  background: transparent;
  color: #999;
}

/* Filter Bar */
/* Page Styles */
.narrow-container {
  max-width: 800px;
}

.content-spacing {
  margin-top: 30px;
}

.about-content {
  margin-bottom: 60px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  margin-top: 40px;
  gap: 30px;
}

.team-member-img {
  border-radius: 50%;
  margin-bottom: 20px;
  width: 100%;
}

.resource-group {
  margin-top: 40px;
}

.pitch-content-box {
  background: #f9f9f9;
  padding: 20px;
  border-left: 4px solid #D35400;
  margin-top: 10px;
}

.no-results p {
  margin-bottom: 15px;
}
.no-results .search-form,
.no-results .searchform {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.no-results .search-form input[type=search],
.no-results .search-form input[type=text],
.no-results .searchform input[type=search],
.no-results .searchform input[type=text] {
  flex: 1;
  min-width: 220px;
  padding: 10px 12px;
  border: 1px solid #EEEEEE;
  border-radius: 4px;
  font-size: 0.95rem;
  background: #fff;
}
.no-results .search-form input[type=search]:focus,
.no-results .search-form input[type=text]:focus,
.no-results .searchform input[type=search]:focus,
.no-results .searchform input[type=text]:focus {
  outline: none;
  border-color: #D35400;
}
.no-results .search-form button,
.no-results .search-form input[type=submit],
.no-results .searchform button,
.no-results .searchform input[type=submit] {
  padding: 10px 18px;
  background: #D35400;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}
.no-results .search-form button:hover,
.no-results .search-form input[type=submit]:hover,
.no-results .searchform button:hover,
.no-results .searchform input[type=submit]:hover {
  background: rgb(160, 63.6966824645, 0);
}

/* Classic Gallery Grid Styles */
.gallery {
  display: grid;
  gap: 20px;
  margin-bottom: 30px;
}
.gallery .gallery-item {
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}
.gallery img {
  width: 100% !important;
  height: auto;
  display: block;
  border: none !important;
  transition: none;
}
.gallery img:hover {
  /* No hover effect */
}
.gallery .gallery-caption {
  font-size: 0.85rem;
  color: #7f8c8d;
  margin-top: 5px;
  text-align: center;
}

.article-text {
  font-size: 1.125rem;
  /* ~18px */
  line-height: 1.8;
  color: #2c3e50;
  max-width: 100%;
}
.article-text h1, .article-text h2, .article-text h3, .article-text h4, .article-text h5, .article-text h6 {
  font-family: "Inter", sans-serif;
  color: #333;
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 0.75em;
  line-height: 1.3;
}
.article-text h1 {
  font-size: 2.25rem;
}
.article-text h2 {
  font-size: 1.75rem;
}
.article-text h3 {
  font-size: 1.5rem;
}
.article-text h4 {
  font-size: 1.25rem;
}
.article-text h5 {
  font-size: 1.1rem;
}
.article-text h6 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.article-text p {
  margin-bottom: 1.5em;
}
.article-text ul, .article-text ol {
  margin-bottom: 1.5em;
  padding-left: 2em;
}
.article-text li {
  margin-bottom: 0.5em;
}
.article-text a {
  color: #D35400;
  /* Primary Color */
  text-decoration: underline;
  text-decoration-skip-ink: auto;
}
.article-text a:hover {
  color: #A04000;
  text-decoration: none;
}
.article-text blockquote {
  font-style: italic;
  border-left: 4px solid #D35400;
  padding-left: 1.5em;
  margin: 2em 0;
  color: #555;
  background: #fdfdfd;
  padding: 20px;
  border-radius: 0 4px 4px 0;
}
.article-text img {
  max-width: 100%;
  height: auto;
}
.article-text figure {
  margin: 0 0 2em 0;
  max-width: 100%;
  width: unset !important;
}
.article-text figure.aligncenter {
  text-align: center;
}
.article-text figcaption {
  font-size: 0.85rem;
  color: #7f8c8d;
  text-align: center;
  margin-top: 0.5em;
  font-style: italic;
}
.article-text table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2em;
  font-size: 0.95rem;
}
.article-text th, .article-text td {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  text-align: left;
}
.article-text th {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  background-color: #f9f9f9;
}

.post-tags {
  margin-top: 20px;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  color: #7f8c8d;
}
.post-tags .post-tags-title {
  font-weight: 700;
  margin-right: 6px;
  color: #333333;
}
.post-tags a {
  color: #D35400;
  text-decoration: none;
}
.post-tags a:hover {
  text-decoration: underline;
}

/* Tables */
/* Columns Support */
.gallery-columns-1 {
  grid-template-columns: repeat(1, 1fr);
}

.gallery-columns-2 {
  grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
  grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
  grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
  grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
  grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
  grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
  grid-template-columns: repeat(9, 1fr);
}

/* Responsive */
@media (max-width: 768px) {
  .gallery-columns-3,
  .gallery-columns-4,
  .gallery-columns-5,
  .gallery-columns-6,
  .gallery-columns-7,
  .gallery-columns-8,
  .gallery-columns-9 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .gallery {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
}
/* --- Responsive Fixes --- */
@media (max-width: 768px) {
  /* Typography */
  h1,
  .article-text h1,
  .single-post-title {
    font-size: 1.75rem !important;
  }
  h2,
  .article-text h2 {
    font-size: 1.5rem !important;
  }
  /* Single Post Header */
  .single-header-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .single-header-meta .social-share-icons {
    width: 100%;
    justify-content: flex-start;
  }
  /* Team Grid */
  .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  /* Container Padding */
  .container {
    padding: 0 15px;
  }
}
@media (max-width: 480px) {
  /* Force single column for grids on very small screens */
  .popular-grid,
  .stories-grid,
  .team-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .single-header-meta .author-meta {
    width: 100%;
  }
  /* Adjust margins */
  .section {
    padding: 15px 0;
  }
  /* Tighter Typography */
  h1,
  h2,
  h3 {
    margin-top: 1em !important;
    margin-bottom: 0.5em !important;
  }
  p {
    margin-bottom: 1em !important;
  }
}
/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Merriweather", serif;
  color: #333333;
  line-height: 1.6;
  background-color: #FFFFFF;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}
a:hover {
  color: #D35400;
}

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