/* Google font */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

body {
  font-family: 'Roboto', sans-serif;
  margin:0; background:#f5f9ff; color:#222;
}
.container { max-width:1200px; margin:0 auto; padding:0 15px; }

/* Header */
.header { display:flex; justify-content:space-between; align-items:center; padding:15px; background:linear-gradient(90deg,#004080,#0066cc); color:#fff; }
.header a { color:#fff; text-decoration:none; margin:0 10px; }
.logo { font-size:22px; font-weight:700; }

/* Nav - hamburger */
.menu { display:flex; gap:15px; }
.menu-toggle { display:none; cursor:pointer; font-size:24px; }
@media(max-width:768px){
  .menu { display:none; flex-direction:column; background:#004080; position:absolute; top:60px; left:0; width:100%; padding:10px; }
  .menu.show { display:flex; }
  .menu-toggle { display:block; }
}

/* Layout */
.main { display:flex; gap:20px; }
.content { flex:70%; background:#fff; padding:20px; border-radius:6px; }
.sidebar { flex:30%; background:#fff; padding:20px; border-radius:6px; position:sticky; top:20px; }
@media(max-width:768px){
  .main { flex-direction:column; }
  .sidebar { position:static; }
}

/* Footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  padding: 30px 20px;
  background: linear-gradient(90deg,#003366,#004080);
  color: #fff;
  border-top: 4px solid #0056b3;
}

.footer-block {
  flex: 1 1 200px;
  min-width: 200px;
}

.footer-block h4 {
  margin-top: 0;
  font-size: 16px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 5px;
}

/* Lists in footer */
.footer-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-block ul li {
  margin: 6px 0;
}

.footer-block ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.footer-block ul li a:hover {
  text-decoration: underline;
  color: #cce0ff;
}

/* Mobile footer: stack blocks vertically, no flex */
@media(max-width: 768px) {
  .footer {
    display: block;
    text-align: center;
  }
  .footer-block {
    margin-bottom: 20px;
  }
  .footer-block ul li {
    display: inline-block;
    margin: 6px 10px;
  }
  .footer-block h4 {
    border: none;
  }
}


/* Job cards */
.job-card { background:#eaf3ff; padding:15px; margin:15px 0; border-radius:6px; }
.job-card h2 { margin:0; font-size:18px; }
.job-card h2 a { color:#004080; text-decoration:none; }
.job-card p { margin:5px 0; }

/* Buttons */
button, .tag {
  background:linear-gradient(90deg,#007bff,#0056b3);
  color:#fff; border:none; border-radius:4px;
  padding:6px 12px; cursor:pointer; font-size:14px;
}
button:hover, .tag:hover { background:linear-gradient(90deg,#0056b3,#003d80); }

/* Tags */
.tags { margin-top:20px; }
.tag-cloud .tag { margin:3px; display:inline-block; }




/* Auth forms */
.auth-form {
  max-width: 400px;
  margin: 40px auto;
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.auth-form h1 {
  font-size: 22px;
  margin-bottom: 20px;
  text-align: center;
  color: #004080;
}

.auth-form input {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border: 1px solid #ccd;
  border-radius: 6px;
  font-size: 14px;
}

.auth-form input:focus {
  border-color: #0066cc;
  outline: none;
  box-shadow: 0 0 5px rgba(0,102,204,0.3);
}

.auth-form button {
  width: 100%;
  margin-top: 15px;
  font-size: 16px;
  font-weight: 600;
}

.auth-form p {
  margin-top: 15px;
  text-align: center;
}



/* Tags inside job single */
.tags {
  margin-top: 20px;
}

.tags .tag {
  display: inline-block;
  margin: 0 8px 8px 0;   /* 👈 bottom margin + right margin */
  padding: 6px 10px;
  background: #e6f0ff;
  border-radius: 4px;
  color: #004080;
  text-decoration: none;
  font-size: 13px;
}

.tags .tag:hover {
  background: #cce0ff;
}




.departments {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.department-block {
  flex: 1 1 30%;
  background: #fff;
  padding: 15px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.department-block h2,
.department-block h3 {
  margin-top: 0;
  font-size: 18px;
  color: #004080;
  border-bottom: 1px solid #ddd;
  padding-bottom: 6px;
}

.positions-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.positions-grid .pos-item {
  text-decoration: none;
  color: #004080;
  font-size: 14px;
  padding: 4px 6px;
  border-radius: 4px;
}

.positions-grid .pos-item:hover {
  background: #e6f0ff;
}

@media(max-width:768px) {
  .department-block { flex: 1 1 100%; }
}







/* Sidebar */
.sidebar {
  flex: 30%;
  background: #fff;
  padding: 20px;
  border-radius: 6px;
  height: fit-content;
  position: sticky;
  top: 20px;
  align-self: flex-start;
}

@media(max-width: 768px) {
  .sidebar {
    position: static;     /* no sticky on mobile */
    flex: 100%;
    width: 100%;
    margin-top: 20px;
  }
}




/* Vessel Grid */
.vessels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.vessel-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-align: center;
  padding: 15px;
  transition: transform 0.2s ease;
}

.vessel-card:hover {
  transform: translateY(-4px);
}

.vessel-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
}

.vessel-placeholder {
  width: 100%;
  height: 150px;
  background: linear-gradient(135deg,#0056b3,#007bff);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.vessel-card h3 {
  margin-top: 10px;
  font-size: 16px;
  color: #004080;
}



/* Inputs & Selects unified style */
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="number"],
.auth-form select {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border: 1px solid #ccd;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  appearance: none;         /* hide default arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Add custom arrow for select */
.auth-form select {
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23004080' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
  padding-right: 35px; /* space for arrow */
}

.auth-form input:focus,
.auth-form select:focus {
  border-color: #0066cc;
  outline: none;
  box-shadow: 0 0 5px rgba(0,102,204,0.3);
}





/* Sponsored Ads Sidebar */
.sponsored-ads {
  margin-top: 20px;
}

.sponsored-ads h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #004080;
  border-bottom: 2px solid #e0e8f5;
  padding-bottom: 5px;
}

.ad-card {
  display: flex;
  align-items: center;
  background: #f9fbff;
  border: 1px solid #dce6f5;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 12px;
  transition: box-shadow 0.2s ease;
}

.ad-card:hover {
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.ad-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-right: 10px;
}

.ad-info {
  flex: 1;
}

.ad-info .bonus {
  font-size: 14px;
  font-weight: 600;
  color: #0066cc;
}

.ad-info .casino-name {
  font-size: 13px;
  color: #444;
  margin: 4px 0;
}
/* Sponsored Ads Buttons */
.ad-btn {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease;
}

/* Button gradients for each ad */
.ad-card:nth-child(2) .ad-btn {
  background: linear-gradient(90deg,#007bff,#0056b3);
}
.ad-card:nth-child(3) .ad-btn {
  background: linear-gradient(90deg,#28a745,#1e7e34);
}
.ad-card:nth-child(4) .ad-btn {
  background: linear-gradient(90deg,#ff9800,#e65100);
}
.ad-card:nth-child(5) .ad-btn {
  background: linear-gradient(90deg,#9c27b0,#6a1b9a);
}

/* Hover effects */
.ad-btn:hover {
  transform: scale(1.05);
}

/* Shining animation effect */
.ad-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255,255,255,0.5);
  transform: skewX(-25deg);
}

.ad-btn:hover::after {
  animation: shine 0.8s forwards;
}

@keyframes shine {
  0% { left: -75%; }
  100% { left: 125%; }
}



.reg-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 16px;
  background: linear-gradient(90deg,#28a745,#1e7e34);
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
}
.reg-btn:hover {
  background: linear-gradient(90deg,#1e7e34,#155d27);
}



.jobs-list {
  margin-top: 15px;
  display: grid;
  gap: 15px;
}



.job-details {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.job-details th,
.job-details td {
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  text-align: left;
  font-size: 14px;
}

.job-details th {
  width: 200px;
  background: #f4f8ff;
  color: #004080;
  font-weight: 600;
}

.job-details tr:last-child th,
.job-details tr:last-child td {
  border-bottom: none;
}
