/* General Styles */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header Styles */
header {
    background-color: #062f66;
    color: white;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.header-left h1 {
    margin: 0;
    font-size: 28px;
}

.header-left a {
    text-decoration: none;
    color: #fbff00;
}

.header-left a:hover {
    color: #ffffff;
}

.header-left p {
    margin: 5px 0 0;
    font-size: 14px;
    opacity: 0.9;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ffcc00;
}

#search-bar {
    width: 300px;
    padding: 10px;
    border: none;
    border-radius: 4px;
    margin-top: 12px;
    margin-left: 20px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* Main Content */
main {
    margin-top: 100px;
}

section {
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
    color: #062f66;
}

/* Tools Grid (Home Page) */
.tools-grid {
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 800px;
    margin: 0 auto;
}

.tool-box a {
    background-color: #062f66;
    width: 220px;
    height: 120px;
    display: flex;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tool-box:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Staffing Grid (Home and Services Page) */
.staffing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
}

.staffing-box {
    background-color: #f5f5f5;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.staffing-box img {
    width: 120px;
    height: 120px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.staffing-box a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

.staffing-box:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Random Section (Home Page) */
#random {
    background-color: #f9f9f9;
    padding: 40px 20px;
}

#random h3 {
    font-size: 20px;
    text-align: center;
    margin: 2px 0;
}

#random p {
    max-width: 600px;
    margin: 0 auto 20px;
}

#random button {
    padding: 12px 25px;
    background-color: #062f66;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    display: block;
    margin: 0 auto;
}

#random a {
    text-decoration: none;
}

#random button:hover {
    background-color: #094b9e;
}

/* Blogs Row (Home Page) */
.blogs-row {
    display: flex;
    justify-content: center;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-item {
    text-align: center;
}

.blog-item img {
    width: 200px;
    height: 150px;
    border-radius: 8px;
}

.blog-item a {
    display: block;
    margin-top: 10px;
    text-decoration: none;
    color: #000000;
    font-weight: 500;
    transition: color 0.3s;
}

.blog-item a:hover {
    color: #0906ad;
}

/* Services Intro (Services Page) */
#services-intro p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
}

/* Additional Services (Services Page) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-item {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.service-item h3 {
    font-size: 20px;
    margin: 0 0 10px;
    color: #062f66;
}

.service-item p {
    font-size: 14px;
    margin: 0;
}

/* Blogs Intro (Blogs Page) */
#blogs-intro p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
}

/* Blogs List (Blogs Page) */
.blogs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-post {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.blog-post:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.blog-post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.blog-post h3 {
    font-size: 20px;
    margin: 0 0 10px;
}

.blog-post h3 a {
    text-decoration: none;
    color: #062f66;
    transition: color 0.3s;
}

.blog-post h3 a:hover {
    color: #ffcc00;
}

.blog-post p {
    font-size: 14px;
    margin: 0 0 15px;
}

.blog-post .read-more {
    display: inline-block;
    padding: 8px 15px;
    background-color: #062f66;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.blog-post .read-more:hover {
    background-color: #094b9e;
}

/* Footer */
footer {
    background-color: #062f66;
    color: white;
    padding: 30px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}

.footer-left, .footer-middle {
    flex: 1;
}

.footer-left h3 {
    margin: 5px 10px;
    font-size: 24px;
}

.footer-left p {
    margin: 5px 10px 10px;
    font-size: 14px;
}

.privacy a {
    color: #ffffff;
    font-size: 12px;
    text-decoration: none;
}

.privacy p {
    color: #ffffff;
    font-size: 13px;
}

.social-icons p {
    font-weight: bold;
    margin: 8px 50px 10px;
}

.social-icons i {
    font-size: 30px;
    color: #ffffff;
    margin: 0 5px;
    transition: color 0.3s ease;
}

.social-icons i:hover {
    color: #ffcc00;
}

.footer-middle h3 {
    margin: 0 0 15px;
    font-size: 20px;
    margin-left: 70px;
    border-bottom: 2px solid #ffffff;
    padding-bottom: 10px;
}

.footer-middle ul {
    list-style: none;
    padding: 0;
    margin-left: 70px;
}

.footer-middle ul li {
    margin-bottom: 10px;
}

.footer-middle ul li a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-middle ul li a:hover {
    color: #ffcc00;
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Header */
    .header-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 15px;
    }

    .header-left h1 {
        font-size: 24px;
    }

    .header-left p {
        font-size: 12px;
    }

    .header-right {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        display: none;
        width: 100%;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        padding: 10px 0;
    }

    nav ul li {
        margin: 10px 0;
        text-align: center;
    }

    #search-bar {
        width: 100%;
        margin-top: 10px;
    }

    /* Main Content */
    main {
        margin-top: 120px;
    }

    section {
        padding: 30px 15px;
    }

    h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    /* Tools Grid (Home Page) */
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
        gap: 8px;
    }

    .tool-box a {
        width: 100%;
        height: 100px;
        font-size: 14px;
    }

    /* Staffing Grid (Home and Services Page) */
    .staffing-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 15px;
    }

    .staffing-box {
        padding: 15px;
    }

    .staffing-box img {
        width: 100px;
        height: 100px;
    }

    .staffing-box a {
        font-size: 14px;
    }

    /* Random Section (Home Page) */
    #random {
        padding: 30px 15px;
    }

    #random h3 {
        font-size: 18px;
    }

    #random p {
        font-size: 14px;
    }

    #random button {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* Blogs Row (Home Page) */
    .blogs-row {
        flex-direction: column;
        gap: 20px;
    }

    .blog-item img {
        width: 100%;
        height: auto;
        max-width: 300px;
    }

    /* Services Intro (Services Page) */
    #services-intro p {
        font-size: 16px;
    }

    /* Additional Services (Services Page) */
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 15px;
    }

    .service-item {
        padding: 15px;
    }

    .service-item h3 {
        font-size: 18px;
    }

    .service-item p {
        font-size: 13px;
    }

    /* Blogs Intro (Blogs Page) */
    #blogs-intro p {
        font-size: 16px;
    }

    /* Blogs List (Blogs Page) */
    .blogs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-post {
        padding: 15px;
    }

    .blog-post img {
        height: 150px;
    }

    .blog-post h3 {
        font-size: 18px;
    }

    .blog-post p {
        font-size: 13px;
    }

    .blog-post .read-more {
        padding: 6px 12px;
        font-size: 13px;
    }

    /* Footer */
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-middle {
        margin-bottom: 20px;
    }

    .footer-middle h3 {
        margin-left: 0;
    }

    .footer-middle ul {
        margin-left: 0;
    }
}