/* Modern Individual Post Styling */
body {
  min-height: 100vh;
  font-family: 'Quicksand', sans-serif;
}

/* Ensure navbar stays on top and isn't affected by our styles */
.navbar {
  z-index: 1030 !important;
}

.post_form {
  margin-top: 120px;
  margin-bottom: 40px;
  padding: 0;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.post_form .title {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 30px;
  text-align: center;
  color: #2d3748;
  padding: 30px 20px 0;
}

/* Image Gallery Styling */
.post_form .image-gallery {
  padding: 20px;
}

.post_form .single-image {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.post_form .single-image:hover {
  transform: translateY(-5px);
}

.post_form .single-image img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.post_form .single-image:hover img {
  transform: scale(1.05);
}

/* Multiple Images Grid */
.post_form .images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.post_form .additional-images {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  cursor: pointer;
}

.post_form .additional-images:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.post_form .additional-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post_form .additional-images:hover img {
  transform: scale(1.1);
}

.post_form .plus-icon {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: white;
  font-size: 0.9rem;
  background: rgba(17, 24, 39, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.92;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.18);
}

.post_form .additional-images:hover .plus-icon {
  background: rgba(17, 24, 39, 0.76);
  opacity: 1;
  transform: translateY(-2px);
}

/* Carousel Styling */
.post_form .carousel {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  margin-top: 20px;
  background: #111827;
}

.post_form .carousel-inner {
  background: #111827;
}

.post_form .carousel-item {
  min-height: min(72vh, 720px);
  background: #111827;
}

.post_form .carousel-item.active,
.post_form .carousel-item-next,
.post_form .carousel-item-prev {
  display: flex;
  align-items: center;
  justify-content: center;
}

.post_form .carousel-inner img {
  display: block;
  width: auto !important;
  max-width: 100%;
  height: auto;
  max-height: min(72vh, 720px);
  margin: 0 auto;
  object-fit: contain;
}

.post_form .carousel-control-prev,
.post_form .carousel-control-next {
  width: 52px;
  height: 52px;
  top: 50%;
  margin: 0 18px;
  background: rgba(17, 24, 39, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  opacity: 0.88;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

.post_form .carousel-control-prev:hover,
.post_form .carousel-control-next:hover {
  background: rgba(17, 24, 39, 0.78);
  opacity: 1;
}

.post_form .carousel-control-prev-icon,
.post_form .carousel-control-next-icon {
  width: 22px;
  height: 22px;
  background-size: 100%;
}

.post_form .carousel-indicators {
  bottom: 14px;
  left: 50%;
  top: auto;
  right: auto;
  width: auto;
  margin: 0;
  padding: 6px 8px;
  background: rgba(17, 24, 39, 0.24);
  border-radius: 999px;
  transform: translateX(-50%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.post_form .carousel-indicators li,
.post_form .carousel-indicators button {
  box-sizing: border-box;
  flex: 0 0 auto;
  background-color: rgba(255, 255, 255, 0.5);
  border: 0;
  border-radius: 50%;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  padding: 0;
  text-indent: 0;
  transition: all 0.3s ease;
}

.post_form .carousel-indicators .active {
  background: #4a5568;
  transform: none;
}

/* Content Box Styling */
.post_form .post-details {
  padding: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0 20px 20px 0;
  backdrop-filter: blur(10px);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post_form .post-details p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #4a5568;
  margin-bottom: 20px;
}

.post_form .post-details .lead {
  font-size: 1.3rem;
  font-weight: 500;
  color: #2d3748;
}

/* Book Button Styling - Only affects buttons within post_form */
.post_form .book-btn {
  background: #4a5568;
  color: white;
  font-weight: 600;
  padding: 15px 30px;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(74, 85, 104, 0.3);
  margin-top: 20px;
}

.post_form .book-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(74, 85, 104, 0.4);
  background: #2d3748;
}

.post-internal-links {
  margin: -8px auto 38px;
  max-width: 980px;
  padding: 0 8px;
}

.post-internal-kicker {
  margin: 0 0 12px;
  color: #718096;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.post-internal-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.post-internal-link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 86px;
  padding: 16px 18px;
  color: #2d3748;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(74, 85, 104, 0.14);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(45, 55, 72, 0.08);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.post-internal-link:hover {
  color: #2d3748;
  border-color: rgba(45, 55, 72, 0.28);
  box-shadow: 0 14px 34px rgba(45, 55, 72, 0.13);
  text-decoration: none;
  transform: translateY(-3px);
}

.post-internal-link i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  color: #fff;
  background: #4a5568;
  border-radius: 50%;
  font-size: 0.95rem;
}

.post-internal-link span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.post-internal-link strong {
  overflow: hidden;
  color: #2d3748;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-internal-link small {
  color: #718096;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}

.post-internal-link-primary {
  background: #2d3748;
  border-color: #2d3748;
}

.post-internal-link-primary,
.post-internal-link-primary strong,
.post-internal-link-primary small {
  color: #fff;
}

.post-internal-link-primary i {
  color: #2d3748;
  background: #fff;
}

.post-internal-link-primary small {
  opacity: 0.82;
}

.related-posts {
  margin: 0 0 56px;
}

.related-posts-header {
  text-align: center;
  margin-bottom: 22px;
}

.related-posts-eyebrow {
  margin: 0 0 6px;
  color: #718096;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.related-posts h2 {
  margin: 0;
  color: #2d3748;
  font-size: 1.65rem;
  font-weight: 700;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.related-post-card {
  display: block;
  overflow: hidden;
  color: #2d3748;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(45, 55, 72, 0.12);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-post-card:hover {
  color: #2d3748;
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(45, 55, 72, 0.18);
  text-decoration: none;
}

.related-post-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.related-post-card span {
  display: block;
  padding: 14px 16px 16px;
  font-weight: 700;
  line-height: 1.35;
}

/* Video Container */
.post_form .video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  margin-top: 20px;
}

.post_form .video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive Design */
@media (max-width: 768px) {
  .post_form .title {
    font-size: 2rem;
    padding: 20px 15px 0;
  }
  
  .post_form .post-details {
    padding: 30px 20px;
    border-radius: 0 0 20px 20px;
  }
  
  .post_form .images-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
  }
  
  .post_form .carousel-inner img {
    max-height: min(68vh, 560px);
  }

  .post_form .carousel-item {
    min-height: min(68vh, 560px);
  }

  .post_form .carousel-control-prev,
  .post_form .carousel-control-next {
    width: 44px;
    height: 44px;
    margin: 0 10px;
  }
  
  .post_form .single-image img {
    height: auto;
    max-height: 400px;
  }

  .related-posts-grid {
    grid-template-columns: 1fr;
  }

  .post-internal-link-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .post_form {
    margin-top: 120px;
    margin-left: 10px;
    margin-right: 10px;
  }
  
  .post_form .title {
    font-size: 1.8rem;
  }
  
  .post_form .images-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .post-internal-links {
    margin: -4px 12px 32px;
    padding: 0;
  }

  .post-internal-link {
    min-height: 78px;
    padding: 14px;
  }

  .post-internal-link strong {
    white-space: normal;
  }

  .related-posts {
    margin-left: 12px;
    margin-right: 12px;
  }
}

/* Animation for page load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.post_form {
  animation: fadeInUp 0.8s ease-out;
}

/* Hover effect for the entire post container */
.post_form:hover {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}
