/**
 * YIT Theme Main Stylesheet
 * Core theme styles for YIT Drupal 11
 */

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

html {
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
  overflow-x: hidden;
}

/* Main content container */
.main-content {
  background: #fff;
  min-height: 400px;
}

/* Links */
a {
  color: #0066cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: #003366;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Buttons */
.btn, button[type="submit"], input[type="submit"] {
  display: inline-block;
  padding: 10px 20px;
  background: #4A90E2;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn:hover, button[type="submit"]:hover, input[type="submit"]:hover {
  background: #357abd;
  text-decoration: none;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #555;
}

.form-item {
  margin-bottom: 20px;
}

/* Messages */
.messages {
  padding: 15px;
  margin: 20px 0;
  border-radius: 4px;
  font-weight: 500;
}

.messages.status {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.messages.warning {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.messages.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background: #f8f8f8;
  font-weight: 700;
  color: #003366;
}

tr:hover {
  background: #f5f5f5;
}

/* Utility classes */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }

/* Pager */
.pager {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 30px 0;
  flex-wrap: nowrap;
  align-items: center;
}

.pager__items {
  display: flex;
  /* gap: 10px; */
  /* align-items: center; */
  flex-wrap: nowrap;
}

.pager ul.pager__items {
  display: contents !important;
}

.pager__item {
  display: flex;
  flex-shrink: 0;
  white-space: nowrap;
}

.pager__link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #003366;
  text-decoration: none;
  min-width: 40px;
  height: 40px;
}

.pager__link:hover,
.pager__item.is-active .pager__link {
  background: #4A90E2;
  color: #fff;
  border-color: #4A90E2;
}

/* Footer */
footer,
.footer,
.region-footer,
#footer {
  background: #003366;
  color: #ffffff;
  padding: 40px 0;
  margin-top: 60px;
}

footer a,
.footer a,
.region-footer a {
  color: #ffffff;
  text-decoration: underline;
}

footer a:hover,
.footer a:hover,
.region-footer a:hover {
  color: #e0e0e0;
}

/* Quotes block styling - catch all possible quote structures */
blockquote,
.quotes-block,
.region-quotes,
.block-quotes,
.view-quotes,
.view-id-quotes,
.node--home-page .node__content blockquote,
.node--189 .node__content blockquote,
.page-node-189 .node__content blockquote,
.home-page-content blockquote,
article.node--home-page blockquote,
blockquote.sailing-quote-text {
  background: #67a3e0 !important;
  color: #ffffff !important;
  padding: 40px 30px !important;
  margin: 40px auto !important;
  text-align: center !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  border-left: none !important;
  max-width: 100% !important;
}

blockquote.sailing-quote-text {
  margin-top: 0px !important;
}

/* Remove styling from footer within sailing quote */
blockquote.sailing-quote-text footer,
.sailing-quote-text footer,
blockquote footer {
  background: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

blockquote p,
.quotes-block p,
.region-quotes p,
.block-quotes p,
.view-quotes p,
.view-id-quotes p,
.node--home-page .node__content blockquote p,
.node--189 .node__content blockquote p,
.page-node-189 .node__content blockquote p,
.home-page-content blockquote p,
article.node--home-page blockquote p {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 1.3rem !important;
  line-height: 1.7 !important;
  font-style: italic !important;
  color: #ffffff !important;
  background: transparent !important;
  border: none !important;
}

blockquote cite,
.quotes-block cite,
.region-quotes cite,
.block-quotes cite,
.view-quotes cite,
.view-id-quotes cite,
.node--home-page .node__content blockquote cite,
.node--189 .node__content blockquote cite,
.page-node-189 .node__content blockquote cite,
.home-page-content blockquote cite,
article.node--home-page blockquote cite {
  display: block !important;
  margin-top: 15px !important;
  font-style: normal !important;
  font-size: 1.1rem !important;
  color: #ffffff !important;
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
}

/* Hide home page title */
.node--type-page.node--189 .node__content > h1:first-child,
.page-node-189 h1.page-title {
  display: none;
}

/* Main content area padding */
.main-content__section {
  padding: 30px 20px;
}

.region--no-paddings {
  padding: 0;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }
  h5 { font-size: 1.1rem; }
  h6 { font-size: 1rem; }
}

/* ==========================================================================
   Yacht Subscribe Button
   ========================================================================== */

.yacht-title-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.yacht-title-row .yacht-title {
  margin-bottom: 0;
  font-size: 2rem;
  color: #003366;
}

.btn-subscribe {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #28a745 0%, #218838 100%);
  color: #fff !important;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.btn-subscribe:hover {
  background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4);
  text-decoration: none !important;
}

.btn-subscribe:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.btn-subscribe .subscribe-icon {
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 576px) {
  .yacht-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .yacht-title-row .yacht-title {
    font-size: 1.5rem;
  }

  .btn-subscribe {
    padding: 6px 12px;
    font-size: 13px;
  }
}

/* ==========================================================================
   Classifieds Grid Layout
   ========================================================================== */

/* Grid Container */
.classifieds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 30px 0;
  padding: 0;
}

/* Grid Item */
.classified-grid-item {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Classified Card */
.classified-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid #e0e0e0;
}

.classified-card:hover {
  box-shadow: 0 8px 20px rgba(0, 51, 102, 0.15);
  transform: translateY(-4px);
  border-color: #4A90E2;
}

.classified-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Featured Image */
.classified-image {
  position: relative;
  overflow: hidden;
  background: #f8f8f8;
  aspect-ratio: 16 / 10;
  width: 100%;
}

.classified-image a {
  display: block;
  height: 100%;
  width: 100%;
}

.classified-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.classified-card:hover .classified-image img {
  transform: scale(1.05);
}

/* Card Content */
.classified-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  position: relative;
}

/* Price Badge */
.classified-price-badge {
  position: absolute;
  top: -20px;
  right: 20px;
  background: linear-gradient(135deg, #28a745 0%, #218838 100%);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
  z-index: 10;
}

.classified-price-badge .field__label {
  display: none;
}

.classified-price-badge .field__item {
  color: #fff !important;
  font-weight: 700;
}

/* Title */
.classified-title {
  margin: 20px 0 10px 0;
  font-size: 1.3rem;
  line-height: 1.4;
  color: #003366;
  font-weight: 700;
}

.classified-title a {
  color: #003366;
  text-decoration: none;
  transition: color 0.2s ease;
}

.classified-title a:hover {
  color: #4A90E2;
  text-decoration: none;
}

/* Category */
.classified-category {
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.classified-category .field__label {
  display: none;
}

.classified-category a {
  color: #4A90E2;
  text-decoration: none;
}

.classified-category a:hover {
  text-decoration: underline;
}

/* Short Intro */
.classified-intro {
  margin: 10px 0;
  color: #555;
  line-height: 1.6;
  font-size: 0.95rem;
  flex-grow: 1;
}

.classified-intro .field__label {
  display: none;
}

.classified-intro p {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Location */
.classified-location {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 10px 0;
  color: #666;
  font-size: 0.9rem;
}

.classified-location .field__label {
  display: none;
}

.classified-location .location-icon {
  flex-shrink: 0;
  color: #4A90E2;
}

/* Footer / View Details */
.classified-footer {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
}

.btn-view-details {
  display: inline-block;
  padding: 10px 20px;
  background: #4A90E2;
  color: #fff !important;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s ease;
  text-align: center;
  width: 100%;
}

.btn-view-details:hover {
  background: #357abd;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
  text-decoration: none !important;
}

/* Responsive Grid - Tablet */
@media (max-width: 992px) {
  .classifieds-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

/* Remove bootstrap_business 3rem side padding on node full view on mobile */
@media (max-width: 768px) {
  .path-node:not(.page-node-type-page):not(.page-node-type-mt-landing-page)
    .node--view-mode-full {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }
}

/* Mobile: reduce main content padding so content fills the screen */
@media (max-width: 575px) {
  .main-content > .container {
    padding-left: 8px;
    padding-right: 8px;
  }

  .main-content .row {
    --bs-gutter-x: 0;
  }
}

/* Responsive Grid - Mobile */
@media (max-width: 576px) {
  .classifieds-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .classified-title {
    font-size: 1.2rem;
  }

  .classified-content {
    padding: 15px;
  }

  .classified-price-badge {
    font-size: 1rem;
    padding: 6px 12px;
    top: -18px;
    right: 15px;
  }
}

/* Field label cleanup for classifieds */
.classified-card .field__label {
  font-weight: 600;
  color: #003366;
  margin-bottom: 5px;
  font-size: 0.85rem;
}

.classified-card .field__item {
  color: #555;
}

/* Hide field labels that are redundant */
.classified-card .field--name-field-images .field__label,
.classified-card .field--name-field-short-intro .field__label {
  display: none;
}

/* ==========================================================================
   FORUM STYLING - Modern Discourse-Style Design
   ========================================================================== */

/* Forum Overview Container */
.forum-overview {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Forum Header */
.forum-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 30px 20px;
  background: linear-gradient(135deg, #003366 0%, #4A90E2 100%);
  border-radius: 12px;
  color: #fff;
}

.forum-title {
  color: #fff !important;
  margin-bottom: 10px;
  font-size: 2.5rem;
  font-weight: 700;
}

.forum-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.6;
}

/* Breadcrumbs */
.breadcrumb,
.forum-breadcrumb,
nav.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  padding: 12px 0;
  margin-bottom: 20px;
  list-style: none;
  background: transparent;
  font-size: 0.9rem;
}

.breadcrumb__item,
.breadcrumb li {
  display: inline-flex;
  align-items: center;
}

.breadcrumb__link,
.breadcrumb a {
  color: #4A90E2;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb__link:hover,
.breadcrumb a:hover {
  color: #003366;
  text-decoration: underline;
}

.breadcrumb__item:not(:last-child)::after,
.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin: 0 8px;
  color: #999;
  font-size: 1.1rem;
}

/* Forum List Container */
.forum-categories {
  margin-bottom: 40px;
}

.forum-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Forum Card - Modern Card-Based Layout */
.forum-card {
  display: grid;
  grid-template-columns: 60px 1fr auto auto;
  gap: 20px;
  align-items: center;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.forum-card:hover {
  box-shadow: 0 4px 12px rgba(0, 51, 102, 0.1);
  border-color: #4A90E2;
  transform: translateY(-2px);
}

/* Forum Icon Wrapper */
.forum-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.forum-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f4f8;
  border-radius: 50%;
  color: #4A90E2;
  transition: all 0.3s ease;
}

.forum-icon.has-new {
  background: linear-gradient(135deg, #28a745 0%, #218838 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.forum-icon svg {
  width: 24px;
  height: 24px;
}

.forum-card:hover .forum-icon {
  transform: scale(1.1);
}

/* Forum Info */
.forum-info {
  min-width: 0;
}

.forum-name {
  margin: 0 0 8px 0;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
}

.forum-name a {
  color: #003366;
  text-decoration: none;
  transition: color 0.2s ease;
}

.forum-name a:hover {
  color: #4A90E2;
}

.forum-desc {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Forum Stats */
.forum-stats {
  display: flex;
  gap: 20px;
  padding: 0 20px;
  border-left: 1px solid #e0e0e0;
}

.forum-stats .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #003366;
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* Forum Last Post */
.forum-last-post {
  min-width: 180px;
  text-align: right;
  padding-left: 20px;
  border-left: 1px solid #e0e0e0;
}

.last-post-info {
  font-size: 0.85rem;
}

.last-post-label {
  display: block;
  color: #999;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.last-post-time {
  display: block;
  color: #333;
  font-weight: 600;
  margin-bottom: 4px;
}

.last-post-author {
  color: #666;
}

.last-post-author a {
  color: #4A90E2;
  text-decoration: none;
}

.last-post-author a:hover {
  text-decoration: underline;
}

.no-posts {
  color: #999;
  font-style: italic;
  font-size: 0.9rem;
}

/* ==========================================================================
   Forum Topic List
   ========================================================================== */

.forum-topic-list {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Forum Topic Header & Actions */
.forum-topic-header {
  padding: 20px;
  background: #f8f9fa;
  border-bottom: 2px solid #e0e0e0;
  display: flex;
  justify-content: flex-end;
}

.forum-actions {
  display: flex;
  gap: 10px;
}

/* New Topic Button */
.btn-new-topic {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #28a745 0%, #218838 100%);
  color: #fff !important;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
}

.btn-new-topic:hover {
  background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
  text-decoration: none !important;
}

.btn-new-topic:active {
  transform: translateY(0);
}

.btn-new-topic .icon-plus {
  flex-shrink: 0;
}

/* Topics Table */
.topics-wrapper {
  overflow-x: auto;
}

.topics-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.topics-table thead {
  background: #f8f9fa;
  border-bottom: 2px solid #e0e0e0;
}

.topics-table th {
  padding: 16px 12px;
  text-align: left;
  font-weight: 700;
  color: #003366;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
}

.topics-table th.topics-icon {
  width: 50px;
  text-align: center;
}

.topics-table th.topics-replies,
.topics-table th.topics-views {
  width: 80px;
  text-align: center;
}

.topics-table th.topics-last-reply {
  width: 200px;
}

/* Topic Row */
.topic-row {
  border-bottom: 1px solid #e0e0e0;
  transition: background 0.2s ease;
}

.topic-row:hover {
  background: #f8f9fa;
}

.topic-row.has-new-posts {
  background: #f0f8ff;
}

.topic-row.topic-sticky {
  background: #fff9e6;
  border-left: 3px solid #ffc107;
}

.topic-row.topic-locked {
  background: #f5f5f5;
  opacity: 0.8;
}

.topics-table td {
  padding: 16px 12px;
  vertical-align: middle;
  border: none;
}

/* Topic Icon Cell */
.topic-icon {
  text-align: center;
}

.topic-status-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f0f4f8;
  border-radius: 50%;
  color: #666;
  transition: all 0.3s ease;
}

.topic-status-icon.icon-new {
  background: linear-gradient(135deg, #28a745 0%, #218838 100%);
  color: #fff;
  box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
}

.topic-status-icon.icon-hot {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: #fff;
  box-shadow: 0 2px 6px rgba(255, 107, 107, 0.3);
}

.topic-status-icon.icon-locked {
  background: #999;
  color: #fff;
}

.topic-status-icon svg {
  width: 20px;
  height: 20px;
}

.topic-row:hover .topic-status-icon {
  transform: scale(1.1);
}

/* Topic Title Cell */
.topic-title {
  padding-right: 20px;
}

.topic-title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.topic-heading {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.topic-heading a {
  color: #003366;
  text-decoration: none;
  transition: color 0.2s ease;
}

.topic-heading a:hover {
  color: #4A90E2;
  text-decoration: underline;
}

.new-indicator {
  display: inline-block;
  padding: 2px 8px;
  background: #28a745;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Topic Meta */
.topic-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #666;
}

.topic-author a {
  color: #4A90E2;
  text-decoration: none;
  font-weight: 600;
}

.topic-author a:hover {
  text-decoration: underline;
}

.topic-separator {
  color: #ccc;
}

.topic-created {
  color: #999;
}

/* Topic Stats Cells */
.topic-replies,
.topic-views {
  text-align: center;
}

.topic-replies .stat-number,
.topic-views .stat-number {
  font-size: 1.2rem;
  font-weight: 700;
  color: #003366;
}

/* Topic Last Reply Cell */
.topic-last-reply {
  font-size: 0.85rem;
}

.last-reply-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.last-reply-time {
  font-weight: 600;
  color: #333;
}

.last-reply-author {
  color: #666;
}

.last-reply-author a {
  color: #4A90E2;
  text-decoration: none;
}

.last-reply-author a:hover {
  text-decoration: underline;
}

.no-replies {
  color: #999;
  font-style: italic;
  text-align: center;
}

/* ==========================================================================
   Individual Forum Topic Page (Node Display)
   ========================================================================== */

.node--type-forum {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.node--type-forum .node__title {
  font-size: 2rem;
  color: #003366;
  margin-bottom: 20px;
  line-height: 1.3;
}

.node--type-forum .node__meta {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
  font-size: 0.9rem;
  color: #666;
}

.node--type-forum .author-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.node--type-forum .author-info a {
  color: #4A90E2;
  font-weight: 600;
  text-decoration: none;
}

.node--type-forum .author-info a:hover {
  text-decoration: underline;
}

.node--type-forum .post-date {
  color: #999;
}

.node--type-forum .node__content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
}

.node--type-forum .node__content p {
  margin-bottom: 1rem;
}

.node--type-forum .node__content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 20px 0;
}

/* ==========================================================================
   Forum Comments/Replies
   ========================================================================== */

.comment-wrapper,
.forum-comments {
  margin-top: 40px;
}

.comment-wrapper .title,
.forum-comments-title {
  font-size: 1.5rem;
  color: #003366;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
}

.comment,
.forum-comment {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.comment:hover,
.forum-comment:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-color: #4A90E2;
}

.comment__meta,
.comment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 15px;
  margin-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.comment__author,
.comment-author {
  font-weight: 700;
  color: #003366;
}

.comment__author a,
.comment-author a {
  color: #003366;
  text-decoration: none;
}

.comment__author a:hover,
.comment-author a:hover {
  color: #4A90E2;
  text-decoration: underline;
}

.comment__time,
.comment-time {
  color: #999;
  font-size: 0.85rem;
}

.comment__content,
.comment-body {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
}

.comment__content p,
.comment-body p {
  margin-bottom: 1rem;
}

.comment__links,
.comment-links {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
}

.comment__links a,
.comment-links a {
  display: inline-block;
  margin-right: 15px;
  color: #4A90E2;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.comment__links a:hover,
.comment-links a:hover {
  text-decoration: underline;
}

/* Indented Replies */
.comment--level-1,
.indented {
  margin-left: 40px;
  border-left: 3px solid #4A90E2;
}

.comment--level-2 {
  margin-left: 80px;
}

/* ==========================================================================
   Forum Empty State
   ========================================================================== */

.forum-empty {
  text-align: center;
  padding: 60px 20px;
  background: #f8f9fa;
  border-radius: 8px;
  margin: 30px 0;
}

.forum-empty .empty-icon {
  margin-bottom: 20px;
  color: #ccc;
}

.forum-empty .empty-message {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 30px;
}

/* ==========================================================================
   Forum Pagination
   ========================================================================== */

.forum-pager {
  margin: 30px 0;
  padding: 20px 0;
  border-top: 2px solid #e0e0e0;
}

/* Reuse global pager styles but can add forum-specific overrides here */

/* ==========================================================================
   Forum Topic Teaser (for lists)
   ========================================================================== */

.forum-topic-teaser {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.forum-topic-teaser:hover {
  box-shadow: 0 4px 12px rgba(0, 51, 102, 0.1);
  border-color: #4A90E2;
  transform: translateY(-2px);
}

.topic-teaser-wrapper {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 15px;
  align-items: center;
}

.forum-topic-teaser .topic-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.forum-topic-teaser .topic-icon svg {
  width: 24px;
  height: 24px;
  color: #4A90E2;
}

.forum-topic-teaser .topic-content {
  min-width: 0;
}

.forum-topic-teaser .topic-title {
  margin: 0 0 8px 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.forum-topic-teaser .topic-title a {
  color: #003366;
  text-decoration: none;
}

.forum-topic-teaser .topic-title a:hover {
  color: #4A90E2;
  text-decoration: underline;
}

.forum-topic-teaser .topic-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #666;
}

.forum-topic-teaser .topic-author a {
  color: #4A90E2;
  text-decoration: none;
  font-weight: 600;
}

.forum-topic-teaser .topic-separator {
  color: #ccc;
}

.forum-topic-teaser .topic-excerpt {
  margin-top: 10px;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

.forum-topic-teaser .topic-stats {
  display: flex;
  gap: 15px;
  padding-left: 15px;
  border-left: 1px solid #e0e0e0;
}

.forum-topic-teaser .stat-item {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #666;
  font-size: 0.9rem;
}

.forum-topic-teaser .stat-item svg {
  color: #999;
}

.forum-topic-teaser .stat-value {
  font-weight: 600;
  color: #003366;
}

/* ==========================================================================
   Forum Responsive Design
   ========================================================================== */

@media (max-width: 992px) {
  .forum-card {
    grid-template-columns: 50px 1fr auto;
    gap: 15px;
  }

  .forum-stats {
    grid-column: 2 / 4;
    justify-content: flex-start;
    border-left: none;
    border-top: 1px solid #e0e0e0;
    padding: 15px 0 0 0;
    margin-top: 15px;
  }

  .forum-last-post {
    grid-column: 2 / 4;
    text-align: left;
    border-left: none;
    border-top: 1px solid #e0e0e0;
    padding: 15px 0 0 0;
    margin-top: 15px;
  }

  .topics-table th.topics-last-reply {
    width: auto;
  }
}

@media (max-width: 768px) {
  .forum-header {
    padding: 20px 15px;
  }

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

  .forum-description {
    font-size: 1rem;
  }

  /* Stack forum cards vertically */
  .forum-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .forum-icon-wrapper {
    justify-content: flex-start;
  }

  .forum-stats,
  .forum-last-post {
    grid-column: 1;
    justify-content: flex-start;
    text-align: left;
  }

  /* Simplify topics table for mobile */
  .topics-table th.topics-icon,
  .topics-table td.topic-icon {
    display: none;
  }

  .topics-table th.topics-replies,
  .topics-table th.topics-views,
  .topics-table td.topic-replies,
  .topics-table td.topic-views {
    display: none;
  }

  .topics-table th.topics-last-reply,
  .topics-table td.topic-last-reply {
    display: none;
  }

  .topic-title {
    padding-right: 0;
  }

  .topic-heading {
    font-size: 1rem;
  }

  .topic-meta {
    flex-wrap: wrap;
  }

  .forum-topic-header {
    padding: 15px;
  }

  .btn-new-topic {
    padding: 10px 18px;
    font-size: 0.95rem;
  }

  .node--type-forum {
    padding: 20px 15px;
  }

  .node--type-forum .node__title {
    font-size: 1.5rem;
  }

  .comment,
  .forum-comment {
    padding: 15px;
  }

  .comment--level-1,
  .indented {
    margin-left: 20px;
  }

  .comment--level-2 {
    margin-left: 40px;
  }

  /* Forum topic teaser mobile */
  .topic-teaser-wrapper {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .forum-topic-teaser .topic-stats {
    border-left: none;
    border-top: 1px solid #e0e0e0;
    padding: 10px 0 0 0;
    margin-top: 10px;
  }
}

@media (max-width: 576px) {
  .forum-overview {
    padding: 15px;
  }

  .forum-title {
    font-size: 1.75rem;
  }

  .forum-name {
    font-size: 1.1rem;
  }

  .topics-table th,
  .topics-table td {
    padding: 12px 8px;
  }

  .btn-new-topic {
    width: 100%;
    justify-content: center;
  }

  .forum-topic-header {
    padding: 12px;
  }
}

/* ==========================================================================
   Forum Icon Variations
   ========================================================================== */

/* Generic forum icon styling */
.forum-icon svg,
.topic-status-icon svg,
.topic-icon svg {
  display: block;
}

/* Icon color states */
.icon-new svg {
  color: #fff;
}

.icon-hot svg {
  color: #fff;
}

.icon-locked svg {
  color: #fff;
}

.icon-sticky svg {
  color: #ffc107;
}

/* ==========================================================================
   Forum Form Styling (Add/Edit Topic)
   ========================================================================== */

.forum-form,
form.node-forum-form {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin: 0 auto;
}

.forum-form .form-item,
form.node-forum-form .form-item {
  margin-bottom: 25px;
}

.forum-form label,
form.node-forum-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: #003366;
  font-size: 1rem;
}

.forum-form input[type="text"],
.forum-form textarea,
form.node-forum-form input[type="text"],
form.node-forum-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.forum-form input[type="text"]:focus,
.forum-form textarea:focus,
form.node-forum-form input[type="text"]:focus,
form.node-forum-form textarea:focus {
  outline: none;
  border-color: #4A90E2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.forum-form textarea,
form.node-forum-form textarea {
  min-height: 200px;
  resize: vertical;
}

.forum-form .form-actions,
form.node-forum-form .form-actions {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #e0e0e0;
  display: flex;
  gap: 10px;
}

.forum-form button[type="submit"],
.forum-form input[type="submit"],
form.node-forum-form button[type="submit"],
form.node-forum-form input[type="submit"] {
  padding: 12px 30px;
  background: linear-gradient(135deg, #28a745 0%, #218838 100%);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
}

.forum-form button[type="submit"]:hover,
.forum-form input[type="submit"]:hover,
form.node-forum-form button[type="submit"]:hover,
form.node-forum-form input[type="submit"]:hover {
  background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

/* ==========================================================================
   End Forum Styling
   ========================================================================== */

/* View header styling */
.view-yit-classifieds .view-header {
  margin-bottom: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #4A90E2;
}

.view-yit-classifieds .view-header p {
  margin: 0 0 15px 0;
  color: #555;
  font-size: 1.05rem;
  line-height: 1.6;
}

.view-yit-classifieds .view-header .btn-primary {
  background: #28a745;
  border-color: #28a745;
  padding: 10px 24px;
  font-weight: 600;
  border-radius: 4px;
  display: inline-block;
  color: #fff;
  text-decoration: none;
  transition: all 0.2s ease;
}

.view-yit-classifieds .view-header .btn-primary:hover {
  background: #218838;
  border-color: #218838;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
  text-decoration: none;
}

/* Empty state */
.view-yit-classifieds .view-empty {
  text-align: center;
  padding: 60px 20px;
  background: #f8f9fa;
  border-radius: 8px;
  margin: 30px 0;
}

.view-yit-classifieds .view-empty p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 20px;
}

.view-yit-classifieds .view-empty a {
  display: inline-block;
  padding: 12px 28px;
  background: #28a745;
  color: #fff !important;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.view-yit-classifieds .view-empty a:hover {
  background: #218838;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
  text-decoration: none !important;
}
