/* style.css */
/*
Theme Name: 1cbo-ProfPartner
Text Domain: 1cbo-profpartner
*/
:root {
  --primary: #102A43;
  --secondary: #3182CE;
  --bg-1: #EBF8FF;
  --bg-2: #EDF2F7;
  --white: #ffffff;
  --section-pad: clamp(4rem, 6vw, 6rem);
  --line: 3px solid var(--secondary);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Roboto', sans-serif; background: var(--bg-1); color: var(--primary); line-height: 1.7; overflow-x: hidden; }
.container { max-width: 1000px; margin: 0 auto; padding: 0 clamp(1rem, 5vw, 2rem); overflow-x: visible; }

/* Typography */
h1, h2, h3 { font-family: 'Merriweather', serif; word-break: break-word; color: var(--primary); }
h1 { font-size: clamp(2rem, 6vw, 4.5rem); line-height: 1.2; margin-bottom: 1.5rem; }
h2 { font-size: clamp(1.8rem, 5vw, 3rem); margin-top: clamp(2rem, 5vw, 4rem); margin-bottom: 2rem; }
h3 { font-size: clamp(1.3rem, 4vw, 2rem); margin-bottom: 1rem; }
p { font-size: 1.1rem; color: #334E68; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 1rem 2.5rem; background: var(--primary); color: var(--white); text-decoration: none; font-size: 1.1rem; font-weight: bold; transition: 0.3s; border-radius: 4px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.btn:hover { background: var(--secondary); transform: translateY(-2px); }

/* N-D Centered Header */
.site-header { background: var(--white); border-bottom: var(--line); position: relative; z-index: 1000; padding-top: 1.5rem; text-align: center; }
.header-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.logo { font-size: clamp(1.5rem, 5vw, 2.5rem); font-weight: 900; color: var(--primary); text-decoration: none; white-space: nowrap; margin-bottom: 1rem; display: inline-flex; gap: 5px; font-family: 'Merriweather', serif; }
.logo span { color: var(--secondary); }
.nav-toggle { display: none; background: none; border: none; font-size: 2rem; cursor: pointer; color: var(--primary); position: absolute; right: 1rem; top: 1rem; z-index: 2100; }
.main-nav { width: 100%; display: flex; justify-content: center; }
.main-nav ul { list-style: none; display: flex; gap: 2.5rem; padding: 1rem 0; }
.main-nav a { text-decoration: none; color: var(--primary); font-weight: 700; font-size: 1rem; transition: color 0.2s; white-space: normal; overflow-wrap: break-word; text-transform: uppercase; letter-spacing: 1px; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .logo { margin-bottom: 0; font-size: 1.2rem; white-space: normal; }
  .header-inner { padding: 1rem 0; flex-direction: row; justify-content: space-between; }
  .main-nav { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: var(--white); z-index: 2000; transform: translateY(-100%); transition: transform 0.4s ease; visibility: hidden; align-items: center; justify-content: center; }
  body.menu-open .main-nav { transform: translateY(0); visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 2rem; text-align: center; }
  .main-nav a { font-size: 1.2rem; }
}

/* Sections - V-D Alternating Colors */
.section { padding: var(--section-pad) 0; overflow: hidden; position: relative; }
.section.alt { background: var(--bg-2); }
.section.white { background: var(--white); }
/* D-B Lines */
.section { border-bottom: var(--line); }

/* H-D Breakout Hero */
.hero-breakout { display: grid; grid-template-columns: 1fr 1fr; position: relative; padding: var(--section-pad) 0 0 0; background: var(--bg-1); border-bottom: var(--line); }
.hero-text { padding-bottom: var(--section-pad); display: flex; flex-direction: column; justify-content: center; }
.hero-image-wrap { position: relative; height: 100%; min-height: 400px; }
.hero-image-wrap img { position: absolute; top: 0; left: 0; width: 150%; height: 100%; object-fit: cover; }
@media (max-width: 1024px) {
  .hero-breakout { grid-template-columns: 1fr; padding-top: 0; }
  .hero-text { padding: var(--section-pad) 0; }
  .hero-image-wrap { width: 100vw; margin-left: calc(-50vw + 50%); }
  .hero-image-wrap img { width: 100%; position: relative; }
}

/* F-A Horizontal Stripes */
.feature-stripe { padding: 4rem 0; text-align: center; border-bottom: 1px solid rgba(0,0,0,0.1); }
.feature-stripe:nth-child(even) { background: var(--bg-2); }
.feature-stripe:nth-child(odd) { background: var(--white); }
.feature-stripe h3 { margin-bottom: 0.5rem; }
.feature-stripe p { max-width: 600px; margin: 0 auto; }

/* U-E Numeric Infographic */
.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: 900; color: var(--secondary); line-height: 1; margin-bottom: 1rem; font-family: 'Merriweather', serif; }
@media (max-width: 768px) { .infographic { grid-template-columns: 1fr; gap: 3rem; } }

/* C-B Horizontal Cards */
.posts-grid { display: flex; flex-direction: column; gap: 2rem; margin-top: 3rem; }
.card-horizontal { display: flex; gap: 3rem; background: var(--white); box-shadow: 0 4px 6px rgba(0,0,0,0.05); text-decoration: none; color: inherit; transition: 0.3s; border-radius: 8px; overflow: hidden; }
.card-horizontal:hover { box-shadow: 0 10px 15px rgba(0,0,0,0.1); transform: translateY(-3px); }
.card-thumb { width: 35%; flex-shrink: 0; }
.card-thumb img { width: 100%; height: 100%; min-height: 250px; object-fit: cover; }
.card-content { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 2rem; }
.card-content h3 { color: var(--primary); transition: color 0.3s; }
.card-horizontal:hover h3 { color: var(--secondary); }
@media (max-width: 768px) { .card-horizontal { flex-direction: column; gap: 0; } .card-thumb { width: 100%; } .card-thumb img { min-height: 200px; height: 200px; } }

/* FT-A Minimal Footer */
.site-footer { padding: 4rem 0; background: var(--primary); color: var(--white); text-align: center; border-top: var(--line); }
.site-footer .footer-logo { display: inline-block; font-size: clamp(1.5rem, 5vw, 2.5rem); font-weight: 900; color: var(--white); text-decoration: none; margin-bottom: 1rem; font-family: 'Merriweather', serif; overflow-wrap: anywhere; }
.site-footer p { color: #829AB1; }

/* 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: bold; color: var(--primary); border: 2px solid var(--primary); transition: 0.3s; background: var(--white); border-radius: 4px; }
.pagination .page-numbers.current { background: var(--primary); color: var(--white); }
.pagination .page-numbers:hover:not(.current):not(.dots) { background: var(--secondary); color: var(--white); border-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-bottom: 2px solid var(--bg-2); padding-bottom: 0.5rem; margin-top: 2rem; }
.post-content ul, .post-content ol { padding-left: 2rem; margin-bottom: 2rem; font-size: 1.1rem; color: #334E68; }
.post-content li { margin-bottom: 0.5rem; }
.post-content p { margin-bottom: 2rem; }
.post-content table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; background: var(--white); box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.post-content th, .post-content td { border: 1px solid var(--bg-2); padding: 1rem; text-align: left; }
.post-content th { background: var(--primary); color: var(--white); font-weight: bold; }
