/* ============================================================
   LAYOUT 3 - TECH/BUSINESS
   Professional, data-focused design with dark header
   ============================================================ */

:root {
  --tech-dark: #1a1a2e;
  --tech-darker: #12121f;
  --tech-primary: #ff4000;
  --tech-secondary: #FFFFFF;
  --tech-bg: #f8f9fb;
  --tech-white: #ffffff;
  --tech-text: #2d2d3a;
  --tech-text-muted: #6b7280;
  --tech-border: #e5e7eb;
  --tech-radius: 6px;
  --tech-gradient: linear-gradient(135deg, #ff4000, #FFFFFF);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--tech-text);
  background: var(--tech-bg);
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: 'Roboto', sans-serif; font-weight: 700; }

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

.content-wrap { width: 100%; }

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.tech-header {
  background: var(--tech-dark);
  position: sticky;
  top: 0;
  z-index: 100;
}

.tech-nav {
  border-bottom: 3px solid var(--tech-primary);
}

.tech-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px;
}

.tech-logo {
  font-family: 'Roboto', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
  text-transform: lowercase;
}

.tech-logo:hover { color: var(--tech-primary); }

.tech-nav-links { display: flex; gap: 28px; }
.tech-nav-links a {
  color: #a0a5b8;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tech-nav-links a:hover,
.tech-nav-links a.active { color: #fff; }

.tech-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

/* ============================================================
   HERO
   ============================================================ */
.tech-hero { padding: 2px; }

.tech-hero-card {
  background: var(--tech-gradient);
  position: relative;
  overflow: hidden;
}

.tech-hero-link {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
  align-items: stretch;
}

.tech-hero-img { overflow: hidden; }
.tech-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
}

.tech-hero-content {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

.tech-hero-content h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin: 12px 0;
  color: #fff;
}

.tech-hero-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.5;
  margin-bottom: 20px;
}

.tech-date {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ============================================================
   BADGES
   ============================================================ */
.tech-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: #fff;
  padding: 4px 12px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tech-badge-sm {
  display: inline-block;
  background: var(--tech-primary);
  color: #fff;
  padding: 2px 8px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.tech-badge-lg {
  font-size: 0.85rem;
  padding: 6px 16px;
  margin-bottom: 16px;
}

/* ============================================================
   SECONDARY HIGHLIGHTS
   ============================================================ */
.tech-secondary {
  max-width: 1280px;
  margin: 32px auto 0;
  padding: 0 24px;
}

.tech-secondary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ============================================================
   CARDS
   ============================================================ */
.tech-card-secondary {
  background: var(--tech-white);
  border: 1px solid var(--tech-border);
  border-radius: var(--tech-radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.tech-card-secondary:hover {
  border-color: var(--tech-primary);
  transform: translateY(-2px);
}

.tech-card-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
}
.tech-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.tech-card-secondary:hover .tech-card-img img,
.tech-card:hover .tech-card-img img { transform: scale(1.04); }

.tech-card-body { padding: 16px; }
.tech-card-body h3 {
  font-size: 1rem;
  line-height: 1.4;
  color: var(--tech-text);
  margin-bottom: 8px;
}
.tech-card-secondary:hover h3,
.tech-card:hover h3 { color: var(--tech-primary); }

/* ============================================================
   CATEGORY SECTIONS
   ============================================================ */
.tech-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.tech-section { margin: 48px 0; }

.tech-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.tech-section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--tech-dark);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tech-section-line {
  flex: 1;
  height: 2px;
  background: var(--tech-gradient);
  border-radius: 1px;
}

.tech-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tech-cards-3 { grid-template-columns: repeat(3, 1fr); }

.tech-card {
  background: var(--tech-white);
  border: 1px solid var(--tech-border);
  border-radius: var(--tech-radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.tech-card:hover {
  border-color: var(--tech-primary);
  transform: translateY(-2px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.tech-footer {
  background: var(--tech-dark);
  color: #a0a5b8;
  margin-top: 64px;
}

.tech-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.tech-footer-brand p { margin-top: 8px; font-size: 0.9rem; }

.tech-footer-logo {
  font-family: 'Roboto', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  text-transform: lowercase;
}

.tech-footer-links { display: flex; gap: 48px; }
.tech-footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.tech-footer-col a {
  display: block;
  color: #a0a5b8;
  font-size: 0.85rem;
  padding: 4px 0;
  transition: color 0.2s;
}
.tech-footer-col a:hover { color: #fff; }

.tech-footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.tech-footer-bottom p { font-size: 0.78rem; }

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-page { background: var(--tech-bg); }

.tech-breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  font-size: 0.82rem;
  color: var(--tech-text-muted);
}
.tech-breadcrumb a { color: var(--tech-primary); }
.tech-breadcrumb span { margin: 0 4px; }

.tech-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.tech-article-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--tech-border);
}

.tech-article-title {
  font-size: 2.4rem;
  line-height: 1.15;
  color: var(--tech-dark);
  margin: 12px 0;
}

.tech-article-subtitle {
  font-size: 1.15rem;
  color: var(--tech-text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.tech-article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--tech-text-muted);
}

.tech-meta-divider { color: var(--tech-border); }

.tech-article-hero {
  margin: 0 -24px 32px;
}
.tech-article-hero img {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: var(--tech-radius);
}
.tech-article-hero figcaption {
  font-size: 0.82rem;
  color: var(--tech-text-muted);
  margin-top: 8px;
  padding: 0 24px;
}

.tech-article-body p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--tech-text);
  margin-bottom: 20px;
}
.tech-article-body h2 {
  font-size: 1.6rem;
  margin: 32px 0 16px;
}
.tech-article-body h3 {
  font-size: 1.3rem;
  margin: 24px 0 12px;
}

/* Related */
.tech-related {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
  border-top: 1px solid var(--tech-border);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .tech-hero-link {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .tech-hero-img img { min-height: 250px; max-height: 300px; }
  .tech-hero-content { padding: 24px; }
  .tech-hero-content h1 { font-size: 1.5rem; }

  .tech-secondary-grid { grid-template-columns: 1fr; }
  .tech-cards-grid { grid-template-columns: 1fr 1fr; }

  .tech-nav-links { display: none; }
  .tech-menu-toggle { display: block; }

  .tech-footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .tech-footer-links { gap: 32px; }

  .tech-article-title { font-size: 1.6rem; }
  .tech-article-hero { margin: 0 0 24px; }
}

@media (max-width: 560px) {
  .tech-cards-grid { grid-template-columns: 1fr; }
  .tech-article-body p { font-size: 1rem; }
}