* {
  box-sizing: border-box;
}

html {
  background-color: #063b7d;
  font-family: trebuchet, geneva, sans-serif;
}

body {
  width: 98%;
  margin: auto;
  font-size: 14px;
  color: white;
}

@media screen and (min-width: 768px) {
  body {
    display: flex;
    flex-direction: column;
    max-width: 75rem;
    font-size: 15px;
  }
}

@media screen and (min-width: 1024px) {
  body,
  p,
  a,
  h4 {
    font-size: 16px;
  }
}

main,
section,
article,
aside,
footer,
header {
  padding: 0.5rem;
}

header,
footer {
  background-color: #031a37;
  color: white;
  text-align: center;
}

nav {
  background-color: #063b7d;
  text-align: center;
}

nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

nav ul li {
  display: inline-block;
  margin-right: 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #aec1d8;
}

main {
  display: flex;
  flex-wrap: wrap;
  border-left: 1px solid black;
  border-right: 1px solid black;
}

article {
  flex: 50%;
  border-right: 1px solid black;
  border-bottom: 1px solid black;
}

article:nth-child(2) {
  border-right: none;
}

article:nth-child(3) {
  border: none;
}

@media screen and (min-width: 1200px) {
  article {
    flex: 35%;
    border-bottom: none;
  }
  aside {
    flex: 30%;
  }
}

/* Aside Styles */
aside {
  background-color: white;
  color: black;
}

h1 {
  font-family: 'Graduate', sans-serif;
  font-size: 3rem;
  text-align: center;
  margin-top: 20px;
}

h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 500;
  margin-top: 20px;
  color: white;
}

h1, h2, aside {
  text-align: center;
}

p,
ol,
ol li,
figcaption {
  color: white;
}

figure {
  position: relative;
  display: inline-block;
}

.about-figure {
  text-align: center;
  margin: 20px 0;
  width: 100%;
}

.about-figure figcaption {
  margin-top: 8px;
  text-align: center;
  font-style: initial;
  font-size: 1rem;
  color: #cde4f7;
}

img,
video,
embed {
  max-width: 98%;
}

.about-img {
  width: auto;
  height: 400px;
  display: block;
  margin: 0 auto;
  max-width: 100%;
}

a {
  color: #c088f9;
}

.table-container {
  overflow-x: auto;
  margin: 2rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
  background-color: #031937;
  color: white;
  font-family: 'Times New Roman', Times, serif;
}

th,
td {
  padding: 12px 15px;
  text-align: left;
  border: 1px solid #ddd;
}

th {
  background-color: #031937;
  font-weight: bold;
  font-family: 'Playfair Display', serif;
}

fieldset {
  border: 1px solid #003333;
  margin: 20px 0;
  max-width: 98%;
}

legend {
  font-size: 1.3em;
  color: #000;
  font-family: "Book Antiqua", Palantino, Garamond, serif;
  margin-bottom: 10px;
}

textarea {
  color: rgba(3, 8, 1);
  width: 50%;
  height: 100px;
  max-width: 98%;
  box-sizing: border-box;
  border: 2px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  background-color: white;
  background-image: url('searchicon.png');
  background-position: 10px 10px;
  background-repeat: no-repeat;
  transition: width 0.4s ease-in-out;
}

label {
  width: 12%;
  display: inline-block;
}

.longlabel {
  width: 25%;
}

.shortlabel {
  width: 5%;
}

.label {
  width: 12%;
}

input[type=text],
input[type=email],
input[type=tel],
input[type=url],
input[type=password] {
  margin-left: 10px;
  width: 50%;
  box-sizing: border-box;
  border: 2px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  background-color: antiquewhite;
  background-image: url('searchicon.png');
  background-position: 10px 10px;
  background-repeat: no-repeat;
  transition: width 0.4s ease-in-out;
}

input[type=text]:focus,
input[type=email]:focus,
input[type=tel]:focus,
input[type=url]:focus,
textarea:focus {
  width: 80%;
}

input:focus,
textarea:focus {
  background-color: aliceblue;
  color: rgba(150, 45, 62, 1);
}

form,
form label,
form legend,
form input,
form textarea,
form select {
  color: white;
}

input[type="submit"],
input[type="reset"] {
  color: black;
  background-color: white;
  border: 2px solid black;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

#footer-logo {
  width: 120px;
  height: auto;
  display: block;
  margin: 10px auto 0;
}

.about-page {
  background-color: #0b3d91;
  color: #f0f4f8;
  font-family: 'Trebuchet MS', Geneva, sans-serif;
  padding: 2rem 1rem;
  max-width: 900px;
  margin: 2rem auto;
  border-radius: 10px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.about-img {
  display: block;
  margin: 0 auto 1rem auto;
  height: 350px;
  max-width: 100%;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.about-img:hover {
  transform: scale(1.05);
}

.about-page > div p {
  text-align: center;
  font-style: italic;
  font-size: 0.9rem;
  color: #cfd8e8;
  margin-top: 0.2rem;
}

.about-page h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 2.4rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #e2e8f7;
  letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.about-page p {
  line-height: 1.6;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #d8e1f0;
}

.about-page section {
  margin-top: 1rem;
  padding: 0 1rem;
}

.about-page a {
  color: #87cefa;
  text-decoration: none;
  transition: color 0.3s ease;
}

.about-page a:hover {
  color: #ffb347;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .about-page {
    padding: 1rem 0.5rem;
    margin: 1rem;
    box-shadow: none;
  }

  .about-page h2 {
    font-size: 1.8rem;
  }

  .about-page p {
    font-size: 1rem;
    padding: 0 0.5rem;
  }
}

.about-page > div {
  text-align: center;
}

.resume-img {
  transition: transform 0.3s ease;
  cursor: zoom-in;
}

.resume-img:hover {
  transform: scale(1.5);
  z-index: 10;
  position: relative;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  background-color: #063b7d; 
  display: flex;
  flex-wrap: wrap;
}

nav li {
  position: relative;
}

nav a {
  display: block;
  padding: 10px 15px;
  color: white;
  text-decoration: none;
  background-color: #333;
  font-family: 'Montserrat', sans-serif;
}

nav a:hover {
  background-color: #031a37;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #031a37;
  min-width: 180px;
  top: 100%;
  left: 0;
  z-index: 1;
  flex-direction: column;
}

.dropdown-content a {
  padding: 10px;
  background-color: #031a37;
  color: white;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: #063b7d;
}

li.dropdown:hover .dropdown-content {
  display: flex;
}
