/* Horizonhire UI — compact, accessible, responsive */
/* ---------------- Core palette ---------------- */
:root{
  --brand:#1f66ff;
  --brand-600:#1b59e0;
  --ink:#111;
  --muted:#666;
  --bg:#fafbff;
  --surface:#fff;
  --border:#e5e9ff;
  --ring:#94b0ff;

  --success:#16a34a;
  --warning:#d97706;
  --danger:#dc2626;

  --shadow:0 2px 6px rgba(31,102,255,.04);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  font-family: 'Inter', sans-serif;
  color:var(--ink);
  background: #f8f8f8;
  padding: 20px;
  margin-bottom: 20px;
  margin: 0;
  padding: 0;
  line-height:1.45;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Links */
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}

/* ---------------- Header / Nav ---------------- */
header, .site-header{
  background-color: #2c3e50;
  color: #fff;
  padding: 10px 0;
  border-bottom:1px solid;
  position:sticky; 
  top:0; 
  z-index:1000;
}

.top-nav a {
  color: #fff;
  margin: 0 auto;
  text-decoration: none;
}

.top-nav a:hover {
  color: #e74c3c;
}


.container{max-width:1100px;margin:0 auto;padding:16px}
.nav{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.brand{font-weight:800;letter-spacing:.2px;display:flex;align-items:center;justify-content:left;gap:10px}
.brand img{width:100px;height:auto;object-fit:contain}
header nav a{padding:6px 8px;border-radius:8px}


/* Optional classes used by the enhanced header */
.brand-link{ display:flex; align-items:center; gap:10px; text-decoration:none; color:inherit }
.brand-logo{ width:100px; height:auto; object-fit:contain }
.brand-text{ display:flex; flex-direction:column }
.brand-title{ font-size: 20px;  
  font-weight: bold;
  background: linear-gradient(45deg, #ff7e5f, #feb47b); 
  -webkit-background-clip: text; 
  color: transparent;  
  text-transform: uppercase; }
.brand-slogan{ font-size: 10px;  
  font-weight: normal;
  background: linear-gradient(45deg, #6a11cb, #2575fc); 
  -webkit-background-clip: text;
  color: transparent;  
  text-transform: uppercase; }
  .brand-title, .brand-slogan {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);  
}
.top-nav{ display:flex; align-items:center; gap:10px; flex-wrap:wrap }

/* ---------------- Buttons ---------------- */
.btn{
  display:inline-block; padding:10px 14px; border-radius:20px;
  border:4px solid #ccd6ff; background:#fff; cursor:pointer;
  transition:box-shadow .15s, transform .05s, background .15s, border-color .15s;
  font-weight:600; color:var(--ink); text-decoration:none;
}
.btn:hover{box-shadow:0 2px 10px rgba(0,0,0,.05)}
.btn:active{transform:translateY(1px)}
.btn:focus{outline:none; box-shadow:0 0 0 3px var(--ring)}
.btn.primary{background:var(--brand);color:#fff;border-color:var(--brand)}
.btn.primary:hover{background:var(--brand-600)}
.btn.success{background:var(--success);border-color:var(--success);color:#fff}
.btn.danger{background:var(--danger);border-color:var(--danger);color:#fff}
.btn.ghost{background:transparent;border-color:var(--border)}
.btn[disabled], .btn:disabled{opacity:.6; cursor:not-allowed}

/* ---------------- Layout helpers ---------------- */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}
.card{
  background-color: #fff; 
  border:1px solid var(--border);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.card h3{margin:0 0 8px; font-size: 24px;}

/* ---------------- Badges ---------------- */
.card .badge{
  font-size:12px; color:#fff; background-color: #3498db;
  padding:5px 10px; border-radius:3px; vertical-align:middle
}
.badge.success{background:var(--success)}
.badge.warning{background:var(--warning)}
.badge.danger{background:var(--danger)}

.badge.status { display:inline-block; padding:2px 8px; border-radius:999px; font-size:12px; color:#fff; }
.badge.pending { background:#ff9800; }
.badge.approved { background:#2e7d32; }
.badge.rejected { background:#c62828; }

/* ---------------- Footer ---------------- */
.footer {
  background-color: #2c3e50;
  color: white;
  padding: 20px;
  text-align: center;
}

.footer a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
}

.footer a:hover {
  color: #e74c3c;
}

/* Input Field Styles */
input, select {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

/* Button Style */
button.btn.primary {
  background-color: #007BFF;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button.btn.primary:hover {
  background-color: #0056b3;
}

/* Icons Style */
i.fas {
  margin-right: 8px;
  color: #007BFF;
}

/* Alerts */
.alert {
  padding: 10px;
  color: #fff;
  background-color: #f44336;
  border-radius: 4px;
  margin-top: 20px;
}

/* Form Layout */
form {
  max-width: 700px;
  margin: auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 13px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

form input, form select {
  border: 1px solid #ccc;
}

/* Hover Effects for Inputs */
input:hover, select:hover {
  border-color: #007BFF;
}

/* ---------------- Forms ---------------- */
input,select,textarea{
  width:100%; padding:10px; border:1px solid #d6dbf7; border-radius:10px;
  margin:6px 0 12px; background:#fff; font:inherit;
  transition:border-color .15s, box-shadow .15s, background .15s;
}
input:focus,select:focus,textarea:focus{
  outline:none; border-color:var(--brand);
  box-shadow:0 0 0 3px var(--ring);
}
input[type="file"]{padding:8px}
label{font-size:12px;color:var(--muted); display:block; margin-top:4px}
form .row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media (max-width:720px){ form .row{grid-template-columns:1fr} }
.form-error{color:var(--danger);font-size:12px;margin-top:-6px;margin-bottom:8px}
.inline{display:inline}

/* ---------------- Tables ---------------- */
.table{width:100%;border-collapse:collapse}
.table th,.table td{border-bottom:1px solid var(--border);padding:5px;text-align:left;vertical-align:top}
.table th{font-weight:700}
.table.striped tbody tr:nth-child(odd){background:#f7f9ff}
.table-wrap{overflow:auto}

/* ---------------- Alerts ---------------- */
.alert{
  padding:10px 12px;border-radius:8px;border:1px solid var(--border);
  background:#eef3ff; color:#0b3a8f;
}
.alert.success{background:#ecfdf5;border-color:#bbf7d0;color:#065f46}
.alert.warning{background:#fffbeb;border-color:#fde68a;color:#92400e}
.alert.danger{background:#fef2f2;border-color:#fecaca;color:#991b1b}

/* ---------------- Chat ---------------- */
.chatbox{
  height:320px; overflow:auto; border:1px solid var(--border);
  border-radius:12px; padding:10px; background:#fff;
}
.chat-input{margin-top:8px}
.chatbox > div{padding:6px 4px; border-bottom:1px dashed #eef2ff}
.chatbox > div:last-child{border-bottom:none}

/* Chat UI upgrades */
.chatbox.messages{
  height:360px; overflow:auto; border:1px solid var(--border);
  border-radius:12px; padding:10px; background:#fff;
  display:flex; flex-direction:column; gap:8px;
}
.msg{max-width:70%; display:flex; flex-direction:column}
.msg .bubble{padding:10px 12px; border-radius:14px; word-wrap:break-word; white-space:pre-wrap}
.msg .meta{font-size:11px; color:var(--muted); margin-top:4px}
.msg.me{align-self:flex-end}
.msg.me .bubble{background:var(--brand); color:#fff; border-bottom-right-radius:4px}
.msg.me .meta{align-self:flex-end}
.msg.them{align-self:flex-start}
.msg.them .bubble{background:#eef3ff; color:#0b3a8f; border-bottom-left-radius:4px}
.msg.them .meta{align-self:flex-start}
.chat-form{display:flex; gap:8px; align-items:flex-end; margin-top:8px}
.chat-form textarea{resize:vertical}
.btn-send{display:none} /* Enter key sends */

/* Typing indicator */
.typing-indicator{margin-top:6px; color:var(--muted); font-size:12px; display:flex; align-items:center; gap:6px}
.typing{display:inline-flex; gap:4px; align-items:center}
.typing .dot{
  width:6px; height:6px; border-radius:50%; background:var(--muted);
  opacity:.25; animation: blink 1.2s infinite ease-in-out;
}
.typing .dot:nth-child(2){animation-delay:.15s}
.typing .dot:nth-child(3){animation-delay:.30s}
@keyframes blink{0%,80%,100%{opacity:.25}40%{opacity:.9}}

/* ---------------- Utilities ---------------- */
small.muted{color:var(--muted)}
.text-center{text-align:center}
.mt-1{margin-top:4px}.mt-2{margin-top:8px}.mt-3{margin-top:12px}.mt-4{margin-top:16px}
.mb-1{margin-bottom:4px}.mb-2{margin-bottom:8px}.mb-3{margin-bottom:12px}.mb-4{margin-bottom:16px}
.field { margin-bottom:14px; }
.countdown{
  display:inline-block; padding:4px 8px; border-radius:999px;
  background:#f0f4ff; border:1px solid var(--border); color:#0b3a8f; font-weight:600;
}

/* ---------------- Hero Slider ---------------- */
/* Works with the header that outputs #hero-slider on index.php */
.hero-slider{
  position: relative; overflow: hidden; margin-top:14px;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  background: #0a1326;
}
.hero-slides{ position:relative; height: 360px }
.hero-slide{
  position:absolute; inset:0; opacity:0; transform: scale(1.02);
  background: #0a1326 center/cover no-repeat;
  transition: opacity .7s ease, transform .7s ease;
  display:flex; align-items:center; justify-content:center;
}
.hero-slide::before{
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(11,18,32,.12), rgba(11,18,32,.55));
}
.hero-slide.is-active{ opacity:1; transform: scale(1) }
.hero-caption{
  position:relative; text-align:center; z-index:2; padding: 0 16px;
}
.hero-caption h1{ margin:0 0 6px; font-size: 34px; color:#e6f2ff; text-shadow:0 6px 30px rgba(0,0,0,.4) }
.hero-caption p{ color:#cfe9ff }
.hero-nav{
  position:absolute; top:50%; transform:translateY(-50%);
  width:44px; height:44px; border-radius:999px; border:1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.08); color:#e2f7ff; font-size:22px; cursor:pointer;
  display:flex; align-items:center; justify-content:center; transition:.2s;
}
.hero-nav:hover{ background: rgba(255,255,255,.15) }
.hero-prev{ left:14px } .hero-next{ right:14px }
.hero-dots{
  position:absolute; left:0; right:0; bottom:10px; display:flex; gap:8px; justify-content:center; z-index:2;
}
.hero-dots button{
  width:9px; height:9px; border-radius:999px; border:1px solid rgba(255,255,255,.5);
  background: rgba(255,255,255,.25); cursor:pointer; padding:0;
}
.hero-dots button.is-active{ background: #5ec2ff; border-color:#5ec2ff }

.hero {
  background: url('<?= $random_image ?>') no-repeat center center;
  background-size: cover;
  color: white;
  text-align: center;
  padding: 10px 5px;
  width: 100%; /* Ensure the image spans the full width */
  height: auto;
  position: relative;
  margin-bottom: 10px;
  border-radius: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  display: block;
}

/* Add a slight overlay to make the text stand out more */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.2); 
  z-index: 1;
}

.hero h1 {
  font-size: 40px;
  margin-bottom: 12px;  
  line-height: 1.2;     
  font-weight: bold;
}

.hero p {
  font-size: 20px;
  margin-bottom: 20px;  /* Increased bottom margin for better spacing */
  line-height: 1.7;     /* Increased line-height for better spacing */
  max-width: 800px;     /* Limit width for better readability */
  margin-left: auto;    /* Center the paragraph */
  margin-right: auto;   /* Center the paragraph */
  font-weight: normal;
}

.hero .btn {
  background-color: #e74c3c;
  color: white;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 10px;
  font-weight: bold;
}

.hero .btn:hover {
  background-color: #c0392b;
}

/* Job Card Section */
.job-cards {
  padding: 40px 0;
}

.hero-content {
  padding-bottom: 50px;
  position: relative;
  z-index: 2;
}

/* Styling for the benefits list */
.benefits-list {
  list-style-type: none; /* Remove default bullets */
  padding-left: 0;
  margin: 0;
  text-align: left;       /* Align the text to the left for better readability */
  max-width: 1024px;       /* Limit width for better readability */
  margin-left: auto;      /* Center the list */
  margin-right: auto;     /* Center the list */
}

.benefits-list li {
  font-size: 18px;
  margin-bottom: 15px; /* Reduced margin to make text flow naturally */
  line-height: 1.8;    /* Increased line height for better readability */
  display: flex;       /* Use flexbox for icons and text to be aligned */
  align-items: center; /* Center the items vertically */
}

.benefits-list .benefit-icon {
  width: 30px;         /* Set icon/image size */
  margin-right: 15px;  /* Space between icon and text */
  vertical-align: middle;
}

.benefits-list i {
  color: #e74c3c; /* Red icon color */
  margin-right: 10px;
  font-size: 24px;
  vertical-align: middle;
}

/* ---------------- Print styles (offer letter HTML fallback) ---------------- */
@media print{
  header, .site-header, .footer, nav, .btn{display:none !important}
  
  .card{border:none; box-shadow:none; padding:0}
  .container{max-width:none}
}

/* ---------------- Dark mode (optional) ---------------- */
@media (prefers-color-scheme: dark){
  :root{
    --bg:#0b1220; --surface:#0f172a; --ink:#e6e8ef; --muted:#9aa3b2;
    --border:#1f2a44; --brand:#6da2ff; --brand-600:#5b8fe6; --ring:rgba(109,162,255,.35);
    --shadow:0 2px 12px rgba(0,0,0,.35);
  }
  header, .site-header, .card, .chatbox { background:var(--surface) }
  .alert{ background:#0f213f; color:#dbe7ff; border-color:#1f335b }
  .table th,.table td{ border-bottom:1px solid var(--border) }
  a:hover{ text-decoration:none; filter:brightness(1.1) }
}
