/* =========================================
   1. CONTAINER & LAYOUT
   ========================================= */
.resume_container {
    background: #fff;
    box-shadow: 0 10px 40px rgba(132, 144, 255, 0.15);
    margin-top: 30px;
    margin-bottom: 50px;
    max-width: 900px;
    border-radius: 8px;
    overflow: hidden;
}

.resume_container .row {
    display: flex;
    flex-wrap: wrap;
}

/* =========================================
   2. SIDEBAR STYLING
   ========================================= */
.resume_sidebar {
    background-image: linear-gradient(to bottom, #8490ff 0%, #62bdfc 100%);
    background-size: cover;
    background-repeat: no-repeat;
    color: #fff;
    padding: 40px 30px;
    text-align: left;
    height: 100%; 
    min-height: 0; 
}

.resume_sidebar h2 {
    color: #fff;
    font-size: 18px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 10px;
    margin-bottom: 20px;
    margin-top: 30px;
    font-weight: 600;
    letter-spacing: 1px;
}

.profile_img img {
    border: 5px solid rgba(255,255,255,0.3);
    margin-bottom: 20px;
    background: #fff;
}

.sidebar_block ul { list-style: none; padding: 0; }
.sidebar_block ul li { margin-bottom: 12px; font-size: 14px; font-weight: 300; }
.sidebar_block ul li i { margin-right: 10px; color: #fff; opacity: 0.8; }

.badges_grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.badges_grid img { background: #fff; border-radius: 50%; padding: 4px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }

/* =========================================
   3. MAIN CONTENT STYLING
   ========================================= */
.resume_main { padding: 50px 40px; }

.main_header h1 { font-size: 36px; font-weight: 700; color: #333; margin-bottom: 10px; }
.main_header h3 { font-size: 16px; color: #8490ff; text-transform: uppercase; font-weight: 600; margin-bottom: 20px; }
.profile_summary { color: #666; font-size: 14px; line-height: 1.7; }

.section_title {
    font-size: 22px; color: #333; font-weight: 700; text-transform: uppercase;
    margin-bottom: 25px; margin-top: 30px;
}
.section_title i {
    color: #8490ff; margin-right: 10px; background: rgba(132, 144, 255, 0.1);
    padding: 8px; border-radius: 50%; font-size: 18px;
}

.job_item {
    margin-bottom: 10px;
    border-left: 2px solid #f0f2f5;
    padding-left: 20px;
}
.job_item h4 { font-size: 18px; font-weight: 700; color: #333; margin-bottom: 5px; }
.job_item h5 { font-size: 14px; color: #999; font-weight: 500; margin-bottom: 15px; font-style: italic; }

.job_sub_header {
    display: block; color: #6c8ef5; font-weight: 600;
    margin-bottom: 5px; font-size: 15px;
}

.job_item ul { padding-left: 20px; margin-bottom: 0; }
.job_item ul li { color: #666; font-size: 14px; margin-bottom: 8px; line-height: 1.6; }

.seminar_list { list-style: none; padding: 0; }
.seminar_list li { margin-bottom: 8px; position: relative; padding-left: 25px; color: #666; font-size: 14px; }
.seminar_list li:before { content: "•"; color: #62bdfc; position: absolute; left: 5px; font-weight: bold; font-size: 18px; }

.resume_action_area { background: #fff; padding-top: 150px !important; }
.header_area .main_menu {
    background: #fff;
    box-shadow: 0px 3px 16px 0px rgba(0, 0, 0, 0.1);
}
/* =========================================
   4. MAGIC CLASSES FOR PAGE BREAKS
   ========================================= */

/* Use this class to wrap Headers + Lists together */
.content_group {
    /* 1. Prevents slicing the group in half */
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    
    /* 2. Adds safety buffer at the top. 
       If this group lands at the top of Page 2, this padding 
       acts as the "Top Border" you wanted. */
    padding-top: 15px; 
    
    /* 3. Adds spacing between groups */
    margin-bottom: 10px;
}

/* --- Add this to the bottom of css/resume.css --- */

/* Removes the default gray border/outline from the Download button */
.resume_action_area .main_btn {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* =========================================
   5. PRINT RULES
   ========================================= */
@media print {
    .header_area, .resume_action_area { display: none !important; }
    
    .resume_sidebar {
        -webkit-print-color-adjust: exact !important; 
        print-color-adjust: exact !important;
        background-image: linear-gradient(to bottom, #8490ff 0%, #62bdfc 100%) !important;
    }
    
    .resume_container { width: 100%; max-width: 100%; margin: 0; box-shadow: none; }
    
    /* Ensure flexbox works for equal height columns in print */
    .row { display: flex !important; }
}