/* SSAC1 - Ocean Depths: Site-wide styles */

/* Reset and base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { 
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  line-height: 1.7;
  color: #1a2332;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  background: #f0f6ff;
  overflow-x: clip;
  max-width: 100vw;
}

p {
  margin-bottom: 1.5rem;
}

ul, ol { margin-left: 0; padding-left: 1.8em; line-height: 1.8; }

a {
  color: #085fc9;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

/* Cookie consent notice */
.ssac-cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #085fc9;
  color: #ffffff;
  padding: 20px 28px;
  box-shadow: 0 -4px 24px rgba(8, 95, 201, 0.3);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 15px;
  line-height: 1.6;
  animation: slideUp 0.3s ease-out;
}

.ssac-cookie-notice__content {
  flex: 1 1 auto;
}

.ssac-cookie-notice__content p {
  margin: 0;
  font-size: 15px;
}

.ssac-cookie-notice__link {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.ssac-cookie-notice__link:hover {
  opacity: 0.8;
}

.ssac-cookie-notice__actions {
  flex: 0 0 auto;
}

.ssac-cookie-notice__button {
  background: #ffffff;
  color: #085fc9;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.ssac-cookie-notice__button:hover,
.ssac-cookie-notice__button:focus {
  background: #f0f6ff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  outline: none;
}

.ssac-cookie-notice__button:active {
  transform: scale(0.98);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(100%);
  }
}

@media (max-width: 768px) {
  .ssac-cookie-notice {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px 20px;
  }

  .ssac-cookie-notice__button {
    width: 100%;
  }
}

/* Map */
.mapframe { display: flex; justify-content: left; padding-left: 0px; margin: 32px auto; max-width: 100%; }
.mapframe iframe { max-width: 100%; border-radius: 10px; box-shadow: 0 4px 20px rgba(0,180,216,0.15); }

/* WordPress alignment classes */
.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.alignleft {
  float: left;
  margin-right: 1.5em;
  margin-bottom: 1em;
}

.alignright {
  float: right;
  margin-left: 1.5em;
  margin-bottom: 1em;
}

/* Embedded content (YouTube, etc.) */
.wp-block-embed.aligncenter,
.wp-block-embed-youtube.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

.wp-block-embed.aligncenter > .wp-block-embed__wrapper,
.wp-block-embed-youtube.aligncenter > .wp-block-embed__wrapper {
  display: flex;
  justify-content: center;
}

.wp-block-embed iframe {
  max-width: 100%;
  height: auto;
}

/* Responsive embeds */
.wp-block-embed__wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
}

.wp-block-embed__wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Footer */
.site-footer {
  background: linear-gradient(135deg, #085fc9 0%, #0d2040 100%);
  padding: 36px 0 20px;
  margin-top: 60px;
  border-top: 3px solid #085fc9;
  box-shadow: 0 -4px 24px rgba(8, 95, 201, 0.15);
}

.footer-findus { max-width: 1200px; margin: 0 auto 24px; padding: 0 32px; }
.footer-findus-inner {
  background: #085fc9;
  border: none;
  color: #ffffff;
  padding: 24px 32px;
  border-radius: 12px;
  text-align: center;
  backdrop-filter: blur(4px);
}

.footer-findus-inner h3 { margin: 0 0 10px; font-size: 20px; font-weight: 800; color: rgba(255,255,255,0.7); }
.footer-findus-inner p { margin: 0; line-height: 1.6; font-size: 15px; color: rgba(255,255,255,0.8); }

.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  display: grid; gap: 32px; grid-template-columns: 1fr; text-align: left;
}

.footer-col {
  background: none;
  padding: 0;
  border-radius: 0;
  border: none;
  transition: none;
}

.footer-col:hover {
  background: none;
  border-color: transparent;
}

.footer-col h3 {
  margin-bottom: 12px;
  color: rgba(255,255,255,0.7);
  font-size: 17px;
  font-weight: 800;
  padding-bottom: 8px;
  border-bottom: 2px solid #085fc9;
  display: inline-block;
}

.footer-col h4 { margin: 14px 0 6px; font-size: 15px; font-weight: 700; color: rgba(255,255,255,0.75); }
.footer-col p { margin: 4px 0; line-height: 1.5; color: rgba(255,255,255,0.7); font-size: 14px; }

.footer-social-list, .footer-links-list { list-style: none; padding: 0; margin: 0; }
.footer-social-list li, .footer-links-list li { margin: 4px 0; }

.footer-links-list a, .footer-social-list a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.footer-links-list a:hover, .footer-social-list a:hover { color: #085fc9; transform: translateX(4px); }
.footer-social-list .social-icon { width: 18px; height: 18px; opacity: 1; }
.footer-social-list a:hover .social-icon { opacity: 1; }

.footer-contact a { color: #ffffff; text-decoration: none; font-weight: 600; }
.footer-contact a:hover { text-decoration: underline; color: #085fc9; }

.site-footer .site-info {
  text-align: center; padding-top: 16px; margin-top: 20px;
  border-top: 1px solid rgba(8, 95, 201, 0.2);
  font-size: 13px; color: rgba(255,255,255,0.4);
}

@media (min-width: 769px) { .footer-inner { grid-template-columns: 0.9fr 0.8fr 1.3fr; } }
@media (max-width: 768px) {
  .footer-findus { padding: 0 20px; margin-bottom: 20px; }
  .footer-findus-inner { padding: 20px; }
  .footer-inner { padding: 0 20px; gap: 24px; }
  .footer-col { padding: 0; }
  .site-footer { padding: 28px 0 16px; }
}

/* Content wrappers */
.site-main { 
  max-width: 1280px; 
  margin: 0 auto; 
  padding: 50px 32px;
}
.site-main.home-full-bleed { 
  max-width: none; 
  padding: 0;
}
.content-area { 
  background: #ffffff; 
  padding: 36px; 
  border-radius: 16px; 
  box-shadow: 0 4px 24px rgba(0,180,216,0.07);
}

/* Category Archive Page */
.archive-header {
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 3px solid #085fc9;
}

.archive-title {
  color: #0a1628;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  margin-bottom: 16px;
  line-height: 1.2;
}

.archive-description {
  font-size: 17px;
  line-height: 1.7;
  color: #374151;
  max-width: 800px;
}

.category-posts {
  display: grid;
  gap: 32px;
  margin-bottom: 48px;
}

.category-post-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  background: #ffffff;
  padding: 28px;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 180, 216, 0.08);
  border: 1px solid rgba(8, 95, 201, 0.1);
  transition: all 0.3s ease;
}

.category-post-item:hover {
  box-shadow: 0 8px 32px rgba(0, 180, 216, 0.15);
  transform: translateY(-4px);
  border-color: #085fc9;
}

.category-post-item .post-thumbnail {
  overflow: hidden;
  border-radius: 8px;
  margin: 0;
}

.category-post-item .post-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.category-post-item:hover .post-thumbnail img {
  transform: scale(1.05);
}

.category-post-item .post-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-post-item .post-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.3;
}

.category-post-item .post-title a {
  color: #0a1628;
  text-decoration: none;
  transition: color 0.2s ease;
}

.category-post-item .post-title a:hover {
  color: #085fc9;
}

.category-post-item .post-meta {
  font-size: 14px;
  color: #6b7280;
  font-weight: 600;
}

.category-post-item .post-excerpt {
  font-size: 16px;
  line-height: 1.7;
  color: #374151;
}

.category-post-item .read-more {
  align-self: flex-start;
  margin-top: 8px;
}

.no-posts {
  text-align: center;
  font-size: 18px;
  color: #6b7280;
  padding: 60px 20px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 180, 216, 0.08);
}

/* Responsive category layout */
@media (min-width: 600px) {
  .category-post-item {
    grid-template-columns: 280px 1fr;
  }
}

@media (max-width: 599px) {
  .category-post-item .post-thumbnail {
    order: -1;
  }
  
  .archive-header {
    margin-bottom: 32px;
    padding-bottom: 16px;
  }
  
  .category-posts {
    gap: 24px;
    margin-bottom: 32px;
  }
  
  .category-post-item {
    padding: 20px;
  }
}

/* Utilities */
.read-more {
  display: inline-block;
  background: linear-gradient(135deg, #085fc9 0%, #0096b7 100%);
  color: rgba(255, 255, 255, 0.85);
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 8px;
  margin-top: 20px;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(0,180,216,0.35);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.read-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 180, 216, 0.6);
  background: linear-gradient(135deg, #085fc9 0%, #00b4d8 100%);
  color: rgba(255, 255, 255, 0.85);
}

/* Forms */
form:not(.um-form) {
  max-width: 850px; margin: 40px auto; background: #fff;
  padding: 36px; border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,180,216,0.1);
  border: 1px solid #085fc9;
}
form:not(.um-form):focus-within {
  box-shadow: 0 8px 30px rgba(0,180,216,0.2);
  border-color: #085fc9;
}
form label { display: block; margin-bottom: 8px; font-weight: 700; color: #0a1628; font-size: 15px; }
form input[type="text"], form input[type="email"], form input[type="tel"],
form input[type="url"], form input[type="password"], form textarea, form select {
  width: 100%; padding: 13px 15px; border: 2px solid #e0f0f8; border-radius: 8px;
  font-size: 15px; margin-bottom: 18px; background: #f7fbff; color: #1a2332;
  transition: all 0.2s ease; font-family: inherit;
}
form input:focus, form textarea:focus, form select:focus {
  border-color: #085fc9; outline: none; background: #fff;
  box-shadow: 0 0 0 3px rgba(0,180,216,0.15);
}
form button, form input[type="submit"] {
  background: linear-gradient(135deg, #085fc9 0%, #00b4d8 100%);
  color: #ffffff; padding: 14px 30px; border: none; border-radius: 8px;
  font-size: 16px; font-weight: 800; cursor: pointer; transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0,180,216,0.3); text-transform: uppercase; letter-spacing: 0.04em;
}
form button:hover, form input[type="submit"]:hover {
  background: linear-gradient(135deg, #085fc9 0%, #00b4d8 100%);
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,180,216,0.45);
}

/* Tables - Specific styling for bookings table only */
.ssac-my-bookings table {
  width: 100%; border-collapse: collapse; margin: 40px 0; font-size: 15px;
  background: #fff; box-shadow: 0 4px 20px rgba(0,180,216,0.1);
  display: table; overflow-x: auto; border-radius: 12px; border: 2px solid rgba(0,180,216,0.15);
}

/* WordPress Block Tables */
.wp-block-table {
  margin: 2em 0;
  overflow-x: visible;
}

.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  display: table;
  overflow-x: visible;
}

.wp-block-table.alignleft {
  float: left;
  margin-right: 2em;
  margin-bottom: 1em;
  max-width: 50%;
}

.wp-block-table.alignleft table {
  width: auto;
}

.wp-block-table.alignright {
  float: right;
  margin-left: 2em;
  margin-bottom: 1em;
  max-width: 50%;
}

.wp-block-table.alignright table {
  width: auto;
}

.wp-block-table.aligncenter {
  margin-left: auto;
  margin-right: auto;
}

.wp-block-table thead th {
  background: #085fc9;
  color: #ffffff;
  font-weight: 700;
  padding: 12px;
  border: 1px solid #ddd;
  text-align: left;
}

.wp-block-table tbody td,
.wp-block-table tbody th {
  padding: 10px 12px;
  border: 1px solid #ddd;
  text-align: left;
}

.wp-block-table tbody tr:nth-child(even) {
  background: #f9f9f9;
}

.wp-block-table tbody tr:hover {
  background: #f0f6ff;
}

.wp-block-table.has-small-font-size {
  font-size: 0.875em;
}

/* Committee Table - Responsive overflow handling */
.wp-block-table.alignleft.comittee-table,
.wp-block-table.comittee-table {
  position: relative;
  display: block;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  margin: 2em 0;
  max-width: 100%;
  width: 100%;
  float: none;
  clear: both;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 2px solid #e8f0fe;
  background: linear-gradient(to right, #fff 30%, rgba(255,255,255,0)),
              linear-gradient(to right, rgba(255,255,255,0), #fff 70%) 0 100%,
              radial-gradient(farthest-side at 0% 50%, rgba(0,0,0,.15), rgba(0,0,0,0)),
              radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.15), rgba(0,0,0,0)) 0 100%;
  background-repeat: no-repeat;
  background-color: #fff;
  background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
  background-position: 0 0, 100%, 0 0, 100%;
  background-attachment: local, local, scroll, scroll;
  scrollbar-width: thin;
  scrollbar-color: #085fc9 #e8f0fe;
}

/* Custom scrollbar for webkit browsers */
.wp-block-table.comittee-table::-webkit-scrollbar {
  height: 8px;
}

.wp-block-table.comittee-table::-webkit-scrollbar-track {
  background: #e8f0fe;
  border-radius: 4px;
}

.wp-block-table.comittee-table::-webkit-scrollbar-thumb {
  background: #085fc9;
  border-radius: 4px;
}

.wp-block-table.comittee-table::-webkit-scrollbar-thumb:hover {
  background: #064a9c;
}

/* Scroll indicator hint using pseudo-element */
.wp-block-table.comittee-table::after {
  content: '← Scroll →';
  position: absolute;
  bottom: -2em;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75em;
  color: #666;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
  .wp-block-table.comittee-table::after {
    opacity: 0.7;
    animation: pulseHint 2s ease-in-out 3;
  }
}

@keyframes pulseHint {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 0.3; }
}

.wp-block-table.comittee-table table {
  min-width: 900px;
  width: 100%;
  table-layout: auto;
  margin: 0;
  background: #fff;
}

.wp-block-table.comittee-table th,
.wp-block-table.comittee-table td {
  white-space: nowrap;
  padding: 12px 16px;
  font-size: 0.9em;
  border-color: #e0e0e0;
}

.wp-block-table.comittee-table thead th:first-child {
  min-width: 180px;
  position: sticky;
  left: 0;
  background: #085fc9;
  z-index: 2;
  box-shadow: 2px 0 4px rgba(0,0,0,0.1);
}

.wp-block-table.comittee-table tbody th:first-child {
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 1;
  font-weight: 600;
  box-shadow: 2px 0 4px rgba(0,0,0,0.05);
}

.wp-block-table.comittee-table tbody tr:nth-child(even) th:first-child {
  background: #f9f9f9;
}

.wp-block-table.comittee-table tbody tr:hover th:first-child {
  background: #f0f6ff;
}

/* Override WordPress color classes in committee table headers */
.wp-block-table.comittee-table thead th .has-vivid-cyan-blue-color {
  color: #f0f6ff !important;
  font-weight: bolder !important;
}

/* Responsive adjustments for committee table */
@media (max-width: 768px) {
  .wp-block-table.comittee-table {
    margin: 1.5em 0;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(8, 95, 201, 0.15);
    border: 3px solid #085fc9;
    padding: 4px;
    background-color: #f8fbff;
    contain: layout style paint;
    isolation: isolate;
  }
  
  .wp-block-table.comittee-table table {
    min-width: 800px;
  }
  
  .wp-block-table.comittee-table th,
  .wp-block-table.comittee-table td {
    font-size: 0.8em;
    padding: 10px 12px;
  }
  
  .wp-block-table.comittee-table thead th:first-child,
  .wp-block-table.comittee-table tbody th:first-child {
    min-width: 140px;
  }
}

@media (max-width: 480px) {
  .wp-block-table.comittee-table {
    border-width: 2px;
    margin: 1.5em 0;
  }
  
  .wp-block-table.comittee-table th,
  .wp-block-table.comittee-table td {
    font-size: 0.7em;
    padding: 8px 10px;
  }
  
  .wp-block-table.comittee-table thead th:first-child,
  .wp-block-table.comittee-table tbody th:first-child {
    min-width: 120px;
  }
}

/* Bookings table layout and alignment */
.ssac-my-bookings {
  overflow-x: auto;
}

.ssac-my-bookings .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ssac-my-bookings #dbem-bookings-table {
  display: table;
  width: 100%;
  margin: 0;
}

.event-row a {
  text-decoration: none;
  color: #085fc9;
}

.event-row a:visited {
  text-decoration: none;
  color: #085fc9;
}

/* Bookings table: keep alignment and allow horizontal scroll inside wrapper */
.css-my-bookings .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.css-my-bookings #dbem-bookings-table {
  display: table;
  width: 100%;
  margin: 0;
}

.css-my-bookings #dbem-bookings-table th {
  padding: 13px 12px !important;
}

.css-my-bookings #dbem-bookings-table td {
  padding: 13px 12px !important;
  border-bottom: 1px solid rgba(0,180,216,0.1);
  color: #2d3748;
  font-weight: 500;
  text-decoration: none;
}

.css-my-bookings #dbem-bookings-table td a {

  text-decoration: none;
}

/* Bookings table styling */
.ssac-my-bookings thead th {
  background: linear-gradient(135deg, #0a1628 0%, #0d2040 100%);
  color: #ffffff; font-weight: 800; padding: 16px 12px;
  border-bottom: 2px solid rgba(0,180,216,0.3); text-align: left; font-size: 15px;
}
.ssac-my-bookings tbody td { padding: 13px 12px; border-bottom: 1px solid rgba(0,180,216,0.1); color: #2d3748; font-weight: 500; }
.ssac-my-bookings tbody tr:nth-child(even) td { background: #f0f8ff; }
.ssac-my-bookings tbody tr:hover td { background: #e0f4fc; }

/* Posts */
.post { margin-bottom: 60px; padding-bottom: 30px; border-bottom: 2px solid rgba(0,180,216,0.15); }
.post-title { font-size: 2.2rem; margin-bottom: 18px; color: #0a1628; font-weight: 800; }
.post-title a { color: inherit; text-decoration: none; }
.post-title a:hover { color: #085fc9; }
.post-meta { color: #6b7280; font-size: 14px; margin-bottom: 20px; font-weight: 600; }
.post-content { font-size: 17px; line-height: 1.8; color: #2d3748; }

/* Post list */
.post-list-row { display: flex; gap: 28px; align-items: flex-start; }
.post-list-thumb { flex: 0 0 33.333%; max-width: 33.333%; display: block; }
.post-list-thumb img { width: 100%; height: 100%; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,180,216,0.15); object-fit: cover; }
.post-list-content { flex: 1 1 0%; max-width: 66.666%; }
@media (max-width: 900px) {
  .post-list-row { flex-direction: column; gap: 16px; }
  .post-list-thumb, .post-list-content { max-width: 100%; flex: 1 1 100%; }
}

/* Widgets */
.widget { margin-bottom: 36px; padding: 24px; background: #f0f6ff; border-radius: 12px; border: 1px solid rgba(0,180,216,0.15); }
.widget-title { font-size: 18px; margin-bottom: 16px; color: #0a1628; border-bottom: 3px solid #085fc9; padding-bottom: 10px; font-weight: 800; }
.widget ul { list-style: none; }
.widget ul li { padding: 8px 0; border-bottom: 1px solid rgba(0,180,216,0.1); }
.widget ul li a { color: #2d3748; text-decoration: none; font-weight: 600; transition: color 0.2s; }
.widget ul li a:hover { color: #085fc9; }

/* 404 */
.error-404 .page-title { color: #085fc9; font-size: 2.5rem; }

/* Post thumbnail */
.post-thumbnail { margin: 28px 0; overflow: hidden; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,180,216,0.15); }
.post-thumbnail img { width: 100%; height: auto; border-radius: 12px; transition: transform 0.4s ease; display: block; }
.post-thumbnail:hover img { transform: scale(1.04); }

/* Comments */
.comments-area { margin-top: 40px; padding-top: 30px; border-top: 2px solid rgba(0,180,216,0.2); }
.comments-title { font-size: 1.5rem; margin-bottom: 28px; color: #0a1628; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .comment { padding: 20px; margin-bottom: 16px; background: #f0f6ff; border-radius: 10px; border-left: 4px solid #085fc9; }
.comment-author { font-weight: bold; color: #085fc9; }
.comment-reply-link { color: #085fc9; text-decoration: none; font-size: .9rem; }

/* Search */
.search-form { display: flex; margin: 24px 0; max-width: 480px; }
.search-field { flex: 1; padding: 13px 16px; border: 2px solid rgba(0,180,216,0.2); border-radius: 8px 0 0 8px; font-size: 15px; }
.search-field:focus { outline: none; border-color: #085fc9; }
.search-submit { padding: 13px 24px; background: linear-gradient(135deg, #085fc9 0%, #0096b7 100%); color: #0a1628; border: none; border-radius: 0 8px 8px 0; cursor: pointer; font-size: 15px; font-weight: 700; }

/* Post nav */
.post-navigation { display: flex; justify-content: space-between; margin: 50px 0; padding: 24px 0; border-top: 2px solid rgba(0,180,216,0.15); gap: 20px; }
.nav-previous a, .nav-next a { color: #085fc9; text-decoration: none; padding: 10px 18px; display: inline-block; font-weight: 700; border-radius: 8px; }
.nav-previous a:hover, .nav-next a:hover { background: rgba(0,180,216,0.1); }

/* Posts List (front-page-news) */
.posts-section-container { max-width: 1280px; margin: 0 auto; padding: 50px 32px; }
.page-header { margin-bottom: 36px; padding-bottom: 24px; border-bottom: 3px solid rgba(0,180,216,0.2); }
.page-title { font-size: 2.5rem; margin-bottom: 12px; color: #0a1628; font-weight: 800; }
.page-content { margin-bottom: 50px; padding: 28px; background: #f0f6ff; border-radius: 12px; border: 2px solid rgba(0,180,216,0.15); font-size: 17px; line-height: 1.8; }
.page-content > *:first-child { margin-top: 0; }
.page-content > *:last-child { margin-bottom: 0; }

/* Pagination */
.pagination { margin: 50px 0; text-align: center; }
.pagination .nav-links { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.pagination a, .pagination .current { padding: 10px 16px; text-decoration: none; border: 2px solid rgba(0,180,216,0.2); border-radius: 8px; color: #085fc9; font-weight: 700; font-size: 15px; transition: all 0.2s ease; }
.pagination .current { background: linear-gradient(135deg, #085fc9 0%, #085fc9 100%); color: #ffffff; border-color: rgba(0,180,216,0.4); }
.pagination a:hover { background: rgba(0,180,216,0.1); border-color: #085fc9; }

/* Calendar color blocks (keep utility) */
li.red { background-color: #e5b9b7; }
li.green { background-color: #d7e3bc; }
li.blue { background-color: #b7dde8; }
li.violet { background-color: #ccc1d9; }
li.yellow { background-color: #FF9; }
li.orange { background-color: #FC6; }
li.pink { background-color: #FCF; }
.social { background-color: #e5b9b7; border: 1px solid black; border-collapse:collapse; padding: 5px; }
.training { background-color: #d7e3bc; border: 1px solid black; border-collapse:collapse; padding: 5px; }
.diving { background-color: #b7dde8; border: 1px solid black; border-collapse:collapse; padding: 5px; }
.proposed { background-color: #ccc1d9; border: 1px solid black; border-collapse:collapse; padding: 5px; font-weight:bold; }
.lecture { background-color: #FF9; border: 1px solid black; border-collapse:collapse; padding: 5px; }
.pool { background-color: #FC6; border: 1px solid black; border-collapse:collapse; padding: 5px; }
.meeting { background-color: #FCF; border: 1px solid black; border-collapse:collapse; padding: 5px; }


#bubble-canvas{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999; /* over everything */
  opacity: 0.95;
}

@media (prefers-reduced-motion: reduce){
  #bubble-canvas{ display:none; }
}

.em-view-custom-data {
  display: none;
  padding-bottom: 100px;
}

.em-events-list
{
  padding-top: 50px;
}

/* Account Details Widget - Collapsible Bottom Right */
.account-details {
  position: fixed;
  bottom: 0;
  right: 0;
  background: linear-gradient(135deg, #085fc9 0%, #0d2040 100%);
  color: #ffffff;
  padding: 16px 20px;
  border-radius: 12px 0 0 0;
  box-shadow: 0 -4px 20px rgba(8, 95, 201, 0.3);
  min-width: 160px;
  max-width: 160px;
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-right: none;
  border-bottom: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.account-details:hover {
  max-width: 220px;
  padding: 20px 24px;
  box-shadow: 0 -6px 30px rgba(8, 95, 201, 0.4);
}

.account-details .wp-block-group__inner-container {
  padding: 0;
  max-width: none;
  position: relative;
}

.account-details p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}

/* Username (first paragraph) - always visible */
.account-details p:first-child {
  font-weight: 700;
  font-size: 15px;
  color: #ffffff;
  max-height: none;
  opacity: 1;
  margin-bottom: 0;
  padding-right: 24px;
  border-bottom: none;
}

/* Add arrow indicator after username */
.account-details p:first-child::after {
  content: '▼';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  transition: transform 0.3s ease;
}

.account-details:hover p:first-child::after {
  transform: rotate(-180deg);
}

.account-details:hover p:first-child {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Show all paragraphs on hover including logout */
.account-details:hover p {
  max-height: 50px;
  opacity: 1;
  margin-bottom: 12px;
}

.account-details:hover p:last-child {
  margin-bottom: 0;
}

/* Hide logout when collapsed */
.account-details .wp-block-loginout,
.account-details .logged-in {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}

/* Show logout on hover */
.account-details:hover .wp-block-loginout,
.account-details:hover .logged-in {
  max-height: 50px;
  opacity: 1;
}

.account-details .wp-block-loginout a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.account-details .wp-block-loginout a:hover {
  color: #ff6b6b;
  transform: translateX(0);
}

.account-details a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-block;
}

.account-details a:hover {
  color: #b7dde8;
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .account-details {
    padding: 14px 16px;
    min-width: 140px;
    max-width: 140px;
  }
  
  .account-details:hover {
    max-width: 200px;
    padding: 18px 20px;
  }
  
  .account-details p:first-child {
    font-size: 14px;
  }
}

.error-404-content-area
{
  background: #ffffff;
  padding: 36px;
  box-shadow: 0 8px 28px rgba(0, 180, 216, 0.12);
}

.error-404__image {
  display: block;
  margin: 20px auto;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.wpconsent-powered-by {
  display: none !important;
}

.wp-block-separator{
  border: none;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(0,0,0,0.12),
    transparent
  );
  margin: 2rem 0;
}

.cf-turnstile {
    max-width: 100%;
    display: block;
    overflow:visible;
    margin: 1rem 0 0.5rem 0;
    transform-origin: left center;
}

@media (max-width: 480px) {
    .cf-turnstile-br-um-login {
        display: none;
    }
}