/* style.css */
/*
Theme Name: DNK Lidera
Text Domain: dnk-lidera
*/
:root {
  --primary: #111111;
  --secondary: #00A651;
  --bg: #FFFFFF;
  --border: #EAEAEA;
  --white: #ffffff;
  --section-pad: clamp(4rem, 8vw, 8rem);
  --line-thick: 1px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background: var(--bg); color: var(--primary); line-height: 1.6; overflow-x: hidden; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 clamp(1rem, 5vw, 2rem); }

/* N-C Header */
.site-header { position: sticky; top: 0; left: 0; width: 100%; background: var(--bg); border-bottom: var(--line-thick) solid var(--border); z-index: 1000; }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 0; gap: clamp(1rem, 5vw, 4rem); }
.logo { display: inline-flex; justify-content: center; align-items: center; font-size: clamp(1.2rem, 5vw, 2rem); font-weight: bold; color: var(--primary); text-decoration: none; white-space: normal; flex-shrink: 0; min-height: 1em; min-width: 100px; }
.logo span { color: var(--secondary); font-weight: normal; margin-left: 5px; }

.nav-toggle { display: flex; align-items: center; background: none; border: none; font-size: 2rem; cursor: pointer; color: var(--primary); z-index: 2100; flex-shrink: 0; }
.main-nav { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: var(--bg); z-index: 2000; transform: translateY(-100%); transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1); visibility: hidden; display: flex; align-items: center; justify-content: center; }
body.menu-open .main-nav { transform: translateY(0); visibility: visible; }
.main-nav ul { list-style: none; text-align: center; display: flex; flex-direction: column; gap: 3rem; }
.main-nav a { text-decoration: none; color: var(--primary); font-size: clamp(2rem, 5vw, 4rem); font-weight: bold; }

.site-main { min-height: 80vh; display: flex; flex-direction: column; }

/* Typography */
h1, h2, h3 { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; word-break: break-word; font-weight: normal; }
h1 { font-size: clamp(2.5rem, 10vw, 7rem); line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 5vw, 3.5rem); margin-top: clamp(3rem, 6vw, 5rem); margin-bottom: 2rem; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 4vw, 2rem); margin-bottom: 1rem; }
p { font-size: 1.1rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 1.2rem 2.5rem; background: var(--primary); color: var(--white); text-decoration: none; font-size: 1.1rem; border-radius: 50px; transition: 0.3s; }
.btn:hover { background: var(--secondary); }

/* V-C / D-C Layout */
.section { padding: var(--section-pad) 0; border-bottom: var(--line-thick) solid var(--border); overflow: hidden; position: relative; }

/* H-C Type-Only */
.hero-type { padding: calc(var(--section-pad) * 1.5) 0; text-align: center; max-width: 900px; margin: 0 auto; }
.hero-type p { font-size: clamp(1.2rem, 4vw, 1.8rem); margin: 2rem 0; color: #666; }

/* F-D Text Block */
.manifest-block { max-width: 800px; margin: 0 auto; font-size: clamp(1.5rem, 4vw, 2.5rem); line-height: 1.4; text-align: center; }

/* C-B Horizontal Cards */
.posts-grid { display: flex; flex-direction: column; }
.card-horizontal { display: flex; gap: 3rem; padding: 3rem 0; border-bottom: var(--line-thick) solid var(--border); text-decoration: none; color: inherit; transition: 0.3s; }
.card-horizontal:last-child { border-bottom: none; }
.card-horizontal:hover h3 { color: var(--secondary); }
.card-thumb { width: 40%; flex-shrink: 0; }
.card-thumb img { width: 100%; height: clamp(200px, 30vw, 300px); object-fit: cover; }
.card-content { flex: 1; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 768px) { .card-horizontal { flex-direction: column; gap: 1.5rem; } .card-thumb { width: 100%; } }

/* U-E Numeric Info */
.infographic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; text-align: center; }
.info-num { font-size: clamp(3rem, 8vw, 6rem); font-weight: bold; color: var(--secondary); line-height: 1; margin-bottom: 1rem; }
@media (max-width: 768px) { .infographic { grid-template-columns: 1fr; gap: 3rem; } }

/* FT-B Two-column footer */
.site-footer { padding: var(--section-pad) 0; border-top: var(--line-thick) solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 6rem); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { font-size: clamp(1.5rem, 5vw, 2.5rem); font-weight: bold; color: var(--primary); text-decoration: none; display: block; margin-bottom: 1rem; overflow-wrap: anywhere; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.site-footer a { color: var(--primary); text-decoration: none; }
.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; border: var(--line-thick) solid var(--border); border-radius: 50px; color: var(--primary); transition: 0.3s; }
.pagination .page-numbers.current { background: var(--primary); color: var(--white); border-color: var(--primary); }
.pagination .page-numbers:hover:not(.current):not(.dots) { border-color: var(--secondary); color: var(--secondary); }
.pagination .page-numbers.dots { border: none; }

/* Content Formatting */
.post-content { max-width: 800px; margin: 0 auto; padding: var(--section-pad) 0; }
.post-content h2, .post-content h3 { border-bottom: var(--line-thick) solid var(--border); padding-bottom: 1rem; }
.post-content ul, .post-content ol { padding-left: 2rem; margin-bottom: 2rem; }
.post-content li { margin-bottom: 1rem; }
.post-content p { margin-bottom: 2rem; }
.post-content table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; }
.post-content th, .post-content td { border: var(--line-thick) solid var(--border); padding: 1rem; }
.post-content th { background: #f9f9f9; }
