/* ---------------------------------
   1. ROOT & GLOBAL STYLES
   ---------------------------------
*/
:root {
    /* Colors */
    --color-primary: #007AFF;
    --color-primary-light: #e6f2ff;
    --color-text: #222;
    --color-text-light: #555;
    --color-bg: #FFFFFF;
    --color-bg-light: #f8f9fa;
    --color-border: #e0e0e0;
    --color-code-bg: #2d2d2d;
    --color-code-text: #f8f8f2;

    /* Method Colors */
    --color-get: #007A33;
    --color-post: #0052cc;
    --color-put: #f5a623;
    --color-delete: #d0021b;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Menlo', 'Courier New', monospace;

    /* Spacing & Sizing */
    --header-height: 60px;
    --nav-width: 260px;
    --code-width: 320px;
    --border-radius: 6px;
    --site-padding: 2rem;
}

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

html, body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.3;
    color: #000;
}

h1 { font-size: 2.25rem; font-weight: 700; }
h2 { font-size: 1.75rem; font-weight: 600; border-bottom: 1px solid var(--color-border); padding-bottom: 0.5rem; margin-top: 2.5rem; }
h3 { font-size: 1.25rem; font-weight: 600; margin-top: 2rem; }
h5 { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; color: var(--color-text-light); letter-spacing: 0.5px; padding: 0 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background-color: var(--color-bg-light);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    border: 1px solid var(--color-border);
}

/* ---------------------------------
   2. GLOBAL HEADER
   ---------------------------------
*/
.global-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--site-padding);
    height: var(--header-height);
    width: 100%;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
}
.logo svg { margin-right: 0.5rem; }
.logo span { color: var(--color-text); }
.logo img { max-width: 100%; height: auto; }

.top-nav {
    display: flex;
    gap: 1.5rem;
}
.top-nav a {
    text-decoration: none;
    color: var(--color-text-light);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
}
.top-nav a:hover { color: var(--color-text); }
.top-nav a.active { color: var(--color-primary); border-bottom-color: var(--color-primary); }

.header-right { display: flex; gap: 0.75rem; }

/* ---------------------------------
   3. MAIN LAYOUT (THE 3 COLUMNS)
   ---------------------------------
*/
.main-container {
    display: grid;
    gap: var(--site-padding);
    margin: 10px;
    padding: 10px;
}

/* ---------------------------------
   4. COLUMN 1: NAVIGATION
   ---------------------------------
*/
.sidebar-nav {
    position: sticky;
    top: var(--header-height); /* Stick below the header */
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
    padding: 1.5rem 0;
    border-right: 1px solid var(--color-border);
}

.search-bar {
    padding: 0 1rem 1.5rem 1rem;
}
.search-bar input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    font-size: 0.95rem;
    background: var(--color-bg-light);
}

.api-nav ul {
    list-style: none;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
}
.api-nav li {
    margin: 1px 0;
}
.api-nav li.category-title {
    font-weight: 600;
    color: var(--color-text);
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
}

.api-nav a {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--color-text-light);
    font-size: 0.9rem;
    font-weight: 500;
    border-left: 3px solid transparent;
}
.api-nav a:hover {
    color: var(--color-text);
    background: var(--color-bg-light);
}
.api-nav a.active {
    color: var(--color-primary);
    background: var(--color-primary-light);
    border-left-color: var(--color-primary);
}

/* Method Badges (Small) */
.method-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 0.75rem;
    color: #fff;
    min-width: 40px;
    text-align: center;
}
.method-get { background-color: var(--color-get); }
.method-post { background-color: var(--color-post); }
.method-put { background-color: var(--color-put); }
.method-delete { background-color: var(--color-delete); }


/* ---------------------------------
   5. COLUMN 2: CONTENT
   ---------------------------------
*/
.content-pane {
    padding: 1rem;
    min-width: 0; /* Prevents flex/grid overflow issues */
}

.endpoint-display {
    font-family: var(--font-mono);
    background: var(--color-bg-light);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 500;
    border: 1px solid var(--color-border);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    white-space: nowrap;
    overflow-x: auto;
}
/* Method Badges (Large) */
.method-badge-large {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    color: #fff;
}

.param-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}
.param-table th, .param-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}
.param-table th {
    background: var(--color-bg-light);
    font-weight: 600;
}
.param-table td code { font-size: 0.85rem; }

.badge-required {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-delete);
    border: 1px solid #ffb8c1;
    background: #fff5f7;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 0.25rem;
}

/* ---------------------------------
   6. COLUMN 3: CODE & INTERACTIVE
   ---------------------------------
*/
.sidebar-code {
    position: sticky;
    top: var(--header-height); /* Stick below the header */
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
    padding: 1.5rem 1rem;
}

.lang-selector {
    display: flex;
    background: var(--color-bg-light);
    border-radius: var(--border-radius);
    padding: 4px;
    margin-bottom: 1rem;
}
.lang-selector button {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    color: var(--color-text-light);
}
.lang-selector button.active {
    background: var(--color-bg);
    color: var(--color-text);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.api-explorer {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-top: 2rem;
    background: var(--color-bg-light);
}
.api-explorer .form-group {
    margin-top: 1rem;
}
.api-explorer label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.api-explorer input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}
.api-explorer .btn-full-width {
    width: 100%;
    margin-top: 1rem;
}


/* ---------------------------------
   7. UTILITY & COMPONENTS
   ---------------------------------
*/

/* Code Blocks */
.code-header {
    background: #3a3a3a;
    color: #ccc;
    padding: 0.5rem 1rem;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    font-size: 0.85rem;
    font-family: var(--font-mono);
    margin-top: 1rem;
}

pre.code-block {
    background: var(--color-code-bg);
    color: var(--color-code-text);
    padding: 1rem;
    border-radius: var(--border-radius);
    overflow-x: auto;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}
/* Handle joined code blocks */
.code-header + pre.code-block {
    margin-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
pre.code-block code {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
}

/* Buttons */
.btn {
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.btn-primary:hover { background: #0062cc; }

.btn-secondary {
    background: var(--color-bg);
    color: var(--color-text);
    border-color: var(--color-border);
}
.btn-secondary:hover { background: var(--color-bg-light); }

.footer {
    /* Layout & Positioning */
    width: 100%;
    padding: 20px 0; /* Add vertical padding for space above and below content */
    margin-top: auto; /* Push the footer to the bottom of the content area (useful for sticky footers) */

    /* Colors & Typography */
    background-color: #333; /* Dark gray background */
    color: #fff; /* White text color */
    text-align: center; /* Center align all inline content (like the paragraph text) */
    font-family: Arial, sans-serif; /* Readable font */
    font-size: 14px;
}
/* Style for links inside the footer */
.footer a {
    color: #ccc; /* Lighter gray color for links */
    text-decoration: none; /* Remove the underline */
    margin: 0 10px; /* Add space between links */
    transition: color 0.3s; /* Smooth color change on hover */
}

/* Style for links on hover */
.footer a:hover {
    color: #fff; /* Change color to white on hover */
}

/* Flexbox to neatly separate content and links */
.footer {
    display: flex;
    flex-direction: column; /* Stack content vertically */
    align-items: center; /* Center items horizontally */
}

.footer-links {
    margin-top: 10px; /* Space between the copyright text and the links */
}

.hero-section {
    /* 1. Layout Dimensions */
    width: 100%;
    min-height: 420px; /* Define a minimum height */

    /* 2. Background Image Properties */
    background-size: cover; /* Ensures the image covers the entire area */
    background-position: center center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents image tiling */

    /* 3. Text Overlay & Centering (using Flexbox) */
    display: flex;
    flex-direction: column; /* Stack content vertically */
    justify-content: center; /* Vertically center content */
    align-items: center; /* Horizontally center content */
    text-align: center;
    padding: 10px;
}

/* 4. Text Styling for Readability */
.hero-content {
    width: 100%;
    color: #fff; /* White text for contrast */
    /* Optional: A subtle background for better readability over busy images */
    /* background-color: rgba(0, 0, 0, 0.4); */ /* Semi-transparent dark overlay */
    border-radius: 8px;
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2em;
    max-width: 600px;
}

.hero-content img { width: 100%; height: auto; }


/* --- 1. Grid Layout for Categories (.categories-grid) --- */
.categories-grid {
    padding: 10px;
    margin: 15px;
}

/* --- 2. List Layout (Blocks) using CSS Grid --- */
.blocks-list {
    /* Remove default list styling */
   /*  list-style: none; */
    /* CSS Grid setup for responsive columns */
    /* display: grid; */
     /* grid-template-columns: repeat(3, 1fr);  */
    /* gap: 25px; */ /* Space between the blocks */
    list-style: none;
    
    /* NEW: Use Flexbox for outer layout and centering */
    display: flex;
    /* Allow items to wrap to the next line */
    flex-wrap: wrap; 
    /* NEW: This is what centers the items horizontally (row by row) */
    justify-content: center; 
    
    /* Use the same gap between the blocks */
    gap: 25px;
}

/* --- 3. Individual Block Item Styling (.blocks-item) --- */
.blocks-item {
    background-color: #2aa29c;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); /* Subtle shadow */
    transition: transform 0.3s, box-shadow 0.3s; /* Smooth hover transition */
    min-width: 400px;
    text-align: center;
}

/* Hover effect */
.blocks-item:hover {
    transform: translateY(-5px); /* Lift the block slightly */
    box-shadow: 0 8px 15px rgba(0, 70, 190, 0.15); /* More prominent shadow and blue glow */
    border-color: #0a0a0a; /* Highlight border on hover */
}

/* --- 4. Link Styling (.blocks-item-link) --- */
.blocks-item-link {
    display: block; /* Make the entire block clickable */
    text-decoration: none; /* Remove underline from the link */
    color: inherit; /* Inherit text color from the parent */
    padding: 20px;
    min-height: 80px; /* Ensure a minimum height for uniformity */
    display: flex; /* Use flexbox to align content vertically */
    flex-direction: column;
    justify-content: center; /* Center content vertically */
}

/* --- 5. Title and Description Styling --- */
.blocks-item-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #f8f7f7; /* Darker color for prominence */
    margin: 0 0 5px 0;
    /* Optional: Truncate long titles with ellipses */
    white-space: nowrap;
    overflow: auto;
}

.blocks-item-description {
    font-size: 0.9em;
    color: #666;
    margin: 0;
    /* Hiding the description since it's empty in the provided HTML, 
       but keeping the style if you decide to add content later. */
    display: none; 
}

/* --- Mobile Responsiveness (Small Screens) --- */
@media (max-width: 600px) {
    .blocks-list {
        /* On small screens, switch to a single column layout */
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .blocks-item-link {
        padding: 15px;
    }

    .blocks-item-title {
        font-size: 1.1em;
    }
}

/* General Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* --- Layout Container --- */
.container {
    max-width: 1200px; /* Controls the main content width (FAQ, H1, Breadcrumb) */
    margin: 0 auto;
    padding: 0 20px;
    min-height: 700px;
}

.sign-in {
    background-color: #4AC2C5; /* Teal background for Sign In */
    color: white;
    border-color: #4AC2C5;
}

.sign-in:hover {
    background-color: #3aa6a9;
}


/* --- 2. Main Content & Navigation --- */
.breadcrumb a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

h1 {
    font-size: 36px;
    font-weight: 300;
    margin: 20px 0 30px;
}


/* --- 3. FAQ Accordion Styling --- */
.faq-item {
    margin-bottom: 1px; /* Small visual separation */
}

/* Hide the checkbox input, which controls the accordion state */
.accordion-toggle {
    display: none;
}

.faq-question {
    display: block;
    background-color: #4AC2C5; /* The primary teal color */
    color: white;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 16px;
    position: relative;
    user-select: none; /* Prevent text selection on the question bar */
}

/* Plus/Minus Icon Styling */
.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: bold;
    transition: transform 0.3s;
}

/* Answer Content (Hidden by default) */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background-color: #f7f7f7; /* Light background for the content */
    padding: 0 20px;
}

.faq-answer p {
    padding: 15px 0; /* Vertical padding for the answer text */
    margin: 0;
    color: #333;
}

/* Open/Checked State Logic (Pure CSS Accordion) */
.accordion-toggle:checked + .faq-question {
    background-color: #173a39; /* Slightly darker when open/active */
}

.accordion-toggle:checked + .faq-question::after {
    content: '−'; /* Change to minus sign */
}

.accordion-toggle:checked ~ .faq-answer {
    max-height: 1000px; /* Sufficient height to reveal content */
}

/* Styling for the container to establish context for the 50% width */
.heading-container {
    max-width: 1200px; /* Example width for the main content area */
    margin: 40px auto;
    padding: 0 20px;
}

.partial-underline-h1 {
    /* 1. Set the specified text color */
    color: #2aa29c;
    
    font-size: 32px;
    font-weight: 500; 
    margin: 0 0 30px 0;
    
    /* Crucial for positioning the pseudo-element underline */
    position: relative;
    
    /* Ensure no default underline is used */
    text-decoration: none;
    
    /* To ensure the underline starts precisely where the H1 starts */
    display: inline-block; 
}

/* Creating the Custom Underline Effect */
.partial-underline-h1::after {
    content: ''; /* Required for pseudo-elements */
    
    /* Position the underline below the text */
    position: absolute;
    bottom: -10px; /* Adjust vertical placement */
    left: 0;
    
    /* 2. Set the color and thickness */
    background-color: #2aa29c; /* Same color as the text */
    height: 3px; /* Thickness of the underline */
    
    /* 3. Set the width to 50% of the H1 element's width */
    width: 150%; 
    
    /* Optional: Add a smooth transition for hover effects */
    transition: width 0.3s ease-out;
}

/* Optional: Example of an interactive touch */
.partial-underline-h1:hover::after {
    width: 100%; /* Underline extends slightly on hover */
}

/* --- List of Links (Navigation) Styling --- */
.navigation-list {
    list-style: disc; /* Use standard bullet points */
    padding-left: 10px; /* Indentation for the bullets */
}

.navigation-list li {
    margin-bottom: 15px; /* Spacing between list items */
}

.navigation-list li a {
    color: black; /* A common, standard blue for unvisited links */
    text-decoration: none;
    font-size: 14px;
}

.navigation-list li a:hover {
    text-decoration: underline;
}

/* Specific styling for the list items that look like links in the image */
.navigation-list a {
    /* The image shows links that are a deep blue color, let's use a standard corporate blue */
    color: #0066CC; 
    font-weight: 500;
}

/* --- Layout Structure (Two-Column) --- */
.page-wrapper {
     /* max-width: 1200px; */  /* Wider container for documentation layout */
    margin: 0 auto;
    padding: 10px;
    display: flex;
    gap: 40px; /* Space between navigation and content */
}

/* --- Header & Breadcrumb Styling --- */
.header-links {
    font-size: 14px;
    color: #555;
    padding: 10px 0;
    margin-bottom: 20px;
}
.header-links a {
    color: #555;
    text-decoration: none;
}
.header-links a:hover {
    text-decoration: underline;
}

/* --- Navigation Section (Left Column) --- */
.navigation-sidebar {
    width: 280px; /* Fixed width for the sidebar */
    flex-shrink: 0; /* Prevents shrinking */
}

.navigation-sidebar h4 {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    padding-bottom: 5px;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
}


/* --- Content Section (Right Column) --- */
.main-content {
    flex-grow: 1; /* Takes up the remaining space */
}

.main-content h1 {
    font-size: 32px;
    font-weight: normal;
    margin-bottom: 10px;
}

.main-content h2 {
    font-size: 20px;
    font-weight: bold;
    margin: 40px 0 15px;
}

.main-content p, .main-content ul {
    margin-bottom: 20px;
    font-size: 15px;
}

/* --- ATS/CRM Integration Steps Styling --- */
.process-step {
    margin-bottom: 25px;
}

.process-step strong {
    font-weight: bold;
    color: #333;
    font-size: 16px;
    display: block; /* Ensures the step title is on its own line */
    margin-bottom: 5px;
}

.process-step p {
    margin-left: 20px; /* Indent the description */
    margin-top: 0;
    margin-bottom: 0;
}

/* --- Related Articles / Footer Links --- */
.related-articles h2 {
    border-top: 1px solid #ddd;
    padding-top: 20px;
    font-size: 16px;
}

.related-articles ul {
    list-style: none;}

.api-list, .levels-list {
    list-style: decimal;
    padding-left: 20px;
    font-size: 14px;
}
.api-list li, .levels-list li {
    margin-bottom: 8px;
}