ul.nav li {
    display: inline;
    /* Display list items in a horizontal line */
    margin-right: 20px;
    /* Add some spacing between items */
}

body {
    background-color: #fff5d7;
}

h3 {
    color: #5a3e2b;
}

h4 {
    color: #5a3e2b;
}

p {
    color: #5a3e2b;
    line-height: 1.6;
}

/* Reusable card styling for panel-like containers */
.card {
    background: #fff5d7;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.job1,
.job2 {
    width: 100%;
}


.job-listing {
    display: flex;
    /* use flexbox so cards can sit next to each other */
    gap: 20px;
    justify-content: left;
    /* align children toward the left edge */
    padding: 20px;
    /* space inside the container */
}


.job-count {
    font-size: 18px;
    margin-bottom: 16px;
}

/* Primary action button styling for apply links */
.apply-btn {
    display: inline-block;
    /* allow padding and width while staying in line */
    padding: 8px;
    /* clickable space inside the button */
    background-color: #ffad50;
    color: #000000;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    /* bold button label for emphasis */
    transition: background-color 0.2s ease, transform 0.2s ease;
    /*  hover animation */
}

.apply-btn:hover {
    background-color: #b45309;
    color: #ffffff;
}

/* Naigation layout */
.nav {
    display: flex;
    /* use flex layout for the navigation row */
    align-items: center;
    gap: 30px;
    list-style: none;
    /* remove default list bullets */
    padding: 10px 20px;
    /* space inside the navigation bar */
    margin: 0;
    background-color: #fff5d7;
    padding: 10px 20px;
    margin: 0;
    background-color: #fff5d7;
}

.nav img {
    margin-right: 40px;
}

/* naigation link */
.nav a {
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 35px;
    color: #5a3e2b;
    /* warm dark brown */
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav a:hover {
    color: #d97706;
}

.nav a:active {
    color: #b45309;
}
/* header seperation line */
header hr {
    border: none;
    height: 3px;
    background-color: #e6d3a3;
    margin-top: 5px;

}

.nav a {
    position: relative;
}
/* the links dont change after being used */
.nav a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #d97706;
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

/* Footer design and layout */
footer {
    background-color: #fff5d7;
    border-top: 3px solid #e6d3a3;
    margin-top: 20px;
}

.footer-content {
    display: flex;
    /* arrange footer links and contact info in a row */
    justify-content: space-between;
    /* push content to opposite sides */
    align-items: center;
    padding: 10px 20px;
    /* space inside the footer container */
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content a {
    text-decoration: none;
    color: #5a3e2b;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: #d97706;
}

.links {
    display: flex;
    gap: 20px;
}
/* index page search */
.search_form {
    margin: 20px;
}

.search_form input {
    padding: 8px;
    width: 250px;
    border-radius: 5px;
    border: 1px solid #f0db9d;
}
/* search button */
.search_form button {
    padding: 8px 12px;
    border: 1px;
    background-color: #f0db9d;
    color: #5a3e2b;
    border-radius: 5px;
    cursor: pointer;
}
/* index page layout */
.home_container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}
/* company slogan, description and acknowlangement of country section */
.intro {
    background: #fff5d7;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.intro h2 {
    margin-top: 15px;
    color: #333;
}

.intro p {
    line-height: 1.6;
    color: #444;
}
/* index page product table */
.product_section {
    margin-top: 20px;
}

.product_section h2 {
    margin-bottom: 10px;
}

.product_table {
    width: 100%;
    border-collapse: collapse;
    background: #fff5d7;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product_table th {
    background-color: #ffcc66;
    padding: 10px;
    text-align: left;
}
/* search and button index page */
.search_section {
    margin-top: 30px;
    text-align: center;
}

.search_form {
    display: inline-flex;
    gap: 10px;
    background: #fff5d7;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search_form input {
    padding: 10px;
    width: 250px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
}

.search_form button {
    padding: 10px 15px;
    border: none;
    background-color: #ffb347;
    color: #5a3e2b;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.search_form button:hover {
    background-color: #ff9933;
}

/* Main container */
main {
    padding: 30px 40px;
    font-family: Arial, sans-serif;
    color: #5a3e2b;
    line-height: 1.6;
}

/* Lists */
main ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

main li {
    margin-bottom: 5px;
}

/* Description list team section */
main dl {
    margin-bottom: 25px;
}

main dt {
    font-weight: bold;
    margin-top: 15px;
    color: #3b2a1a;
}

main dd {
    margin-left: 20px;
    margin-bottom: 5px;
}

/* Image and caption */
figure {
    margin: 30px 0;
    text-align: center;
}

figure img {
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

figcaption {
    margin-top: 8px;
    font-size: 14px;
    color: #7a5a3a;
}
/* table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
}

th {
    background-color: #f3d9a4;
    color: #3b2a1a;
    padding: 10px;
    text-align: left;
}

td {
    padding: 10px;
    border-top: 1px solid #e6d3a3;
}

/* Zebra striping */
tr:nth-child(even) {
    background-color: #fff0c2;
}

tr:hover {
    background-color: #ffe4a3;
}

main {
    padding: 30px 40px;
}

/* grid layout for about page*/
.grid_layout {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(80px, auto);
    gap: 20px;
    padding: 30px 40px;
    font-family: Arial, sans-serif;
    color: #5a3e2b;
    background-color: #fff5d7;
}

/* 1st card top left */
.card-1 {
    grid-column: 1 / 2;
    grid-row: span 1;
}

/* 2nd card top right */
.card-2 {
    grid-column: 2 / 13;
    grid-row: span 3;
}

/* 3rd card bottom left under card 1 */
.card-3 {
    grid-column: 1 / 2;
    grid-row: span 2;
}

/* 4th card table spans full width at bottom */
.card-4 {
    grid-column: 1 / 13;
}

.card-1 {
    max-height: 220px;
}

.card-2 {
    max-height: 680px;
}

.card-3 {
    max-height: 380px;
}

.card-4 {
    max-height: 380px;
}

.table_caption {
    font-size: 30px;
    color: #3b2a1a;
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    .nav {
        flex-direction: column;  /*swaps axis direction to vertical */
        gap: 10px;
        padding: 10px;
    }

    .nav img {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .nav a {
        font-size: 18px;
    }

    .job-listing {
        flex-direction: column; 
        padding: 10px;
        gap: 15px;
    }

    .job1,
    .job2 {
        width: 100%;
    }

    .job-summary {
        flex-direction: column;
        gap: 15px;
    }

    .job-summary-card,
    .application-tips-card {
        width: 100%;
    }

    .apply-btn {
        padding: 10px 15px;
        font-size: 14px;
    }

    main {
        padding: 15px 10px;
    }

    .grid_layout {
        grid-template-columns: 1fr; /*how many coloumns in the grid */
        gap: 10px;
        padding: 10px;
    }

    .card-1,
    .card-2,
    .card-3,
    .card-4 {
        grid-column: 1;
    }

    .footer-content {
        flex-direction: column;
        gap: 10px;
    }

    .search_form {
        flex-direction: column;
        width: 100%;
    }

    .search_form input {
        width: 100%;
    }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
    .nav {
        gap: 20px;
    }

    .nav a {
        font-size: 24px;
    }

    .job-listing {
        flex-direction: column;
        gap: 15px;
    }

    .job-summary {
        flex-direction: row; /*swaps axis direction to horizontal */    }

    .job-summary-card,
    .application-tips-card {
        width: 48%;
    }

    .search_form input {
        width: 200px;
    }

    main {
        padding: 20px 15px;
    }

    .footer-content {
        flex-direction: row;
        gap: 15px;
    }

    .footer-content a {
        font-size: 14px;
    }

    .links {
        gap: 15px;
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    .nav {
        gap: 30px;
    }

    .nav a {
        font-size: 28px;
    }

    .job-listing {
        flex-direction: row;
        gap: 20px;
    }

    .job1,
    .job2 {
        width: 48%;
    }

    .job-summary {
        flex-direction: row;
        justify-content: space-between;
    }

    .job-summary-card,
    .application-tips-card {
        width: 45%;
    }

    .grid_layout {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .card-1 {
        grid-column: 1;
    }

    .card-2 {
        grid-column: 2;
        grid-row: span 3; /* grid is 3 rows of vertical space */

    }

    .card-3 {
        grid-column: 1;
    }

    .card-4 {
        grid-column: 1 / 3; /* coloumn 1 to 3 (width) */
    }

    main {
        padding: 30px 25px;
    }

    .search_form input {
        width: 250px;
    }

    .footer-content {
        flex-direction: row;
        padding: 15px 25px;
    }

    .footer-content a {
        font-size: 15px;
    }

    .links {
        gap: 20px;
    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    .nav {
        gap: 30px;
    }

    .nav a {
        font-size: 35px;
    }

    .job-listing {
        flex-direction: row;
        gap: 20px;
    }

    .job1,
    .job2 {
        width: 48%;
    }

    .job-summary {
        flex-direction: row;
        justify-content: space-between;
    }

    .job-summary-card,
    .application-tips-card {
        width: 25%;
    }

    .grid_layout {
        grid-template-columns: repeat(12, 1fr);
        gap: 20px;
    }

    .card-1 {
        grid-column: 1 / 2;
    }

    .card-2 {
        grid-column: 2 / 13;
        grid-row: span 3;
    }

    .card-3 {
        grid-column: 1 / 2;
        grid-row: span 2;
    }

    .card-4 {
        grid-column: 1 / 13;
    }

    main {
        padding: 30px 40px;
    }

    .search_form {
        display: inline-flex;
    }

    .search_form input {
        width: 250px;
    }

    .footer-content {
        flex-direction: row;
    }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    .nav {
        gap: 40px;
    }

    .nav a {
        font-size: 35px;
    }

    .home_container {
        max-width: 1200px;
    }

    .job-listing {
        gap: 30px;
    }

    .job1,
    .job2 {
        width: 48%;
    }

    .grid_layout {
        grid-template-columns: repeat(12, 1fr);
        gap: 20px;
    }

    main {
        padding: 40px 50px;
    }

    table {
        font-size: 16px;
    }

    .search_form input {
        width: 300px;
    }

    .footer-content {
        flex-direction: row;
        padding: 20px 50px;
        max-width: 1400px;
    }

    .footer-content a {
        font-size: 16px;
    }

    .links {
        gap: 30px;
    }
}


/* Device Breakpoints found from https://www.w3schools.com/css/css_rwd_mediaqueries.asp */

/* Styles for the application form page */
.page-wrapper {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

.application-form fieldset {
    border: 1px solid #e6d3a3;
    border-radius: 16px;
    padding: 20px 30px 20px 22px;
    background: #fff9ec;
}

.application-form legend {
    font-size: 1.1rem;
    font-weight: 700;
    color: #5a3e2b;
    padding: 0 8px;
}

.application-form p {
    display: grid;
    gap: 14px;
    margin: 0;
}

.application-form .row2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.application-form .row2 label,
.application-form .row2 input,
.application-form .row2 select {
    width: 100%;
}

.application-form .radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.application-form label {
    font-weight: 600;
    color: #5a3e2b;
}

.application-form input,
.application-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e6d3a3;
    border-radius: 12px;
    background: #fffdf8;
    color: #5a3e2b;
    font-size: 0.98rem;
}

.application-form input[type="submit"] {
    width: 100%;
    max-width: 320px;
    justify-self: center;
    padding: 12px 20px;
    background: #ffad50;
    color: #111;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.application-form input[type="submit"]:hover {
    background-color: #d97706;
    color: #fff;
    transform: translateY(-1px);
}



