/* --- GLOBAL STYLES --- */
:root {
    --primary-black: #1a1a1a;
    --secondary-gray: #666666;
    --accent-blue: #3b82f6;
    --bg-light: #f9fafb;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    color: var(--primary-black);
    background-color: #ffffff;
    line-height: 1.6;
}

/* This forces every direct child of the analysis block into the center */
.analysis-block > * {
    grid-column: 2;
}

/* Then keep your "breakout" rule for the image wrapper */
.analysis-block .image-grid-wrapper {
    grid-column: 1 / -1;
}

.analysis-block {
  display: grid;
  /* Fixed 700px middle. side columns (1fr) split the remaining space. */
  grid-template-columns: 1fr 700px 1fr;
  width: 100%;
  justify-content: center;
}

/* On smaller screens, we need to make sure 700px doesn't break the layout */
@media (max-width: 768px) {
  .analysis-block {
    grid-template-columns: 20px 1fr 20px; /* Small gutters for mobile */
  }
}

.analysis-block > h3,
.analysis-block > p {
  grid-column: 2; /* Force text into the 700px slot */
  text-align: left; /* Or center, depending on your vibe */
  width: 100%; 
}

.image-grid-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 15px; /* Added a bit more space for text */
    row-gap: 25px;    /* Extra space for the caption */
    width: 120%;
    margin-left: -10%;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Style the figure as the grid container */
.cs-fig {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Style the image inside the figure */
.cs-fig img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    /* Optional: add a slight shadow to make them pop */
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

/* Style the subtitle */
.cs-fig figcaption {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--secondary-gray); /* Or a lighter grey */
    text-align: center;
    margin-top: 8px; /* Space between img and text */
    font-style: italic;
    opacity: 0.8;
}

/* Bullet List Styling */
.problem-list {
    margin-bottom: 30px;
    padding-left: 20px;
    list-style: none;
}

.problem-list li {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-black);
    margin-bottom: 10px;
    position: relative;
}

/* Custom Blue Bullet */
.problem-list li::before {
    content: "•";
    color: black;
    font-weight: bold;
    display: inline-block; 
    width: 1em;
    margin-left: -1em;
}

.solution-list {
    margin-bottom: 30px;
    padding-left: 20px;
    list-style: none;
}

.solution-list li {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: var(--primary-black);
    margin-bottom: 10px;
    position: relative;
}

/* Custom Blue Bullet */
.solution-list li::before {
    content: "•";
    color: black;
    display: inline-block; 
    width: 1em;
    margin-left: -1em;
}

/* Paragraph Styling */
.analysis-text {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--secondary-gray);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

/* --- HERO SECTION --- */
.cs-hero {
    text-align: center;
    padding: 150px 20px 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.cs-title {
    font-family: 'Anton', sans-serif;
    font-size: 5rem;
    margin: 0;
    letter-spacing: 2px;
}

.cs-subtitle {
    font-size: 1.25rem;
    color: var(--secondary-gray);
    max-width: 600px;
    margin: 20px auto;
}

.cs-meta {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
}

.meta-item {
    font-size: 0.9rem;
    color: var(--secondary-gray);
    width: 150px;
    text-align: center;
    flex-shrink: 0;
}

.cs-main-img {
    width: 100%;
    border-radius: 16px;
    margin-top: 60px;
}

.cs-container {
    display: flex;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    gap: 60px;
}

.cs-sidebar {
    width: 200px;
    position: sticky;
    top: 150px;
    height: fit-content;
}

.cs-sidebar ul {
    list-style: none;
    padding: 0;
}

.cs-sidebar li {
    margin-bottom: 20px;
}

.cs-sidebar a {
    text-decoration: none;
    color: var(--secondary-gray);
    font-weight: 600;
    transition: 0.2s;
}

.cs-sidebar a:hover {
    color: var(--accent-blue);
}

.cs-content {
    flex: 1;
}

.cs-section {
    margin-bottom: 120px;
}

.cs-section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

/* --- GRID FOR PROCESS --- */
.cs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.cs-grid-item {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
}

.cs-body-img {
    width: 100%;
    border-radius: 12px;
    margin: 30px 0;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    /* The Secret Sauce */
    width: 100%; 
    box-sizing: border-box; /* Ensures padding doesn't add to the width */
    padding: 20px 5%;     /* Reduced 10% to 5% for better spacing on smaller screens */
    
    position: fixed;
    top: 0;
    left: 0; /* Align it to the absolute start of the screen */
    
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #eee; /* Optional: adds a nice subtle line */
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 60px; /* Adjust this to make your logo bigger or smaller */
    width: auto;  /* Keeps the aspect ratio perfect */
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    font-family: 'Inter';
    text-decoration: none;
    color: var(--primary-black);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;

    display: inline-block; /* Allows the link to hold height/padding */
    padding: 8px 0;       /* Adds clickable area above/below text */
    border-bottom: 2px solid transparent; /* Prevents "jumping" when active */
    transition: 0.3s ease;
}

.nav-links a:hover {
    border-bottom: 2px solid black;
    padding-bottom: 4px;
    color: black;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .cs-container { flex-direction: column; }
    .cs-sidebar { display: none; } /* Hide sidebar on mobile */
    .cs-title { font-size: 3rem; }
    .cs-grid { grid-template-columns: 1fr; }
}