/* style.css */
/*
Theme Name: STSS33
Text Domain: stss33
*/
:root {
  --primary: #0F172A;
  --secondary: #38BDF8;
  --bg: #F8FAFC;
  --white: #ffffff;
  --sidebar-w: 260px;
  --section-pad: clamp(3rem, 6vw, 6rem);
  --line-thin: 1px solid #CBD5E1;
  --stripe-thick: 8px solid var(--secondary);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: var(--bg); color: var(--primary); line-height: 1.6; overflow-x: hidden; }
.site-wrapper { display: flex; }

/* N-B Sidebar */
.site-header {
  position: fixed; top: 0; left: 0; width: var(--sidebar-w); height: 100vh;
  background: var(--white); border-right: var(--line-thin); z-index: 1000;
  display: flex; flex-direction: column; padding: 2rem 1.5rem; overflow-x: hidden;
  border-top: var(--stripe-thick);
}
.logo {
  display: block; color: var(--primary); font-weight: 900; font-size: clamp(1.5rem, 3vw, 2rem);
  white-space: normal; overflow-wrap: anywhere; max-width: 100%; text-decoration: none; margin-bottom: 3rem; flex-shrink: 0;
}
.logo span { color: var(--secondary); }
.main-nav { flex: 1; overflow-y: auto; }
.main-nav ul { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.main-nav a { text-decoration: none; color: var(--primary); font-weight: 600; display: block; padding: 0.8rem 0; border-bottom: var(--line-thin); white-space: normal; overflow-wrap: break-word; transition: 0.3s; }
.main-nav a:hover { color: var(--secondary); padding-left: 10px; }
.nav-toggle { display: none; position: fixed; top: 1rem; right: 1rem; z-index: 2100; background: var(--white); border: var(--line-thin); padding: 0.5rem 1rem; cursor: pointer; font-size: 1.5rem; border-top: var(--stripe-thick); }

.site-main { flex: 1; margin-left: var(--sidebar-w); width: calc(100% - var(--sidebar-w)); min-height: 100vh; display: flex; flex-direction: column; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 clamp(1rem, 5vw, 2rem); }

@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .site-wrapper { display: block; }
  .site-main { margin-left: 0 !important; width: 100% !important; padding-top: 80px; }
  .site-header { transform: translateX(-100%); transition: transform 0.4s ease; z-index: 2000; }
  body.menu-open .site-header { transform: translateX(0); }
}

/* Typography */
h1, h2, h3 { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; word-break: break-word; color: var(--primary); }
h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); line-height: 1.1; margin-bottom: 1.5rem; font-weight: 800; }
h2 { font-size: clamp(1.8rem, 5vw, 3rem); margin-top: clamp(2rem, 5vw, 4rem); margin-bottom: 2rem; font-weight: 700; border-left: var(--stripe-thick); padding-left: 1rem; }
h3 { font-size: clamp(1.2rem, 3vw, 1.8rem); margin-bottom: 1rem; font-weight: 700; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 1rem 2rem; background: var(--bg); border: var(--line-thin); border-bottom: var(--stripe-thick); color: var(--primary); text-decoration: none; font-weight: 700; transition: 0.3s; text-transform: uppercase; letter-spacing: 1px; }
.btn:hover { background: var(--secondary); color: var(--white); border-color: var(--secondary); }

/* V-C Thin lines & D-E Stripes */
.section { padding: var(--section-pad) 0; border-bottom: var(--line-thin); position: relative; }
.stripe-top { border-top: var(--stripe-thick); }
.bg-white { background: var(--white); }

/* H-B Split Hero */
.hero-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 70vh; border-bottom: var(--line-thin); }
.hero-content { padding: var(--section-pad) clamp(1rem, 5vw, 4rem); display: flex; flex-direction: column; justify-content: center; border-right: var(--line-thin); background: var(--white); }
.hero-image { width: 100%; height: 100%; object-fit: cover; min-height: 400px; }
@media (max-width: 1024px) { .hero-split { grid-template-columns: 1fr; } .hero-content { border-right: none; } }

/* F-C Accordion */
.accordion { margin-top: 2rem; border-top: var(--line-thin); }
.accordion-item { border-bottom: var(--line-thin); }
.accordion-header { padding: 1.5rem 0; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 1.2rem; }
.accordion-body { padding: 0 0 1.5rem; display: none; color: #475569; }
.accordion-item.active .accordion-body { display: block; }
.accordion-item.active .accordion-header { color: var(--secondary); }

/* U-A Expert Quote */
.quote-block { padding: var(--section-pad) 0; background: var(--white); border-bottom: var(--line-thin); text-align: center; }
.quote-block blockquote { font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 700; font-style: italic; max-width: 800px; margin: 0 auto; color: var(--primary); padding-bottom: 2rem; border-bottom: var(--stripe-thick); display: inline-block; }

/* C-A Vertical Cards */
.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 3rem; }
@media (max-width: 1200px) { .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) { .posts-grid { grid-template-columns: minmax(0, 1fr); } }

.card { display: flex; flex-direction: column; background: var(--white); border: var(--line-thin); transition: 0.3s; text-decoration: none; color: inherit; height: 100%; }
.card:hover { transform: translateY(-5px); border-bottom: var(--stripe-thick); }
.card .thumb { width: 100%; height: clamp(200px, 25vw, 250px); object-fit: cover; border-bottom: var(--line-thin); }
.card .content { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card h3 { flex: 1; margin-bottom: 1rem; }
.card .meta { font-size: 0.9rem; color: #64748B; font-weight: 600; text-transform: uppercase; margin-top: auto; }

/* FT-B 2-col Footer */
.site-footer { padding: 4rem 0; background: var(--white); border-top: var(--stripe-thick); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 6rem); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.footer-logo { font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 900; color: var(--primary); text-decoration: none; margin-bottom: 1rem; display: block; overflow-wrap: anywhere; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.site-footer a { color: var(--primary); text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--secondary); }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 1rem; margin: 4rem 0; }
.pagination .page-numbers { display: flex; align-items: center; justify-content: center; min-width: 45px; height: 45px; text-decoration: none; font-weight: 700; color: var(--primary); border: var(--line-thin); background: var(--white); transition: 0.3s; }
.pagination .page-numbers.current { border-top: var(--stripe-thick); background: var(--bg); color: var(--secondary); }
.pagination .page-numbers:hover:not(.current):not(.dots) { background: var(--bg); color: var(--secondary); }
.pagination .page-numbers.dots { border: none; background: transparent; }

/* Content Protocol */
.post-content { max-width: 800px; margin: 0 auto; padding: var(--section-pad) 0; }
.post-content h2, .post-content h3 { border-left: var(--stripe-thick); padding-left: 1rem; border-bottom: none; }
.post-content ul, .post-content ol { padding-left: 2rem; margin-bottom: 1.5rem; }
.post-content li { margin-bottom: 0.5rem; }
.post-content p { margin-bottom: 1.5rem; }
.post-content table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; border: var(--line-thin); }
.post-content th, .post-content td { border: var(--line-thin); padding: 1rem; text-align: left; }
.post-content th { background: var(--bg); font-weight: 700; border-top: var(--stripe-thick); }
