/* Saillove - Gridlove-inspired Grid Layout for Sailing Blog */

@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,300italic,400,400italic,600");
@import url("fontawesome-all.min.css");

/* CSS Reset & Base Styles */

html, body, div, span, applet, object,
iframe, h1, h2, h3, h4, h5, h6, p, blockquote,
pre, a, abbr, acronym, address, big, cite,
code, del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var, b,
u, i, center, dl, dt, dd, ol, ul, li, fieldset,
form, label, legend, table, caption, tbody,
tfoot, thead, tr, th, td, article, aside,
canvas, details, embed, figure, figcaption,
footer, header, hgroup, menu, nav, output, ruby,
section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

html {
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  background: #f0f4f4;
  color: #5b5b5b;
  font-size: 15pt;
  line-height: 1.85em;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 300;
  -webkit-text-size-adjust: none;
}

body.is-preload *, body.is-preload *:before, body.is-preload *:after {
  -moz-animation: none !important;
  -webkit-animation: none !important;
  -ms-animation: none !important;
  animation: none !important;
  -moz-transition: none !important;
  -webkit-transition: none !important;
  -ms-transition: none !important;
  transition: none !important;
}

ol, ul {
  list-style: none;
}

a {
  color: #3d9ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #2d8cbc;
}

strong, b {
  font-weight: 600;
  color: #3c3b3b;
}

em, i {
  font-style: italic;
}

p {
  margin: 0 0 2em 0;
}

h1, h2, h3, h4, h5, h6 {
  color: #3c3b3b;
  font-weight: 600;
  line-height: 1.5em;
  margin: 0 0 0.75em 0;
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
  color: inherit;
  text-decoration: none;
}

h2 {
  font-size: 1.75em;
  line-height: 1.35em;
}

h3 {
  font-size: 1.35em;
  line-height: 1.5em;
}

h4 {
  font-size: 1.1em;
  line-height: 1.5em;
}

h5 {
  font-size: 0.9em;
  line-height: 1.5em;
}

h6 {
  font-size: 0.7em;
  line-height: 1.5em;
}

/* Page Wrapper */

#page-wrapper {
  background: #f0f4f4;
}

/* Navigation */

#nav {
  background: #fff;
  padding: 1em 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  margin-bottom: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

#nav .nav-container {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

#nav .logo {
  margin-right: 2em;
  display: flex;
  align-items: center;
}

#nav .logo img {
  height: 60px;
  width: auto;
}

#nav > .nav-container > ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: flex-end;
}

#nav > .nav-container > ul > li {
  display: inline-block;
  margin: 0 0.3em;
  position: relative;
}

#nav > .nav-container > ul > li > a {
  color: #000;
  text-decoration: none;
  font-size: 0.85em;
  font-weight: 600;
  padding: 0.6em 0.5em;
  display: block;
}

#nav > .nav-container > ul > li > a:hover {
  color: #3d9ccc;
}

/* Dropdown submenu styling */
#nav ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff !important;
  min-width: 220px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-top: 0;
  padding: 0.75em 0.5em;
  border-radius: 6px;
  z-index: 1000;
}

#nav ul li:hover > ul,
#nav ul ul:hover {
  display: block !important;
}

#nav ul ul li {
  display: block;
  margin: 0.2em 0;
}

#nav ul ul li a {
  color: #5b5b5b !important;
  background: #ffffff !important;
  padding: 0.85em 1.5em;
  display: block;
  font-size: 0.95em;
  border-radius: 4px;
}

#nav ul ul li a:hover {
  background: #f5f5f5 !important;
}

/* Hamburger Menu Button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: #000;
  margin: 3px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger animation when open */
.nav-open .hamburger .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-open .hamburger .hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-open .hamburger .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Banner (Homepage) */

.homepage #page-wrapper {
  padding-top: 0;
}

/* Inner Hero */

.inner {
  text-align: center;
  padding: 4em 2em 2em 2em;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.inner h1 {
  color: #fff;
  font-size: 3em;
  font-weight: 300;
  margin: 0 0 0.25em 0;
}

.inner h1 a {
  color: inherit;
}

.inner hr {
  width: 6em;
  border: 0;
  border-top: solid 2px rgba(255,255,255,0.25);
  margin: 2em auto;
}

.inner p {
  font-size: 1.25em;
  margin: 0;
  line-height: 1.5em;
}

.inner .button {
  display: inline-block;
  margin-top: 2em;
  padding: 1em 2.5em;
  background: rgba(255,255,255,0.15);
  border: solid 2px rgba(255,255,255,0.5);
  color: #fff;
  font-weight: 600;
  border-radius: 0.35em;
  text-decoration: none;
  transition: all 0.3s ease;
}

.inner .button:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.75);
}

/* Footer */

#footer {
  background: #fff;
  padding: 4em 0 2em 0;
  margin-top: 4em;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
}

#footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2em;
}

#footer .row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

#footer .col-4 {
  flex: 0 0 33.333%;
  max-width: 33.333%;
  padding: 0 15px;
}

#footer .col-12 {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0 15px;
}

#footer header h2 {
  font-size: 1.25em;
  margin-bottom: 1em;
}

#footer header h2.circled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#footer ul.divided {
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer ul.divided > li {
  border-top: solid 1px rgba(0,0,0,0.1);
  padding: 1em 0;
}

#footer ul.divided > li:first-child {
  border-top: 0;
  padding-top: 0;
}

#footer .tweet {
  font-size: 0.9em;
}

#footer .timestamp {
  display: block;
  font-size: 0.8em;
  color: #999;
  margin-top: 0.5em;
}

#footer .image.fit img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

#footer hr {
  border: 0;
  border-top: solid 1px rgba(0,0,0,0.1);
  margin: 3em 0;
}

#footer .contact h3 {
  margin-bottom: 1em;
}

#footer .icons {
  display: flex;
  gap: 1em;
  list-style: none;
  padding: 0;
  margin: 1em 0;
}

#footer .icons li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5em;
  height: 2.5em;
  border-radius: 50%;
  background: #3d9ccc;
  color: #fff;
  transition: background 0.3s ease;
}

#footer .icons li a:hover {
  background: #2d8cbc;
}

#footer .copyright {
  text-align: center;
  margin-top: 2em;
}

#footer .copyright ul.menu {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9em;
  color: #999;
}

/* Grid System */

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.row.gtr-25 {
  margin: 0 -6px;
}

.row.gtr-25 > * {
  padding: 0 6px;
}

.col-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 15px;
}

.col-12-mobile {
  flex: 0 0 100%;
  max-width: 100%;
}

/* Container */

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

/* Wrapper Styles */

.wrapper {
  padding: 0;
}

.wrapper.style1 {
  background: #fff;
}

.wrapper.style2 {
  background: #f0f4f4;
}

/* Mobile Responsive */

@media screen and (max-width: 736px) {
  #footer .col-4 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 2em;
  }

  #footer .col-4:last-child {
    margin-bottom: 0;
  }

  .inner {
    padding: 4em 1.5em 3em 1.5em;
  }

  .inner h1 {
    font-size: 2em;
  }

  .inner p {
    font-size: 1em;
  }

  #nav {
    padding: 0.75em 0;
  }

  #nav .nav-container {
    flex-wrap: wrap;
  }

  .hamburger {
    display: flex;
  }

  #nav > .nav-container > ul {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    padding: 1em 0 0 0;
    margin-top: 1em;
    border-top: 1px solid #eee;
  }

  #nav.nav-open > .nav-container > ul {
    display: flex;
  }

  #nav > .nav-container > ul > li {
    display: block;
    margin: 0;
  }

  #nav > .nav-container > ul > li > a {
    padding: 0.75em 0;
    border-bottom: 1px solid #f0f0f0;
  }

  #nav > .nav-container > ul > li:last-child > a {
    border-bottom: none;
  }

  /* Mobile submenu styling */
  #nav ul ul {
    position: static;
    box-shadow: none;
    background: #f9f9f9 !important;
    margin: 0;
    padding: 0.5em 0 0.5em 1em;
    border-radius: 0;
    min-width: auto;
  }

  #nav ul ul li a {
    padding: 0.6em 1em;
    font-size: 0.9em;
  }

  /* Show submenus by default on mobile when parent is clicked */
  #nav ul li > ul {
    display: block !important;
  }
}

/* Grid Container */
.saillove-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 40px 20px;
}

/* Featured Hero Post */
.featured-hero {
  margin-bottom: 50px;
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.featured-hero .hero-image {
  position: relative;
  overflow: hidden;
  height: 500px;
}

.featured-hero .hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.featured-hero:hover .hero-image img {
  opacity: 0.7;
}

.featured-hero .hero-content {
  padding: 40px;
}

.featured-hero .hero-meta {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 14px;
  color: #888;
  flex-wrap: wrap;
}

.featured-hero .category-badge {
  display: inline-block;
  padding: 2px 8px;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.6;
  margin: 2px;
}

.featured-hero .hero-meta .date {
  margin-left: 15px;
}

.featured-hero h2 {
  font-size: 36px;
  line-height: 1.3;
  margin-bottom: 15px;
  font-weight: 600;
  color: #2c2c2c;
}

.featured-hero h2 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.featured-hero:hover h2 a {
  color: #3d9ccc;
}

.featured-hero .hero-description {
  font-size: 18px;
  line-height: 1.6;
  color: #5b5b5b;
  margin-bottom: 20px;
}

.featured-hero .hero-excerpt {
  font-size: 16px;
  line-height: 1.7;
  color: #777;
  margin-bottom: 25px;
}

.featured-hero .read-more {
  display: inline-block;
  padding: 12px 30px;
  background: #3d9ccc;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.featured-hero .read-more:hover {
  background: #2d8cbc;
}

/* Horizontal Cards Grid */
.horizontal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-bottom: 50px;
}

.horizontal-card {
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: row;
  height: 250px;
}

.horizontal-card .card-image-link-wrapper {
  flex: 0 0 300px;
  overflow: hidden;
  display: block;
  position: relative;
}

.horizontal-card .card-image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.horizontal-card .card-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.horizontal-card:hover .card-image-link img {
  opacity: 0.7;
}

.horizontal-card .card-tags {
  margin-bottom: 10px;
}

.horizontal-card .card-category {
  display: inline-block;
  padding: 2px 8px;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.6;
  margin: 0 2px;
}

.horizontal-card .card-content {
  flex: 1;
  padding: 25px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.horizontal-card .card-content h3 {
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 12px;
  font-weight: 600;
  color: #2c2c2c;
}

.horizontal-card .card-content h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.horizontal-card:hover .card-content h3 a {
  color: #3d9ccc;
}

.horizontal-card .card-summary {
  font-size: 14px;
  line-height: 1.6;
  color: #777;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

/* Masonry Grid Layout */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 300px;
  gap: 30px;
  margin-bottom: 50px;
}

/* Post Card */
.post-card {
  position: relative;
  overflow: hidden;
}

/* Varying widths for different posts - repeating 9-item pattern */
/* Row 1: Wide, Medium, Small */
.post-card:nth-child(9n+1) {
  grid-column: span 5;
}

.post-card:nth-child(9n+2) {
  grid-column: span 4;
}

.post-card:nth-child(9n+3) {
  grid-column: span 3;
}

/* Row 2: Small, Wide, Medium */
.post-card:nth-child(9n+4) {
  grid-column: span 3;
}

.post-card:nth-child(9n+5) {
  grid-column: span 5;
}

.post-card:nth-child(9n+6) {
  grid-column: span 4;
}

/* Row 3: Medium, Small, Wide */
.post-card:nth-child(9n+7) {
  grid-column: span 4;
}

.post-card:nth-child(9n+8) {
  grid-column: span 3;
}

.post-card:nth-child(9n+9) {
  grid-column: span 5;
}

.post-card .card-link {
  display: block;
  text-decoration: none;
  height: 100%;
}

.post-card .card-image {
  position: relative;
  overflow: hidden;
  height: 100%;
  border-radius: 0;
}

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

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

.post-card .card-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
  pointer-events: none;
}

.post-card .card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 20px;
  z-index: 1;
}

.post-card .card-tags {
  margin-bottom: 10px;
}

.post-card .card-category {
  display: inline-block;
  padding: 2px 8px;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.6;
  margin: 0 2px;
}

.post-card h3 {
  font-size: 20px;
  line-height: 1.3;
  margin: 0;
  font-weight: 600;
  color: #fff;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 10px;
}

.section-header p {
  font-size: 16px;
  color: #888;
}

/* View More Button */
.view-more-btn {
  display: inline-block;
  padding: 15px 40px;
  background: #3d9ccc;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.3s ease;
}

.view-more-btn:hover {
  background: #2d8cbc;
}

/* Post Detail Page */
.post-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 40px;
  align-items: start;
}

.post-card-detail {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
}

.post-header {
  padding: 40px 60px 30px 60px;
}

.post-tags {
  margin-bottom: 15px;
}

.post-tag {
  display: inline-block;
  padding: 4px 12px;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 5px 5px 0;
}

.post-title {
  font-size: 42px;
  line-height: 1.2;
  margin: 0;
  font-weight: 600;
  color: #2c2c2c;
}

.post-featured-image {
  width: 100%;
  overflow: hidden;
}

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

.post-content {
  padding: 40px 60px 60px 60px;
  font-size: 17px;
  line-height: 1.8;
  color: #3c3c3c;
}

.post-content p {
  margin-bottom: 1.5em;
}

.post-content h2 {
  font-size: 32px;
  margin-top: 2em;
  margin-bottom: 0.75em;
}

.post-content h3 {
  font-size: 24px;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
}

.post-content img {
  max-width: 100%;
  height: auto;
  margin: 2em 0;
}

.post-content a {
  color: #3d9ccc;
  text-decoration: underline;
}

.post-content a:hover {
  color: #2d8cbc;
}

/* Post Sidebar */
.post-sidebar {
  /* Scrolls with content */
}

.sidebar-card {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 30px;
}

.sidebar-title {
  font-size: 24px;
  font-weight: 600;
  color: #2c2c2c;
  margin: 0 0 20px 0;
}

.sidebar-posts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-post {
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 20px;
}

.sidebar-post:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-post-link {
  display: flex;
  gap: 15px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.sidebar-post-link:hover {
  opacity: 0.8;
}

.sidebar-post-image {
  flex: 0 0 100px;
  height: 70px;
  overflow: hidden;
  border-radius: 4px;
}

.sidebar-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-post-content {
  flex: 1;
}

.sidebar-post-title {
  font-size: 16px;
  font-weight: 600;
  color: #2c2c2c;
  margin: 0 0 5px 0;
  line-height: 1.3;
}

.sidebar-post-date {
  font-size: 13px;
  color: #888;
}

/* Subscribe Card */
.subscribe-card {
  margin-top: 30px;
}

.subscribe-description {
  font-size: 15px;
  color: #666;
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.subscribe-input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  font-size: 15px;
  font-family: 'Source Sans Pro', sans-serif;
  transition: border-color 0.3s ease;
}

.subscribe-input:focus {
  outline: none;
  border-color: #3d9ccc;
}

.subscribe-button {
  width: 100%;
  padding: 12px 20px;
  background: #3d9ccc;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Source Sans Pro', sans-serif;
  cursor: pointer;
  transition: background 0.3s ease;
}

.subscribe-button:hover {
  background: #2d8cbc;
}

/* Social Media Card */
.social-card {
  margin-top: 30px;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #2c2c2c;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
}

.social-link:hover {
  opacity: 0.7;
}

.social-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.social-instagram .social-icon {
  fill: #E4405F;
}

.social-facebook .social-icon {
  fill: #1877F2;
}

.social-mastodon .social-icon {
  fill: #6364FF;
}

.social-pixelfed .social-icon {
  fill: #E91E63;
}

.social-link:hover .social-icon {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

/* Responsive Design */
@media screen and (max-width: 980px) {
  .horizontal-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .horizontal-card {
    height: 220px;
  }

  .horizontal-card .card-image-link-wrapper {
    flex: 0 0 250px;
  }

  .horizontal-card .card-content {
    padding: 20px;
  }

  .posts-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 25px;
  }

  .post-card {
    grid-column: span 6 !important;
  }

  .featured-hero .hero-image {
    height: 350px;
  }

  .featured-hero h2 {
    font-size: 28px;
  }

  .featured-hero .hero-content {
    padding: 30px;
  }
}

@media screen and (max-width: 736px) {
  .saillove-container {
    padding: 20px 15px;
  }

  .horizontal-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .horizontal-card {
    flex-direction: column;
    height: auto;
  }

  .horizontal-card .card-image-link-wrapper {
    flex: none;
    height: 180px;
  }

  .horizontal-card .card-content {
    padding: 20px;
  }

  .horizontal-card .card-content h3 {
    font-size: 18px;
  }

  .posts-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
  }

  .post-card {
    grid-column: span 12 !important;
  }

  .featured-hero {
    margin-bottom: 30px;
  }

  .featured-hero .hero-image {
    height: 250px;
  }

  .featured-hero .hero-content {
    padding: 20px;
  }

  .post-layout {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 30px;
  }

  .post-sidebar {
    position: static;
  }

  .sidebar-card {
    padding: 20px;
  }

  .post-header {
    padding: 30px 20px 20px 20px;
  }

  .post-title {
    font-size: 28px;
  }

  .post-content {
    padding: 30px 20px 40px 20px;
    font-size: 16px;
  }

  .featured-hero h2 {
    font-size: 24px;
  }

  .featured-hero .hero-description {
    font-size: 16px;
  }

  .post-card .card-image {
    height: 200px;
  }

  .post-card h3 {
    font-size: 20px;
  }

  .section-header h2 {
    font-size: 26px;
  }
}

/* Sidebar Layout for Archive Pages */
.saillove-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.saillove-main {
  min-width: 0;
}

.saillove-sidebar {
  background: #fff;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  height: fit-content;
  position: sticky;
  top: 20px;
}

.saillove-sidebar .widget {
  margin-bottom: 30px;
}

.saillove-sidebar .widget:last-child {
  margin-bottom: 0;
}

.saillove-sidebar .widget-title {
  font-size: 18px;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #3d9ccc;
}

@media screen and (max-width: 980px) {
  .saillove-layout {
    grid-template-columns: 1fr;
  }

  .saillove-sidebar {
    position: static;
  }
}

/* Tag Colors */
.tag-sailing { background: #3d9ccc; }
.tag-greece { background: #c0392b; }
.tag-italy { background: #27ae60; }
.tag-spain { background: #f39c12; }
.tag-netherlands { background: #e67e22; }
.tag-random { background: #95a5a6; }
.tag-default { background: #9b59b6; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 50px;
  padding: 20px 0;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 10px 18px;
  background: #fff;
  color: #5b5b5b;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

.pagination a:hover {
  background: #3d9ccc;
  color: #fff;
  border-color: #3d9ccc;
}

.pagination .current {
  background: #3d9ccc;
  color: #fff;
  border-color: #3d9ccc;
}

/* Footer */
#footer {
  background: #000;
  color: #fff;
  padding: 60px 0 30px 0;
  margin-top: 80px;
}

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

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-left h3 {
  font-size: 28px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 15px 0;
}

.footer-left p {
  font-size: 16px;
  color: #bbb;
  line-height: 1.6;
  margin: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.contact-input,
.contact-textarea {
  width: 100%;
  padding: 12px 15px;
  background: #1a1a1a;
  border: 2px solid #333;
  border-radius: 4px;
  color: #fff;
  font-size: 15px;
  font-family: 'Source Sans Pro', sans-serif;
  transition: border-color 0.3s ease;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
  color: #666;
}

.contact-input:focus,
.contact-textarea:focus {
  outline: none;
  border-color: #3d9ccc;
}

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

.contact-button {
  width: 100%;
  padding: 14px 20px;
  background: #3d9ccc;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Source Sans Pro', sans-serif;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-button:hover {
  background: #2d8cbc;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #333;
}

.footer-bottom p {
  color: #666;
  font-size: 14px;
  margin: 0;
}

/* Sailing Map */
.sailing-map-container {
  margin: 40px 0 50px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#sailing-map {
  width: 100%;
  height: 500px;
}

/* Style map attribution */
#sailing-map .leaflet-control-attribution {
  font-weight: 600;
  margin-bottom: 0;
}

@media screen and (max-width: 736px) {
  #sailing-map {
    height: 350px;
  }
}

/* Seasons Overview Page */
.seasons-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.seasons-header {
  text-align: center;
  margin-bottom: 60px;
}

.seasons-header h1 {
  font-size: 48px;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 15px;
}

.seasons-header p {
  font-size: 20px;
  color: #777;
  line-height: 1.6;
  margin: 0;
}

.seasons-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 40px;
}

.season-card {
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.season-link {
  display: flex;
  text-decoration: none;
  height: 100%;
}

.season-image {
  position: relative;
  overflow: hidden;
  flex: 0 0 400px;
  align-self: stretch;
}

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

.season-card:hover .season-image img {
  transform: scale(1.1);
}

.season-overlay {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.season-title {
  font-size: 36px;
  font-weight: 600;
  color: #2c2c2c;
  margin: 0 0 15px 0;
  line-height: 1.2;
}

.season-description {
  font-size: 18px;
  color: #5b5b5b;
  line-height: 1.6;
  margin: 0;
}

/* Seasons Responsive */
@media screen and (max-width: 980px) {
  .season-image {
    flex: 0 0 300px;
    align-self: stretch;
  }

  .season-overlay {
    padding: 30px;
  }

  .season-title {
    font-size: 30px;
  }

  .season-description {
    font-size: 16px;
  }
}

@media screen and (max-width: 736px) {
  .seasons-grid {
    gap: 20px;
  }

  .seasons-container {
    padding: 30px 15px;
  }

  .seasons-header {
    margin-bottom: 40px;
  }

  .seasons-header h1 {
    font-size: 32px;
  }

  .seasons-header p {
    font-size: 18px;
  }

  .season-link {
    flex-direction: column;
  }

  .season-image {
    flex: none;
    height: 250px;
  }

  .season-overlay {
    padding: 25px;
  }

  .season-title {
    font-size: 26px;
  }

  .season-description {
    font-size: 16px;
  }
}

/* Map Embeds */
.map-embed {
  margin: 2em 0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Video Embeds */
.video-embed {
  margin: 2em 0;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  background: #000;
  border-radius: 4px;
}

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

/* Footer Responsive */
@media screen and (max-width: 980px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #footer {
    padding: 40px 0 20px 0;
    margin-top: 60px;
  }

  .footer-left h3 {
    font-size: 24px;
  }
}
