:root {
    --primary-color: #0b5563; 
    --secondary-color: #f2a65a; 
    --accent1-color: #264653; 
    --accent2-color: #e9c46a;
    --heading-font: "Times New Roman", "Georgia", Serif; 
    --body-font: Arial, Helvetica, sans-serif; 
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: var(--body-font); 
    color: var(--accent1-color);
}
header {
    background-color: var(--primary-color);
    color: var(--accent2-color);
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
}

header img {
    height: 70px;
}
/*Home*/
.trip-sub {
    color: yellow;
    text-decoration: none;
    transition: color 180ms ease; 
    background-color: 180ms ease;
    padding: 0.15rem 0.25rem;;
    border-radius: 4px;
}
.card img {
    width: 350px;
    height: 150px;
    border-style: double;
}


header, main, footer {
    width: 1024px;
    margin: 0 auto;  /* Modification */
}
h1, h2 {
    font-family: var(--heading-font);
    color: var(--primary-color);
}
nav, p, section, article {
    margin: 16px;
    padding: 8px;
}
footer {
    display: flex;
    justify-content: space-between;
    background-color: #3e3e3e;
    color: #efefef;
    align-items: center;
    margin-top: 3em;
}
.socialmedia {
    align-self: flex-end;
}
.socialmedia img{
    text-decoration: none;
    max-width: 50px;
}
.hero {
    position: relative;
}
.hero img {
    display: block;
    width: 100%;
    height: auto;
}
.hero h1 {
    position: absolute;
    top: 20px;
    width: 100%;
    padding: 16px;
    text-align: center;
    opacity: 0.8;
    background-color: #e9c46a;
    color: white;
}
.hero article {
    position: absolute;
    bottom: 10%;
    width: 100%;
    padding: 15px;
    text-align: center;
    opacity: 0.8;
    background-color: darkblue; 
    color: white;  
}
.hero article img {
    float: right;
    width: 125px;
}

nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;

}
nav a {
    display: block;
    color: #fff;
    text-align: center;
    padding: 5px 15px;
    text-decoration: none;               
}
/* contact form*/
.block {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 1em;
}
.ad-img {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
}
.history h2 {
    display: flex;
    flex-direction: column-reverse;
    padding: 50px;
    margin-bottom: 20px;
    align-items: center;
    justify-content: center; 
}
section img {
    width: 100px;
    height: 100px;
    align-items: center;
    flex-direction: column;
}
.element {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px ;
    text-align: justify;
}
/* contact Us CSS*/
main h1 {
    text-align: center;
}
.map {
    width: 550px;
    height: 550px;
    border: none;
}
.contact {
    flex: 1;
    background-color: #eee;
    padding: 1rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

input, textarea, button {
    padding: .75rem;
    width: 100%;
    box-sizing: border-box;
    font: inherit;
}
textarea {
    resize: vertical;
}
.option1 {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.enroll {
   display: grid;
   grid-template-columns: 2em auto;
    align-items: center;

}
fieldset {
    border: none;;
}

.identity {
   display: grid;
   grid-template-columns: max-content auto;
   gap: 2em 1em;
   align-items: center;
}
.identity label {
    text-align: left;
}
.radio {
    display: grid;
    grid-template-columns: 2em auto;
    gap: 1em .5em;
    align-items: center;
}
.radio p {
    grid-column: 1/3;
    margin: 0;
    padding: 0;
    font-weight: 700;
}
button {
    background-color: navy;
    color: white;
    border-radius: .5rem;
    border: 1px solid rgb(0, 0, 0 /10%);
    cursor: pointer;
}
.title {
    text-align: center;
    margin-top: 20px;
}
figcaption {
    margin-top: .75em;
    font-size: 14px;
}
/*contact employee profile*/
.text {
    text-align: center;
    margin:0 1.5%;
    font: bold;
    font-size: large;
    line-height: 0;
}
.text img {
    width: 200px;
    height: 200px;
}
.paragraph {
    text-align: center;
    line-height:0;
}
.employee {
    margin: 2em auto;
    display: flex;
    justify-content: space-around;
}


/*Trips*/
ul {
    font-size: 16px;
    
}
.trips h2 {
    text-align: center;
    color: black;
    font-size: 28px;

}
.trip h2 {
    text-align: center;
    color: black;
}
/* Table */

.table-wrap {
  overflow-x: auto;
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

thead th {
  background: black;
  color: white;
  text-align: left;
  padding: 0.75rem;
  font-weight: 600;
  border-bottom: 2px solid grey;
}

tbody td {
  padding: 0.75rem;
  border-bottom: 1px solid grey;
}

tbody tr:nth-child(even) {
  background: yellow;
  background-color: rgb(0, 0, 1 / .5);
}

tbody tr:hover {
  background: #eef7fc;
}

td:first-child, th:first-child {
  padding-left: 1rem;
}

td:last-child, th:last-child {
  padding-right: 1rem;
}  