
/* ---------- VARIABLES ---------- */
:root {
  --brand-color: #4b6cb7;
  --brand-dark: #374151;
  --line: #e5e7eb;
  --hover: #f3f4f6;
  --text: #374151;
  --container: 1000px;
  --radius: 12px;
  --header-height: 72px;
  --font-family: "Newsreader", system-ui, sans-serif;
}

/* ===== Header Title (H1) ===== */
h1 {
  font-family: "Poppins", "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 2.8rem;
  letter-spacing: -0.5px;
  color: #1e3a8a;
  text-decoration: none;
}
h2 {
  color:#f3f4f6 ;
}
.divider{
  color: rgb(142, 139, 139);
  
}

.h2-container{
  display: flex;
  justify-content: center; /* Centers horizontally */
  align-items: center; /* Centers vertically */
}



a:visited {
  color: #1e3a8a; /* Example: Sets visited links to blue */
  /* You can also add other styles like text-decoration: none; to remove underlines */
}



/* ---------- GLOBAL RESET ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  font-family: var(--font-family);
  color: var(--text);
  background: url("https://images.unsplash.com/photo-1634206813008-d1c2b828c7fd?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&q=80&w=3126")
    no-repeat center center fixed;
  background-size: cover;
}

/* ---------- HEADER (FIXED, GLASS STYLE) ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

/* LOGO */
.logo {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  background: linear-gradient(90deg, #fd5f37, #feb47b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}
/* NAV LINKS */
.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: #f3f4f6;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #60a5fa;
  background: linear-gradient(90deg, #aacdf9, #3f90f2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* MOBILE MENU TOGGLE */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
}

/* MOBILE MENU */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  position: absolute;
  top: var(--header-height);
  left: 0;
  width: 100%;
}

.mobile-menu a {
  color: white;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-menu.open {
  display: flex;
}

/* RESPONSIVE NAVIGATION */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
}

main.wrap {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px); 
  -webkit-backdrop-filter: blur(16px); /*for safari*/
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  padding: 2rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}





/* ====== GLOBAL LAYOUT ====== */
.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 16px;
}

/* ====== CARD CONTAINER ====== */
.card {
  border: 1px solid #a4a4a4;
  border-radius: 10px;
  padding: 12px;
  margin: 12px 0;
  background:  rgba(255, 255, 255, 0.5);
  opacity: 0.8;
  overflow: hidden;
}

/* ====== FORM ELEMENTS ====== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

input,
textarea,
button {
  width: 100%;
  padding: 10px;
  margin: 6px 0;
  border: 1px solid #8e8e8e;
  border-radius: 8px;
  font: inherit;
  outline: none;
  background: rgba(255, 255, 255, 0.5);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
textarea:focus {
  border-color: #4b6cb7;
  box-shadow: inset 0 0 0 2px rgba(75, 108, 183, 0.25);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

button {
  cursor: pointer;
}

/* ====== LIST / POSTS ====== */
.list {
  list-style: none;
  padding: 0;
}

.item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn {
  padding: 6px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background:  rgba(255, 255, 255, 0.55);
  text-decoration: none;
  color: #111;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background-color: #f3f4f6;
}

.btn.danger {
  color: #ef4444;
  border-color: #ef4444;
}

/* ===== "Added to My Jobs" Button (glassmorphic finish) ===== */
.btn.added {
  background: linear-gradient(135deg, rgba(75,108,183,0.9), rgba(255,138,101,0.9));
  background: linear-gradient(90deg, #8ca973, #74a895);
  color: #fff;
  border: none;
  cursor: default;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(75,108,183,0.25);
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}

/* Subtle “locked” appearance on hover — no scaling but shimmer feedback */
.btn.added:hover {
  transform: none;
  box-shadow: 0 4px 14px rgba(255,138,101,0.3);
  background: linear-gradient(135deg, rgba(75,108,183,1), rgba(255,138,101,1));
  background: linear-gradient(90deg, #7e9867, #628d7d);
}

/* Optional subtle glow animation when first added */
@keyframes addedPulse {
  0% {
    box-shadow: 0 0 0 rgba(75,108,183,0.5);
  }
  50% {
    box-shadow: 0 0 16px rgba(255,138,101,0.55);
  }
  100% {
    box-shadow: 0 0 0 rgba(75,108,183,0.5);
  }
}

.btn.added.animate {
  animation: addedPulse 1.5s ease-out;
}

.meta {
  color: #6b7280;
  font-size: 13px;
}

.flash {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  padding: 8px 12px;
  border-radius: 8px;
}

.title {
  font-weight: 600;
}

/* ====== NAVIGATION BAR ====== */
header.wrap {
  text-align: center;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #ddd;
}

.nav-top,
.nav-sub {
  display: flex;
  justify-content: center;
  column-gap: 12px;
  row-gap: 0;
  margin-top: 0.5rem; 
}

.nav-top a,
.nav-sub a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tab-w);
  height: var(--tab-h);
  padding: 0 14px;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  font-size: 16px;
  background: #fff;
  transition: background-color .15s ease, color .15s ease, transform .08s ease, box-shadow .15s ease, border-color .15s ease;
}

.nav-top a:hover,
.nav-sub a:hover {
  background: var(--hover);
  color: var(--text);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(17,24,39,.08);
}

.nav-right .btn-profile.is-active,
.nav-top a.is-active,
.nav-sub a.is-active {
  background: var(--brand-color);
  color: #fff;
  border-color: var(--brand-color);
  box-shadow: 0 2px 10px rgba(75,108,183,.25);
  transform: none;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.5rem;
}

.nav-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

/* ====== RIGHT-TOP PROFILE BUTTON ====== */
.nav-right .btn-profile {
  background-color: #f9fafb; 
  color: var(--text);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 15px;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.nav-right .btn-profile:hover {
  background-color: var(--brand-color);
  color: #fff;
  box-shadow: 0 2px 8px rgba(75,108,183,.25);
  transform: translateY(-1px);
}


.nav-right .btn-profile:active {
  background-color: #3553a4;
  transform: translateY(0);
}

/* ====== JOB CARDS & SMOOTH ANIMATIONS ====== */
.job-card {
  border: 1px solid #a8a8a8;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  padding: 16px;
  margin: 14px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.job-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

/* smooth fade-in animation for cards */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.job-card {
  animation: fadeIn 0.4s ease both;
}

/* ===== Forum Posts Styling ===== */
.post-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.post-card {
  background:  rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 16px 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: fadeIn 0.4s ease both;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.post-card .title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1e3a8a;
  text-decoration: none;
}

.post-card .content {
  margin: 12px 0;
  color: #374151;
}

.post-card .meta {
  font-size: 0.85rem;
  color: #6b7280;
}


/* ====== JOB CARD ACTION BUTTONS ====== */
.job-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.btn-action {
  flex: 1;
  text-align: center;
  font-weight: 500;
  border-radius: 8px;
  padding: 10px 14px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-view {
  background:  rgba(255, 255, 255, 0.55);
  border: 1px solid var(--brand-color);
  color: var(--brand-color);
}
.btn-view:hover {
  background: var(--brand-color);
  color: #fff;
  box-shadow: 0 2px 8px rgba(75,108,183,0.25);
  transform: translateY(-2px);
}

.btn-apply {
  background:  rgba(255, 255, 255, 0.55);
  border: 1px solid var(--brand-color);
  color: var(--brand-color);
  font-weight: 500;
}
.btn-apply:hover {
  background: var(--brand-color);
  color: #fff;
  box-shadow: 0 3px 10px rgba(75,108,183,0.35);
  transform: translateY(-2px);
}

/* === Comment & Reply layout (append) === */

.list {
  padding-left: 0.5rem;
}

.item {
  display: block;
  padding: 10px 0 12px;
  border-bottom: 1px solid #eee;
}

.comment-header {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.comment-body p {
  margin: 0.25rem 0 0.5rem;
}

.replies {
  margin-top: 0.5rem;
  margin-left: 1.25rem;
  padding-left: 1rem;
  border-left: 2px solid var(--line);
}

.reply {
  margin: 0.25rem 0;
}

.reply-body p {
  margin: 0.125rem 0 0.25rem;
}

details.reply-section {
  margin-top: 0.5rem;
}

details.reply-section summary {
  cursor: pointer;
  color: #3b82f6;
  font-weight: 500;
  list-style: none;
}

details.reply-section summary::-webkit-details-marker {
  display: none;
}

.inline-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.inline-form textarea {
  flex: 1;
  min-width: 280px;
  min-height: 60px;
  padding: 10px 12px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  box-sizing: border-box;
  resize: vertical;
}

.inline-form button {
  width: auto;
  padding: 8px 14px;
  font-size: 0.95rem;
  border-radius: 8px;
  background: #3b82f6;
  color: #fff;
  border: none;
  cursor: pointer;
}

.inline-form button:hover {
  background: #2563eb;
}


mark {
  background: linear-gradient(90deg, #fde68a, #facc15);
  color: #111;
  padding: 0 2px;
  border-radius: 3px;
  animation: glow 0.6s ease-in-out;
}

@keyframes glow {
  from { background-color: #fef3c7; }
  to { background-color: #facc15; }
}

mark {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { background-color: #fef3c7; }
  50% { background-color: #fde68a; }
  100% { background-color: #fef3c7; }
}



.btn.danger {
  background-color: #fee2e2;
  color: #b91c1c;
  border-color: #ef4444;
}

.btn.danger:hover {
  background-color: #fca5a5;
  color: white;
}


/* ===== Main Glass Body ===== */
.main-glass {
  
  margin-top: 100px; /* space for fixed header */
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(18px);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  padding: 2rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  color: #ddd;
  margin: 2rem 0;
  font-size: 0.9rem;
}


/* ===== Pages without content box ===== */
.no-box {
  color: #f9f9f9;
}

.no-box h1,
.no-box h2,
.no-box h3,
.no-box strong,
.no-box b {
  color: #ffffff;
}

.no-box p,
.no-box li,
.no-box div,
.no-box span {
  color: rgba(255, 255, 255, 0.85);
}

.no-box a {
  color: #aad4ff;
  text-decoration: underline;
}

.no-box a:hover {
  color: #ffffff;
}

/* Add a soft text shadow for readability */
.no-box * {
  /* text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); */
}

.btn-back {
  text-decoration: none;
  display: inline-block;
  margin-bottom: 15px;
  padding: 6px 14px;
  background: #f5f7ff;
  border: 1px solid #dbe0f0;
  border-radius: 6px;
  color: #4b6cb7;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}
.btn-back:hover {
  background: #e6ecff;
  border-color: #c8d1f0;
}
