/* --- CSS Variables --- */
:root {
    /* Light Mode Defaults */
    --bg-color: #f8f9fa;
    --text-color: #212529;
    --text-muted: #6c757d;
    --section-bg: #ffffff;
    --section-sidebar-bg: #fdfdff;
    --header-bg: #1a2b3c; /* Formal Dark Blue */
    --header-text: #f8f9fa;
    --header-accent: #a9d6e5; /* Lighter Formal Blue Accent */
    --header-border: #468faf;
    --sticky-header-bg: rgba(26, 43, 60, 0.97); /* Slightly transparent */
    --sticky-header-shadow: rgba(0, 0, 0, 0.15); /* Slightly stronger shadow */
    --footer-bg: var(--header-bg);
    --footer-text: #a9d6e5;
    --border-color: #dee2e6;
    --primary-accent: #007bff; /* Action Blue */
    --primary-accent-hover: #0056b3;
    --link-color: #0056b3;
    --link-hover: #003d82;
    --button-bg: var(--primary-accent);
    --button-text: #ffffff;
    --button-hover-bg: var(--primary-accent-hover);
    --button-secondary-bg: #f1f3f5;
    --button-secondary-text: var(--text-muted);
    --button-secondary-border: var(--border-color);
    --button-secondary-hover-bg: #e9ecef;
    --button-secondary-hover-text: var(--text-color);
    /* -- Distinct Theme Toggle Button Colors (Light) -- */
    --button-theme-track-bg: #bdc1c6; /* Grey track */
    --button-theme-track-border: #adb5bd;
    --button-theme-knob-bg: #ffffff; /* White knob */
    --button-theme-track-hover-bg: #adb5bd;
    /* -- Distinct Email Button Colors (Light - Dark Style) -- */
    --button-email-bg: #495057; /* Dark Grey */
    --button-email-text: #f8f9fa; /* Light Text */
    --button-email-border: #495057;
    --button-email-hover-bg: #343a40; /* Darker Grey on hover */
    --button-email-hover-text: #f8f9fa;
    --button-email-hover-border: #343a40;
    /* -- Header Social Icon Color -- */
    --header-social-icon-color: var(--header-accent);
    --header-social-icon-hover: var(--white);


    --details-bg: #e7f5ff;
    --details-border: #4dabf7;
    --details-text: #212529;
    --shadow-color: rgba(0, 0, 0, 0.05);
    --modal-overlay-bg: rgba(0, 0, 0, 0.7);
    --modal-content-bg: var(--section-bg);
    --modal-close-color: var(--text-muted);
    --img-filter: none;
    /* --- Print Specific Color Variables --- */
    --print-dark-blue: #003366;
    --print-medium-blue: #004085;
    --print-link-blue: #0056b3;
    --print-light-blue-bg: #f0f5fa; /* Pale blue for section backgrounds */
    --print-light-border: #a9d6e5;
    --print-text-main: #333333;
    --print-text-muted: #555555;
}

html.dark-mode {
    /* Dark Mode Overrides */
    --bg-color: #12181f;
    --text-color: #d8dce0;
    --text-muted: #8a99a8;
    --section-bg: #1c2530;
    --section-sidebar-bg: #1f2a36;
    --header-bg: #11181f;
    --header-text: #e1e5e8;
    --header-accent: #7aa0b8;
    --header-border: #5a7a90;
    --sticky-header-bg: rgba(17, 24, 31, 0.97);
    --sticky-header-shadow: rgba(0, 0, 0, 0.3);
    --footer-bg: var(--header-bg);
    --footer-text: #7aa0b8;
    --border-color: #3a4a5a;
    --primary-accent: #4dabf7;
    --primary-accent-hover: #7bc0f9;
    --link-color: #64b5f6;
    --link-hover: #90caf9;
    --button-bg: var(--primary-accent);
    --button-text: #11181f;
    --button-hover-bg: var(--primary-accent-hover);
    --button-secondary-bg: #2a3a4a;
    --button-secondary-text: var(--text-muted);
    --button-secondary-border: var(--border-color);
    --button-secondary-hover-bg: #3a4a5a;
    --button-secondary-hover-text: var(--text-color);
    /* -- Distinct Theme Toggle Button Colors (Dark) -- */
    --button-theme-track-bg: #0d6efd;
    --button-theme-track-border: #0a58ca;
    --button-theme-knob-bg: #ffffff;
    --button-theme-track-hover-bg: #0a58ca;
     /* -- Distinct Email Button Colors (Dark - Darker Style) -- */
    --button-email-bg: #212529;
    --button-email-text: #adb5bd;
    --button-email-border: #3a4a5a;
    --button-email-hover-bg: #3a4a5a;
    --button-email-hover-text: #dee2e6;
    --button-email-hover-border: #495057;
     /* -- Header Social Icon Color -- */
    --header-social-icon-color: var(--header-accent);
    --header-social-icon-hover: var(--header-text);

    --details-bg: #2a3a4a;
    --details-border: #64b5f6;
    --details-text: #d8dce0;
    --shadow-color: rgba(0, 0, 0, 0.2);
    --modal-overlay-bg: rgba(0, 0, 0, 0.8);
    --modal-content-bg: var(--section-bg);
    --modal-close-color: var(--text-muted);
    --img-filter: brightness(0.85) contrast(1.1);
}

/* --- General Styles using Variables --- */
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; margin: 0; padding: 0; background-color: var(--bg-color); color: var(--text-color); transition: background-color 0.3s ease, color 0.3s ease; }
body.sticky-active { padding-top: 75px; }

.container { width: 90%; max-width: 1200px; margin: auto; overflow: visible; padding: 0 15px; }

/* Header */
header#main-header { background: var(--header-bg); color: var(--header-text); padding: 15px 0 10px 0; border-bottom: 3px solid var(--header-border); box-shadow: 0 2px 4px var(--shadow-color); transition: padding 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease; position: relative; z-index: 900; }
.header-content-wrapper { display: flex; flex-direction: column; align-items: center; }
.header-main-info { width: 100%; text-align: center; transition: margin-bottom 0.3s ease-out; }
header h1 { margin: 0 0 2px 0; font-size: 2.4em; font-weight: 600; text-align: center; color: var(--header-text); text-shadow: 1px 1px 2px rgba(0,0,0,0.1); transition: font-size 0.3s ease, margin 0.3s ease; }
header h2 { margin: 0 0 5px 0; font-size: 1.4em; color: var(--header-accent); text-align: center; font-weight: 400; transition: font-size 0.3s ease, margin 0.3s ease, opacity 0.3s ease, max-height 0.4s ease-out; max-height: 50px; opacity: 1; }
/* Header Social Icons */
.header-social-links { margin: 8px 0; text-align: center; }
.social-icon-link { display: inline-block; margin: 0 7px; text-decoration: none; border-bottom: none; background: none; border: none; padding: 0; cursor: pointer; vertical-align: middle; } /* Base styles for both <a> and <button> */
.social-icon-link svg { width: 22px; height: 22px; fill: var(--header-social-icon-color); transition: fill 0.3s ease, transform 0.2s ease; vertical-align: middle; }
.social-icon-link:hover svg { fill: var(--header-social-icon-hover); transform: scale(1.1); }
button.social-icon-link:hover svg { fill: var(--header-social-icon-hover); transform: scale(1.1); } /* Ensure hover applies to button too */

header .summary { text-align: center; font-style: normal; margin: 10px auto 10px auto; color: var(--header-text); opacity: 0.85; max-width: 750px; font-size: 1.05em; transition: opacity 0.3s ease, max-height 0.4s ease-out, margin 0.3s ease, padding 0.3s ease; max-height: 100px; overflow: hidden; }
header .contact-info { margin-top: 10px; text-align: center; font-size: 0.9em; line-height: 1.6; transition: opacity 0.3s ease, max-height 0.4s ease-out, margin 0.3s ease, padding 0.3s ease; max-height: 200px; overflow: hidden; }
header .contact-info p { margin: 4px 0; display: inline-block; margin-right: 12px; color: var(--header-text); opacity: 0.9; }
header .contact-info p:last-child { margin-right: 0; }
header .contact-info strong { color: var(--header-accent); font-weight: 600; margin-right: 4px;}
header a { color: var(--header-text); text-decoration: none; font-weight: 500; border-bottom: 1px dotted var(--header-accent); transition: color 0.3s ease, border-bottom-color 0.3s ease; } /* Applies to non-button links */
header a:hover { color: var(--header-accent); border-bottom-color: var(--header-text); }
header .contact-info p:nth-of-type(1), header .contact-info p:nth-of-type(2), header .contact-info p:nth-of-type(3), header .contact-info p:nth-of-type(4), header .contact-info p:nth-of-type(5), header .contact-info p:nth-of-type(6), header .contact-info p:nth-of-type(7), header .contact-info p:nth-of-type(8) { display: none; }


/* Control Buttons Styling */
.control-buttons-container.header-controls { padding: 10px 0 0px 0; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; width: 100%; transition: padding 0.3s ease; }
.control-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; font-size: 0.9em; font-weight: 500; border-radius: 20px; cursor: pointer; text-decoration: none; transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, border-color 0.3s ease, padding 0.3s ease, font-size 0.3s ease; text-align: center; border: 1px solid transparent; min-width: auto; vertical-align: middle; }
.print-btn { background-color: var(--button-bg); color: var(--button-text); border-color: var(--button-bg); box-shadow: 0 2px 5px var(--shadow-color); }
.print-btn:hover { background-color: var(--button-hover-bg); border-color: var(--button-hover-bg); box-shadow: 0 4px 8px var(--shadow-color); }
.diplomas-btn, .blog-btn, .linkedin-btn { background-color: var(--button-secondary-bg); color: var(--button-secondary-text); border: 1px solid var(--button-secondary-border); }
.diplomas-btn:hover, .blog-btn:hover, .linkedin-btn:hover { background-color: var(--button-secondary-hover-bg); color: var(--button-secondary-hover-text); border-color: var(--button-secondary-hover-bg); }
.email-btn { background-color: var(--button-email-bg); color: var(--button-email-text); border: 1px solid var(--button-email-border); }
.email-btn:hover { background-color: var(--button-email-hover-bg); color: var(--button-email-hover-text); border-color: var(--button-email-hover-border); }
.email-btn .btn-icon { margin-right: 6px; vertical-align: -1px; }
.theme-toggle-btn { padding: 0; width: 60px; height: 30px; border-radius: 15px; background-color: var(--button-theme-track-bg); border: 1px solid var(--button-theme-track-border); position: relative; cursor: pointer; transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease; box-shadow: inset 0 1px 3px rgba(0,0,0,0.1); min-width: 60px; vertical-align: middle; flex-shrink: 0; }
.theme-toggle-btn:hover { background-color: var(--button-theme-track-hover-bg); border-color: var(--button-theme-track-border); }
.toggle-icon { display: block; width: 24px; height: 24px; background-color: var(--button-theme-knob-bg); border-radius: 50%; position: absolute; top: 2px; left: 3px; transition: transform 0.3s ease, background-color 0.3s ease; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.toggle-icon::before, .toggle-icon::after { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 14px; line-height: 1; transition: opacity 0.3s ease; }
.toggle-icon::before { content: '☀️'; opacity: 1; color: #f39c12; }
.toggle-icon::after { content: '🌙'; opacity: 0; color: #f1c40f; }
html.dark-mode .theme-toggle-btn { background-color: var(--button-theme-track-bg); border-color: var(--button-theme-track-border); }
html.dark-mode .theme-toggle-btn:hover { background-color: var(--button-theme-track-hover-bg); }
html.dark-mode .toggle-icon { transform: translateX(30px); background-color: var(--button-theme-knob-bg); }
html.dark-mode .toggle-icon::before { opacity: 0; }
html.dark-mode .toggle-icon::after { opacity: 1; }


/* --- Sticky Header Styles --- */
header#main-header.sticky-header-active {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 0;
    background-color: var(--sticky-header-bg);
    box-shadow: 0 3px 6px var(--sticky-header-shadow);
    z-index: 1000;
    border-bottom-width: 1px;
}
header#main-header.sticky-header-active .header-content-wrapper {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
header#main-header.sticky-header-active .header-main-info {
    width: auto;
    text-align: left;
    margin-bottom: 0;
    max-height: none;
    opacity: 1;
    overflow: visible;
}
header#main-header.sticky-header-active h1 {
    font-size: 1.3em;
    margin: 0;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}
header#main-header.sticky-header-active h2 {
    display: inline-block;
    font-size: 0.9em;
    margin: 0;
    color: var(--header-accent);
    font-weight: normal;
    opacity: 0.8;
    vertical-align: middle;
    max-height: none;
}
header#main-header.sticky-header-active .header-social-links,
header#main-header.sticky-header-active .summary,
header#main-header.sticky-header-active .contact-info {
    display: none;
}
header#main-header.sticky-header-active .control-buttons-container.header-controls {
    padding: 0;
    width: auto;
    max-height: none;
    opacity: 1;
    flex-shrink: 0;
    gap: 8px;
}
header#main-header.sticky-header-active .control-btn {
    padding: 5px 10px;
    font-size: 0.8em;
    border-radius: 15px;
}
header#main-header.sticky-header-active .theme-toggle-btn {
    transform: scale(0.85);
    border-radius: 15px;
}


/* Layout */
.main-content { display: flex; flex-wrap: wrap; gap: 30px; }
.main-column { flex: 2; min-width: 320px; }
.sidebar-column { flex: 1; min-width: 280px; }

/* Sections */
section { background: var(--section-bg); color: var(--text-color); padding: 25px; margin-bottom: 25px; border-radius: 8px; box-shadow: 0 4px 8px var(--shadow-color); border: 1px solid var(--border-color); transition: background-color 0.3s ease, border-color 0.3s ease; }
section h2 { color: var(--text-color); border-bottom: 3px solid var(--primary-accent); padding-bottom: 10px; margin-top: 0; margin-bottom: 20px; font-size: 1.6em; font-weight: 600; }
.sidebar-column section { background-color: var(--section-sidebar-bg); }
.sidebar-column section h2 { font-size: 1.4em; border-bottom-width: 2px; }

/* Cover Letter Container */
.cover-letter-container { margin-top: 0; }
.cover-letter-container section { margin-bottom: 25px; }


/* Signature Image */
.signature-image { max-width: 180px; height: auto; display: block; margin: 15px 0 5px 0; filter: var(--img-filter); transition: filter 0.3s ease; }
.signature-image + p { margin-top: 0; font-size: 0.9em; color: var(--text-muted); }

/* Knowledge List */
#knowledge ul.knowledge-list { font-size: 0.95em; padding-left: 5px; list-style-type: none; }
#knowledge ul.knowledge-list li { margin-bottom: 12px; padding-left: 0; line-height: 1.5; }
#knowledge ul.knowledge-list li::before { content: none; }
#knowledge ul.knowledge-list strong { color: var(--primary-accent); display: block; margin-bottom: 3px; font-weight: 600; }

/* Portfolio List (No Bullets) */
#portfolio ul { font-size: 0.95em; padding-left: 5px; list-style-type: none; }
#portfolio li { margin-bottom: 10px; padding-left: 0; position: static; }
#portfolio li::before { content: none; }
#portfolio a { color: var(--link-color); text-decoration: none; font-weight: 500; transition: color 0.2s ease; }
#portfolio a:hover { color: var(--link-hover); text-decoration: underline; }

/* Awards */
#awards .entry p { font-size: 0.9em; color: var(--text-muted); }
#awards .entry h3 { font-size: 1em; color: var(--primary-accent); margin-bottom: 5px; }
#awards .entry { padding-bottom: 10px; margin-bottom: 10px; }

/* Entries/Jobs */
.entry, .job { margin-bottom: 25px; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); }
.entry:last-child, .job:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.entry h3, .job h3 { margin-top: 0; margin-bottom: 5px; color: var(--text-color); font-size: 1.25em; font-weight: 600; }
.entry p, .job p { margin: 5px 0; font-size: 1em; color: var(--text-color); }
.entry em, .job em { color: var(--text-muted); font-style: normal; font-size: 0.9em; display: block; margin-bottom: 5px; }

/* Toggle Details Buttons */
.toggle-details { background-color: var(--button-bg); color: var(--button-text); border: none; padding: 8px 15px; border-radius: 20px; /* More rounded */ cursor: pointer; font-size: 0.9em; font-weight: 500; margin-top: 10px; margin-bottom: 10px; transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease; box-shadow: 0 2px 4px var(--shadow-color); }
.toggle-details:hover { background-color: var(--button-hover-bg); box-shadow: 0 4px 8px var(--shadow-color); }

/* Details Area */
.details { display: none; margin-top: 15px; padding: 15px 20px; border-left: 4px solid var(--details-border); background-color: var(--details-bg); border-radius: 0 5px 5px 0; font-size: 0.95em; color: var(--details-text); transition: background-color 0.3s ease, border-color 0.3s ease; }
.details p { margin-bottom: 10px; }
.details ul { margin-top: 10px; margin-bottom: 10px; padding-left: 25px; list-style: disc; }
.details li { margin-bottom: 8px; line-height: 1.5; padding-left: 0; position: static; }
.details li::before { content: none; }
.details strong { color: var(--primary-accent); }
.details a { color: var(--link-color); font-weight: 500; }
.details a:hover { color: var(--link-hover); text-decoration: underline; }
.details.visible { display: block; animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Footer */
footer { background: var(--footer-bg); color: var(--footer-text); text-align: center; padding: 20px; margin-top: 30px; font-size: 0.9em; transition: background-color 0.3s ease, color 0.3s ease; }
footer p { margin: 0; }

/* Modal Styles */
.modal-hidden { display: none; }
.modal-visible { display: flex; }
#modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--modal-overlay-bg); justify-content: center; align-items: center; z-index: 1000; transition: background-color 0.3s ease; }
#modal-content { background-color: var(--modal-content-bg); padding: 20px; padding-top: 45px; border-radius: 8px; position: relative; width: 85%; height: 85%; max-width: 1100px; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3); display: flex; flex-direction: column; transition: background-color 0.3s ease; }
#modal-close-btn { position: absolute; top: 10px; right: 15px; font-size: 1.8em; font-weight: bold; line-height: 1; background: none; border: none; cursor: pointer; color: var(--modal-close-color); padding: 0; transition: color 0.3s ease; }
#modal-close-btn:hover { color: var(--text-color); }
#modal-iframe { flex-grow: 1; border: 1px solid var(--border-color); background-color: var(--bg-color); transition: border-color 0.3s ease, background-color 0.3s ease; }
.iframe-loading-notice { text-align: center; color: var(--text-muted); font-style: italic; margin-top: 10px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; }


/* Responsiveness */
@media(max-width: 991px){
     .main-content { flex-direction: column; gap: 0; }
     .main-column, .sidebar-column { flex: 1 1 100%; min-width: auto; }
     .sidebar-column { margin-top: 25px; }
     section { padding: 20px; }
     section h2 { font-size: 1.5em; }
     #modal-content { width: 90%; height: 90%; }
     .cover-letter-container { margin-top: 25px; }
     header#main-header.sticky-header-active .header-content-wrapper { flex-wrap: wrap; justify-content: center; }
     header#main-header.sticky-header-active .header-main-info { width: 100%; text-align: center; margin-bottom: 5px; }
     header#main-header.sticky-header-active h1 { display: inline; margin-right: 5px; }
     header#main-header.sticky-header-active h2 { display: inline; }
     header#main-header.sticky-header-active .control-buttons-container { padding-top: 5px; }
}
@media(max-width: 768px){
    .header-controls .control-btn { width: auto; margin: 3px; }
    .control-buttons-container:not(.header-controls) { /* Unused? */ }
    .theme-toggle-btn { width: 60px; padding: 0; }
    #modal-content { width: 95%; height: 90%; padding: 15px; padding-top: 40px; }
    #modal-close-btn { font-size: 1.6em; top: 8px; right: 10px; }
}
@media(max-width: 480px){
     .container { width: 95%; padding: 0 10px; }
     header h1 { font-size: 2em; }
     header h2 { font-size: 1.2em; }
     header .summary { font-size: 1em; }
     section { padding: 15px; }
     .entry h3, .job h3 { font-size: 1.15em; }
     .toggle-details { font-size: 0.85em; padding: 7px 12px; }
     .details { font-size: 0.9em; padding: 12px 15px; }
     .header-controls .control-btn { font-size: 0.75em; padding: 6px 10px; }
     .theme-toggle-btn { width: 50px; height: 25px; }
     .toggle-icon { width: 20px; height: 20px; top: 1.5px; left: 2.5px;}
     .toggle-icon::before, .toggle-icon::after { font-size: 11px;}
     html.dark-mode .toggle-icon { transform: translateX(25px); }
     #modal-content { width: 98%; height: 95%; }
     header#main-header.sticky-header-active h1 { font-size: 1.1em; }
     header#main-header.sticky-header-active h2 { font-size: 0.8em; }
     header#main-header.sticky-header-active .control-buttons-container { gap: 3px; }
     header#main-header.sticky-header-active .control-btn { padding: 4px 8px; font-size: 0.7em;}
     header#main-header.sticky-header-active .theme-toggle-btn { transform: scale(0.8); }
     body.sticky-active { padding-top: 75px; }
}


/* --- Print Styles --- */
@media print {
    /* Base Print Styles */
    body { font-family: Calibri, Helvetica, Arial, sans-serif; font-size: 10.5pt; line-height: 1.4; color: var(--print-text-main) !important; background: #fff !important; margin: 0; padding: 0; width: 100%; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .container { width: 100% !important; max-width: 18cm !important; margin: 1cm auto !important; padding: 0 !important; box-sizing: border-box; }

    /* Hide Screen Elements */
    footer, .control-buttons-container, .toggle-details, .theme-toggle-btn, #modal-overlay, #portfolio, .header-controls, .header-social-links { display: none !important; }

    /* Print Header Area */
    header { background: none !important; color: var(--print-text-main) !important; padding: 0 0 10px 0 !important; border-bottom: 2px solid var(--print-medium-blue) !important; margin-bottom: 15px !important; box-shadow: none !important; text-align: center; }
    header h1 { font-size: 20pt !important; color: var(--print-dark-blue) !important; margin-bottom: 4px !important; font-weight: 600 !important; text-shadow: none !important; }
    header h2 { font-size: 13pt !important; color: var(--print-link-blue) !important; margin-bottom: 8px !important; font-weight: normal !important; }
    header .summary { font-size: 10pt !important; color: var(--print-text-muted) !important; margin: 0 auto 12px auto !important; max-width: 16cm; opacity: 1 !important; }
    header .contact-info { margin-top: 5px !important; font-size: 9pt !important; line-height: 1.4 !important; text-align: center !important; }
    /* Show ALL contact info <p> tags in print */
    header .contact-info p { display: inline-block !important; margin: 0 6px 4px 6px !important; color: var(--print-text-main) !important; opacity: 1 !important; vertical-align: top; }
    header .contact-info strong { display: inline !important; color: var(--print-text-main) !important; font-weight: bold; margin-right: 4px; }
    header .contact-info a { color: var(--print-link-blue) !important; border-bottom: none !important; text-decoration: underline !important; font-weight: normal !important; }

    /* Single Column Layout */
    .main-content, .cover-letter-container { display: block !important; width: 100% !important; }
    .main-column, .sidebar-column, .cover-letter-container > section { display: block !important; width: 100% !important; padding: 0 !important; margin: 0 0 15px 0 !important; background: none !important; border-radius: 0 !important; min-width: auto !important; }
    .main-content { gap: 0 !important; }
    .sidebar-column { margin-top: 0; }

    /* General Section Styling */
    section { box-shadow: none !important; border: none !important; border-radius: 4px !important; padding: 15px !important; margin-bottom: 15px !important; background: var(--print-light-blue-bg) !important; page-break-inside: avoid; }
    .cover-letter-container section { margin-bottom: 0 !important; }

    /* Section Order handled by HTML */

     /* Headings */
     section h2 { font-size: 14pt !important; color: var(--print-dark-blue) !important; border-bottom: 1px solid var(--print-light-border) !important; padding-bottom: 5px !important; margin-top: 0 !important; margin-bottom: 12px !important; font-weight: 600 !important; }
     .entry h3, .job h3 { font-size: 11.5pt !important; font-weight: bold !important; color: var(--print-medium-blue) !important; margin-top: 8px !important; margin-bottom: 2px !important; }
     #awards .entry h3 { color: var(--print-medium-blue) !important; font-size: 10.5pt !important; font-weight: bold !important; margin-top: 0 !important; }

     /* Content Styling */
     .job, .entry { border-bottom: none !important; page-break-inside: avoid; margin-bottom: 18px !important; padding-bottom: 0 !important; }
     .job em, .entry em { font-size: 9.5pt !important; color: var(--print-text-muted) !important; margin-bottom: 3px !important; display: block; }
     p, li { font-size: 10.5pt !important; color: var(--print-text-main) !important; margin: 3px 0 !important; }

     /* List Styling */
     ul { list-style: none !important; padding-left: 0 !important; margin-top: 5px !important; margin-bottom: 10px !important; }
     li { margin-bottom: 5px !important; padding-left: 0 !important; }
     li::before { content: none !important; }
     .details ul { list-style: none !important; padding-left: 15px !important; }
     .details li { position: relative; padding-left: 15px !important; margin-bottom: 5px !important; }
     .details li::before { content: '•' !important; color: var(--print-link-blue) !important; position: absolute !important; left: 0 !important; top: 0.1em !important; font-size: 1.2em !important; line-height: 1 !important; }
     #knowledge ul.knowledge-list { list-style: none !important; padding-left: 0 !important; }
     #knowledge ul.knowledge-list li { padding-left: 0 !important; margin-bottom: 8px !important; }
     #knowledge ul.knowledge-list li::before { content: none !important; }
     #knowledge ul.knowledge-list strong { font-size: 10.5pt !important; font-weight: bold !important; color: var(--print-dark-blue) !important; display: block; margin-bottom: 4px; }

     /* Details */
     .details { display: block !important; visibility: visible !important; background: none !important; border-left: none !important; padding: 0 0 0 10px !important; margin-top: 6px !important; font-size: 10pt !important; border-radius: 0 !important; animation: none !important; }
     .details p, .details li { font-size: 10pt !important; margin: 3px 0 !important;}
     .details strong { color: var(--print-medium-blue) !important; font-weight: bold;}

     /* Links */
     a { color: var(--print-link-blue) !important; text-decoration: underline !important; }
     a[href^="http"]:after { content: ""; }

     /* Signature Modification for Print */
     #cover-letter .signature-image { display: none !important; }
     #cover-letter .details p:last-of-type { display: none !important; }
     #cover-letter .details p:has(+ .signature-image),
     #cover-letter .details p:nth-last-of-type(2) { font-style: normal; font-weight: normal; margin-top: 20px !important; margin-bottom: 0 !important; color: var(--print-text-main) !important; }
}