*,
*::before,
*::after {
box-sizing: border-box;
}

/* =========================
   MEDIA QUERIES
   ========================= */

/* Mobile device layout */
@media (max-width : 768px) {
.portfolio-page .portfolio-grid {
display: grid;
grid-template-columns: 1fr;
justify-items: center;
gap: 20px;
width: auto;
max-width: 95vw;
padding: 10px;
margin: 10px auto;
border: 2px solid #003399;
box-sizing: border-box;
overflow-x: hidden;
}

table {
width: 100%;
max-width: 100%;
margin: 1rem auto;
font-size: 0.9rem;
}

table td {
display: block;
text-align: left;
padding: 6px;
}

table tr {
display: block;
margin-bottom: 10px;
}

table td:first-child {
width: 40%;
}

.table-wrapper {
width: 100%;
overflow-x: auto;
}

.header-content {
flex-direction: column;
align-items: center;
text-align: center;
}

.header-text h1 {
font-size: 1.4rem;
width: 100%;
}

.portfolio-page .portfolio-grid figure {
width: 100%;
max-width: 100%;
max-height: 500px;
margin: 0;
padding: 10px;
overflow-y: auto;
border: 2px solid #003399;
box-sizing: border-box;
}

.portfolio-page .portfolio-grid figure img {
height: auto;
width: 100% !important;
object-fit: contain;
display: block;
}

main {
padding: 10px;
width: 100%;
box-sizing: border-box;
}

.flow-item,
.flow-item:nth-child(even) {
flex-direction: column !important;
align-items: center;
text-align: center;
}

.flow-text,
.flow-item figure {
width: 100%;
flex: none;
}

.flow-item figure {
margin-top: 20px;
}

.infobar {
background-color: #003399;
color: white;
text-align: center;
padding: 0.5em 1em;
}

.byline {
font-size: 0.9em;
margin: 0.2em 0;
display: block;
text-align: center;
}

.byline-rule {
margin: 0.5em auto;
width: 50%;
}

blockquote {
border-left: 4px solid #003399;
padding: 0.5em 1em;
background-color: #f9f9f9;
font-size: 0.95em;
margin: 1em 0;
}
}

/* =========================
   TAG SELECTORS
   ========================= */

body {
margin: 0;
font-family: Verdana, sans-serif;
font-size: 100%;
}

h1 {
text-transform: uppercase;
margin: 0;
font-size: 1.5rem;
display: block !important;
}

h2 {
color: #003399;
margin-top: 0;
letter-spacing: 1px;
font-size: 1.6em;
}

h3 {
color: darkred;
margin-top: 15px;
margin-bottom: 5px;
font-size: 1.2em;
}

header.banner img {
width: 100%;
max-height: 300px;
object-fit: cover;
display: block;
border-radius: 6px;
}

header.banner {
max-width: 1075px;
width: 100%;
margin: 0 auto;
padding: 0 15px;
box-sizing: border-box;
}

nav {
}

/* MAIN CONTENT AREA */
main {
max-width: 1050px;
width: 100%;
margin: 10px auto;
background-image: url("images/shipping.jpg");
background-repeat: no-repeat;
background-position: top center;
background-size: cover;
padding: 15px;
margin-top: 10px;
border-radius: 6px;
box-sizing: border-box;
}

section {
width: 100%;
margin-top: 20px;
margin-left: 0px;
margin-right: 0px;
padding: 10px;
border: 1px solid #ddd;
border-left: 4px solid #003399;
border-radius: 6px;
background-color: rgba(255, 255, 255, 0.9);
box-sizing: border-box;
}

section section {
margin-top: 15px;
border-left: 3px solid #666;
background-color: rgba(255, 255, 255, 0.5);
border: none;
}

footer {
margin-top: 20px;
padding: 15px;
text-align: center;
}

/* =========================
   IDS
   ========================= */

#Top {
background-color: #f2f2f2;
padding: 10px;
text-align: center;
}

#Top a {
margin: 15px;
text-decoration: none;
font-weight: bold;
color: #003399;
}

#Top a.active {
text-decoration: underline;
}

#Top a:hover {
text-decoration: underline;
}

/* =========================
   CLASSES
   ========================= */

/* layout / structure */
.portfolio-page .portfolio-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 20px;
margin: 20px auto;
padding: 0;
max-width: 100%;
}

.portfolio-page .portfolio-grid figure {
margin: 0;
padding: 15px;
text-align: center;
display: flex;
flex-direction: column;
justify-content: flex-start;
background-color: #fff;
border-radius: 8px;
border: 1px solid #ddd;
align-items: center;
}

.portfolio-page .portfolio-grid figure img {
height: auto;
width: 100%;
object-fit: contain;
display: block;
max-height: 400px;
margin: 0 auto;
}

img {
max-width: 100%;
height: auto;
display: block;
}

/* nav grid */
main nav ul {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
padding: 15px;
margin: 15px 0 20px 0;
list-style: none;
background-color: rgba(255,255,255,0.85);
border-radius: 6px;
border: 1px solid #ddd;
}

main nav li {
margin: 0;
}

main nav a {
display: block;
text-align: center;
padding: 10px;
border-radius: 6px;
background-color: rgba(255,255,255,0.95);
border: 1px solid #ddd;
}

main nav a:hover {
background-color: rgba(240,240,240,0.95);
}

/* typography helpers */
.required {
color: #cc0000;
font-weight: bold;
}

tr.required-row td {
background-color: #fff0f0 !important;
}

.infobar {
background-color: #003399;
color: white;
text-align: center;
padding: 8px 0;
font-size: 0.9em;
letter-spacing: 1px;
}

.byline {
font-size: 0.9em;
color: #666;
margin: 8px 0 5px 0;
}

.byline-rule {
width: 60%;
margin: 0;
border: none;
height: 2px;
background-color: #003399;
}

.primary {
color: darkblue;
}
.accent {
color: darkred;
}

/* tables */
table {
margin: 2rem auto;
border-collapse: collapse;
border: 2px solid #003399;
background-color: #ffffff;
}

table th {
background-color: #003399;
color: white;
padding: 12px;
text-align: center;
}

table td {
padding: 10px;
border: 1px solid #ccc;
}

table td:first-child {
text-align: right;
font-weight: bold;
}

tbody tr:first-child td {
padding: 12px;
font-size: 0.95rem;
}

table tr.required-row td {
background-color: #fff0f0 !important;
}

.required-note {
text-align: center;
color: #cc0000;
font-weight: bold;
}

table td[colspan] {
text-align: center;
}

/* text elements */
blockquote {
width: 75%;
margin: 25px auto;
padding: 20px;
background-color: #f4f7fb;
border: 5px solid #003399;
font-style: italic;
text-align: justify;
}

blockquote footer {
margin-top: 10px;
text-align: right;
font-style: normal;
font-weight: bold;
}

blockquote::first-letter {
font-size: 1.5em;
font-weight: bold;
font-family: Verdana, sans-serif;
}

abbr {
padding: 2px 6px;
border-radius: 4px;
color: #003399;
font-weight: bold;
}

address {
font-style: normal;
margin-top: 5px;
line-height: 1.4;
}

/* layout components */
.box {
width: 70%;
margin: 20px auto;
padding: 15px;
background-color: #f2f6fc;
border: 4px solid #003399;
text-align: center;
font-style: italic;
}

.profile-pic {
width: 100%;
height: auto;
display: block;
}

/* header content */
.header-content {
display: flex;
flex-direction: row;
align-items: flex-start;
flex-wrap: wrap;
gap: 20px;
background-color: rgba(255, 255, 255, 0.9);
padding: 20px;
border-radius: 6px;
border: 1px solid #ddd;
}

.header-text {
display: flex;
flex-direction: column;
text-align: left;
}

.header-content img {
width: 120px;
height: auto;
border-radius: 6px;
border: 1px solid #ddd;
padding: 20px;
}

.header-images {
display: flex;
flex-direction: column;
gap: 10px;
align-items: flex-start;
}

.header-rule {
width: 100%;
border: 3px solid #003399;
border-radius: 6px;
margin-top: 15px;
}

/* summary */
.summary-content {
display: flex;
flex-direction: row;
align-items: flex-start;
gap: 20px;
}

.summary-content .profile-pic {
width: 150px;
height: auto;
flex-shrink: 0;
}

/* lists */
ol {
list-style-type: upper-roman;
}

ul {
list-style-type: square;
margin-left: 25px;
padding: 0;
}

li {
margin-bottom: 6px;
line-height: 1.4;
}

.custom-bullets {
list-style-image: url("images/double_arrow.png");
}

/* flow layout */
.flow-item {
display: flex;
align-items: center;
gap: 20px;
margin-bottom: 40px;
}

.flow-item figure img {
max-width: 450px;
max-height: 250px;
width: 100%;
height: auto;
object-fit: contain;
display: block;
margin: 0 auto;
}

.flow-text,
.flow-item figure {
flex: 1;
width: 50%;
margin: 0;
}

.flow-item:nth-child(even) {
display: flex;
flex-direction: row-reverse;
}

/* utilities */
section p {
line-height: 1.5;
margin-bottom: 10px;
font-size: 1em;
}

footer figure {
max-width: 180px;
margin: 20px auto;
padding: 10px;
background-color: #fff;
border: 1px solid #ddd;
border-radius: 8px;
}

footer figure img {
width: 100%;
border-radius: 6px;
}

.cbp-logo {
width: 120px;
display: block;
margin: 10px auto;
}

.copyright {
color: darkblue;
font-weight: bold;
font-size: 0.9em;
}

a {
color: #003399;
text-decoration: none;
font-weight: bold;
}

a:hover {
text-decoration: underline;
}

.resume-sections {
display: block;
margin-top: 20px;
}

.resume-sections section {
width: 100%;
}

/* svg animation */
.svg-truck {
display: inline-block;
cursor: pointer;
transition: transform 0.5s ease;
}

.svg-truck:hover {
transform: translateX(-30px);
}

.wheel {
transform-origin: center;
transition: transform 0.5s linear;
}

.svg-truck:hover .wheel {
transform: rotate(360deg);
}