/* SSAC1 - Ocean Depths: Home page */

.home-full-bleed { max-width: none; padding: 0; margin: 0; background: #f0f6ff; }
.home-full-bleed .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: 100vw; }

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

body.home .content-area { padding: 0; background: transparent; }

.home-content-wrapper { max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 32px; padding-right: 32px; }

.home-full-bleed .wp-block-cover {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
  margin-bottom: 40px;
  border-radius: 0;
}
.home-full-bleed .wp-block-video { margin: 0; }
.home-full-bleed .wp-block-video video { width: 100%; height: auto; display: block; }

/* Headings */
.home-full-bleed h2.wp-block-heading {
  color: #0a1628;
  line-height: 1.2;
  font-weight: 900;
  font-size: clamp(1.3rem, 3vw + 1rem, 2rem);
  margin: 50px auto 16px;
  max-width: 1200px;
  padding: 0 20px;
}

.home-full-bleed h2.wp-block-heading::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #085fc9, transparent);
  border-radius: 2px;
  margin-top: 10px;
}

/* Paragraphs */
.home-full-bleed > p {
  font-size: clamp(16px, 0.5vw + 15px, 18px);
  line-height: 1.8;
  color: #374151;
  margin: 0 auto 1.5rem;
  max-width: 1200px;
  padding: 0 32px;
}

/* Images */
.home-full-bleed > figure.wp-block-image { margin: 36px auto; max-width: 1300px; padding: 0 32px; }
.home-full-bleed figure.wp-block-image img {
  display: block; max-width: 100%; height: auto; border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,180,216,0.15);
  margin: 0 auto; transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.home-full-bleed figure.wp-block-image img:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,180,216,0.25); }

/* Carousel / Gallery */
.home-full-bleed .wp-block-gallery { padding: 0 32px; max-width: 1200px; margin: 32px auto; }
.home-full-bleed .wp-block-image img { border-radius: 12px; box-shadow: 0 8px 24px rgba(0,180,216,0.12); }

/* Groups, Columns */
.home-full-bleed > .wp-block-columns,
.home-full-bleed > .wp-block-media-text,
.home-full-bleed > .wp-block-group {
  max-width: 1200px; margin: 36px auto; padding: 0 32px;
}

.home-full-bleed .wp-block-media-text__media img { border-radius: 14px; box-shadow: 0 12px 40px rgba(0,180,216,0.15); }

.wp-block-media-text__media
{
  padding-bottom: 24px;
}

/* Latest posts */
.home-full-bleed .wp-block-latest-posts {
  list-style: none; padding: 0 32px; margin: 28px auto 40px; max-width: 1200px;
}
.home-full-bleed .wp-block-latest-posts li {
  background: #ffffff;
  border: 1px solid rgba(0,180,216,0.15);
  border-left: 5px solid #085fc9;
  padding: 20px 24px;
  border-radius: 10px;
  margin: 14px 0;
  display: grid;
  grid-template-columns: 180px 1fr;
  grid-template-areas: "thumb title" "thumb excerpt";
  gap: 14px 22px;
  align-items: start;
  box-shadow: 0 2px 12px rgba(0,180,216,0.06);
  transition: all 0.3s ease;
}
.home-full-bleed .wp-block-latest-posts li:hover { transform: translateX(6px); box-shadow: 0 6px 24px rgba(0,180,216,0.14); border-left-width: 7px; }
.home-full-bleed .wp-block-latest-posts__post-title { grid-area: title; font-weight: 800; display: block; margin: 4px 0 8px; font-size: 19px; }
.home-full-bleed .wp-block-latest-posts__post-excerpt { grid-area: excerpt; color: #6b7280; line-height: 1.7; font-size: 15px; }
.home-full-bleed .wp-block-latest-posts a { color: #0a1628; font-weight: 700; text-decoration: none; }
.home-full-bleed .wp-block-latest-posts a:hover { color: #085fc9; }
.home-full-bleed .wp-block-latest-posts__list .wp-block-latest-posts__featured-image.alignleft { grid-area: thumb; float: none; margin: 0; max-width: 180px; width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: 8px; }
.home-full-bleed .wp-block-latest-posts__list .wp-block-latest-posts__featured-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Remove empty block spacing */
.home-full-bleed p:empty,
.home-full-bleed h1:empty,
.home-full-bleed h2:empty { margin: 0; padding: 0; }

@media (max-width: 768px) {
  .home-full-bleed h2.wp-block-heading { font-size: clamp(1.5rem, 5vw, 2.2rem); margin: 20px auto 12px; }
  .home-full-bleed > figure.wp-block-image { padding: 0 20px; }
  .home-full-bleed .wp-block-latest-posts { padding: 0 20px; }
  .home-full-bleed .wp-block-latest-posts li { grid-template-columns: 1fr; grid-template-areas: "thumb" "title" "excerpt"; }
  .home-full-bleed .wp-block-latest-posts__list .wp-block-latest-posts__featured-image.alignleft { max-width: 100%; aspect-ratio: 21/9; }
}

.details,
.wp-block-details {
  max-width: 1200px; 
  margin: 0 auto 12px;
  padding: 0;
  background: #f0f8ff; 
  border-radius: 8px;
  border: 2px solid rgba(0,180,216,0.2);
  transition: all 0.3s ease;
}

.wp-block-details p {
  padding: 16px 20px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #374151;
}

.details:hover,
.wp-block-details:hover {
  background: #e0f4fc;
  border-color: rgba(8, 95, 201, 0.4);
  box-shadow: 0 2px 8px rgba(0, 180, 216, 0.15);
}

.details[open],
.wp-block-details[open] { 
  background: #e0f4fc; 
  border-color: #085fc9;
  box-shadow: 0 4px 12px rgba(0, 180, 216, 0.2);
}

.details summary,
.wp-block-details summary { 
  font-weight: 700; 
  color: #0a1628; 
  cursor: pointer; 
  padding: 16px 20px 16px 48px; 
  font-size: 1.1rem;
  list-style: none;
  position: relative;
  transition: color 0.2s ease;
  user-select: none;
}

details summary::-webkit-details-marker,
.wp-block-details summary::-webkit-details-marker {
  display: none;
}

details summary::before,
.wp-block-details summary::before {
  content: '+';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: #085fc9;
  color: #ffffff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.3s ease, background 0.2s ease;
}
