/*
Theme Name: TelcoEdge Blog
Theme URI: https://telcoedge.com
Author: TelcoEdge
Description: Custom TelcoEdge blog theme matching the supplied TelcoEdge blog design.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: telcoedge-blog
*/

:root {
  --te-bg: #000;
  --te-panel: #121212;
  --te-panel-2: #171717;
  --te-border: #252525;
  --te-text: #fff;
  --te-muted: #a9b7c5;
  --te-green: #2dbb92;
  --te-green-dark: #063c32;
  --te-radius: 28px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--te-bg);
  color: var(--te-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.te-site {
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

.te-header-wrap {
  padding: 14px 8px 0;
  position: relative;
  z-index: 20;
}

.te-header {
  min-height: 62px;
  border: 1px solid #2a3034;
  border-radius: 14px;
  background: rgba(0,0,0,.96);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
}

.te-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  letter-spacing: -.5px;
}

.te-brand-mark {
  width: 31px;
  height: 31px;
  border-radius: 6px;
  background: #fff;
  color: #17634f;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 16px;
}

.te-brand strong { font-weight: 800; }
.te-brand span { font-weight: 400; }

.te-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 14px;
}

.te-nav-item { white-space: nowrap; }
.te-nav-item.has-arrow::after {
  content: "⌄";
  margin-left: 7px;
  font-size: 12px;
}

.te-demo {
  background: var(--te-green);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
}

.te-theme-toggle {
  margin-left: 14px;
  font-size: 21px;
  line-height: 1;
}

.te-container {
  width: min(1536px, calc(100% - 48px));
  margin: 0 auto;
}

.te-hero {
  margin-top: 16px;
  min-height: 518px;
  border-radius: 0 0 13px 13px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 5%, rgba(56,155,124,.18) 0 12%, transparent 12.2%),
    radial-gradient(circle at 93% 103%, rgba(80,140,122,.18) 0 13%, transparent 13.2%),
    linear-gradient(180deg, #032f28 0%, #0b4c3e 48%, #1d6b58 100%);
  display: grid;
  place-items: center;
  text-align: center;
}

.te-hero::before,
.te-hero::after {
  content: "";
  position: absolute;
  border: 32px solid rgba(57,185,151,.12);
  border-radius: 50%;
  width: 440px;
  height: 440px;
  pointer-events: none;
}

.te-hero::before { left: -230px; top: -290px; }
.te-hero::after { right: -220px; bottom: -360px; }

.te-hero-wave {
  position: absolute;
  right: -20px;
  top: -42px;
  width: 330px;
  height: 180px;
  border: 28px solid #48e2bd;
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 60% 40% 55% 45%;
  transform: rotate(16deg);
  filter: drop-shadow(0 0 10px rgba(62,225,187,.35));
}

.te-hero h1 {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0;
  font-size: clamp(44px, 5vw, 66px);
  line-height: .98;
  letter-spacing: -2.8px;
  font-weight: 800;
}

.te-section {
  position: relative;
  padding: 86px 0 0;
}

.te-section::after {
  content: "";
  position: absolute;
  right: -250px;
  top: 180px;
  width: 450px;
  height: 650px;
  border: 28px solid rgba(120,130,130,.11);
  border-radius: 50%;
  pointer-events: none;
}

.te-section-title {
  font-size: 34px;
  line-height: 1.1;
  margin: 0 0 36px;
  letter-spacing: -.8px;
}

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

.te-card {
  background: #121212;
  border-radius: 27px;
  padding: 13px 13px 27px;
  overflow: hidden;
  min-height: 355px;
  transition: transform .2s ease, background .2s ease;
}

.te-card:hover {
  transform: translateY(-4px);
  background: #161616;
}

.te-card-image {
  aspect-ratio: 1.75 / 1;
  width: 100%;
  object-fit: cover;
  border-radius: 17px;
  background: #09231e;
}

.te-card h2 {
  font-size: 21px;
  line-height: 1.23;
  margin: 29px 17px 0;
  letter-spacing: -.25px;
}

.te-date {
  color: #aab9c6;
  margin: 31px 17px 0;
  font-size: 14px;
}

.te-all-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 32px;
}

.te-count {
  font-size: 14px;
  margin-top: 23px;
}

.te-search {
  width: 288px;
  height: 58px;
  border: 1px solid #656565;
  border-radius: 30px;
  background: transparent;
  color: #fff;
  padding: 0 17px;
  outline: none;
  font-size: 15px;
}

.te-search::placeholder { color: #9eb2c2; }

.te-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 60px 0 90px;
}

.te-pagination a,
.te-pagination span {
  min-width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid #2a2a2a;
}

.te-pagination .current {
  background: var(--te-green);
  border-color: var(--te-green);
}

.te-single {
  padding: 70px 0 100px;
}

.te-single-hero {
  max-width: 940px;
  margin: 0 auto 48px;
  text-align: center;
}

.te-single-category {
  color: #52d7b0;
  font-weight: 700;
  margin-bottom: 16px;
}

.te-single-title {
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.03;
  letter-spacing: -2px;
  margin: 0 0 20px;
}

.te-single-meta {
  color: var(--te-muted);
  font-size: 14px;
}

.te-single-image {
  width: min(1050px, 100%);
  max-height: 620px;
  object-fit: cover;
  border-radius: 28px;
  margin: 40px auto 55px;
}

.te-content {
  width: min(820px, 100%);
  margin: 0 auto;
  font-size: 18px;
  color: #e5e9eb;
}

.te-content h2,
.te-content h3 {
  color: #fff;
  line-height: 1.2;
  margin-top: 45px;
}

.te-content p { margin: 0 0 24px; }
.te-content a { color: #45d5ac; text-decoration: underline; }
.te-content ul,
.te-content ol { margin-bottom: 25px; }
.te-content blockquote {
  border-left: 3px solid var(--te-green);
  margin: 35px 0;
  padding: 10px 25px;
  color: #cbd4d8;
}

.te-footer {
  border-top: 1px solid #1c1c1c;
  margin-top: 50px;
  padding: 40px 0;
  color: #8f9ba1;
  text-align: center;
}

@media (max-width: 900px) {
  .te-nav { gap: 14px; }
  .te-nav-item:nth-child(-n+3) { display: none; }
  .te-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .te-hero { min-height: 430px; }
}

@media (max-width: 640px) {
  .te-header { min-height: 58px; }
  .te-brand { font-size: 19px; }
  .te-theme-toggle { display: none; }
  .te-demo { padding: 9px 12px; }
  .te-container { width: min(100% - 24px, 1240px); }
  .te-hero { min-height: 390px; }
  .te-hero h1 { font-size: 43px; letter-spacing: -1.8px; }
  .te-grid { grid-template-columns: 1fr; }
  .te-section { padding-top: 58px; }
  .te-section-title { font-size: 30px; }
  .te-all-header { align-items: stretch; flex-direction: column; }
  .te-search { width: 100%; }
  .te-single { padding-top: 40px; }
  .te-single-title { font-size: 42px; }
}


/* Updated TelcoEdge detail-page layout */
.te-header {
  padding: 0 18px;
}

.te-brand-logo {
  width: 174px;
  height: auto;
  max-height: 48px;
  object-fit: contain;
  object-position: left center;
}

.te-nav {
  display: none;
}

.te-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  overflow: hidden;
  padding: 16px 0 14px;
  color: #e4e9ec;
  font-size: 13px;
  font-weight: 600;
}

.te-breadcrumb a {
  color: #fff;
}

.te-breadcrumb .separator {
  color: #35c69c;
}

.te-breadcrumb .current {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.te-detail-hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 470px;
  border-radius: 0 0 28px 28px;
  background: #0b211c;
}

.te-detail-hero img {
  width: 100%;
  height: 470px;
  object-fit: cover;
  object-position: center;
}

.te-detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.66), rgba(0,0,0,.08) 70%, rgba(0,0,0,.34));
}

.te-detail-hero-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding: 30px 58px;
}

.te-detail-hero-title {
  max-width: 700px;
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: -1.8px;
  color: #fff;
}

.te-detail-hero-date {
  padding-top: 9px;
  white-space: nowrap;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.te-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 34px;
  align-items: start;
  padding-top: 34px;
}

.te-detail-main {
  min-width: 0;
}

.te-detail-main .te-content {
  width: 100%;
  max-width: none;
  font-size: 17px;
}

.te-detail-sidebar {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 22px;
}

.te-sidebar-card {
  background: #141414;
  border-radius: 14px;
  padding: 22px 21px;
}

.te-sidebar-card h3 {
  margin: 0 0 17px;
  font-size: 16px;
}

.te-sidebar-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.te-sidebar-card li {
  margin: 0 0 13px;
}

.te-sidebar-card li:last-child {
  margin-bottom: 0;
}

.te-sidebar-card a {
  color: #fff;
  font-size: 14px;
}

.te-sidebar-card a:hover {
  color: #45d5ac;
}

.te-newsletter-copy {
  font-size: 13px;
  line-height: 1.35;
  margin: 0 0 14px;
}

.te-newsletter-input {
  width: 100%;
  height: 39px;
  border: 1px solid #656565;
  border-radius: 22px;
  background: transparent;
  color: #fff;
  padding: 0 15px;
  outline: none;
  margin-bottom: 11px;
}

.te-newsletter-button {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 22px;
  background: #36b991;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.te-related {
  padding: 78px 0 90px;
}

.te-related-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.te-related-title {
  margin: 0;
  font-size: 26px;
  letter-spacing: -.6px;
}

.te-view-all {
  color: #31c596;
  font-size: 14px;
  font-weight: 600;
}

.te-related .te-grid {
  gap: 52px;
}

.te-single .te-footer {
  margin-top: 0;
}

@media (max-width: 900px) {
  .te-detail-layout {
    grid-template-columns: 1fr;
  }

  .te-detail-sidebar {
    position: static;
  }

  .te-detail-hero,
  .te-detail-hero img {
    min-height: 400px;
    height: 400px;
  }

  .te-detail-hero-copy {
    padding: 28px;
  }
}

@media (max-width: 640px) {
  .te-container {
    width: min(100% - 24px, 1536px);
  }

  .te-brand-logo {
    width: 150px;
  }

  .te-breadcrumb {
    font-size: 11px;
  }

  .te-detail-hero,
  .te-detail-hero img {
    min-height: 340px;
    height: 340px;
  }

  .te-detail-hero-copy {
    padding: 22px;
    flex-direction: column;
    justify-content: space-between;
  }

  .te-detail-hero-title {
    font-size: 35px;
  }

  .te-detail-hero-date {
    padding-top: 0;
  }

  .te-related-header {
    align-items: flex-start;
    gap: 20px;
  }
}
