/* ==========================================================================
   CV Custom Styles (Plain CSS)
   ========================================================================== */

/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* 
   LAYOUT OVERRIDES
   Force the main container to be wide on the CV page, 
   overriding the default blog layout constraints but keeping the sidebar.
*/

/* 1. Center and constain the Main Wrapper (contains Sidebar + Article) */
#main {
    width: 96% !important;
    /* Responsive edge gutter */
    max-width: 1400px !important;
    /* The "Borders" limit */
    margin: 0 auto !important;
    /* Center everything */
    float: none !important;
    display: block !important;
}

/* 2. Position the Sidebar (Author Bio) */
.article-author-top {
    display: inline !important;
    float: left !important;
    width: 18% !important;
    /* Sidebar width */
    margin-left: 0 !important;
    margin-right: 2% !important;
    /* Gap */
}

/* 3. Position the Resume Content */
#main article {
    width: 80% !important;
    /* Content width */
    max-width: 100% !important;
    float: left !important;
    display: inline !important;
    margin: 0 !important;
}

/* Ensure inner wrapper is full width */
.article-wrap {
    width: 100% !important;
    max-width: 100% !important;
}

/* REDUCE VERTICAL WHITESPACE */
/* Override global nav padding (normally 2em 0 3em) */
.navigation-wrapper {
    padding-bottom: 0.5rem !important;
    margin-bottom: 0 !important;
}

/* Remove default main top margin */
#main {
    margin-top: 0 !important;
}

/* ========================================================================== */

/* Reset/Base for CV Container */
.cv-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #333;
    width: 100% !important;
    max-width: 100% !important;
    /* Let parent handle width */
    margin: 0 auto;
    padding: 0 10px;
}

.cv-container a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s;
}

.cv-container a:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* Header Section */
.cv-header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 0.5rem;
    /* Reduced */
    margin-bottom: 1rem;
    /* Reduced from 2.5rem */
}

.cv-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    color: #111827;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.cv-links {
    display: flex;
    gap: 1rem;
}

.cv-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: #f3f4f6;
    color: #374151;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.cv-btn:hover {
    background-color: #e5e7eb;
    transform: translateY(-1px);
    color: #111827;
}

/* Grid Layout for Main Content */
.cv-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem;
    align-items: start;
}

/* Vertical Divider for Sidebar */
aside {
    border-left: 1px solid #e5e7eb;
    padding-left: 2rem;
    height: 100%;
}

@media (max-width: 850px) {
    .cv-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    aside {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #e5e7eb;
        padding-top: 2rem;
    }

    .cv-header-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Section Styles */
.cv-section {
    margin-bottom: 2.5rem;
}

.cv-section h2 {
    font-size: 1.6rem;
    /* Increased from 1.25rem */
    font-weight: 600;
    color: #111827;
    border-left: 4px solid #2563eb;
    padding-left: 0.75rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cv-section {
    /* Divider between sections */
    border-bottom: 2px solid #9ca3af;
    /* Darker Divider */
    padding-bottom: 2.5rem;
}

.cv-section:last-child {
    border-bottom: none;
}

/* Job/Project Item */
.cv-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    background-color: transparent;
    width: 100%;
    border-bottom: 1px solid #9ca3af;
    /* Darker Divider */
}

.cv-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cv-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cv-header-left {
    flex: 1;
    padding-right: 1rem;
}

.cv-role {
    font-size: 1.1rem;
    /* Slightly reduced from 1.125rem */
    font-weight: 700;
    color: #111827;
    display: inline;
}

.cv-company {
    font-size: 1rem;
    color: #4b5563;
    font-weight: 500;
    display: inline;
}

.cv-date {
    font-size: 0.875rem;
    color: #6b7280;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

.cv-details {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #374151;
}

.cv-details ul {
    margin: 0.5rem 0 0 0;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.cv-details li {
    margin-bottom: 0.35rem;
    padding-left: 0.2rem;
}


/* Skills & Tags */
.skill-group {
    margin-bottom: 1.5rem;
}

.skill-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background-color: #eff6ff;
    color: #1d4ed8;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Compact Lists for Sidebar */
.sidebar-item {
    margin-bottom: 2rem;
    /* Increased Margin for separation */
    padding-bottom: 0.5rem;
}

.sidebar-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.25rem 0;
}

.sidebar-item p,
.sidebar-item li {
    font-size: 0.9rem;
    color: #4b5563;
    margin: 0;
    line-height: 1.5;
}

.sidebar-degree {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.1rem;
}

.sidebar-sub {
    font-size: 0.85rem;
    color: #6b7280;
    font-style: italic;
    margin-bottom: 0.25rem;
}