/* ============================================
   PAGE HERO SECTION
============================================ */
.page-hero {
    position: relative;
    padding: 180px 0 80px;
    overflow: hidden;
}

.page-hero-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(41, 170, 226, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* ============================================
   RANKMATH BREADCRUMB STYLING
============================================ */
.rank-math-breadcrumb,
.rank-math-breadcrumb p {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 1.1rem;
    margin: 0px 0px 2rem 0;
    padding: 1rem 0rem 0rem 0rem;
    background: rgba(41, 170, 226, 0.08);
    border: 1px solid rgba(41, 170, 226, 0.2);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.rank-math-breadcrumb p {
    background: transparent;
    border: none;
    border-radius: 0;
}

.rank-math-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.rank-math-breadcrumb a:hover {
    color: #fff;
    text-decoration: underline;
}

.rank-math-breadcrumb .separator,
.rank-math-breadcrumb span:not(.last):not(a) {
    opacity: 0.5;
    margin: 0 0.2rem;
}

.rank-math-breadcrumb .last {
    color: #fff;
    font-weight: 500;
}

/* Page Title */
.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 0 1.5rem 0;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary) 50%, #1a8fc9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.page-excerpt {
    font-size: 1.25rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 2rem 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Page Meta */
.page-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.meta-item svg {
    color: var(--primary);
}

/* Hero Wave */
:root {
  --div-accent: #0071dc;
  --div-dark:   #245478;
  --div-height: 64px;
  --groove-opacity: 0.06;
  --metal-sheen: 0.18;
}

.page-hero { position: relative; overflow: visible; z-index: 1; }
.divider-industrial {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: var(--div-height);
  pointer-events: none;
  z-index: 6;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.divider-inner {
  width: 120%;
  height: 56%;
  transform: translateY(8%) skewY(-3deg);
  background: repeating-linear-gradient( 90deg, rgb(22, 56, 85) 0 1px, rgb(17, 44, 74) 1px 3px ), linear-gradient(90deg, var(--div-dark) 0%, #0e1c38 100%);
  box-shadow: 0 -6px 16px rgba(0,0,0,0.28), 0 6px 10px rgba(0,0,0,0.12) inset;
  border-top: 1px solid rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(0,0,0,0.18);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  mix-blend-mode: normal;
}

.divider-inner::before {
  content: "";
  position: absolute;
  left: -30%;
  top: -40%;
  width: 160%;
  height: 180%;
  transform: rotate(-18deg);
  background: linear-gradient(90deg, rgba(255,255,255,var(--metal-sheen)) 0%, rgba(255,255,255,0) 40%);
  filter: blur(8px);
  opacity: 0.8;
  pointer-events: none;
}

.divider-inner::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 8%;
  width: 66%;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(0,0,0,0.25));
  box-shadow: 0 1px 0 rgba(255,255,255,0.02) inset;
  mix-blend-mode: overlay;
  opacity: 0.95;
}

@keyframes scanline {
  0% { transform: translateX(-40%) skewY(-3deg); opacity: 0; }
  10% { opacity: 0.0; }
  40% { opacity: 0.25; }
  100% { transform: translateX(140%) skewY(-3deg); opacity: 0; }
}
.divider-inner .scan {
  position: absolute;
  left: -40%;
  top: -10%;
  width: 28%;
  height: 120%;
  transform: skewY(-3deg);
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.18) 50%, rgba(255,255,255,0) 100%);
  filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  animation: scanline 3.2s linear infinite;
}

/* Disable motion for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .divider-inner .scan { animation: none; opacity: 0; }
  .divider-inner::before { filter: blur(6px); }
}

@media (max-width: 768px) {
  :root { --div-height: 44px; }
  .divider-inner { width: 140%; height: 48%; transform: translateY(12%) skewY(-3deg); }
  .divider-inner::before { filter: blur(6px); top: -30%; }
}


/* ============================================
   CONTENT SECTION
============================================ */
.page-content-section {
    position: relative;
    padding: 80px 0;
    z-index: 5;
}

.content-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    align-items: start;
    position: relative;
}

/* ============================================
   SIDEBAR
============================================ */
.content-sidebar {
    position: sticky;
    top: 140px;
    max-height: calc(100vh - 250px);
    overflow-y: hidden;
}

/* Table of Contents */
.toc-wrapper {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(41, 170, 226, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
}

.toc-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc-title svg {
    color: var(--primary);
}

.toc-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toc-navigation li {
    margin: 0;
}

.toc-navigation a {
    display: block;
    padding: 0.6rem 0.8rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    line-height: 1.4;
}

/* H3 items indented */
.toc-navigation li.toc-h3 a {
    padding-left: 1.5rem;
    font-size: 0.813rem;
}

.toc-navigation a:hover,
.toc-navigation a.active {
    color: var(--primary);
    background: rgba(41, 170, 226, 0.1);
    border-left-color: var(--primary);
    padding-left: 1rem !important;
}

.toc-navigation li.toc-h3 a:hover,
.toc-navigation li.toc-h3 a.active {
    padding-left: 1.8rem;
}

/* Share Buttons */
.share-wrapper {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(41, 170, 226, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1rem 0rem 1rem 0rem;
}

.share-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-title svg {
    color: var(--primary);
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    background: rgba(41, 170, 226, 0.1);
    border: 1px solid rgba(41, 170, 226, 0.2);
    border-radius: 10px;
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(41, 170, 226, 0.3);
}

.share-linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
}

.share-twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
}

.share-facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

/* Sidebar CTA */
.sidebar-cta {
    background: linear-gradient(135deg, rgba(41, 170, 226, 0.15) 0%, rgba(41, 170, 226, 0.05) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(41, 170, 226, 0.3);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.cta-icon {
    width: 64px;
    height: 64px;
    background: rgba(41, 170, 226, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--primary);
}

.sidebar-cta h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem 0;
}

.sidebar-cta p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 1.5rem 0;
}

.sidebar-cta .btn-futuristic {
    width: 100%;
    justify-content: center;
}

/* ============================================
   MAIN CONTENT
============================================ */
.page-main-content {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(41, 170, 226, 0.15);
    border-radius: 20px;
    padding: 3rem;
    min-height: 600px;
    flex: 1;
    min-width: 0;
}
.page-main-content {

}
.featured-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Content Typography */
.industrial-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin: 3rem 0 1.5rem 0;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid rgba(41, 170, 226, 0.3);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.industrial-content h2::before {
    content: '';
    width: 6px;
    height: 32px;
    background: linear-gradient(180deg, var(--primary) 0%, #1a8fc9 100%);
    border-radius: 3px;
    flex-shrink: 0;
}

.industrial-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin: 2.5rem 0 1rem 0;
    padding-left: 1rem;
    border-left: 3px solid var(--primary);
}

.industrial-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin: 2rem 0 1rem 0;
}

.industrial-content p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 1.5rem 0;
}

.industrial-content ul,
.industrial-content ol {
    margin: 0 0 1.5rem 0;
    padding-left: 2rem;
    color: rgba(255, 255, 255, 0.85);
}

.industrial-content li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.industrial-content a {
    text-decoration: underline;
    text-decoration-color: rgba(41, 170, 226, 0.3);
    transition: all 0.3s ease;
}

.industrial-content a:hover {
    color: #fff;
    text-decoration-color: var(--primary);
}

.industrial-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: rgba(41, 170, 226, 0.08);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

.industrial-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.industrial-content table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
}

.industrial-content th,
.industrial-content td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(41, 170, 226, 0.15);
}

.industrial-content th {
    background: rgba(41, 170, 226, 0.15);
    color: #fff;
    font-weight: 600;
}

.industrial-content td {
    color: rgba(255, 255, 255, 0.85);
}

/* Page Links */
.page-links {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(41, 170, 226, 0.05);
    border: 1px solid rgba(41, 170, 226, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-links-title {
    font-weight: 600;
    color: var(--primary);
}

.page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 1rem;
    background: rgba(41, 170, 226, 0.1);
    border: 1px solid rgba(41, 170, 226, 0.3);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-number:hover {
    background: var(--primary);
    transform: translateY(-2px);
}


/* ============================================
   PAGE FOOTER SECTION
============================================ */
.page-footer-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid rgba(41, 170, 226, 0.2);
}

.page-cta-box {
    background: linear-gradient(135deg, rgba(41, 170, 226, 0.15) 0%, rgba(41, 170, 226, 0.05) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(41, 170, 226, 0.3);
    border-radius: 20px;
    padding: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cta-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.cta-content h3 svg {
    color: var(--primary);
}

.cta-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-secondary-futuristic {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary-futuristic:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary);
}

/* ============================================
   RESPONSIVE DESIGN
============================================ */
@media (max-width: 1200px) {
    .page-hero {
        padding: 140px 0 80px;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .page-cta-box {
        flex-direction: column;
        text-align: center;
    }

    .cta-content h3 {
        justify-content: center;
    }

    .cta-actions {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 1200px) and (min-width: 769px) {
    .content-sidebar {
        top: 100px;
        max-height: calc(100vh - 200px);
    }

    .content-layout {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 120px 0 60px;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-excerpt {
        font-size: 1rem;
    }

    .page-meta {
        flex-direction: column;
        gap: 0.8rem;
    }

    .rank-math-breadcrumb,
    .rank-math-breadcrumb p {
        font-size: 0.813rem;
        padding: 0.6rem 1rem;
    }

    .content-layout {
        grid-template-columns: 1fr;
    }

    .page-main-content {
        padding: 2rem 1.5rem;
    }

    .industrial-content h2 {
        font-size: 1.5rem;
    }

    .industrial-content h3 {
        font-size: 1.25rem;
    }

    .industrial-content p {
        font-size: 1rem;
    }

    .page-cta-box {
        padding: 2rem 1.5rem;
    }

    .cta-content h3 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-actions .btn-futuristic {
        width: 100%;
        justify-content: center;
    }

    .share-buttons {
        grid-template-columns: repeat(4, 1fr);
    }

    .content-sidebar {
        display: none;
        position: relative;
        top: auto;
        max-height: none;
        overflow-y: visible;
        margin-bottom: 2rem;
    }

    .toc-wrapper,
    .share-wrapper,
    .sidebar-cta {
        border-radius: 12px;
        padding: 1rem;
    }

    .toc-navigation a {
        padding: 0.5rem 0.7rem;
        font-size: 0.875rem;
    }

    .toc-navigation li.toc-h3 a {
        padding-left: 1.2rem;
    }

    .share-buttons {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }

    .page-main-content {
        padding: 2rem 1rem;
        border-radius: 16px;
    }

    .industrial-content img {
        margin: 1.5rem 0;
    }

    .industrial-content table {
        overflow-x: auto;
        display: block;
    }

    .page-hero-glow {
        width: 600px;
        height: 600px;
    }

    .hero-wave {
        height: 60px;
    }

    .hero-wave svg {
        height: 60px;
    }
}

@media (max-width: 576px) {
    .page-hero {
        padding: 100px 0 50px;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .page-main-content {
        padding: 1.5rem 1rem;
    }

    .industrial-content h2 {
        font-size: 1.25rem;
    }

    .industrial-content table {
        font-size: 0.875rem;
    }

    .industrial-content th,
    .industrial-content td {
        padding: 0.75rem 0.5rem;
    }

    .share-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-links {
        flex-direction: column;
        align-items: flex-start;
    }

    .content-sidebar {
        display: none;
        margin-bottom: 1.5rem;
    }

    .toc-title,
    .share-title {
        font-size: 0.875rem;
    }

    .share-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .sidebar-cta {
        padding: 1.5rem;
    }

    .sidebar-cta h4 {
        font-size: 1rem;
    }

    .page-cta-box {
        padding: 1.5rem;
    }

    .page-links {
        padding: 1.5rem;
        gap: 0.5rem;
    }
}


/* ============================================
   ACCESSIBILITY
============================================ */
@media (prefers-reduced-motion: reduce) {
    .page-main-content *,
    .sidebar-sticky *,
    .share-btn,
    .toc-navigation a {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.toc-navigation a:focus,
.share-btn:focus,
.btn-futuristic:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

@media (prefers-contrast: high) {
    .page-main-content {
        border: 2px solid var(--primary);
    }

    .toc-navigation a,
    .industrial-content a {
        text-decoration: underline;
    }
}