body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

h1, p {
    margin: 0;
  }

.fa-solid, .fas {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin: 0;
}

header {
    background-color: #101327;
    color: #fff;
    padding: 10px 140px;
    display: flex;
    justify-content: center;
}

.main-nav {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links li {
    align-content: center;
    display: inline-block;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.4px;
    position: relative;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    margin: 0;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    background-color: #2a2b36; 
}


.nav-links a.active {
    background-color: #2a2b36; 
    font-weight: bold;
}

.nav-links a.active::after {
    width: 100%;
}

.buttons a{
    margin: 0;
}

.buttons {
    display: flex;
    gap: 13px;
}

.signup-btn {
    padding: 13px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    border-radius: 5px;
    letter-spacing: 0.4px;
    border: 2px solid #E11D1D; /* Red border */
    background-color: transparent; 
    color: #E11D1D; /* Red text */; 
}

.login-btn {
    padding: 13px 20px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    border-radius: 5px;
    letter-spacing: 0.4px;
    color: #fff;
    background-color: transparent; 
}

.signup-btn:hover{
    background-color: #E11D1D; 
    color: white;
    border: 2px solid #fdfdfd
}

.login-btn:hover{
    background-color: #2a2b36; 
}

/* Burger menu (Hidden by default) */
.burger-menu {
    display: none;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

.logo-container {
    display: flex; /* Makes it shrink-wrap around the content */
    align-items: center; /* Centers content vertically */
    justify-content: center; /* Ensures no extra spacing */
    width: fit-content; /* Makes it wrap around the image */
    padding: 0;
    margin: 0;
}

.logo-link {
    display: inline-flex; /* Ensures it only wraps around the image */
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0;
    margin: 0;
}

.logo-link a {
    display: flex; /* Makes the link fit the image */
    align-items: center;
    width: fit-content;
    padding: 0;
    margin: 0;
    text-decoration: none; /* Ensures no text styling issues */
}

.logo-link img {
    display: block; /* Removes extra spacing */
    width: 180px; /* Adjust this value to your preferred size */
    height: auto; /* Keeps aspect ratio */
}

/*------------------------------- bg image of form and motto ------------------------------------*/

/* Ensuring Full Responsiveness */
.bg-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
    background-image: url('../pinoyseaman-logo/HeroImage.png');
    background-repeat: no-repeat; 
    background-size: cover;
    background-position: center;
}


/* Form Container */
.container {
    width: 100%;
    max-width: 400px;
    padding: 15px 20px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* User Input Fields */
.user-card {
    display: flex;
    gap: 2px;
}

/* Responsive Fields */
.input-fname,
.input-lname,
.input-no,
.input-brt,
.input-email,
.input-pws,
.birth-card {
    display: flex;
    flex-direction: column;
    padding: 5px;
    flex: 1;
}

.checkbox-container {
    padding: 5px;
    flex: 1;
    font-size: 13px;
    display: flex;
    align-items: first baseline;
}

.input-group {
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

.input-group select,
.input-group input {
    flex: 1;
    max-width: 150px;
    text-align: center;
}

.top-section {
    display: flex;
    justify-content: center;
    gap: 80px;
    max-width: 1200px;
    flex-wrap: wrap; /* Allows wrapping for smaller screens */
    align-items: center;
}

/* Motto Styling */
.motto {
    text-align: left;
    font-size: 50px;
    width: 400px;
    font-weight: 900;
    line-height: 90px;
    color: #fff;
    display: block; /* Makes it take full width */
    word-wrap: break-word;
}

/* Create Button */
.btn-create {
    padding: 10px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

/* Headings */
.header-form h1 {
    line-height: 40px;
    text-align: center;
    border-bottom: 2px solid #a2a2a2;
    font-size: 25px;
    margin: 0 0 10px 0;
}

/* Form Inputs */
form {
    display: flex;
    flex-direction: column;
}

input, select {
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.8);
}

/* Create Account Button */
.create-btn {
    background-color: red;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 2px;
    cursor: pointer;
    width: 200px;
    height: 40px;
    font-size: 15px;
    margin-bottom: 20px;
    transition: transform 0.3s ease-in-out;
}

.create-btn:hover{
     background-color: darkred; /* Changes color when hovered */
    transform: scale(1.05); /* Slightly enlarges the button */
}

/* Label Styling */
label {
    color: #101327;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    margin-top: 2px;
}

/*------ container for stats --------*/
.stats-container {
    display: flex;
    gap: 50px;
    justify-content: center;
    padding-top: 30px;
    padding-bottom: 40px;
    flex-wrap: wrap;
}

.stat-card {
    border-radius: 7px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 250px;
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
    border: 1px solid rgba(202, 202, 202, 0.4);
}

.stat-card .icon-title {
    display: flex;
    justify-content: center;
    align-items: center; /* Align icon and text vertically */
    gap: 10px; /* Space between icon and text */
}   

.stat-card i {
    font-size: 24px; /* Icon size */
    color: #4f4e4e; /* Icon color */
}

.stat-card h3 {
    margin: 0;
    font-weight: bold;
    color: #343F52;
}

.stat-card p {
    color: #666;
    margin: 5px 0 0 0;
}

/*----------------------- Company container -------------------------*/
.next-button {
    position: absolute;
    right: -30px; /* Moves button next to the last card */
    top: 50%;
    transform: translateY(-50%);
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 8px 12px;
    cursor: pointer;
    z-index: 10;
}

.slider-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    width: fit-content; /* Adjust to fit the visible cards */
    justify-content: center;
    margin: auto;  /* Ensures horizontal centering */
}

.company-track {
    display: flex;
    gap: 40px;
    transition: transform 0.3s ease-in-out;
    width: calc(250px * 4 + 40px * 3); /* Full width of only 4 cards */
}

.company-card {
    background-color: #f0f0f0;
    border: 1px solid #dcdbdb;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 250px;
    flex: 0 0 auto; /* Prevent shrinking */
    height: fit-content;
}


/* Remove margin for last card to avoid extra spacing */
.company-card:last-child {
    margin-right: 0;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent dark background */
    color: #fff; /* White text */
    border: none;
    width: 30px; /* Square width */
    height: 30px; /* Square height */
    cursor: pointer;
    font-size: 18px; /* Adjust icon size */
    border-radius: 5px; /* Slightly rounded edges */
    transition: background 0.3s ease, transform 0.2s ease-in-out;
    z-index: 10; /* Keep buttons above other elements */
    display: flex;
    align-items: center;
    justify-content: center;
}

#prevBtn {
    left: -40px; /* Adjust left button position */
}

#nextBtn {
    right: -40px; /* Adjust right button position */
}

/* Hover effect */
.slider-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1); /* Slight zoom effect */
}

.company-container {
    display: flex;
    overflow: hidden;
    width: fit-content; /* Dynamically fits exactly 4 cards */
    margin: 0 auto; /* Centers the container */
    background-color: rgb(255, 255, 255);
    padding: 15px;
}

.company-list {
    display: flex;
    overflow: hidden;
    width: calc(250px * 4 + 20px * 3); /* 4 cards + spacing */
    justify-content: center;
}

.company-title-card{
    display: flex;
    justify-content: center;
    padding: 30px;
    background-color: rgb(255, 255, 255);
    flex-wrap: wrap;
    flex-direction: column;
}

.statistics h2{
    color: #343F52;
    text-align: center;
    font-size: 40px;
    padding-top: 20px;
    font-weight: 500;
    margin: 0;
}

.company-title-card h2{
    color: #343F52;
    line-height: 40px;
    text-align: center;
    font-size: 40px;
    margin: 0 0 10px 0;
    font-weight: 500;
}

.card img {
    width: 100%;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.company-card-content {
    padding: 15px;
}

.company-card-content p{
    text-align: left;
    font-size: 15px;
    font-weight: 500;
    max-width: 500px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 6; /* Show up to 3 lines */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.employer-profile-container {
    border-radius: 10px 10px 0 0;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Prevents any overflow */
}

.employer-profile-container img {
    width: 100%;
    height: 100%;
    object-fit: fill; /* Ensures the image fully covers the container */
}
/*------------------------ urgent jobs--------------------------*/
.job-section, .statics-section, .ads-section{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px;
    text-align: center;
    flex-wrap: wrap;
}
/* Job Section Container */
.urg-job-main-container {
    max-width: 950px;
    width: 100%;
    border: 1px solid #dbd9d9;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Flexbox Layout */
.urgent-jobs-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-top: 1px solid #ddd8d8;
    border-bottom: 1px solid #ddd8d8;
    flex-wrap: wrap;
}

/* Left: Company Image */
.company-jobs-img {
    width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
}

.company-jobs-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: fill;
    border-radius: 5px;
}

.company-jobs-content {
    flex-grow: 1;
    margin-left: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    justify-content: space-between;
    text-align: left; 
}

.company-jobs-content > * {
    text-align: left; 
}

.company-jobs-content h2 {
    margin: 2px 0;
    font-size: 23px;
    font-weight: 600;
}

.company-jobs-content h3{
    margin: 2px 0;
    font-weight: 500;
    font-size: 18px;
    color: #4E4D4D;
}

.tags {
    background-color: #a8d1ff;
    color: #316ec9;
    padding: 4px 10px;
    border-radius: 5px;
    display: inline-block;
}

/* Right: Apply Button */
.company-jobs-btn {
    margin-left: auto;
    padding-left: 20px; /* Add space between job content and button */
}

.jobs-btn{
    background-color: #fff;
    border: 2px solid red;
    color: red;
    padding: 10px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 18px;
    transition: all 0.3s ease-in-out; 
}

.jobs-btn:hover {
    background-color: red; /* Button turns red on hover */
    color: white; /* Text turns white for contrast */
}

.company-info{
    display: flex;
    flex-wrap: wrap;
}

.job-section a{
    margin-top: 65px;
    font-size: 18px;
    color: rgb(46, 46, 46);
    text-decoration: none;
    letter-spacing: 0.4px;
    font-weight: 500;
}

.job-section a:hover {
    text-decoration: underline;
}

.company-title-card p{
    max-width: 600px;
    width: 100%;
    font-size: 17px;
    font-weight: 500;
    text-align: center;
    line-height: 2rem;
    align-self: center;
}
/*------------------------- urgent jobs END --------------------*/

/*--------------------------- job ads ----------------------*/
.ads-section {
    overflow: hidden;
    background: #fff; /* Optional background */
    position: relative;
    white-space: nowrap; /* Prevents wrapping */
    margin-bottom: 50px;
}

.ads-container {
    display: flex;
    gap: 50px;
    animation: scrollAds 20s linear infinite; /* Continuous scrolling */
    width: max-content; /* Ensure it grows based on content */
}

.ads-card {
    background-color: #fff;
    border-radius: 7px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    height: 100px;
    width: 250px;
    flex: 0 0 auto;
}

.ads-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/*------------------------- job ads END --------------------*/

/*------------------------- Jobs_search --------------------*/

.job-nav-links {
    display: flex;
    list-style: none;
    padding: 25px 20px 25px 0;
    gap: 5px;
}

.job-nav-links a {
    text-decoration: none;
    color: #374151;
    font-size: 14px;
    position: relative;
    padding-bottom: 5px; /* Space for the underline */
}

/* Create the underline effect */
.job-nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: #E11D1D; /* Red underline */
    transition: width 0.3s ease-in-out;
}

/* Show underline on hover */
.job-nav-links a:hover::after {
    width: 100%;
}

/* Icon styling */
.job-nav-links i {
    color: #9ca3af;
    font-size: 14px;
}

.home i{
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

.job-nav-links a i {
    margin-right: 5px; /* Adjust spacing as needed */
}


/*------------------------- Jobs_search END --------------------*/

/*---------------Search container ---------------------*/
.search-container {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; /* Allow items to stack on smaller screens */
}

.search-select {
    color: #6b6a6a;
    flex: 1;
    padding: 10px 10px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    cursor: pointer;
    min-width: 180px; /* Prevents it from being too small */
    max-width: 460px; /* Keeps it balanced */
}

.search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e53935; 
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap; 
    gap: 5px;
}

/*------------------------- search container END --------------------*/

/*------------------------- job card start --------------------*/
.job-card-container{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
}

.job-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 20px;
    max-width: 1000px;
    width: 100%;
    background-color: #fdfafa;
    font-family: Arial, sans-serif;
    flex-wrap: wrap;
    gap: 15px; 

}

.card-title h3{
    padding: 40px 0 15px 85px;
    color: #2E2E2E;
    font-size: 15px;
}

.job-image {
    width: 150px;
    height: 120px;
    overflow: hidden; /* Prevents image from overflowing */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.job-image img {
    width: 100%; /* Makes the image take the full width of the container */
    height: 100%; /* Makes the image take the full height of the container */
    object-fit: fill; /* Ensures the image covers the entire container */
    border-radius: 5px;
}

.job-info {
    flex-grow: 1;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    align-self: stretch; 
    justify-content: space-between; 
    flex-wrap: wrap;
}

.job-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

.job-details {
    display: flex;
    gap: 10px; 
    flex-wrap: wrap; 
}

.job-description {
    font-size: 14px;
    color: #555;
    display: flex;
    gap: 5px; 
}

.company-link {
    display: inline-flex;
    text-decoration: none;
    background-color: #d6eaff; 
    color: #187bcd; 
    padding: 8px 12px; 
    border-radius: 5px; 
    font-size: 14px;
    width: fit-content; 
    white-space: nowrap; 
}

.company-link i {
    margin-right: 5px; 
    padding-bottom: 0;
}

.apply-container {
    display: flex;
    flex-direction: column; 
    justify-content: space-between; 
    align-items: flex-end; 
    height: 100%;
}

.date-posted {
    margin: 0;
    font-size: 14px;
    color: #999;
    text-align: end;
}

.apply-button {
    border: 1px solid red;
    color: red;
    background: none;
    padding: 13px 13px;
    border-radius: 5px;
    font-size: 13px;
    cursor: pointer;
    font-weight:600;
    letter-spacing: 1px;
    width: fit-content;
    transition: all 0.3s ease-in-out;
}

.apply-button:hover {
    background: red;
    color: white;
}

/*------------------------- job card END --------------------*/

/*------------------------- pagination --------------------*/
.section-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 100px;
}

.pagination {
    list-style: none;
    display: flex;
    gap: 10px;
    padding: 0;
}

.pagination li {
    border: 1px solid #ccc;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    min-width: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination li:hover {
    color: white;
    background-color: rgb(108, 107, 107);
}

/*------------------------- pagination END --------------------*/


/*------------------------- job-page --------------------*/
.job-page-main {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: auto; 
    margin-bottom: 150px;
    padding: 0 20px 20px 20px;
}

.job-layout {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.aside-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}
.register-info,
.related-jobs {
    background-color: #F3F3F3;
    border-radius: 8px;
    width: 100%; 
    max-width: 300px;
    padding: 15px;
}

.about-company {
    background-color: #F3F3F3;
    border-radius: 8px;
    width: 100%;
    max-width: 300px;
    padding: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-company-img {
    padding: 0 10px 10px 10px;
    width: 100%;
    max-height: 170px; /* Limits the image height */
    overflow: hidden; /* Prevents the image from overflowing */
}

.about-company-img img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    border-radius: 5px; /* Optional: for rounded corners */
}
.job-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.job-details-container {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}


.aside-company-info h3{
    font-size: 25px;
    font-weight: 700;
}

.aside-company-info p, a{
    color:#4E4D4D;
    text-decoration: none;
    margin: 0;
    padding-bottom: 10px;
    margin-right: 15px;
}

.btn-create a{
    color:#d7cfcf;
    text-decoration: none;
    margin: 0;
    padding-bottom: 10px;
    margin-right: 15px;
}

.btn-create a:hover{
    text-decoration: underline; /* Add underline */
}

.aside-company-info p i {
    margin-right: 10px; 
}

.register-info ul {
    list-style: none;
    padding: 0; 
}

.register-info ul li {
    display: flex;
    align-items: center;
    gap: 8px; /* Adjust spacing between icon and text */
}

.register-info h2{
    text-align: center;
    color: #374151;
    font-size: 20px;
}  

.register-info i{
    color: #1271D6;
}

.register-info li {
    margin-bottom: 20px;
    font-size: 18px;
    color: #6B7280;
}

.register-btn {
    display: flex;
    justify-content: center; /* Centers the button */
}

.register-btn a {
    display: inline-block;
    font-size: 15px;
    padding: 10px 15px;
    color: white;
    border-radius: 5px;
    background-color: red;
    border: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    min-width: 120px; /* Prevents button from shrinking too much */
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Smooth transition */
    margin: 0;
}

/* Hover effect */
.register-btn a:hover {
    background-color: darkred; /* Changes color when hovered */
    transform: scale(1.05); /* Slightly enlarges the button */
}

.job-heading-container {
    border-bottom: 1px solid rgb(188, 187, 187);
    display: flex;
    justify-content: space-between;
    padding-bottom: 30px;
}

.job-heading-container h1{
    margin: 0;
}

.job-type{
    font-size: 30px;
    font-weight: 800;
    width: 500px;
}

.company-name{
    margin-bottom: 0;
    font-size: 18px;
    font-weight: 600;
    color: #6A6A6A;
    align-items: center;
}

.quick-apply{
    border: none;
    color: white;
    background: red;
    padding: 15px 25px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    font-weight:600;
    letter-spacing: 1px;
    width: fit-content;
    transition: all 0.3s ease-in-out;
}

.quick-apply:hover {
    background-color: rgb(247, 110, 110); /* Button turns red on hover */
    color: white; /* Text turns white for contrast */
}

.joblist-btn-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;

}

.last-update{
    margin: 0;
    font-size: 12px;
    color: rgb(49, 49, 49);
    text-align: end;
}

.job-information dl {
    display: grid;
    grid-template-columns: minmax(120px, auto) 1fr;
    gap: 30px 120px;
    align-items: center;
    max-width: 100%; 
    border-bottom: 1px solid rgb(188, 187, 187);
    padding-bottom: 30px;
    margin-bottom: 0;
}

.job-info-row {
    display: contents; 
}

dt {
    display: flex;
    font-weight: normal;
    color: #666;
    white-space: nowrap; 
    gap: 10px;
}

dt i {
    margin-right: 8px;
}

dd {
    font-weight: bold;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis; 
}

.jobpage-description{
    padding-top: 20px;
    border-bottom: 1px solid rgb(188, 187, 187);
    padding-bottom: 30px;
}

.related-job-card{
    display: flex;
    width: auto;
    border-bottom: 1px solid rgb(188, 187, 187);
    padding-top: 40px;
    padding-bottom: 40px;
    flex-wrap: wrap;
}

.similar-job-header{
    margin: 0;
    margin-bottom: 30px;
    font-size: 30px;
    font-weight: 700;
}

.seaman-img {
    height: 200px; /* Set a fixed height */
    overflow: hidden; /* Prevents image overflow */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.seaman-img img {
    width: 100%; /* Ensures the image fills the container width */
    height: 100%; /* Ensures it fills the container height */
    object-fit: fill; /* Ensures the full image is visible without cropping */
    border-radius: 5px;
}

.related-jobs h2{
    text-align: center;
    color: #374151;
    font-size: 20px;
}

h1 .motto {
    display: flex;
    justify-content: flex-end; /* Aligns the link to the right */
    padding: 10px; /* Adds some spacing */
}

.see-more {
    text-decoration: none;
    color: #1271D6; /* Blue color */
    font-weight: bold;
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 5px;
    transition: 0.3s ease-in-out;
    margin-right: 0;
}

.see-more:hover {
    color: #0f5db6;
    text-decoration: underline;
}

/*------------------------- job-page END --------------------*/

/*------------------------- login-signup --------------------*/

.login-signup-main {
    display: flex;
    justify-content: center; 
    align-items: center; 
    min-height: 100vh; 
    padding: 0 auto; 
    background: linear-gradient(to top, #b3d9ff 5%, #ffffff 50%);
}

.login-signup {
    width: 100%;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgb(222, 221, 221);
}

.login-signup h3 {
    font-size: 25px;
    margin-left: 15px;
    margin-bottom: 10px;
}

.seafarer-box,
.employer-box {
    position: relative; /* important for absolute positioning inside */
    justify-content: center; /* Center content horizontally */
    display: flex;
    align-items: center;
    width: 360px;
    height: 100px;
    margin: 0 auto;
    border-radius: 10px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

/* Background colors */
.seafarer-box {
    background-color: #ddeeff;
    border-left: 6px solid #507fdc;
    border-right: 6px solid #507fdc;
}

.employer-box {
    background-color: #ffdddd;
    border-left: 6px solid #e2686a;
    border-right: 6px solid #e2686a;
}

.seafarer-box a{
    inset: 0; 
    position: absolute;
    display: flex;
    gap: 20px;
    padding: 35px 0 35px 0;
    margin-left: 50px;
    color: #0044cc; 
}

.employer-box a{
    inset: 0; 
    position: absolute;
    display: flex;
    gap: 20px;
    padding: 35px 0 35px 0;
    margin-left: 50px;
    color: #E63639; 
}

/* Icons */
.seafarer-box i{
    margin-right: 10px;
    font-size: 30px; 
    color: #0044cc; 
}

.employer-box i {
    margin-right: 10px;
    font-size: 30px; 
    color: #E63639; 
}

.seafarer-box:hover {
    background-color: #cce0ff;
    border-left: 6px solid #0066ff; /* brighter blue */
    border-right: 6px solid #0066ff;
}

.employer-box:hover {
    background-color: #ffcccc;
    border-left: 6px solid #ff0000; /* brighter red */
    border-right: 6px solid #ff0000;
}

.back{
    align-self:flex-end;
    color: #686a6b;
    margin-left: 5px;
}

.back:hover{
    text-decoration: underline;
}

.start-logo {
    margin-bottom: 10px; /* Add spacing between logo and form */
}

.start-logo img {
    max-width: 150px; /* Adjust as needed */
    height: auto;
}

.logo-start-container {
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center; /* Centers vertically (if section has height) */
    width: 100%; /* Ensures it spans the full width */
   padding-bottom: 10px;
}

.logo-start-link img {
    display: block;
    width: 180px; /* Adjust as needed */
    height: auto; /* Maintains aspect ratio */
}

.logo-start-link a {
    display: flex; /* Makes the link fit the image */
    align-items: center;
    width: fit-content;
    padding: 0;
    margin: 0;
    text-decoration: none; /* Ensures no text styling issues */
}

/*------------------------- login-signup END --------------------*/
.company-perks {
    text-align: center;
    padding: 60px 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #111;
  }
  
  .company-perks h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 600;
    color: #2e334d;
  }
  
  .perks-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 100px;
  }
  
  .perk-item {
    max-width: 350px;
    text-align: center;
  }
  
  .perk-subtext {
    font-size: 15px;
    color: #222;
    margin-bottom: 12px;
  }
  
  .perk-subtext a {
    text-decoration: underline;
    color: #0074cc;
    font-weight: 500;
  }
  
  .perk-item img {
    width: 200px;
    height: auto;
    margin-bottom: 16px;
  }
  
  .perk-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111;
  }

  .company-header {
    padding: 60px 60px;
  }
  
  .company-header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    background-color: #0d0f2b;
    color: white;
    border-radius: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
  }
  
  .text-content {
    flex: 1;
    min-width: 300px;
  }
  
  .text-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
  }
  
  .text-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.5;
    color: #d1d1e9;
  }
  
  .search-box {
    display: flex;
    max-width: 500px;
    border-radius: 10px;
    overflow: hidden;
  }
  
  .search-box input {
    flex: 1;
    padding: 14px 16px;
    border: none;
    font-size: 1rem;
    outline: none;
  }
  
  .search-box button {
    background-color: #ff4c4c;
    border: none;
    padding: 0 20px;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .image-content img {
    background-color: #e8e9f1;
    border-radius: 50% / 40%;
    width: 500px;
  }
  

/*------------------------- footer --------------------*/

footer {
    background-color: #1e2125; /* Dark background */
    color: #ffffff; /* White text */
    padding: 20px 0;
    font-family: Arial, sans-serif;
}

.footer-container {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
}

.footer-container img{
    width: 200px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 5px;
}

.footer-section ul li a {
    color: #ffffff;
    text-decoration: none;
}

.footer-section ul li a:hover {
    text-decoration: underline;
}

.footer-section img{
    width: 50%;
}

.brand h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.brand span {
    color: red; /* Highlighted text */
}

.brand p {
    font-size: 14px;
}
/*------------------------- footer END --------------------*/

@media (max-width: 1024px) {
    .company-track {
        width: calc(250px * 3 + 40px * 2); /* 3 cards for medium screens */
    }
}

/* Hide login and signup buttons in desktop view (above 480px) */
@media screen and (min-width: 481px) {
    .nav-links .login-btn,
    .nav-links .signup-btn {
        display: none;
    }
}

/*----------------------------------------- Responsive Design -----------------------------------------------*/
@media screen and (max-width: 768px) { 

    .main-nav{
        display: flex;
        justify-content: space-evenly;
    }

    header{
        padding: 10px;
    }
    /* Hide the nav links by default */
    .nav-links {
        display: none; /* Hidden on small screens */
        position: absolute;
        top: 60px;  /* Adjust based on your header height */
        left: 0;
        background-color: #333;
        width: 100%;
        text-align: center;
        padding: 20px 0;
    }

    /* Show the nav links when the active class is added */
    .nav-links.active {
        display: block;
    }

    /* Style the individual nav items */
    .nav-links li {
        display: block;
        padding: 10px 0;
    }

    .nav-links a {
        font-size: 13px;
        font-weight: 500;
        color: #fff;
        text-decoration: none;
        padding: 10px;
        transition: all 0.3s ease-in-out;
    }

    .nav-links a:hover {
        background-color: #2a2b36;
    }

    .nav-links a.active {
        background-color: #2a2b36;
        font-weight: bold;
    }

    .nav-links a.active::after {
        width: 100%;
    }

    /* Adjust the burger menu to be visible on small screens */
    .burger-menu {
        display: block;
        font-size: 30px;
        color: white;
        cursor: pointer;
    }

    /* for company slider */
    .slider-btn {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }

    #nextBtn {
        right: -0px; /* Move button closer to the card */
    }
    
    #prevBtn {
        left: -5px; /* Adjust for uniformity */
    }

    .company-track {
        width: calc(250px * 2 + 40px * 1); /* 2 cards for tablets */
        gap: 30px;
    }

    /* form container */
    .container{
        width: 100%;
        padding: 10px;
    }

    /* Show menu when active */
    .user-card {
        flex-direction: column;
        gap: 10px;
    }

    .input-group {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .motto-container, .motto{
        font-size: 35px;
        line-height: 60px;
        align-items: center;
        text-align: center;
    }

    .create-btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .stats-container{
        width: 100%;
    }

    .urgent-jobs-container{
        gap: 20px;
        padding-bottom: 30px;
    }

    .job-section, .statics-section, .ads-section{
        padding: 10px;
    }
    
    .bg-container{
        padding: 10px;
    }

    .urg-job-main-container{
        width: auto;
    }

    /*------------------- responsive job search -----------------------*/
    .job-main{
        padding: 10px;
    }

    .job-nav-links{
        align-items: flex-start;
        padding: 15px 0 15px 0;
        margin: 0;
    }

    .job-card {
        align-items: center;
        gap: 2px;
    }

    .job-card-container{
        padding: 0;
    }

    .job-info {
        padding: 10px 0;
        gap: 10px;
    }

    .card-title h3{
        text-align: left;
        padding-left: 3px;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .apply-container {
        gap: 5px;
        align-items: flex-start;
        display: flex;
        flex-direction: column;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .apply-button {
        width: 100%;
        text-align: center;
    }

    .search-container {
        flex-direction: column;
        gap: 10px;
    }

    .search-select {
        width: 100%;
        max-width: none;
    }

    .search-button{
        width: 70%;
    }

    .company-jobs-content{
        gap: 10px;
        margin: 5;
    }
    
    .company-info{
        gap: 10px;
    }
    .company-jobs-btn {
        width: 100%; 
        text-align: left; 
        padding-left: 0; 
    }

    .jobs-btn {
        display: flex;
        justify-content: center;
        width: 100%; /* Make button full width */
    }

    /*----------------- job search -----------------------------*/

    .job-page-main {
        padding: 15px;
    }

    .job-layout {
        display: flex;
        flex-direction: column-reverse; /* Moves .job-container above .aside-container */
    }

    .aside-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        box-sizing: border-box; /* Prevent padding from increasing width */
    }

    .about-company,
    .register-info,
    .related-jobs {
        width: 100% !important; /* Force full width */
        max-width: 100% !important; /* Prevent any restriction */
        box-sizing: border-box; /* Ensure padding does not affect width */
    }

    .job-heading-container, .joblist-btn-container, .last-update{
        flex-direction: column;
        align-items:flex-start;
        text-align: left;
        gap: 10px;
    }

    .job-type {
        width: auto;
        font-size: 24px;
    }

    .quick-apply {
        width: 100%;
        text-align: center;
    }

    .job-information dl {
        gap: 15px;
    }
}

@media screen and (max-width: 480px) {
   .buttons {
    display: none;
}

.nav-left {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Ensure nav-links are flex, wrapping, and taking full width */
.nav-links {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap onto new lines */
    width: 100%;
    position: absolute;
    top: 60px;
    left: 0;
    z-index: 9999;
    padding: 0;
}

/* Ensure each li takes up half the width to create two per row */
.nav-links li {
    width: 50%; /* 2 items per row */
    padding: 10px 0;
    text-align: center;
}

.nav-links a {
    text-decoration: none;
    color: inherit;
    font-size: 16px;
    padding: 10px;
    text-align: center;
    display: block;
}

/* Burger menu styling */
.burger-menu {
    display: block;
    font-size: 30px;
    cursor: pointer;
}

/* Hide nav by default */
.nav-links {
    display: none;
}

/* Show menu when active */
.nav-links.active {
    display: flex;
}

    
    #nextBtn {
        right: 5px; /* Move button even closer for small screens */
    }

    #prevBtn {
        left: 5px;
    }

    .company-track {
        width: 250px; /* 1 card for mobile */
    }

    .slider-btn {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }

    .motto {
        width: fit-content;
    }
    
    .motto-container {
        min-height: auto; /* Let it adapt naturally */
    }

    .company-jobs-content, .top-section{
        gap: 10px;
        margin: 0;
        width: 100%;
    }

    .container {
        width: 95%;
    }

    .input-group input, .input-group select {
        max-width: 100%;
    }

    .search-button{
        width: 100%;
    }

    .company-card{
        width: 100%;
    }

    .ads-card{
        width: 100%;
    }

    .job-page-main {
        padding: 10px; 
    }

    .stat-card{
        width: 100%;
    }

}

@keyframes scrollAds {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%); /* Move by half since we duplicate */
    }
}

        /* Alert Styles */
        .alert {
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 15px 20px;
            background-color: #4caf50; /* Green for success */
            color: white;
            border-radius: 5px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.5s, visibility 0.5s;
            z-index: 1000;
        }
        .alert.show {
            opacity: 1;
            visibility: visible;
        }
        .alert.error {
            background-color: #f44336; /* Red for error */
        }