/*
Theme Name: OfficeTemplateHub Modern Directory
Theme URI: https://officetemplatehub.com/
Author: Antigravity Studio
Author URI: https://officetemplatehub.com/
Description: A bespoke, ultra-fast, curated asset directory theme designed strictly in the minimalist aesthetic of toools.design and modern SaaS hubs.
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: oth-theme
*/

:root {
  --bg-page: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --border-hover: #cbd5e1;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --accent-cta: #f97316; /* Modern High-Converting Orange */
  --accent-cta-hover: #ea580c;
  --badge-excel: #10b981;
  --badge-ppt: #f59e0b;
}

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

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* NAVBAR */
.oth-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height: 70px;
  display: flex;
  align-items: center;
}

.oth-nav-container {
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.oth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.oth-logo-mark {
  width: 34px;
  height: 34px;
  background: #0f172a;
  color: #ffffff;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 800;
}

.oth-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.oth-nav-links a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #475569;
  transition: all 0.2s ease;
}

.oth-nav-links a:hover {
  color: var(--text-main);
  background: #f1f5f9;
}

/* HOMEPAGE HERO (toools.design header) */
.oth-hero {
  text-align: center;
  padding: 70px 24px 40px;
  max-width: 880px;
  margin: 0 auto;
}

.oth-pill-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.oth-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.oth-hero h1 {
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 20px;
}

.oth-hero p {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 35px;
}

/* FILTER PILLS */
.oth-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 45px;
  padding: 0 20px;
}

.oth-filter-btn {
  padding: 10px 22px;
  border-radius: 9999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #475569;
  background: #ffffff;
  border: 1px solid var(--border);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  user-select: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.oth-filter-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: var(--text-main);
}

.oth-filter-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 4px 10px -2px rgba(15, 23, 42, 0.25);
}

/* 3-COLUMN RESOURCE GRID */
.oth-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.oth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 32px;
  margin-bottom: 80px;
}

.oth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.oth-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

.oth-card-media {
  width: 100%;
  height: 220px;
  background: #f1f5f9;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #f1f5f9;
}

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

.oth-card:hover .oth-card-media img {
  transform: scale(1.03);
}

.oth-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.oth-badge-excel {
  background: var(--badge-excel);
  color: #ffffff;
}

.oth-badge-ppt {
  background: var(--badge-ppt);
  color: #ffffff;
}

.oth-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.oth-card-meta {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.oth-card-title {
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.oth-card-desc {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 22px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.oth-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

.oth-card-link {
  color: var(--primary);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ========================================= */
/* SINGLE POST: MILLION-DOLLAR WIREFRAME UI  */
/* ========================================= */
.oth-single-wrapper {
  padding: 40px 0 80px;
}

/* 1. TOP HERO SHOWCASE CARD (KHUNG ĐỎ) */
.oth-showcase-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  margin-bottom: 35px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.oth-showcase-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 30px;
}

.oth-showcase-left {
  flex: 1;
}

.oth-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.oth-sep {
  color: var(--border-hover);
}

.oth-current {
  color: var(--text-main);
  max-width: 350px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.oth-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.oth-badge-hero {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.oth-hero-title {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--text-main);
  margin: 0;
}

.oth-quick-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.oth-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
}

/* DOWNLOAD BUTTON TOP (KHUNG CAM) */
.oth-showcase-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  min-width: 280px;
}

.oth-btn-hero-download {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff !important;
  padding: 16px 32px;
  border-radius: 14px;
  box-shadow: 0 10px 20px -3px rgba(249, 115, 22, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none !important;
}

.oth-btn-hero-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px -4px rgba(249, 115, 22, 0.45);
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
}

.oth-btn-icon {
  font-size: 1.5rem;
  font-weight: 800;
}

.oth-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.oth-btn-text strong {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
}

.oth-btn-text small {
  font-size: 0.78rem;
  opacity: 0.9;
  font-weight: 500;
}

.oth-cta-guarantee {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ẢNH PREVIEW LỚN TRONG SHOWCASE */
.oth-showcase-preview {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.08);
  background: #f1f5f9;
}

.oth-showcase-preview img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover;
  display: block;
}

/* 2. DETAIL LAYOUT (2 CỘT WIREFRAME) */
.oth-detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

/* CỘT TRÁI (70%): SEO ARTICLE & SPECS */
.oth-content-column .oth-card-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.oth-section-heading {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--text-main);
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.oth-editorial-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #334155;
}

.oth-editorial-body h2, .oth-editorial-body h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin: 32px 0 14px;
}

.oth-editorial-body ul, .oth-editorial-body ol {
  margin: 16px 0 24px 24px;
}

.oth-editorial-body li {
  margin-bottom: 8px;
}

/* SPECS BOX IN ARTICLE */
.oth-specs-box {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 26px;
  margin: 28px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.oth-spec-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: block;
}

.oth-spec-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

/* BOTTOM CTA BOX */
.oth-bottom-cta-box {
  background: #0f172a;
  color: #ffffff;
  border-radius: 16px;
  padding: 32px;
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.oth-bottom-cta-text h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: #ffffff;
}

.oth-bottom-cta-text p {
  color: #94a3b8;
  font-size: 0.95rem;
  margin: 0;
}

/* CỘT PHẢI (30%): SIDEBAR RELATED TEMPLATES */
.oth-sidebar-sticky {
  position: sticky;
  top: 90px;
}

.oth-sidebar-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.oth-sidebar-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 4px;
}

.oth-sidebar-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.oth-related-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.oth-related-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.2s ease;
}

.oth-related-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.oth-related-thumb {
  width: 85px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
  position: relative;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.oth-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.oth-related-badge {
  position: absolute;
  bottom: 3px;
  right: 3px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
}

.oth-related-info {
  display: flex;
  flex-direction: column;
}

.oth-related-name {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.oth-related-link {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 700;
}

.oth-related-item:hover .oth-related-name {
  color: var(--primary);
}

/* FOOTER */
.oth-footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.oth-footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .oth-detail-layout {
    grid-template-columns: 1fr;
  }
  .oth-showcase-header {
    flex-direction: column;
    align-items: stretch;
  }
  .oth-showcase-cta {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .oth-hero h1 { font-size: 2.2rem; }
  .oth-showcase-card { padding: 22px; }
  .oth-hero-title { font-size: 1.7rem; }
  .oth-content-column .oth-card-box { padding: 22px; }
  .oth-btn-hero-download { width: 100%; justify-content: center; }
}
