/* ==========================================================================
   Petros Exim - Blog Details & Single Article Page Stylesheet
   ========================================================================== */

/* Hero Banner */
.petros-blog-hero {
  position: relative;
  background-color: #0b1a2f;
  background-image: linear-gradient(135deg, rgba(9, 87, 162, 0.88) 0%, rgba(11, 26, 47, 0.92) 100%), url('../uploads/shipping-containers-trucks-cargo-port-sunset.webp');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 80px 20px 65px;
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.petros-blog-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 24px;
  background: linear-gradient(to top, rgba(248, 250, 252, 1), rgba(248, 250, 252, 0));
  pointer-events: none;
}

.petros-hero-inner {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.petros-breadcrumbs {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #94a3b8;
  margin-bottom: 18px;
  font-weight: 600;
}

.petros-breadcrumbs a {
  color: #e2e8f0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.petros-breadcrumbs a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.petros-breadcrumbs .sep {
  margin: 0 8px;
  opacity: 0.6;
}

.petros-hero-badge {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.petros-hero-badge:hover {
  background-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.petros-hero-title {
  font-family: "Outfit", "Segoe UI", Roboto, sans-serif;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.28;
  color: #ffffff;
  margin: 0 0 20px 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.petros-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 14px;
  color: #cbd5e1;
  font-weight: 500;
}

.petros-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.petros-hero-meta i {
  color: #38bdf8;
  font-size: 14px;
}

/* Page Layout Wrapper */
.petros-blog-main {
  background-color: #f8fafc;
  padding: 50px 0 70px;
}

.petros-blog-container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

.petros-blog-grid {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.petros-article-column {
  flex: 1 1 0%;
  min-width: 0;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.04);
  padding: 35px 40px 45px;
  border: 1px solid #eef2f6;
}

.petros-sidebar-column {
  width: 360px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Featured Media */
.petros-featured-media {
  margin: -35px -40px 35px -40px;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  max-height: 440px;
  background: #0f172a;
}

.petros-featured-media img {
  width: 100%;
  height: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

/* Hide duplicate H1 inside article content */
.petros-article-body .elementor-element-fffa472 {
  display: none !important;
}

/* Article Typography & Body */
.petros-article-body {
  font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.85;
  color: #334155;
}

.petros-article-body p {
  margin-bottom: 1.5rem;
  font-size: 17px;
  color: #334155;
}

.petros-article-body h2 {
  font-family: "Outfit", "Segoe UI", Roboto, sans-serif;
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
  color: #0957a2;
  margin-top: 2.4rem;
  margin-bottom: 1rem;
  line-height: 1.35;
  position: relative;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
}

.petros-article-body h3 {
  font-family: "Outfit", "Segoe UI", Roboto, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.petros-article-body ul, 
.petros-article-body ol {
  margin: 1rem 0 1.6rem;
  padding-left: 1.8rem;
}

.petros-article-body li {
  margin-bottom: 0.65rem;
  color: #334155;
  line-height: 1.75;
}

.petros-article-body li b,
.petros-article-body li strong,
.petros-article-body p b,
.petros-article-body p strong {
  color: #0f172a;
  font-weight: 600;
}

/* Accordion Specific Styling */
.petros-article-body .elementor-widget-eael-adv-accordion {
  margin-top: 25px;
  margin-bottom: 35px;
}

.eael-adv-accordion {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.eael-accordion-list {
  border-bottom: 1px solid #e2e8f0;
}

.eael-accordion-list:last-child {
  border-bottom: none;
}

.eael-accordion-header {
  padding: 16px 20px;
  background-color: #f8fafc;
  font-family: "Outfit", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #0957a2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.eael-accordion-header:hover {
  background-color: #f1f5f9;
  color: #034080;
}

.eael-accordion-header.active {
  background-color: #0957a2;
  color: #ffffff;
}

.eael-accordion-tab-title {
  flex-grow: 1;
  margin: 0;
  padding: 0 12px;
}

.eael-accordion-header svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.eael-accordion-header .fa-accordion-icon {
  fill: currentColor;
}

.eael-accordion-header .fa-toggle {
  fill: currentColor;
}

.eael-accordion-header .eael-advanced-accordion-icon-opened {
  display: none;
}

.eael-accordion-header.active .eael-advanced-accordion-icon-closed {
  display: none;
}

.eael-accordion-header.active .eael-advanced-accordion-icon-opened {
  display: inline-block;
}

.eael-accordion-header.active .fa-toggle {
  transform: rotate(90deg);
}

.eael-accordion-content {
  display: none;
  background-color: #ffffff;
  padding: 18px 22px;
  font-size: 15px;
  line-height: 1.75;
  color: #475569;
  border-top: 1px solid #f1f5f9;
}

.eael-accordion-content p:last-child {
  margin-bottom: 0;
}

/* Social Share Bar */
.petros-share-bar {
  margin-top: 45px;
  padding: 22px 25px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.petros-share-label {
  font-family: "Outfit", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.petros-share-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.petros-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  border: none;
  cursor: pointer;
}

.petros-share-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
  color: #ffffff;
}

.share-whatsapp { background-color: #25d366; }
.share-linkedin { background-color: #0077b5; }
.share-twitter { background-color: #1da1f2; }
.share-facebook { background-color: #1877f2; }
.share-copy { background-color: #0957a2; }

/* Author Bio Card */
.petros-author-card {
  margin-top: 35px;
  padding: 25px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.petros-author-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #0957a2;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  font-family: "Outfit", sans-serif;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(9, 87, 162, 0.25);
}

.petros-author-info h4 {
  font-family: "Outfit", sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 5px;
}

.petros-author-info p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #64748b;
}

/* Post Navigation (Prev / Next) */
.petros-post-nav {
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.petros-nav-item {
  flex: 1;
  text-decoration: none;
  padding: 16px 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.petros-nav-item:hover {
  background: #ffffff;
  border-color: #0957a2;
  box-shadow: 0 4px 14px rgba(9, 87, 162, 0.08);
  transform: translateY(-2px);
}

.petros-nav-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #0957a2;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.petros-nav-title {
  font-family: "Outfit", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
}

.petros-nav-item.next {
  text-align: right;
}

.petros-nav-item.next .petros-nav-label {
  justify-content: flex-end;
}

/* Sidebar Widgets */
.petros-widget {
  background: #ffffff;
  border-radius: 12px;
  padding: 28px;
  border: 1px solid #eef2f6;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.petros-widget-title {
  font-family: "Outfit", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #0957a2;
  position: relative;
}

/* Categories List */
.petros-categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.petros-categories-list li {
  margin-bottom: 10px;
}

.petros-categories-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 8px;
  color: #334155;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.petros-categories-list a:hover {
  background: #0957a2;
  color: #ffffff;
  padding-left: 18px;
}

.petros-categories-list .badge {
  background: #e2e8f0;
  color: #475569;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.petros-categories-list a:hover .badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Recent Posts Widget */
.petros-recent-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.petros-recent-item {
  display: flex;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  group: hover;
}

.petros-recent-thumb {
  width: 68px;
  height: 68px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #e2e8f0;
}

.petros-recent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.petros-recent-item:hover .petros-recent-thumb img {
  transform: scale(1.08);
}

.petros-recent-content {
  flex: 1;
  min-width: 0;
}

.petros-recent-title {
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.petros-recent-item:hover .petros-recent-title {
  color: #0957a2;
}

.petros-recent-date {
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* CTA Widget */
.petros-cta-widget {
  background: linear-gradient(145deg, #0957a2 0%, #06396e 100%);
  color: #ffffff;
  border: none;
}

.petros-cta-widget .petros-widget-title {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.petros-cta-desc {
  font-size: 14px;
  line-height: 1.65;
  color: #e2e8f0;
  margin-bottom: 20px;
}

.petros-cta-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 13px;
  color: #f1f5f9;
}

.petros-cta-contact a {
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.petros-cta-btn {
  display: block;
  text-align: center;
  background: #ffffff;
  color: #0957a2;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.petros-cta-btn:hover {
  background: #f8fafc;
  color: #032b55;
  transform: translateY(-2px);
}

/* Related Posts Section (Full Width Bottom) */
.petros-related-section {
  background: #ffffff;
  padding: 70px 0 80px;
  border-top: 1px solid #eef2f6;
}

.petros-related-header {
  text-align: center;
  margin-bottom: 45px;
}

.petros-related-subtitle {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #0957a2;
  margin-bottom: 8px;
}

.petros-related-title {
  font-family: "Outfit", sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.petros-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.petros-card {
  background: #f8fafc;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.petros-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.petros-card-thumb {
  height: 200px;
  overflow: hidden;
  background: #0f172a;
}

.petros-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.petros-card:hover .petros-card-thumb img {
  transform: scale(1.06);
}

.petros-card-content {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.petros-card-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #0957a2;
  background: rgba(9, 87, 162, 0.1);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.petros-card-title {
  font-family: "Outfit", sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 10px;
}

.petros-card-title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.petros-card-title a:hover {
  color: #0957a2;
}

.petros-card-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: #64748b;
  margin-bottom: 18px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.petros-card-link {
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #0957a2;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s ease;
}

.petros-card-link:hover {
  gap: 8px;
  color: #033261;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .petros-blog-grid {
    flex-direction: column;
  }
  .petros-sidebar-column {
    width: 100%;
  }
  .petros-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .petros-article-column {
    padding: 25px 20px 30px;
  }
  .petros-featured-media {
    margin: -25px -20px 25px -20px;
    max-height: 300px;
  }
  .petros-share-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .petros-post-nav {
    flex-direction: column;
  }
  .petros-related-grid {
    grid-template-columns: 1fr;
  }
}
